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
|
|---|---|---|---|---|---|---|
label = config_value(module, 'LABEL', default = module_name)
|
label = _(config_value(module, 'LABEL', default = module_name))
|
def labelled_payment_choices(): active_payment_modules = config_choice_values('PAYMENT', 'MODULES', translate=True) choices = [] for module, module_name in active_payment_modules: label = config_value(module, 'LABEL', default = module_name) choices.append((module, label)) signals.payment_choices.send(None, choices=choices) return choices
|
3c761bdc946a96166f3a054ab6b3dc82db4b7622 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/171/3c761bdc946a96166f3a054ab6b3dc82db4b7622/config.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1433,
1259,
67,
9261,
67,
11937,
13332,
2695,
67,
9261,
67,
6400,
273,
642,
67,
11569,
67,
2372,
2668,
16436,
2187,
296,
12194,
55,
2187,
4204,
33,
5510,
13,
225,
7246,
273,
5378,
364,
1605,
16,
1605,
67,
529,
316,
2695,
67,
9261,
67,
6400,
30,
1433,
273,
389,
12,
1425,
67,
1132,
12,
2978,
16,
296,
13545,
2187,
805,
273,
1605,
67,
529,
3719,
7246,
18,
6923,
12443,
2978,
16,
1433,
3719,
225,
11505,
18,
9261,
67,
11937,
18,
4661,
12,
7036,
16,
7246,
33,
11937,
13,
327,
7246,
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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
67,
6400,
273,
642,
67,
11569,
67,
2372,
2668,
16436,
2187,
296,
12194,
55,
2187,
4204,
33,
5510,
13,
225,
7246,
273,
5378,
364,
1605,
16,
1605,
67,
529,
316,
2695,
67,
9261,
67,
6400,
30,
1433,
273,
389,
12,
1425,
67,
1132,
12,
2978,
16,
296,
13545,
2187,
805,
273,
1605,
67,
529,
3719,
7246,
18,
6923,
12443,
2978,
16,
1433,
3719,
225,
11505,
18,
9261,
67,
11937,
18,
4661,
12,
7036,
16,
7246,
33,
11937,
13,
327,
7246,
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
] |
title=u"The object this facet is augmenting"
|
title=u"The object this facet is augmenting",
|
def __call__(self, event): """Invoke the callback."""
|
4cfce9d57348b7ed94f6b09155319ab42f11a84e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/4cfce9d57348b7ed94f6b09155319ab42f11a84e/interfaces.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
871,
4672,
3536,
10969,
326,
1348,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
871,
4672,
3536,
10969,
326,
1348,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
""" Log file name. """)
|
"Log file name")
|
def _set_log_filename(self, log_filename): self._log_filename = log_filename
|
217d12136ccc1d46d76fbe600da287bfa7ff002b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12617/217d12136ccc1d46d76fbe600da287bfa7ff002b/test_result.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
1330,
67,
3459,
12,
2890,
16,
613,
67,
3459,
4672,
365,
6315,
1330,
67,
3459,
273,
613,
67,
3459,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
1330,
67,
3459,
12,
2890,
16,
613,
67,
3459,
4672,
365,
6315,
1330,
67,
3459,
273,
613,
67,
3459,
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
] |
self.GetParent ().GetParent ().switchPane ()
|
self.getFrame ().switchPane () self.afterDirChange ()
|
def switchPane (self): self.GetParent ().GetParent ().switchPane ()
|
c77a99f1e1d289d91f9bcbf2b7c6c8e572e3ab89 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9028/c77a99f1e1d289d91f9bcbf2b7c6c8e572e3ab89/candy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1620,
8485,
261,
2890,
4672,
365,
18,
967,
3054,
1832,
18,
967,
3054,
1832,
18,
9610,
8485,
1832,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1620,
8485,
261,
2890,
4672,
365,
18,
967,
3054,
1832,
18,
967,
3054,
1832,
18,
9610,
8485,
1832,
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
] |
file = open(filename)
|
try: file = open(filename) except IOError: return None
|
def synopsis(filename, cache={}): """Get the one-line summary out of a module file.""" mtime = os.stat(filename).st_mtime lastupdate, result = cache.get(filename, (0, None)) if lastupdate < mtime: info = inspect.getmoduleinfo(filename) file = open(filename) if info and 'b' in info[2]: # binary modules have to be imported try: module = imp.load_module('__temp__', file, filename, info[1:]) except: return None result = split(module.__doc__ or '', '\n')[0] del sys.modules['__temp__'] else: # text modules can be directly examined line = file.readline() while line[:1] == '#' or not strip(line): line = file.readline() if not line: break line = strip(line) if line[:4] == 'r"""': line = line[1:] if line[:3] == '"""': line = line[3:] if line[-1:] == '\\': line = line[:-1] while not strip(line): line = file.readline() if not line: break result = strip(split(line, '"""')[0]) else: result = None file.close() cache[filename] = (mtime, result) return result
|
26fd2e1dcc6f07f6c58127a790312850849c1c60 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/26fd2e1dcc6f07f6c58127a790312850849c1c60/pydoc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6194,
29522,
12,
3459,
16,
1247,
12938,
4672,
3536,
967,
326,
1245,
17,
1369,
4916,
596,
434,
279,
1605,
585,
12123,
13158,
273,
1140,
18,
5642,
12,
3459,
2934,
334,
67,
10838,
1142,
2725,
16,
563,
273,
1247,
18,
588,
12,
3459,
16,
261,
20,
16,
599,
3719,
309,
1142,
2725,
411,
13158,
30,
1123,
273,
5334,
18,
588,
2978,
1376,
12,
3459,
13,
775,
30,
585,
273,
1696,
12,
3459,
13,
1335,
8340,
30,
225,
327,
599,
309,
1123,
471,
296,
70,
11,
316,
1123,
63,
22,
14542,
468,
3112,
4381,
1240,
358,
506,
9101,
775,
30,
1605,
273,
1646,
18,
945,
67,
2978,
2668,
972,
5814,
972,
2187,
585,
16,
1544,
16,
1123,
63,
21,
30,
5717,
1335,
30,
327,
599,
563,
273,
1416,
12,
2978,
16186,
2434,
972,
578,
10226,
2337,
82,
6134,
63,
20,
65,
1464,
2589,
18,
6400,
3292,
972,
5814,
972,
3546,
469,
30,
468,
977,
4381,
848,
506,
5122,
19707,
1920,
980,
273,
585,
18,
896,
1369,
1435,
1323,
980,
10531,
21,
65,
422,
6501,
578,
486,
2569,
12,
1369,
4672,
980,
273,
585,
18,
896,
1369,
1435,
309,
486,
980,
30,
898,
980,
273,
2569,
12,
1369,
13,
309,
980,
10531,
24,
65,
422,
296,
86,
8395,
4278,
980,
273,
980,
63,
21,
26894,
309,
980,
10531,
23,
65,
422,
2119,
3660,
4278,
980,
273,
980,
63,
23,
26894,
309,
980,
18919,
21,
26894,
422,
3718,
4278,
980,
273,
980,
10531,
17,
21,
65,
1323,
486,
2569,
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,
6194,
29522,
12,
3459,
16,
1247,
12938,
4672,
3536,
967,
326,
1245,
17,
1369,
4916,
596,
434,
279,
1605,
585,
12123,
13158,
273,
1140,
18,
5642,
12,
3459,
2934,
334,
67,
10838,
1142,
2725,
16,
563,
273,
1247,
18,
588,
12,
3459,
16,
261,
20,
16,
599,
3719,
309,
1142,
2725,
411,
13158,
30,
1123,
273,
5334,
18,
588,
2978,
1376,
12,
3459,
13,
775,
30,
585,
273,
1696,
12,
3459,
13,
1335,
8340,
30,
225,
327,
599,
309,
1123,
471,
296,
70,
11,
316,
1123,
63,
22,
14542,
468,
3112,
4381,
1240,
358,
506,
9101,
775,
30,
1605,
273,
1646,
18,
945,
67,
2978,
2668,
972,
5814,
972,
2187,
585,
16,
1544,
16,
1123,
63,
21,
30,
2
] |
self._order += data.order
|
self._order += data._order def __add__(self,data): """Add two ODicts's together, returning the result.""" self.update(data) return self
|
def update(self,data={}): """Add a dictionary to the ODict object.
|
1df35147be135fd9b068f1474fe68dd7aeccc827 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2499/1df35147be135fd9b068f1474fe68dd7aeccc827/odict.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
892,
12938,
4672,
3536,
986,
279,
3880,
358,
326,
531,
5014,
733,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
892,
12938,
4672,
3536,
986,
279,
3880,
358,
326,
531,
5014,
733,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
except DistutilsExecError, msg:
|
except DistutilsExecError as msg:
|
def compile(self, sources, output_dir=None, macros=None, include_dirs=None, debug=0, extra_preargs=None, extra_postargs=None, depends=None):
|
b3c6ed5e10916734bf0bd96fcf21743ab916efd4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/b3c6ed5e10916734bf0bd96fcf21743ab916efd4/msvc9compiler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
12,
2890,
16,
5550,
16,
876,
67,
1214,
33,
7036,
16,
24302,
33,
7036,
16,
2341,
67,
8291,
33,
7036,
16,
1198,
33,
20,
16,
2870,
67,
1484,
1968,
33,
7036,
16,
2870,
67,
2767,
1968,
33,
7036,
16,
10935,
33,
7036,
4672,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
12,
2890,
16,
5550,
16,
876,
67,
1214,
33,
7036,
16,
24302,
33,
7036,
16,
2341,
67,
8291,
33,
7036,
16,
1198,
33,
20,
16,
2870,
67,
1484,
1968,
33,
7036,
16,
2870,
67,
2767,
1968,
33,
7036,
16,
10935,
33,
7036,
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
] |
return FortranArray(numpy.array(seq,order='F'))
|
na = numpy.array(seq,order='F') if isinstance(seq,tuple) or isinstance(seq,list): na = na.transpose() return FortranArray(na)
|
def farray(seq): """Convert seq to a FortranArray with Fortran ordering. >>> fa = farray([1,2,3]) A copy of the data in seq will be made if necessary.""" return FortranArray(numpy.array(seq,order='F'))
|
ce23e8f09f38a59b3eda64bcd0f7dcdf9fa7b8d8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/ce23e8f09f38a59b3eda64bcd0f7dcdf9fa7b8d8/farray.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
1126,
12,
5436,
4672,
3536,
2723,
3833,
358,
279,
2457,
13171,
1076,
598,
2457,
13171,
9543,
18,
225,
4080,
11087,
273,
284,
1126,
3816,
21,
16,
22,
16,
23,
5717,
225,
432,
1610,
434,
326,
501,
316,
3833,
903,
506,
7165,
309,
4573,
12123,
9583,
273,
3972,
18,
1126,
12,
5436,
16,
1019,
2218,
42,
6134,
309,
1549,
12,
5436,
16,
8052,
13,
578,
1549,
12,
5436,
16,
1098,
4672,
9583,
273,
9583,
18,
2338,
4150,
1435,
327,
2457,
13171,
1076,
12,
6582,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1126,
12,
5436,
4672,
3536,
2723,
3833,
358,
279,
2457,
13171,
1076,
598,
2457,
13171,
9543,
18,
225,
4080,
11087,
273,
284,
1126,
3816,
21,
16,
22,
16,
23,
5717,
225,
432,
1610,
434,
326,
501,
316,
3833,
903,
506,
7165,
309,
4573,
12123,
9583,
273,
3972,
18,
1126,
12,
5436,
16,
1019,
2218,
42,
6134,
309,
1549,
12,
5436,
16,
8052,
13,
578,
1549,
12,
5436,
16,
1098,
4672,
9583,
273,
9583,
18,
2338,
4150,
1435,
327,
2457,
13171,
1076,
12,
6582,
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
] |
py_version=py_version or PY_MAJOR, platform=platform
|
py_version=py_version, platform=platform
|
def from_filename(cls,filename,metadata=None): name,version,py_version,platform = [None]*4 basename,ext = os.path.splitext(os.path.basename(filename)) if ext.lower()==".egg": match = EGG_NAME(basename) if match: name,version,py_version,platform = match.group( 'name','ver','pyver','plat' ) return cls( filename, metadata, name=name, version=version, py_version=py_version or PY_MAJOR, platform=platform )
|
9d3222c5a0a78f47be05b2e5ac2e720998035afb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8186/9d3222c5a0a78f47be05b2e5ac2e720998035afb/pkg_resources.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
67,
3459,
12,
6429,
16,
3459,
16,
4165,
33,
7036,
4672,
508,
16,
1589,
16,
2074,
67,
1589,
16,
9898,
273,
306,
7036,
5772,
24,
4882,
16,
408,
273,
1140,
18,
803,
18,
4939,
408,
12,
538,
18,
803,
18,
13909,
12,
3459,
3719,
309,
1110,
18,
8167,
1435,
631,
9654,
23171,
6877,
845,
273,
512,
19491,
67,
1985,
12,
13909,
13,
309,
845,
30,
508,
16,
1589,
16,
2074,
67,
1589,
16,
9898,
273,
845,
18,
1655,
12,
296,
529,
17023,
502,
17023,
2074,
502,
17023,
412,
270,
11,
262,
327,
2028,
12,
1544,
16,
1982,
16,
508,
33,
529,
16,
1177,
33,
1589,
16,
2395,
67,
1589,
33,
2074,
67,
1589,
16,
4072,
33,
9898,
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,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,
4165,
33,
7036,
4672,
508,
16,
1589,
16,
2074,
67,
1589,
16,
9898,
273,
306,
7036,
5772,
24,
4882,
16,
408,
273,
1140,
18,
803,
18,
4939,
408,
12,
538,
18,
803,
18,
13909,
12,
3459,
3719,
309,
1110,
18,
8167,
1435,
631,
9654,
23171,
6877,
845,
273,
512,
19491,
67,
1985,
12,
13909,
13,
309,
845,
30,
508,
16,
1589,
16,
2074,
67,
1589,
16,
9898,
273,
845,
18,
1655,
12,
296,
529,
17023,
502,
17023,
2074,
502,
17023,
412,
270,
11,
262,
327,
2028,
12,
1544,
16,
1982,
16,
508,
33,
529,
16,
1177,
33,
1589,
16,
2395,
67,
1589,
33,
2074,
67,
1589,
16,
4072,
33,
9898,
2
] |
self.fileobj.unlink(self.fileobj.name)
|
def handle_timeout_listen(self): self.ftp.fail() self.fileobj.unlink(self.fileobj.name) return False
|
534780d2d0cd8b994789e014dc1562197e5cd86b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8801/534780d2d0cd8b994789e014dc1562197e5cd86b/ftp.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
4538,
67,
18085,
12,
2890,
4672,
365,
18,
11727,
18,
6870,
1435,
327,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
4538,
67,
18085,
12,
2890,
4672,
365,
18,
11727,
18,
6870,
1435,
327,
1083,
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
] |
|
except (socket.error, httplib.HTTPException), e: retry = (errno.ECONNRESET, errno.ECONNABORTED, httplib.BadStatusLine) if i or e[0] not in retry:
|
except socket.error, e: if i or e.errno not in (errno.ECONNRESET, errno.ECONNABORTED): raise except http.client.BadStatusLine: if i:
|
def request(self, host, handler, request_body, verbose=0): #retry request once if cached connection has gone cold for i in (0, 1): try: return self.single_request(host, handler, request_body, verbose) except (socket.error, httplib.HTTPException), e: retry = (errno.ECONNRESET, errno.ECONNABORTED, httplib.BadStatusLine) #close after we sent request if i or e[0] not in retry: raise
|
81415647b4531d6819e7337e6837f113c0b6eb95 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/81415647b4531d6819e7337e6837f113c0b6eb95/xmlrpclib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
590,
12,
2890,
16,
1479,
16,
1838,
16,
590,
67,
3432,
16,
3988,
33,
20,
4672,
468,
9620,
590,
3647,
309,
3472,
1459,
711,
22296,
645,
72,
364,
277,
316,
261,
20,
16,
404,
4672,
775,
30,
327,
365,
18,
7526,
67,
2293,
12,
2564,
16,
1838,
16,
590,
67,
3432,
16,
3988,
13,
1335,
261,
7814,
18,
1636,
16,
15851,
6673,
18,
3693,
503,
3631,
425,
30,
3300,
273,
261,
19088,
18,
41,
27733,
26665,
16,
8402,
18,
41,
27733,
2090,
11245,
16,
15851,
6673,
18,
6434,
1482,
1670,
13,
468,
4412,
1839,
732,
3271,
590,
309,
277,
578,
425,
63,
20,
65,
486,
316,
3300,
30,
1002,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
590,
12,
2890,
16,
1479,
16,
1838,
16,
590,
67,
3432,
16,
3988,
33,
20,
4672,
468,
9620,
590,
3647,
309,
3472,
1459,
711,
22296,
645,
72,
364,
277,
316,
261,
20,
16,
404,
4672,
775,
30,
327,
365,
18,
7526,
67,
2293,
12,
2564,
16,
1838,
16,
590,
67,
3432,
16,
3988,
13,
1335,
261,
7814,
18,
1636,
16,
15851,
6673,
18,
3693,
503,
3631,
425,
30,
3300,
273,
261,
19088,
18,
41,
27733,
26665,
16,
8402,
18,
41,
27733,
2090,
11245,
16,
15851,
6673,
18,
6434,
1482,
1670,
13,
468,
4412,
1839,
732,
3271,
590,
309,
277,
578,
425,
63,
20,
65,
486,
316,
3300,
30,
1002,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def callWhenRunning(self, callable, *args, **kw):
|
def callWhenRunning(self, _callable, *args, **kw):
|
def callWhenRunning(self, callable, *args, **kw): """See twisted.internet.interfaces.IReactorCore.callWhenRunning. """ if self.running: callable(*args, **kw) else: return self.addSystemEventTrigger('after', 'startup', callable, *args, **kw)
|
2be731a1ed281980caf599001b09591be5493949 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/2be731a1ed281980caf599001b09591be5493949/base.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
9434,
7051,
12,
2890,
16,
389,
7293,
16,
380,
1968,
16,
2826,
9987,
4672,
3536,
9704,
2339,
25444,
18,
267,
14726,
18,
15898,
18,
45,
426,
3362,
4670,
18,
1991,
9434,
7051,
18,
3536,
309,
365,
18,
8704,
30,
4140,
30857,
1968,
16,
2826,
9987,
13,
469,
30,
327,
365,
18,
1289,
3163,
1133,
6518,
2668,
5205,
2187,
296,
23939,
2187,
4140,
16,
380,
1968,
16,
2826,
9987,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
9434,
7051,
12,
2890,
16,
389,
7293,
16,
380,
1968,
16,
2826,
9987,
4672,
3536,
9704,
2339,
25444,
18,
267,
14726,
18,
15898,
18,
45,
426,
3362,
4670,
18,
1991,
9434,
7051,
18,
3536,
309,
365,
18,
8704,
30,
4140,
30857,
1968,
16,
2826,
9987,
13,
469,
30,
327,
365,
18,
1289,
3163,
1133,
6518,
2668,
5205,
2187,
296,
23939,
2187,
4140,
16,
380,
1968,
16,
2826,
9987,
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
] |
cursor.execute("SELECT id, xml FROM stats_messages WHERE target_path = %s ORDER BY id DESC%s" %
|
cursor.execute("SELECT id, xml FROM stats_messages FORCE INDEX (target_path_2, id) " "WHERE target_path = %s ORDER BY id DESC%s" %
|
def _getLatest(self, cursor, limit): if limit is None: limitClause = '' else: limitClause = " LIMIT %d" % limit cursor.execute("SELECT id, xml FROM stats_messages WHERE target_path = %s ORDER BY id DESC%s" % (Database.quote(self.target.path, 'varchar'), limitClause)) return cursor.fetchall()
|
1d7bfe2a8a9d8b471adaef4079bc0841b03d3299 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/1d7bfe2a8a9d8b471adaef4079bc0841b03d3299/Target.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
18650,
12,
2890,
16,
3347,
16,
1800,
4672,
309,
1800,
353,
599,
30,
1800,
7044,
273,
875,
469,
30,
1800,
7044,
273,
315,
13319,
738,
72,
6,
738,
1800,
3347,
18,
8837,
2932,
4803,
612,
16,
2025,
4571,
3177,
67,
6833,
12108,
1441,
12425,
261,
3299,
67,
803,
67,
22,
16,
612,
13,
315,
315,
12299,
1018,
67,
803,
273,
738,
87,
10205,
6953,
612,
14326,
9,
87,
6,
738,
261,
4254,
18,
6889,
12,
2890,
18,
3299,
18,
803,
16,
296,
90,
22483,
19899,
1800,
7044,
3719,
327,
3347,
18,
5754,
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,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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,
389,
588,
18650,
12,
2890,
16,
3347,
16,
1800,
4672,
309,
1800,
353,
599,
30,
1800,
7044,
273,
875,
469,
30,
1800,
7044,
273,
315,
13319,
738,
72,
6,
738,
1800,
3347,
18,
8837,
2932,
4803,
612,
16,
2025,
4571,
3177,
67,
6833,
12108,
1441,
12425,
261,
3299,
67,
803,
67,
22,
16,
612,
13,
315,
315,
12299,
1018,
67,
803,
273,
738,
87,
10205,
6953,
612,
14326,
9,
87,
6,
738,
261,
4254,
18,
6889,
12,
2890,
18,
3299,
18,
803,
16,
296,
90,
22483,
19899,
1800,
7044,
3719,
327,
3347,
18,
5754,
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
] |
def read_pages_from_sql_dump(sqlfilename, old, regex):
|
def read_pages_from_sql_dump(sqlfilename, replacements, exceptions, regex):
|
def read_pages_from_sql_dump(sqlfilename, old, regex): import sqldump dump = sqldump.SQLdump(sqlfilename, wikipedia.myencoding()) for entry in dump.entries(): if regex: if old.search(entry.text): yield wikipedia.PageLink(wikipedia.mylang, entry.full_title()) else: if entry.text.find(old) != -1: yield wikipedia.PageLink(wikipedia.mylang, entry.full_title())
|
d3596dc42562932cbc3b84fdd463983c3a41dcb7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/d3596dc42562932cbc3b84fdd463983c3a41dcb7/replace.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
7267,
67,
2080,
67,
4669,
67,
8481,
12,
4669,
3459,
16,
11413,
16,
4798,
16,
3936,
4672,
1930,
1847,
8481,
4657,
273,
1847,
8481,
18,
3997,
8481,
12,
4669,
3459,
16,
21137,
18,
4811,
5999,
10756,
364,
1241,
316,
4657,
18,
8219,
13332,
309,
3936,
30,
309,
1592,
18,
3072,
12,
4099,
18,
955,
4672,
2824,
21137,
18,
1964,
2098,
12,
11999,
13744,
18,
4811,
4936,
16,
1241,
18,
2854,
67,
2649,
10756,
469,
30,
309,
1241,
18,
955,
18,
4720,
12,
1673,
13,
480,
300,
21,
30,
2824,
21137,
18,
1964,
2098,
12,
11999,
13744,
18,
4811,
4936,
16,
1241,
18,
2854,
67,
2649,
10756,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
7267,
67,
2080,
67,
4669,
67,
8481,
12,
4669,
3459,
16,
11413,
16,
4798,
16,
3936,
4672,
1930,
1847,
8481,
4657,
273,
1847,
8481,
18,
3997,
8481,
12,
4669,
3459,
16,
21137,
18,
4811,
5999,
10756,
364,
1241,
316,
4657,
18,
8219,
13332,
309,
3936,
30,
309,
1592,
18,
3072,
12,
4099,
18,
955,
4672,
2824,
21137,
18,
1964,
2098,
12,
11999,
13744,
18,
4811,
4936,
16,
1241,
18,
2854,
67,
2649,
10756,
469,
30,
309,
1241,
18,
955,
18,
4720,
12,
1673,
13,
480,
300,
21,
30,
2824,
21137,
18,
1964,
2098,
12,
11999,
13744,
18,
4811,
4936,
16,
1241,
18,
2854,
67,
2649,
10756,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if string.find(gdal.GetLastErrorMsg(),'No translation') != -1: return 'success'
|
pass if string.find(gdal.GetLastErrorMsg(),'No translation') != -1: return 'success'
|
def osr_proj4_4(): srs = osr.SpatialReference() srs.SetFromUserInput( '+proj=utm +zone=11 +datum=WGS84' ) srs.SetAttrValue( 'PROJCS|PROJECTION', 'FakeTransverseMercator' ) try: proj4 = srs.ExportToProj4() except RuntimeError: if string.find(gdal.GetLastErrorMsg(),'No translation') != -1: return 'success' gdaltest.post_reason( 'unknown srs not handled properly' ) return 'fail'
|
b617567bc8e84a2af0b9dc941500856277a3701f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10290/b617567bc8e84a2af0b9dc941500856277a3701f/osr_proj4.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1140,
86,
67,
17995,
24,
67,
24,
13332,
225,
26200,
273,
1140,
86,
18,
24648,
2404,
1435,
26200,
18,
694,
1265,
29423,
12,
15126,
17995,
33,
322,
81,
397,
3486,
33,
2499,
397,
3404,
379,
33,
59,
16113,
5193,
11,
262,
26200,
18,
694,
3843,
620,
12,
296,
3373,
46,
4596,
96,
3373,
30781,
3106,
2187,
296,
25462,
1429,
2476,
8478,
71,
639,
11,
262,
225,
775,
30,
10296,
24,
273,
26200,
18,
6144,
774,
626,
78,
24,
1435,
225,
1335,
7265,
30,
1342,
225,
309,
533,
18,
4720,
12,
19016,
287,
18,
967,
3024,
668,
3332,
9334,
11,
2279,
4794,
6134,
480,
300,
21,
30,
327,
296,
4768,
11,
225,
15551,
2390,
395,
18,
2767,
67,
10579,
12,
296,
8172,
26200,
486,
7681,
8214,
11,
262,
327,
296,
6870,
11,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1140,
86,
67,
17995,
24,
67,
24,
13332,
225,
26200,
273,
1140,
86,
18,
24648,
2404,
1435,
26200,
18,
694,
1265,
29423,
12,
15126,
17995,
33,
322,
81,
397,
3486,
33,
2499,
397,
3404,
379,
33,
59,
16113,
5193,
11,
262,
26200,
18,
694,
3843,
620,
12,
296,
3373,
46,
4596,
96,
3373,
30781,
3106,
2187,
296,
25462,
1429,
2476,
8478,
71,
639,
11,
262,
225,
775,
30,
10296,
24,
273,
26200,
18,
6144,
774,
626,
78,
24,
1435,
225,
1335,
7265,
30,
1342,
225,
309,
533,
18,
4720,
12,
19016,
287,
18,
967,
3024,
668,
3332,
9334,
11,
2279,
4794,
6134,
480,
300,
21,
30,
327,
296,
4768,
11,
225,
15551,
2390,
395,
18,
2767,
67,
10579,
2
] |
XML_DECL = '<?xml version="1.0" encoding="UTF-8"?>\n' DOCTYPE_DECL = """<!DOCTYPE %s PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd">\n"""
|
XML_DECL = '<?xml version="1.0" encoding="%s"?>\n' DOCTYPE_DECL = """<!DOCTYPE %s PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd">\n"""
|
def record(self): self.recordfile(self.output, self.destination)
|
81818dd428bfab36de0c7775dcdb742978a01329 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/81818dd428bfab36de0c7775dcdb742978a01329/docbook.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1409,
12,
2890,
4672,
365,
18,
3366,
768,
12,
2890,
18,
2844,
16,
365,
18,
10590,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1409,
12,
2890,
4672,
365,
18,
3366,
768,
12,
2890,
18,
2844,
16,
365,
18,
10590,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
fname = STANDARD_TYPES.get(ttype, '')
|
fname = STANDARD_TYPES.get(ttype)
|
def _get_ttype_class(ttype): fname = STANDARD_TYPES.get(ttype) if fname: return fname aname = '' while fname is None: aname = '-' + ttype[-1] + aname ttype = ttype.parent fname = STANDARD_TYPES.get(ttype, '') return fname + aname
|
6814d2a14c2d363f5397d6127012c603e4c63e7a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2885/6814d2a14c2d363f5397d6127012c603e4c63e7a/html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
88,
723,
67,
1106,
12,
88,
723,
4672,
5299,
273,
23255,
67,
10564,
18,
588,
12,
88,
723,
13,
309,
5299,
30,
327,
5299,
392,
339,
273,
875,
1323,
5299,
353,
599,
30,
392,
339,
273,
4014,
397,
27963,
18919,
21,
65,
397,
392,
339,
27963,
273,
27963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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
88,
723,
67,
1106,
12,
88,
723,
4672,
5299,
273,
23255,
67,
10564,
18,
588,
12,
88,
723,
13,
309,
5299,
30,
327,
5299,
392,
339,
273,
875,
1323,
5299,
353,
599,
30,
392,
339,
273,
4014,
397,
27963,
18919,
21,
65,
397,
392,
339,
27963,
273,
27963,
18,
2938,
5299,
273,
23255,
67,
10564,
18,
588,
12,
88,
723,
13,
327,
5299,
397,
392,
339,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
icon = getIconURL(o2, icon_base_url) title = o2.title_and_id() url_tool = getToolByName(self, 'portal_url') path = escape(url_tool.getRelativeUrl(obj))
|
icon = escape(getIconURL(o2, icon_base_url).encode('utf8')) title = escape(o2.title_and_id().encode('utf8')) path = obj.absolute_url()
|
def _render_editing(self, obj, text, icon_base_url): o2 = obj.dereference() icon = getIconURL(o2, icon_base_url) title = o2.title_and_id() url_tool = getToolByName(self, 'portal_url') path = escape(url_tool.getRelativeUrl(obj)) composite_tool = getToolByName(self, TOOL_ID) viewlets_info = composite_tool.getViewletsFor(o2) allowed_viewlets_ids = [] allowed_viewlets_titles = [] if viewlets_info: allowed_viewlets_ids.append(viewlets_info['default']["id"]) allowed_viewlets_titles.append(viewlets_info['default']["viewlet"].title_or_id()) for viewlet in viewlets_info['viewlets']: allowed_viewlets_ids.append(viewlet["id"]) allowed_viewlets_titles.append(viewlet["viewlet"].title_or_id()) return edit_tag % (path, escape(icon), escape(title), " ".join(allowed_viewlets_ids), "%".join(allowed_viewlets_titles), text)
|
e38256c85e714174e2df1990e42cc9e5ec7e55a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/e38256c85e714174e2df1990e42cc9e5ec7e55a0/cmfcompositepage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
4619,
310,
12,
2890,
16,
1081,
16,
977,
16,
4126,
67,
1969,
67,
718,
4672,
320,
22,
273,
1081,
18,
765,
73,
1134,
1435,
4126,
273,
4114,
12,
588,
5554,
1785,
12,
83,
22,
16,
4126,
67,
1969,
67,
718,
2934,
3015,
2668,
3158,
28,
26112,
2077,
273,
4114,
12,
83,
22,
18,
2649,
67,
464,
67,
350,
7675,
3015,
2668,
3158,
28,
26112,
589,
273,
1081,
18,
12547,
67,
718,
1435,
9635,
67,
6738,
273,
336,
6364,
5911,
12,
2890,
16,
8493,
1741,
67,
734,
13,
1476,
17307,
67,
1376,
273,
9635,
67,
6738,
18,
588,
1767,
17307,
1290,
12,
83,
22,
13,
2935,
67,
1945,
17307,
67,
2232,
273,
5378,
2935,
67,
1945,
17307,
67,
17643,
273,
5378,
309,
1476,
17307,
67,
1376,
30,
2935,
67,
1945,
17307,
67,
2232,
18,
6923,
12,
1945,
17307,
67,
1376,
3292,
1886,
3546,
9614,
350,
6,
5717,
2935,
67,
1945,
17307,
67,
17643,
18,
6923,
12,
1945,
17307,
67,
1376,
3292,
1886,
3546,
9614,
1945,
1810,
6,
8009,
2649,
67,
280,
67,
350,
10756,
364,
1476,
1810,
316,
1476,
17307,
67,
1376,
3292,
1945,
17307,
3546,
30,
2935,
67,
1945,
17307,
67,
2232,
18,
6923,
12,
1945,
1810,
9614,
350,
6,
5717,
2935,
67,
1945,
17307,
67,
17643,
18,
6923,
12,
1945,
1810,
9614,
1945,
1810,
6,
8009,
2649,
67,
280,
67,
350,
10756,
327,
3874,
67,
2692,
738,
261,
803,
16,
4114,
12,
3950,
3631,
4114,
12,
2649,
3631,
315,
3552,
5701,
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,
389,
5902,
67,
4619,
310,
12,
2890,
16,
1081,
16,
977,
16,
4126,
67,
1969,
67,
718,
4672,
320,
22,
273,
1081,
18,
765,
73,
1134,
1435,
4126,
273,
4114,
12,
588,
5554,
1785,
12,
83,
22,
16,
4126,
67,
1969,
67,
718,
2934,
3015,
2668,
3158,
28,
26112,
2077,
273,
4114,
12,
83,
22,
18,
2649,
67,
464,
67,
350,
7675,
3015,
2668,
3158,
28,
26112,
589,
273,
1081,
18,
12547,
67,
718,
1435,
9635,
67,
6738,
273,
336,
6364,
5911,
12,
2890,
16,
8493,
1741,
67,
734,
13,
1476,
17307,
67,
1376,
273,
9635,
67,
6738,
18,
588,
1767,
17307,
1290,
12,
83,
22,
13,
2935,
67,
1945,
17307,
67,
2232,
273,
5378,
2935,
67,
1945,
2
] |
usage = "usage: %prog (-b BEGIN -e END) | -a"
|
usage = "usage: %prog (-b BEGIN -e END) | -a [-s]"
|
def main(): usage = "usage: %prog (-b BEGIN -e END) | -a" parser = OptionParser(usage) parser.add_option('-b', '--begin', dest='begin', matavar="BEGIN", help="The ID in the database where fixing should begin (inclusive).") parser.add_option('-e', '--end', dest='end', metavar="END", help="The ID in the database where fixing should end (inclusive).") parser.add_option('-a', '--all', action="store_true", dest='all', default=False, help='Run the script across the entire database ' + \ '(use caution, as this is a resource intensive operation).') (options, args) = parser.parse_args() begin = options.begin end = options.end all = options.all if all: # run the script across the entire DB queryset = queryset_iterator(Document.objects.all()) for doc in queryset: doc.update_dates() exit(0) else: # run the script for the start and end points queryset = queryset_iterator(Document.objects.filter(documentUUID__gte=begin, documentUUID__lte=end) for doc in queryset: update_date(doc) exit(0)
|
0fffbe31b93e4d2573c8412e927b93c2ddb12333 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6762/0fffbe31b93e4d2573c8412e927b93c2ddb12333/pdf_date_fixer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
4084,
273,
315,
9167,
30,
738,
14654,
24927,
70,
19270,
300,
73,
7273,
13,
571,
300,
69,
23059,
87,
4279,
2082,
273,
18862,
12,
9167,
13,
2082,
18,
1289,
67,
3482,
2668,
17,
70,
2187,
3534,
10086,
2187,
1570,
2218,
10086,
2187,
312,
396,
1401,
1546,
16061,
3113,
2809,
1546,
1986,
1599,
316,
326,
2063,
1625,
28716,
1410,
2376,
261,
267,
9173,
14944,
13,
2082,
18,
1289,
67,
3482,
2668,
17,
73,
2187,
3534,
409,
2187,
1570,
2218,
409,
2187,
15050,
1546,
4415,
3113,
2809,
1546,
1986,
1599,
316,
326,
2063,
1625,
28716,
1410,
679,
261,
267,
9173,
14944,
13,
2082,
18,
1289,
67,
3482,
2668,
17,
69,
2187,
3534,
454,
2187,
1301,
1546,
2233,
67,
3767,
3113,
1570,
2218,
454,
2187,
805,
33,
8381,
16,
2809,
2218,
1997,
326,
2728,
10279,
326,
7278,
2063,
296,
397,
521,
7747,
1202,
3474,
1421,
16,
487,
333,
353,
279,
1058,
509,
14315,
1674,
14851,
13,
261,
2116,
16,
833,
13,
273,
2082,
18,
2670,
67,
1968,
1435,
225,
2376,
273,
702,
18,
10086,
679,
273,
702,
18,
409,
777,
273,
702,
18,
454,
225,
309,
777,
30,
468,
1086,
326,
2728,
10279,
326,
7278,
2383,
11892,
273,
11892,
67,
9838,
12,
2519,
18,
6911,
18,
454,
10756,
364,
997,
316,
11892,
30,
997,
18,
2725,
67,
9683,
1435,
2427,
12,
20,
13,
469,
30,
468,
1086,
326,
2728,
364,
326,
787,
471,
679,
3143,
11892,
273,
11892,
67,
9838,
12,
2519,
18,
6911,
18,
2188,
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,
13332,
4084,
273,
315,
9167,
30,
738,
14654,
24927,
70,
19270,
300,
73,
7273,
13,
571,
300,
69,
23059,
87,
4279,
2082,
273,
18862,
12,
9167,
13,
2082,
18,
1289,
67,
3482,
2668,
17,
70,
2187,
3534,
10086,
2187,
1570,
2218,
10086,
2187,
312,
396,
1401,
1546,
16061,
3113,
2809,
1546,
1986,
1599,
316,
326,
2063,
1625,
28716,
1410,
2376,
261,
267,
9173,
14944,
13,
2082,
18,
1289,
67,
3482,
2668,
17,
73,
2187,
3534,
409,
2187,
1570,
2218,
409,
2187,
15050,
1546,
4415,
3113,
2809,
1546,
1986,
1599,
316,
326,
2063,
1625,
28716,
1410,
679,
261,
267,
9173,
14944,
13,
2082,
18,
1289,
67,
3482,
2668,
17,
69,
2187,
3534,
454,
2187,
1301,
1546,
2233,
67,
2
] |
f = open(os.path.join(netcdf4_dir,'include/netcdf.h'))
|
f = open(os.path.join(netcdf4_includedir,'netcdf.h'))
|
def check_ifnetcdf4(netcdf4_dir): try: f = open(os.path.join(netcdf4_dir,'include/netcdf.h')) except IOError: return False isnetcdf4 = False for line in f: if line.startswith('nc_inq_compound'): isnetcdf4 = True return isnetcdf4
|
c01e6408fe27e6458627abbf01fb6379fe1f2926 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8103/c01e6408fe27e6458627abbf01fb6379fe1f2926/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
430,
2758,
24799,
24,
12,
2758,
24799,
24,
67,
1214,
4672,
775,
30,
284,
273,
1696,
12,
538,
18,
803,
18,
5701,
12,
2758,
24799,
24,
67,
20405,
481,
11189,
2758,
24799,
18,
76,
26112,
1335,
8340,
30,
327,
1083,
353,
2758,
24799,
24,
273,
1083,
364,
980,
316,
284,
30,
309,
980,
18,
17514,
1918,
2668,
14202,
67,
267,
85,
67,
22585,
11,
4672,
353,
2758,
24799,
24,
273,
1053,
327,
353,
2758,
24799,
24,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18,
5701,
12,
2758,
24799,
24,
67,
20405,
481,
11189,
2758,
24799,
18,
76,
26112,
1335,
8340,
30,
327,
1083,
353,
2758,
24799,
24,
273,
1083,
364,
980,
316,
284,
30,
309,
980,
18,
17514,
1918,
2668,
14202,
67,
267,
85,
67,
22585,
11,
4672,
353,
2758,
24799,
24,
273,
1053,
327,
353,
2758,
24799,
24,
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
] |
if record[5]: decomposition = '"%s"' % record[5] else: decomposition = "NULL"
|
def maketable(): unicode = UnicodeData(UNICODE_DATA) # extract unicode properties dummy = (0, 0, 0, 0, "NULL") table = [dummy] cache = {0: dummy} index = [0] * len(unicode.chars) DECOMPOSITION = [""] for char in unicode.chars: record = unicode.table[char] if record: # extract database properties category = CATEGORY_NAMES.index(record[2]) combining = int(record[3]) bidirectional = BIDIRECTIONAL_NAMES.index(record[4]) mirrored = record[9] == "Y" if record[5]: decomposition = '"%s"' % record[5] else: decomposition = "NULL" item = ( category, combining, bidirectional, mirrored, decomposition ) # add entry to index and item tables i = cache.get(item) if i is None: cache[item] = i = len(table) table.append(item) index[char] = i # FIXME: we really should compress the decomposition stuff # (see the unidb utilities for one way to do this) FILE = "unicodedata_db.h" sys.stdout = open(FILE, "w") print "/* this file was generated by %s %s */" % (SCRIPT, VERSION) print print "/* a list of unique database records */" print "const _PyUnicode_DatabaseRecord _PyUnicode_Database_Records[] = {" for item in table: print " {%d, %d, %d, %d, %s}," % item print "};" print print "/* string literals */" print "const char *_PyUnicode_CategoryNames[] = {" for name in CATEGORY_NAMES: print " \"%s\"," % name print " NULL" print "};" print "const char *_PyUnicode_BidirectionalNames[] = {" for name in BIDIRECTIONAL_NAMES: print " \"%s\"," % name print " NULL" print "};" # split index table index1, index2, shift = splitbins(index) print "/* index tables used to find the right database record */" print "#define SHIFT", shift Array("index1", index1).dump(sys.stdout) Array("index2", index2).dump(sys.stdout) sys.stdout = sys.__stdout__
|
52c6d7a9e9afe3d0a9ad29e7a71c205b3bb17a83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/52c6d7a9e9afe3d0a9ad29e7a71c205b3bb17a83/makeunicodedata.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29796,
278,
429,
13332,
225,
5252,
273,
9633,
751,
12,
26642,
67,
4883,
13,
225,
468,
2608,
5252,
1790,
9609,
273,
261,
20,
16,
374,
16,
374,
16,
374,
16,
315,
8560,
7923,
1014,
273,
306,
21050,
65,
1247,
273,
288,
20,
30,
9609,
97,
770,
273,
306,
20,
65,
380,
562,
12,
9124,
18,
7549,
13,
225,
2030,
4208,
15258,
273,
306,
3660,
65,
225,
364,
1149,
316,
5252,
18,
7549,
30,
1409,
273,
5252,
18,
2121,
63,
3001,
65,
309,
1409,
30,
468,
2608,
2063,
1790,
3150,
273,
31524,
19281,
67,
16257,
18,
1615,
12,
3366,
63,
22,
5717,
29189,
273,
509,
12,
3366,
63,
23,
5717,
9949,
24699,
273,
605,
30218,
18934,
1013,
67,
16257,
18,
1615,
12,
3366,
63,
24,
5717,
312,
481,
23226,
273,
1409,
63,
29,
65,
422,
315,
61,
6,
761,
273,
261,
3150,
16,
29189,
16,
9949,
24699,
16,
312,
481,
23226,
16,
26288,
262,
468,
527,
1241,
358,
770,
471,
761,
4606,
277,
273,
1247,
18,
588,
12,
1726,
13,
309,
277,
353,
599,
30,
1247,
63,
1726,
65,
273,
277,
273,
562,
12,
2121,
13,
1014,
18,
6923,
12,
1726,
13,
770,
63,
3001,
65,
273,
277,
225,
468,
9852,
30,
732,
8654,
1410,
8099,
326,
26288,
10769,
468,
261,
5946,
326,
640,
350,
70,
22538,
364,
1245,
4031,
358,
741,
333,
13,
225,
7527,
273,
315,
9124,
892,
67,
1966,
18,
76,
6,
225,
2589,
18,
10283,
273,
1696,
12,
3776,
16,
315,
91,
7923,
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,
29796,
278,
429,
13332,
225,
5252,
273,
9633,
751,
12,
26642,
67,
4883,
13,
225,
468,
2608,
5252,
1790,
9609,
273,
261,
20,
16,
374,
16,
374,
16,
374,
16,
315,
8560,
7923,
1014,
273,
306,
21050,
65,
1247,
273,
288,
20,
30,
9609,
97,
770,
273,
306,
20,
65,
380,
562,
12,
9124,
18,
7549,
13,
225,
2030,
4208,
15258,
273,
306,
3660,
65,
225,
364,
1149,
316,
5252,
18,
7549,
30,
1409,
273,
5252,
18,
2121,
63,
3001,
65,
309,
1409,
30,
468,
2608,
2063,
1790,
3150,
273,
31524,
19281,
67,
16257,
18,
1615,
12,
3366,
63,
22,
5717,
29189,
273,
509,
12,
3366,
63,
23,
5717,
9949,
24699,
273,
605,
30218,
18934,
1013,
67,
16257,
2
] |
|
browser = googlecl.CONFIG.get('GENERAL', 'auth_browser') except ConfigParser.NoOptionError: browser = os.getenv('BROWSER')
|
try: browser_str = googlecl.CONFIG.get('GENERAL', 'auth_browser') except ConfigParser.NoOptionError: browser = webbrowser.get() else: browser = webbrowser.get(browser_str) browser.open(auth_url) except webbrowser.Error, err: print 'Failed to launch web browser: ' + str(err)
|
def request_access(self): """Do all the steps involved with getting an OAuth access token. Return: True if access token was succesfully retrieved and set, otherwise False. """ import ConfigParser import os import subprocess # Installed applications do not have a pre-registration and so follow # directions for unregistered applications self.SetOAuthInputParameters(gdata.auth.OAuthSignatureMethod.HMAC_SHA1, consumer_key='anonymous', consumer_secret='anonymous') display_name = '"GoogleCL for account: ' + self.email + '"' params = {'xoauth_displayname':display_name} try: request_token = self.FetchOAuthRequestToken(extra_parameters=params) except gdata.service.FetchingOAuthRequestTokenFailed, err: print err[0]['body'].strip() + '; Request token retrieval failed!' return False auth_url = self.GenerateOAuthAuthorizationURL(request_token=request_token) try: browser = googlecl.CONFIG.get('GENERAL', 'auth_browser') except ConfigParser.NoOptionError: browser = os.getenv('BROWSER') message = 'Please log in and/or grant access via your browser at ' +\ auth_url + ' then hit enter.' if browser: try: subprocess.call([browser, auth_url]) except OSError, err: print 'Error using browser "' + browser + '": ' + str(err) else: print '(Hint: You can automatically launch your browser by adding ' +\ '"auth_browser = <browser>" to your config file under the ' +\ 'GENERAL section, or define the BROWSER environment variable.)' raw_input(message) # This upgrades the token, and if successful, sets the access token try: self.UpgradeToOAuthAccessToken(request_token) except gdata.service.TokenUpgradeFailed: print 'Token upgrade failed! Could not get OAuth access token.' return False else: return True
|
7c1778034a2c5f5ff296afd637fce7a7b19d32a9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/7c1778034a2c5f5ff296afd637fce7a7b19d32a9/service.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
590,
67,
3860,
12,
2890,
4672,
3536,
3244,
777,
326,
6075,
24589,
598,
8742,
392,
7270,
2006,
1147,
18,
225,
2000,
30,
1053,
309,
2006,
1147,
1703,
8667,
764,
4095,
10295,
471,
444,
16,
3541,
1083,
18,
225,
3536,
1930,
25076,
1930,
1140,
1930,
6652,
468,
13448,
4502,
12165,
741,
486,
1240,
279,
675,
17,
14170,
471,
1427,
2805,
468,
18558,
364,
24352,
12165,
365,
18,
694,
11467,
1210,
2402,
12,
75,
892,
18,
1944,
18,
11467,
5374,
1305,
18,
25624,
67,
8325,
21,
16,
4765,
67,
856,
2218,
19070,
2187,
4765,
67,
5875,
2218,
19070,
6134,
2562,
67,
529,
273,
2119,
9639,
5017,
364,
2236,
30,
296,
397,
365,
18,
3652,
397,
4754,
859,
273,
13666,
92,
7280,
67,
5417,
529,
4278,
5417,
67,
529,
97,
775,
30,
590,
67,
2316,
273,
365,
18,
5005,
11467,
25101,
12,
7763,
67,
3977,
33,
2010,
13,
1335,
314,
892,
18,
3278,
18,
30806,
11467,
25101,
2925,
16,
393,
30,
1172,
393,
63,
20,
23962,
3432,
29489,
6406,
1435,
397,
12386,
1567,
1147,
22613,
2535,
5124,
327,
1083,
1357,
67,
718,
273,
365,
18,
4625,
11467,
6063,
1785,
12,
2293,
67,
2316,
33,
2293,
67,
2316,
13,
775,
30,
775,
30,
4748,
67,
701,
273,
5200,
830,
18,
7203,
18,
588,
2668,
13990,
1013,
2187,
296,
1944,
67,
11213,
6134,
1335,
25076,
18,
2279,
1895,
668,
30,
4748,
273,
3311,
11213,
18,
588,
1435,
469,
30,
4748,
273,
3311,
11213,
18,
588,
12,
11213,
67,
701,
13,
4748,
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,
590,
67,
3860,
12,
2890,
4672,
3536,
3244,
777,
326,
6075,
24589,
598,
8742,
392,
7270,
2006,
1147,
18,
225,
2000,
30,
1053,
309,
2006,
1147,
1703,
8667,
764,
4095,
10295,
471,
444,
16,
3541,
1083,
18,
225,
3536,
1930,
25076,
1930,
1140,
1930,
6652,
468,
13448,
4502,
12165,
741,
486,
1240,
279,
675,
17,
14170,
471,
1427,
2805,
468,
18558,
364,
24352,
12165,
365,
18,
694,
11467,
1210,
2402,
12,
75,
892,
18,
1944,
18,
11467,
5374,
1305,
18,
25624,
67,
8325,
21,
16,
4765,
67,
856,
2218,
19070,
2187,
4765,
67,
5875,
2218,
19070,
6134,
2562,
67,
529,
273,
2119,
9639,
5017,
364,
2236,
30,
296,
397,
365,
18,
3652,
397,
4754,
859,
273,
13666,
92,
2
] |
def generate_html() : html_content = g_html_head for client in sorted(g_client_message_board.keys()) : html_content += '<p><strong>' + client + '</strong>: ' + g_client_message_board[client] + '</p>\n' html_content += g_html_tail index_html = open('index.html', 'w') index_html.write(html_content) index_html.close()
|
def generate_html() : html_content = g_html_head for client in sorted(g_client_message_board.keys()) : html_content += '<p><strong>' + client + '</strong>: ' + g_client_message_board[client] + '</p>\n' html_content += g_html_tail index_html = open('index.html', 'w') index_html.write(html_content) index_html.close()
|
8e5e1b423b795a8573942cfd8c3b7178278fed38 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/228/8e5e1b423b795a8573942cfd8c3b7178278fed38/server.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
2620,
1435,
294,
1729,
67,
1745,
273,
314,
67,
2620,
67,
1978,
364,
1004,
316,
3115,
12,
75,
67,
2625,
67,
2150,
67,
3752,
18,
2452,
10756,
294,
1729,
67,
1745,
1011,
2368,
84,
4438,
9110,
1870,
397,
1004,
397,
4357,
9110,
28593,
296,
397,
314,
67,
2625,
67,
2150,
67,
3752,
63,
2625,
65,
397,
4357,
84,
5333,
82,
11,
1729,
67,
1745,
1011,
314,
67,
2620,
67,
13101,
225,
770,
67,
2620,
273,
1696,
2668,
1615,
18,
2620,
2187,
296,
91,
6134,
770,
67,
2620,
18,
2626,
12,
2620,
67,
1745,
13,
770,
67,
2620,
18,
4412,
1435,
225,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
2620,
1435,
294,
1729,
67,
1745,
273,
314,
67,
2620,
67,
1978,
364,
1004,
316,
3115,
12,
75,
67,
2625,
67,
2150,
67,
3752,
18,
2452,
10756,
294,
1729,
67,
1745,
1011,
2368,
84,
4438,
9110,
1870,
397,
1004,
397,
4357,
9110,
28593,
296,
397,
314,
67,
2625,
67,
2150,
67,
3752,
63,
2625,
65,
397,
4357,
84,
5333,
82,
11,
1729,
67,
1745,
1011,
314,
67,
2620,
67,
13101,
225,
770,
67,
2620,
273,
1696,
2668,
1615,
18,
2620,
2187,
296,
91,
6134,
770,
67,
2620,
18,
2626,
12,
2620,
67,
1745,
13,
770,
67,
2620,
18,
4412,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
self._insert_matrix_into_matrix(lin,Z,i*e,i*e)
|
self._insert_matrix_into_matrix(lin, Z, i*e, i*e)
|
def lin_matrix(self, length=None): """ Return the Lin matrix.
|
62424369e932ac59629cb4d40b7e47ae2a712293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62424369e932ac59629cb4d40b7e47ae2a712293/sr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4739,
67,
5667,
12,
2890,
16,
769,
33,
7036,
4672,
3536,
2000,
326,
27865,
3148,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4739,
67,
5667,
12,
2890,
16,
769,
33,
7036,
4672,
3536,
2000,
326,
27865,
3148,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
raise
|
log.debug_traceback()
|
def initplayer(id, config): """ initialize player with id defined by config return id (or None if player is turned off) """ # only the first player has a playlist if id == "main": playlistid = "main" else: playlistid = None type = config.type if type=="off": return None elif type=="internal": import players.internal driver = config.driver if driver in ("alsa09", "alsa"): aooptions = {"dev": config.device} elif driver=="oss": aooptions = {"dsp": config.device} elif driver=="sun": aooptions = {"dev": config.device} else: aooptions = {} # add options given by user in config file for aooption in config.aooptions.split(): key, value = aooption.split("=") aooptions[key] = value try: p = players.internal.player(id, playlistid, autoplay=config.autoplay, aodevice=driver, aooptions=aooptions, bufsize=config.bufsize, crossfading=config.crossfading, crossfadingstart=config.crossfadingstart, crossfadingduration=config.crossfadingduration, ) except: raise RuntimeError("Cannot initialize %s player: type=internal, device=%s" % (id, config.device)) elif type=="xmms": import players.xmmsplayer try: p = players.xmmsplayer.player(id, playlistid, autoplay=config.autoplay, session=config.session, noqueue=config.noqueue) except: raise RuntimeError("Cannot initialize %s player: type=xmms, session=%d" % (id, config.session)) elif type=="mpg123": import players.mpg123 try: p = players.mpg123.player(id, playlistid, autoplay=config.autoplay, cmdline=config.cmdline) except: raise RuntimeError("Cannot initialize %s player: type=mpg123, cmdline=%s" % (id, config.cmdline)) elif type=="remote": import players.remote try: p = players.remote.player(id, playlistid, config.networklocation) except: raise raise RuntimeError("Cannot initialize %s player: type=remote, location=%s" % (id, config.networklocation)) p.setName("player thread (id=%s)" % id) if type != "remote" and id == "main": services.playlist.initplaylist(id, id, id) # start player only after the playlist service has been started since # playlist requests may already be issued during the player startup p.start() return id
|
133d22648b00f022f730821618caab3813959ed3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/348/133d22648b00f022f730821618caab3813959ed3/player.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
14872,
12,
350,
16,
642,
4672,
3536,
4046,
7291,
598,
612,
2553,
635,
642,
327,
612,
261,
280,
599,
309,
7291,
353,
21826,
3397,
13,
3536,
225,
468,
1338,
326,
1122,
7291,
711,
279,
16428,
309,
612,
422,
315,
5254,
6877,
16428,
350,
273,
315,
5254,
6,
469,
30,
16428,
350,
273,
599,
225,
618,
273,
642,
18,
723,
309,
618,
31713,
3674,
6877,
327,
599,
1327,
618,
31713,
7236,
6877,
1930,
18115,
18,
7236,
3419,
273,
642,
18,
7407,
309,
3419,
316,
7566,
1031,
69,
5908,
3113,
315,
1031,
69,
6,
4672,
18528,
2116,
273,
12528,
5206,
6877,
642,
18,
5964,
97,
1327,
3419,
31713,
8464,
6877,
18528,
2116,
273,
12528,
72,
1752,
6877,
642,
18,
5964,
97,
1327,
3419,
31713,
16924,
6877,
18528,
2116,
273,
12528,
5206,
6877,
642,
18,
5964,
97,
469,
30,
18528,
2116,
273,
2618,
468,
527,
702,
864,
635,
729,
316,
642,
585,
364,
18528,
3482,
316,
642,
18,
6033,
2116,
18,
4939,
13332,
498,
16,
460,
273,
18528,
3482,
18,
4939,
2932,
1546,
13,
18528,
2116,
63,
856,
65,
273,
460,
775,
30,
293,
273,
18115,
18,
7236,
18,
14872,
12,
350,
16,
16428,
350,
16,
3656,
1601,
33,
1425,
18,
6079,
1601,
16,
279,
390,
633,
33,
7407,
16,
18528,
2116,
33,
6033,
2116,
16,
1681,
1467,
33,
1425,
18,
4385,
1467,
16,
6828,
74,
14968,
33,
1425,
18,
14653,
74,
14968,
16,
6828,
74,
14968,
1937,
33,
1425,
18,
14653,
74,
14968,
1937,
16,
6828,
74,
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,
1208,
14872,
12,
350,
16,
642,
4672,
3536,
4046,
7291,
598,
612,
2553,
635,
642,
327,
612,
261,
280,
599,
309,
7291,
353,
21826,
3397,
13,
3536,
225,
468,
1338,
326,
1122,
7291,
711,
279,
16428,
309,
612,
422,
315,
5254,
6877,
16428,
350,
273,
315,
5254,
6,
469,
30,
16428,
350,
273,
599,
225,
618,
273,
642,
18,
723,
309,
618,
31713,
3674,
6877,
327,
599,
1327,
618,
31713,
7236,
6877,
1930,
18115,
18,
7236,
3419,
273,
642,
18,
7407,
309,
3419,
316,
7566,
1031,
69,
5908,
3113,
315,
1031,
69,
6,
4672,
18528,
2116,
273,
12528,
5206,
6877,
642,
18,
5964,
97,
1327,
3419,
31713,
8464,
6877,
18528,
2116,
273,
12528,
72,
1752,
6877,
642,
18,
2
] |
self.tags.append(self.tag_bold)
|
self.tags.append(parent.tag_bold)
|
def handle_starttag(self, tag, attrs): self.flush() if tag in ('h1', 'h2', 'h3', 'h4'): self._append(u'\n\n') self.tags.append(self.tag_big) elif tag == 'p' or tag == 'br' or tag == 'div': self.tags = [] self._append(u'\n') self.slurp_space = True elif tag == 'tr': self.tags = [] self._append(u'\n') self.slurp_space = True elif tag == 'td': self._append(u'\t') elif tag == 'i' or tag == 'em': self.tags.append(self.tag_emph) elif tag == 'b' or tag == 'strong' or tag == 'bold': self.tags.append(self.tag_bold) elif tag == 'hr': self._append(u'\n') elif tag == 'body': self.in_body = True elif tag == 'style': self.omit += 1 elif tag == 'meta' and not self.in_body: self.handle_meta(attrs) elif tag == 'img': attrs = dict(attrs) if 'alt' in attrs and attrs['alt'].strip(): self.handle_data(u'[IMAGE: ') self.handle_data(attrs['alt'].strip().upper()) self.handle_data(u']') else: self.handle_data(u'[IMAGE]')
|
213738e766cfb357f1771bca6ca20230e5532367 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14744/213738e766cfb357f1771bca6ca20230e5532367/model_text.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
1937,
2692,
12,
2890,
16,
1047,
16,
3422,
4672,
365,
18,
11330,
1435,
309,
1047,
316,
7707,
76,
21,
2187,
296,
76,
22,
2187,
296,
76,
23,
2187,
296,
76,
24,
11,
4672,
365,
6315,
6923,
12,
89,
8314,
82,
64,
82,
6134,
365,
18,
4156,
18,
6923,
12,
2890,
18,
2692,
67,
14002,
13,
1327,
1047,
422,
296,
84,
11,
578,
1047,
422,
296,
2848,
11,
578,
1047,
422,
296,
2892,
4278,
365,
18,
4156,
273,
5378,
365,
6315,
6923,
12,
89,
8314,
82,
6134,
365,
18,
2069,
295,
84,
67,
2981,
273,
1053,
1327,
1047,
422,
296,
313,
4278,
365,
18,
4156,
273,
5378,
365,
6315,
6923,
12,
89,
8314,
82,
6134,
365,
18,
2069,
295,
84,
67,
2981,
273,
1053,
1327,
1047,
422,
296,
4465,
4278,
365,
6315,
6923,
12,
89,
8314,
88,
6134,
1327,
1047,
422,
296,
77,
11,
578,
1047,
422,
296,
351,
4278,
365,
18,
4156,
18,
6923,
12,
2890,
18,
2692,
67,
351,
844,
13,
1327,
1047,
422,
296,
70,
11,
578,
1047,
422,
296,
9110,
11,
578,
1047,
422,
296,
16390,
4278,
365,
18,
4156,
18,
6923,
12,
2938,
18,
2692,
67,
16390,
13,
1327,
1047,
422,
296,
7256,
4278,
365,
6315,
6923,
12,
89,
8314,
82,
6134,
1327,
1047,
422,
296,
3432,
4278,
365,
18,
267,
67,
3432,
273,
1053,
1327,
1047,
422,
296,
4060,
4278,
365,
18,
362,
305,
1011,
404,
1327,
1047,
422,
296,
3901,
11,
471,
486,
365,
18,
267,
67,
3432,
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,
1640,
67,
1937,
2692,
12,
2890,
16,
1047,
16,
3422,
4672,
365,
18,
11330,
1435,
309,
1047,
316,
7707,
76,
21,
2187,
296,
76,
22,
2187,
296,
76,
23,
2187,
296,
76,
24,
11,
4672,
365,
6315,
6923,
12,
89,
8314,
82,
64,
82,
6134,
365,
18,
4156,
18,
6923,
12,
2890,
18,
2692,
67,
14002,
13,
1327,
1047,
422,
296,
84,
11,
578,
1047,
422,
296,
2848,
11,
578,
1047,
422,
296,
2892,
4278,
365,
18,
4156,
273,
5378,
365,
6315,
6923,
12,
89,
8314,
82,
6134,
365,
18,
2069,
295,
84,
67,
2981,
273,
1053,
1327,
1047,
422,
296,
313,
4278,
365,
18,
4156,
273,
5378,
365,
6315,
6923,
12,
89,
8314,
82,
6134,
365,
18,
2
] |
Warning: font directory '...test_main.py' does not exist.
|
Warning: font directory '...test_main...' does not exist.
|
>>> def setupStub(fontdir):
|
eb57419e6f0cb688eb32047598a81a30f930f1e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/eb57419e6f0cb688eb32047598a81a30f930f1e2/test_main.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
3875,
11974,
12,
5776,
1214,
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,
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
5776,
1214,
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
] |
allpkg = [ pkgtup for (hdr, pkgtup, idx) in self._search(name=name, arch=arch) ]
|
allpkg = [ po.pkgtup for po in self._search(name=name, arch=arch) ]
|
def returnNewestByNameArch(self, naTup=None, patterns=None):
|
32e0bb632f841936571ce3db59a89332c96ea39c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5445/32e0bb632f841936571ce3db59a89332c96ea39c/rpmsack.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
327,
1908,
395,
5911,
12269,
12,
2890,
16,
9583,
56,
416,
33,
7036,
16,
6884,
33,
7036,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
327,
1908,
395,
5911,
12269,
12,
2890,
16,
9583,
56,
416,
33,
7036,
16,
6884,
33,
7036,
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
] |
return self.parent()(self._singular_().gcd(f._singular_()))
|
P._singular_().set_ring() return P(self._singular_().gcd(f._singular_()))
|
def gcd(self, f): """ Compute the greatest common divisor of this polynomial and f.
|
19c1ae930c46317fcba1a822e38435a3b8cf71a9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/19c1ae930c46317fcba1a822e38435a3b8cf71a9/multi_polynomial_element.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14876,
12,
2890,
16,
284,
4672,
3536,
8155,
326,
18825,
395,
2975,
15013,
434,
333,
16991,
471,
284,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
14876,
12,
2890,
16,
284,
4672,
3536,
8155,
326,
18825,
395,
2975,
15013,
434,
333,
16991,
471,
284,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return self.canonical_name.get(user, '-')
|
value = self.canonical_name.get(user, '-') if isinstance(value, str): value = value.decode(self.default_encoding) return value
|
def getUserCanonicalName(self, user): return self.canonical_name.get(user, '-')
|
4eb8964dd591fec41e0955b4e7187f0e7e52f162 /local1/tlutelli/iss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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4735,
15512,
461,
12,
2890,
16,
729,
4672,
327,
365,
18,
18288,
67,
529,
18,
588,
12,
1355,
16,
4014,
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
] |
newdtype = (name, data.dtype)
|
def add_column(self, name, data, unit='', null='', description='', \ format=None, dtype=None): ''' Add a column to the table
|
715e59fc8e55ba0d03505e01dd63a64ca0c65562 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13233/715e59fc8e55ba0d03505e01dd63a64ca0c65562/basetable.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
2827,
12,
2890,
16,
508,
16,
501,
16,
2836,
2218,
2187,
446,
2218,
2187,
2477,
2218,
2187,
521,
740,
33,
7036,
16,
3182,
33,
7036,
4672,
9163,
1436,
279,
1057,
358,
326,
1014,
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,
527,
67,
2827,
12,
2890,
16,
508,
16,
501,
16,
2836,
2218,
2187,
446,
2218,
2187,
2477,
2218,
2187,
521,
740,
33,
7036,
16,
3182,
33,
7036,
4672,
9163,
1436,
279,
1057,
358,
326,
1014,
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
] |
|
>>> check(y.trace(0, 1));
|
>>> check(y.trace(0, 0));
|
def _numarray_tests(): ''' >>> from numpy_ext import * >>> x = new_array() >>> y = x.copy() >>> p = _printer() >>> check = p.check >>> exercise_numarray(x, p) >>> check(y.astype()); >>> check(y.argmax()); >>> check(y.argmax(0)); >>> check(y.argmin()); >>> check(y.argmin(0)); >>> check(y.argsort()); >>> check(y.argsort(1)); >>> y.byteswap(); >>> check(y); >>> check(y.diagonal()); >>> check(y.diagonal(1)); >>> check(y.diagonal(0, 1)); >>> check(y.diagonal(0, 1, 0)); >>> check(y.is_c_array()); >>> check(y.isbyteswapped()); >>> check(y.trace()); >>> check(y.trace(1)); >>> check(y.trace(0, 1)); >>> check(y.trace(0, 1, 0)); >>> check(y.new('D')); >>> y.sort(); >>> check(y); >>> check(y.type()); >>> check(y.factory((1.2, 3.4))); >>> check(y.factory((1.2, 3.4), "Double")); >>> check(y.factory((1.2, 3.4), "Double", (1,2,1))); >>> check(y.factory((1.2, 3.4), "Double", (2,1,1), false)); >>> check(y.factory((1.2, 3.4), "Double", (2,), true, true)); >>> p.results [] >>> del p ''' pass
|
d78836b82844e73bca9310699a0c2339eb90f5df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9978/d78836b82844e73bca9310699a0c2339eb90f5df/numpy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2107,
1126,
67,
16341,
13332,
9163,
4080,
628,
3972,
67,
408,
1930,
380,
4080,
619,
273,
394,
67,
1126,
1435,
4080,
677,
273,
619,
18,
3530,
1435,
4080,
293,
273,
389,
30439,
1435,
4080,
866,
273,
293,
18,
1893,
4080,
24165,
67,
2107,
1126,
12,
92,
16,
293,
13,
225,
4080,
866,
12,
93,
18,
689,
388,
10663,
225,
4080,
866,
12,
93,
18,
3175,
1896,
10663,
4080,
866,
12,
93,
18,
3175,
1896,
12,
20,
10019,
225,
4080,
866,
12,
93,
18,
3175,
1154,
10663,
4080,
866,
12,
93,
18,
3175,
1154,
12,
20,
10019,
225,
4080,
866,
12,
93,
18,
1968,
499,
10663,
4080,
866,
12,
93,
18,
1968,
499,
12,
21,
10019,
225,
4080,
677,
18,
3890,
91,
438,
5621,
4080,
866,
12,
93,
1769,
225,
4080,
866,
12,
93,
18,
30130,
10663,
4080,
866,
12,
93,
18,
30130,
12,
21,
10019,
4080,
866,
12,
93,
18,
30130,
12,
20,
16,
404,
10019,
4080,
866,
12,
93,
18,
30130,
12,
20,
16,
404,
16,
374,
10019,
225,
4080,
866,
12,
93,
18,
291,
67,
71,
67,
1126,
10663,
4080,
866,
12,
93,
18,
291,
3890,
91,
438,
1845,
10663,
225,
4080,
866,
12,
93,
18,
5129,
10663,
4080,
866,
12,
93,
18,
5129,
12,
21,
10019,
4080,
866,
12,
93,
18,
5129,
12,
20,
16,
374,
10019,
4080,
866,
12,
93,
18,
5129,
12,
20,
16,
404,
16,
374,
10019,
225,
4080,
866,
12,
93,
18,
2704,
2668,
40,
6134,
1769,
4080,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2107,
1126,
67,
16341,
13332,
9163,
4080,
628,
3972,
67,
408,
1930,
380,
4080,
619,
273,
394,
67,
1126,
1435,
4080,
677,
273,
619,
18,
3530,
1435,
4080,
293,
273,
389,
30439,
1435,
4080,
866,
273,
293,
18,
1893,
4080,
24165,
67,
2107,
1126,
12,
92,
16,
293,
13,
225,
4080,
866,
12,
93,
18,
689,
388,
10663,
225,
4080,
866,
12,
93,
18,
3175,
1896,
10663,
4080,
866,
12,
93,
18,
3175,
1896,
12,
20,
10019,
225,
4080,
866,
12,
93,
18,
3175,
1154,
10663,
4080,
866,
12,
93,
18,
3175,
1154,
12,
20,
10019,
225,
4080,
866,
12,
93,
18,
1968,
499,
10663,
4080,
866,
12,
93,
18,
1968,
499,
12,
21,
10019,
225,
4080,
2
] |
return tuple(temp_list)
|
retval = tuple(temp_list)
|
def _copy(self, obj): """ <Purpose> Create a deep copy of an object without using the python 'copy' module. Using copy.deepcopy() doesn't work because builtins like id and hasattr aren't available when this is called. <Arguments> self obj The object to make a deep copy of. <Exceptions> TypeError If an object is encountered that we don't know how to make a copy of. NamespaceViolationError If an unexpected error occurs while copying. This isn't the greatest solution, but in general the idea is we just need to abort the wrapped function call. <Side Effects> A new reference is created to every non-simple type of object. That is, everything except objects of type str, unicode, int, etc. <Returns> The deep copy of obj. """ try: # types.InstanceType is included because the user can provide an instance # of a class of their own in the list of callback args to settimer. if _is_in(type(obj), [str, unicode, int, long, float, complex, bool, types.NoneType, types.FunctionType, types.LambdaType, types.MethodType, types.InstanceType]): return obj elif _is_in(type(obj), [tuple, list, set, frozenset]): temp_list = [] for item in obj: temp_list.append(self._copy(item)) if type(obj) is tuple: return tuple(temp_list) elif type(obj) is set: return set(temp_list) elif type(obj) is frozenset: return frozenset(temp_list) else: return temp_list elif type(obj) is dict: temp_dict = {} for key in obj: temp_dict[key] = self._copy(obj[key]) return temp_dict # We don't copy certain objects. This is because copying an emulated file # object, for example, will cause the destructor of the original one to # be invoked, which will close the actual underlying file. As the object # is wrapped and the client does not have access to it, it's safe to not # wrap it. elif isinstance(obj, (NamespaceObjectWrapper, emulfile.emulated_file, emulcomm.emulated_socket, thread.LockType, virtual_namespace.VirtualNamespace)): return obj else: raise TypeError("_copy is not implemented for objects of type " + str(type(obj))) except Exception, e: self._handle_violation("_copy failed on " + str(obj) + " with message " + str(e))
|
c959c9c65443dac1f3ae7a53dcecaf13328c218e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/c959c9c65443dac1f3ae7a53dcecaf13328c218e/namespace.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3530,
12,
2890,
16,
1081,
4672,
3536,
411,
10262,
4150,
34,
1788,
279,
4608,
1610,
434,
392,
733,
2887,
1450,
326,
5790,
296,
3530,
11,
1605,
18,
11637,
1610,
18,
16589,
3530,
1435,
3302,
1404,
1440,
2724,
6650,
2679,
3007,
612,
471,
3859,
11526,
1404,
2319,
1347,
333,
353,
2566,
18,
411,
4628,
34,
365,
1081,
1021,
733,
358,
1221,
279,
4608,
1610,
434,
18,
411,
11416,
34,
3580,
971,
392,
733,
353,
9919,
716,
732,
2727,
1404,
5055,
3661,
358,
1221,
279,
1610,
434,
18,
6005,
11683,
668,
971,
392,
9733,
555,
9938,
1323,
8933,
18,
1220,
5177,
1404,
326,
18825,
395,
6959,
16,
1496,
316,
7470,
326,
21463,
353,
732,
2537,
1608,
358,
6263,
326,
5805,
445,
745,
18,
411,
8895,
30755,
87,
34,
432,
394,
2114,
353,
2522,
358,
3614,
1661,
17,
9647,
618,
434,
733,
18,
12466,
353,
16,
7756,
1335,
2184,
434,
618,
609,
16,
5252,
16,
509,
16,
5527,
18,
411,
1356,
34,
1021,
4608,
1610,
434,
1081,
18,
3536,
775,
30,
468,
1953,
18,
29123,
353,
5849,
2724,
326,
729,
848,
5615,
392,
791,
468,
434,
279,
667,
434,
3675,
4953,
316,
326,
666,
434,
1348,
833,
358,
444,
12542,
18,
309,
389,
291,
67,
267,
12,
723,
12,
2603,
3631,
306,
701,
16,
5252,
16,
509,
16,
1525,
16,
1431,
16,
7233,
16,
1426,
16,
1953,
18,
7036,
559,
16,
1953,
18,
2083,
559,
16,
1953,
18,
12025,
559,
16,
1953,
18,
21988,
16,
1953,
18,
29123,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3530,
12,
2890,
16,
1081,
4672,
3536,
411,
10262,
4150,
34,
1788,
279,
4608,
1610,
434,
392,
733,
2887,
1450,
326,
5790,
296,
3530,
11,
1605,
18,
11637,
1610,
18,
16589,
3530,
1435,
3302,
1404,
1440,
2724,
6650,
2679,
3007,
612,
471,
3859,
11526,
1404,
2319,
1347,
333,
353,
2566,
18,
411,
4628,
34,
365,
1081,
1021,
733,
358,
1221,
279,
4608,
1610,
434,
18,
411,
11416,
34,
3580,
971,
392,
733,
353,
9919,
716,
732,
2727,
1404,
5055,
3661,
358,
1221,
279,
1610,
434,
18,
6005,
11683,
668,
971,
392,
9733,
555,
9938,
1323,
8933,
18,
1220,
5177,
1404,
326,
18825,
395,
6959,
16,
1496,
316,
7470,
326,
21463,
353,
732,
2537,
1608,
358,
6263,
326,
2
] |
parent = None for n in self.n_files.getElementsByTagName('File'): if n.attributes['RelativePath'].nodeValue == path: parent = n break
|
parent = self.n_files_dict.get(path)
|
def AddFileConfig(self, path, config, attrs=None, tools=None): """Adds a configuration to a file.
|
a545a414cae69fb417bf84e22f63558bc438af1a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/a545a414cae69fb417bf84e22f63558bc438af1a/MSVSProject.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
812,
809,
12,
2890,
16,
589,
16,
642,
16,
3422,
33,
7036,
16,
8513,
33,
7036,
4672,
3536,
3655,
279,
1664,
358,
279,
585,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
812,
809,
12,
2890,
16,
589,
16,
642,
16,
3422,
33,
7036,
16,
8513,
33,
7036,
4672,
3536,
3655,
279,
1664,
358,
279,
585,
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
] |
else: urlopen = ClientCookie.urlopen Request = ClientCookie.Request cj = ClientCookie.LWPCookieJar() else: urlopen = urllib2.urlopen Request = urllib2.Request cj = cookielib.LWPCookieJar() if cj is not None: if os.path.isfile(COOKIEFILE): cj.load(COOKIEFILE) if cookielib is not None: opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) urllib2.install_opener(opener) else: opener = ClientCookie.build_opener(ClientCookie.HTTPCookieProcessor(cj)) ClientCookie.install_opener(opener) def getcookies ():
|
cj = cookielib.LWPCookieJar() if cj is not None: if cookielib is not None: opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) urllib2.install_opener(opener) else: opener = ClientCookie.build_opener(ClientCookie.HTTPCookieProcessor(cj)) ClientCookie.install_opener(opener)
|
def get_unread_messages(self): unread = [] for _feed in self.feed_collection: if _feed.new == True or _feed.updated == True: unread.append(_feed) return unread
|
4d647835219aecf1d3f697e499209585351b03a9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10818/4d647835219aecf1d3f697e499209585351b03a9/watch_web_greader.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
318,
896,
67,
6833,
12,
2890,
4672,
19541,
273,
5378,
364,
389,
7848,
316,
365,
18,
7848,
67,
5548,
30,
309,
389,
7848,
18,
2704,
422,
1053,
578,
389,
7848,
18,
7007,
422,
1053,
30,
19541,
18,
6923,
24899,
7848,
13,
327,
19541,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
318,
896,
67,
6833,
12,
2890,
4672,
19541,
273,
5378,
364,
389,
7848,
316,
365,
18,
7848,
67,
5548,
30,
309,
389,
7848,
18,
2704,
422,
1053,
578,
389,
7848,
18,
7007,
422,
1053,
30,
19541,
18,
6923,
24899,
7848,
13,
327,
19541,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
line number is only used for issuing warnings and errors.
|
line number is only used for issuing errors.
|
def _add_list(doc, bullet_token, stack, indent_stack, errors, warnings): """ Add a new list item or field to the DOM tree, with the given bullet or field tag. When necessary, create the associated list. """ # Determine what type of bullet it is. if bullet_token.contents[-1] == '-': list_type = 'ulist' elif bullet_token.contents[-1] == '.': list_type = 'olist' elif bullet_token.contents[-1] == ':': list_type = 'fieldlist' else: raise AssertionError('Bad Bullet: %r' % bullet_token.contents) # Is this a new list? newlist = 0 if stack[-1].tagName != list_type: newlist = 1 elif list_type == 'olist' and stack[-1].tagName == 'olist': old_listitem = stack[-1].childNodes[-1] old_bullet = old_listitem.getAttribute("bullet").split('.')[:-1] new_bullet = bullet_token.contents.split('.')[:-1] if (new_bullet[:-1] != old_bullet[:-1] or int(new_bullet[-1]) != int(old_bullet[-1])+1): newlist = 1 # Create the new list. if newlist: if stack[-1].tagName in ('ulist', 'olist', 'fieldlist'): stack.pop() indent_stack.pop() if (list_type != 'fieldlist' and indent_stack[-1] is not None and bullet_token.indent == indent_stack[-1]): # Ignore this error if there's text on the same line as # the comment-opening quote -- epydoc can't reliably # determine the indentation for that line. if bullet_token.startline != 1 or bullet_token.indent != 0: estr = "Lists must be indented." errors.append(StructuringError(estr, bullet_token)) if list_type == 'fieldlist': # Fieldlist should be at the top-level. for tok in stack[2:]: if tok.tagName != "section": estr = "Fields must be at the top level." errors.append(StructuringError(estr, bullet_token)) break stack[2:] = [] indent_stack[2:] = [] # Add the new list. lst = doc.createElement(list_type) stack[-1].appendChild(lst) stack.append(lst) indent_stack.append(bullet_token.indent) if list_type == 'olist': start = bullet_token.contents.split('.')[:-1] if start != '1': lst.setAttribute("start", start[-1]) # Fields are treated somewhat specially: A "fieldlist" # node is created to make the parsing simpler, but fields # are adjoined directly into the "epytext" node, not into # the "fieldlist" node. if list_type == 'fieldlist': li = doc.createElement("field") token_words = bullet_token.contents[1:-1].split(None, 1) tag_elt = doc.createElement("tag") tag_elt.appendChild(doc.createTextNode(token_words[0])) li.appendChild(tag_elt) if len(token_words) > 1: arg_elt = doc.createElement("arg") arg_elt.appendChild(doc.createTextNode(token_words[1])) li.appendChild(arg_elt) else: li = doc.createElement("li") if list_type == 'olist': li.setAttribute("bullet", bullet_token.contents) # Add the bullet. stack[-1].appendChild(li) stack.append(li) indent_stack.append(None)
|
36ace726c8fc4e9c1a450d16c75087d594ead7cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/36ace726c8fc4e9c1a450d16c75087d594ead7cf/epytext.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
67,
1098,
12,
2434,
16,
31650,
67,
2316,
16,
2110,
16,
3504,
67,
3772,
16,
1334,
16,
5599,
4672,
3536,
1436,
279,
394,
666,
761,
578,
652,
358,
326,
4703,
2151,
16,
598,
326,
864,
31650,
578,
652,
1047,
18,
225,
5203,
4573,
16,
752,
326,
3627,
666,
18,
3536,
468,
10229,
4121,
618,
434,
31650,
518,
353,
18,
309,
31650,
67,
2316,
18,
3980,
18919,
21,
65,
422,
4014,
30,
666,
67,
723,
273,
296,
30994,
11,
1327,
31650,
67,
2316,
18,
3980,
18919,
21,
65,
422,
2611,
30,
666,
67,
723,
273,
296,
355,
376,
11,
1327,
31650,
67,
2316,
18,
3980,
18919,
21,
65,
422,
3921,
30,
666,
67,
723,
273,
296,
1518,
1098,
11,
469,
30,
1002,
12068,
2668,
6434,
605,
19994,
30,
738,
86,
11,
738,
31650,
67,
2316,
18,
3980,
13,
225,
468,
2585,
333,
279,
394,
666,
35,
394,
1098,
273,
374,
309,
2110,
18919,
21,
8009,
2692,
461,
480,
666,
67,
723,
30,
394,
1098,
273,
404,
1327,
666,
67,
723,
422,
296,
355,
376,
11,
471,
2110,
18919,
21,
8009,
2692,
461,
422,
296,
355,
376,
4278,
1592,
67,
1098,
1726,
273,
2110,
18919,
21,
8009,
3624,
3205,
18919,
21,
65,
1592,
67,
70,
19994,
273,
1592,
67,
1098,
1726,
18,
588,
1499,
2932,
70,
19994,
20387,
4939,
2668,
1093,
13,
10531,
17,
21,
65,
394,
67,
70,
19994,
273,
31650,
67,
2316,
18,
3980,
18,
4939,
2668,
1093,
13,
10531,
17,
21,
65,
309,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
67,
1098,
12,
2434,
16,
31650,
67,
2316,
16,
2110,
16,
3504,
67,
3772,
16,
1334,
16,
5599,
4672,
3536,
1436,
279,
394,
666,
761,
578,
652,
358,
326,
4703,
2151,
16,
598,
326,
864,
31650,
578,
652,
1047,
18,
225,
5203,
4573,
16,
752,
326,
3627,
666,
18,
3536,
468,
10229,
4121,
618,
434,
31650,
518,
353,
18,
309,
31650,
67,
2316,
18,
3980,
18919,
21,
65,
422,
4014,
30,
666,
67,
723,
273,
296,
30994,
11,
1327,
31650,
67,
2316,
18,
3980,
18919,
21,
65,
422,
2611,
30,
666,
67,
723,
273,
296,
355,
376,
11,
1327,
31650,
67,
2316,
18,
3980,
18919,
21,
65,
422,
3921,
30,
666,
67,
723,
273,
296,
1518,
2
] |
tuple = urlparse.urlparse(sound_file.get_uri()) path = tuple[2] generator.set_folder(os.path.dirname(path))
|
generator.set_folder(sound_file.get_base_path())
|
def generate_filename(self, sound_file): self.gconf.clear_cache() output_type = self.get_string("output-mime-type") output_suffix = { "audio/x-vorbis": ".ogg", "audio/x-flac": ".flac", "audio/x-wav": ".wav", "audio/mpeg": ".mp3", }.get(output_type, None)
|
00c7950d95780419f81f22b1df74d95c2287e517 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2369/00c7950d95780419f81f22b1df74d95c2287e517/soundconverter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
3459,
12,
2890,
16,
14190,
67,
768,
4672,
365,
18,
75,
3923,
18,
8507,
67,
2493,
1435,
876,
67,
723,
273,
365,
18,
588,
67,
1080,
2932,
2844,
17,
11757,
17,
723,
7923,
876,
67,
8477,
273,
288,
315,
11509,
19,
92,
17,
90,
16640,
291,
6877,
3552,
23972,
3113,
315,
11509,
19,
92,
17,
2242,
1077,
6877,
3552,
2242,
1077,
3113,
315,
11509,
19,
92,
17,
24801,
6877,
3552,
24801,
3113,
315,
11509,
19,
19951,
6877,
3552,
1291,
23,
3113,
289,
18,
588,
12,
2844,
67,
723,
16,
599,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
3459,
12,
2890,
16,
14190,
67,
768,
4672,
365,
18,
75,
3923,
18,
8507,
67,
2493,
1435,
876,
67,
723,
273,
365,
18,
588,
67,
1080,
2932,
2844,
17,
11757,
17,
723,
7923,
876,
67,
8477,
273,
288,
315,
11509,
19,
92,
17,
90,
16640,
291,
6877,
3552,
23972,
3113,
315,
11509,
19,
92,
17,
2242,
1077,
6877,
3552,
2242,
1077,
3113,
315,
11509,
19,
92,
17,
24801,
6877,
3552,
24801,
3113,
315,
11509,
19,
19951,
6877,
3552,
1291,
23,
3113,
289,
18,
588,
12,
2844,
67,
723,
16,
599,
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
] |
y = ((R[:-1] - R[-1])**2).sum(1).min()**0.5
|
y = ((R[:-nads] - R[-nads])**2).sum(1).min()**0.5
|
def build(): p = OptionParser(usage='%prog [options] [ads@]surf [output file]', version='%prog 0.1', description='Example ads/surf: CO@2x2Ru0001') p.add_option('-l', '--layers', type='int', default=4, help='Number of layers.') p.add_option('-v', '--vacuum', type='float', default=5.0, help='Vacuum.') p.add_option('-x', '--crystal-structure', help='Crystal structure.', choices=['sc', 'fcc', 'bcc', 'hcp']) p.add_option('-a', '--lattice-constant', type='float', help='Lattice constant in Angstrom.') p.add_option('--c_over_a', type='float', help='c/a ratio.') p.add_option('--height', type='float', help='Height of adsorbate over surface.') p.add_option('--distance', type='float', help='Distance between adsorbate and nearest surface atoms.') p.add_option('--site', help='Adsorption site.', choices=['fcc', 'hcc', 'hollow', 'bridge']) p.add_option('-M', '--magnetic-moment', type='float', default=0.0, help='Magnetic moment.') p.add_option('-G', '--gui', action='store_true', help="Pop up ASE's GUI.") opt, args = p.parse_args() if not 1 <= len(args) <= 2: p.error("incorrect number of arguments") if '@' in args[0]: ads, surf = args[0].split('@') else: ads = None surf = args[0] if surf[0].isdigit(): i1 = surf.index('x') n = int(surf[:i1]) i2 = i1 + 1 while surf[i2].isdigit(): i2 += 1 m = int(surf[i1 + 1:i2]) surf = surf[i2:] else: n = 1 m = 1 if surf[-1].isdigit(): if surf[1].isdigit(): face = surf[1:] surf = surf[0] else: face = surf[2:] surf = surf[:2] else: face = None Z = atomic_numbers[surf] state = reference_states[Z] if opt.crystal_structure: x = opt.crystal_structure else: x = state['symmetry'].lower() if opt.lattice_constant: a = opt.lattice_constant else: a = estimate_lattice_constant(surf, x, opt.c_over_a) if x == 'fcc': if face is None: face = '111' slab = fcc111(surf, (n, m, opt.layers), a, opt.vacuum) r = a / np.sqrt(2) / 2 elif x == 'bcc': if face is None: face = '110' slab = bcc110(surf, (n, m, opt.layers), a, opt.vacuum) r = a * np.sqrt(3) / 4 elif x == 'hcp': if face is None: face = '0001' slab = hcp0001(surf, (n, m, opt.layers), a, opt.c_over_a, opt.vacuum) r = a / 2 else: raise NotImplementedError magmom = opt.magnetic_moment if magmom is None: magmom = {'Ni': 0.6, 'Co': 1.2, 'Fe': 2.3}.get(surf, 0.0) slab.set_initial_magnetic_moments([magmom] * len(slab)) slab.pbc = 1 name = '%dx%d%s%s' % (n, m, surf, face) if ads: site = 'ontop' if '-' in ads: site, ads = ads.split('-') name = site + '-' + ads + '@' + name symbols = string2symbols(ads) if len(symbols) == 1: ads = Atoms(ads) else: ads = molecules(ads) add_adsorbate(slab, ads, 0.0, site) d = opt.distance if d is None: d = r + covalent_radii[ads[0].number] / 2 h = opt.height if h is None: R = slab.positions y = ((R[:-1] - R[-1])**2).sum(1).min()**0.5 print y h = (d**2 - y**2)**0.5 print h else: assert opt.distance is None slab[-1].z += h if len(args) == 2: write(args[1], slab) elif not opt.gui: write(name + '.traj', slab) if opt.gui: view(slab)
|
6c55c86b784d7854b677ee5f0d833a95898655bc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5735/6c55c86b784d7854b677ee5f0d833a95898655bc/adsorb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
13332,
293,
273,
18862,
12,
9167,
28713,
14654,
225,
306,
2116,
65,
306,
17318,
36,
65,
10050,
74,
306,
2844,
585,
65,
2187,
1177,
28713,
14654,
374,
18,
21,
2187,
2477,
2218,
10908,
12767,
19,
10050,
74,
30,
7910,
36,
22,
92,
22,
54,
89,
13304,
6134,
293,
18,
1289,
67,
3482,
2668,
17,
80,
2187,
3534,
10396,
2187,
618,
2218,
474,
2187,
805,
33,
24,
16,
2809,
2218,
1854,
434,
6623,
1093,
13,
293,
18,
1289,
67,
3482,
2668,
17,
90,
2187,
3534,
90,
1077,
89,
379,
2187,
618,
2218,
5659,
2187,
805,
33,
25,
18,
20,
16,
2809,
2218,
58,
1077,
89,
379,
1093,
13,
293,
18,
1289,
67,
3482,
2668,
17,
92,
2187,
3534,
3353,
31365,
17,
7627,
2187,
2809,
2218,
12893,
31365,
3695,
1093,
16,
7246,
33,
3292,
1017,
2187,
296,
74,
952,
2187,
296,
31345,
2187,
296,
76,
4057,
19486,
293,
18,
1289,
67,
3482,
2668,
17,
69,
2187,
3534,
80,
24966,
17,
14384,
2187,
618,
2218,
5659,
2187,
2809,
2218,
48,
24966,
5381,
316,
26956,
334,
520,
1093,
13,
293,
18,
1289,
67,
3482,
2668,
413,
71,
67,
1643,
67,
69,
2187,
618,
2218,
5659,
2187,
2809,
2218,
71,
19,
69,
7169,
1093,
13,
293,
18,
1289,
67,
3482,
2668,
413,
4210,
2187,
618,
2218,
5659,
2187,
2809,
2218,
2686,
434,
1261,
2467,
70,
340,
1879,
9034,
1093,
13,
293,
18,
1289,
67,
3482,
2668,
413,
8969,
2187,
618,
2218,
5659,
2187,
2809,
2218,
7200,
3086,
1261,
2467,
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,
1361,
13332,
293,
273,
18862,
12,
9167,
28713,
14654,
225,
306,
2116,
65,
306,
17318,
36,
65,
10050,
74,
306,
2844,
585,
65,
2187,
1177,
28713,
14654,
374,
18,
21,
2187,
2477,
2218,
10908,
12767,
19,
10050,
74,
30,
7910,
36,
22,
92,
22,
54,
89,
13304,
6134,
293,
18,
1289,
67,
3482,
2668,
17,
80,
2187,
3534,
10396,
2187,
618,
2218,
474,
2187,
805,
33,
24,
16,
2809,
2218,
1854,
434,
6623,
1093,
13,
293,
18,
1289,
67,
3482,
2668,
17,
90,
2187,
3534,
90,
1077,
89,
379,
2187,
618,
2218,
5659,
2187,
805,
33,
25,
18,
20,
16,
2809,
2218,
58,
1077,
89,
379,
1093,
13,
293,
18,
1289,
67,
3482,
2668,
17,
92,
2187,
3534,
2
] |
sage: B = J.free_module(); B Free module of degree 6 and rank 6 over Integer Ring User basis matrix: [ 1 0 0 0 0 0] [ 0 1 0 0 0 0] [ 0 0 1 0 0 0] [10/11 6/11 7/11 1/11 0 0] [ 7/11 1/11 1/11 0 1/11 0] [ 7/11 8/11 2/11 1/11 1/11 1/11]
|
sage: B = J.free_module() sage: B.echelonized_basis_matrix() [ 1/11 0 0 7/11 1/11 1/11] [ 0 1/11 0 1/11 1/11 5/11] [ 0 0 1/11 5/11 4/11 10/11] [ 0 0 0 1 0 0] [ 0 0 0 0 1 0] [ 0 0 0 0 0 1]
|
def free_module(self): """ Return the free ZZ-module contained in the vector space associated to the ambient number field, that corresponds to this ideal.
|
1500189e7c96fb63b9ce3a0b2e9857b8fcf2164f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/1500189e7c96fb63b9ce3a0b2e9857b8fcf2164f/number_field_ideal.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4843,
67,
2978,
12,
2890,
4672,
3536,
2000,
326,
4843,
2285,
62,
17,
2978,
7542,
316,
326,
3806,
3476,
3627,
358,
326,
13232,
1979,
1300,
652,
16,
716,
13955,
358,
333,
23349,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4843,
67,
2978,
12,
2890,
4672,
3536,
2000,
326,
4843,
2285,
62,
17,
2978,
7542,
316,
326,
3806,
3476,
3627,
358,
326,
13232,
1979,
1300,
652,
16,
716,
13955,
358,
333,
23349,
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
] |
if copyfromrevs.has_key(revnr): copyfromrevs[revnr] = filedict.keys()[:]
|
if copyfromrevs.has_key(revnr): copyfromrevs[revnr] = filedict.keys()[:]
|
def execute( self, dumpfilename ): """ Print file list of a dump file.
|
8a5482d11e10f6d000145d13fc43ddefaf704519 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13212/8a5482d11e10f6d000145d13fc43ddefaf704519/tools.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
365,
16,
4657,
3459,
262,
30,
3536,
3038,
585,
666,
434,
279,
4657,
585,
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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
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
365,
16,
4657,
3459,
262,
30,
3536,
3038,
585,
666,
434,
279,
4657,
585,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return myHist, timestamps, query_time
|
return lines, myHist, timestamps, query_time
|
def execute_unreviewed_changes_query(db): query = """ SELECT page_id,page_title,page_latest,fp_stable, rev_len, rev_timestamp FROM page,flaggedpages, revision WHERE fp_page_id=page_id AND page_latest<>fp_stable AND page_namespace=0 AND rev_id=page_latest ORDER BY rev_timestamp; """ cursor = db.cursor() cursor.execute( 'use dewiki_p' ) start = time.time() cursor.execute( query ) end = time.time() query_time = end - start lines = cursor.fetchall() today = datetime.date.today() now = datetime.datetime.now() now_unix = time.mktime( now.timetuple() ) timestamps = [] ll = lines[0][-1] myHist = [0 for i in range(1000)] for l in lines: ll = l[-1] tuple = time.strptime(ll, "%Y%m%d%H%M%S") unix_lag = now_unix - time.mktime( tuple ) myHist[ int(unix_lag) / (3600*24) ] += 1 timestamps.append( unix_lag ) #shorten myHist a bit so that there are fewer zeros i= 0 for entry in reversed( myHist ): if entry != 0: break i += 1 myHist = myHist[ : 1000-i] return myHist, timestamps, query_time
|
55c2d5d3119c95218884da44fabf535e76d954c2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14207/55c2d5d3119c95218884da44fabf535e76d954c2/replag_lib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
318,
16041,
329,
67,
6329,
67,
2271,
12,
1966,
4672,
843,
273,
3536,
9111,
1363,
67,
350,
16,
2433,
67,
2649,
16,
2433,
67,
13550,
16,
7944,
67,
15021,
16,
5588,
67,
1897,
16,
5588,
67,
5508,
4571,
1363,
16,
6420,
2423,
7267,
16,
6350,
4852,
4253,
67,
2433,
67,
350,
33,
2433,
67,
350,
4116,
1363,
67,
13550,
29667,
7944,
67,
15021,
4116,
1363,
67,
4937,
33,
20,
4116,
5588,
67,
350,
33,
2433,
67,
13550,
10205,
6953,
5588,
67,
5508,
31,
3536,
3347,
273,
1319,
18,
9216,
1435,
3347,
18,
8837,
12,
296,
1202,
302,
359,
6169,
67,
84,
11,
262,
282,
787,
273,
813,
18,
957,
1435,
3347,
18,
8837,
12,
843,
262,
679,
273,
813,
18,
957,
1435,
843,
67,
957,
273,
679,
300,
787,
2362,
273,
3347,
18,
5754,
454,
1435,
225,
10074,
273,
3314,
18,
712,
18,
30064,
1435,
2037,
273,
3314,
18,
6585,
18,
3338,
1435,
2037,
67,
21136,
273,
813,
18,
24816,
957,
12,
2037,
18,
8584,
278,
2268,
1435,
225,
262,
225,
11267,
273,
5378,
6579,
273,
2362,
63,
20,
6362,
17,
21,
65,
3399,
8648,
273,
306,
20,
364,
277,
316,
1048,
12,
18088,
25887,
364,
328,
316,
2362,
30,
6579,
273,
328,
18919,
21,
65,
3193,
273,
813,
18,
701,
10650,
12,
2906,
16,
2213,
61,
9,
81,
9,
72,
9,
44,
9,
49,
9,
55,
7923,
9753,
67,
22532,
273,
2037,
67,
21136,
300,
813,
18,
24816,
957,
12,
3193,
262,
3399,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
318,
16041,
329,
67,
6329,
67,
2271,
12,
1966,
4672,
843,
273,
3536,
9111,
1363,
67,
350,
16,
2433,
67,
2649,
16,
2433,
67,
13550,
16,
7944,
67,
15021,
16,
5588,
67,
1897,
16,
5588,
67,
5508,
4571,
1363,
16,
6420,
2423,
7267,
16,
6350,
4852,
4253,
67,
2433,
67,
350,
33,
2433,
67,
350,
4116,
1363,
67,
13550,
29667,
7944,
67,
15021,
4116,
1363,
67,
4937,
33,
20,
4116,
5588,
67,
350,
33,
2433,
67,
13550,
10205,
6953,
5588,
67,
5508,
31,
3536,
3347,
273,
1319,
18,
9216,
1435,
3347,
18,
8837,
12,
296,
1202,
302,
359,
6169,
67,
84,
11,
262,
282,
787,
273,
813,
18,
957,
1435,
3347,
18,
8837,
12,
843,
262,
2
] |
def GET(self, id, action_name):
|
def GET(self):
|
def GET(self, id, action_name): ''' Retrieve a map of all repository IDs to their associated synchronization schedules.
|
bf585b29f96375917499d850d93859e00088c4fd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/bf585b29f96375917499d850d93859e00088c4fd/repositories.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4978,
12,
2890,
4672,
9163,
10708,
279,
852,
434,
777,
3352,
7115,
358,
3675,
3627,
24488,
26720,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4978,
12,
2890,
4672,
9163,
10708,
279,
852,
434,
777,
3352,
7115,
358,
3675,
3627,
24488,
26720,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
elif ' ' <= c <= '~': return c else: return repr(c)[1:-1]
|
class ReadlineError(exceptions.Exception): pass
|
def quote_char(c): if c in printable_chars_in_codepage: return c elif ' ' <= c <= '~': return c else: return repr(c)[1:-1]
|
fb08d6540fbf4459d2f68c94f7539db2b7709668 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12063/fb08d6540fbf4459d2f68c94f7539db2b7709668/pyreadline.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3862,
67,
3001,
12,
71,
4672,
309,
276,
316,
23474,
67,
7549,
67,
267,
67,
710,
2433,
30,
327,
276,
225,
667,
2720,
1369,
668,
12,
11855,
18,
503,
4672,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3862,
67,
3001,
12,
71,
4672,
309,
276,
316,
23474,
67,
7549,
67,
267,
67,
710,
2433,
30,
327,
276,
225,
667,
2720,
1369,
668,
12,
11855,
18,
503,
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
] |
mod = True
|
modObjectClasses = True if modObjectClasses: mod.append((ldap.MOD_REPLACE, 'objectClass', objectClasses)) if 'hordePrefs' not in res[1][0][1]: prefs = ['identities:' + base64.encodestring( """a:1:{i:0;a:4:{s:2:"id";s:%(fullname_len)s:"%(fullname)s";s:8:"fullname";s:%(fullname_len)s:"%(fullname)s";s:9:"from_addr";s:%(email_len)s:"%(email)s";s:16:"default_identity";s:1:"0";}}""" % {'fullname': Grimoire.Utils.encode(res[1][0][1]['cn'][0], 'utf-8'), 'fullname_len': str(len(Grimoire.Utils.encode(res[1][0][1]['cn'][0], 'utf-8'))), 'email': Grimoire.Utils.encode(res[1][0][1]['mail'][0], 'utf-8'), 'email_len': str(len(Grimoire.Utils.encode(res[1][0][1]['mail'][0], 'utf-8'))) }), 'default_identity:' + base64.encodestring('0')] mod.append((ldap.MOD_REPLACE, 'hordePrefs', prefs))
|
def _call(self, path): conn = self._callWithUnlockedTree( lambda: self._getpath(Grimoire.Types.TreeRoot ).directory.get.parameters(['local', 'ldap', 'admin', 'conn'], cache=True)) oupath = [ "ou="+elem for elem in path[:-1]] # Add 'ou' or 'uid' to all parts of the path baseDn = string.join(Grimoire.Utils.Reverse(['ou=People'] + oupath + ["uid="+path[-1]]) + [conn.realm], ',') args = {'base': baseDn, 'scope': ldap.SCOPE_BASE, 'filterstr': 'uid=*', 'attrlist': ['objectClass']} res = conn.result(conn.search(**args)) objectClasses = list(res[1][0][1]['objectClass']) mod = False if 'hordePerson' not in objectClasses: objectClasses.append('hordePerson') mod = True if 'top' not in objectClasses: objectClasses.append('top') mod = True if mod: conn.modify_s(baseDn, [(ldap.MOD_REPLACE, 'objectClass', objectClasses)]) else: return A(None, "Horde web interface already enabled for account") return A(None, "Horde web interface enabled for account")
|
56a5a5fbe720e08fd5a73ca720c6bdcb84d59253 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9377/56a5a5fbe720e08fd5a73ca720c6bdcb84d59253/horde.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1991,
12,
2890,
16,
589,
4672,
1487,
273,
365,
6315,
1991,
1190,
7087,
329,
2471,
12,
3195,
30,
365,
6315,
588,
803,
12,
20799,
381,
19847,
18,
2016,
18,
2471,
2375,
262,
18,
5149,
18,
588,
18,
3977,
12,
3292,
3729,
2187,
296,
14394,
2187,
296,
3666,
2187,
296,
4646,
17337,
1247,
33,
5510,
3719,
320,
416,
421,
273,
306,
315,
1395,
1546,
15,
10037,
364,
3659,
316,
589,
10531,
17,
21,
13563,
468,
1436,
296,
1395,
11,
578,
296,
1911,
11,
358,
777,
2140,
434,
326,
589,
1026,
19053,
273,
533,
18,
5701,
12,
20799,
381,
19847,
18,
1989,
18,
12650,
12,
3292,
1395,
33,
11227,
11763,
3546,
397,
320,
416,
421,
397,
8247,
1911,
1546,
15,
803,
18919,
21,
65,
5717,
397,
306,
4646,
18,
24056,
6487,
3316,
13,
833,
273,
13666,
1969,
4278,
1026,
19053,
16,
296,
4887,
4278,
8079,
18,
19444,
67,
8369,
16,
296,
2188,
701,
4278,
296,
1911,
33,
14,
2187,
296,
1747,
1098,
4278,
10228,
1612,
797,
14579,
400,
273,
1487,
18,
2088,
12,
4646,
18,
3072,
12,
636,
1968,
3719,
733,
4818,
273,
666,
12,
455,
63,
21,
6362,
20,
6362,
21,
23962,
1612,
797,
19486,
681,
273,
1083,
309,
296,
76,
280,
323,
8346,
11,
486,
316,
733,
4818,
30,
733,
4818,
18,
6923,
2668,
76,
280,
323,
8346,
6134,
681,
921,
4818,
273,
1053,
309,
681,
921,
4818,
30,
681,
18,
6923,
12443,
14394,
18,
6720,
67,
21726,
16,
296,
1612,
797,
2187,
733,
4818,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1991,
12,
2890,
16,
589,
4672,
1487,
273,
365,
6315,
1991,
1190,
7087,
329,
2471,
12,
3195,
30,
365,
6315,
588,
803,
12,
20799,
381,
19847,
18,
2016,
18,
2471,
2375,
262,
18,
5149,
18,
588,
18,
3977,
12,
3292,
3729,
2187,
296,
14394,
2187,
296,
3666,
2187,
296,
4646,
17337,
1247,
33,
5510,
3719,
320,
416,
421,
273,
306,
315,
1395,
1546,
15,
10037,
364,
3659,
316,
589,
10531,
17,
21,
13563,
468,
1436,
296,
1395,
11,
578,
296,
1911,
11,
358,
777,
2140,
434,
326,
589,
1026,
19053,
273,
533,
18,
5701,
12,
20799,
381,
19847,
18,
1989,
18,
12650,
12,
3292,
1395,
33,
11227,
11763,
3546,
397,
320,
416,
421,
397,
8247,
1911,
1546,
2
] |
if self.etag != self.md5:
|
if self.etag != '"%s"' % self.md5:
|
def send_file(self, fp): http_conn = self.bucket.connection.connection headers = {'Content-MD5':self.base64md5} if self.content_type: headers['Content-Type'] = self.content_type headers['Content-Length'] = self.size final_headers = boto.utils.merge_meta(headers, self.metadata); path = '/%s/%s' % (self.bucket.name, self.key) path = urllib.quote(path) self.bucket.connection.add_aws_auth_header(final_headers, 'PUT', path) http_conn.putrequest('PUT', path) for key in final_headers: http_conn.putheader(key,final_headers[key]) http_conn.endheaders() l = fp.read(4096) while len(l) > 0: http_conn.send(l) l = fp.read(4096) response = http_conn.getresponse() body = response.read() if response.status != 200: raise S3ResponseError(response.status, response.reason) self.etag = response.getheader('etag') if self.etag != self.md5: raise S3DataError('Injected data did not return correct MD5')
|
e3c353b5fe697e9ace6b4d5f201f89dcd1dcb70a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1098/e3c353b5fe697e9ace6b4d5f201f89dcd1dcb70a/key.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
768,
12,
2890,
16,
4253,
4672,
1062,
67,
4646,
273,
365,
18,
7242,
18,
4071,
18,
4071,
1607,
273,
13666,
1350,
17,
6188,
25,
4278,
2890,
18,
1969,
1105,
1264,
25,
97,
309,
365,
18,
1745,
67,
723,
30,
1607,
3292,
1350,
17,
559,
3546,
273,
365,
18,
1745,
67,
723,
1607,
3292,
1350,
17,
1782,
3546,
273,
365,
18,
1467,
727,
67,
2485,
273,
17228,
18,
5471,
18,
2702,
67,
3901,
12,
2485,
16,
365,
18,
4165,
1769,
589,
273,
27140,
87,
5258,
87,
11,
738,
261,
2890,
18,
7242,
18,
529,
16,
365,
18,
856,
13,
589,
273,
11527,
18,
6889,
12,
803,
13,
365,
18,
7242,
18,
4071,
18,
1289,
67,
6850,
67,
1944,
67,
3374,
12,
6385,
67,
2485,
16,
296,
4762,
2187,
589,
13,
1062,
67,
4646,
18,
458,
2293,
2668,
4762,
2187,
589,
13,
364,
498,
316,
727,
67,
2485,
30,
1062,
67,
4646,
18,
458,
3374,
12,
856,
16,
6385,
67,
2485,
63,
856,
5717,
1062,
67,
4646,
18,
409,
2485,
1435,
328,
273,
4253,
18,
896,
12,
24,
5908,
26,
13,
1323,
562,
12,
80,
13,
405,
374,
30,
1062,
67,
4646,
18,
4661,
12,
80,
13,
328,
273,
4253,
18,
896,
12,
24,
5908,
26,
13,
766,
273,
1062,
67,
4646,
18,
588,
2740,
1435,
1417,
273,
766,
18,
896,
1435,
309,
766,
18,
2327,
480,
4044,
30,
1002,
348,
23,
28551,
12,
2740,
18,
2327,
16,
766,
18,
10579,
13,
365,
18,
20788,
273,
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,
1366,
67,
768,
12,
2890,
16,
4253,
4672,
1062,
67,
4646,
273,
365,
18,
7242,
18,
4071,
18,
4071,
1607,
273,
13666,
1350,
17,
6188,
25,
4278,
2890,
18,
1969,
1105,
1264,
25,
97,
309,
365,
18,
1745,
67,
723,
30,
1607,
3292,
1350,
17,
559,
3546,
273,
365,
18,
1745,
67,
723,
1607,
3292,
1350,
17,
1782,
3546,
273,
365,
18,
1467,
727,
67,
2485,
273,
17228,
18,
5471,
18,
2702,
67,
3901,
12,
2485,
16,
365,
18,
4165,
1769,
589,
273,
27140,
87,
5258,
87,
11,
738,
261,
2890,
18,
7242,
18,
529,
16,
365,
18,
856,
13,
589,
273,
11527,
18,
6889,
12,
803,
13,
365,
18,
7242,
18,
4071,
18,
1289,
67,
6850,
67,
2
] |
try: temp = open(tempname, 'w') except IOError: print '*** Cannot create temp file', `tempname` return
|
temp = open(tempname, 'w')
|
def pipethrough(input, command, output): tempname = tempfile.mktemp() try: temp = open(tempname, 'w') except IOError: print '*** Cannot create temp file', `tempname` return copyliteral(input, temp) temp.close() pipe = os.popen(command + ' <' + tempname, 'r') copybinary(pipe, output) pipe.close() os.unlink(tempname)
|
808d269087ff6f0fb8f7ad2a9b4359fbdf5e4f1a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/808d269087ff6f0fb8f7ad2a9b4359fbdf5e4f1a/mimetools.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8341,
546,
2642,
12,
2630,
16,
1296,
16,
876,
4672,
1906,
529,
273,
13275,
18,
24816,
5814,
1435,
1906,
273,
1696,
12,
5814,
529,
16,
296,
91,
6134,
1610,
13107,
12,
2630,
16,
1906,
13,
1906,
18,
4412,
1435,
6010,
273,
1140,
18,
84,
3190,
12,
3076,
397,
296,
411,
11,
397,
1906,
529,
16,
296,
86,
6134,
1610,
8578,
12,
14772,
16,
876,
13,
6010,
18,
4412,
1435,
1140,
18,
318,
1232,
12,
5814,
529,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
91,
6134,
1610,
13107,
12,
2630,
16,
1906,
13,
1906,
18,
4412,
1435,
6010,
273,
1140,
18,
84,
3190,
12,
3076,
397,
296,
411,
11,
397,
1906,
529,
16,
296,
86,
6134,
1610,
8578,
12,
14772,
16,
876,
13,
6010,
18,
4412,
1435,
1140,
18,
318,
1232,
12,
5814,
529,
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
] |
res = Resource(self.thumb_url[0], 'http-get:*:%s:%s' % (self.mimetype,';'.join([dlna_pn]+dlna_tags)))
|
if self.store.proxy == False: res = Resource(self.thumb_url[0], 'http-get:*:%s:%s' % (self.mimetype,';'.join([dlna_pn]+dlna_tags))) else: res = Resource(self.url+'?attachment=thumb', 'http-get:*:%s:%s' % (self.mimetype,';'.join([dlna_pn]+dlna_tags))) self.item.attachments['thumb'] = ProxyImage(self.thumb_url[0])
|
def process(result): for size in result.getiterator('size'): #print size.get('label'), size.get('source') if size.get('label') == 'Original': self.original_url = (size.get('source'),size.get('width')+'x'+size.get('height')) self.url = self.original_url[0] elif size.get('label') == 'Large': self.large_url = (size.get('source'),size.get('width')+'x'+size.get('height')) self.url = self.large_url[0] elif size.get('label') == 'Medium': self.medium_url = (size.get('source'),size.get('width')+'x'+size.get('height')) elif size.get('label') == 'Small': self.small_url = (size.get('source'),size.get('width')+'x'+size.get('height')) elif size.get('label') == 'Thumbnail': self.thumb_url = (size.get('source'),size.get('width')+'x'+size.get('height'))
|
73c28ccf68f8b60798e81e4544ed7810a1750ecc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11626/73c28ccf68f8b60798e81e4544ed7810a1750ecc/flickr_storage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2088,
4672,
364,
963,
316,
563,
18,
588,
9838,
2668,
1467,
11,
4672,
468,
1188,
963,
18,
588,
2668,
1925,
19899,
963,
18,
588,
2668,
3168,
6134,
309,
963,
18,
588,
2668,
1925,
6134,
422,
296,
8176,
4278,
365,
18,
8830,
67,
718,
273,
261,
1467,
18,
588,
2668,
3168,
19899,
1467,
18,
588,
2668,
2819,
6134,
6797,
92,
11,
15,
1467,
18,
588,
2668,
4210,
26112,
365,
18,
718,
273,
365,
18,
8830,
67,
718,
63,
20,
65,
1327,
963,
18,
588,
2668,
1925,
6134,
422,
296,
20020,
4278,
365,
18,
14095,
67,
718,
273,
261,
1467,
18,
588,
2668,
3168,
19899,
1467,
18,
588,
2668,
2819,
6134,
6797,
92,
11,
15,
1467,
18,
588,
2668,
4210,
26112,
365,
18,
718,
273,
365,
18,
14095,
67,
718,
63,
20,
65,
1327,
963,
18,
588,
2668,
1925,
6134,
422,
296,
25599,
4278,
365,
18,
19011,
67,
718,
273,
261,
1467,
18,
588,
2668,
3168,
19899,
1467,
18,
588,
2668,
2819,
6134,
6797,
92,
11,
15,
1467,
18,
588,
2668,
4210,
26112,
1327,
963,
18,
588,
2668,
1925,
6134,
422,
296,
19187,
4278,
365,
18,
12019,
67,
718,
273,
261,
1467,
18,
588,
2668,
3168,
19899,
1467,
18,
588,
2668,
2819,
6134,
6797,
92,
11,
15,
1467,
18,
588,
2668,
4210,
26112,
1327,
963,
18,
588,
2668,
1925,
6134,
422,
296,
16270,
4278,
365,
18,
21639,
67,
718,
273,
261,
1467,
18,
588,
2668,
3168,
19899,
1467,
18,
588,
2668,
2819,
6134,
6797,
92,
11,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2088,
4672,
364,
963,
316,
563,
18,
588,
9838,
2668,
1467,
11,
4672,
468,
1188,
963,
18,
588,
2668,
1925,
19899,
963,
18,
588,
2668,
3168,
6134,
309,
963,
18,
588,
2668,
1925,
6134,
422,
296,
8176,
4278,
365,
18,
8830,
67,
718,
273,
261,
1467,
18,
588,
2668,
3168,
19899,
1467,
18,
588,
2668,
2819,
6134,
6797,
92,
11,
15,
1467,
18,
588,
2668,
4210,
26112,
365,
18,
718,
273,
365,
18,
8830,
67,
718,
63,
20,
65,
1327,
963,
18,
588,
2668,
1925,
6134,
422,
296,
20020,
4278,
365,
18,
14095,
67,
718,
273,
261,
1467,
18,
588,
2668,
3168,
19899,
1467,
18,
588,
2668,
2819,
6134,
6797,
92,
11,
15,
1467,
18,
588,
2
] |
return Query(Query.OP_PHRASE, words)
|
return Query(OP_PHRASE, words)
|
def _make_PhraseQuery(field_type, value, prefix): if field_type == 'text': # XXX TEST field = get_field('text') words = [] stemmer = Stem('en') for word in field.split(value): words.append(prefix+stemmer(word[0])) return Query(Query.OP_PHRASE, words) # A common field or a new field field = get_field(field_type) words = [] for word in field.split(value): words.append(prefix+word[0]) return Query(Query.OP_PHRASE, words)
|
85023dcdde8b7afb3f3ab2553b9e226ae1122e12 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/85023dcdde8b7afb3f3ab2553b9e226ae1122e12/catalog.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
67,
12812,
1138,
12,
1518,
67,
723,
16,
460,
16,
1633,
4672,
309,
652,
67,
723,
422,
296,
955,
4278,
468,
11329,
22130,
652,
273,
336,
67,
1518,
2668,
955,
6134,
4511,
273,
5378,
13119,
6592,
273,
348,
874,
2668,
275,
6134,
364,
2076,
316,
652,
18,
4939,
12,
1132,
4672,
4511,
18,
6923,
12,
3239,
15,
19781,
6592,
12,
1095,
63,
20,
22643,
327,
2770,
12,
3665,
67,
8939,
2849,
1090,
16,
4511,
13,
225,
468,
432,
2975,
652,
578,
279,
394,
652,
652,
273,
336,
67,
1518,
12,
1518,
67,
723,
13,
4511,
273,
5378,
364,
2076,
316,
652,
18,
4939,
12,
1132,
4672,
4511,
18,
6923,
12,
3239,
15,
1095,
63,
20,
5717,
327,
2770,
12,
3665,
67,
8939,
2849,
1090,
16,
4511,
13,
565,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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1518,
2668,
955,
6134,
4511,
273,
5378,
13119,
6592,
273,
348,
874,
2668,
275,
6134,
364,
2076,
316,
652,
18,
4939,
12,
1132,
4672,
4511,
18,
6923,
12,
3239,
15,
19781,
6592,
12,
1095,
63,
20,
22643,
327,
2770,
12,
3665,
67,
8939,
2849,
1090,
16,
4511,
13,
225,
468,
432,
2975,
652,
578,
279,
394,
652,
652,
273,
336,
67,
1518,
12,
1518,
67,
723,
13,
4511,
273,
5378,
364,
2076,
316,
652,
18,
4939,
12,
1132,
4672,
4511,
18,
6923,
12,
3239,
15,
1095,
63,
20,
5717,
2
] |
SELECT depId, depNum, RemovedTroveIds.troveId, RemovedTroveIds.nodeId, provInstanceId
|
SELECT depId, depNum, reqInstanceId, Required.nodeId, provInstanceId, Provided.nodeId
|
def _orderComponents(compGraph):
|
b0aa60d90d28202f26527f76ea371821df6d3309 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/b0aa60d90d28202f26527f76ea371821df6d3309/deptable.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1019,
7171,
12,
2919,
4137,
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,
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0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1019,
7171,
12,
2919,
4137,
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
] |
return pickle.loads(str(value)) except Exception: return value def get_db_prep_save(self, value): """get_db_prep_save""" if value is not None and not isinstance(value, PickledObject): value = PickledObject(pickle.dumps(value))
|
value = dbsafe_decode(value, self.compress) except: if isinstance(value, PickledObject): raise
|
def to_python(self, value): """Convert the database value to a python value.""" if isinstance(value, PickledObject): # If the value is a definite pickle; and an error is # raised in de-pickling it should be allowed to propogate. return pickle.loads(str(value)) else: try: return pickle.loads(str(value)) except Exception: # If an error was raised, just return the plain value return value
|
cb4d9f5f4dcec07525395cf3c5e8dbf3caadb214 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2024/cb4d9f5f4dcec07525395cf3c5e8dbf3caadb214/fields.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
8103,
12,
2890,
16,
460,
4672,
3536,
2723,
326,
2063,
460,
358,
279,
5790,
460,
12123,
309,
1549,
12,
1132,
16,
23038,
1259,
921,
4672,
468,
971,
326,
460,
353,
279,
2217,
1137,
13379,
31,
471,
392,
555,
353,
468,
11531,
316,
443,
17,
11503,
2456,
518,
1410,
506,
2935,
358,
2270,
717,
340,
18,
327,
13379,
18,
17135,
12,
701,
12,
1132,
3719,
469,
30,
775,
30,
327,
13379,
18,
17135,
12,
701,
12,
1132,
3719,
1335,
1185,
30,
468,
971,
392,
555,
1703,
11531,
16,
2537,
327,
326,
7351,
460,
327,
460,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
8103,
12,
2890,
16,
460,
4672,
3536,
2723,
326,
2063,
460,
358,
279,
5790,
460,
12123,
309,
1549,
12,
1132,
16,
23038,
1259,
921,
4672,
468,
971,
326,
460,
353,
279,
2217,
1137,
13379,
31,
471,
392,
555,
353,
468,
11531,
316,
443,
17,
11503,
2456,
518,
1410,
506,
2935,
358,
2270,
717,
340,
18,
327,
13379,
18,
17135,
12,
701,
12,
1132,
3719,
469,
30,
775,
30,
327,
13379,
18,
17135,
12,
701,
12,
1132,
3719,
1335,
1185,
30,
468,
971,
392,
555,
1703,
11531,
16,
2537,
327,
326,
7351,
460,
327,
460,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def changed_this_week(self): """Returns 3 lists of new/modified/obsolete PDB entries for weekly updates. Returns all three lists (new, modified, obsolete) pdb codes for this week. Uses get_recent_status() and get_list() for that. """ urls = self.get_recent_filenames() tw = [] tw.append(self.get_list(urls[0])) tw.append(self.get_list(urls[1])) tw.append(self.get_list(urls[2])) return tw def retrieve_pdb_file(self,pdb_code, compression='.Z', uncompress="gunzip", dir=None, exist=0):
|
def retrieve_pdb_file(self,pdb_code, obsolete=0, compression='.Z', uncompress="gunzip", pdir=None):
|
def changed_this_week(self): """Returns 3 lists of new/modified/obsolete PDB entries for weekly updates. Returns all three lists (new, modified, obsolete) pdb codes for this week. Uses get_recent_status() and get_list() for that. """ urls = self.get_recent_filenames() tw = [] tw.append(self.get_list(urls[0])) tw.append(self.get_list(urls[1])) tw.append(self.get_list(urls[2])) return tw
|
09feacabd5a3d2f3244213b17b5431745b1fa01c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/09feacabd5a3d2f3244213b17b5431745b1fa01c/PDBList.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3550,
67,
2211,
67,
10741,
12,
2890,
4672,
3536,
1356,
890,
6035,
434,
394,
19,
7342,
19,
10992,
19513,
21601,
3222,
364,
4860,
715,
4533,
18,
225,
2860,
777,
8925,
6035,
261,
2704,
16,
4358,
16,
27191,
13,
10892,
6198,
364,
333,
4860,
18,
14854,
336,
67,
20872,
67,
2327,
1435,
471,
336,
67,
1098,
1435,
364,
716,
18,
3536,
6903,
273,
365,
18,
588,
67,
20872,
67,
19875,
1435,
2339,
273,
5378,
2339,
18,
6923,
12,
2890,
18,
588,
67,
1098,
12,
10518,
63,
20,
22643,
2339,
18,
6923,
12,
2890,
18,
588,
67,
1098,
12,
10518,
63,
21,
22643,
2339,
18,
6923,
12,
2890,
18,
588,
67,
1098,
12,
10518,
63,
22,
22643,
327,
2339,
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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
434,
394,
19,
7342,
19,
10992,
19513,
21601,
3222,
364,
4860,
715,
4533,
18,
225,
2860,
777,
8925,
6035,
261,
2704,
16,
4358,
16,
27191,
13,
10892,
6198,
364,
333,
4860,
18,
14854,
336,
67,
20872,
67,
2327,
1435,
471,
336,
67,
1098,
1435,
364,
716,
18,
3536,
6903,
273,
365,
18,
588,
67,
20872,
67,
19875,
1435,
2339,
273,
5378,
2339,
18,
6923,
12,
2890,
18,
588,
67,
1098,
12,
10518,
63,
20,
22643,
2339,
18,
6923,
12,
2890,
18,
588,
67,
1098,
12,
10518,
63,
21,
22643,
2339,
18,
6923,
12,
2890,
18,
588,
67,
1098,
12,
10518,
63,
22,
22643,
327,
2339,
2,
-100
] |
self._save_log(log_data)
|
self._save_log(log_data, portal)
|
def update(self, portal, do_dry_run): self._setup_logger()
|
71782f3151ecace52cfdd4398afd21107bffd097 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3287/71782f3151ecace52cfdd4398afd21107bffd097/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
11899,
16,
741,
67,
25011,
67,
2681,
4672,
365,
6315,
8401,
67,
4901,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
11899,
16,
741,
67,
25011,
67,
2681,
4672,
365,
6315,
8401,
67,
4901,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
else:
|
elif self.kernel_srcdir and self.modules_build_succeed:
|
def __load_modules(self): if self.kmod_srcdir: load_kvm_modules(module_dir=self.kmod_srcdir, extra_modules=self.extra_modules) else: load_kvm_modules(module_dir=self.userspace_srcdir, extra_modules=self.extra_modules)
|
af1538fa0992fc47a0e974597fc4ce7c48f4d4a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12268/af1538fa0992fc47a0e974597fc4ce7c48f4d4a8/build.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
945,
67,
6400,
12,
2890,
4672,
309,
365,
18,
79,
1711,
67,
4816,
1214,
30,
1262,
67,
79,
3489,
67,
6400,
12,
2978,
67,
1214,
33,
2890,
18,
79,
1711,
67,
4816,
1214,
16,
2870,
67,
6400,
33,
2890,
18,
7763,
67,
6400,
13,
1327,
365,
18,
8111,
67,
4816,
1214,
471,
365,
18,
6400,
67,
3510,
67,
87,
5286,
5288,
30,
1262,
67,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
945,
67,
6400,
12,
2890,
4672,
309,
365,
18,
79,
1711,
67,
4816,
1214,
30,
1262,
67,
79,
3489,
67,
6400,
12,
2978,
67,
1214,
33,
2890,
18,
79,
1711,
67,
4816,
1214,
16,
2870,
67,
6400,
33,
2890,
18,
7763,
67,
6400,
13,
1327,
365,
18,
8111,
67,
4816,
1214,
471,
365,
18,
6400,
67,
3510,
67,
87,
5286,
5288,
30,
1262,
67,
79,
3489,
67,
6400,
12,
2978,
67,
1214,
33,
2890,
18,
5577,
909,
67,
4816,
1214,
16,
2870,
67,
6400,
33,
2890,
18,
7763,
67,
6400,
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
] |
connect.connect(o['host'], int(o['port']), o, vhk, uao) util.spinWhile(lambda: not p.done)
|
d = connect.connect(o['host'], int(o['port']), o, vhk, uao) d.addErrback(lambda f: unittest.fail('Failure connecting to test server: %s' % f)) util.spinWhile(lambda: not p.done, timeout=10)
|
def _(host, *args): o['host'] = host
|
25136b6da0a4cc78083f453648d9d96e9dd1c1be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/25136b6da0a4cc78083f453648d9d96e9dd1c1be/test_conch.py
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12,
2564,
16,
380,
1968,
4672,
320,
3292,
2564,
3546,
273,
1479,
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
] |
if (f.tell() != pointer):
|
if f.tell() != pointer:
|
def read_full_index_item(self, pointer): if (pointer >= self.header.articles_offset): print 'Warning: attempt to read word from illegal position in dict file' return None f = self.file if (f.tell() != pointer): f.seek(pointer) next_word = read_short(f.read(2)) prev_word = read_short(f.read(2)) article_pointer = read_int(f.read(4)) if next_word != 0: word_length = next_word - 8 word = f.read(word_length) else: word = None return FullIndexItem(next_word, prev_word, word, article_pointer)
|
f1e8b77781e42ed464cca102c7f27e2045fe1a73 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14305/f1e8b77781e42ed464cca102c7f27e2045fe1a73/sdict.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
2854,
67,
1615,
67,
1726,
12,
2890,
16,
4407,
4672,
309,
261,
10437,
1545,
365,
18,
3374,
18,
16462,
67,
3348,
4672,
1172,
296,
6210,
30,
4395,
358,
855,
2076,
628,
16720,
1754,
316,
2065,
585,
11,
327,
599,
284,
273,
365,
18,
768,
309,
284,
18,
88,
1165,
1435,
480,
4407,
30,
284,
18,
16508,
12,
10437,
13,
1024,
67,
1095,
273,
855,
67,
6620,
12,
74,
18,
896,
12,
22,
3719,
2807,
67,
1095,
273,
855,
67,
6620,
12,
74,
18,
896,
12,
22,
3719,
7559,
67,
10437,
273,
855,
67,
474,
12,
74,
18,
896,
12,
24,
3719,
309,
1024,
67,
1095,
480,
374,
30,
2076,
67,
2469,
273,
1024,
67,
1095,
300,
1725,
2076,
273,
284,
18,
896,
12,
1095,
67,
2469,
13,
469,
30,
2076,
273,
599,
327,
11692,
1016,
1180,
12,
4285,
67,
1095,
16,
2807,
67,
1095,
16,
2076,
16,
7559,
67,
10437,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
4672,
1172,
296,
6210,
30,
4395,
358,
855,
2076,
628,
16720,
1754,
316,
2065,
585,
11,
327,
599,
284,
273,
365,
18,
768,
309,
284,
18,
88,
1165,
1435,
480,
4407,
30,
284,
18,
16508,
12,
10437,
13,
1024,
67,
1095,
273,
855,
67,
6620,
12,
74,
18,
896,
12,
22,
3719,
2807,
67,
1095,
273,
855,
67,
6620,
12,
74,
18,
896,
12,
22,
3719,
7559,
67,
10437,
273,
855,
67,
474,
12,
74,
18,
896,
12,
24,
3719,
309,
1024,
67,
1095,
480,
374,
30,
2076,
67,
2469,
273,
1024,
67,
1095,
300,
2
] |
elif attr.name == 'background': if os.path.isfile(value): self.background = value else: msg = "WARNING: background image not found: %s\n" % value sys.stderr.write(msg) elif attr.name == 'numbered': self.numbered = value
|
def setAttributes(self, attrs): for attr in attrs: value = re.sub('^"?(.*?)"?$', '\\1', attr.value) if attr.name == 'label': self.label = value elif attr.name == 'color': self.color = value elif attr.name == 'style': style = value.lower() if style in ('solid', 'dotted', 'dashed'): self.style = style else: msg = "WARNING: unknown edge style: %s\n" % style sys.stderr.write(msg) elif attr.name == 'width': self.width = int(value) elif attr.name == 'height': self.height = int(value) elif attr.name == 'background': if os.path.isfile(value): self.background = value else: msg = "WARNING: background image not found: %s\n" % value sys.stderr.write(msg) elif attr.name == 'numbered': self.numbered = value else: msg = "Unknown node attribute: %s.%s" % (self.id, attr.name) raise AttributeError(msg)
|
f8c7124938b5926e3d42de3bf34ffa32d74fe30b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/81/f8c7124938b5926e3d42de3bf34ffa32d74fe30b/blockdiag.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21175,
12,
2890,
16,
3422,
4672,
364,
1604,
316,
3422,
30,
460,
273,
283,
18,
1717,
2668,
66,
6,
35,
7444,
35,
2225,
35,
8,
2187,
3718,
21,
2187,
1604,
18,
1132,
13,
309,
1604,
18,
529,
422,
296,
1925,
4278,
365,
18,
1925,
273,
460,
1327,
1604,
18,
529,
422,
296,
3266,
4278,
365,
18,
3266,
273,
460,
1327,
1604,
18,
529,
422,
296,
4060,
4278,
2154,
273,
460,
18,
8167,
1435,
309,
2154,
316,
7707,
30205,
2187,
296,
9811,
2344,
2187,
296,
72,
13912,
11,
4672,
365,
18,
4060,
273,
2154,
469,
30,
1234,
273,
315,
9511,
30,
5917,
3591,
2154,
30,
738,
87,
64,
82,
6,
738,
2154,
2589,
18,
11241,
18,
2626,
12,
3576,
13,
1327,
1604,
18,
529,
422,
296,
2819,
4278,
365,
18,
2819,
273,
509,
12,
1132,
13,
1327,
1604,
18,
529,
422,
296,
4210,
4278,
365,
18,
4210,
273,
509,
12,
1132,
13,
469,
30,
1234,
273,
315,
4874,
756,
1566,
30,
738,
87,
7866,
87,
6,
738,
261,
2890,
18,
350,
16,
1604,
18,
529,
13,
1002,
6394,
12,
3576,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21175,
12,
2890,
16,
3422,
4672,
364,
1604,
316,
3422,
30,
460,
273,
283,
18,
1717,
2668,
66,
6,
35,
7444,
35,
2225,
35,
8,
2187,
3718,
21,
2187,
1604,
18,
1132,
13,
309,
1604,
18,
529,
422,
296,
1925,
4278,
365,
18,
1925,
273,
460,
1327,
1604,
18,
529,
422,
296,
3266,
4278,
365,
18,
3266,
273,
460,
1327,
1604,
18,
529,
422,
296,
4060,
4278,
2154,
273,
460,
18,
8167,
1435,
309,
2154,
316,
7707,
30205,
2187,
296,
9811,
2344,
2187,
296,
72,
13912,
11,
4672,
365,
18,
4060,
273,
2154,
469,
30,
1234,
273,
315,
9511,
30,
5917,
3591,
2154,
30,
738,
87,
64,
82,
6,
738,
2154,
2589,
18,
11241,
18,
2626,
12,
3576,
2
] |
|
for z3iface in z3parentnames: print >> outfile, utils.indent("zope.interface.implements(%s)" % z3iface, 1)
|
concatstring = ', '.join(z3reparentnames) print >> outfile, utils.indent("zope.interface.implements(%s)" % concatstring, 1)
|
def generateImplements(self,element,parentnames): outfile = StringIO() # "__implements__" line -> handle realization parents reparents = element.getRealizationParents() reparentnames = [p.getName() for p in reparents if not p.hasStereoType('z3')] z3parentnames = [p.getName() for p in reparents if p.hasStereoType('z3')] if reparents:
|
27bf1936123b4d3c1da2de6b495fe444c073aafb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11941/27bf1936123b4d3c1da2de6b495fe444c073aafb/BaseGenerator.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
17516,
12,
2890,
16,
2956,
16,
2938,
1973,
4672,
8756,
273,
15777,
1435,
468,
10425,
17061,
14437,
980,
317,
1640,
2863,
1588,
6298,
2071,
817,
87,
273,
930,
18,
588,
6955,
1588,
13733,
1435,
2071,
817,
1973,
273,
306,
84,
18,
17994,
1435,
364,
293,
316,
2071,
817,
87,
309,
486,
293,
18,
5332,
55,
22854,
559,
2668,
94,
23,
6134,
65,
998,
23,
2938,
1973,
273,
306,
84,
18,
17994,
1435,
364,
293,
316,
2071,
817,
87,
309,
293,
18,
5332,
55,
22854,
559,
2668,
94,
23,
6134,
65,
309,
2071,
817,
87,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2103,
17516,
12,
2890,
16,
2956,
16,
2938,
1973,
4672,
8756,
273,
15777,
1435,
468,
10425,
17061,
14437,
980,
317,
1640,
2863,
1588,
6298,
2071,
817,
87,
273,
930,
18,
588,
6955,
1588,
13733,
1435,
2071,
817,
1973,
273,
306,
84,
18,
17994,
1435,
364,
293,
316,
2071,
817,
87,
309,
486,
293,
18,
5332,
55,
22854,
559,
2668,
94,
23,
6134,
65,
998,
23,
2938,
1973,
273,
306,
84,
18,
17994,
1435,
364,
293,
316,
2071,
817,
87,
309,
293,
18,
5332,
55,
22854,
559,
2668,
94,
23,
6134,
65,
309,
2071,
817,
87,
30,
2,
-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_AdjustmentType, args)
|
this = _quickfix.new_AdjustmentType(*args)
|
def __init__(self, *args): this = apply(_quickfix.new_AdjustmentType, 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,
19985,
559,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
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,
-100,
-100,
-100
] |
dirname = os.path.dirname(path)
|
dirname = urllib.unquote( os.path.dirname(path) )
|
def new_decoded_pad(self, decoder, pad, is_last): if self.added_pad_already: return if "audio" not in pad.get_caps()[0].get_name(): return
|
37326ea493a249727d3240d6ab4a0da5f158cb85 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2369/37326ea493a249727d3240d6ab4a0da5f158cb85/soundconverter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
26646,
67,
6982,
12,
2890,
16,
8320,
16,
4627,
16,
353,
67,
2722,
4672,
309,
365,
18,
9665,
67,
6982,
67,
17583,
30,
327,
309,
315,
11509,
6,
486,
316,
4627,
18,
588,
67,
22984,
1435,
63,
20,
8009,
588,
67,
529,
13332,
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,
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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,
394,
67,
26646,
67,
6982,
12,
2890,
16,
8320,
16,
4627,
16,
353,
67,
2722,
4672,
309,
365,
18,
9665,
67,
6982,
67,
17583,
30,
327,
309,
315,
11509,
6,
486,
316,
4627,
18,
588,
67,
22984,
1435,
63,
20,
8009,
588,
67,
529,
13332,
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
] |
return http.Response(stream="saved")
|
return HTMLResponse(stream="saved")
|
def render(self, ctx): self.worksheet.save_snapshot(self.username) self.worksheet.quit() return http.Response(stream="saved")
|
5da3b1cd72cd4a94421b8bc914d7957cdbe6b56d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/5da3b1cd72cd4a94421b8bc914d7957cdbe6b56d/twist.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
365,
18,
1252,
8118,
18,
5688,
67,
11171,
12,
2890,
18,
5053,
13,
365,
18,
1252,
8118,
18,
27176,
1435,
327,
1062,
18,
1064,
12,
3256,
1546,
14077,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
365,
18,
1252,
8118,
18,
5688,
67,
11171,
12,
2890,
18,
5053,
13,
365,
18,
1252,
8118,
18,
27176,
1435,
327,
1062,
18,
1064,
12,
3256,
1546,
14077,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
LogSuiteSerializer.start_suite(self, suite)
|
LogSerializer.start_suite(self, suite)
|
def start_suite(self, suite): suite._init_suite(NonResolvingVariableScopes()) LogSuiteSerializer.start_suite(self, suite)
|
f33f03560eaa42dec6e8352d9e273211d12d6c41 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7408/f33f03560eaa42dec6e8352d9e273211d12d6c41/testdoc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
30676,
12,
2890,
16,
11371,
4672,
11371,
6315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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
30676,
12,
2890,
16,
11371,
4672,
11371,
6315,
2738,
67,
30676,
12,
3989,
2903,
6282,
3092,
12668,
10756,
1827,
13587,
6306,
18,
1937,
67,
30676,
12,
2890,
16,
11371,
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
] |
self.drawroundbox(x0 + hskip + r.x, y0 + vskip + r.y, r.width, r.height, r)
|
self.drawroundbox(x0 + r.x, y0 + r.y, r.width, r.height, r)
|
def update_content(self): """ update the listing area """
|
89d3a48576954c634545f1e0e240fa334f6245a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/89d3a48576954c634545f1e0e240fa334f6245a2/listing_area.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1745,
12,
2890,
4672,
3536,
1089,
326,
11591,
5091,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1745,
12,
2890,
4672,
3536,
1089,
326,
11591,
5091,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-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 system: return '' else: return '''
|
return '' if system else \ '''
|
def permissive(perm, system):
|
b115301aa7a3230e2ebf55808ae6e08d4c08f2cc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/b115301aa7a3230e2ebf55808ae6e08d4c08f2cc/groups.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
1840,
688,
12,
12160,
16,
2619,
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,
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
] |
self._setup_for_raycast()
|
self._setup_for_fixed_point()
|
def config_to_logic(self): self._volume_property.SetInterpolationType(self._config.interpolation)
|
610ce2b4deca0cd38615e52e616691b347625099 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4494/610ce2b4deca0cd38615e52e616691b347625099/VolumeRender.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
642,
67,
869,
67,
28339,
12,
2890,
4672,
365,
6315,
9491,
67,
4468,
18,
694,
31516,
559,
12,
2890,
6315,
1425,
18,
18676,
367,
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,
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316,
326,
981,
30,
1652,
642,
67,
869,
67,
28339,
12,
2890,
4672,
365,
6315,
9491,
67,
4468,
18,
694,
31516,
559,
12,
2890,
6315,
1425,
18,
18676,
367,
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
] |
exported to <pre>%s</pre>." % (id,f),
|
exported to <pre>%s</pre>." % (id, f),
|
def manage_exportObject(self,id=None,download=None,RESPONSE=None): """Exports an object to a file and returns that file.""" if id is None: o=self else: o=getattr(self,id) if download: f=StringIO() o._p_jar.export_file(o,f) RESPONSE.setHeader('Content-type','application/data') RESPONSE.setHeader('Content-Disposition', 'inline;filename=%s.bbe' % id) return f.getvalue() f=Globals.data_dir+'/%s.bbe' % id o._p_jar.export_file(o,f) if RESPONSE is not None: return MessageDialog( title="Object exported", message="<EM>%s</EM> sucessfully\ exported to <pre>%s</pre>." % (id,f), action="manage_main")
|
b94b21d273bd0349b78f6576694ee29f9744529a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b94b21d273bd0349b78f6576694ee29f9744529a/Folder.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
6530,
921,
12,
2890,
16,
350,
33,
7036,
16,
7813,
33,
7036,
16,
14508,
33,
7036,
4672,
3536,
15352,
392,
733,
358,
279,
585,
471,
1135,
716,
585,
12123,
309,
612,
353,
599,
30,
320,
33,
2890,
469,
30,
320,
33,
588,
1747,
12,
2890,
16,
350,
13,
309,
4224,
30,
284,
33,
780,
4294,
1435,
320,
6315,
84,
67,
11930,
18,
6530,
67,
768,
12,
83,
16,
74,
13,
20645,
18,
542,
1864,
2668,
1350,
17,
723,
17023,
3685,
19,
892,
6134,
20645,
18,
542,
1864,
2668,
1350,
17,
15087,
2187,
296,
10047,
31,
3459,
5095,
87,
18,
70,
2196,
11,
738,
612,
13,
327,
284,
18,
588,
1132,
1435,
284,
33,
19834,
18,
892,
67,
1214,
6797,
5258,
87,
18,
70,
2196,
11,
738,
612,
320,
6315,
84,
67,
11930,
18,
6530,
67,
768,
12,
83,
16,
74,
13,
309,
20645,
353,
486,
599,
30,
327,
2350,
6353,
12,
2077,
1546,
921,
11518,
3113,
883,
1546,
32,
3375,
9822,
87,
1757,
3375,
34,
1597,
614,
4095,
64,
11518,
358,
411,
1484,
9822,
87,
1757,
1484,
34,
1199,
738,
261,
350,
16,
284,
3631,
1301,
1546,
12633,
67,
5254,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
6530,
921,
12,
2890,
16,
350,
33,
7036,
16,
7813,
33,
7036,
16,
14508,
33,
7036,
4672,
3536,
15352,
392,
733,
358,
279,
585,
471,
1135,
716,
585,
12123,
309,
612,
353,
599,
30,
320,
33,
2890,
469,
30,
320,
33,
588,
1747,
12,
2890,
16,
350,
13,
309,
4224,
30,
284,
33,
780,
4294,
1435,
320,
6315,
84,
67,
11930,
18,
6530,
67,
768,
12,
83,
16,
74,
13,
20645,
18,
542,
1864,
2668,
1350,
17,
723,
17023,
3685,
19,
892,
6134,
20645,
18,
542,
1864,
2668,
1350,
17,
15087,
2187,
296,
10047,
31,
3459,
5095,
87,
18,
70,
2196,
11,
738,
612,
13,
327,
284,
18,
588,
1132,
1435,
284,
33,
19834,
18,
892,
2
] |
parser.add_option("-A", "--aspect-ratio", action="store", dest="aspect_ratio", default=DEFAULT_ASPECT, help="Set a non-default aspect ratio since gtk.Socket is too brain-damaged to listen to MPlayer.")
|
parser.add_option("-A", "--aspect-ratio", action="store", dest="aspect_ratio", default=DEFAULT_ASPECT, metavar="RATIO", help="Set RATIO as the aspect ratio. (Default is %s) Autodetection is currently broken since gtk.Socket is too brain-damaged to listen to MPlayer." % DEFAULT_ASPECT)
|
def play(entries, playAll=False, aspect=DEFAULT_ASPECT): if isinstance(entries, basestring): entries = [entries] playlist = [] for entry in entries: if os.path.isdir(entry): if playAll: playlist += [os.path.join(entry, x) for x in os.listdir(entry)] else: playlist += get_unplayed_contents(entry) else: playlist.append(entry) if playlist: pl = Player(playlist, aspect=aspect) gtk.main() else: gtk.MessageDialog(type=gtk.MESSAGE_ERROR, buttons=gtk.BUTTONS_OK, message_format="No un-watched episodes found.").run()
|
387301779c916b3e1e4f315415440597c4aaf926 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13137/387301779c916b3e1e4f315415440597c4aaf926/main.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6599,
12,
8219,
16,
6599,
1595,
33,
8381,
16,
9648,
33,
5280,
67,
3033,
1423,
1268,
4672,
309,
1549,
12,
8219,
16,
10699,
4672,
3222,
273,
306,
8219,
65,
225,
16428,
273,
5378,
364,
1241,
316,
3222,
30,
309,
1140,
18,
803,
18,
291,
1214,
12,
4099,
4672,
309,
6599,
1595,
30,
16428,
1011,
306,
538,
18,
803,
18,
5701,
12,
4099,
16,
619,
13,
364,
619,
316,
1140,
18,
1098,
1214,
12,
4099,
25887,
469,
30,
16428,
1011,
336,
67,
318,
1601,
329,
67,
3980,
12,
4099,
13,
469,
30,
16428,
18,
6923,
12,
4099,
13,
225,
309,
16428,
30,
886,
273,
19185,
12,
1601,
1098,
16,
9648,
33,
23579,
13,
22718,
18,
5254,
1435,
469,
30,
22718,
18,
1079,
6353,
12,
723,
33,
4521,
79,
18,
8723,
67,
3589,
16,
9502,
33,
4521,
79,
18,
20068,
55,
67,
3141,
16,
883,
67,
2139,
1546,
2279,
640,
17,
7585,
329,
5529,
27134,
1392,
1199,
2934,
2681,
1435,
225,
2,
0,
0,
0,
0,
0,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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6599,
12,
8219,
16,
6599,
1595,
33,
8381,
16,
9648,
33,
5280,
67,
3033,
1423,
1268,
4672,
309,
1549,
12,
8219,
16,
10699,
4672,
3222,
273,
306,
8219,
65,
225,
16428,
273,
5378,
364,
1241,
316,
3222,
30,
309,
1140,
18,
803,
18,
291,
1214,
12,
4099,
4672,
309,
6599,
1595,
30,
16428,
1011,
306,
538,
18,
803,
18,
5701,
12,
4099,
16,
619,
13,
364,
619,
316,
1140,
18,
1098,
1214,
12,
4099,
25887,
469,
30,
16428,
1011,
336,
67,
318,
1601,
329,
67,
3980,
12,
4099,
13,
469,
30,
16428,
18,
6923,
12,
4099,
13,
225,
309,
16428,
30,
886,
273,
19185,
12,
1601,
1098,
16,
9648,
33,
23579,
13,
22718,
18,
5254,
1435,
469,
30,
2
] |
args.append('--keep-going')
|
margs.append('--keep-going')
|
def make(ctxt, target=None, file_=None, keep_going=False): """Execute a Makefile target. :param ctxt: the build context :type ctxt: `Context` :param file\_: name of the Makefile :param keep_going: whether make should keep going when errors are encountered """ executable = ctxt.config.get_filepath('make.path') or 'make' args = ['--directory', ctxt.basedir] if file_: args += ['--file', ctxt.resolve(file_)] if keep_going: args.append('--keep-going') if target: args.append(target) from bitten.build import shtools returncode = shtools.execute(ctxt, executable=executable, args=args) if returncode != 0: ctxt.error('make failed (%s)' % returncode)
|
a8229bf1cb2f568adce3c329c24ddc8f0387f30e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4547/a8229bf1cb2f568adce3c329c24ddc8f0387f30e/ctools.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
12,
20364,
16,
1018,
33,
7036,
16,
585,
67,
33,
7036,
16,
3455,
67,
8162,
33,
8381,
4672,
3536,
5289,
279,
4344,
768,
1018,
18,
225,
294,
891,
14286,
30,
326,
1361,
819,
294,
723,
14286,
30,
1375,
1042,
68,
294,
891,
585,
64,
67,
30,
508,
434,
326,
4344,
768,
294,
891,
3455,
67,
8162,
30,
2856,
1221,
1410,
3455,
8554,
1347,
1334,
854,
9919,
3536,
9070,
273,
14286,
18,
1425,
18,
588,
67,
10561,
2668,
6540,
18,
803,
6134,
578,
296,
6540,
11,
225,
833,
273,
10228,
413,
5149,
2187,
14286,
18,
31722,
65,
309,
585,
67,
30,
833,
1011,
10228,
413,
768,
2187,
14286,
18,
10828,
12,
768,
67,
25887,
309,
3455,
67,
8162,
30,
312,
1968,
18,
6923,
2668,
413,
10102,
17,
8162,
6134,
309,
1018,
30,
833,
18,
6923,
12,
3299,
13,
225,
628,
2831,
2253,
18,
3510,
1930,
272,
647,
8192,
18125,
273,
272,
647,
8192,
18,
8837,
12,
20364,
16,
9070,
33,
17751,
16,
833,
33,
1968,
13,
309,
18125,
480,
374,
30,
14286,
18,
1636,
2668,
6540,
2535,
6142,
87,
2506,
738,
18125,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
12,
20364,
16,
1018,
33,
7036,
16,
585,
67,
33,
7036,
16,
3455,
67,
8162,
33,
8381,
4672,
3536,
5289,
279,
4344,
768,
1018,
18,
225,
294,
891,
14286,
30,
326,
1361,
819,
294,
723,
14286,
30,
1375,
1042,
68,
294,
891,
585,
64,
67,
30,
508,
434,
326,
4344,
768,
294,
891,
3455,
67,
8162,
30,
2856,
1221,
1410,
3455,
8554,
1347,
1334,
854,
9919,
3536,
9070,
273,
14286,
18,
1425,
18,
588,
67,
10561,
2668,
6540,
18,
803,
6134,
578,
296,
6540,
11,
225,
833,
273,
10228,
413,
5149,
2187,
14286,
18,
31722,
65,
309,
585,
67,
30,
833,
1011,
10228,
413,
768,
2187,
14286,
18,
10828,
12,
768,
67,
25887,
309,
3455,
67,
8162,
2
] |
iformat = __import__('totalopenstation.models.%s' % module,
|
imodel = __import__('totalopenstation.models.%s' % module,
|
def connect_action(self, event):
|
e13bcd56a59ec96602d1ae56413a2e14db8c7392 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5205/e13bcd56a59ec96602d1ae56413a2e14db8c7392/totalopenstation-gui.py
|
[
1,
8585,
326,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
67,
1128,
12,
2890,
16,
871,
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
] |
except sqlite.Error, e:
|
except sqlite3.Error, e:
|
def main(): pygame.init() try: w = 640 h = 480 screen = pygame.display.set_mode((w, h)) font = pygame.font.SysFont('Arial Black', 20) pygame.mouse.set_visible(False) clock = pygame.time.Clock() ch = CollisionHandler() TIMEEVENT = USEREVENT + 1 pygame.time.set_timer(TIMEEVENT, 15) # Load our balls balls = [ Ball(screen, (70, 15), (random.randint(1,3),random.randint(1,3)) ), Ball(screen, (200, 60), (random.randint(1,3),random.randint(1,3)) ), Ball(screen, (random.randint(50, 200), 75), (3,2) ), Ball(screen, (50, 45), (3,2) ), Ball(screen, (100, 200), (1,3) ) ] for ball in balls: ch.addBall(ball) # Insert walls walls = [ Wall( screen, (0,30), (10, screen.get_height()) ), Wall( screen, (screen.get_width()-10,30), (10, screen.get_height()) ), Wall( screen, (0,30), (screen.get_width(), 10) ) ] for wall in walls: ch.addObject(wall) paddle = Paddle(screen) ch.addObject(paddle) # Game variables run = True gameover = False viewHighScore = False; lifes = len(balls)-1 time = 0 name = "Johan" score = 0 # Sqllite init connection = sqlite.connect('test.db') cursor = connection.cursor() try: cursor.execute('CREATE TABLE highscore (id INTEGER PRIMARY KEY, name VARCHAR(50), score INTEGER)') except sqlite.Error, e: print "Create table:", e.args[0] # Load scoreboard scoreBoard = font.render("Life: " + str(lifes) + " Score: ", True, (255, 0, 0)) while not gameover: # Check for quits for event in pygame.event.get(): if event.type == pygame.QUIT: gameover = True cursor.close() connection.commit() connection.close() if event.type == TIMEEVENT: time += 1 # Update positions for balls for ball in balls: if ball.update(): lifes -= 1 # Update positions for paddle paddle.update() # Update collision handler if ch.update(): score += 1 # Draw background screen.fill((0, 0, 0)) # Draw walls for wall in walls: wall.draw() # Draw paddle paddle.draw() # Draw balls for ball in balls: ball.draw() #Draw scoreboard if run: scoreBoard = font.render("Life: " + str(lifes) + " Score: " + str(score), True, (255, 0, 0)) pygame.draw.rect(screen, (0, 255, 255), (0, 0, time, 30)) screen.blit(scoreBoard, (0, 5)) if time >= screen.get_width(): time = 0; balls.append(ch.addBall(Ball(screen, (random.randint(50, 100), random.randint(100, 200)), (random.randint(1,3),random.randint(1,3)) ))) if lifes <= 0 and run: pygame.time.set_timer(TIMEEVENT, 0) finalScore = score viewHighScore = True run = False name = inputbox.ask(screen, "Your name ") try: cursor.execute("SELECT id FROM highscore WHERE name = ?", (name,)) data=cursor.fetchone() if data is None: print('There is no component named %s'%name) cursor.execute('INSERT INTO highscore VALUES (null, ?, ?)', (name, score)) else: print('Component %s found with rowid %s'%(name,data[0])) except sqlite.Error, e: print "Ooops:", e.args[0] cursor.execute("UPDATE highscore SET score='"+str(finalScore)+"' WHERE name='"+name+"'") cursor.execute('SELECT * FROM highscore ORDER BY score DESC LIMIT 0,10') i = 1 player = [] for row in cursor: #Loopa genom player.append(font.render(str(i) + '. ' + str(row[1]) + ' - ' + str(row[2]), True, (255, 0, 0))) i += 1 print answer scoreBoard = font.render("Life: 0 Score: " + str(finalScore), True, (255, 0, 0)) if viewHighScore: i = 30 gameOverImg = font.render("Game Over", True, (255, 0, 0)) highScoreImg = font.render(" Name Score", True, (255, 0, 0)) for row in player: screen.blit(row, (screen.get_width()/2-100, screen.get_height()/2+50+i)) i += 30 screen.blit(gameOverImg, (screen.get_width()/2, screen.get_height()/2)) screen.blit(highScoreImg, (screen.get_width()/2-100, screen.get_height()/2+50)) # Update screen pygame.display.flip() clock.tick(60) finally: pygame.quit()
|
8e316c300237ca692a9bcec8a0f1e883f02b7c0f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13880/8e316c300237ca692a9bcec8a0f1e883f02b7c0f/wgb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2395,
13957,
18,
2738,
1435,
775,
30,
341,
273,
5178,
20,
366,
273,
1059,
3672,
225,
5518,
273,
2395,
13957,
18,
5417,
18,
542,
67,
3188,
12443,
91,
16,
366,
3719,
3512,
273,
2395,
13957,
18,
5776,
18,
12712,
5711,
2668,
37,
566,
287,
22467,
2187,
4200,
13,
2395,
13957,
18,
11697,
18,
542,
67,
8613,
12,
8381,
13,
7268,
273,
2395,
13957,
18,
957,
18,
14027,
1435,
462,
273,
17596,
1951,
1503,
1435,
225,
8721,
10454,
273,
7443,
10454,
397,
404,
2395,
13957,
18,
957,
18,
542,
67,
12542,
12,
4684,
10454,
16,
4711,
13,
225,
468,
4444,
3134,
26503,
87,
26503,
87,
273,
306,
605,
454,
12,
9252,
16,
261,
7301,
16,
4711,
3631,
261,
9188,
18,
7884,
474,
12,
21,
16,
23,
3631,
9188,
18,
7884,
474,
12,
21,
16,
23,
3719,
262,
16,
605,
454,
12,
9252,
16,
261,
6976,
16,
4752,
3631,
261,
9188,
18,
7884,
474,
12,
21,
16,
23,
3631,
9188,
18,
7884,
474,
12,
21,
16,
23,
3719,
262,
16,
605,
454,
12,
9252,
16,
261,
9188,
18,
7884,
474,
12,
3361,
16,
4044,
3631,
18821,
3631,
261,
23,
16,
22,
13,
262,
16,
605,
454,
12,
9252,
16,
261,
3361,
16,
12292,
3631,
261,
23,
16,
22,
13,
262,
16,
605,
454,
12,
9252,
16,
261,
6625,
16,
4044,
3631,
261,
21,
16,
23,
13,
262,
308,
225,
364,
26503,
316,
26503,
87,
30,
462,
18,
1289,
38,
454,
12,
19067,
13,
225,
468,
8040,
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,
2395,
13957,
18,
2738,
1435,
775,
30,
341,
273,
5178,
20,
366,
273,
1059,
3672,
225,
5518,
273,
2395,
13957,
18,
5417,
18,
542,
67,
3188,
12443,
91,
16,
366,
3719,
3512,
273,
2395,
13957,
18,
5776,
18,
12712,
5711,
2668,
37,
566,
287,
22467,
2187,
4200,
13,
2395,
13957,
18,
11697,
18,
542,
67,
8613,
12,
8381,
13,
7268,
273,
2395,
13957,
18,
957,
18,
14027,
1435,
462,
273,
17596,
1951,
1503,
1435,
225,
8721,
10454,
273,
7443,
10454,
397,
404,
2395,
13957,
18,
957,
18,
542,
67,
12542,
12,
4684,
10454,
16,
4711,
13,
225,
468,
4444,
3134,
26503,
87,
26503,
87,
273,
306,
605,
454,
12,
9252,
16,
261,
7301,
16,
4711,
3631,
2
] |
moodle_xml_str = elixer.convert(course)
|
moodle_xml_str = elixer.convert(course).encode('utf-8')
|
def create_moodle_zip(blackboard_zip_fname, out_name): try: shutil.rmtree('elixer_tmp') shutil.rmtree('course_files') except OSError: pass course = Course(blackboard_zip_fname) moodle_zip = zipfile.ZipFile(out_name, 'w') moodle_xml_str = elixer.convert(course) moodle_zip.writestr('moodle.xml', moodle_xml_str) err_fh = open(os.path.devnull, 'w') command = ('unzip %s -d elixer_tmp' % blackboard_zip_fname).split(' ') subprocess.Popen(command, stdout=err_fh, stderr=err_fh).communicate() skip_parent = False for root, dirs, files in os.walk('elixer_tmp'): if not skip_parent: skip_parent = True continue for fname in files: res_num = root.split(os.sep, 1)[1].split(os.sep)[0].replace('res', '') fixed_filename = elixer.fix_filename(fname, res_num) blackboard_filename = os.path.join(root, fname) moodle_filename = os.path.join('course_files', fixed_filename) moodle_zip.write(blackboard_filename, moodle_filename) shutil.rmtree('elixer_tmp') moodle_zip.close()
|
5d7bba3f9da5602afaac91a41be90f54e9d7c23b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12927/5d7bba3f9da5602afaac91a41be90f54e9d7c23b/bb9_course.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
14831,
67,
4450,
12,
11223,
3752,
67,
4450,
67,
12749,
16,
596,
67,
529,
4672,
775,
30,
11060,
18,
86,
17371,
2668,
26342,
264,
67,
5645,
6134,
11060,
18,
86,
17371,
2668,
5566,
67,
2354,
6134,
1335,
10002,
30,
1342,
225,
4362,
273,
385,
3117,
12,
11223,
3752,
67,
4450,
67,
12749,
13,
225,
11004,
67,
4450,
273,
18823,
18,
29394,
12,
659,
67,
529,
16,
296,
91,
6134,
225,
11004,
67,
2902,
67,
701,
273,
415,
697,
264,
18,
6283,
12,
5566,
2934,
3015,
2668,
3158,
17,
28,
6134,
225,
11004,
67,
4450,
18,
13284,
313,
2668,
14831,
18,
2902,
2187,
11004,
67,
2902,
67,
701,
13,
225,
393,
67,
19260,
273,
1696,
12,
538,
18,
803,
18,
5206,
2011,
16,
296,
91,
6134,
225,
1296,
273,
7707,
318,
4450,
738,
87,
300,
72,
415,
697,
264,
67,
5645,
11,
738,
7721,
3752,
67,
4450,
67,
12749,
2934,
4939,
2668,
8624,
6652,
18,
52,
3190,
12,
3076,
16,
3909,
33,
370,
67,
19260,
16,
4514,
33,
370,
67,
19260,
2934,
5702,
318,
2659,
1435,
225,
2488,
67,
2938,
273,
1083,
225,
364,
1365,
16,
7717,
16,
1390,
316,
1140,
18,
11348,
2668,
26342,
264,
67,
5645,
11,
4672,
309,
486,
2488,
67,
2938,
30,
2488,
67,
2938,
273,
1053,
1324,
225,
364,
5299,
316,
1390,
30,
400,
67,
2107,
273,
1365,
18,
4939,
12,
538,
18,
10814,
16,
404,
25146,
21,
8009,
4939,
12,
538,
18,
10814,
25146,
20,
8009,
2079,
2668,
455,
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,
14831,
67,
4450,
12,
11223,
3752,
67,
4450,
67,
12749,
16,
596,
67,
529,
4672,
775,
30,
11060,
18,
86,
17371,
2668,
26342,
264,
67,
5645,
6134,
11060,
18,
86,
17371,
2668,
5566,
67,
2354,
6134,
1335,
10002,
30,
1342,
225,
4362,
273,
385,
3117,
12,
11223,
3752,
67,
4450,
67,
12749,
13,
225,
11004,
67,
4450,
273,
18823,
18,
29394,
12,
659,
67,
529,
16,
296,
91,
6134,
225,
11004,
67,
2902,
67,
701,
273,
415,
697,
264,
18,
6283,
12,
5566,
2934,
3015,
2668,
3158,
17,
28,
6134,
225,
11004,
67,
4450,
18,
13284,
313,
2668,
14831,
18,
2902,
2187,
11004,
67,
2902,
67,
701,
13,
225,
393,
67,
19260,
273,
1696,
12,
538,
2
] |
def __init__(self, host='', port=None, **x509):
|
def __init__(self, host='', port=None, key_file=None, cert_file=None, strict=None):
|
def __init__(self, host='', port=None, **x509): # provide a default host, pass the X509 cert info
|
d46aa37d35811a37397104f02074c8a44e7dbec1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/d46aa37d35811a37397104f02074c8a44e7dbec1/httplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1479,
2218,
2187,
1756,
33,
7036,
16,
498,
67,
768,
33,
7036,
16,
3320,
67,
768,
33,
7036,
16,
5490,
33,
7036,
4672,
468,
5615,
279,
805,
1479,
16,
1342,
326,
1139,
5995,
3320,
1123,
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,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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,
1001,
2738,
972,
12,
2890,
16,
1479,
2218,
2187,
1756,
33,
7036,
16,
498,
67,
768,
33,
7036,
16,
3320,
67,
768,
33,
7036,
16,
5490,
33,
7036,
4672,
468,
5615,
279,
805,
1479,
16,
1342,
326,
1139,
5995,
3320,
1123,
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
] |
return "<Fault %s: %s>" % (self.faultcode, self.faultstring)
|
if self.detail: return "<Fault %s: %s: %s>" % (self.faultcode, self.faultstring, self.detail) else: return "<Fault %s: %s>" % (self.faultcode, self.faultstring)
|
def __repr__(self): return "<Fault %s: %s>" % (self.faultcode, self.faultstring)
|
09f854f9a4ae0928fd313f5d59a64d4315cc7e01 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/09f854f9a4ae0928fd313f5d59a64d4315cc7e01/SOAP.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
3532,
7083,
738,
87,
30,
738,
87,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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,
1001,
12715,
972,
12,
2890,
4672,
327,
3532,
7083,
738,
87,
30,
738,
87,
2984,
738,
261,
2890,
18,
643,
710,
16,
365,
18,
643,
1080,
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
] |
self.entries[-1]['links'].append(attrsD)
|
self.entries[-1]['links'].append(FeedParserDict(attrsD))
|
def _start_link(self, attrsD): attrsD.setdefault('rel', 'alternate') attrsD.setdefault('type', 'text/html') if attrsD.has_key('href'): attrsD['href'] = self.resolveURI(attrsD['href']) expectingText = self.infeed or self.inentry if self.inentry: self.entries[-1].setdefault('links', []) self.entries[-1]['links'].append(attrsD) elif self.infeed: self.feeddata.setdefault('links', []) self.feeddata['links'].append(attrsD) if attrsD.has_key('href'): expectingText = 0 if attrsD.get('type', '') in self.html_types: if self.inentry: self.entries[-1]['link'] = attrsD['href'] elif self.infeed: self.feeddata['link'] = attrsD['href'] else: self.push('link', expectingText)
|
972cadc09ab0b2fdf411f1a0962eada0cba30b10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/972cadc09ab0b2fdf411f1a0962eada0cba30b10/feedparser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1937,
67,
1232,
12,
2890,
16,
3422,
40,
4672,
3422,
40,
18,
542,
1886,
2668,
2878,
2187,
296,
16025,
340,
6134,
3422,
40,
18,
542,
1886,
2668,
723,
2187,
296,
955,
19,
2620,
6134,
309,
3422,
40,
18,
5332,
67,
856,
2668,
7547,
11,
4672,
3422,
40,
3292,
7547,
3546,
273,
365,
18,
10828,
3098,
12,
7039,
40,
3292,
7547,
19486,
17012,
1528,
273,
365,
18,
267,
7848,
578,
365,
18,
267,
4099,
309,
365,
18,
267,
4099,
30,
365,
18,
8219,
18919,
21,
8009,
542,
1886,
2668,
7135,
2187,
5378,
13,
365,
18,
8219,
18919,
21,
23962,
7135,
29489,
6923,
12,
8141,
2678,
5014,
12,
7039,
40,
3719,
1327,
365,
18,
267,
7848,
30,
365,
18,
7848,
892,
18,
542,
1886,
2668,
7135,
2187,
5378,
13,
365,
18,
7848,
892,
3292,
7135,
29489,
6923,
12,
7039,
40,
13,
309,
3422,
40,
18,
5332,
67,
856,
2668,
7547,
11,
4672,
17012,
1528,
273,
374,
309,
3422,
40,
18,
588,
2668,
723,
2187,
28707,
316,
365,
18,
2620,
67,
2352,
30,
309,
365,
18,
267,
4099,
30,
365,
18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326,
981,
30,
1652,
389,
1937,
67,
1232,
12,
2890,
16,
3422,
40,
4672,
3422,
40,
18,
542,
1886,
2668,
2878,
2187,
296,
16025,
340,
6134,
3422,
40,
18,
542,
1886,
2668,
723,
2187,
296,
955,
19,
2620,
6134,
309,
3422,
40,
18,
5332,
67,
856,
2668,
7547,
11,
4672,
3422,
40,
3292,
7547,
3546,
273,
365,
18,
10828,
3098,
12,
7039,
40,
3292,
7547,
19486,
17012,
1528,
273,
365,
18,
267,
7848,
578,
365,
18,
267,
4099,
309,
365,
18,
267,
4099,
30,
365,
18,
8219,
18919,
21,
8009,
542,
1886,
2668,
7135,
2187,
5378,
13,
365,
18,
8219,
18919,
21,
23962,
7135,
29489,
6923,
12,
8141,
2678,
5014,
12,
7039,
40,
3719,
1327,
365,
18,
267,
7848,
30,
365,
18,
2
] |
assert type(qname) is dns.name.Name, 'qname is not Name obj' assert type(qclass) is IntType, 'qclass is not Int obj' assert type(qtype) is IntType, 'qtype is not Int obj'
|
def handle_query(self, msg): """Process a query message."""
|
2b2b5839b23008a8980ab8eeeca606297c51c416 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4157/2b2b5839b23008a8980ab8eeeca606297c51c416/route53d.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2271,
12,
2890,
16,
1234,
4672,
3536,
2227,
279,
843,
883,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2271,
12,
2890,
16,
1234,
4672,
3536,
2227,
279,
843,
883,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
facet_params = settings.SEARCH_FACET_PARAMS hl_params = settings.SEARCH_HL_PARAMS
|
facet_params = settings.SEARCH_FACET_PARAMS[:] hl_params = settings.SEARCH_HL_PARAMS[:]
|
def clean(self, *args, **kwargs): """ Expects a list of tuples like: [('q', 'model'), ('sort', 'date desc'), ('facet.field', 'model')] """ params = [] if args: if isinstance(args[0], dict): params = [(key, value) for key, value in args[0].items() if value] else: params = list(args) params.extend(kwargs.items()) if not params: return None facet_params = settings.SEARCH_FACET_PARAMS hl_params = settings.SEARCH_HL_PARAMS for key, value in params: if key.startswith('facet'): facet_params.append((key, value),) elif key.startswith('hl'): hl_params.append((key, value),) elif key == 'fq': self.fq.append(value) else: try: v = self[key] if isinstance(v, list): self[key].append(value) else: self[key] = value except KeyError: self.q.append('%s:%s' % (key, value)) self.facet = Facet(facet_params, instance='facet') self.hl = Highlight(hl_params, instance='hl')
|
1d154f0f039a560f386638c4a29c21e31c50b04f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3331/1d154f0f039a560f386638c4a29c21e31c50b04f/query.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
15510,
87,
279,
666,
434,
10384,
3007,
30,
306,
2668,
85,
2187,
296,
2284,
19899,
7707,
3804,
2187,
296,
712,
3044,
19899,
7707,
21568,
18,
1518,
2187,
296,
2284,
6134,
65,
3536,
859,
273,
5378,
309,
833,
30,
309,
1549,
12,
1968,
63,
20,
6487,
2065,
4672,
859,
273,
306,
12,
856,
16,
460,
13,
364,
498,
16,
460,
316,
833,
63,
20,
8009,
3319,
1435,
309,
460,
65,
469,
30,
859,
273,
666,
12,
1968,
13,
859,
18,
14313,
12,
4333,
18,
3319,
10756,
225,
309,
486,
859,
30,
327,
599,
225,
11082,
67,
2010,
273,
1947,
18,
17251,
67,
11300,
56,
67,
16785,
10531,
65,
16043,
67,
2010,
273,
1947,
18,
17251,
67,
44,
48,
67,
16785,
10531,
65,
364,
498,
16,
460,
316,
859,
30,
309,
498,
18,
17514,
1918,
2668,
21568,
11,
4672,
11082,
67,
2010,
18,
6923,
12443,
856,
16,
460,
3631,
13,
1327,
498,
18,
17514,
1918,
2668,
25356,
11,
4672,
16043,
67,
2010,
18,
6923,
12443,
856,
16,
460,
3631,
13,
1327,
498,
422,
296,
19206,
4278,
365,
18,
19206,
18,
6923,
12,
1132,
13,
469,
30,
775,
30,
331,
273,
365,
63,
856,
65,
309,
1549,
12,
90,
16,
666,
4672,
365,
63,
856,
8009,
6923,
12,
1132,
13,
469,
30,
365,
63,
856,
65,
273,
460,
1335,
4999,
30,
365,
18,
85,
18,
6923,
29909,
87,
5319,
87,
11,
738,
261,
856,
16,
460,
3719,
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,
2721,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
15510,
87,
279,
666,
434,
10384,
3007,
30,
306,
2668,
85,
2187,
296,
2284,
19899,
7707,
3804,
2187,
296,
712,
3044,
19899,
7707,
21568,
18,
1518,
2187,
296,
2284,
6134,
65,
3536,
859,
273,
5378,
309,
833,
30,
309,
1549,
12,
1968,
63,
20,
6487,
2065,
4672,
859,
273,
306,
12,
856,
16,
460,
13,
364,
498,
16,
460,
316,
833,
63,
20,
8009,
3319,
1435,
309,
460,
65,
469,
30,
859,
273,
666,
12,
1968,
13,
859,
18,
14313,
12,
4333,
18,
3319,
10756,
225,
309,
486,
859,
30,
327,
599,
225,
11082,
67,
2010,
273,
1947,
18,
17251,
67,
11300,
56,
67,
16785,
10531,
65,
2
] |
print e
|
def _try_inline_malloc(info): """Try to inline the mallocs creation and manipulation of the Variables in the given LifeTime.""" # the values must be only ever created by a "malloc" lltypes = {} for cp in info.creationpoints: if cp[0] != "op": return False op = cp[2] if op.opname != "malloc": return False lltypes[op.result.concretetype] = True # there must be a single largest malloced GcStruct; # all variables can point to it or to initial substructures if len(lltypes) != 1: return False STRUCT = lltypes.keys()[0].TO assert isinstance(STRUCT, lltype.GcStruct) # must be only ever accessed via getfield/setfield or touched by keepalive for up in info.usepoints: if up[0] != "op": return False kind, node, op, index = up if (op.opname, index) in [("getfield", 0), ("setfield", 0), ("keepalive", 0)]: continue # ok return False # must not remove mallocs of structures that have a RTTI with a destructor try: destr_ptr = lltype.getRuntimeTypeInfo(STRUCT)._obj.destructor_funcptr if destr_ptr: return False except (ValueError, AttributeError), e: print e pass # success: replace each variable with a family of variables (one per field) example = STRUCT._container_example() flatnames = [] flatconstants = {} def flatten(S, example): start = 0 if S._names and isinstance(S._flds[S._names[0]], lltype.GcStruct): flatten(S._flds[S._names[0]], getattr(example, S._names[0])) start = 1 for name in S._names[start:]: flatnames.append((S, name)) constant = Constant(getattr(example, name)) constant.concretetype = lltype.typeOf(constant.value) flatconstants[S, name] = constant flatten(STRUCT, example) variables_by_block = {} for block, var in info.variables: vars = variables_by_block.setdefault(block, {}) vars[var] = True for block, vars in variables_by_block.items(): def flowin(var, newvarsmap): # in this 'block', follow where the 'var' goes to and replace # it by a flattened-out family of variables. This family is given # by newvarsmap, whose keys are the 'flatnames'. vars = {var: True} def list_newvars(): return [newvarsmap[key] for key in flatnames] assert block.operations != () newops = [] for op in block.operations: for arg in op.args[1:]: # should be the first arg only assert arg not in vars if op.args and op.args[0] in vars: if op.opname == "getfield": S = op.args[0].concretetype.TO fldname = op.args[1].value newop = SpaceOperation("same_as", [newvarsmap[S, fldname]], op.result) newops.append(newop) elif op.opname == "setfield": S = op.args[0].concretetype.TO fldname = op.args[1].value assert (S, fldname) in newvarsmap newvarsmap[S, fldname] = op.args[2] elif op.opname in ("same_as", "cast_pointer"): assert op.result not in vars vars[op.result] = True # Consider the two pointers (input and result) as # equivalent. We can, and indeed must, use the same # flattened list of variables for both, as a "setfield" # via one pointer must be reflected in the other. elif op.opname == 'keepalive': pass else: raise AssertionError, op.opname elif op.result in vars: assert op.opname == "malloc" assert vars == {var: True} # drop the "malloc" operation else: newops.append(op) block.operations[:] = newops assert block.exitswitch not in vars for link in block.exits: newargs = [] for arg in link.args: if arg in vars: newargs += list_newvars() else: newargs.append(arg) link.args[:] = newargs # look for variables arriving from outside the block for var in vars: if var in block.inputargs: i = block.inputargs.index(var) newinputargs = block.inputargs[:i] newvarsmap = {} for key in flatnames: newvar = Variable() newvar.concretetype = flatconstants[key].concretetype newvarsmap[key] = newvar newinputargs.append(newvar) newinputargs += block.inputargs[i+1:] block.inputargs[:] = newinputargs assert var not in block.inputargs flowin(var, newvarsmap) # look for variables created inside the block by a malloc vars_created_here = [] for op in block.operations: if op.opname == "malloc" and op.result in vars: vars_created_here.append(op.result) for var in vars_created_here: newvarsmap = flatconstants.copy() # dummy initial values flowin(var, newvarsmap) return True
|
f2aa04514ecbb35738c1dd23432f81293fb5dea4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/f2aa04514ecbb35738c1dd23432f81293fb5dea4/malloc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
698,
67,
10047,
67,
81,
9853,
12,
1376,
4672,
3536,
7833,
358,
6370,
326,
312,
9853,
87,
6710,
471,
27029,
434,
326,
23536,
316,
326,
864,
28128,
950,
12123,
468,
326,
924,
1297,
506,
1338,
14103,
2522,
635,
279,
315,
81,
9853,
6,
6579,
2352,
273,
2618,
364,
3283,
316,
1123,
18,
17169,
4139,
30,
309,
3283,
63,
20,
65,
480,
315,
556,
6877,
327,
1083,
1061,
273,
3283,
63,
22,
65,
309,
1061,
18,
556,
529,
480,
315,
81,
9853,
6877,
327,
1083,
6579,
2352,
63,
556,
18,
2088,
18,
11504,
1349,
5872,
65,
273,
1053,
225,
468,
1915,
1297,
506,
279,
2202,
12756,
27431,
383,
3263,
611,
71,
3823,
31,
468,
777,
3152,
848,
1634,
358,
518,
578,
358,
2172,
720,
27979,
309,
562,
12,
2906,
2352,
13,
480,
404,
30,
327,
1083,
7128,
9749,
273,
6579,
2352,
18,
2452,
1435,
63,
20,
8009,
4296,
1815,
1549,
12,
13915,
16,
6579,
723,
18,
43,
71,
3823,
13,
225,
468,
1297,
506,
1338,
14103,
15539,
3970,
336,
1518,
19,
542,
1518,
578,
358,
19370,
635,
26210,
364,
731,
316,
1123,
18,
1202,
4139,
30,
309,
731,
63,
20,
65,
480,
315,
556,
6877,
327,
1083,
3846,
16,
756,
16,
1061,
16,
770,
273,
731,
309,
261,
556,
18,
556,
529,
16,
770,
13,
316,
306,
2932,
588,
1518,
3113,
374,
3631,
7566,
542,
1518,
3113,
374,
3631,
7566,
10102,
11462,
3113,
374,
13,
14542,
1324,
282,
468,
1529,
327,
1083,
225,
468,
1297,
486,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
698,
67,
10047,
67,
81,
9853,
12,
1376,
4672,
3536,
7833,
358,
6370,
326,
312,
9853,
87,
6710,
471,
27029,
434,
326,
23536,
316,
326,
864,
28128,
950,
12123,
468,
326,
924,
1297,
506,
1338,
14103,
2522,
635,
279,
315,
81,
9853,
6,
6579,
2352,
273,
2618,
364,
3283,
316,
1123,
18,
17169,
4139,
30,
309,
3283,
63,
20,
65,
480,
315,
556,
6877,
327,
1083,
1061,
273,
3283,
63,
22,
65,
309,
1061,
18,
556,
529,
480,
315,
81,
9853,
6877,
327,
1083,
6579,
2352,
63,
556,
18,
2088,
18,
11504,
1349,
5872,
65,
273,
1053,
225,
468,
1915,
1297,
506,
279,
2202,
12756,
27431,
383,
3263,
611,
71,
3823,
31,
468,
777,
3152,
848,
1634,
2
] |
|
c = Client("blockdev_find", [disk.ToDict()]) self._ConnectNode(c, node) return c.GetResults().get(node, False)
|
return self._SingleNodeCall(node, "blockdev_find", [disk.ToDict()])
|
def call_blockdev_find(self, node, disk): """Request identification of a given block device.
|
9a525d83b2a75f44cc1171e7d715b5bee7a76756 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/9a525d83b2a75f44cc1171e7d715b5bee7a76756/rpc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
2629,
5206,
67,
4720,
12,
2890,
16,
756,
16,
4234,
4672,
3536,
691,
24739,
434,
279,
864,
1203,
2346,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
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,
745,
67,
2629,
5206,
67,
4720,
12,
2890,
16,
756,
16,
4234,
4672,
3536,
691,
24739,
434,
279,
864,
1203,
2346,
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
] |
("&Center model",center_stl), ("&Rotate model",rotate_stl),
|
("&Center model",center_surface),
|
def create_menu(): """Create the STL menu.""" menu = widgets.Menu('STL') MenuData = [ # ("&New project",new_project), ("&Read Surface",read_surface), # ("&Show model",show_model), ("&Show surface",show_surface), ("&Show shrinked surface",show_shrinked), ("&Show volume model",show_volume), ("&Set color",set_color), #("&Print Nodal Coordinates",show_nodes), ("&Combine two models",combine), # ("&Convert STL file to OFF file",convert_stl_to_off), # ("&Sanitize STL file to OFF file",sanitize_stl_to_off), ("&Write Surface Model",write_surface), # ("&Write STL Model",write_stl),
|
1af2e424e591783871f773a3e3c69a5e039ad4e1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2499/1af2e424e591783871f773a3e3c69a5e039ad4e1/stl_menu.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
5414,
13332,
3536,
1684,
326,
2347,
48,
3824,
12123,
3824,
273,
10965,
18,
4599,
2668,
882,
48,
6134,
9809,
751,
273,
306,
468,
7566,
10,
1908,
1984,
3113,
2704,
67,
4406,
3631,
7566,
10,
1994,
24354,
3113,
896,
67,
18266,
3631,
468,
7566,
10,
5706,
938,
3113,
4500,
67,
2284,
3631,
7566,
10,
5706,
9034,
3113,
4500,
67,
18266,
3631,
7566,
10,
5706,
17697,
329,
9034,
3113,
4500,
67,
674,
12334,
329,
3631,
7566,
10,
5706,
3940,
938,
3113,
4500,
67,
9491,
3631,
7566,
10,
694,
2036,
3113,
542,
67,
3266,
3631,
468,
2932,
10,
5108,
423,
369,
287,
10320,
4174,
3113,
4500,
67,
4690,
3631,
7566,
10,
21720,
2795,
3679,
3113,
14082,
3631,
468,
7566,
10,
2723,
2347,
48,
585,
358,
17511,
585,
3113,
6283,
67,
334,
80,
67,
869,
67,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
5414,
13332,
3536,
1684,
326,
2347,
48,
3824,
12123,
3824,
273,
10965,
18,
4599,
2668,
882,
48,
6134,
9809,
751,
273,
306,
468,
7566,
10,
1908,
1984,
3113,
2704,
67,
4406,
3631,
7566,
10,
1994,
24354,
3113,
896,
67,
18266,
3631,
468,
7566,
10,
5706,
938,
3113,
4500,
67,
2284,
3631,
7566,
10,
5706,
9034,
3113,
4500,
67,
18266,
3631,
7566,
10,
5706,
17697,
329,
9034,
3113,
4500,
67,
674,
12334,
329,
3631,
7566,
10,
5706,
3940,
938,
3113,
4500,
67,
9491,
3631,
7566,
10,
694,
2036,
3113,
542,
67,
3266,
3631,
468,
2932,
10,
5108,
423,
369,
287,
10320,
4174,
3113,
4500,
67,
4690,
3631,
7566,
10,
21720,
2795,
3679,
3113,
14082,
3631,
468,
7566,
2
] |
refnum, dirid = macfs.FindFolder(MACFS.kOnSystemDisk, MACFS.kTemporaryFolderType, 0)
|
refnum, dirid = macfs.FindFolder(MACFS.kOnSystemDisk, MACFS.kTemporaryFolderType, 0)
|
def gettempdir(): global tempdir if tempdir is not None: return tempdir attempdirs = ['/usr/tmp', '/tmp', os.getcwd(), os.curdir] if os.name == 'nt': attempdirs.insert(0, 'C:\\TEMP') attempdirs.insert(0, '\\TEMP') elif os.name == 'mac': import macfs, MACFS try: refnum, dirid = macfs.FindFolder(MACFS.kOnSystemDisk, MACFS.kTemporaryFolderType, 0) dirname = macfs.FSSpec((refnum, dirid, '')).as_pathname() attempdirs.insert(0, dirname) except macfs.error: pass for envname in 'TMPDIR', 'TEMP', 'TMP': if os.environ.has_key(envname): attempdirs.insert(0, os.environ[envname]) testfile = gettempprefix() + 'test' for dir in attempdirs: try: filename = os.path.join(dir, testfile) fp = open(filename, 'w') fp.write('blat') fp.close() os.unlink(filename) tempdir = dir break except IOError: pass if tempdir is None: msg = "Can't find a usable temporary directory amongst " + `attempdirs` raise IOError, msg return tempdir
|
7d1e18f431d98b1bf5b4e8796fd72d91be28c662 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/7d1e18f431d98b1bf5b4e8796fd72d91be28c662/tempfile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
5814,
1214,
13332,
2552,
23101,
309,
23101,
353,
486,
599,
30,
327,
23101,
3547,
84,
8291,
273,
10228,
19,
13640,
19,
5645,
2187,
1173,
5645,
2187,
1140,
18,
588,
11089,
9334,
1140,
18,
1397,
1214,
65,
309,
1140,
18,
529,
422,
296,
496,
4278,
3547,
84,
8291,
18,
6387,
12,
20,
16,
296,
39,
31027,
10258,
6134,
3547,
84,
8291,
18,
6387,
12,
20,
16,
3718,
10258,
6134,
1327,
1140,
18,
529,
422,
296,
5821,
4278,
1930,
5318,
2556,
16,
14246,
4931,
775,
30,
1278,
2107,
16,
1577,
350,
273,
5318,
2556,
18,
3125,
3899,
12,
10875,
4931,
18,
79,
1398,
3163,
6247,
16,
14246,
4931,
18,
79,
11685,
3899,
559,
16,
374,
13,
4283,
273,
5318,
2556,
18,
42,
1260,
705,
12443,
1734,
2107,
16,
1577,
350,
16,
28707,
2934,
345,
67,
28336,
1435,
3547,
84,
8291,
18,
6387,
12,
20,
16,
4283,
13,
1335,
5318,
2556,
18,
1636,
30,
1342,
364,
1550,
529,
316,
296,
28259,
4537,
2187,
296,
10258,
2187,
296,
28259,
4278,
309,
1140,
18,
28684,
18,
5332,
67,
856,
12,
3074,
529,
4672,
3547,
84,
8291,
18,
6387,
12,
20,
16,
1140,
18,
28684,
63,
3074,
529,
5717,
1842,
768,
273,
336,
5814,
3239,
1435,
397,
296,
3813,
11,
364,
1577,
316,
3547,
84,
8291,
30,
775,
30,
1544,
273,
1140,
18,
803,
18,
5701,
12,
1214,
16,
1842,
768,
13,
4253,
273,
1696,
12,
3459,
16,
296,
91,
6134,
4253,
18,
2626,
2668,
3083,
270,
6134,
4253,
18,
4412,
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,
5814,
1214,
13332,
2552,
23101,
309,
23101,
353,
486,
599,
30,
327,
23101,
3547,
84,
8291,
273,
10228,
19,
13640,
19,
5645,
2187,
1173,
5645,
2187,
1140,
18,
588,
11089,
9334,
1140,
18,
1397,
1214,
65,
309,
1140,
18,
529,
422,
296,
496,
4278,
3547,
84,
8291,
18,
6387,
12,
20,
16,
296,
39,
31027,
10258,
6134,
3547,
84,
8291,
18,
6387,
12,
20,
16,
3718,
10258,
6134,
1327,
1140,
18,
529,
422,
296,
5821,
4278,
1930,
5318,
2556,
16,
14246,
4931,
775,
30,
1278,
2107,
16,
1577,
350,
273,
5318,
2556,
18,
3125,
3899,
12,
10875,
4931,
18,
79,
1398,
3163,
6247,
16,
14246,
4931,
18,
79,
11685,
3899,
559,
16,
374,
13,
4283,
273,
5318,
2
] |
self.assertEqual(-0x7fffffff, -2147483647)
|
if platform_long_is_32_bits: self.assertEqual(-0x7fffffff, -2147483647) else: self.assertEqual(-0x7fffffffffffffff, -9223372036854775807)
|
def test_hex_baseline(self): # Baseline tests self.assertEqual(0x0, 0) self.assertEqual(0x10, 16) self.assertEqual(0x7fffffff, 2147483647) # Ditto with a minus sign and parentheses self.assertEqual(-(0x0), 0) self.assertEqual(-(0x10), -16) self.assertEqual(-(0x7fffffff), -2147483647) # Ditto with a minus sign and NO parentheses self.assertEqual(-0x0, 0) self.assertEqual(-0x10, -16) self.assertEqual(-0x7fffffff, -2147483647)
|
dca06f414126601662a498a0302f48b20977381b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/dca06f414126601662a498a0302f48b20977381b/test_hexoct.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
7118,
67,
27818,
12,
2890,
4672,
468,
605,
345,
3027,
7434,
365,
18,
11231,
5812,
12,
20,
92,
20,
16,
374,
13,
365,
18,
11231,
5812,
12,
20,
92,
2163,
16,
2872,
13,
365,
18,
11231,
5812,
12,
20,
92,
27,
18217,
74,
16,
30149,
30623,
30792,
13,
468,
463,
305,
869,
598,
279,
12647,
1573,
471,
27888,
365,
18,
11231,
5812,
19236,
12,
20,
92,
20,
3631,
374,
13,
365,
18,
11231,
5812,
19236,
12,
20,
92,
2163,
3631,
300,
2313,
13,
365,
18,
11231,
5812,
19236,
12,
20,
92,
27,
18217,
74,
3631,
300,
22,
3461,
30623,
30792,
13,
468,
463,
305,
869,
598,
279,
12647,
1573,
471,
3741,
27888,
365,
18,
11231,
5812,
19236,
20,
92,
20,
16,
374,
13,
365,
18,
11231,
5812,
19236,
20,
92,
2163,
16,
300,
2313,
13,
365,
18,
11231,
5812,
19236,
20,
92,
27,
18217,
74,
16,
300,
22,
3461,
30623,
30792,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
7118,
67,
27818,
12,
2890,
4672,
468,
605,
345,
3027,
7434,
365,
18,
11231,
5812,
12,
20,
92,
20,
16,
374,
13,
365,
18,
11231,
5812,
12,
20,
92,
2163,
16,
2872,
13,
365,
18,
11231,
5812,
12,
20,
92,
27,
18217,
74,
16,
30149,
30623,
30792,
13,
468,
463,
305,
869,
598,
279,
12647,
1573,
471,
27888,
365,
18,
11231,
5812,
19236,
12,
20,
92,
20,
3631,
374,
13,
365,
18,
11231,
5812,
19236,
12,
20,
92,
2163,
3631,
300,
2313,
13,
365,
18,
11231,
5812,
19236,
12,
20,
92,
27,
18217,
74,
3631,
300,
22,
3461,
30623,
30792,
13,
468,
463,
305,
869,
598,
279,
12647,
1573,
471,
3741,
27888,
365,
18,
11231,
5812,
2
] |
self.error("expected name token")
|
self.error("expected name token at %r" % rawdata[declstartpos:declstartpos+20])
|
def _scan_name(self, i, declstartpos): rawdata = self.rawdata n = len(rawdata) if i == n: return None, -1 m = _declname_match(rawdata, i) if m: s = m.group() name = s.strip() if (i + len(s)) == n: return None, -1 # end of buffer return name.lower(), m.end() else: self.updatepos(declstartpos, i) self.error("expected name token")
|
5495e33481d4c053ea2bc44dcaea1268ee5724ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/5495e33481d4c053ea2bc44dcaea1268ee5724ea/markupbase.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9871,
67,
529,
12,
2890,
16,
277,
16,
3496,
1937,
917,
4672,
1831,
892,
273,
365,
18,
1899,
892,
290,
273,
562,
12,
1899,
892,
13,
309,
277,
422,
290,
30,
327,
599,
16,
300,
21,
312,
273,
389,
8840,
529,
67,
1916,
12,
1899,
892,
16,
277,
13,
309,
312,
30,
272,
273,
312,
18,
1655,
1435,
508,
273,
272,
18,
6406,
1435,
309,
261,
77,
397,
562,
12,
87,
3719,
422,
290,
30,
327,
599,
16,
300,
21,
225,
468,
679,
434,
1613,
327,
508,
18,
8167,
9334,
312,
18,
409,
1435,
469,
30,
365,
18,
2725,
917,
12,
8840,
1937,
917,
16,
277,
13,
365,
18,
1636,
2932,
3825,
508,
1147,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9871,
67,
529,
12,
2890,
16,
277,
16,
3496,
1937,
917,
4672,
1831,
892,
273,
365,
18,
1899,
892,
290,
273,
562,
12,
1899,
892,
13,
309,
277,
422,
290,
30,
327,
599,
16,
300,
21,
312,
273,
389,
8840,
529,
67,
1916,
12,
1899,
892,
16,
277,
13,
309,
312,
30,
272,
273,
312,
18,
1655,
1435,
508,
273,
272,
18,
6406,
1435,
309,
261,
77,
397,
562,
12,
87,
3719,
422,
290,
30,
327,
599,
16,
300,
21,
225,
468,
679,
434,
1613,
327,
508,
18,
8167,
9334,
312,
18,
409,
1435,
469,
30,
365,
18,
2725,
917,
12,
8840,
1937,
917,
16,
277,
13,
365,
18,
1636,
2932,
3825,
508,
1147,
7923,
2,
-100,
-100
] |
notification = nn % image
|
notification = nn % imageName
|
def report(newtext, image, notification, head, notification2 = None, unver = True, commx = None): global botolist while 1: run = main(site = wikipedia.getSite()) secondrun = run.general(newtext, image, notification, head, botolist) if unver == True: try: resPutMex = run.put_mex() except wikipedia.NoPage: wikipedia.output(u"The page has been deleted! Skip!") break except wikipedia.EditConflict: wikipedia.output(u"Edit conflict! Skip!") break else: if resPutMex == False: break else: try: resPutMex = run.put_mex(False) except wikipedia.NoPage: wikipedia.output(u"The page has been deleted!") break except wikipedia.EditConflict: wikipedia.output(u"Edit conflict! Skip!") break else: if resPutMex == False: break try: run.put_talk(notification, head, notification2, commx) except wikipedia.EditConflict: wikipedia.output(u"Edit Conflict! Retrying...") try: run.put_talk(notification, head, notification2, commx) except: wikipedia.output(u"Another error... skipping the user..") break break
|
ac5b7ba834fe373afd8a095c9b6e449ab8bc6e95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/ac5b7ba834fe373afd8a095c9b6e449ab8bc6e95/checkimages.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
12,
2704,
955,
16,
1316,
16,
3851,
16,
910,
16,
3851,
22,
273,
599,
16,
640,
502,
273,
1053,
16,
1543,
92,
273,
599,
4672,
2552,
2512,
355,
376,
1323,
404,
30,
1086,
273,
2774,
12,
4256,
273,
21137,
18,
588,
4956,
10756,
2205,
2681,
273,
1086,
18,
12259,
12,
2704,
955,
16,
1316,
16,
3851,
16,
910,
16,
2512,
355,
376,
13,
309,
640,
502,
422,
1053,
30,
775,
30,
400,
6426,
49,
338,
273,
1086,
18,
458,
67,
81,
338,
1435,
1335,
21137,
18,
2279,
1964,
30,
21137,
18,
2844,
12,
89,
6,
1986,
1363,
711,
2118,
4282,
5,
6611,
4442,
13,
898,
1335,
21137,
18,
4666,
10732,
30,
21137,
18,
2844,
12,
89,
6,
4666,
7546,
5,
6611,
4442,
13,
898,
469,
30,
309,
400,
6426,
49,
338,
422,
1083,
30,
898,
469,
30,
775,
30,
400,
6426,
49,
338,
273,
1086,
18,
458,
67,
81,
338,
12,
8381,
13,
1335,
21137,
18,
2279,
1964,
30,
21137,
18,
2844,
12,
89,
6,
1986,
1363,
711,
2118,
4282,
4442,
13,
898,
1335,
21137,
18,
4666,
10732,
30,
21137,
18,
2844,
12,
89,
6,
4666,
7546,
5,
6611,
4442,
13,
898,
469,
30,
309,
400,
6426,
49,
338,
422,
1083,
30,
898,
775,
30,
1086,
18,
458,
67,
88,
2960,
12,
9927,
16,
910,
16,
3851,
22,
16,
1543,
92,
13,
1335,
21137,
18,
4666,
10732,
30,
21137,
18,
2844,
12,
89,
6,
4666,
23460,
5,
9954,
310,
7070,
13,
775,
30,
1086,
18,
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,
2605,
12,
2704,
955,
16,
1316,
16,
3851,
16,
910,
16,
3851,
22,
273,
599,
16,
640,
502,
273,
1053,
16,
1543,
92,
273,
599,
4672,
2552,
2512,
355,
376,
1323,
404,
30,
1086,
273,
2774,
12,
4256,
273,
21137,
18,
588,
4956,
10756,
2205,
2681,
273,
1086,
18,
12259,
12,
2704,
955,
16,
1316,
16,
3851,
16,
910,
16,
2512,
355,
376,
13,
309,
640,
502,
422,
1053,
30,
775,
30,
400,
6426,
49,
338,
273,
1086,
18,
458,
67,
81,
338,
1435,
1335,
21137,
18,
2279,
1964,
30,
21137,
18,
2844,
12,
89,
6,
1986,
1363,
711,
2118,
4282,
5,
6611,
4442,
13,
898,
1335,
21137,
18,
4666,
10732,
30,
21137,
18,
2844,
12,
89,
6,
2
] |
def gen_open(): today = '%d%02d%02d' % (datetime.now().year,datetime.now().month,datetime.now().day filename = '/var/spool/torque/server_priv/accounting/' + today)
|
def gen_cat(): today = '%d%02d%02d' % (datetime.now().year,datetime.now().month,datetime.now().day) filename = '/var/spool/torque/server_priv/accounting/' + today
|
def gen_open(): today = '%d%02d%02d' % (datetime.now().year,datetime.now().month,datetime.now().day filename = '/var/spool/torque/server_priv/accounting/' + today) s = open(filename,'r') while True: for item in s: yield item + s.name.replace('/var/spool/torque/server_priv/accounting/','') sleep(60) if os.stat(filename).st_size == f.tell() and today != '%d%02d%02d' % (datetime.now().year,datetime.now().month,datetime.now().day today = '%d%02d%02d' % (datetime.now().year,datetime.now().month,datetime.now().day filename = '/var/spool/torque/server_priv/accounting/' + today) s = open(filename,'r')
|
6d7e515593a673051b9876c756d703e23f40ade9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13786/6d7e515593a673051b9876c756d703e23f40ade9/pbsparse.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
2574,
13332,
10074,
273,
1995,
72,
9,
3103,
72,
9,
3103,
72,
11,
738,
261,
6585,
18,
3338,
7675,
6874,
16,
6585,
18,
3338,
7675,
7496,
16,
6585,
18,
3338,
7675,
2881,
13,
1544,
273,
1173,
1401,
19,
1752,
1371,
19,
13039,
1857,
19,
3567,
67,
11365,
19,
4631,
310,
2473,
397,
10074,
272,
273,
1696,
12,
3459,
11189,
86,
6134,
1323,
1053,
30,
364,
761,
316,
272,
30,
2824,
761,
397,
272,
18,
529,
18,
2079,
2668,
19,
1401,
19,
1752,
1371,
19,
13039,
1857,
19,
3567,
67,
11365,
19,
4631,
310,
19,
17023,
6134,
5329,
12,
4848,
13,
309,
1140,
18,
5642,
12,
3459,
2934,
334,
67,
1467,
422,
284,
18,
88,
1165,
1435,
471,
10074,
480,
225,
1995,
72,
9,
3103,
72,
9,
3103,
72,
11,
738,
261,
6585,
18,
3338,
7675,
6874,
16,
6585,
18,
3338,
7675,
7496,
16,
6585,
18,
3338,
7675,
2881,
10074,
273,
225,
1995,
72,
9,
3103,
72,
9,
3103,
72,
11,
738,
261,
6585,
18,
3338,
7675,
6874,
16,
6585,
18,
3338,
7675,
7496,
16,
6585,
18,
3338,
7675,
2881,
1544,
273,
1173,
1401,
19,
1752,
1371,
19,
13039,
1857,
19,
3567,
67,
11365,
19,
4631,
310,
2473,
397,
10074,
13,
272,
273,
1696,
12,
3459,
11189,
86,
6134,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
2574,
13332,
10074,
273,
1995,
72,
9,
3103,
72,
9,
3103,
72,
11,
738,
261,
6585,
18,
3338,
7675,
6874,
16,
6585,
18,
3338,
7675,
7496,
16,
6585,
18,
3338,
7675,
2881,
13,
1544,
273,
1173,
1401,
19,
1752,
1371,
19,
13039,
1857,
19,
3567,
67,
11365,
19,
4631,
310,
2473,
397,
10074,
272,
273,
1696,
12,
3459,
11189,
86,
6134,
1323,
1053,
30,
364,
761,
316,
272,
30,
2824,
761,
397,
272,
18,
529,
18,
2079,
2668,
19,
1401,
19,
1752,
1371,
19,
13039,
1857,
19,
3567,
67,
11365,
19,
4631,
310,
19,
17023,
6134,
5329,
12,
4848,
13,
309,
1140,
18,
5642,
12,
3459,
2934,
334,
67,
1467,
422,
284,
18,
88,
1165,
1435,
2
] |
elif previous_strand_atom is None and next_strand_atom:
|
if previous_strand_atom is None and next_strand_atom:
|
def get_strand_end_base_atoms(self): """ Returns a tuple containing the end base atoms of a strand in the following order : (5' end base atom, 3' end base atom). If any or both of these doesn't exist it returns 'None' in place of that non existent atom """ member = None for member in self.members: if isinstance(member, DnaStrandChunk): break if not isinstance(member, DnaStrandChunk): # no DnaStrandChunk members (should not happen) return (None, None) end_baseatoms = member.wholechain.end_baseatoms() if not end_baseatoms: # ring return (None, None) three_prime_end_base_atom = None five_prime_end_base_atom = None for atm in end_baseatoms: if atm is not None: rail = atm.molecule.get_ladder_rail() bond_direction = rail.bond_direction() next_strand_atom = atm.strand_next_baseatom(bond_direction) previous_strand_atom = atm.strand_next_baseatom(-bond_direction) if next_strand_atom is None and previous_strand_atom: three_prime_end_base_atom = atm elif previous_strand_atom is None and next_strand_atom: five_prime_end_base_atom = atm #What should be done in a case if 'atm' has no next or previous base #atoms? - Ninad 2008-03-27 # chain return (five_prime_end_base_atom, three_prime_end_base_atom)
|
9ce74fc3e2cac78bb9a4b93a3712453737a73963 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/9ce74fc3e2cac78bb9a4b93a3712453737a73963/DnaStrand.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
701,
464,
67,
409,
67,
1969,
67,
14937,
12,
2890,
4672,
3536,
2860,
279,
3193,
4191,
326,
679,
1026,
9006,
434,
279,
16706,
316,
326,
3751,
1353,
294,
261,
25,
11,
679,
1026,
3179,
16,
890,
11,
679,
1026,
3179,
2934,
971,
1281,
578,
3937,
434,
4259,
3302,
1404,
1005,
518,
1135,
296,
7036,
11,
316,
3166,
434,
716,
1661,
30364,
3179,
3536,
3140,
273,
599,
364,
3140,
316,
365,
18,
7640,
30,
309,
1549,
12,
5990,
16,
463,
6582,
1585,
464,
5579,
4672,
898,
309,
486,
1549,
12,
5990,
16,
463,
6582,
1585,
464,
5579,
4672,
468,
1158,
463,
6582,
1585,
464,
5579,
4833,
261,
13139,
486,
5865,
13,
327,
261,
7036,
16,
599,
13,
225,
679,
67,
1969,
14937,
273,
3140,
18,
3350,
790,
5639,
18,
409,
67,
1969,
14937,
1435,
225,
309,
486,
679,
67,
1969,
14937,
30,
468,
9221,
327,
261,
7036,
16,
599,
13,
225,
8925,
67,
16382,
67,
409,
67,
1969,
67,
7466,
273,
599,
23714,
67,
16382,
67,
409,
67,
1969,
67,
7466,
273,
599,
364,
622,
81,
316,
679,
67,
1969,
14937,
30,
309,
622,
81,
353,
486,
599,
30,
767,
330,
273,
622,
81,
18,
81,
10545,
18,
588,
67,
80,
361,
765,
67,
354,
330,
1435,
8427,
67,
9855,
273,
767,
330,
18,
26425,
67,
9855,
1435,
1024,
67,
701,
464,
67,
7466,
273,
622,
81,
18,
701,
464,
67,
4285,
67,
1969,
7466,
12,
26425,
67,
9855,
13,
2416,
67,
701,
464,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
701,
464,
67,
409,
67,
1969,
67,
14937,
12,
2890,
4672,
3536,
2860,
279,
3193,
4191,
326,
679,
1026,
9006,
434,
279,
16706,
316,
326,
3751,
1353,
294,
261,
25,
11,
679,
1026,
3179,
16,
890,
11,
679,
1026,
3179,
2934,
971,
1281,
578,
3937,
434,
4259,
3302,
1404,
1005,
518,
1135,
296,
7036,
11,
316,
3166,
434,
716,
1661,
30364,
3179,
3536,
3140,
273,
599,
364,
3140,
316,
365,
18,
7640,
30,
309,
1549,
12,
5990,
16,
463,
6582,
1585,
464,
5579,
4672,
898,
309,
486,
1549,
12,
5990,
16,
463,
6582,
1585,
464,
5579,
4672,
468,
1158,
463,
6582,
1585,
464,
5579,
4833,
261,
13139,
486,
5865,
13,
327,
261,
7036,
16,
599,
13,
2
] |
print 'TEST-PASS | ', result['name']
|
print '%s-PASS | %s' % (testOrSummary, result['name'])
|
def prettyPrintResults(): for result in TEST_RESULTS: #pprint.pprint(result) if len(result['fails']) == 0: print 'TEST-PASS | ', result['name'] else: print 'TEST-UNEXPECTED-FAIL | %s | %s' % (prettifyFilename(result['filename']), result['name']) for failure in result['fails']: if 'exception' in failure: prettyPrintException(failure['exception'])
|
68b35aeacabc869f9a7e01848fc8afd596e1ef2c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11044/68b35aeacabc869f9a7e01848fc8afd596e1ef2c/runtest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30410,
3447,
13332,
364,
563,
316,
22130,
67,
20602,
30,
468,
84,
1188,
18,
84,
1188,
12,
2088,
13,
309,
562,
12,
2088,
3292,
6870,
87,
19486,
422,
374,
30,
1172,
1995,
87,
17,
10884,
571,
738,
87,
11,
738,
261,
3813,
1162,
4733,
16,
563,
3292,
529,
19486,
469,
30,
1172,
296,
16961,
17,
2124,
27409,
17,
12319,
571,
738,
87,
571,
738,
87,
11,
738,
261,
1484,
748,
1164,
5359,
12,
2088,
3292,
3459,
3546,
3631,
563,
3292,
529,
19486,
364,
5166,
316,
563,
3292,
6870,
87,
3546,
30,
309,
296,
4064,
11,
316,
5166,
30,
30410,
503,
12,
12251,
3292,
4064,
19486,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30410,
3447,
13332,
364,
563,
316,
22130,
67,
20602,
30,
468,
84,
1188,
18,
84,
1188,
12,
2088,
13,
309,
562,
12,
2088,
3292,
6870,
87,
19486,
422,
374,
30,
1172,
1995,
87,
17,
10884,
571,
738,
87,
11,
738,
261,
3813,
1162,
4733,
16,
563,
3292,
529,
19486,
469,
30,
1172,
296,
16961,
17,
2124,
27409,
17,
12319,
571,
738,
87,
571,
738,
87,
11,
738,
261,
1484,
748,
1164,
5359,
12,
2088,
3292,
3459,
3546,
3631,
563,
3292,
529,
19486,
364,
5166,
316,
563,
3292,
6870,
87,
3546,
30,
309,
296,
4064,
11,
316,
5166,
30,
30410,
503,
12,
12251,
3292,
4064,
19486,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
tuple2: [(), (1,2,3)], str2: ["", "123"]
|
tuple2: {(): (), (1, 2, 3): (1, 2, 3)}, str2: {"": "", "123": "112233"}
|
def test_filter_subclasses(self): # test, that filter() never returns tuple, str or unicode subclasses funcs = (None, lambda x: True) class tuple2(tuple): pass class str2(str): pass inputs = { tuple2: [(), (1,2,3)], str2: ["", "123"] } if have_unicode: class unicode2(unicode): pass inputs[unicode2] = [unicode(), unicode("123")]
|
e03cb0dfb74e6fdef0019740b64cdb246fad25fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e03cb0dfb74e6fdef0019740b64cdb246fad25fa/test_builtin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2188,
67,
1717,
4701,
12,
2890,
4672,
468,
1842,
16,
716,
1034,
1435,
5903,
1135,
3193,
16,
609,
578,
5252,
15320,
15630,
273,
261,
7036,
16,
3195,
619,
30,
1053,
13,
667,
3193,
22,
12,
8052,
4672,
1342,
667,
609,
22,
12,
701,
4672,
1342,
4540,
273,
288,
3193,
22,
30,
288,
13332,
1832,
16,
261,
21,
16,
576,
16,
890,
4672,
261,
21,
16,
576,
16,
890,
13,
5779,
609,
22,
30,
282,
288,
3660,
30,
23453,
315,
12936,
6877,
315,
17666,
31026,
6,
97,
289,
309,
1240,
67,
9124,
30,
667,
5252,
22,
12,
9124,
4672,
1342,
4540,
63,
9124,
22,
65,
273,
306,
9124,
9334,
5252,
2932,
12936,
7923,
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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342,
4540,
273,
288,
3193,
22,
30,
288,
13332,
1832,
16,
261,
21,
16,
576,
16,
890,
4672,
261,
21,
16,
576,
16,
890,
13,
5779,
609,
22,
30,
282,
288,
3660,
30,
23453,
315,
12936,
6877,
315,
17666,
31026,
6,
97,
289,
309,
1240,
67,
9124,
30,
667,
5252,
22,
12,
9124,
4672,
1342,
4540,
63,
9124,
22,
65,
273,
306,
9124,
9334,
5252,
2932,
12936,
7923,
65,
2,
-100,
-100,
-100
] |
menu = Menu(pyduel,("New Game","Options","Quit")) firstScene = Duel(pyduel) while 1: pyduel.start(menu) pyduel.start(firstScene)
|
firstScene = Menu(pyduel,("New Game","Options","Quit")) pyduel.start(firstScene)
|
def main(): pyduel = Game(RESOLUTION, CAPTION, ICON) menu = Menu(pyduel,("New Game","Options","Quit")) firstScene = Duel(pyduel) while 1: pyduel.start(menu) pyduel.start(firstScene) # Start the game with a new Duel scene raise SystemExit, 0
|
52775a33db935d2225a5ee278cf4f542fcbf5d70 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4653/52775a33db935d2225a5ee278cf4f542fcbf5d70/main.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2395,
2544,
292,
273,
14121,
12,
17978,
13269,
16,
6425,
3725,
16,
467,
2248,
13,
1122,
14370,
273,
9809,
12,
2074,
2544,
292,
16,
2932,
1908,
14121,
15937,
1320,
15937,
25365,
6,
3719,
2395,
2544,
292,
18,
1937,
12,
3645,
14370,
13,
468,
3603,
326,
7920,
598,
279,
394,
463,
20317,
9065,
1002,
25454,
16,
374,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2395,
2544,
292,
273,
14121,
12,
17978,
13269,
16,
6425,
3725,
16,
467,
2248,
13,
1122,
14370,
273,
9809,
12,
2074,
2544,
292,
16,
2932,
1908,
14121,
15937,
1320,
15937,
25365,
6,
3719,
2395,
2544,
292,
18,
1937,
12,
3645,
14370,
13,
468,
3603,
326,
7920,
598,
279,
394,
463,
20317,
9065,
1002,
25454,
16,
374,
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
] |
return item.name.lower()
|
if item.name: return item.name.lower() return item.name
|
def sort_key(self, item): return item.name.lower()
|
962a0ec9ceef86d985544b7880664b8159908ae9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/962a0ec9ceef86d985544b7880664b8159908ae9/itemlist.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1524,
67,
856,
12,
2890,
16,
761,
4672,
327,
761,
18,
529,
18,
8167,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1524,
67,
856,
12,
2890,
16,
761,
4672,
327,
761,
18,
529,
18,
8167,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.nstr = double_fixup(self.n_validator, str(self.chirality_n_spinbox.value()), self.nstr) n = int(self.nstr)
|
n_previous = int(self.n) m_previous = int(self.m) n = self.chirality_n_spinbox.value() m = self.chirality_m_spinbox.value() if n < 2: n = 2 if m != self.m: if m > n: n = m elif n != self.n: if m > n: m = n
|
def length_fixup(self): '''Slot for several validators for different parameters. This gets called each time a user types anything into a widget or changes a spinbox. ''' self.nstr = double_fixup(self.n_validator, str(self.chirality_n_spinbox.value()), self.nstr) n = int(self.nstr) self.chirality_n_spinbox.setValue(n) self.m_validator.setRange(0, n) self.mstr = double_fixup(self.m_validator, str(self.chirality_m_spinbox.value()), self.mstr) self.chirality_m_spinbox.setValue(int(self.mstr)) self.lenstr = double_fixup(self.validator, self.length_linedit.text(), self.lenstr) self.length_linedit.setText(self.lenstr) self.blstr = double_fixup(self.validator, self.bond_length_linedit.text(), self.blstr) self.bond_length_linedit.setText(self.blstr) self.zstr = double_fixup(self.validator, self.z_distortion_linedit.text(), self.zstr) self.z_distortion_linedit.setText(self.zstr) self.xystr = double_fixup(self.validator, self.xy_distortion_linedit.text(), self.xystr) self.xy_distortion_linedit.setText(self.xystr) self.spstr = double_fixup(self.validator, self.mwcnt_spacing_linedit.text(), self.spstr) self.mwcnt_spacing_linedit.setText(self.spstr)
|
093326d437fc3759934ddbf9e21e67aa2dc380db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/093326d437fc3759934ddbf9e21e67aa2dc380db/NanotubeGenerator.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
769,
67,
904,
416,
12,
2890,
4672,
9163,
8764,
364,
11392,
11632,
364,
3775,
1472,
18,
1220,
5571,
2566,
1517,
813,
279,
729,
1953,
6967,
1368,
279,
3604,
578,
3478,
279,
12490,
2147,
18,
9163,
290,
67,
11515,
273,
509,
12,
2890,
18,
82,
13,
312,
67,
11515,
273,
509,
12,
2890,
18,
81,
13,
290,
273,
365,
18,
343,
481,
7919,
67,
82,
67,
22876,
2147,
18,
1132,
1435,
312,
273,
365,
18,
343,
481,
7919,
67,
81,
67,
22876,
2147,
18,
1132,
1435,
565,
309,
290,
411,
576,
30,
290,
273,
576,
309,
312,
480,
365,
18,
81,
30,
225,
309,
312,
405,
290,
30,
290,
273,
312,
1327,
290,
480,
365,
18,
82,
30,
225,
309,
312,
405,
290,
30,
312,
273,
290,
365,
18,
343,
481,
7919,
67,
82,
67,
22876,
2147,
18,
542,
620,
12,
82,
13,
365,
18,
81,
67,
7357,
18,
542,
2655,
12,
20,
16,
290,
13,
365,
18,
81,
701,
273,
1645,
67,
904,
416,
12,
2890,
18,
81,
67,
7357,
16,
609,
12,
2890,
18,
343,
481,
7919,
67,
81,
67,
22876,
2147,
18,
1132,
1435,
3631,
365,
18,
81,
701,
13,
365,
18,
343,
481,
7919,
67,
81,
67,
22876,
2147,
18,
542,
620,
12,
474,
12,
2890,
18,
81,
701,
3719,
365,
18,
1897,
701,
273,
1645,
67,
904,
416,
12,
2890,
18,
7357,
16,
365,
18,
2469,
67,
22316,
305,
18,
955,
9334,
365,
18,
1897,
701,
13,
365,
18,
2469,
67,
22316,
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,
769,
67,
904,
416,
12,
2890,
4672,
9163,
8764,
364,
11392,
11632,
364,
3775,
1472,
18,
1220,
5571,
2566,
1517,
813,
279,
729,
1953,
6967,
1368,
279,
3604,
578,
3478,
279,
12490,
2147,
18,
9163,
290,
67,
11515,
273,
509,
12,
2890,
18,
82,
13,
312,
67,
11515,
273,
509,
12,
2890,
18,
81,
13,
290,
273,
365,
18,
343,
481,
7919,
67,
82,
67,
22876,
2147,
18,
1132,
1435,
312,
273,
365,
18,
343,
481,
7919,
67,
81,
67,
22876,
2147,
18,
1132,
1435,
565,
309,
290,
411,
576,
30,
290,
273,
576,
309,
312,
480,
365,
18,
81,
30,
225,
309,
312,
405,
290,
30,
290,
273,
312,
1327,
290,
480,
365,
18,
82,
30,
225,
2
] |
self.logging.info("Your job identifier is: %s" % jOut['jobid'])
|
self.logging.debug("Your job identifier is: %s" % jOut['jobid'])
|
def submit( self, obj, requirements='', config ='', service='' ): """ submit a jdl to glite ends with a call to retrieve wms and job,gridid asssociation """
|
55a0d373215e2d2c4f99fe71353cbd62af3d7838 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8886/55a0d373215e2d2c4f99fe71353cbd62af3d7838/SchedulerGLite.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
12,
365,
16,
1081,
16,
8433,
2218,
2187,
642,
273,
11,
2187,
1156,
2218,
11,
262,
30,
3536,
4879,
279,
525,
5761,
358,
5118,
1137,
3930,
598,
279,
745,
358,
4614,
341,
959,
471,
1719,
16,
5222,
350,
487,
1049,
1882,
367,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
12,
365,
16,
1081,
16,
8433,
2218,
2187,
642,
273,
11,
2187,
1156,
2218,
11,
262,
30,
3536,
4879,
279,
525,
5761,
358,
5118,
1137,
3930,
598,
279,
745,
358,
4614,
341,
959,
471,
1719,
16,
5222,
350,
487,
1049,
1882,
367,
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
] |
c, "http://www.acme.com/foo%2f%25/<<%0anew/",
|
c, "http://www.acme.com/foo%2f%25/<<%0anewå/æøå",
|
def test_url_encoding(self): # Try some URL encodings of the PATHs. # (the behaviour here has changed from libwww-perl) from cookielib import CookieJar, DefaultCookiePolicy
|
a9d4fb349a878ab7e6d1af37ff85790d39f08b76 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/a9d4fb349a878ab7e6d1af37ff85790d39f08b76/test_cookielib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
718,
67,
5999,
12,
2890,
4672,
468,
6161,
2690,
1976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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,
718,
67,
5999,
12,
2890,
4672,
468,
6161,
2690,
1976,
24118,
434,
326,
7767,
87,
18,
468,
261,
5787,
14273,
2674,
711,
3550,
628,
2561,
5591,
17,
457,
80,
13,
628,
15860,
77,
30575,
1930,
10201,
10813,
16,
2989,
6151,
2582,
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
] |
sage: f = Piecewise([[(0,pi/2),f1],[(pi/2,pi),f2]])
|
sage: f = Piecewise([[(-pi,pi/2),f1],[(pi/2,pi),f2]])
|
def fourier_series_cosine_coefficient(self,n,L): r""" Returns the n-th Fourier series coefficient of $\cos(n\pi x/L)$, $a_n$.
|
0a3244f0e24f11675f8fd4274e0d00343dcc1b20 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0a3244f0e24f11675f8fd4274e0d00343dcc1b20/piecewise.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12792,
2453,
67,
10222,
67,
14445,
558,
67,
8075,
8714,
12,
2890,
16,
82,
16,
48,
4672,
436,
8395,
2860,
326,
290,
17,
451,
478,
24775,
4166,
16554,
434,
271,
64,
14445,
12,
82,
64,
7259,
619,
19,
48,
21877,
16,
271,
69,
67,
82,
8,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12792,
2453,
67,
10222,
67,
14445,
558,
67,
8075,
8714,
12,
2890,
16,
82,
16,
48,
4672,
436,
8395,
2860,
326,
290,
17,
451,
478,
24775,
4166,
16554,
434,
271,
64,
14445,
12,
82,
64,
7259,
619,
19,
48,
21877,
16,
271,
69,
67,
82,
8,
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
] |
class Scope(trellis.Component):
|
class Scope(InteractionComponent):
|
def set_value(self, value): return self.rule().set_value(value)
|
2d846dfc0a2a292c98fc3af53d4fc966746ef936 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12987/2d846dfc0a2a292c98fc3af53d4fc966746ef936/core.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
1132,
12,
2890,
16,
460,
4672,
327,
365,
18,
5345,
7675,
542,
67,
1132,
12,
1132,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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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
] |
if '__warningregistry__' in globals(): del globals()['__warningregistry__'] if hasattr(warning_tests, '__warningregistry__'): del warning_tests.__warningregistry__ if hasattr(sys, '__warningregistry__'): del sys.__warningregistry__ test_support.run_unittest(CFilterTests, PyFilterTests, CWarnTests, PyWarnTests,
|
test_support.run_unittest(CFilterTests, PyFilterTests, CWarnTests, PyWarnTests,
|
def test_main(): # Obscure hack so that this test passes after reloads or repeated calls # to test_main (regrtest -R). if '__warningregistry__' in globals(): del globals()['__warningregistry__'] if hasattr(warning_tests, '__warningregistry__'): del warning_tests.__warningregistry__ if hasattr(sys, '__warningregistry__'): del sys.__warningregistry__ test_support.run_unittest(CFilterTests, PyFilterTests, CWarnTests, PyWarnTests, CWCmdLineTests, PyWCmdLineTests, _WarningsTests, CWarningsDisplayTests, PyWarningsDisplayTests, )
|
270c8f6e48b1d2abc6701cad20b23c6ecc1876d9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/270c8f6e48b1d2abc6701cad20b23c6ecc1876d9/test_warnings.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
13332,
468,
19659,
1017,
594,
11769,
1427,
716,
333,
1842,
11656,
1839,
7749,
87,
578,
12533,
4097,
468,
358,
1842,
67,
5254,
261,
1574,
3797,
395,
300,
54,
2934,
309,
4940,
8551,
9893,
7250,
316,
10941,
13332,
1464,
10941,
1435,
3292,
972,
8551,
9893,
972,
3546,
309,
3859,
12,
8551,
67,
16341,
16,
4940,
8551,
9893,
7250,
4672,
1464,
3436,
67,
16341,
16186,
8551,
9893,
972,
309,
3859,
12,
9499,
16,
4940,
8551,
9893,
7250,
4672,
1464,
2589,
16186,
8551,
9893,
972,
1842,
67,
13261,
18,
2681,
67,
4873,
3813,
12,
39,
1586,
14650,
16,
4707,
1586,
14650,
16,
385,
3160,
14650,
16,
4707,
3160,
14650,
16,
385,
59,
5931,
1670,
14650,
16,
4707,
59,
5931,
1670,
14650,
16,
389,
4312,
14650,
16,
385,
4312,
4236,
14650,
16,
4707,
4312,
4236,
14650,
16,
262,
565,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
13332,
468,
19659,
1017,
594,
11769,
1427,
716,
333,
1842,
11656,
1839,
7749,
87,
578,
12533,
4097,
468,
358,
1842,
67,
5254,
261,
1574,
3797,
395,
300,
54,
2934,
309,
4940,
8551,
9893,
7250,
316,
10941,
13332,
1464,
10941,
1435,
3292,
972,
8551,
9893,
972,
3546,
309,
3859,
12,
8551,
67,
16341,
16,
4940,
8551,
9893,
7250,
4672,
1464,
3436,
67,
16341,
16186,
8551,
9893,
972,
309,
3859,
12,
9499,
16,
4940,
8551,
9893,
7250,
4672,
1464,
2589,
16186,
8551,
9893,
972,
1842,
67,
13261,
18,
2681,
67,
4873,
3813,
12,
39,
1586,
14650,
16,
4707,
1586,
14650,
16,
385,
3160,
14650,
16,
4707,
3160,
14650,
16,
385,
59,
5931,
1670,
14650,
16,
4707,
59,
2
] |
os.mkdir(root+"var/db/pkg/"+mycategory+"/"+mypackage,0755)
|
os.mkdir(root+"var/db/pkg/"+mycategory+"/"+mypackage,0755)
|
def prepare_db(mycategory,mypackage): if not os.path.isdir(root+"var"): os.mkdir(root+"var",0755) if not os.path.isdir(root+"var/db"): os.mkdir(root+"var/db",0755) if not os.path.isdir(root+"var/db/pkg"): os.mkdir(root+"var/db/pkg",0755) if not os.path.isdir(root+"var/db/pkg/"+mycategory): os.mkdir(root+"var/db/pkg/"+mycategory,0755) if not os.path.isdir(root+"var/db/pkg/"+mycategory+"/"+mypackage): os.mkdir(root+"var/db/pkg/"+mycategory+"/"+mypackage,0755)
|
7a55aaea33567268281c295278eae5e28a8eccca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9957/7a55aaea33567268281c295278eae5e28a8eccca/portage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
67,
1966,
12,
4811,
4743,
16,
81,
879,
1270,
4672,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
3085,
9078,
1401,
6,
4672,
1140,
18,
26686,
12,
3085,
9078,
1401,
3113,
8642,
2539,
13,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
3085,
9078,
1401,
19,
1966,
6,
4672,
1140,
18,
26686,
12,
3085,
9078,
1401,
19,
1966,
3113,
8642,
2539,
13,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
3085,
9078,
1401,
19,
1966,
19,
10657,
6,
4672,
1140,
18,
26686,
12,
3085,
9078,
1401,
19,
1966,
19,
10657,
3113,
8642,
2539,
13,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
3085,
9078,
1401,
19,
1966,
19,
10657,
4898,
15,
4811,
4743,
4672,
1140,
18,
26686,
12,
3085,
9078,
1401,
19,
1966,
19,
10657,
4898,
15,
4811,
4743,
16,
8642,
2539,
13,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
3085,
9078,
1401,
19,
1966,
19,
10657,
4898,
15,
4811,
4743,
9078,
4898,
15,
81,
879,
1270,
4672,
1140,
18,
26686,
12,
3085,
9078,
1401,
19,
1966,
19,
10657,
4898,
15,
4811,
4743,
9078,
4898,
15,
81,
879,
1270,
16,
8642,
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,
486,
1140,
18,
803,
18,
291,
1214,
12,
3085,
9078,
1401,
6,
4672,
1140,
18,
26686,
12,
3085,
9078,
1401,
3113,
8642,
2539,
13,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
3085,
9078,
1401,
19,
1966,
6,
4672,
1140,
18,
26686,
12,
3085,
9078,
1401,
19,
1966,
3113,
8642,
2539,
13,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
3085,
9078,
1401,
19,
1966,
19,
10657,
6,
4672,
1140,
18,
26686,
12,
3085,
9078,
1401,
19,
1966,
19,
10657,
3113,
8642,
2539,
13,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
3085,
9078,
1401,
19,
1966,
19,
10657,
4898,
15,
4811,
4743,
2
] |
def setUp(self): self.msgs = [] self.p = FakeProtocol(self.msgs) def testSingleLevel(self): host = 'domain.tld' m = dns.Message() rr = dns.RRHeader('tld', dns.NS, payload=dns.Record_NS(host)) m.answers.append(rr) self.msgs.append(m) m = dns.Message() rr = dns.RRHeader(host, dns.NS, payload=dns.Record_NS(host)) m.answers.append(rr) self.msgs.append(m) d = root.discoverAuthority(host, ['root.server'], p=self.p) r = unittest.deferredResult(flow.Deferred(d)) self.assertEquals(len(r), 2) self.assertEquals(r[1], 'root.server') m = r[0] self.assertEquals(len(m.answers), 1) self.assertEquals(len(m.additional), 0) self.assertEquals(len(m.authority), 0) a = m.answers[0] self.assertEquals(a, rr) a, kw = self.p.args self.assertEquals(len(a), 2) self.assertEquals(kw, {'timeout': 1}) r = a[0] self.assertEquals(len(r), 3) self.assertEquals(r[1], [dns.Query('tld.', dns.NS)]) r = a[1] self.assertEquals(len(r), 3) self.assertEquals(r[1], [dns.Query('domain.tld', dns.NS)]) def testMultiLevel(self): host = 'big.long.host.name.with.many.many.many.different.parts.tld' dots = host.count('.') for i in range(dots + 1): m = dns.Message() p = host.split('.', dots - i) rr = dns.RRHeader(p[-1], dns.NS, payload=dns.Record_NS('.'.join(p[-2:]))) m.answers.append(rr) self.msgs.append(m) d = root.discoverAuthority(host, ['root.server'], p=self.p) r = unittest.deferredResult(flow.Deferred(d)) self.assertEquals(len(r), 2) self.assertEquals(r[1], 'root.server') m = r[0] self.assertEquals(len(m.answers), 1) self.assertEquals(len(m.additional), 0) self.assertEquals(len(m.authority), 0) a = m.answers[0] self.assertEquals(a, rr) r = self.p.args[0] self.assertEquals(len(r), 3) self.assertEquals(r[1], [dns.Query('tld.', dns.NS)]) for i in range(1, dots + 1): r = self.p.args[i] self.assertEquals(len(r), 3) self.assertEquals(r[1], [dns.Query(host.split('.', dots - i)[-1], dns.NS)])
|
pass
|
def setUp(self): self.msgs = [] self.p = FakeProtocol(self.msgs)
|
e6486e85506bc0f41ed39f239129fe36f6846e72 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/e6486e85506bc0f41ed39f239129fe36f6846e72/test_rootresolve.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
27439,
273,
5378,
365,
18,
84,
273,
11551,
5752,
12,
2890,
18,
27439,
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,
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4672,
365,
18,
27439,
273,
5378,
365,
18,
84,
273,
11551,
5752,
12,
2890,
18,
27439,
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
] |
dep_file, dep_time = deps.newest_dep(f)
|
dep_file, dep_time = deps.newest_dep(f,m)
|
def compile_command_list(ext_modules, deps): """ Computes a list of commands needed to compile and link the extension modules given in 'ext_modules' """ queue_compile_high = [] queue_compile_med = [] queue_compile_low = [] for m in ext_modules: new_sources = [] for f in m.sources: if f.endswith('.pyx'): dep_file, dep_time = deps.newest_dep(f) dest_file = "%s/%s"%(SITE_PACKAGES, f) dest_time = deps.timestamp(dest_file) if dest_time < dep_time: if dep_file == f: print "Building modified file %s."%f queue_compile_high.append([compile_command, (f,m)]) elif dep_file == (f[:-4] + '.pxd'): print "Building %s because it depends on %s."%(f, dep_file) queue_compile_med.append([compile_command, (f,m)]) else: print "Building %s because it depends on %s."%(f, dep_file) queue_compile_low.append([compile_command, (f,m)]) new_sources.append(process_filename(f, m)) m.sources = new_sources return queue_compile_high + queue_compile_med + queue_compile_low
|
031b02486f3aa60bbe6ec46c81307116288d5734 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/031b02486f3aa60bbe6ec46c81307116288d5734/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
67,
3076,
67,
1098,
12,
408,
67,
6400,
16,
8740,
4672,
3536,
14169,
281,
279,
666,
434,
4364,
3577,
358,
4074,
471,
1692,
326,
2710,
4381,
864,
316,
296,
408,
67,
6400,
11,
3536,
2389,
67,
11100,
67,
8766,
273,
5378,
2389,
67,
11100,
67,
2937,
273,
5378,
2389,
67,
11100,
67,
821,
273,
5378,
225,
364,
312,
316,
1110,
67,
6400,
30,
394,
67,
10141,
273,
5378,
364,
284,
316,
312,
18,
10141,
30,
309,
284,
18,
5839,
1918,
2668,
18,
2074,
92,
11,
4672,
5993,
67,
768,
16,
5993,
67,
957,
273,
8740,
18,
2704,
395,
67,
15037,
12,
74,
16,
81,
13,
1570,
67,
768,
273,
2213,
87,
5258,
87,
6,
17105,
20609,
67,
19077,
55,
16,
284,
13,
1570,
67,
957,
273,
8740,
18,
5508,
12,
10488,
67,
768,
13,
309,
1570,
67,
957,
411,
5993,
67,
957,
30,
309,
5993,
67,
768,
422,
284,
30,
1172,
315,
16713,
4358,
585,
738,
87,
1199,
9,
74,
2389,
67,
11100,
67,
8766,
18,
6923,
3816,
11100,
67,
3076,
16,
261,
74,
16,
81,
13,
5717,
1327,
5993,
67,
768,
422,
261,
74,
10531,
17,
24,
65,
397,
2418,
4430,
72,
11,
4672,
1172,
315,
16713,
738,
87,
2724,
518,
10935,
603,
738,
87,
1199,
17105,
74,
16,
5993,
67,
768,
13,
2389,
67,
11100,
67,
2937,
18,
6923,
3816,
11100,
67,
3076,
16,
261,
74,
16,
81,
13,
5717,
469,
30,
1172,
315,
16713,
738,
87,
2724,
518,
10935,
603,
738,
87,
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,
4074,
67,
3076,
67,
1098,
12,
408,
67,
6400,
16,
8740,
4672,
3536,
14169,
281,
279,
666,
434,
4364,
3577,
358,
4074,
471,
1692,
326,
2710,
4381,
864,
316,
296,
408,
67,
6400,
11,
3536,
2389,
67,
11100,
67,
8766,
273,
5378,
2389,
67,
11100,
67,
2937,
273,
5378,
2389,
67,
11100,
67,
821,
273,
5378,
225,
364,
312,
316,
1110,
67,
6400,
30,
394,
67,
10141,
273,
5378,
364,
284,
316,
312,
18,
10141,
30,
309,
284,
18,
5839,
1918,
2668,
18,
2074,
92,
11,
4672,
5993,
67,
768,
16,
5993,
67,
957,
273,
8740,
18,
2704,
395,
67,
15037,
12,
74,
16,
81,
13,
1570,
67,
768,
273,
2213,
87,
5258,
87,
6,
17105,
20609,
67,
2
] |
for (x,y) in matches: print "%s (%d)" % (y,x)
|
for match in matches: print "%s (%d)" % match
|
def main(args): unicode_names= [] for ix in range(sys.maxunicode+1): try: unicode_names.append( (ix, unicodedata.name(unichr(ix))) ) except ValueError: # no name for the character pass for arg in args: pat = re.compile(arg, re.I) matches = [(x,y) for (x,y) in unicode_names if pat.search(y) is not None] if matches: print "***", arg, "matches", "***" for (x,y) in matches: print "%s (%d)" % (y,x)
|
cca625d446c1f56efb694346bf0b0dd50af88acd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/cca625d446c1f56efb694346bf0b0dd50af88acd/find-uname.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1968,
4672,
5252,
67,
1973,
33,
5378,
364,
8288,
316,
1048,
12,
9499,
18,
1896,
9124,
15,
21,
4672,
775,
30,
5252,
67,
1973,
18,
6923,
12,
261,
697,
16,
5252,
892,
18,
529,
12,
318,
1354,
86,
12,
697,
20349,
262,
1335,
2068,
30,
468,
1158,
508,
364,
326,
3351,
1342,
364,
1501,
316,
833,
30,
9670,
273,
283,
18,
11100,
12,
3175,
16,
283,
18,
45,
13,
1885,
273,
306,
12,
92,
16,
93,
13,
364,
261,
92,
16,
93,
13,
316,
5252,
67,
1973,
309,
9670,
18,
3072,
12,
93,
13,
353,
486,
599,
65,
309,
1885,
30,
1172,
315,
14465,
3113,
1501,
16,
315,
8436,
3113,
28078,
7388,
364,
845,
316,
1885,
30,
1172,
2213,
87,
6142,
72,
2225,
738,
845,
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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923,
12,
261,
697,
16,
5252,
892,
18,
529,
12,
318,
1354,
86,
12,
697,
20349,
262,
1335,
2068,
30,
468,
1158,
508,
364,
326,
3351,
1342,
364,
1501,
316,
833,
30,
9670,
273,
283,
18,
11100,
12,
3175,
16,
283,
18,
45,
13,
1885,
273,
306,
12,
92,
16,
93,
13,
364,
261,
92,
16,
93,
13,
316,
5252,
67,
1973,
309,
9670,
18,
3072,
12,
93,
13,
353,
486,
599,
65,
309,
1885,
30,
1172,
315,
14465,
3113,
1501,
16,
315,
8436,
3113,
28078,
7388,
364,
845,
316,
1885,
2
] |
self.runCmd("disassemble")
|
self.runCmd("disassemble -f")
|
def do_simple_disasm(self): """Do a bunch of simple disassemble commands.""" exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
|
974f010e2f30baf42f1e09c6a4005c708f154fe7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11986/974f010e2f30baf42f1e09c6a4005c708f154fe7/TestFoundationDisassembly.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
9647,
67,
2251,
23522,
12,
2890,
4672,
3536,
3244,
279,
25606,
434,
4143,
1015,
29676,
4364,
12123,
15073,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
588,
11089,
9334,
315,
69,
18,
659,
7923,
365,
18,
2681,
5931,
2932,
768,
315,
397,
15073,
16,
18484,
67,
15271,
1693,
2782,
67,
4043,
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,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
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,
9647,
67,
2251,
23522,
12,
2890,
4672,
3536,
3244,
279,
25606,
434,
4143,
1015,
29676,
4364,
12123,
15073,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
588,
11089,
9334,
315,
69,
18,
659,
7923,
365,
18,
2681,
5931,
2932,
768,
315,
397,
15073,
16,
18484,
67,
15271,
1693,
2782,
67,
4043,
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
] |
warning.warn("Cannot add element of type %s to ParserElement" % type(other),
|
warnings.warn("Cannot add element of type %s to ParserElement" % type(other),
|
def __rxor__(self, other ): """Implementation of ^= operator""" if isinstance( other, basestring ): other = Literal( other ) if not isinstance( other, ParserElement ): warning.warn("Cannot add element of type %s to ParserElement" % type(other), SyntaxWarning, stacklevel=2) return other ^ self
|
f4b669650e45e6329b2a61406dbab3af39cf3582 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3693/f4b669650e45e6329b2a61406dbab3af39cf3582/pyparsing.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
20122,
280,
972,
12,
2890,
16,
1308,
262,
30,
3536,
13621,
434,
10352,
3726,
8395,
309,
1549,
12,
1308,
16,
10699,
262,
30,
1308,
273,
14392,
12,
1308,
262,
309,
486,
1549,
12,
1308,
16,
6783,
1046,
262,
30,
5599,
18,
8935,
2932,
4515,
527,
930,
434,
618,
738,
87,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
20122,
280,
972,
12,
2890,
16,
1308,
262,
30,
3536,
13621,
434,
10352,
3726,
8395,
309,
1549,
12,
1308,
16,
10699,
262,
30,
1308,
273,
14392,
12,
1308,
262,
309,
486,
1549,
12,
1308,
16,
6783,
1046,
262,
30,
5599,
18,
8935,
2932,
4515,
527,
930,
434,
618,
738,
87,
358,
6783,
1046,
6,
738,
618,
12,
3011,
3631,
11517,
6210,
16,
26847,
33,
22,
13,
327,
1308,
3602,
365,
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
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.