rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
sequencelengths 256
256
| attention_mask
sequencelengths 256
256
| labels
sequencelengths 128
128
|
---|---|---|---|---|---|---|
if not self.buffer: | endpos = self.scanTo(">") + 1 if self.buffer[self.tagpos:self.tagpos+4] == "<!--": while True: if self.EOF: break if self.buffer[endpos-2:endpos] == '-->': break self.bufpos = endpos endpos = self.scanTo(">") + 1 self.bufpos = endpos | def parseFile(self, file): self.file = file self.EOF = False self.buffer = "" self.extendBuffer() while True: | 76fdbe5c982cfc23db9b0406a5307afa7d58c5a1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14305/76fdbe5c982cfc23db9b0406a5307afa7d58c5a1/simplexmlparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31986,
12,
2890,
16,
585,
4672,
365,
18,
768,
273,
585,
365,
18,
12706,
273,
1083,
365,
18,
4106,
273,
1408,
365,
18,
14313,
1892,
1435,
225,
1323,
1053,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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4106,
273,
1408,
365,
18,
14313,
1892,
1435,
225,
1323,
1053,
30,
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
] |
self._io_trait_changed(self, path, Undefined, getattr(self, path)) | self._io_trait_changed(self, path, Undefined, getattr(self, path)) | def set(self, path, value, index=None, srcname=None, force=False): """Set the value of the data object specified by the given path, which may contain '.' characters. If path specifies a Variable, then its value attribute will be set to the given value, subject to validation and constraints. index, if not None, should be a list of ints, at most one for each array dimension of the target value. """ assert(isinstance(path, basestring)) if path is None: if index is None: # should never get down this far self.raise_exception('this object cannot replace itself') else: self.raise_exception( 'Cannot set value at index %s'% str(index), AttributeError) tup = path.split('.') if len(tup) == 1: trait = self._check_trait_settable(path, srcname, force) if index is None: if trait is None: self.raise_exception("object has no attribute '%s'" % path, TraitError) # bypass the callback here and call it manually after # with a flag to tell it not to check if it's a destination self._trait_change_notify(False) try: setattr(self, path, value) finally: self._trait_change_notify(True) # now manually call the notifier with old set to Undefined # to avoid the destination check self._io_trait_changed(self, path, Undefined, getattr(self, path)) else: self._array_set(path, value, index) else: obj = getattr(self, tup[0], Missing) if obj is Missing: self.raise_exception("object has no attribute '%s'" % tup[0], TraitError) if len(tup) == 2: if isinstance(obj, Container): obj.set(tup[1], value, index, srcname=srcname, force=force) elif index is None: setattr(obj, tup[1], value) else: obj._array_set(tup[1], value, index) else: if isinstance(obj, Container): obj.set('.'.join(tup[1:]), value, index, force=force) elif index is not None: obj._array_set('.'.join(tup[1:]), value, index) else: self.raise_exception("object has no attribute '%s'" % path, TraitError) | 8586d67f5d42158f614b7fc3ff6c91066cfdb680 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12610/8586d67f5d42158f614b7fc3ff6c91066cfdb680/container.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
589,
16,
460,
16,
770,
33,
7036,
16,
1705,
529,
33,
7036,
16,
2944,
33,
8381,
4672,
3536,
694,
326,
460,
434,
326,
501,
733,
1269,
635,
326,
225,
864,
589,
16,
1492,
2026,
912,
2611,
3949,
18,
225,
971,
589,
11470,
279,
7110,
16,
1508,
2097,
460,
1566,
903,
506,
444,
358,
326,
864,
460,
16,
3221,
358,
3379,
471,
225,
6237,
18,
770,
16,
309,
486,
599,
16,
1410,
506,
279,
666,
434,
15542,
16,
622,
4486,
1245,
364,
1517,
526,
4968,
434,
326,
1018,
460,
18,
3536,
1815,
12,
291,
1336,
12,
803,
16,
10699,
3719,
225,
309,
589,
353,
599,
30,
309,
770,
353,
599,
30,
468,
1410,
5903,
336,
2588,
333,
10247,
365,
18,
11628,
67,
4064,
2668,
2211,
733,
2780,
1453,
6174,
6134,
469,
30,
365,
18,
11628,
67,
4064,
12,
296,
4515,
444,
460,
622,
770,
738,
87,
11,
9,
609,
12,
1615,
3631,
6394,
13,
225,
15822,
273,
589,
18,
4939,
2668,
1093,
13,
309,
562,
12,
88,
416,
13,
422,
404,
30,
13517,
273,
365,
6315,
1893,
67,
22513,
67,
542,
2121,
12,
803,
16,
1705,
529,
16,
2944,
13,
309,
770,
353,
599,
30,
309,
13517,
353,
599,
30,
365,
18,
11628,
67,
4064,
2932,
1612,
711,
1158,
1566,
1995,
87,
4970,
738,
589,
16,
2197,
305,
668,
13,
468,
17587,
326,
1348,
2674,
471,
745,
518,
10036,
1839,
468,
598,
279,
2982,
358,
9276,
518,
486,
358,
866,
309,
518,
1807,
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,
444,
12,
2890,
16,
589,
16,
460,
16,
770,
33,
7036,
16,
1705,
529,
33,
7036,
16,
2944,
33,
8381,
4672,
3536,
694,
326,
460,
434,
326,
501,
733,
1269,
635,
326,
225,
864,
589,
16,
1492,
2026,
912,
2611,
3949,
18,
225,
971,
589,
11470,
279,
7110,
16,
1508,
2097,
460,
1566,
903,
506,
444,
358,
326,
864,
460,
16,
3221,
358,
3379,
471,
225,
6237,
18,
770,
16,
309,
486,
599,
16,
1410,
506,
279,
666,
434,
15542,
16,
622,
4486,
1245,
364,
1517,
526,
4968,
434,
326,
1018,
460,
18,
3536,
1815,
12,
291,
1336,
12,
803,
16,
10699,
3719,
225,
309,
589,
353,
599,
30,
309,
770,
353,
599,
30,
468,
1410,
5903,
336,
2
] |
print value | def unwrapValueFromHTML(value): """Remove the html stuff around the body """ # get the body text print value result = RE_BODY.search(value) if result: body = result.group(1) else: raise ValueError('%s is not a html string' % value) | 729019ded8d6dfae2786f11cc5256cc42447d87e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/729019ded8d6dfae2786f11cc5256cc42447d87e/Validators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11014,
620,
1265,
4870,
12,
1132,
4672,
3536,
3288,
326,
1729,
10769,
6740,
326,
1417,
3536,
468,
336,
326,
1417,
977,
563,
273,
2438,
67,
16691,
18,
3072,
12,
1132,
13,
309,
563,
30,
1417,
273,
563,
18,
1655,
12,
21,
13,
469,
30,
1002,
2068,
29909,
87,
353,
486,
279,
1729,
533,
11,
738,
460,
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,
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273,
2438,
67,
16691,
18,
3072,
12,
1132,
13,
309,
563,
30,
1417,
273,
563,
18,
1655,
12,
21,
13,
469,
30,
1002,
2068,
29909,
87,
353,
486,
279,
1729,
533,
11,
738,
460,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
chain = self.context._default_chain for workflow_id in chain: | for workflow_id in self.context._default_chain or (): | def _extractChains(self): fragment = self._doc.createDocumentFragment() node = self._doc.createElement('bindings') child = self._doc.createElement('default') chain = self.context._default_chain for workflow_id in chain: sub = self._doc.createElement('bound-workflow') sub.setAttribute('workflow_id', workflow_id) child.appendChild(sub) node.appendChild(child) cbt = self.context._chains_by_type for ti in sorted( getToolByName(self.context, 'portal_types').listTypeInfo(), key=lambda type: type.getId()): type_id = ti.getId() chain = cbt.get(type_id, _marker) | 35ec350ce0f144df2edf60273e860fa2fb923d2c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11955/35ec350ce0f144df2edf60273e860fa2fb923d2c/exportimport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8004,
15945,
12,
2890,
4672,
5481,
273,
365,
6315,
2434,
18,
2640,
2519,
7456,
1435,
756,
273,
365,
6315,
2434,
18,
2640,
1046,
2668,
15863,
6134,
1151,
273,
365,
6315,
2434,
18,
2640,
1046,
2668,
1886,
6134,
364,
6095,
67,
350,
316,
365,
18,
2472,
6315,
1886,
67,
5639,
578,
1832,
30,
720,
273,
365,
6315,
2434,
18,
2640,
1046,
2668,
3653,
17,
13815,
6134,
720,
18,
542,
1499,
2668,
13815,
67,
350,
2187,
6095,
67,
350,
13,
1151,
18,
6923,
1763,
12,
1717,
13,
756,
18,
6923,
1763,
12,
3624,
13,
2875,
88,
273,
365,
18,
2472,
6315,
23060,
67,
1637,
67,
723,
364,
11374,
316,
3115,
12,
336,
6364,
5911,
12,
2890,
18,
2472,
16,
296,
24386,
67,
2352,
16063,
1098,
17305,
9334,
498,
33,
14661,
618,
30,
618,
18,
26321,
1435,
4672,
618,
67,
350,
273,
11374,
18,
26321,
1435,
2687,
273,
2875,
88,
18,
588,
12,
723,
67,
350,
16,
389,
11145,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8004,
15945,
12,
2890,
4672,
5481,
273,
365,
6315,
2434,
18,
2640,
2519,
7456,
1435,
756,
273,
365,
6315,
2434,
18,
2640,
1046,
2668,
15863,
6134,
1151,
273,
365,
6315,
2434,
18,
2640,
1046,
2668,
1886,
6134,
364,
6095,
67,
350,
316,
365,
18,
2472,
6315,
1886,
67,
5639,
578,
1832,
30,
720,
273,
365,
6315,
2434,
18,
2640,
1046,
2668,
3653,
17,
13815,
6134,
720,
18,
542,
1499,
2668,
13815,
67,
350,
2187,
6095,
67,
350,
13,
1151,
18,
6923,
1763,
12,
1717,
13,
756,
18,
6923,
1763,
12,
3624,
13,
2875,
88,
273,
365,
18,
2472,
6315,
23060,
67,
1637,
67,
723,
364,
11374,
316,
3115,
12,
336,
6364,
5911,
12,
2890,
18,
2472,
16,
2
] |
self._dkeys = self._dict.keys() self._dkeys.sort() | def __init__(self, *args): unittest.TestCase.__init__(self, *args) self._dkeys = self._dict.keys() self._dkeys.sort() | c7392e9a988d3d5003c94a367c90c945a0f5e0b3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/c7392e9a988d3d5003c94a367c90c945a0f5e0b3/test_dumbdbm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
2836,
3813,
18,
4709,
2449,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
2836,
3813,
18,
4709,
2449,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
13,
365,
6315,
72,
2452,
273,
365,
6315,
1576,
18,
2452,
1435,
365,
6315,
72,
2452,
18,
3804,
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
] |
|
if tableWhitelist != None: columnSQLWhitelist = '`%s`' % "`, `".join(colsWhitelist) | if self.tableWhitelist != None: | def start(self): if self.factory == None: raise ParamError("this module need reference to fatory and database connection pool") | 2d6b03ec5735bdc3185b3b5ecbcfa402ac08edae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5428/2d6b03ec5735bdc3185b3b5ecbcfa402ac08edae/ListBW.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
309,
365,
18,
6848,
422,
599,
30,
1002,
3014,
668,
2932,
2211,
1605,
1608,
2114,
358,
284,
8452,
471,
2063,
1459,
2845,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
309,
365,
18,
6848,
422,
599,
30,
1002,
3014,
668,
2932,
2211,
1605,
1608,
2114,
358,
284,
8452,
471,
2063,
1459,
2845,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
rotation_axis = numpy.array([0.0, 0.0, -1.0], float) | rotation_axis = numpy.array([0.0, 0.0, 1.0], float) | def button_motion(self, drawing_area, event, start_button): if start_button == 2: return elif start_button == 1: # XY rotation rotx = (event.x - self.former_x) / float(drawing_area.allocation.width) * 360 roty = (event.y - self.former_y) / float(drawing_area.allocation.width) * 360 rotation_axis = numpy.array([-roty, -rotx, 0.0], float) rotation_angle = numpy.sqrt(rotx*rotx + roty*roty)/30 self.former_x = event.x self.former_y = event.y elif start_button == 3: # Z rotation srcx, srcy = self.screen_rotation_center rotz = numpy.arctan2(-(event.y - srcy), event.x - srcx) rotation_axis = numpy.array([0.0, 0.0, -1.0], float) rotation_angle = rotz - self.former_rotz self.former_rotz = rotz return rotation_angle, rotation_axis | df0f16f4feb292b95cbec42d84d5765f42dc1639 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11052/df0f16f4feb292b95cbec42d84d5765f42dc1639/transform.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3568,
67,
81,
8240,
12,
2890,
16,
16327,
67,
5036,
16,
871,
16,
787,
67,
5391,
4672,
309,
787,
67,
5391,
422,
576,
30,
327,
1327,
787,
67,
5391,
422,
404,
30,
468,
18774,
6752,
721,
978,
273,
261,
2575,
18,
92,
300,
365,
18,
7208,
67,
92,
13,
342,
1431,
12,
9446,
310,
67,
5036,
18,
29299,
18,
2819,
13,
380,
12360,
721,
4098,
273,
261,
2575,
18,
93,
300,
365,
18,
7208,
67,
93,
13,
342,
1431,
12,
9446,
310,
67,
5036,
18,
29299,
18,
2819,
13,
380,
12360,
6752,
67,
4890,
273,
3972,
18,
1126,
3816,
17,
303,
4098,
16,
300,
303,
978,
16,
374,
18,
20,
6487,
1431,
13,
6752,
67,
4341,
273,
3972,
18,
24492,
12,
303,
978,
14,
303,
978,
397,
721,
4098,
14,
303,
4098,
13176,
5082,
365,
18,
7208,
67,
92,
273,
871,
18,
92,
365,
18,
7208,
67,
93,
273,
871,
18,
93,
1327,
787,
67,
5391,
422,
890,
30,
468,
2285,
6752,
1705,
92,
16,
1705,
93,
273,
365,
18,
9252,
67,
18807,
67,
5693,
4168,
94,
273,
3972,
18,
297,
299,
304,
22,
19236,
12,
2575,
18,
93,
300,
1705,
93,
3631,
871,
18,
92,
300,
1705,
92,
13,
6752,
67,
4890,
273,
3972,
18,
1126,
3816,
20,
18,
20,
16,
374,
18,
20,
16,
404,
18,
20,
6487,
1431,
13,
6752,
67,
4341,
273,
4168,
94,
300,
365,
18,
7208,
67,
8342,
94,
365,
18,
7208,
67,
8342,
94,
273,
4168,
94,
327,
6752,
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,
3568,
67,
81,
8240,
12,
2890,
16,
16327,
67,
5036,
16,
871,
16,
787,
67,
5391,
4672,
309,
787,
67,
5391,
422,
576,
30,
327,
1327,
787,
67,
5391,
422,
404,
30,
468,
18774,
6752,
721,
978,
273,
261,
2575,
18,
92,
300,
365,
18,
7208,
67,
92,
13,
342,
1431,
12,
9446,
310,
67,
5036,
18,
29299,
18,
2819,
13,
380,
12360,
721,
4098,
273,
261,
2575,
18,
93,
300,
365,
18,
7208,
67,
93,
13,
342,
1431,
12,
9446,
310,
67,
5036,
18,
29299,
18,
2819,
13,
380,
12360,
6752,
67,
4890,
273,
3972,
18,
1126,
3816,
17,
303,
4098,
16,
300,
303,
978,
16,
374,
18,
20,
6487,
1431,
13,
6752,
67,
4341,
273,
3972,
2
] |
security.declarePublic( permissions.View, 'EffectiveDate') | security.declareProtected( permissions.View, 'EffectiveDate') | def CreationDate(self): """ Dublin Core element - date resource created. """ creation = self.getField('creation_date').get(self) # return unknown if never set properly return creation is None and 'Unknown' or creation.ISO() | 258e367eb382d8fe8c19d54322b0fde4f1321aeb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/258e367eb382d8fe8c19d54322b0fde4f1321aeb/ExtensibleMetadata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18199,
1626,
12,
2890,
4672,
3536,
31760,
4586,
930,
300,
1509,
1058,
2522,
18,
3536,
6710,
273,
365,
18,
588,
974,
2668,
17169,
67,
712,
16063,
588,
12,
2890,
13,
468,
327,
5917,
309,
5903,
444,
8214,
327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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18199,
1626,
12,
2890,
4672,
3536,
31760,
4586,
930,
300,
1509,
1058,
2522,
18,
3536,
6710,
273,
365,
18,
588,
974,
2668,
17169,
67,
712,
16063,
588,
12,
2890,
13,
468,
327,
5917,
309,
5903,
444,
8214,
327,
6710,
353,
599,
471,
296,
4874,
11,
578,
6710,
18,
12609,
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
] |
try: | r = None if self.info and self.info.has_key(attr[4:-1]): | def __getitem__(self, attr): """ return the specific attribute as string or an empty string """ if attr == 'length': try: length = int(self.info['length']) except ValueError: return self.info['length'] except: try: length = int(self.length) except: return '' if length == 0: return '' if length / 3600: return '%d:%02d:%02d' % ( length / 3600, (length % 3600) / 60, length % 60) else: return '%d:%02d' % (length / 60, length % 60) | 1847af2df1a8288fb48b4731fced06f45e3eea3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/1847af2df1a8288fb48b4731fced06f45e3eea3f/item.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
1604,
4672,
3536,
327,
326,
2923,
1566,
487,
533,
578,
392,
1008,
533,
3536,
309,
1604,
422,
296,
2469,
4278,
436,
273,
599,
309,
365,
18,
1376,
471,
365,
18,
1376,
18,
5332,
67,
856,
12,
1747,
63,
24,
30,
17,
21,
65,
4672,
769,
273,
509,
12,
2890,
18,
1376,
3292,
2469,
19486,
1335,
2068,
30,
327,
365,
18,
1376,
3292,
2469,
3546,
1335,
30,
436,
273,
599,
309,
365,
18,
1376,
471,
365,
18,
1376,
18,
5332,
67,
856,
12,
1747,
63,
24,
30,
17,
21,
65,
4672,
769,
273,
509,
12,
2890,
18,
2469,
13,
1335,
30,
327,
875,
309,
769,
422,
374,
30,
327,
875,
309,
769,
342,
12396,
30,
327,
1995,
72,
5319,
3103,
72,
5319,
3103,
72,
11,
738,
261,
769,
342,
12396,
16,
261,
2469,
738,
12396,
13,
342,
4752,
16,
769,
738,
4752,
13,
469,
30,
327,
1995,
72,
5319,
3103,
72,
11,
738,
261,
2469,
342,
4752,
16,
769,
738,
4752,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
1604,
4672,
3536,
327,
326,
2923,
1566,
487,
533,
578,
392,
1008,
533,
3536,
309,
1604,
422,
296,
2469,
4278,
436,
273,
599,
309,
365,
18,
1376,
471,
365,
18,
1376,
18,
5332,
67,
856,
12,
1747,
63,
24,
30,
17,
21,
65,
4672,
769,
273,
509,
12,
2890,
18,
1376,
3292,
2469,
19486,
1335,
2068,
30,
327,
365,
18,
1376,
3292,
2469,
3546,
1335,
30,
436,
273,
599,
309,
365,
18,
1376,
471,
365,
18,
1376,
18,
5332,
67,
856,
12,
1747,
63,
24,
30,
17,
21,
65,
4672,
769,
273,
509,
12,
2890,
18,
2469,
13,
1335,
30,
327,
875,
309,
769,
422,
374,
30,
327,
875,
309,
769,
342,
2
] |
elem("Ar", "Argon", 66.33, 1.88, [0.85, 0.24, 0.57], | elem("Ar", "Argon", 66.33, 1.88, [0.42, 0.45, 0.55], | def __repr__(self): return "<Element: " + self.symbol + "(" + self.name + ")>" | 5f768e37c023eeda4b13b1983e3dba813e3be601 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/5f768e37c023eeda4b13b1983e3dba813e3be601/chem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
3532,
1046,
30,
315,
397,
365,
18,
7175,
397,
12452,
397,
365,
18,
529,
397,
9369,
2984,
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,
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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
] |
yield file | yield file | def list_files(self): dir = os.path.expanduser("~/rpmbuild/BUILD/") for file in FileUtilities.children_in_directory(dir, True): yield file | ece8c3e99f8a702d7e0267938ec012476dbadf5f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7853/ece8c3e99f8a702d7e0267938ec012476dbadf5f/CleanerBackend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
2354,
12,
2890,
4672,
1577,
273,
1140,
18,
803,
18,
12320,
1355,
2932,
98,
19,
13832,
1627,
680,
19,
20215,
4898,
13,
364,
585,
316,
1387,
11864,
18,
5906,
67,
267,
67,
5149,
12,
1214,
16,
1053,
4672,
2824,
585,
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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1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
2354,
12,
2890,
4672,
1577,
273,
1140,
18,
803,
18,
12320,
1355,
2932,
98,
19,
13832,
1627,
680,
19,
20215,
4898,
13,
364,
585,
316,
1387,
11864,
18,
5906,
67,
267,
67,
5149,
12,
1214,
16,
1053,
4672,
2824,
585,
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
] |
elif R._cartan_type.is_reducible(): | elif R._cartan_type.is_compound(): | def rule(x): return [x[0]-x[3],x[1]-x[2]] | 4f1d9b099eb7fa4771eb32c91fd6665497057884 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/4f1d9b099eb7fa4771eb32c91fd6665497057884/weyl_characters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1720,
12,
92,
4672,
327,
306,
92,
63,
20,
65,
17,
92,
63,
23,
6487,
92,
63,
21,
65,
17,
92,
63,
22,
13563,
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,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1720,
12,
92,
4672,
327,
306,
92,
63,
20,
65,
17,
92,
63,
23,
6487,
92,
63,
21,
65,
17,
92,
63,
22,
13563,
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
] |
elif flags.id: id = flags.args[0] | else: id = specifier | def execute_untag_command (flags, db, tags): if flags.about: about = flags.args[0] for tag in tags: o = db.untag_object_by_about (about, tag) if o == 0: if flags.verbose: print ('Removed tag %s from object with about="%s"' % (tag, about)) else: warning ('Failed to remove tag %s from object with about="%s"' % (tag, about)) warning ('Error code %d' % o) elif flags.id: id = flags.args[0] for tag in tags: o = db.untag_object_by_id (id, tag) if o == 0: if flags.verbose: print ('Removed tag %s from object %s' % (tag, id)) else: warning ('Failed to remove tag %s from object %s ' % (tag, id)) warning ('Error code %d' % o) elif flags.query: warning ('Queries not handled yet') else: usage () | 635ed1bdd854767b671f02d71a9daf95339913e5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12637/635ed1bdd854767b671f02d71a9daf95339913e5/fdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
318,
2692,
67,
3076,
261,
7133,
16,
1319,
16,
2342,
4672,
309,
2943,
18,
21071,
30,
2973,
273,
2943,
18,
1968,
63,
20,
65,
364,
1047,
316,
2342,
30,
320,
273,
1319,
18,
318,
2692,
67,
1612,
67,
1637,
67,
21071,
261,
21071,
16,
1047,
13,
309,
320,
422,
374,
30,
309,
2943,
18,
11369,
30,
1172,
7707,
10026,
1047,
738,
87,
628,
733,
598,
2973,
11613,
87,
5187,
738,
261,
2692,
16,
2973,
3719,
469,
30,
3436,
7707,
2925,
358,
1206,
1047,
738,
87,
628,
733,
598,
2973,
11613,
87,
5187,
738,
261,
2692,
16,
2973,
3719,
3436,
7707,
668,
981,
738,
72,
11,
738,
320,
13,
469,
30,
612,
273,
24562,
364,
1047,
316,
2342,
30,
320,
273,
1319,
18,
318,
2692,
67,
1612,
67,
1637,
67,
350,
261,
350,
16,
1047,
13,
309,
320,
422,
374,
30,
309,
2943,
18,
11369,
30,
1172,
7707,
10026,
1047,
738,
87,
628,
733,
738,
87,
11,
738,
261,
2692,
16,
612,
3719,
469,
30,
3436,
7707,
2925,
358,
1206,
1047,
738,
87,
628,
733,
738,
87,
296,
738,
261,
2692,
16,
612,
3719,
3436,
7707,
668,
981,
738,
72,
11,
738,
320,
13,
1327,
2943,
18,
2271,
30,
3436,
7707,
9592,
486,
7681,
4671,
6134,
469,
30,
4084,
1832,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
318,
2692,
67,
3076,
261,
7133,
16,
1319,
16,
2342,
4672,
309,
2943,
18,
21071,
30,
2973,
273,
2943,
18,
1968,
63,
20,
65,
364,
1047,
316,
2342,
30,
320,
273,
1319,
18,
318,
2692,
67,
1612,
67,
1637,
67,
21071,
261,
21071,
16,
1047,
13,
309,
320,
422,
374,
30,
309,
2943,
18,
11369,
30,
1172,
7707,
10026,
1047,
738,
87,
628,
733,
598,
2973,
11613,
87,
5187,
738,
261,
2692,
16,
2973,
3719,
469,
30,
3436,
7707,
2925,
358,
1206,
1047,
738,
87,
628,
733,
598,
2973,
11613,
87,
5187,
738,
261,
2692,
16,
2973,
3719,
3436,
7707,
668,
981,
738,
72,
11,
738,
320,
13,
469,
30,
612,
273,
24562,
364,
1047,
316,
2
] |
items = items[ : -1 ] menu, wl, l, h, w, optw, opth = calc_lsize( 0.6 ) if topline and menu: opth += 1 | wl, l, optw, opth = calc_lsize( 0.6 ) items.append( items_t[ len(items) -1 ] ) if opth >= max_h -4: break if topline and items: opth += 1 | def calc_lsize(r): """Calculate the size required on screen to display the list. Unfortunately Python 2.x doesn't allow assigning to the scope one level up of a nested function, so the return list on this function is horrible. I could have used an object and mutated it from here but it doesn't seem like such a big deal. Hopefully I can make this prettier when py3k shows up. :)""" | 782a61f807eac87f9c94d710f152c0957f4e9f9c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6932/782a61f807eac87f9c94d710f152c0957f4e9f9c/bpython.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
67,
80,
1467,
12,
86,
4672,
3536,
8695,
326,
963,
1931,
603,
5518,
358,
2562,
326,
666,
18,
1351,
24233,
6600,
576,
18,
92,
3302,
1404,
1699,
28639,
358,
326,
2146,
1245,
1801,
731,
434,
279,
4764,
445,
16,
1427,
326,
327,
666,
603,
333,
445,
353,
29404,
86,
1523,
18,
467,
3377,
1240,
1399,
392,
733,
471,
27414,
518,
628,
2674,
1496,
518,
3302,
1404,
19264,
3007,
4123,
279,
5446,
10490,
18,
670,
1306,
4095,
467,
848,
1221,
333,
675,
748,
2453,
1347,
2395,
23,
79,
17975,
731,
18,
294,
15574,
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,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931,
603,
5518,
358,
2562,
326,
666,
18,
1351,
24233,
6600,
576,
18,
92,
3302,
1404,
1699,
28639,
358,
326,
2146,
1245,
1801,
731,
434,
279,
4764,
445,
16,
1427,
326,
327,
666,
603,
333,
445,
353,
29404,
86,
1523,
18,
467,
3377,
1240,
1399,
392,
733,
471,
27414,
518,
628,
2674,
1496,
518,
3302,
1404,
19264,
3007,
4123,
279,
5446,
10490,
18,
670,
1306,
4095,
467,
848,
1221,
333,
675,
748,
2453,
1347,
2395,
23,
79,
17975,
731,
18,
294,
15574,
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
] |
fill_frame["style"]='ColorWatchTransp' filltxt=_('Fill: None') | fill_frame["style"] = 'ColorWatchTransp' filltxt = _('Fill: None') | def ColorInfo(): if len(self.document.selection) != 1 or self.document.CanUngroup(): fill_frame["style"]='ColorWatchDisabled' outline_frame["style"]='ColorWatchDisabled' fill_frame['background']=app.uimanager.currentColorTheme.bg outline_frame['background']=app.uimanager.currentColorTheme.bg return "" properties = self.document.CurrentProperties() filltxt='' outlinetxt='' try: fill_frame["style"]='ColorWatchNormal' fillcolor=rgb_to_tk(properties.fill_pattern.Color().RGB()) fill_frame["background"]=fillcolor filltxt=_('Fill:')+' ' + properties.fill_pattern.Color().toString() except: fill_frame["style"]='ColorWatchTransp' filltxt=_('Fill: None') try: outline_frame["style"]='ColorWatchNormal' outline_frame["background"]=rgb_to_tk(properties.line_pattern.Color().RGB()) outlinetxt=_('Outline:')+' '+ str(math.ceil(math.floor(10**4*properties.line_width/2.83465)/10)/1000) +' mm' except: outline_frame["style"]='ColorWatchTransp' outlinetxt=_('Outline: None') return filltxt + "\n" + outlinetxt | 5bd05aab08ecc99debb8be46af1003105e4183ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3123/5bd05aab08ecc99debb8be46af1003105e4183ab/mainwindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5563,
966,
13332,
309,
562,
12,
2890,
18,
5457,
18,
10705,
13,
480,
404,
578,
365,
18,
5457,
18,
2568,
984,
1655,
13332,
3636,
67,
3789,
9614,
4060,
11929,
2218,
2957,
5234,
8853,
11,
16363,
67,
3789,
9614,
4060,
11929,
2218,
2957,
5234,
8853,
11,
3636,
67,
3789,
3292,
9342,
3546,
33,
2910,
18,
89,
381,
1063,
18,
2972,
2957,
8335,
18,
12370,
16363,
67,
3789,
3292,
9342,
3546,
33,
2910,
18,
89,
381,
1063,
18,
2972,
2957,
8335,
18,
12370,
327,
1408,
225,
1790,
273,
365,
18,
5457,
18,
3935,
2297,
1435,
3636,
5830,
2218,
11,
596,
7511,
278,
15239,
2218,
11,
775,
30,
3636,
67,
3789,
9614,
4060,
11929,
2218,
2957,
5234,
5506,
11,
3636,
3266,
33,
10948,
67,
869,
67,
16099,
12,
4738,
18,
5935,
67,
4951,
18,
2957,
7675,
11343,
10756,
3636,
67,
3789,
9614,
9342,
11929,
33,
5935,
3266,
3636,
5830,
33,
67,
2668,
8026,
2497,
13,
6797,
296,
397,
1790,
18,
5935,
67,
4951,
18,
2957,
7675,
10492,
1435,
1335,
30,
3636,
67,
3789,
9614,
4060,
11929,
273,
296,
2957,
5234,
1429,
84,
11,
3636,
5830,
273,
389,
2668,
8026,
30,
599,
6134,
225,
775,
30,
16363,
67,
3789,
9614,
4060,
11929,
2218,
2957,
5234,
5506,
11,
16363,
67,
3789,
9614,
9342,
11929,
33,
10948,
67,
869,
67,
16099,
12,
4738,
18,
1369,
67,
4951,
18,
2957,
7675,
11343,
10756,
596,
7511,
278,
15239,
33,
67,
2668,
21805,
2497,
13,
6797,
15126,
609,
12,
15949,
18,
311,
330,
12,
15949,
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,
5563,
966,
13332,
309,
562,
12,
2890,
18,
5457,
18,
10705,
13,
480,
404,
578,
365,
18,
5457,
18,
2568,
984,
1655,
13332,
3636,
67,
3789,
9614,
4060,
11929,
2218,
2957,
5234,
8853,
11,
16363,
67,
3789,
9614,
4060,
11929,
2218,
2957,
5234,
8853,
11,
3636,
67,
3789,
3292,
9342,
3546,
33,
2910,
18,
89,
381,
1063,
18,
2972,
2957,
8335,
18,
12370,
16363,
67,
3789,
3292,
9342,
3546,
33,
2910,
18,
89,
381,
1063,
18,
2972,
2957,
8335,
18,
12370,
327,
1408,
225,
1790,
273,
365,
18,
5457,
18,
3935,
2297,
1435,
3636,
5830,
2218,
11,
596,
7511,
278,
15239,
2218,
11,
775,
30,
3636,
67,
3789,
9614,
4060,
11929,
2218,
2957,
5234,
5506,
11,
3636,
3266,
2
] |
self.canvas.lower(self.id, belowthis) | self.canvas.tag_lower(self.id, belowthis) | def lower(self, belowthis=None): self.canvas.lower(self.id, belowthis) | 2c25a3deecf33f653b4a2745025be74f6905f2ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2c25a3deecf33f653b4a2745025be74f6905f2ae/Canvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2612,
12,
2890,
16,
5712,
2211,
33,
7036,
4672,
365,
18,
15424,
18,
8167,
12,
2890,
18,
350,
16,
5712,
2211,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2612,
12,
2890,
16,
5712,
2211,
33,
7036,
4672,
365,
18,
15424,
18,
8167,
12,
2890,
18,
350,
16,
5712,
2211,
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
] |
global BLOCK, kicker | global BLOCK, kicker, mouseAy | def near_callback(args, geom1, geom2): ##TODO: 4P generalization global BLOCK, kicker #global called #called = called + 1 contacts=ode.collide(geom1, geom2) world, contactgroup = args for c in contacts: #if not ((geom1 == ballGeom) or (geom2 == ballGeom)): # print "rong collision!" if (geom1 in kickerGeom) or (geom2 in kickerGeom) or (geom1 in kickerGeom2) or (geom2 in kickerGeom2): c.setMu(1E5) #kickers have high friction, minimal bounce - FIXME: does not work. you still can't stop balls c.setBounce(1) if (geom1 in kickerGeom and geom2 in kickerGeom2) or (geom1 in kickerGeom2 and geom2 in kickerGeom2): pass else: bx, by, bz = ballBody.getPosition() ax, ay, az = ballBody.getLinearVel() px, py, pz = c.getContactGeomParams()[0] if geom1 in kickerGeom or geom2 in kickerGeom: if abs(pz-bz)<0.1: #if the ball touches the kicker on its left or right ballBody.setLinearVel((ax,ay,(az+mouseAy1)/2)) #causes some stickiness in the vertical axis angle = kicker0.getH() if (by>py) and (((angle < -45) and (angle>-90)) or ((angle > 45) and (angle<90))): BLOCK1 = True ballBody.setLinearVel((ax/3, ay, mouseAy1)) else: if abs(pz-bz)<0.1: #if the ball touches the kicker on its left or right ballBody.setLinearVel((ax, ay, (az+mouseAy2)/2)) #causes some stickiness in the vertical axis angle = kicker2.getH() if (by>py) and (((angle < -45) and (angle>-90)) or ((angle > 45) and (angle<90))): BLOCK2 = True ballBody.setLinearVel((ax/3, ay, mouseAy2)) elif (geom1 == tableGeom) or (geom2 == tableGeom): c.setMu(4) #table has little bounce, noticeable friction c.setBounce(1.5) elif (geom1 in wallGeom) or (geom2 in wallGeom): c.setMu(1) #walls have ok bounce, noticeable friction c.setBounce(2) else: #ignore anything else. I have no idea what that could be print "something unidentified collided with my balls. ouch." continue j=ode.ContactJoint(world, contactgroup, c) j.attach(geom1.getBody(), geom2.getBody()) | 73d04275d5aecffbeaa4958b270fc22e07a236dc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12834/73d04275d5aecffbeaa4958b270fc22e07a236dc/kickern.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13378,
67,
3394,
12,
1968,
16,
7364,
21,
16,
7364,
22,
4672,
7541,
6241,
30,
1059,
52,
7470,
1588,
2552,
14073,
16,
417,
5448,
16,
7644,
37,
93,
468,
6347,
2566,
225,
468,
11777,
273,
2566,
397,
404,
225,
14841,
33,
390,
18,
1293,
8130,
12,
10049,
21,
16,
7364,
22,
13,
9117,
16,
5388,
1655,
273,
833,
364,
276,
316,
14841,
30,
225,
468,
430,
486,
14015,
10049,
21,
422,
26503,
16972,
13,
578,
261,
10049,
22,
422,
26503,
16972,
3719,
30,
468,
225,
1172,
315,
5424,
17740,
4442,
225,
309,
261,
10049,
21,
316,
417,
5448,
16972,
13,
578,
261,
10049,
22,
316,
417,
5448,
16972,
13,
578,
261,
10049,
21,
316,
417,
5448,
16972,
22,
13,
578,
261,
10049,
22,
316,
417,
5448,
16972,
22,
4672,
276,
18,
542,
12982,
12,
21,
41,
25,
13,
377,
468,
79,
1200,
414,
1240,
3551,
284,
566,
349,
16,
16745,
324,
8386,
300,
9852,
30,
1552,
486,
1440,
18,
1846,
4859,
848,
1404,
2132,
26503,
87,
276,
18,
542,
38,
8386,
12,
21,
13,
309,
261,
10049,
21,
316,
417,
5448,
16972,
471,
7364,
22,
316,
417,
5448,
16972,
22,
13,
578,
261,
10049,
21,
316,
417,
5448,
16972,
22,
471,
7364,
22,
316,
417,
5448,
16972,
22,
4672,
1342,
469,
30,
24356,
16,
635,
16,
24788,
273,
26503,
2250,
18,
588,
2555,
1435,
1740,
16,
26179,
16,
10562,
273,
26503,
2250,
18,
588,
15982,
58,
292,
1435,
10318,
16,
2395,
16,
293,
94,
273,
276,
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,
13378,
67,
3394,
12,
1968,
16,
7364,
21,
16,
7364,
22,
4672,
7541,
6241,
30,
1059,
52,
7470,
1588,
2552,
14073,
16,
417,
5448,
16,
7644,
37,
93,
468,
6347,
2566,
225,
468,
11777,
273,
2566,
397,
404,
225,
14841,
33,
390,
18,
1293,
8130,
12,
10049,
21,
16,
7364,
22,
13,
9117,
16,
5388,
1655,
273,
833,
364,
276,
316,
14841,
30,
225,
468,
430,
486,
14015,
10049,
21,
422,
26503,
16972,
13,
578,
261,
10049,
22,
422,
26503,
16972,
3719,
30,
468,
225,
1172,
315,
5424,
17740,
4442,
225,
309,
261,
10049,
21,
316,
417,
5448,
16972,
13,
578,
261,
10049,
22,
316,
417,
5448,
16972,
13,
578,
261,
10049,
21,
316,
417,
5448,
16972,
22,
2
] |
elif ( os.path.isfile(source_file) and os.name != "nt" and not os.path.samefile(reg, source_file)): | elif (os.path.isfile(source_file) and ( not hasattr(os.path, "samefile") or not os.path.samefile(reg, source_file)) and self.abs_path_short(abs_path=reg) != self.abs_path_short(abs_path=source_file)): | def write_dispatcher(self, source_file, target_file): reg = self._dispatcher_registry.setdefault(target_file, source_file) if (reg != source_file): if (not os.path.isfile(reg)): self._dispatcher_registry[target_file] = source_file elif ( os.path.isfile(source_file) and os.name != "nt" # XXX and not os.path.samefile(reg, source_file)): raise Sorry("Multiple sources for dispatcher:\n" + " target file:\n" + " %s\n" % show_string(target_file) + " source files:\n" + " %s\n" % show_string(reg) + " %s" % show_string(source_file)) if (os.name == "nt"): action = self.write_win32_dispatcher ext = ".exe" else: action = self.write_bin_sh_dispatcher ext = "" try: os.chmod(source_file, 0755) except OSError: pass target_file_ext = target_file + ext remove_or_rename(target_file_ext) try: action(source_file, target_file_ext) except IOError, e: print " Ignored:", e | 64d4c71b86cdde4ab2b9c05d3adcc23838b0d9a2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/696/64d4c71b86cdde4ab2b9c05d3adcc23838b0d9a2/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
18495,
12,
2890,
16,
1084,
67,
768,
16,
1018,
67,
768,
4672,
960,
273,
365,
6315,
18495,
67,
9893,
18,
542,
1886,
12,
3299,
67,
768,
16,
1084,
67,
768,
13,
309,
261,
1574,
480,
1084,
67,
768,
4672,
309,
261,
902,
1140,
18,
803,
18,
291,
768,
12,
1574,
3719,
30,
365,
6315,
18495,
67,
9893,
63,
3299,
67,
768,
65,
273,
1084,
67,
768,
1327,
261,
565,
1140,
18,
803,
18,
291,
768,
12,
3168,
67,
768,
13,
471,
1140,
18,
529,
480,
315,
496,
6,
468,
11329,
471,
486,
1140,
18,
803,
18,
14307,
768,
12,
1574,
16,
1084,
67,
768,
3719,
30,
1002,
348,
21637,
2932,
8438,
5550,
364,
7393,
5581,
82,
6,
397,
315,
225,
1018,
585,
5581,
82,
6,
397,
315,
565,
738,
87,
64,
82,
6,
738,
2405,
67,
1080,
12,
3299,
67,
768,
13,
397,
315,
225,
1084,
1390,
5581,
82,
6,
397,
315,
565,
738,
87,
64,
82,
6,
738,
2405,
67,
1080,
12,
1574,
13,
397,
315,
565,
738,
87,
6,
738,
2405,
67,
1080,
12,
3168,
67,
768,
3719,
309,
261,
538,
18,
529,
422,
315,
496,
6,
4672,
1301,
273,
365,
18,
2626,
67,
8082,
1578,
67,
18495,
1110,
273,
3552,
14880,
6,
469,
30,
1301,
273,
365,
18,
2626,
67,
4757,
67,
674,
67,
18495,
1110,
273,
1408,
775,
30,
1140,
18,
343,
1711,
12,
3168,
67,
768,
16,
18641,
13,
1335,
10002,
30,
1342,
1018,
67,
768,
67,
408,
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,
1045,
67,
18495,
12,
2890,
16,
1084,
67,
768,
16,
1018,
67,
768,
4672,
960,
273,
365,
6315,
18495,
67,
9893,
18,
542,
1886,
12,
3299,
67,
768,
16,
1084,
67,
768,
13,
309,
261,
1574,
480,
1084,
67,
768,
4672,
309,
261,
902,
1140,
18,
803,
18,
291,
768,
12,
1574,
3719,
30,
365,
6315,
18495,
67,
9893,
63,
3299,
67,
768,
65,
273,
1084,
67,
768,
1327,
261,
565,
1140,
18,
803,
18,
291,
768,
12,
3168,
67,
768,
13,
471,
1140,
18,
529,
480,
315,
496,
6,
468,
11329,
471,
486,
1140,
18,
803,
18,
14307,
768,
12,
1574,
16,
1084,
67,
768,
3719,
30,
1002,
348,
21637,
2932,
8438,
5550,
364,
7393,
5581,
82,
2
] |
data = src.fp._sock.recv(256) | data = sock.recv(256) | def _download_as_child(url): from httplib import HTTPException from urllib2 import urlopen, HTTPError, URLError try: #print "Child downloading", url if url.startswith('/'): if not os.path.isfile(url): print >>sys.stderr, "File '%s' does not " \ "exist!" % url return src = file(url) elif url.startswith('http:') or url.startswith('ftp:'): src = urlopen(url) else: raise Exception('Unsupported URL protocol in: ' + url) | c085406f4f73564869fad6b7c859b10e79c8ec7f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10543/c085406f4f73564869fad6b7c859b10e79c8ec7f/download.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7813,
67,
345,
67,
3624,
12,
718,
4672,
628,
15851,
6673,
1930,
2239,
503,
628,
11527,
22,
1930,
19613,
16,
14415,
16,
1976,
668,
775,
30,
468,
1188,
315,
1763,
23742,
3113,
880,
309,
880,
18,
17514,
1918,
2668,
2473,
4672,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
718,
4672,
1172,
1671,
9499,
18,
11241,
16,
315,
812,
1995,
87,
11,
1552,
486,
315,
521,
315,
7398,
4442,
738,
880,
327,
1705,
273,
585,
12,
718,
13,
1327,
880,
18,
17514,
1918,
2668,
2505,
2497,
13,
578,
880,
18,
17514,
1918,
2668,
11727,
2497,
4672,
1705,
273,
19613,
12,
718,
13,
469,
30,
1002,
1185,
2668,
8544,
1976,
1771,
316,
30,
296,
397,
880,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7813,
67,
345,
67,
3624,
12,
718,
4672,
628,
15851,
6673,
1930,
2239,
503,
628,
11527,
22,
1930,
19613,
16,
14415,
16,
1976,
668,
775,
30,
468,
1188,
315,
1763,
23742,
3113,
880,
309,
880,
18,
17514,
1918,
2668,
2473,
4672,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
718,
4672,
1172,
1671,
9499,
18,
11241,
16,
315,
812,
1995,
87,
11,
1552,
486,
315,
521,
315,
7398,
4442,
738,
880,
327,
1705,
273,
585,
12,
718,
13,
1327,
880,
18,
17514,
1918,
2668,
2505,
2497,
13,
578,
880,
18,
17514,
1918,
2668,
11727,
2497,
4672,
1705,
273,
19613,
12,
718,
13,
469,
30,
1002,
1185,
2668,
8544,
1976,
1771,
316,
30,
296,
397,
880,
13,
2
] |
if host: | if (uname[0] == 'Darwin') and host.startswith('/tmp/'): family = xauth.FamilyLocal addr = socket.gethostname() elif host: | def new_get_auth(sock, dname, host, dno): # Translate socket address into the xauth domain if host: family = xauth.FamilyInternet # Convert the prettyprinted IP number into 4-octet string. # Sometimes these modules are too damn smart... octets = string.split(sock.getpeername()[0], '.') addr = string.join(map(lambda x: chr(int(x)), octets), '') else: family = xauth.FamilyLocal addr = socket.gethostname() au = xauth.Xauthority() while 1: try: return au.get_best_auth(family, addr, dno) except error.XNoAuthError: pass # We need to do this to handle ssh's X forwarding. It sets # $DISPLAY to localhost:10, but stores the xauth cookie as if # DISPLAY was :10. Hence, if localhost and not found, try # again as a Unix socket. if family == xauth.FamilyInternet and addr == '\x7f\x00\x00\x01': family = xauth.FamilyLocal addr = socket.gethostname() else: return '', '' | 870fc90edc7c3a9460c364319ddc45eb3af64667 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8084/870fc90edc7c3a9460c364319ddc45eb3af64667/unix_connect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
588,
67,
1944,
12,
15031,
16,
302,
529,
16,
1479,
16,
302,
2135,
4672,
468,
16820,
2987,
1758,
1368,
326,
619,
1944,
2461,
309,
261,
318,
339,
63,
20,
65,
422,
296,
40,
19992,
6134,
471,
1479,
18,
17514,
1918,
2668,
19,
5645,
2473,
4672,
6755,
273,
619,
1944,
18,
9203,
2042,
3091,
273,
2987,
18,
75,
546,
669,
529,
1435,
225,
1327,
1479,
30,
6755,
273,
619,
1944,
18,
9203,
26562,
225,
468,
4037,
326,
7517,
1188,
329,
2971,
1300,
1368,
1059,
17,
17909,
533,
18,
468,
348,
25976,
4259,
4381,
854,
4885,
302,
301,
82,
13706,
2777,
25497,
273,
533,
18,
4939,
12,
15031,
18,
588,
12210,
529,
1435,
63,
20,
6487,
2611,
13,
3091,
273,
533,
18,
5701,
12,
1458,
12,
14661,
619,
30,
4513,
12,
474,
12,
92,
13,
3631,
25497,
3631,
28707,
469,
30,
6755,
273,
619,
1944,
18,
9203,
2042,
3091,
273,
2987,
18,
75,
546,
669,
529,
1435,
225,
20309,
273,
619,
1944,
18,
60,
24763,
1435,
1323,
404,
30,
775,
30,
327,
20309,
18,
588,
67,
12729,
67,
1944,
12,
9309,
16,
3091,
16,
302,
2135,
13,
1335,
555,
18,
60,
2279,
1730,
668,
30,
1342,
225,
468,
1660,
1608,
358,
741,
333,
358,
1640,
7056,
1807,
1139,
20635,
18,
225,
2597,
1678,
468,
271,
17463,
358,
17365,
30,
2163,
16,
1496,
9064,
326,
619,
1944,
3878,
487,
309,
468,
25214,
1703,
294,
2163,
18,
225,
670,
802,
16,
309,
17365,
471,
486,
1392,
16,
775,
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,
394,
67,
588,
67,
1944,
12,
15031,
16,
302,
529,
16,
1479,
16,
302,
2135,
4672,
468,
16820,
2987,
1758,
1368,
326,
619,
1944,
2461,
309,
261,
318,
339,
63,
20,
65,
422,
296,
40,
19992,
6134,
471,
1479,
18,
17514,
1918,
2668,
19,
5645,
2473,
4672,
6755,
273,
619,
1944,
18,
9203,
2042,
3091,
273,
2987,
18,
75,
546,
669,
529,
1435,
225,
1327,
1479,
30,
6755,
273,
619,
1944,
18,
9203,
26562,
225,
468,
4037,
326,
7517,
1188,
329,
2971,
1300,
1368,
1059,
17,
17909,
533,
18,
468,
348,
25976,
4259,
4381,
854,
4885,
302,
301,
82,
13706,
2777,
25497,
273,
533,
18,
4939,
12,
15031,
18,
588,
12210,
529,
1435,
63,
20,
6487,
2611,
13,
2
] |
while hasattr(words[i],'cbDefn'): i = i-1 | while hasattr(words[i],'cbDefn'): i -= 1 | def breakLines(self, width): """ Returns a broken line structure. There are two cases | 8d23a394d71e94269f4f4a0be1e036155775a4c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/8d23a394d71e94269f4f4a0be1e036155775a4c8/paragraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
898,
5763,
12,
2890,
16,
1835,
4672,
3536,
2860,
279,
12933,
980,
3695,
18,
6149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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
898,
5763,
12,
2890,
16,
1835,
4672,
3536,
2860,
279,
12933,
980,
3695,
18,
6149,
854,
2795,
6088,
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
] |
def __init__(self, fd, size): | def __init__(self, fd, datasize): | def __init__(self, fd, size): self.fd = fd self.length = 0 # length of all decompressed data self.length2 = size self.enddata = "" # remember last 8 bytes for crc/length check self.pos = 0 self.data = "" if self.fd.read(3) != "\037\213\010": print "Not a gzipped file" sys.exit(0) # flag (1 byte), modification time (4 bytes), extra flags (1), OS (1) data = doRead(self.fd, 7) flag = ord(data[0]) if flag & FEXTRA: # Read & discard the extra field, if present xlen = ord(self.fd.read(1)) xlen += 256 * ord(self.fd.read(1)) doRead(self.fd, xlen) if flag & FNAME: # Read and discard a nul-terminated string containing the filename while self.fd.read(1) != "\000": pass if flag & FCOMMENT: # Read and discard a nul-terminated string containing a comment while self.fd.read(1) != "\000": pass if flag & FHCRC: doRead(self.fd, 2) # Read & discard the 16-bit header CRC self.decompobj = zlib.decompressobj(-zlib.MAX_WBITS) self.crcval = zlib.crc32("") | ad4f89af913d4c98e3df65eed839fd44235193aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/ad4f89af913d4c98e3df65eed839fd44235193aa/oldpyrpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5194,
16,
5386,
554,
4672,
365,
18,
8313,
273,
5194,
365,
18,
2469,
273,
374,
468,
769,
434,
777,
443,
15385,
501,
365,
18,
2469,
22,
273,
963,
365,
18,
409,
892,
273,
1408,
468,
11586,
1142,
1725,
1731,
364,
10619,
19,
2469,
866,
365,
18,
917,
273,
374,
365,
18,
892,
273,
1408,
309,
365,
18,
8313,
18,
896,
12,
23,
13,
480,
1548,
4630,
27,
64,
22,
3437,
64,
23254,
6877,
1172,
315,
1248,
279,
10331,
1845,
585,
6,
2589,
18,
8593,
12,
20,
13,
468,
2982,
261,
21,
1160,
3631,
11544,
813,
261,
24,
1731,
3631,
2870,
2943,
261,
21,
3631,
5932,
261,
21,
13,
501,
273,
741,
1994,
12,
2890,
18,
8313,
16,
2371,
13,
2982,
273,
4642,
12,
892,
63,
20,
5717,
309,
2982,
473,
478,
22639,
30,
468,
2720,
473,
10388,
326,
2870,
652,
16,
309,
3430,
619,
1897,
273,
4642,
12,
2890,
18,
8313,
18,
896,
12,
21,
3719,
619,
1897,
1011,
8303,
380,
4642,
12,
2890,
18,
8313,
18,
896,
12,
21,
3719,
741,
1994,
12,
2890,
18,
8313,
16,
619,
1897,
13,
309,
2982,
473,
478,
1985,
30,
468,
2720,
471,
10388,
279,
290,
332,
17,
29133,
533,
4191,
326,
1544,
1323,
365,
18,
8313,
18,
896,
12,
21,
13,
480,
1548,
3784,
6877,
1342,
309,
2982,
473,
478,
12200,
30,
468,
2720,
471,
10388,
279,
290,
332,
17,
29133,
533,
4191,
279,
2879,
1323,
365,
18,
8313,
18,
896,
12,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5194,
16,
5386,
554,
4672,
365,
18,
8313,
273,
5194,
365,
18,
2469,
273,
374,
468,
769,
434,
777,
443,
15385,
501,
365,
18,
2469,
22,
273,
963,
365,
18,
409,
892,
273,
1408,
468,
11586,
1142,
1725,
1731,
364,
10619,
19,
2469,
866,
365,
18,
917,
273,
374,
365,
18,
892,
273,
1408,
309,
365,
18,
8313,
18,
896,
12,
23,
13,
480,
1548,
4630,
27,
64,
22,
3437,
64,
23254,
6877,
1172,
315,
1248,
279,
10331,
1845,
585,
6,
2589,
18,
8593,
12,
20,
13,
468,
2982,
261,
21,
1160,
3631,
11544,
813,
261,
24,
1731,
3631,
2870,
2943,
261,
21,
3631,
5932,
261,
21,
13,
501,
273,
741,
1994,
2
] |
properties.last_modified_by = root.find(QName(NAMESPACES['cp'], 'lastModifiedBy').text).text | last_modified_by_node = root.find(QName(NAMESPACES['cp'], 'lastModifiedBy').text) if last_modified_by_node is not None: properties.last_modified_by = last_modified_by_node.text else: properties.last_modified_by = '' | def read_properties_core(xml_source): properties = DocumentProperties() root = fromstring(text = xml_source) creator_node = root.find(QName(NAMESPACES['dc'], 'creator').text) if creator_node is not None: properties.creator = creator_node.text else: properties.creator = '' properties.last_modified_by = root.find(QName(NAMESPACES['cp'], 'lastModifiedBy').text).text properties.created = W3CDTF_to_datetime(root.find(QName(NAMESPACES['dcterms'], 'created').text).text) properties.modified = W3CDTF_to_datetime(root.find(QName(NAMESPACES['dcterms'], 'modified').text).text) return properties | d24bb2c7ecca1177e34c3df76aeb73e1d14a9baf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1351/d24bb2c7ecca1177e34c3df76aeb73e1d14a9baf/workbook.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
4738,
67,
3644,
12,
2902,
67,
3168,
4672,
225,
1790,
273,
4319,
2297,
1435,
225,
1365,
273,
21376,
12,
955,
273,
2025,
67,
3168,
13,
225,
11784,
67,
2159,
273,
1365,
18,
4720,
12,
13688,
12,
11368,
55,
3292,
7201,
17337,
296,
20394,
16063,
955,
13,
225,
309,
11784,
67,
2159,
353,
486,
599,
30,
1790,
18,
20394,
273,
11784,
67,
2159,
18,
955,
469,
30,
1790,
18,
20394,
273,
875,
225,
1142,
67,
7342,
67,
1637,
67,
2159,
273,
1365,
18,
4720,
12,
13688,
12,
11368,
55,
3292,
4057,
17337,
296,
2722,
4575,
858,
16063,
955,
13,
225,
309,
1142,
67,
7342,
67,
1637,
67,
2159,
353,
486,
599,
30,
1790,
18,
2722,
67,
7342,
67,
1637,
273,
1142,
67,
7342,
67,
1637,
67,
2159,
18,
955,
469,
30,
1790,
18,
2722,
67,
7342,
67,
1637,
273,
875,
225,
1790,
18,
4824,
273,
678,
23,
39,
9081,
42,
67,
869,
67,
6585,
12,
3085,
18,
4720,
12,
13688,
12,
11368,
55,
3292,
72,
299,
5044,
17337,
296,
4824,
16063,
955,
2934,
955,
13,
1790,
18,
7342,
273,
678,
23,
39,
9081,
42,
67,
869,
67,
6585,
12,
3085,
18,
4720,
12,
13688,
12,
11368,
55,
3292,
72,
299,
5044,
17337,
296,
7342,
16063,
955,
2934,
955,
13,
225,
327,
1790,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
4738,
67,
3644,
12,
2902,
67,
3168,
4672,
225,
1790,
273,
4319,
2297,
1435,
225,
1365,
273,
21376,
12,
955,
273,
2025,
67,
3168,
13,
225,
11784,
67,
2159,
273,
1365,
18,
4720,
12,
13688,
12,
11368,
55,
3292,
7201,
17337,
296,
20394,
16063,
955,
13,
225,
309,
11784,
67,
2159,
353,
486,
599,
30,
1790,
18,
20394,
273,
11784,
67,
2159,
18,
955,
469,
30,
1790,
18,
20394,
273,
875,
225,
1142,
67,
7342,
67,
1637,
67,
2159,
273,
1365,
18,
4720,
12,
13688,
12,
11368,
55,
3292,
4057,
17337,
296,
2722,
4575,
858,
16063,
955,
13,
225,
309,
1142,
67,
7342,
67,
1637,
67,
2159,
353,
486,
599,
30,
1790,
18,
2722,
67,
7342,
2
] |
if url.startswith(self.index_url): | if url.startswith(self.index_url) and getattr(f,'code',None)!=404: | def process_url(self, url, retrieve=False): """Evaluate a URL as a possible download, and maybe retrieve it""" url = fix_sf_url(url) if url in self.scanned_urls and not retrieve: return self.scanned_urls[url] = True if not URL_SCHEME(url): self.process_filename(url) return else: dists = list(distros_for_url(url)) if dists: if not self.url_ok(url): return self.debug("Found link: %s", url) | ac7808e631535975e29298f7b41c38a6de3b26e3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/495/ac7808e631535975e29298f7b41c38a6de3b26e3/package_index.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
718,
12,
2890,
16,
880,
16,
4614,
33,
8381,
4672,
3536,
15369,
279,
1976,
487,
279,
3323,
4224,
16,
471,
6944,
4614,
518,
8395,
880,
273,
2917,
67,
21668,
67,
718,
12,
718,
13,
309,
880,
316,
365,
18,
1017,
10041,
67,
10518,
471,
486,
4614,
30,
327,
365,
18,
1017,
10041,
67,
10518,
63,
718,
65,
273,
1053,
309,
486,
1976,
67,
22870,
12,
718,
4672,
365,
18,
2567,
67,
3459,
12,
718,
13,
327,
469,
30,
16871,
273,
666,
12,
4413,
6973,
67,
1884,
67,
718,
12,
718,
3719,
309,
16871,
30,
309,
486,
365,
18,
718,
67,
601,
12,
718,
4672,
327,
365,
18,
4148,
2932,
2043,
1692,
30,
738,
87,
3113,
880,
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,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518,
471,
486,
4614,
30,
327,
365,
18,
1017,
10041,
67,
10518,
63,
718,
65,
273,
1053,
309,
486,
1976,
67,
22870,
12,
718,
4672,
365,
18,
2567,
67,
3459,
12,
718,
13,
327,
469,
30,
16871,
273,
666,
12,
4413,
6973,
67,
1884,
67,
718,
12,
718,
3719,
309,
16871,
30,
309,
486,
365,
18,
718,
67,
601,
12,
718,
4672,
327,
365,
18,
4148,
2932,
2043,
1692,
30,
738,
87,
3113,
880,
2
] |
self.log_request(self.code, os.fstat(f.fileno())[6]) | def handle_data(self): """ Prepare response per incoming GET request. """ path = self.translate_path(self.path) | bc395d1a178d058008c9361c4025ca1641598630 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1918/bc395d1a178d058008c9361c4025ca1641598630/testwebserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
892,
12,
2890,
4672,
3536,
7730,
766,
1534,
6935,
4978,
590,
18,
3536,
589,
273,
365,
18,
13929,
67,
803,
12,
2890,
18,
803,
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,
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,
273,
365,
18,
13929,
67,
803,
12,
2890,
18,
803,
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
] |
|
elif param.has_key('task') and param['task'].lower() == 'geometryoptimization': | elif param.has_key('task') and (param['task'].lower() == 'geometryoptimization' or param['task'].lower() == 'geometryoptimisation'): | def CastepOutputReader(castep_file, cluster=None, abort=True, save_params=False): """Parse .castep file, and return Atoms object with positions, energy, forces, and possibly stress and atomic populations as well""" if type(castep_file) == type(''): castep_file = open(castep_file,'r') castep_file = iter(castep_file) param = CastepParam() got_header = False eof = False while True: castep_output = [] while True: try: line = castep_file.next() except StopIteration: eof = True break castep_output.append(line) if line == ' | CCC AA SSS TTTTT EEEEE PPPP |\n': if got_header: got_param = True break else: got_header = True if line.startswith(' Starting BFGS iteration'): break if line.startswith(' BFGS: improving iteration'): break # NB: CASTEP doesn't always print 'Total time' run_time = -1.0 total_time = filter(lambda s: s.startswith('Total time'), castep_output) if total_time == []: has_converged = filter(lambda s: s.startswith('Total energy has converged'), castep_output) if abort and has_converged == []: raise ValueError("castep didn't complete") else: run_time = float(total_time[0].split()[3]) # Now we should have contents of a valid .castep file in castep_output # First let's read the user parameters for this run from top of file new_param = CastepParam() try: new_param.read_from_castep_output(castep_output) param.update(new_param) except ValueError: pass #if abort: # raise # Next let's extract the lattice and atomic positions lattice_lines = [i for (i,x) in enumerate(castep_output) if x == ' Unit Cell\n'] if lattice_lines == []: if abort: raise ValueError('No unit cell found in castep file') else: continue lattice_line = lattice_lines[-1] # last lattice lattice_lines = castep_output[lattice_line+3:lattice_line+6] lattice = fzeros((3,3)) lattice[:,1] = map(float, lattice_lines[0].split()[0:3]) lattice[:,2] = map(float, lattice_lines[1].split()[0:3]) lattice[:,3] = map(float, lattice_lines[2].split()[0:3]) cell_contents = [i for (i,x) in enumerate(castep_output) if x == ' Cell Contents\n'] if cell_contents == []: raise ValueError('No cell contents found in castep file') cell_first_line = cell_contents[-1] # last cell contents line try: n_atoms = int(castep_output[cell_first_line+2].split()[-1]) offset = 10 except IndexError: offset = 7 if cluster is not None: # If we were passed in an Atoms object, construct mapping from # CASTEP (element, number) to original atom index atoms = cluster.copy() species_count = {} lookup = {} for i in frange(atoms.n): el = atoms.species[i].stripstrings() if species_count.has_key(el): species_count[el] += 1 else: species_count[el] = 1 lookup[(el,species_count[el])] = i else: # Otherwise we make a new, empty Atoms object. Atoms will # be ordered as they are in .castep file. lookup = {} atoms = Atoms(n=n_atoms,lattice=lattice) atoms.params['castep_run_time'] = run_time cell_lines = castep_output[cell_first_line+offset:cell_first_line+offset+n_atoms] # Fill in species and fractional positions atoms.add_property('frac_pos',0.0,n_cols=3) for i, line in fenumerate(cell_lines): x1, el, num, u, v, w, x2 = line.split() num = int(num) if not (el,num) in lookup: lookup[(el,num)] = i atoms.set_species(lookup[(el,num)], el) atoms.frac_pos[:,lookup[(el,num)]] = map(float, (u,v,w)) # Calculate cartesian postions from fractional positions atoms.pos[:] = numpy.dot(atoms.lattice, atoms.frac_pos) if param.has_key('finite_basis_corr') and param['finite_basis_corr'].lower() == 'true': energy_lines = filter(lambda s: s.startswith('Total energy corrected for finite basis set'), \ castep_output) elif param.has_key('task') and param['task'].lower() == 'geometryoptimization': energy_lines = filter(lambda s: s.startswith(' BFGS: Final Enthalpy'), castep_output) else: energy_lines = filter(lambda s: s.startswith('Final energy') and not s.endswith('<- EDFT\n'), castep_output) if (len(energy_lines) == 0): if abort: raise ValueError('No total energy found in castep file') else: # Energy is second to last field on line (last is "eV") # Use last matching energy line in file atoms.params['energy'] = float(energy_lines[-1].split()[-2]) try: for fn in ('Forces', 'Symmetrised Forces'): force_start_lines = [i for (i,s) in enumerate(castep_output) if s.find('****** %s ******' % fn) != -1] if force_start_lines != []: break if force_start_lines == []: raise ValueError # Use last set of forces force_start = force_start_lines[-1] # Extract force lines from .castep file force_lines = castep_output[force_start+6:force_start+6+atoms.n] atoms.add_property('force',0.0,n_cols=3) # Fill in the forces for i, line in enumerate(force_lines): line = line.replace('*','') # Remove the *s el, num_str, fx, fy, fz = line.split() num = int(num_str) atoms.force[:,lookup[(el,num)]] = (fx,fy,fz) except ValueError, m: if abort: raise ValueError('No forces found in castep file %s: ' % m) # Have we calculated stress? if 'calculate_stress' in param and param['calculate_stress'].lower() == 'true': try: stress_start = castep_output.index(' ***************** Stress Tensor *****************\n') stress_lines = castep_output[stress_start+6:stress_start+9] virial = fzeros((3,3),float) for i, line in fenumerate(stress_lines): star1, label, vx, vy, vz, star2 = line.split() virial[:,i] = [float(v) for v in (vx,vy,vz) ] # Convert to libAtoms units and add to atoms.params atoms.params['virial'] = virial/GPA except ValueError: if abort: raise ValueError('No stress tensor found in .castep file') # Have we calculated local populations and charges? if 'popn_calculate' in param and param['popn_calculate'].lower() == 'true': try: popn_start = castep_output.index(' Atomic Populations\n') popn_lines = castep_output[popn_start+4:popn_start+4+atoms.n] atoms.add_property('popn_s',0.0) atoms.add_property('popn_p',0.0) atoms.add_property('popn_d',0.0) atoms.add_property('popn_f',0.0) atoms.add_property('popn_total',0.0) atoms.add_property('popn_charge',0.0) for line in popn_lines: el, num_str, s, p, d, f, tot, charge = line.split() num = int(num_str) atoms.popn_s[lookup[(el,num)]] = float(s) atoms.popn_p[lookup[(el,num)]] = float(p) atoms.popn_d[lookup[(el,num)]] = float(d) atoms.popn_f[lookup[(el,num)]] = float(f) atoms.popn_total[lookup[(el,num)]] = float(tot) atoms.popn_charge[lookup[(el,num)]] = float(charge) except ValueError: if abort: raise ValueError('No populations found in castep file') if save_params: atoms.params.update(param) yield atoms if eof: break | ec8807b76757684570a516cf1219a2030cb3b7d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/ec8807b76757684570a516cf1219a2030cb3b7d0/castep.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19782,
881,
1447,
2514,
12,
4155,
881,
67,
768,
16,
2855,
33,
7036,
16,
6263,
33,
5510,
16,
1923,
67,
2010,
33,
8381,
4672,
3536,
3201,
263,
4155,
881,
585,
16,
471,
327,
7149,
87,
733,
598,
6865,
16,
12929,
16,
26376,
16,
471,
10016,
384,
663,
471,
7960,
3650,
1012,
487,
5492,
8395,
225,
309,
618,
12,
4155,
881,
67,
768,
13,
422,
618,
2668,
11,
4672,
4812,
881,
67,
768,
273,
1696,
12,
4155,
881,
67,
768,
11189,
86,
6134,
4812,
881,
67,
768,
273,
1400,
12,
4155,
881,
67,
768,
13,
225,
579,
273,
19782,
881,
786,
1435,
225,
2363,
67,
3374,
273,
1083,
14813,
273,
1083,
1323,
1053,
30,
225,
4812,
881,
67,
2844,
273,
5378,
1323,
1053,
30,
775,
30,
980,
273,
4812,
881,
67,
768,
18,
4285,
1435,
1335,
16179,
30,
14813,
273,
1053,
898,
4812,
881,
67,
2844,
18,
6923,
12,
1369,
13,
225,
309,
980,
422,
296,
571,
1377,
385,
6743,
282,
27343,
565,
348,
1260,
225,
399,
1470,
1470,
225,
512,
9383,
9383,
225,
453,
6584,
52,
3639,
571,
64,
82,
4278,
309,
2363,
67,
3374,
30,
2363,
67,
891,
273,
1053,
898,
469,
30,
2363,
67,
3374,
273,
1053,
225,
309,
980,
18,
17514,
1918,
2668,
24591,
605,
42,
16113,
6532,
11,
4672,
898,
225,
309,
980,
18,
17514,
1918,
2668,
605,
42,
16113,
30,
13069,
6282,
6532,
11,
4672,
898,
225,
468,
20096,
30,
6425,
26951,
3302,
1404,
3712,
1172,
296,
5269,
813,
11,
1086,
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,
19782,
881,
1447,
2514,
12,
4155,
881,
67,
768,
16,
2855,
33,
7036,
16,
6263,
33,
5510,
16,
1923,
67,
2010,
33,
8381,
4672,
3536,
3201,
263,
4155,
881,
585,
16,
471,
327,
7149,
87,
733,
598,
6865,
16,
12929,
16,
26376,
16,
471,
10016,
384,
663,
471,
7960,
3650,
1012,
487,
5492,
8395,
225,
309,
618,
12,
4155,
881,
67,
768,
13,
422,
618,
2668,
11,
4672,
4812,
881,
67,
768,
273,
1696,
12,
4155,
881,
67,
768,
11189,
86,
6134,
4812,
881,
67,
768,
273,
1400,
12,
4155,
881,
67,
768,
13,
225,
579,
273,
19782,
881,
786,
1435,
225,
2363,
67,
3374,
273,
1083,
14813,
273,
1083,
1323,
1053,
30,
225,
4812,
881,
67,
2844,
2
] |
wx.minical.CAL_SHOW_SURROUNDING_WEEKS) | wx.minical.CAL_SHOW_SURROUNDING_WEEKS | wx.NO_BORDER) | def wxSynchronizeWidget(self): self.SetWindowStyle(wx.minical.CAL_SUNDAY_FIRST | wx.minical.CAL_SHOW_SURROUNDING_WEEKS) | af1257351c231bb33cff6c3f31c19e3365cefb5b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/af1257351c231bb33cff6c3f31c19e3365cefb5b/CalendarBlocks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7075,
19298,
554,
4609,
12,
2890,
4672,
365,
18,
694,
3829,
2885,
12,
27226,
18,
1154,
1706,
18,
7913,
67,
55,
5240,
5255,
67,
15354,
571,
7075,
18,
1154,
1706,
18,
7913,
67,
16677,
67,
26397,
15092,
1360,
67,
20274,
55,
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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1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7075,
19298,
554,
4609,
12,
2890,
4672,
365,
18,
694,
3829,
2885,
12,
27226,
18,
1154,
1706,
18,
7913,
67,
55,
5240,
5255,
67,
15354,
571,
7075,
18,
1154,
1706,
18,
7913,
67,
16677,
67,
26397,
15092,
1360,
67,
20274,
55,
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
] |
if self.tree.headPointer is not None and\ self.parser.phase == self.parser.phases["inHead"]: | if self.tree.headPointer is not None and self.parser.phase == self.parser.phases["inHead"]: | def startTagNoScript(self, name, attributes): # XXX Need to decide whether to implement the scripting disabled case. if self.tree.headPointer is not None and\ self.parser.phase == self.parser.phases["inHead"]: element = self.tree.createElement(name, attributes) self.appendToHead(element) self.tree.openElements.append(element) else: self.tree.insertElement(name, attributes) self.parser.tokenizer.contentModelFlag = contentModelFlags["CDATA"] | c87327168843837498b252e5a0a20991a3f4ad93 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4487/c87327168843837498b252e5a0a20991a3f4ad93/html5parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
2279,
3651,
12,
2890,
16,
508,
16,
1677,
4672,
468,
11329,
12324,
358,
16288,
2856,
358,
2348,
326,
2728,
310,
5673,
648,
18,
309,
365,
18,
3413,
18,
1978,
4926,
353,
486,
599,
471,
365,
18,
4288,
18,
13961,
422,
365,
18,
4288,
18,
844,
3304,
9614,
267,
1414,
11929,
30,
930,
273,
365,
18,
3413,
18,
2640,
1046,
12,
529,
16,
1677,
13,
365,
18,
6923,
774,
1414,
12,
2956,
13,
365,
18,
3413,
18,
3190,
3471,
18,
6923,
12,
2956,
13,
469,
30,
365,
18,
3413,
18,
6387,
1046,
12,
529,
16,
1677,
13,
365,
18,
4288,
18,
2316,
1824,
18,
1745,
1488,
4678,
273,
913,
1488,
5094,
9614,
18375,
11929,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
2279,
3651,
12,
2890,
16,
508,
16,
1677,
4672,
468,
11329,
12324,
358,
16288,
2856,
358,
2348,
326,
2728,
310,
5673,
648,
18,
309,
365,
18,
3413,
18,
1978,
4926,
353,
486,
599,
471,
365,
18,
4288,
18,
13961,
422,
365,
18,
4288,
18,
844,
3304,
9614,
267,
1414,
11929,
30,
930,
273,
365,
18,
3413,
18,
2640,
1046,
12,
529,
16,
1677,
13,
365,
18,
6923,
774,
1414,
12,
2956,
13,
365,
18,
3413,
18,
3190,
3471,
18,
6923,
12,
2956,
13,
469,
30,
365,
18,
3413,
18,
6387,
1046,
12,
529,
16,
1677,
13,
365,
18,
4288,
18,
2316,
1824,
18,
1745,
1488,
4678,
273,
913,
1488,
5094,
9614,
18375,
11929,
2,
-100,
-100,
-100
] |
for t, name in enum(self): | for t, name in self.enum(): | def g6(self, Nbins=200, nbDiameters=4.5, force=False): """ Calculate g6 and g for each time step and return the time average output is (r,g6,g) """ if not force: for t, name in enum(self,ext='g6'): if not os.path.exists(name): force=True break if force: for t, name in enum(self): subprocess.check_call(map(str, ['g6', name, self.radius, Nbins, nbDiameters])) tot = np.zeros((Nbins,3)) for t, name in enum(self,ext='g6'): tot += np.nan_to_num( np.loadtxt(name,converters={0:noNaN,1:noNaN,2:noNaN}) ) tot /= self.size np.savetxt( os.path.join(self.path,self.head + '_total.g6'), tot, fmt='%f', delimiter='\t' ) return tot | f6b41338b974c6729411daaeac37e1cd5466224c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3150/f6b41338b974c6729411daaeac37e1cd5466224c/experiment.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
26,
12,
2890,
16,
423,
11862,
33,
6976,
16,
4264,
14521,
301,
1032,
33,
24,
18,
25,
16,
2944,
33,
8381,
4672,
3536,
9029,
314,
26,
471,
314,
364,
1517,
813,
2235,
471,
327,
326,
813,
8164,
876,
353,
261,
86,
16,
75,
26,
16,
75,
13,
3536,
309,
486,
2944,
30,
364,
268,
16,
508,
316,
2792,
12,
2890,
16,
408,
2218,
75,
26,
11,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
529,
4672,
2944,
33,
5510,
898,
309,
2944,
30,
364,
268,
16,
508,
316,
365,
18,
7924,
13332,
6652,
18,
1893,
67,
1991,
12,
1458,
12,
701,
16,
10228,
75,
26,
2187,
508,
16,
365,
18,
11282,
16,
423,
11862,
16,
4264,
14521,
301,
1032,
22643,
9997,
273,
1130,
18,
22008,
12443,
50,
11862,
16,
23,
3719,
364,
268,
16,
508,
316,
2792,
12,
2890,
16,
408,
2218,
75,
26,
11,
4672,
9997,
1011,
1130,
18,
13569,
67,
869,
67,
2107,
12,
1130,
18,
945,
5830,
12,
529,
16,
15747,
87,
5899,
20,
30,
2135,
21172,
16,
21,
30,
2135,
21172,
16,
22,
30,
2135,
21172,
6792,
262,
9997,
9531,
365,
18,
1467,
1130,
18,
87,
842,
278,
15239,
12,
1140,
18,
803,
18,
5701,
12,
2890,
18,
803,
16,
2890,
18,
1978,
397,
2070,
4963,
18,
75,
26,
19899,
9997,
16,
1325,
28713,
74,
2187,
5654,
2218,
64,
88,
11,
262,
327,
9997,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
26,
12,
2890,
16,
423,
11862,
33,
6976,
16,
4264,
14521,
301,
1032,
33,
24,
18,
25,
16,
2944,
33,
8381,
4672,
3536,
9029,
314,
26,
471,
314,
364,
1517,
813,
2235,
471,
327,
326,
813,
8164,
876,
353,
261,
86,
16,
75,
26,
16,
75,
13,
3536,
309,
486,
2944,
30,
364,
268,
16,
508,
316,
2792,
12,
2890,
16,
408,
2218,
75,
26,
11,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
529,
4672,
2944,
33,
5510,
898,
309,
2944,
30,
364,
268,
16,
508,
316,
365,
18,
7924,
13332,
6652,
18,
1893,
67,
1991,
12,
1458,
12,
701,
16,
10228,
75,
26,
2187,
508,
16,
365,
18,
11282,
16,
423,
11862,
16,
4264,
2
] |
def tb_4(obj, event, *args, **kargs): | def tb_4(obj, it, *args, **kargs): | def tb_4(obj, event, *args, **kargs): print "toolbar-item: test 4" | dff3caa2ec713908f112c4970120d3d880226170 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12343/dff3caa2ec713908f112c4970120d3d880226170/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8739,
67,
24,
12,
2603,
16,
518,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
1172,
315,
18849,
17,
1726,
30,
1842,
1059,
6,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
nSpaces = len(words)-1 | nSpaces = len(words)+sum([_nbspCount(w) for w in words])-1 | def _justifyDrawParaLine( tx, offset, extraspace, words, last=0): setXPos(tx,offset) text = join(words) if last: #last one, left align tx._textOut(text,1) else: nSpaces = len(words)-1 if nSpaces: tx.setWordSpace(extraspace / float(nSpaces)) tx._textOut(text,1) tx.setWordSpace(0) else: tx._textOut(text,1) setXPos(tx,-offset) return offset | 1d8b18412b3bc48e2589998cbefdbcd958ab4b19 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3878/1d8b18412b3bc48e2589998cbefdbcd958ab4b19/paragraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3732,
1164,
6493,
23529,
1670,
12,
2229,
16,
1384,
16,
11875,
909,
16,
4511,
16,
1142,
33,
20,
4672,
23733,
1616,
12,
978,
16,
3348,
13,
977,
225,
273,
1233,
12,
3753,
13,
309,
1142,
30,
468,
2722,
1245,
16,
2002,
5689,
2229,
6315,
955,
1182,
12,
955,
16,
21,
13,
469,
30,
290,
12077,
273,
562,
12,
3753,
27921,
1364,
3816,
67,
10600,
1380,
12,
91,
13,
364,
341,
316,
4511,
5717,
17,
21,
309,
290,
12077,
30,
2229,
18,
542,
3944,
3819,
12,
23687,
909,
342,
1431,
12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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3732,
1164,
6493,
23529,
1670,
12,
2229,
16,
1384,
16,
11875,
909,
16,
4511,
16,
1142,
33,
20,
4672,
23733,
1616,
12,
978,
16,
3348,
13,
977,
225,
273,
1233,
12,
3753,
13,
309,
1142,
30,
468,
2722,
1245,
16,
2002,
5689,
2229,
6315,
955,
1182,
12,
955,
16,
21,
13,
469,
30,
290,
12077,
273,
562,
12,
3753,
27921,
1364,
3816,
67,
10600,
1380,
12,
91,
13,
364,
341,
316,
4511,
5717,
17,
21,
309,
290,
12077,
30,
2229,
18,
542,
3944,
3819,
12,
23687,
909,
342,
1431,
12,
82,
12077,
3719,
2229,
6315,
955,
1182,
12,
955,
16,
21,
13,
2229,
18,
542,
3944,
3819,
12,
20,
13,
469,
30,
2229,
6315,
955,
1182,
12,
2
] |
u_iso = atm_desc["u_iso"] | def lsq_fit_segment(self, frag_id1, frag_id2): """Performs a LSQ fit of TLS parameters for the protein segment starting with fragment index ifrag_start to (and including) the fragment ifrag_end. """ ## all return values here fit_info = {} ## calculate the start/end indexes of the start fragment ## and end fragment so the A matrix and b vector can be sliced ## in the correct placees | e84d51aa8f483309e902b29a0f740a21562abad5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10674/e84d51aa8f483309e902b29a0f740a21562abad5/tlsmd_analysis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7180,
85,
67,
7216,
67,
9273,
12,
2890,
16,
10111,
67,
350,
21,
16,
10111,
67,
350,
22,
4672,
3536,
9409,
279,
29204,
53,
4845,
434,
8098,
1472,
364,
326,
14314,
3267,
5023,
598,
5481,
770,
309,
2458,
67,
1937,
358,
261,
464,
6508,
13,
326,
5481,
309,
2458,
67,
409,
18,
3536,
7541,
777,
327,
924,
2674,
4845,
67,
1376,
273,
2618,
225,
7541,
4604,
326,
787,
19,
409,
5596,
434,
326,
787,
5481,
7541,
471,
679,
5481,
1427,
326,
432,
3148,
471,
324,
3806,
848,
506,
27353,
7541,
316,
326,
3434,
3166,
281,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7180,
85,
67,
7216,
67,
9273,
12,
2890,
16,
10111,
67,
350,
21,
16,
10111,
67,
350,
22,
4672,
3536,
9409,
279,
29204,
53,
4845,
434,
8098,
1472,
364,
326,
14314,
3267,
5023,
598,
5481,
770,
309,
2458,
67,
1937,
358,
261,
464,
6508,
13,
326,
5481,
309,
2458,
67,
409,
18,
3536,
7541,
777,
327,
924,
2674,
4845,
67,
1376,
273,
2618,
225,
7541,
4604,
326,
787,
19,
409,
5596,
434,
326,
787,
5481,
7541,
471,
679,
5481,
1427,
326,
432,
3148,
471,
324,
3806,
848,
506,
27353,
7541,
316,
326,
3434,
3166,
281,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
this = apply(_quickfix.new_ContraTrader, args) | this = _quickfix.new_ContraTrader(*args) | def __init__(self, *args): this = apply(_quickfix.new_ContraTrader, 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,
442,
2033,
1609,
765,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
442,
2033,
1609,
765,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
pipe = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, close_fds=True, env=child_env) | pipe = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, env=child_env) | def exec_pg_command_pipe(name, *args): prog = find_pg_tool(name) if not prog: raise Exception('Couldn\'t find %s' % name) if os.name == "nt": cmd = '"' + prog + '" ' + ' '.join(args) else: cmd = prog + ' ' + ' '.join(args) # if db_password is set in configuration we should pass # an environment variable PGPASSWORD to our subprocess # see libpg documentation child_env = dict(os.environ) if CONFIG['db_password']: child_env['PGPASSWORD'] = CONFIG['db_password'] pipe = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, close_fds=True, env=child_env) return pipe | eebea2d71da2083c06a0c60e0f06b986f94d7a03 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9266/eebea2d71da2083c06a0c60e0f06b986f94d7a03/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1196,
67,
8365,
67,
3076,
67,
14772,
12,
529,
16,
380,
1968,
4672,
11243,
273,
1104,
67,
8365,
67,
6738,
12,
529,
13,
309,
486,
11243,
30,
1002,
1185,
2668,
16342,
3730,
88,
1104,
738,
87,
11,
738,
508,
13,
309,
1140,
18,
529,
422,
315,
496,
6877,
1797,
273,
4754,
397,
11243,
397,
2119,
296,
397,
296,
2418,
5701,
12,
1968,
13,
469,
30,
1797,
273,
11243,
397,
296,
296,
397,
296,
2418,
5701,
12,
1968,
13,
225,
468,
309,
1319,
67,
3664,
353,
444,
316,
1664,
732,
1410,
1342,
468,
392,
3330,
2190,
22116,
13784,
358,
3134,
6652,
468,
2621,
2561,
8365,
7323,
1151,
67,
3074,
273,
2065,
12,
538,
18,
28684,
13,
309,
9128,
3292,
1966,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1196,
67,
8365,
67,
3076,
67,
14772,
12,
529,
16,
380,
1968,
4672,
11243,
273,
1104,
67,
8365,
67,
6738,
12,
529,
13,
309,
486,
11243,
30,
1002,
1185,
2668,
16342,
3730,
88,
1104,
738,
87,
11,
738,
508,
13,
309,
1140,
18,
529,
422,
315,
496,
6877,
1797,
273,
4754,
397,
11243,
397,
2119,
296,
397,
296,
2418,
5701,
12,
1968,
13,
469,
30,
1797,
273,
11243,
397,
296,
296,
397,
296,
2418,
5701,
12,
1968,
13,
225,
468,
309,
1319,
67,
3664,
353,
444,
316,
1664,
732,
1410,
1342,
468,
392,
3330,
2190,
22116,
13784,
358,
3134,
6652,
468,
2621,
2561,
8365,
7323,
1151,
67,
3074,
273,
2065,
12,
538,
18,
28684,
13,
309,
9128,
3292,
2
] |
if (x + w > self.image.ncols): | if (x + w >= self.width): | def PaintArea(self, x, y, w, h, check=1): dc = wxPaintDC(self) dc.SetLogicalFunction(wxCOPY) origin = [a * self.scroll_amount for a in self.GetViewStart()] origin_scaled = [a / self.scaling for a in origin] size_scaled = [a / self.scaling for a in self.GetSizeTuple()] if check: if ((x + w < origin_scaled[0]) and (y + h < origin_scaled[1]) or (x > origin_scaled[0] + size_scaled[0] and y > origin_scaled[1] + size_scaled[1]) or (w == 0 or h == 0)): return self.tmpDC.SetUserScale(self.scaling, self.scaling) if (y + h > self.image.nrows): h = self.image.nrows - y - 2 if (x + w > self.image.ncols): w = self.image.ncols - x - 2 subimage = SubImage(self.image, y, x, h + 1, w + 1) image = wxEmptyImage(w + 1, h + 1) apply(self.to_string_function, (subimage, image.GetDataBuffer())) bmp = wxBitmapFromImage(image) self.tmpDC.DrawBitmap(bmp, 0, 0, 0) | 6eb1cae57ca1773babed2c1c4d12cf475259fce5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9927/6eb1cae57ca1773babed2c1c4d12cf475259fce5/gamera_display.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30001,
5484,
12,
2890,
16,
619,
16,
677,
16,
341,
16,
366,
16,
866,
33,
21,
4672,
6744,
273,
7075,
12699,
5528,
12,
2890,
13,
6744,
18,
694,
17955,
2083,
12,
91,
14626,
16505,
13,
4026,
273,
306,
69,
380,
365,
18,
12033,
67,
8949,
364,
279,
316,
365,
18,
967,
1767,
1685,
1435,
65,
4026,
67,
20665,
273,
306,
69,
342,
365,
18,
24576,
364,
279,
316,
4026,
65,
963,
67,
20665,
273,
306,
69,
342,
365,
18,
24576,
364,
279,
316,
365,
18,
967,
1225,
9038,
1435,
65,
309,
866,
30,
309,
14015,
92,
397,
341,
411,
4026,
67,
20665,
63,
20,
5717,
471,
261,
93,
397,
366,
411,
4026,
67,
20665,
63,
21,
5717,
578,
261,
92,
405,
4026,
67,
20665,
63,
20,
65,
397,
963,
67,
20665,
63,
20,
65,
471,
677,
405,
4026,
67,
20665,
63,
21,
65,
397,
963,
67,
20665,
63,
21,
5717,
578,
261,
91,
422,
374,
578,
366,
422,
374,
3719,
30,
327,
365,
18,
5645,
5528,
18,
694,
1299,
5587,
12,
2890,
18,
24576,
16,
365,
18,
24576,
13,
309,
261,
93,
397,
366,
405,
365,
18,
2730,
18,
82,
3870,
4672,
366,
273,
365,
18,
2730,
18,
82,
3870,
300,
677,
300,
576,
309,
261,
92,
397,
341,
1545,
365,
18,
2819,
4672,
341,
273,
365,
18,
2730,
18,
82,
6842,
300,
619,
300,
576,
720,
2730,
273,
2592,
2040,
12,
2890,
18,
2730,
16,
677,
16,
619,
16,
366,
397,
404,
16,
341,
397,
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,
30001,
5484,
12,
2890,
16,
619,
16,
677,
16,
341,
16,
366,
16,
866,
33,
21,
4672,
6744,
273,
7075,
12699,
5528,
12,
2890,
13,
6744,
18,
694,
17955,
2083,
12,
91,
14626,
16505,
13,
4026,
273,
306,
69,
380,
365,
18,
12033,
67,
8949,
364,
279,
316,
365,
18,
967,
1767,
1685,
1435,
65,
4026,
67,
20665,
273,
306,
69,
342,
365,
18,
24576,
364,
279,
316,
4026,
65,
963,
67,
20665,
273,
306,
69,
342,
365,
18,
24576,
364,
279,
316,
365,
18,
967,
1225,
9038,
1435,
65,
309,
866,
30,
309,
14015,
92,
397,
341,
411,
4026,
67,
20665,
63,
20,
5717,
471,
261,
93,
397,
366,
411,
4026,
67,
20665,
63,
21,
5717,
578,
2
] |
class Module(py.test.collect.Module): def __init__(self, *args, **kwargs): self.request = init_test_request() super(Module, self).__init__(*args, **kwargs) def run(self, *args, **kwargs): if coverage is not None: coverage_modules.update(getattr(self.obj, 'coverage_modules', [])) return super(Module, self).run(*args, **kwargs) def join(self, name): obj = getattr(self.obj, name) if isclass(obj): return MoinClassCollector(name, parent=self) elif hasattr(obj, 'func_code'): return MoinTestFunction(name, parent=self) | def restore(self): """ Restore previous request.cfg Set old keys to old values and delete new keys. """ for key, value in self.old.items(): setattr(self.request.cfg, key, value) for key in self.new: delattr(self.request.cfg, key) | c3f555754eae7a659f5e367ea32fa72b53d00a98 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/c3f555754eae7a659f5e367ea32fa72b53d00a98/conftest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5217,
12,
2890,
4672,
3536,
11197,
2416,
590,
18,
7066,
225,
1000,
1592,
1311,
358,
1592,
924,
471,
1430,
394,
1311,
18,
3536,
364,
498,
16,
460,
316,
365,
18,
1673,
18,
3319,
13332,
9241,
12,
2890,
18,
2293,
18,
7066,
16,
498,
16,
460,
13,
364,
498,
316,
365,
18,
2704,
30,
1464,
1747,
12,
2890,
18,
2293,
18,
7066,
16,
498,
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,
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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,
5217,
12,
2890,
4672,
3536,
11197,
2416,
590,
18,
7066,
225,
1000,
1592,
1311,
358,
1592,
924,
471,
1430,
394,
1311,
18,
3536,
364,
498,
16,
460,
316,
365,
18,
1673,
18,
3319,
13332,
9241,
12,
2890,
18,
2293,
18,
7066,
16,
498,
16,
460,
13,
364,
498,
316,
365,
18,
2704,
30,
1464,
1747,
12,
2890,
18,
2293,
18,
7066,
16,
498,
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
] |
|
codeout.write(indent, 'if type(%s) != DictType:' % argsarg) | codeout.write(indent, 'if type(%s) != __h.types.DictType:' % argsarg) | def genCode(self, indent, codeout, tagreg, tag): DTCompilerUtil.tagDebug(indent, codeout, tag) #args=DTUtil.tagCall(tag, ['name', ('cache', 'no'), # ('defer', -1), ('__args__', None)], # kwcol='kw') args=DTUtil.tagCall(tag, ['name', ('cache', 'no'), ('__args__', None)], kwcol='kw') kw = DTCompilerUtil.pyifyKWArgs(tag, args['kw']) args = DTCompilerUtil.pyifyArgs(tag, args) | 71e8420da73cbedbe4fee03e952d1cbc35121d22 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/71e8420da73cbedbe4fee03e952d1cbc35121d22/ComponentTag.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
1085,
12,
2890,
16,
3504,
16,
981,
659,
16,
1047,
1574,
16,
1047,
4672,
10696,
9213,
1304,
18,
2692,
2829,
12,
9355,
16,
981,
659,
16,
1047,
13,
468,
1968,
33,
9081,
1304,
18,
2692,
1477,
12,
2692,
16,
10228,
529,
2187,
7707,
2493,
2187,
296,
2135,
19899,
468,
12900,
7707,
18974,
2187,
300,
21,
3631,
7707,
972,
1968,
972,
2187,
599,
13,
6487,
468,
10792,
5323,
1293,
2218,
9987,
6134,
833,
33,
9081,
1304,
18,
2692,
1477,
12,
2692,
16,
10228,
529,
2187,
7707,
2493,
2187,
296,
2135,
19899,
7707,
972,
1968,
972,
2187,
599,
13,
6487,
5323,
1293,
2218,
9987,
6134,
5323,
273,
10696,
9213,
1304,
18,
2074,
1164,
30134,
2615,
12,
2692,
16,
833,
3292,
9987,
19486,
833,
273,
10696,
9213,
1304,
18,
2074,
1164,
2615,
12,
2692,
16,
833,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
1085,
12,
2890,
16,
3504,
16,
981,
659,
16,
1047,
1574,
16,
1047,
4672,
10696,
9213,
1304,
18,
2692,
2829,
12,
9355,
16,
981,
659,
16,
1047,
13,
468,
1968,
33,
9081,
1304,
18,
2692,
1477,
12,
2692,
16,
10228,
529,
2187,
7707,
2493,
2187,
296,
2135,
19899,
468,
12900,
7707,
18974,
2187,
300,
21,
3631,
7707,
972,
1968,
972,
2187,
599,
13,
6487,
468,
10792,
5323,
1293,
2218,
9987,
6134,
833,
33,
9081,
1304,
18,
2692,
1477,
12,
2692,
16,
10228,
529,
2187,
7707,
2493,
2187,
296,
2135,
19899,
7707,
972,
1968,
972,
2187,
599,
13,
6487,
5323,
1293,
2218,
9987,
6134,
5323,
273,
10696,
9213,
1304,
18,
2074,
1164,
30134,
2615,
12,
2692,
16,
833,
2
] |
cmd = 'rfcp %s %s' % (src_turl, dest_fpath) | cmd = 'rfcp \'%s\' %s' % (src_turl, dest_fpath) | def make_copycmd(protocol, vo, timeout, src_surl, dest_surl): ''' routine for composing copy command according to the requested protocol. ''' | 452d13c5a54e44de0a9a5f14fd0dfc5f3a7795d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/452d13c5a54e44de0a9a5f14fd0dfc5f3a7795d5/fs-copy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
3530,
4172,
12,
8373,
16,
19993,
16,
2021,
16,
1705,
67,
87,
718,
16,
1570,
67,
87,
718,
4672,
9163,
12245,
364,
532,
24014,
1610,
1296,
4888,
358,
326,
3764,
1771,
18,
9163,
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,
1221,
67,
3530,
4172,
12,
8373,
16,
19993,
16,
2021,
16,
1705,
67,
87,
718,
16,
1570,
67,
87,
718,
4672,
9163,
12245,
364,
532,
24014,
1610,
1296,
4888,
358,
326,
3764,
1771,
18,
9163,
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
] |
ext = ('pyc' if __debug__ else 'pyo') expected = [base.format(ext) for base in ('__init__.{}', 'bar.{}')] expected.extend(['__init__.py', 'bar.py']) expected.sort() | expected = sorted(['__init__.py', '__init__.pyc', 'bar.py', 'bar.pyc']) | def test_legacy_paths(self): # Ensure that with the proper switch, compileall leaves legacy # pyc/pyo files, and no __pycache__ directory. retcode = subprocess.call( (sys.executable, '-m', 'compileall', '-b', '-q', self.pkgdir)) self.assertEqual(retcode, 0) # Verify the __pycache__ directory contents. cachedir = os.path.join(self.pkgdir, '__pycache__') self.assertFalse(os.path.exists(cachedir)) ext = ('pyc' if __debug__ else 'pyo') expected = [base.format(ext) for base in ('__init__.{}', 'bar.{}')] expected.extend(['__init__.py', 'bar.py']) expected.sort() self.assertEqual(sorted(os.listdir(self.pkgdir)), expected) | 1463a3f8334b3279587af84d1134c559105f366a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/1463a3f8334b3279587af84d1134c559105f366a/test_compileall.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
17386,
67,
4481,
12,
2890,
4672,
468,
7693,
716,
598,
326,
5338,
1620,
16,
4074,
454,
15559,
8866,
468,
2395,
71,
19,
2074,
83,
1390,
16,
471,
1158,
1001,
2074,
2493,
972,
1867,
18,
22115,
273,
6652,
18,
1991,
12,
261,
9499,
18,
17751,
16,
2400,
81,
2187,
296,
11100,
454,
2187,
2400,
70,
2187,
2400,
85,
2187,
365,
18,
10657,
1214,
3719,
365,
18,
11231,
5812,
12,
15685,
16,
374,
13,
468,
8553,
326,
1001,
2074,
2493,
972,
1867,
2939,
18,
3472,
481,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
10657,
1214,
16,
4940,
2074,
2493,
972,
6134,
365,
18,
11231,
8381,
12,
538,
18,
803,
18,
1808,
12,
7097,
481,
3719,
2665,
273,
3115,
12,
3292,
972,
2738,
25648,
2074,
2187,
4940,
2738,
25648,
2074,
71,
2187,
296,
3215,
18,
2074,
2187,
296,
3215,
18,
2074,
71,
19486,
365,
18,
11231,
5812,
12,
10350,
12,
538,
18,
1098,
1214,
12,
2890,
18,
10657,
1214,
13,
3631,
2665,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
17386,
67,
4481,
12,
2890,
4672,
468,
7693,
716,
598,
326,
5338,
1620,
16,
4074,
454,
15559,
8866,
468,
2395,
71,
19,
2074,
83,
1390,
16,
471,
1158,
1001,
2074,
2493,
972,
1867,
18,
22115,
273,
6652,
18,
1991,
12,
261,
9499,
18,
17751,
16,
2400,
81,
2187,
296,
11100,
454,
2187,
2400,
70,
2187,
2400,
85,
2187,
365,
18,
10657,
1214,
3719,
365,
18,
11231,
5812,
12,
15685,
16,
374,
13,
468,
8553,
326,
1001,
2074,
2493,
972,
1867,
2939,
18,
3472,
481,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
10657,
1214,
16,
4940,
2074,
2493,
972,
6134,
365,
18,
11231,
8381,
12,
538,
18,
803,
18,
1808,
12,
7097,
481,
3719,
2665,
2
] |
import sys | def test_main(verbose=None): import sys from test import test_sets test_classes = ( TestSet, TestSetSubclass, TestFrozenSet, TestFrozenSetSubclass, TestSetOfSets, TestExceptionPropagation, TestBasicOpsEmpty, TestBasicOpsSingleton, TestBasicOpsTuple, TestBasicOpsTriple, TestBinaryOps, TestUpdateOps, TestMutate, TestSubsetEqualEmpty, TestSubsetEqualNonEmpty, TestSubsetEmptyNonEmpty, TestSubsetPartial, TestSubsetNonOverlap, TestOnlySetsNumeric, TestOnlySetsDict, TestOnlySetsOperator, TestOnlySetsTuple, TestOnlySetsString, TestOnlySetsGenerator, TestCopyingEmpty, TestCopyingSingleton, TestCopyingTriple, TestCopyingTuple, TestCopyingNested, TestIdentities, TestVariousIteratorArgs, ) test_support.run_unittest(*test_classes) # verify reference counting if verbose and hasattr(sys, "gettotalrefcount"): import gc counts = [None] * 5 for i in xrange(len(counts)): test_support.run_unittest(*test_classes) gc.collect() counts[i] = sys.gettotalrefcount() print counts | c47e01d02021253dd9f8fd4ced6eb663436431bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c47e01d02021253dd9f8fd4ced6eb663436431bb/test_set.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
12,
11369,
33,
7036,
4672,
628,
1842,
1930,
1842,
67,
4424,
1842,
67,
4701,
273,
261,
7766,
694,
16,
7766,
694,
1676,
1106,
16,
7766,
42,
9808,
694,
16,
7766,
42,
9808,
694,
1676,
1106,
16,
7766,
694,
951,
2785,
16,
7766,
503,
14225,
16,
7766,
8252,
8132,
1921,
16,
7766,
8252,
8132,
19571,
16,
7766,
8252,
8132,
9038,
16,
7766,
8252,
8132,
28166,
16,
7766,
5905,
8132,
16,
7766,
1891,
8132,
16,
7766,
7420,
340,
16,
7766,
20315,
5812,
1921,
16,
7766,
20315,
5812,
23176,
16,
7766,
20315,
1921,
23176,
16,
7766,
20315,
9447,
16,
7766,
20315,
3989,
17411,
16,
7766,
3386,
2785,
9902,
16,
7766,
3386,
2785,
5014,
16,
7766,
3386,
2785,
5592,
16,
7766,
3386,
2785,
9038,
16,
7766,
3386,
2785,
780,
16,
7766,
3386,
2785,
3908,
16,
7766,
2951,
310,
1921,
16,
7766,
2951,
310,
19571,
16,
7766,
2951,
310,
28166,
16,
7766,
2951,
310,
9038,
16,
7766,
2951,
310,
8649,
16,
7766,
20746,
16,
7766,
4205,
1481,
3198,
2615,
16,
262,
225,
1842,
67,
13261,
18,
2681,
67,
4873,
3813,
30857,
3813,
67,
4701,
13,
225,
468,
3929,
2114,
22075,
309,
3988,
471,
3859,
12,
9499,
16,
315,
588,
4963,
1734,
1883,
6,
4672,
1930,
8859,
6880,
273,
306,
7036,
65,
380,
1381,
364,
277,
316,
12314,
12,
1897,
12,
8008,
3719,
30,
1842,
67,
13261,
18,
2681,
67,
4873,
3813,
30857,
3813,
67,
4701,
13,
8859,
18,
14676,
1435,
6880,
63,
77,
65,
273,
2589,
18,
588,
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,
1842,
67,
5254,
12,
11369,
33,
7036,
4672,
628,
1842,
1930,
1842,
67,
4424,
1842,
67,
4701,
273,
261,
7766,
694,
16,
7766,
694,
1676,
1106,
16,
7766,
42,
9808,
694,
16,
7766,
42,
9808,
694,
1676,
1106,
16,
7766,
694,
951,
2785,
16,
7766,
503,
14225,
16,
7766,
8252,
8132,
1921,
16,
7766,
8252,
8132,
19571,
16,
7766,
8252,
8132,
9038,
16,
7766,
8252,
8132,
28166,
16,
7766,
5905,
8132,
16,
7766,
1891,
8132,
16,
7766,
7420,
340,
16,
7766,
20315,
5812,
1921,
16,
7766,
20315,
5812,
23176,
16,
7766,
20315,
1921,
23176,
16,
7766,
20315,
9447,
16,
7766,
20315,
3989,
17411,
16,
7766,
3386,
2785,
9902,
16,
7766,
3386,
2785,
5014,
16,
7766,
3386,
2785,
5592,
2
] |
|
if thing.verbosity() > 80: progress("Heavy predicate succeeds") | if thing.verbosity() > 80: progress("Heavy predicate succeeds") | def tryHeavy(self, queue, bindings): """Deal with heavy built-in functions.""" con, pred, subj, obj = self.quad try: self.state = 10 # Assume can't resolve if self.neededFor[SUBJ] == []: if self.neededFor[OBJ] == []: # Binary operators? result = pred.evaluate2(subj, obj, bindings[:]) if result: if thing.verbosity() > 80: progress("Heavy predicate succeeds") self.state = 0 # done return [] else: if thing.verbosity() > 80: progress("Heavy predicate fails") return 0 # We absoluteley know this won't match with this in it else: # The statement has one variable - try functions if isinstance(pred, Function): result = pred.evaluateObject2(subj) if result == None: return 0 else: self.state = 80 return [[ (obj, result)]] else: if self.neededFor[OBJ] == [] and isinstance(pred, ReverseFunction): obj_py = self.store._toPython(obj, queue) result = pred.evaluateSubject2(self.store, obj, obj_py) if result != None: # There is some such result self.state = 80 # Do this then stop - that is all return [[ (subj, result)]] else: return 0 if thing.verbosity() > 30: progress("Builtin could not give result"+`self`) except (IOError, SyntaxError): raise BuiltInFailed(sys.exc_info(), self ),None | 9014f1b29ec001a58490a448dc6782aa1860acf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/9014f1b29ec001a58490a448dc6782aa1860acf4/llyn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
225,
775,
5256,
23935,
12,
2890,
16,
2389,
16,
7394,
4672,
3536,
758,
287,
598,
3904,
23935,
6650,
17,
267,
4186,
12123,
356,
16,
3479,
16,
15333,
16,
1081,
273,
365,
18,
21733,
775,
30,
365,
18,
2019,
273,
1728,
225,
468,
15983,
848,
1404,
2245,
309,
365,
18,
17471,
1290,
63,
8362,
46,
65,
422,
5378,
30,
309,
365,
18,
17471,
1290,
63,
24547,
65,
422,
5378,
30,
468,
7896,
12213,
35,
563,
273,
3479,
18,
21024,
22,
12,
1717,
78,
16,
1081,
16,
7394,
10531,
5717,
309,
563,
30,
309,
7757,
18,
16629,
8807,
1435,
405,
8958,
30,
4007,
2932,
5256,
23935,
5641,
21933,
7923,
365,
18,
2019,
273,
374,
225,
468,
2731,
327,
5378,
469,
30,
309,
7757,
18,
16629,
8807,
1435,
405,
8958,
30,
4007,
2932,
5256,
23935,
5641,
6684,
7923,
327,
374,
282,
468,
1660,
2417,
355,
322,
292,
402,
5055,
333,
8462,
1404,
845,
598,
333,
316,
518,
469,
30,
282,
468,
1021,
3021,
711,
1245,
2190,
300,
775,
4186,
309,
1549,
12,
6510,
16,
4284,
4672,
563,
273,
3479,
18,
21024,
921,
22,
12,
1717,
78,
13,
309,
563,
422,
599,
30,
327,
374,
469,
30,
365,
18,
2019,
273,
8958,
327,
12167,
261,
2603,
16,
563,
13,
13563,
469,
30,
309,
365,
18,
17471,
1290,
63,
24547,
65,
422,
5378,
471,
1549,
12,
6510,
16,
18469,
2083,
4672,
1081,
67,
2074,
273,
365,
18,
2233,
6315,
869,
15774,
12,
2603,
16,
2389,
13,
563,
273,
3479,
18,
21024,
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,
225,
775,
5256,
23935,
12,
2890,
16,
2389,
16,
7394,
4672,
3536,
758,
287,
598,
3904,
23935,
6650,
17,
267,
4186,
12123,
356,
16,
3479,
16,
15333,
16,
1081,
273,
365,
18,
21733,
775,
30,
365,
18,
2019,
273,
1728,
225,
468,
15983,
848,
1404,
2245,
309,
365,
18,
17471,
1290,
63,
8362,
46,
65,
422,
5378,
30,
309,
365,
18,
17471,
1290,
63,
24547,
65,
422,
5378,
30,
468,
7896,
12213,
35,
563,
273,
3479,
18,
21024,
22,
12,
1717,
78,
16,
1081,
16,
7394,
10531,
5717,
309,
563,
30,
309,
7757,
18,
16629,
8807,
1435,
405,
8958,
30,
4007,
2932,
5256,
23935,
5641,
21933,
7923,
365,
18,
2019,
273,
374,
225,
468,
2731,
327,
5378,
469,
2
] |
except Exception as e: | except Exception, e: | def _open(self, bt, mode=None): try: self._swapfile.file = self._fs.file self._swapfile.open(mode) except Exception as e: self._notify_err(e) return | 0774ce41d1cae4112fe49e2b57f6cec28ee30e95 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12343/0774ce41d1cae4112fe49e2b57f6cec28ee30e95/openfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3190,
12,
2890,
16,
10921,
16,
1965,
33,
7036,
4672,
775,
30,
365,
6315,
22270,
768,
18,
768,
273,
365,
6315,
2556,
18,
768,
365,
6315,
22270,
768,
18,
3190,
12,
3188,
13,
1335,
1185,
16,
425,
30,
365,
6315,
12336,
67,
370,
12,
73,
13,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3190,
12,
2890,
16,
10921,
16,
1965,
33,
7036,
4672,
775,
30,
365,
6315,
22270,
768,
18,
768,
273,
365,
6315,
2556,
18,
768,
365,
6315,
22270,
768,
18,
3190,
12,
3188,
13,
1335,
1185,
16,
425,
30,
365,
6315,
12336,
67,
370,
12,
73,
13,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if boundingBox and not boundingBox.contains(points.boundingBox()): print "polygon out of range:", points | if boundingBox and \ not boundingBox.contains(points.boundingBox()): | def addFlowLinesToMap(edges, map, boundingBox = None): """addFlowLinesToMap(edges, map) This function expects `edges` to be a list of SubPixelWatersheds.edge() return values and adds edges for each flowline. The labels of the resulting edges will be valid indices into the `edges` sequence for the corresponding source data. It contains some special handling of flowlines: * Additional Nodes may be added for flowlines that did not end in a maximum - extra care is taken not to insert multiple Nodes at (nearly) the same position. * Self-loops with area zero are not added. * Flowlines that run outside the given bounding box are clipped, and *the given `edges` sequence is modified in-place*(!) in order to allow later WatershedStatistics to know about the modified saddle indices. Returns edgeTuples that could not be added to the GeoMap.""" # Node 0 conflicts with our special handling of 0 values: assert not map.node(0), \ "addFlowLinesToMap: Node with label zero should not exist!" result = [] for edgeLabel, edgeTuple in enumerate(edges): if not edgeTuple: continue startNodeLabel = edgeTuple[0] endNodeLabel = edgeTuple[1] points = hourglass.Polygon(edgeTuple[2]) if boundingBox and not boundingBox.contains(points.boundingBox()): print "polygon out of range:", points saddleIndex = edgeTuple[3] if not boundingBox.contains(points[saddleIndex]): result.append(edgeTuple) continue if startNodeLabel >= 0 and \ not boundingBox.contains(points[0]): startNodeLabel = -1 if endNodeLabel >= 0 and \ not boundingBox.contains(points[-1]): endNodeLabel = -1 import polytools for cp in polytools.clipPoly(points, boundingBox): print "part: %d points" % len(cp) try: newSaddleIndex = list(cp).index(points[saddleIndex]) except ValueError: continue sys.stderr.write("WARNING: flowline left image range, clipped from %d to %d points (saddle index %d->%d)\n" % (len(edgeTuple[2]), len(cp), saddleIndex, newSaddleIndex)) points = cp edgeTuple = ( startNodeLabel, endNodeLabel, points, newSaddleIndex) edges[edgeLabel] = edgeTuple # write back (see docstring) break # meaning of node labels: # >0: index of maximum # = 0: step size below threshold # = -1: dito, at image border # = -2: unwanted edge parallel to border (CODE REMOVED) # = -3: too many steps # = -4: dito, at image border if startNodeLabel == -2 and endNodeLabel == -2: # FIXME: check that partialArea of closed edge is near zero result.append(edgeTuple) continue # unwanted edge parallel to border # be careful not to modify the original 'edges' passed: points = hourglass.Polygon(edgeTuple[2]) assert len(points) >= 2, "edges need to have at least two (end-)points" # FIXME: now, we allow jumping back, replacing the last edge # point with the node position. For this, a distance of 0.25 # could be too much - remove more points? # if flowlines do not end in a maximum (their end labels # are negative), we assign end nodes to them: if startNodeLabel <= 0: pos = points[0] nearestNode = map.nearestNode(pos, 0.25) # if there is already a node nearby and in the right # direction (prevents loops), attach edge to it: if nearestNode: diff = nearestNode.position() - pos startNode = nearestNode if vigra.dot(diff, pos - points[1]) >= 0: # don't jump back if diff.squaredMagnitude(): # include node position if not present points.insert(0, nearestNode.position()) else: points[0] = nearestNode.position() else: # no suitable Node found -> add one startNode = map.addNode(pos) else: startNode = map.node(startNodeLabel) assert startNode, "invalid startNodeLabel!" # ..handle Edge end the same as the start: if endNodeLabel <= 0: pos = points[-1] nearestNode = map.nearestNode(pos, 0.25) if nearestNode: diff = nearestNode.position() - pos endNode = nearestNode if vigra.dot(diff, pos - points[-2]) >= 0: if diff.squaredMagnitude(): points.append(nearestNode.position()) else: points[-1] = nearestNode.position() else: endNode = map.addNode(pos) else: endNode = map.node(endNodeLabel) assert endNode, "invalid endNodeLabel!" # we need to avoid creating short, unsortable # self-loops with area zero: if startNode == endNode and ( startNodeLabel <= 0 or endNodeLabel <= 0 or len(points) == 2): result.append(edgeTuple) continue assert startNode and endNode map.addEdge(startNode, endNode, points, edgeLabel) return result | 0a9c192f15ab472571e836acc52ccf96ffe29de5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10394/0a9c192f15ab472571e836acc52ccf96ffe29de5/maputils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
5249,
5763,
18392,
12,
8746,
16,
852,
16,
23044,
273,
599,
4672,
3536,
1289,
5249,
5763,
18392,
12,
8746,
16,
852,
13,
225,
1220,
445,
10999,
1375,
8746,
68,
358,
506,
279,
666,
434,
2592,
9037,
59,
31302,
76,
9765,
18,
7126,
1435,
327,
924,
471,
4831,
5231,
364,
1517,
4693,
1369,
18,
225,
1021,
3249,
434,
326,
8156,
5231,
903,
506,
923,
4295,
1368,
326,
1375,
8746,
68,
3102,
364,
326,
4656,
1084,
501,
18,
225,
2597,
1914,
2690,
4582,
5057,
434,
4693,
3548,
30,
225,
380,
15119,
14037,
2026,
506,
3096,
364,
4693,
3548,
716,
5061,
486,
679,
316,
279,
4207,
300,
2870,
7671,
353,
9830,
486,
358,
2243,
3229,
14037,
622,
261,
27862,
715,
13,
326,
1967,
1754,
18,
225,
380,
18954,
17,
383,
4473,
598,
5091,
3634,
854,
486,
3096,
18,
225,
380,
9473,
3548,
716,
1086,
8220,
326,
864,
7552,
3919,
854,
26361,
16,
471,
380,
5787,
864,
1375,
8746,
68,
3102,
353,
4358,
316,
17,
964,
21556,
24949,
316,
1353,
358,
1699,
5137,
678,
31302,
18550,
8569,
358,
5055,
2973,
326,
4358,
272,
1289,
298,
4295,
18,
225,
2860,
3591,
25813,
716,
3377,
486,
506,
3096,
358,
326,
9385,
863,
12123,
225,
468,
2029,
374,
14450,
598,
3134,
4582,
5057,
434,
374,
924,
30,
1815,
486,
852,
18,
2159,
12,
20,
3631,
521,
315,
1289,
5249,
5763,
18392,
30,
2029,
598,
1433,
3634,
1410,
486,
1005,
4442,
225,
563,
273,
5378,
364,
3591,
2224,
16,
3591,
9038,
316,
4241,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
5249,
5763,
18392,
12,
8746,
16,
852,
16,
23044,
273,
599,
4672,
3536,
1289,
5249,
5763,
18392,
12,
8746,
16,
852,
13,
225,
1220,
445,
10999,
1375,
8746,
68,
358,
506,
279,
666,
434,
2592,
9037,
59,
31302,
76,
9765,
18,
7126,
1435,
327,
924,
471,
4831,
5231,
364,
1517,
4693,
1369,
18,
225,
1021,
3249,
434,
326,
8156,
5231,
903,
506,
923,
4295,
1368,
326,
1375,
8746,
68,
3102,
364,
326,
4656,
1084,
501,
18,
225,
2597,
1914,
2690,
4582,
5057,
434,
4693,
3548,
30,
225,
380,
15119,
14037,
2026,
506,
3096,
364,
4693,
3548,
716,
5061,
486,
679,
316,
279,
4207,
300,
2870,
7671,
353,
9830,
486,
358,
2243,
3229,
14037,
622,
261,
27862,
715,
2
] |
adj = self.scrolled_window.get_vadjustment() adj.set_value(adj.upper - adj.page_size - 804) | def add_status(self, name, icon, text): """Display text on screen, with name and icon. | cf145576124317d5aa0857a26ce52b5ae83d1f0d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7190/cf145576124317d5aa0857a26ce52b5ae83d1f0d/chat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
2327,
12,
2890,
16,
508,
16,
4126,
16,
977,
4672,
3536,
4236,
977,
603,
5518,
16,
598,
508,
471,
4126,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
2327,
12,
2890,
16,
508,
16,
4126,
16,
977,
4672,
3536,
4236,
977,
603,
5518,
16,
598,
508,
471,
4126,
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
] |
|
installDate = self.cursor.fetchone()[0] | installDate = result['installdate'] | def register(self, publicKey, dept, version, rhnid, sid): """Workstation requests registration. Check DB and register host as appropiate. On success 0 is returned, otherwise a non-zero error code is returned.""" # ok..we have no data for the client lets make sure our DB looks ok if self.isRegistered() != None: # What? Client is already registered? # The web-kickstart log should have unregistered this client # not registering log.info("Registered client %s attempted to re-register" \ % self.client) return 1 if self.apiVersion >= 2: if sid is not None and sid != '': sess = Session(sid=sid, secret=config.secret) if sess.isNew() or not sess.isValid(): # We have an invalid session hash, its expired or # just junk. NoSupport return self.createNoSupport(publicKey, dept, version, rhnid) else: return self.__register(publicKey, dept, version, rhnid, sid['hostid']) else: # No session to match a previous initHost. # Not installed via Web-Kickstart? return self.createNoSupport(publicKey, dept, version, rhnid) | 0ed9564790b5795dcae4d13bed3f836e0439e4d1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5056/0ed9564790b5795dcae4d13bed3f836e0439e4d1/apiServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
12,
2890,
16,
12085,
16,
443,
337,
16,
1177,
16,
6259,
31030,
16,
7348,
4672,
3536,
2421,
17894,
3285,
7914,
18,
225,
2073,
2383,
471,
1744,
1479,
487,
5145,
3840,
18,
225,
2755,
2216,
374,
353,
2106,
16,
3541,
279,
1661,
17,
7124,
555,
981,
353,
2106,
12123,
225,
468,
1529,
838,
1814,
1240,
1158,
501,
364,
326,
1004,
14557,
1221,
3071,
3134,
2383,
10192,
1529,
309,
365,
18,
291,
10868,
1435,
480,
599,
30,
468,
18734,
35,
2445,
353,
1818,
4104,
35,
468,
1021,
3311,
17,
79,
1200,
1937,
613,
1410,
1240,
24352,
333,
1004,
468,
486,
22845,
613,
18,
1376,
2932,
10868,
1004,
738,
87,
18121,
358,
283,
17,
4861,
6,
521,
738,
365,
18,
2625,
13,
327,
404,
225,
309,
365,
18,
25336,
1545,
576,
30,
309,
7348,
353,
486,
599,
471,
7348,
480,
875,
30,
8451,
273,
3877,
12,
7453,
33,
7453,
16,
4001,
33,
1425,
18,
5875,
13,
309,
8451,
18,
291,
1908,
1435,
578,
486,
8451,
18,
26810,
13332,
468,
1660,
1240,
392,
2057,
1339,
1651,
16,
2097,
7708,
578,
468,
2537,
525,
1683,
18,
225,
2631,
6289,
327,
365,
18,
2640,
2279,
6289,
12,
482,
653,
16,
443,
337,
16,
1177,
16,
6259,
31030,
13,
469,
30,
327,
365,
16186,
4861,
12,
482,
653,
16,
443,
337,
16,
1177,
16,
6259,
31030,
16,
7348,
3292,
2564,
350,
19486,
469,
30,
468,
2631,
1339,
358,
845,
279,
2416,
1208,
2594,
18,
468,
2288,
5876,
3970,
2999,
17,
47,
1200,
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,
1744,
12,
2890,
16,
12085,
16,
443,
337,
16,
1177,
16,
6259,
31030,
16,
7348,
4672,
3536,
2421,
17894,
3285,
7914,
18,
225,
2073,
2383,
471,
1744,
1479,
487,
5145,
3840,
18,
225,
2755,
2216,
374,
353,
2106,
16,
3541,
279,
1661,
17,
7124,
555,
981,
353,
2106,
12123,
225,
468,
1529,
838,
1814,
1240,
1158,
501,
364,
326,
1004,
14557,
1221,
3071,
3134,
2383,
10192,
1529,
309,
365,
18,
291,
10868,
1435,
480,
599,
30,
468,
18734,
35,
2445,
353,
1818,
4104,
35,
468,
1021,
3311,
17,
79,
1200,
1937,
613,
1410,
1240,
24352,
333,
1004,
468,
486,
22845,
613,
18,
1376,
2932,
10868,
1004,
738,
87,
18121,
358,
283,
17,
4861,
6,
521,
738,
365,
18,
2
] |
for i, value in enumerate(s): | for value, i in s: print "inserting severity ", value, " ", i | def setSeverityList(self, s): """Remove all severities, set them to `s`""" if self.hasTickets(): raise Exception("Will not modify database with existing tickets!") c = self.db().cursor() c.execute("""DELETE FROM enum WHERE type='severity'""") for i, value in enumerate(s): c.execute("""INSERT INTO enum (type, name, value) VALUES (%s, %s, %s)""", "severity", value, i) self.db().commit() | c5dcfdcbc56f3ce4c50bebf6511e29a385448c48 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/c5dcfdcbc56f3ce4c50bebf6511e29a385448c48/bugzilla2trac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
21630,
682,
12,
2890,
16,
272,
4672,
3536,
3288,
777,
6963,
1961,
16,
444,
2182,
358,
1375,
87,
68,
8395,
309,
365,
18,
5332,
6264,
2413,
13332,
1002,
1185,
2932,
13670,
486,
5612,
2063,
598,
2062,
24475,
4442,
13,
225,
276,
273,
365,
18,
1966,
7675,
9216,
1435,
276,
18,
8837,
2932,
3660,
6460,
4571,
2792,
4852,
618,
2218,
27341,
11,
3660,
7923,
364,
460,
16,
277,
316,
272,
30,
1172,
315,
6387,
310,
11426,
3104,
460,
16,
315,
3104,
277,
276,
18,
8837,
2932,
3660,
11356,
12421,
2792,
261,
723,
16,
508,
16,
460,
13,
13477,
6142,
87,
16,
738,
87,
16,
738,
87,
2225,
6,
3113,
315,
27341,
3113,
460,
16,
277,
13,
365,
18,
1966,
7675,
7371,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
21630,
682,
12,
2890,
16,
272,
4672,
3536,
3288,
777,
6963,
1961,
16,
444,
2182,
358,
1375,
87,
68,
8395,
309,
365,
18,
5332,
6264,
2413,
13332,
1002,
1185,
2932,
13670,
486,
5612,
2063,
598,
2062,
24475,
4442,
13,
225,
276,
273,
365,
18,
1966,
7675,
9216,
1435,
276,
18,
8837,
2932,
3660,
6460,
4571,
2792,
4852,
618,
2218,
27341,
11,
3660,
7923,
364,
460,
16,
277,
316,
272,
30,
1172,
315,
6387,
310,
11426,
3104,
460,
16,
315,
3104,
277,
276,
18,
8837,
2932,
3660,
11356,
12421,
2792,
261,
723,
16,
508,
16,
460,
13,
13477,
6142,
87,
16,
738,
87,
16,
738,
87,
2225,
6,
3113,
315,
27341,
3113,
460,
16,
277,
13,
365,
18,
2
] |
out.write('-- %s\n\n' % '\n-- '.join(description.splitlines())) out.write(sql) | lines = description.encode('utf-8').splitlines() out.write('-- %s\n\n' % '\n-- '.join(lines)) out.write(sql.encode('utf-8')) | def _send_sql(self, req, id, title, description, sql): req.perm.require('REPORT_SQL_VIEW') | db821fa511212e846fba67360571ab84cc2891df /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2831/db821fa511212e846fba67360571ab84cc2891df/report.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4661,
67,
4669,
12,
2890,
16,
1111,
16,
612,
16,
2077,
16,
2477,
16,
1847,
4672,
1111,
18,
12160,
18,
6528,
2668,
22710,
67,
3997,
67,
12145,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
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
] |
@type warnings: C{list} of C{ParseError} | @type warnings: C{list} of L{ParseError} | def _tokenize(str, warnings): """ Split a given formatted docstring into an ordered list of C{Token}s, according to the epytext markup rules. @param str: The epytext string @type str: C{String} @param warnings: A list of the warnings generated by parsing. Any new warnings generated while will tokenizing this paragraph will be appended to this list. @type warnings: C{list} of C{ParseError} @return: a list of the C{Token}s that make up the given string. @rtype: C{list} of C{Token} """ tokens = [] lines = str.split('\n') # Scan through the lines, determining what @type of token we're # dealing with, and tokenizing it, as appropriate. linenum = 0 while linenum < len(lines): # Get the current line and its indentation. line = lines[linenum] indent = len(line)-len(line.lstrip()) if indent == len(line): # Ignore blank lines. linenum += 1 continue elif line[indent:indent+4] == '>>> ': # blocks starting with ">>> " are doctest block tokens. linenum = _tokenize_doctest(lines, linenum, indent, tokens, warnings) elif _BULLET_RE.match(line, indent): # blocks starting with a bullet are LIStart tokens. linenum = _tokenize_listart(lines, linenum, indent, tokens, warnings) if tokens[-1].indent != None: indent = tokens[-1].indent else: # Check for mal-formatted field items. if line[indent] == '@': estr = "Possible mal-formatted field item" warnings.append(TokenizationError(estr, linenum, line)) # anything else is either a paragraph or a heading. linenum = _tokenize_para(lines, linenum, indent, tokens, warnings) # Paragraph tokens ending in '::' initiate literal blocks. if (tokens[-1].tag == Token.PARA and tokens[-1].contents[-2:] == '::'): tokens[-1].contents = tokens[-1].contents[:-1] linenum = _tokenize_literal(lines, linenum, indent, tokens, warnings) return tokens | 0cc72bd3422be83752480f57dbecac32d991815f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/0cc72bd3422be83752480f57dbecac32d991815f/epytext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2316,
554,
12,
701,
16,
5599,
4672,
3536,
5385,
279,
864,
4955,
14525,
1368,
392,
5901,
666,
434,
385,
95,
1345,
97,
87,
16,
4888,
358,
326,
425,
2074,
955,
9813,
2931,
18,
225,
632,
891,
609,
30,
1021,
425,
2074,
955,
533,
632,
723,
609,
30,
385,
95,
780,
97,
632,
891,
5599,
30,
432,
666,
434,
326,
5599,
4374,
635,
5811,
18,
225,
5502,
394,
5599,
4374,
1323,
903,
1147,
6894,
333,
10190,
903,
506,
12317,
358,
333,
666,
18,
632,
723,
5599,
30,
385,
95,
1098,
97,
434,
511,
95,
21004,
97,
632,
2463,
30,
279,
666,
434,
326,
385,
95,
1345,
97,
87,
716,
1221,
731,
326,
864,
533,
18,
632,
86,
723,
30,
385,
95,
1098,
97,
434,
385,
95,
1345,
97,
3536,
2430,
273,
5378,
2362,
273,
609,
18,
4939,
2668,
64,
82,
6134,
225,
468,
8361,
3059,
326,
2362,
16,
23789,
4121,
632,
723,
434,
1147,
732,
4565,
468,
21964,
598,
16,
471,
1147,
6894,
518,
16,
487,
5505,
18,
4739,
7924,
273,
374,
1323,
4739,
7924,
411,
562,
12,
3548,
4672,
468,
968,
326,
783,
980,
471,
2097,
12018,
18,
980,
273,
2362,
63,
7511,
7924,
65,
3504,
273,
562,
12,
1369,
24950,
1897,
12,
1369,
18,
80,
6406,
10756,
225,
309,
3504,
422,
562,
12,
1369,
4672,
468,
8049,
7052,
2362,
18,
4739,
7924,
1011,
404,
1324,
1327,
980,
63,
9355,
30,
9355,
15,
24,
65,
422,
296,
23012,
4290,
468,
4398,
5023,
598,
315,
23012,
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,
2316,
554,
12,
701,
16,
5599,
4672,
3536,
5385,
279,
864,
4955,
14525,
1368,
392,
5901,
666,
434,
385,
95,
1345,
97,
87,
16,
4888,
358,
326,
425,
2074,
955,
9813,
2931,
18,
225,
632,
891,
609,
30,
1021,
425,
2074,
955,
533,
632,
723,
609,
30,
385,
95,
780,
97,
632,
891,
5599,
30,
432,
666,
434,
326,
5599,
4374,
635,
5811,
18,
225,
5502,
394,
5599,
4374,
1323,
903,
1147,
6894,
333,
10190,
903,
506,
12317,
358,
333,
666,
18,
632,
723,
5599,
30,
385,
95,
1098,
97,
434,
511,
95,
21004,
97,
632,
2463,
30,
279,
666,
434,
326,
385,
95,
1345,
97,
87,
716,
1221,
731,
326,
864,
533,
18,
632,
86,
723,
2
] |
self.update_tag = None | def __init__(self): global loop self.size = ui.get_cols_rows() # Happy screen saying that you can't do anything because we're scanning # for networks. :-) self.screen_locker = urwid.Filler(urwid.Text(('important',language['scanning_stand_by']), align='center')) self.no_wlan = urwid.Filler(urwid.Text(('important',language['no_wireless_networks_found']), align='center')) self.TITLE = language['wicd_curses'] self.WIRED_IDX = 1 self.WLESS_IDX = 3 | 91b7ca8814daa7cefa7ae0f101bc96d8d03fecb1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/353/91b7ca8814daa7cefa7ae0f101bc96d8d03fecb1/wicd-curses.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2552,
2798,
365,
18,
1467,
273,
5915,
18,
588,
67,
6842,
67,
3870,
1435,
468,
670,
438,
2074,
5518,
12532,
310,
716,
1846,
848,
1404,
741,
6967,
2724,
732,
4565,
21138,
468,
364,
13884,
18,
225,
294,
17,
13,
365,
18,
9252,
67,
739,
264,
273,
8896,
30902,
18,
8026,
264,
12,
295,
30902,
18,
1528,
12,
2668,
23221,
2187,
4923,
3292,
1017,
10903,
67,
10145,
67,
1637,
3546,
3631,
5689,
2218,
5693,
26112,
365,
18,
2135,
67,
91,
6115,
273,
8896,
30902,
18,
8026,
264,
12,
295,
30902,
18,
1528,
12,
2668,
23221,
2187,
4923,
3292,
2135,
67,
14538,
2656,
67,
19982,
67,
7015,
3546,
3631,
5689,
2218,
5693,
26112,
365,
18,
14123,
273,
2653,
3292,
91,
335,
72,
67,
1397,
2420,
3546,
365,
18,
23109,
5879,
67,
25647,
273,
404,
365,
18,
59,
26005,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2552,
2798,
365,
18,
1467,
273,
5915,
18,
588,
67,
6842,
67,
3870,
1435,
468,
670,
438,
2074,
5518,
12532,
310,
716,
1846,
848,
1404,
741,
6967,
2724,
732,
4565,
21138,
468,
364,
13884,
18,
225,
294,
17,
13,
365,
18,
9252,
67,
739,
264,
273,
8896,
30902,
18,
8026,
264,
12,
295,
30902,
18,
1528,
12,
2668,
23221,
2187,
4923,
3292,
1017,
10903,
67,
10145,
67,
1637,
3546,
3631,
5689,
2218,
5693,
26112,
365,
18,
2135,
67,
91,
6115,
273,
8896,
30902,
18,
8026,
264,
12,
295,
30902,
18,
1528,
12,
2668,
23221,
2187,
4923,
3292,
2135,
67,
14538,
2656,
67,
19982,
67,
7015,
3546,
3631,
5689,
2218,
5693,
26112,
365,
2
] |
|
smoothing_group = 127 | smoothing_group = 1 | def vertex_reference(n, nv): if (n < 0): return n + nv return n - 1 | 506ffd826c047f4e70fbd1f0ecec7687474f34bd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2274/506ffd826c047f4e70fbd1f0ecec7687474f34bd/Obj2DatTex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5253,
67,
6180,
12,
82,
16,
8779,
4672,
309,
261,
82,
411,
374,
4672,
327,
290,
397,
8779,
327,
290,
300,
404,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5253,
67,
6180,
12,
82,
16,
8779,
4672,
309,
261,
82,
411,
374,
4672,
327,
290,
397,
8779,
327,
290,
300,
404,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"""CreateTable(table, columns) - Create a new table in the database | """CreateTable(table, columns) - Create a new table in the database. | def CreateTable(self, table, columns): """CreateTable(table, columns) - Create a new table in the database raises TableDBError if it already exists or for other DB errors. """ assert isinstance(columns, ListType) txn = None try: # checking sanity of the table and column names here on # table creation will prevent problems elsewhere. if contains_metastrings(table): raise ValueError( "bad table name: contains reserved metastrings") for column in columns : if contains_metastrings(column): raise ValueError( "bad column name: contains reserved metastrings") | 2f402c360391b04790d2fa168370966eb65ae848 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2f402c360391b04790d2fa168370966eb65ae848/dbtables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
1388,
12,
2890,
16,
1014,
16,
2168,
4672,
3536,
1684,
1388,
12,
2121,
16,
2168,
13,
300,
1788,
279,
394,
1014,
316,
326,
2063,
18,
225,
14183,
3555,
2290,
668,
309,
518,
1818,
1704,
578,
364,
1308,
2383,
1334,
18,
3536,
1815,
1549,
12,
5112,
16,
987,
559,
13,
7827,
273,
599,
775,
30,
468,
6728,
16267,
434,
326,
1014,
471,
1057,
1257,
2674,
603,
468,
1014,
6710,
903,
5309,
9688,
25795,
18,
309,
1914,
67,
10578,
345,
371,
87,
12,
2121,
4672,
1002,
2068,
12,
315,
8759,
1014,
508,
30,
1914,
8735,
21232,
371,
87,
7923,
364,
1057,
316,
2168,
294,
309,
1914,
67,
10578,
345,
371,
87,
12,
2827,
4672,
1002,
2068,
12,
315,
8759,
1057,
508,
30,
1914,
8735,
21232,
371,
87,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
1388,
12,
2890,
16,
1014,
16,
2168,
4672,
3536,
1684,
1388,
12,
2121,
16,
2168,
13,
300,
1788,
279,
394,
1014,
316,
326,
2063,
18,
225,
14183,
3555,
2290,
668,
309,
518,
1818,
1704,
578,
364,
1308,
2383,
1334,
18,
3536,
1815,
1549,
12,
5112,
16,
987,
559,
13,
7827,
273,
599,
775,
30,
468,
6728,
16267,
434,
326,
1014,
471,
1057,
1257,
2674,
603,
468,
1014,
6710,
903,
5309,
9688,
25795,
18,
309,
1914,
67,
10578,
345,
371,
87,
12,
2121,
4672,
1002,
2068,
12,
315,
8759,
1014,
508,
30,
1914,
8735,
21232,
371,
87,
7923,
364,
1057,
316,
2168,
294,
309,
1914,
67,
10578,
345,
371,
87,
12,
2827,
4672,
1002,
2068,
12,
315,
8759,
2
] |
html.header("Not Authorized") if type(req.user) == str: login_text = "logged in as <b>%s</b>" % req.user else: login_text = "not logged in" html.write("<h1 class=error>You are not authorized</h1>\n") html.write("<div class=error>Sorry. You are %s and not " "authorized to use check_mk's web pages. If you think this is an error, " "please ask your administrator to add your login into the list " " <tt>main.mk:multiadmin_users</tt>.</div>"% login_text) html.footer() | html.header("Not Authorized") if type(req.user) == str: login_text = "logged in as <b>%s</b>" % req.user else: login_text = "not logged in" html.write("<h1 class=error>You are not authorized</h1>\n") html.write("<div class=error>Sorry. You are %s and not " "authorized to use check_mk's web pages. If you think this is an error, " "please ask your administrator to add your login into the list " " <tt>main.mk:multiadmin_users</tt>.</div>"% login_text) html.footer() | def handler(req): req.content_type = "text/html" req.header_sent = False # req.uriinfo = html.uriinfo(req) # Die Datei main.py wird mit beliebigen Namen aufgerufen, die # alle auf .py enden, und die es garnicht geben muss! req.myfile = req.uri.split("/")[-1][:-3] # Verzweigen je nach Name der Seite, 'main' ist Default html = htmllib.html(req) try: read_get_vars(req) read_checkmk_defaults(req) if not check_mk.is_allowed_to_view(req.user): html.header("Not Authorized") if type(req.user) == str: login_text = "logged in as <b>%s</b>" % req.user else: login_text = "not logged in" html.write("<h1 class=error>You are not authorized</h1>\n") html.write("<div class=error>Sorry. You are %s and not " "authorized to use check_mk's web pages. If you think this is an error, " "please ask your administrator to add your login into the list " " <tt>main.mk:multiadmin_users</tt>.</div>"% login_text) html.footer() else: import page_multiadmin pagehandlers = { "index" : page_index, "filter" : page_multiadmin.page} handler = pagehandlers.get(req.myfile, page_index) handler(html) except MKUserError, e: html.header("Invalid User Input") html.write("<h1 class=error>Invalid User Input</h1>\n") html.write("<div class=error>%s</s>" % e) html.footer() except MKConfigError, e: html.header("Configuration Error") html.write("<h1 class=error>Configuration Error</h1>\n") html.write("<div class=error>%s</s>" % e) html.footer() apache.log_error("Configuration error: %s" % (e,), apache.APLOG_ERR) except Exception, e: html.header("Internal Error") html.write("<h1 class=error>Internal error</h1>") html.write("<div class=error>Internal error: %s</div>" % e) html.footer() apache.log_error("Internal error: %s" % (e,), apache.APLOG_ERR) return apache.OK | 1fac7489ba61f03e99c44c9ad924e9c7656a70c5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/1fac7489ba61f03e99c44c9ad924e9c7656a70c5/index.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1838,
12,
3658,
4672,
1111,
18,
1745,
67,
723,
273,
315,
955,
19,
2620,
6,
1111,
18,
3374,
67,
7569,
273,
1083,
225,
468,
1111,
18,
1650,
1376,
273,
1729,
18,
1650,
1376,
12,
3658,
13,
225,
468,
463,
1385,
2167,
77,
2774,
18,
2074,
341,
6909,
20310,
3952,
1385,
14002,
275,
423,
301,
275,
279,
696,
693,
696,
275,
16,
10387,
468,
524,
298,
279,
696,
263,
2074,
679,
275,
16,
22927,
10387,
5001,
314,
1303,
335,
647,
8244,
19425,
312,
5567,
5,
1111,
18,
4811,
768,
273,
1111,
18,
1650,
18,
4939,
2932,
4898,
13,
18919,
21,
6362,
30,
17,
23,
65,
282,
468,
6160,
94,
1814,
30577,
30356,
290,
497,
1770,
4854,
3265,
1137,
16,
296,
5254,
11,
19165,
2989,
282,
1729,
273,
1729,
2941,
18,
2620,
12,
3658,
13,
775,
30,
855,
67,
588,
67,
4699,
12,
3658,
13,
855,
67,
1893,
24816,
67,
7606,
12,
3658,
13,
309,
486,
866,
67,
24816,
18,
291,
67,
8151,
67,
869,
67,
1945,
12,
3658,
18,
1355,
4672,
1729,
18,
3374,
2932,
1248,
6712,
1235,
7923,
225,
309,
618,
12,
3658,
18,
1355,
13,
422,
609,
30,
3925,
67,
955,
273,
315,
19385,
316,
487,
411,
70,
9822,
87,
1757,
70,
2984,
738,
1111,
18,
1355,
469,
30,
3925,
67,
955,
273,
315,
902,
7545,
316,
6,
225,
1729,
18,
2626,
2932,
32,
76,
21,
667,
33,
1636,
34,
6225,
854,
486,
10799,
1757,
76,
21,
5333,
82,
7923,
1729,
18,
2626,
2932,
32,
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,
1838,
12,
3658,
4672,
1111,
18,
1745,
67,
723,
273,
315,
955,
19,
2620,
6,
1111,
18,
3374,
67,
7569,
273,
1083,
225,
468,
1111,
18,
1650,
1376,
273,
1729,
18,
1650,
1376,
12,
3658,
13,
225,
468,
463,
1385,
2167,
77,
2774,
18,
2074,
341,
6909,
20310,
3952,
1385,
14002,
275,
423,
301,
275,
279,
696,
693,
696,
275,
16,
10387,
468,
524,
298,
279,
696,
263,
2074,
679,
275,
16,
22927,
10387,
5001,
314,
1303,
335,
647,
8244,
19425,
312,
5567,
5,
1111,
18,
4811,
768,
273,
1111,
18,
1650,
18,
4939,
2932,
4898,
13,
18919,
21,
6362,
30,
17,
23,
65,
282,
468,
6160,
94,
1814,
30577,
30356,
290,
497,
1770,
4854,
3265,
1137,
16,
2
] |
if modargs: mf.import_hook(scriptfile) else: mf.load_file(scriptfile) | mf.load_file(scriptfile) | def main(): # overridable context prefix = None # settable with -p option exec_prefix = None # settable with -P option extensions = [] exclude = [] # settable with -x option addn_link = [] # settable with -l, but only honored under Windows. path = sys.path[:] modargs = 0 debug = 1 odir = '' win = sys.platform[:3] == 'win' # default the exclude list for each platform if win: exclude = exclude + [ 'dos', 'dospath', 'mac', 'macpath', 'macfs', 'MACFS', 'posix', 'os2'] # modules that are imported by the Python runtime implicits = ["site", "exceptions"] # output files frozen_c = 'frozen.c' config_c = 'config.c' target = 'a.out' # normally derived from script name makefile = 'Makefile' subsystem = 'console' # parse command line by first replacing any "-i" options with the file contents. pos = 1 while pos < len(sys.argv)-1: # last option can not be "-i", so this ensures "pos+1" is in range! if sys.argv[pos] == '-i': try: options = string.split(open(sys.argv[pos+1]).read()) except IOError, why: usage("File name '%s' specified with the -i option can not be read - %s" % (sys.argv[pos+1], why) ) # Replace the '-i' and the filename with the read params. sys.argv[pos:pos+2] = options pos = pos + len(options) - 1 # Skip the name and the included args. pos = pos + 1 # Now parse the command line with the extras inserted. try: opts, args = getopt.getopt(sys.argv[1:], 'a:de:hmo:p:P:qs:wx:l:') except getopt.error, msg: usage('getopt error: ' + str(msg)) # proces option arguments for o, a in opts: if o == '-h': print __doc__ return if o == '-d': debug = debug + 1 if o == '-e': extensions.append(a) if o == '-m': modargs = 1 if o == '-o': odir = a if o == '-p': prefix = a if o == '-P': exec_prefix = a if o == '-q': debug = 0 if o == '-w': win = not win if o == '-s': if not win: usage("-s subsystem option only on Windows") subsystem = a if o == '-x': exclude.append(a) if o == '-l': addn_link.append(a) if o == '-a': apply(modulefinder.AddPackagePath, tuple(string.split(a,"=", 2))) # default prefix and exec_prefix if not exec_prefix: if prefix: exec_prefix = prefix else: exec_prefix = sys.exec_prefix if not prefix: prefix = sys.prefix # determine whether -p points to the Python source tree ishome = os.path.exists(os.path.join(prefix, 'Python', 'ceval.c')) # locations derived from options version = sys.version[:3] if win: extensions_c = 'frozen_extensions.c' if ishome: print "(Using Python source directory)" binlib = exec_prefix incldir = os.path.join(prefix, 'Include') config_h_dir = exec_prefix config_c_in = os.path.join(prefix, 'Modules', 'config.c.in') frozenmain_c = os.path.join(prefix, 'Python', 'frozenmain.c') makefile_in = os.path.join(exec_prefix, 'Modules', 'Makefile') if win: frozendllmain_c = os.path.join(exec_prefix, 'Pc\\frozen_dllmain.c') else: binlib = os.path.join(exec_prefix, 'lib', 'python%s' % version, 'config') incldir = os.path.join(prefix, 'include', 'python%s' % version) config_h_dir = os.path.join(exec_prefix, 'include', 'python%s' % version) config_c_in = os.path.join(binlib, 'config.c.in') frozenmain_c = os.path.join(binlib, 'frozenmain.c') makefile_in = os.path.join(binlib, 'Makefile') frozendllmain_c = os.path.join(binlib, 'frozen_dllmain.c') supp_sources = [] defines = [] includes = ['-I' + incldir, '-I' + config_h_dir] # sanity check of directories and files check_dirs = [prefix, exec_prefix, binlib, incldir] if not win: check_dirs = check_dirs + extensions # These are not directories on Windows. for dir in check_dirs: if not os.path.exists(dir): usage('needed directory %s not found' % dir) if not os.path.isdir(dir): usage('%s: not a directory' % dir) if win: files = supp_sources + extensions # extensions are files on Windows. else: files = [config_c_in, makefile_in] + supp_sources for file in supp_sources: if not os.path.exists(file): usage('needed file %s not found' % file) if not os.path.isfile(file): usage('%s: not a plain file' % file) if not win: for dir in extensions: setup = os.path.join(dir, 'Setup') if not os.path.exists(setup): usage('needed file %s not found' % setup) if not os.path.isfile(setup): usage('%s: not a plain file' % setup) # check that enough arguments are passed if not args: usage('at least one filename argument required') # check that file arguments exist for arg in args: if arg == '-m': break # if user specified -m on the command line before _any_ # file names, then nothing should be checked (as the # very first file should be a module name) if modargs: break if not os.path.exists(arg): usage('argument %s not found' % arg) if not os.path.isfile(arg): usage('%s: not a plain file' % arg) # process non-option arguments scriptfile = args[0] modules = args[1:] # derive target name from script name base = os.path.basename(scriptfile) base, ext = os.path.splitext(base) if base: if base != scriptfile: target = base else: target = base + '.bin' # handle -o option base_frozen_c = frozen_c base_config_c = config_c base_target = target if odir and not os.path.isdir(odir): try: os.mkdir(odir) print "Created output directory", odir except os.error, msg: usage('%s: mkdir failed (%s)' % (odir, str(msg))) base = '' if odir: base = os.path.join(odir, '') frozen_c = os.path.join(odir, frozen_c) config_c = os.path.join(odir, config_c) target = os.path.join(odir, target) makefile = os.path.join(odir, makefile) if win: extensions_c = os.path.join(odir, extensions_c) # Handle special entry point requirements # (on Windows, some frozen programs do not use __main__, but # import the module directly. Eg, DLLs, Services, etc custom_entry_point = None # Currently only used on Windows python_entry_is_main = 1 # Is the entry point called __main__? # handle -s option on Windows if win: import winmakemakefile try: custom_entry_point, python_entry_is_main = \ winmakemakefile.get_custom_entry_point(subsystem) except ValueError, why: usage(why) # Actual work starts here... # collect all modules of the program dir = os.path.dirname(scriptfile) path[0] = dir mf = modulefinder.ModuleFinder(path, debug, exclude) if win and subsystem=='service': # If a Windows service, then add the "built-in" module. mod = mf.add_module("servicemanager") mod.__file__="dummy.pyd" # really built-in to the resulting EXE for mod in implicits: mf.import_hook(mod) for mod in modules: if mod == '-m': modargs = 1 continue if modargs: if mod[-2:] == '.*': mf.import_hook(mod[:-2], None, ["*"]) else: mf.import_hook(mod) else: mf.load_file(mod) # Add the main script as either __main__, or the actual module name. if python_entry_is_main: mf.run_script(scriptfile) else: if modargs: mf.import_hook(scriptfile) else: mf.load_file(scriptfile) if debug > 0: mf.report() print dict = mf.modules # generate output for frozen modules files = makefreeze.makefreeze(base, dict, debug, custom_entry_point) # look for unfrozen modules (builtin and of unknown origin) builtins = [] unknown = [] mods = dict.keys() mods.sort() for mod in mods: if dict[mod].__code__: continue if not dict[mod].__file__: builtins.append(mod) else: unknown.append(mod) # search for unknown modules in extensions directories (not on Windows) addfiles = [] frozen_extensions = [] # Windows list of modules. if unknown or (not win and builtins): if not win: addfiles, addmods = \ checkextensions.checkextensions(unknown+builtins, extensions) for mod in addmods: if mod in unknown: unknown.remove(mod) builtins.append(mod) else: # Do the windows thang... import checkextensions_win32 # Get a list of CExtension instances, each describing a module # (including its source files) frozen_extensions = checkextensions_win32.checkextensions( unknown, extensions) for mod in frozen_extensions: unknown.remove(mod.name) # report unknown modules if unknown: sys.stderr.write('Warning: unknown modules remain: %s\n' % string.join(unknown)) # windows gets different treatment if win: # Taking a shortcut here... import winmakemakefile, checkextensions_win32 checkextensions_win32.write_extension_table(extensions_c, frozen_extensions) # Create a module definition for the bootstrap C code. xtras = [frozenmain_c, os.path.basename(frozen_c), frozendllmain_c, os.path.basename(extensions_c)] + files maindefn = checkextensions_win32.CExtension( '__main__', xtras ) frozen_extensions.append( maindefn ) outfp = open(makefile, 'w') try: winmakemakefile.makemakefile(outfp, locals(), frozen_extensions, os.path.basename(target)) finally: outfp.close() return # generate config.c and Makefile builtins.sort() infp = open(config_c_in) outfp = bkfile.open(config_c, 'w') try: makeconfig.makeconfig(infp, outfp, builtins) finally: outfp.close() infp.close() cflags = defines + includes + ['$(OPT)'] libs = [os.path.join(binlib, 'libpython$(VERSION).a')] somevars = {} if os.path.exists(makefile_in): makevars = parsesetup.getmakevars(makefile_in) for key in makevars.keys(): somevars[key] = makevars[key] somevars['CFLAGS'] = string.join(cflags) # override files = ['$(OPT)', '$(LDFLAGS)', base_config_c, base_frozen_c] + \ files + supp_sources + addfiles + libs + \ ['$(MODLIBS)', '$(LIBS)', '$(SYSLIBS)'] outfp = bkfile.open(makefile, 'w') try: makemakefile.makemakefile(outfp, somevars, files, base_target) finally: outfp.close() # Done! if odir: print 'Now run "make" in', odir, print 'to build the target:', base_target else: print 'Now run "make" to build the target:', base_target | 4cf8f18bfe4d1d159b02bfb990b4923ba04e7df2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/4cf8f18bfe4d1d159b02bfb990b4923ba04e7df2/freeze.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
5713,
27621,
819,
1633,
273,
599,
15604,
468,
444,
2121,
598,
300,
84,
1456,
1196,
67,
3239,
273,
599,
5375,
468,
444,
2121,
598,
300,
52,
1456,
4418,
273,
5378,
4433,
273,
5378,
13491,
468,
444,
2121,
598,
300,
92,
1456,
527,
82,
67,
1232,
273,
5378,
1377,
468,
444,
2121,
598,
300,
80,
16,
1496,
1338,
24338,
7653,
3613,
8202,
18,
589,
273,
2589,
18,
803,
10531,
65,
681,
1968,
273,
374,
1198,
273,
404,
320,
1214,
273,
875,
5657,
273,
2589,
18,
9898,
10531,
23,
65,
422,
296,
8082,
11,
225,
468,
805,
326,
4433,
666,
364,
1517,
4072,
309,
5657,
30,
4433,
273,
4433,
397,
306,
296,
19219,
2187,
296,
19219,
803,
2187,
296,
5821,
2187,
296,
5821,
803,
2187,
296,
5821,
2556,
2187,
296,
10875,
4931,
2187,
296,
24463,
2187,
296,
538,
22,
3546,
225,
468,
4381,
716,
854,
9101,
635,
326,
6600,
3099,
709,
1780,
1282,
273,
8247,
4256,
3113,
315,
11855,
11929,
225,
468,
876,
1390,
12810,
67,
71,
273,
296,
28138,
18,
71,
11,
642,
67,
71,
273,
296,
1425,
18,
71,
11,
1018,
273,
296,
69,
18,
659,
11,
10792,
468,
15849,
10379,
628,
2728,
508,
1221,
768,
273,
296,
6464,
768,
11,
15359,
273,
296,
8698,
11,
225,
468,
1109,
1296,
980,
635,
1122,
13993,
1281,
3701,
77,
6,
702,
598,
326,
585,
2939,
18,
949,
273,
404,
1323,
949,
411,
562,
12,
9499,
18,
19485,
24950,
21,
30,
468,
1142,
1456,
848,
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,
2774,
13332,
468,
5713,
27621,
819,
1633,
273,
599,
15604,
468,
444,
2121,
598,
300,
84,
1456,
1196,
67,
3239,
273,
599,
5375,
468,
444,
2121,
598,
300,
52,
1456,
4418,
273,
5378,
4433,
273,
5378,
13491,
468,
444,
2121,
598,
300,
92,
1456,
527,
82,
67,
1232,
273,
5378,
1377,
468,
444,
2121,
598,
300,
80,
16,
1496,
1338,
24338,
7653,
3613,
8202,
18,
589,
273,
2589,
18,
803,
10531,
65,
681,
1968,
273,
374,
1198,
273,
404,
320,
1214,
273,
875,
5657,
273,
2589,
18,
9898,
10531,
23,
65,
422,
296,
8082,
11,
225,
468,
805,
326,
4433,
666,
364,
1517,
4072,
309,
5657,
30,
4433,
273,
4433,
397,
306,
296,
19219,
2187,
296,
19219,
803,
2
] |
title = COLLAPSE_RE(' ', title.strip()) | title = COLLAPSE_RE.sub(' ', title.strip()) | def _toc_from_spine(self, opf): self.toc = toc = TOC() titles = [] headers = [] for item in self.spine: if not item.linear: continue html = item.data title = ''.join(xpath(html, '/h:html/h:head/h:title/text()')) title = COLLAPSE_RE(' ', title.strip()) if title: titles.append(title) headers.append('(unlabled)') for tag in ('h1', 'h2', 'h3', 'h4', 'h5', 'strong'): expr = '/h:html/h:body//h:%s[position()=1]/text()' header = ''.join(xpath(html % tag, expr)) header = COLLAPSE_RE.sub(' ', header.strip()) if header: headers[-1] = header break use = titles if len(titles) > len(set(titles)): use = headers for title, item in izip(use, self.spine): if not item.linear: continue toc.add(title, item.href) return True | f524968ce263965500648526102b3c5a43d0038e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/f524968ce263965500648526102b3c5a43d0038e/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1391,
67,
2080,
67,
1752,
558,
12,
2890,
16,
1061,
74,
4672,
365,
18,
1391,
273,
17919,
273,
8493,
39,
1435,
14693,
273,
5378,
1607,
273,
5378,
364,
761,
316,
365,
18,
1752,
558,
30,
309,
486,
761,
18,
12379,
30,
1324,
1729,
273,
761,
18,
892,
2077,
273,
875,
18,
5701,
12,
18644,
12,
2620,
16,
1173,
76,
30,
2620,
19,
76,
30,
1978,
19,
76,
30,
2649,
19,
955,
11866,
3719,
2077,
273,
5597,
48,
2203,
1090,
67,
862,
18,
1717,
2668,
2265,
2077,
18,
6406,
10756,
309,
2077,
30,
14693,
18,
6923,
12,
2649,
13,
1607,
18,
6923,
2668,
12,
318,
80,
1116,
2506,
13,
364,
1047,
316,
7707,
76,
21,
2187,
296,
76,
22,
2187,
296,
76,
23,
2187,
296,
76,
24,
2187,
296,
76,
25,
2187,
296,
9110,
11,
4672,
3065,
273,
1173,
76,
30,
2620,
19,
76,
30,
3432,
759,
76,
5319,
87,
63,
3276,
1435,
33,
21,
18537,
955,
11866,
1446,
273,
875,
18,
5701,
12,
18644,
12,
2620,
738,
1047,
16,
3065,
3719,
1446,
273,
5597,
48,
2203,
1090,
67,
862,
18,
1717,
2668,
2265,
1446,
18,
6406,
10756,
309,
1446,
30,
1607,
18919,
21,
65,
273,
1446,
898,
999,
273,
14693,
309,
562,
12,
17643,
13,
405,
562,
12,
542,
12,
17643,
3719,
30,
999,
273,
1607,
364,
2077,
16,
761,
316,
277,
4450,
12,
1202,
16,
365,
18,
1752,
558,
4672,
309,
486,
761,
18,
12379,
30,
1324,
17919,
18,
1289,
12,
2649,
16,
761,
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,
1391,
67,
2080,
67,
1752,
558,
12,
2890,
16,
1061,
74,
4672,
365,
18,
1391,
273,
17919,
273,
8493,
39,
1435,
14693,
273,
5378,
1607,
273,
5378,
364,
761,
316,
365,
18,
1752,
558,
30,
309,
486,
761,
18,
12379,
30,
1324,
1729,
273,
761,
18,
892,
2077,
273,
875,
18,
5701,
12,
18644,
12,
2620,
16,
1173,
76,
30,
2620,
19,
76,
30,
1978,
19,
76,
30,
2649,
19,
955,
11866,
3719,
2077,
273,
5597,
48,
2203,
1090,
67,
862,
18,
1717,
2668,
2265,
2077,
18,
6406,
10756,
309,
2077,
30,
14693,
18,
6923,
12,
2649,
13,
1607,
18,
6923,
2668,
12,
318,
80,
1116,
2506,
13,
364,
1047,
316,
7707,
76,
21,
2187,
296,
76,
2
] |
log.error('Could not resolve SIP SRV record for domain "%s"' % addr) | log.warn('Could not resolve SIP SRV record for domain "%s", attempting A record lookup' % addr) return reactor.resolve(addr).addCallback(lambda host: (host, port)).addErrback(self._eb_no_dns, addr) def _eb_no_dns(self, failure, addr): failure.trap(DNSNameError, DNSQueryRefusedError) log.error('Could not resolve A record for hostname "%s"' % addr) | def _eb_no_srv(self, failure, addr): failure.trap(DNSNameError, DNSQueryRefusedError) log.error('Could not resolve SIP SRV record for domain "%s"' % addr) | 8c4798c3b3b84175963bbb646491c36c68173acf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3445/8c4798c3b3b84175963bbb646491c36c68173acf/relay.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
24008,
67,
2135,
67,
20818,
12,
2890,
16,
5166,
16,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
24008,
67,
2135,
67,
20818,
12,
2890,
16,
5166,
16,
3091,
4672,
5166,
18,
27170,
12,
11602,
461,
668,
16,
8858,
1138,
1957,
3668,
668,
13,
613,
18,
1636,
2668,
4445,
486,
2245,
348,
2579,
19145,
58,
1409,
364,
2461,
2213,
87,
5187,
738,
3091,
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
] |
def cb_out_rewind(self, args): | def cb_out_rewind(self, *args): | def cb_out_rewind(self, args): if not self.ocheck(): return self.vout.rewind() self.oshow() | 89a8f9532953b87e4128e8ce87609893e92d59eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/89a8f9532953b87e4128e8ce87609893e92d59eb/Vedit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2875,
67,
659,
67,
266,
10094,
12,
2890,
16,
380,
1968,
4672,
309,
486,
365,
18,
83,
1893,
13332,
327,
365,
18,
90,
659,
18,
266,
10094,
1435,
365,
18,
538,
13606,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2875,
67,
659,
67,
266,
10094,
12,
2890,
16,
380,
1968,
4672,
309,
486,
365,
18,
83,
1893,
13332,
327,
365,
18,
90,
659,
18,
266,
10094,
1435,
365,
18,
538,
13606,
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
] |
try: 1/0 except: 1/0 | try: 1./0 except: 1./0 | def f(p): try: 1/0 except: 1/0 | bb86314d227aa1b695b7c968a2cdf42146cacf29 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/bb86314d227aa1b695b7c968a2cdf42146cacf29/test_profilehooks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
84,
4672,
775,
30,
404,
19,
20,
1335,
30,
404,
19,
20,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
84,
4672,
775,
30,
404,
19,
20,
1335,
30,
404,
19,
20,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def testObsoleteMultiarchTobsoletes_noarchForDependency(self): | def testObsoleteMultiarchTonoarchForDependency(self): | def testObsoleteMultiarchTobsoletes_noarchForDependency(self): p = self.pkgs res, msg = self.runOperation(['install', 'superzippy'], [p.installed_i386, p.installed_x86_64], [p.obsoletes_noarch, p.requires_obsoletes]) self.assert_(res==2, msg) if testbase.new_behavior: self.assertResult((p.obsoletes_noarch, p.requires_obsoletes)) else: self.assertResult((p.installed_i386, p.installed_x86_64, p.obsoletes_noarch, p.requires_obsoletes)) | 5a3b0127690262e2a8d55bf150d354fae0cc927f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5445/5a3b0127690262e2a8d55bf150d354fae0cc927f/operationstests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
27637,
19513,
5002,
991,
56,
265,
83,
991,
1290,
7787,
12,
2890,
4672,
293,
273,
365,
18,
25376,
400,
16,
1234,
273,
365,
18,
2681,
2988,
12,
3292,
5425,
2187,
296,
9565,
4450,
2074,
17337,
306,
84,
18,
13435,
67,
77,
23,
5292,
16,
293,
18,
13435,
67,
92,
5292,
67,
1105,
6487,
306,
84,
18,
10992,
355,
278,
281,
67,
2135,
991,
16,
293,
18,
18942,
67,
10992,
355,
278,
281,
5717,
365,
18,
11231,
67,
12,
455,
631,
22,
16,
1234,
13,
309,
1842,
1969,
18,
2704,
67,
31936,
30,
365,
18,
11231,
1253,
12443,
84,
18,
10992,
355,
278,
281,
67,
2135,
991,
16,
293,
18,
18942,
67,
10992,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
27637,
19513,
5002,
991,
56,
265,
83,
991,
1290,
7787,
12,
2890,
4672,
293,
273,
365,
18,
25376,
400,
16,
1234,
273,
365,
18,
2681,
2988,
12,
3292,
5425,
2187,
296,
9565,
4450,
2074,
17337,
306,
84,
18,
13435,
67,
77,
23,
5292,
16,
293,
18,
13435,
67,
92,
5292,
67,
1105,
6487,
306,
84,
18,
10992,
355,
278,
281,
67,
2135,
991,
16,
293,
18,
18942,
67,
10992,
355,
278,
281,
5717,
365,
18,
11231,
67,
12,
455,
631,
22,
16,
1234,
13,
309,
1842,
1969,
18,
2704,
67,
31936,
30,
365,
18,
11231,
1253,
12443,
84,
18,
10992,
355,
278,
281,
67,
2135,
991,
16,
293,
18,
18942,
67,
10992,
355,
278,
281,
3719,
469,
2
] |
np = lambda *f: norm(self.tempdir, *f) | def test_glob_nested_directory(self): eq = self.assertSequencesEqual_noorder np = lambda *f: norm(self.tempdir, *f) if os.path.normcase("abCD") == "abCD": # case-sensitive filesystem eq(self.glob('a', 'bcd', 'E*'), [self.norm('a', 'bcd', 'EF')]) else: # case insensitive filesystem eq(self.glob('a', 'bcd', 'E*'), [self.norm('a', 'bcd', 'EF'), self.norm('a', 'bcd', 'efg')]) eq(self.glob('a', 'bcd', '*g'), [self.norm('a', 'bcd', 'efg')]) | 204f33fc4e37986f56b2fd5b0c486f6912c711ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/204f33fc4e37986f56b2fd5b0c486f6912c711ac/test_glob.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
10581,
67,
12985,
67,
5149,
12,
2890,
4672,
7555,
273,
365,
18,
11231,
21710,
5812,
67,
2135,
1019,
309,
1140,
18,
803,
18,
7959,
3593,
2932,
378,
10160,
7923,
422,
315,
378,
10160,
6877,
468,
648,
17,
23481,
6496,
7555,
12,
2890,
18,
10581,
2668,
69,
2187,
296,
70,
4315,
2187,
296,
41,
4035,
3631,
306,
2890,
18,
7959,
2668,
69,
2187,
296,
70,
4315,
2187,
296,
26897,
6134,
5717,
469,
30,
468,
648,
17904,
6496,
7555,
12,
2890,
18,
10581,
2668,
69,
2187,
296,
70,
4315,
2187,
296,
41,
4035,
3631,
306,
2890,
18,
7959,
2668,
69,
2187,
296,
70,
4315,
2187,
296,
26897,
19899,
365,
18,
7959,
2668,
69,
2187,
296,
70,
4315,
2187,
296,
73,
2137,
6134,
5717,
7555,
12,
2890,
18,
10581,
2668,
69,
2187,
296,
70,
4315,
2187,
14609,
75,
19899,
306,
2890,
18,
7959,
2668,
69,
2187,
296,
70,
4315,
2187,
296,
73,
2137,
6134,
5717,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10581,
67,
12985,
67,
5149,
12,
2890,
4672,
7555,
273,
365,
18,
11231,
21710,
5812,
67,
2135,
1019,
309,
1140,
18,
803,
18,
7959,
3593,
2932,
378,
10160,
7923,
422,
315,
378,
10160,
6877,
468,
648,
17,
23481,
6496,
7555,
12,
2890,
18,
10581,
2668,
69,
2187,
296,
70,
4315,
2187,
296,
41,
4035,
3631,
306,
2890,
18,
7959,
2668,
69,
2187,
296,
70,
4315,
2187,
296,
26897,
6134,
5717,
469,
30,
468,
648,
17904,
6496,
7555,
12,
2890,
18,
10581,
2668,
69,
2187,
296,
70,
4315,
2187,
296,
41,
4035,
3631,
306,
2890,
18,
7959,
2668,
69,
2187,
296,
70,
4315,
2187,
296,
26897,
19899,
365,
18,
7959,
2668,
69,
2187,
296,
70,
4315,
2187,
2
] |
|
print "* rev som:",reverse_array_cp(som1) print "* rev so :",reverse_array_cp(som1[0]) | print "* rev som:", reverse_array_cp(som1) print "* rev so :", reverse_array_cp(som1[0]) | def reverse_array_cp(obj): """ This function reverses the y and var_y tuples of all the SOs in a SOM or an individual SO. This is assuming that there was a previous transformation on the x-axis of the SO or SOM. Parameters: ---------- -> obj is the SOM or SO that needs to have its y and var_y tuples reversed Return: ------ <- A SOM or SO containing the results of the reversal process Exceptions: ---------- <- TypeError is raised if a tuple or list of tuples is presented to the function """ # import the helper functions import hlr_utils # set up for working through data (result,res_descr)=hlr_utils.empty_result(obj) (o_descr,d_descr)=hlr_utils.get_descr(obj) if o_descr == "number" or o_descr == "list": raise TypeError, "Do not know how to handle given type: %s" %\ o_descr else: pass result=hlr_utils.copy_som_attr(result,res_descr,obj,o_descr) # iterate through the values import axis_manip for i in range(hlr_utils.get_length(obj)): val = hlr_utils.get_value(obj,i,o_descr) err2 = hlr_utils.get_err2(obj,i,o_descr) value1 = axis_manip.reverse_array_cp(val) value2 = axis_manip.reverse_array_cp(err2) map_so = hlr_utils.get_map_so(obj,None,i) hlr_utils.result_insert(result,res_descr,(value1,value2),map_so) return result | a278ff8066df4288bf6ed4cee908d5ef308251ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/a278ff8066df4288bf6ed4cee908d5ef308251ff/hlr_reverse_array_cp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4219,
67,
1126,
67,
4057,
12,
2603,
4672,
3536,
1220,
445,
19795,
281,
326,
677,
471,
569,
67,
93,
10384,
434,
777,
326,
7460,
87,
316,
279,
348,
1872,
578,
392,
7327,
7460,
18,
1220,
353,
15144,
716,
1915,
1703,
279,
2416,
8620,
603,
326,
619,
17,
4890,
434,
326,
7460,
578,
348,
1872,
18,
225,
7012,
30,
12181,
317,
1081,
353,
326,
348,
1872,
578,
7460,
716,
4260,
358,
1240,
2097,
677,
471,
569,
67,
93,
10384,
9553,
225,
2000,
30,
31913,
3290,
432,
348,
1872,
578,
7460,
4191,
326,
1686,
434,
326,
19795,
287,
1207,
225,
12781,
30,
12181,
3290,
3580,
353,
11531,
309,
279,
3193,
578,
666,
434,
10384,
353,
31280,
358,
326,
445,
3536,
225,
468,
1930,
326,
4222,
4186,
1930,
366,
10826,
67,
5471,
225,
468,
444,
731,
364,
5960,
3059,
501,
261,
2088,
16,
455,
67,
28313,
13,
33,
76,
10826,
67,
5471,
18,
5531,
67,
2088,
12,
2603,
13,
261,
83,
67,
28313,
16,
72,
67,
28313,
13,
33,
76,
10826,
67,
5471,
18,
588,
67,
28313,
12,
2603,
13,
225,
309,
320,
67,
28313,
422,
315,
2696,
6,
578,
320,
67,
28313,
422,
315,
1098,
6877,
1002,
3580,
16,
315,
3244,
486,
5055,
3661,
358,
1640,
864,
618,
30,
738,
87,
6,
738,
64,
320,
67,
28313,
469,
30,
1342,
225,
563,
33,
76,
10826,
67,
5471,
18,
3530,
67,
87,
362,
67,
1747,
12,
2088,
16,
455,
67,
28313,
16,
2603,
16,
83,
67,
28313,
13,
225,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4219,
67,
1126,
67,
4057,
12,
2603,
4672,
3536,
1220,
445,
19795,
281,
326,
677,
471,
569,
67,
93,
10384,
434,
777,
326,
7460,
87,
316,
279,
348,
1872,
578,
392,
7327,
7460,
18,
1220,
353,
15144,
716,
1915,
1703,
279,
2416,
8620,
603,
326,
619,
17,
4890,
434,
326,
7460,
578,
348,
1872,
18,
225,
7012,
30,
12181,
317,
1081,
353,
326,
348,
1872,
578,
7460,
716,
4260,
358,
1240,
2097,
677,
471,
569,
67,
93,
10384,
9553,
225,
2000,
30,
31913,
3290,
432,
348,
1872,
578,
7460,
4191,
326,
1686,
434,
326,
19795,
287,
1207,
225,
12781,
30,
12181,
3290,
3580,
353,
11531,
309,
279,
3193,
578,
666,
434,
10384,
353,
31280,
358,
326,
445,
3536,
2
] |
label='Scan &Incoming Email Messages', | label='&Scan &Incoming Email Messages', | def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_WXPREFERENCESDLG, name='', parent=prnt, pos=wxPoint(523, 301), size=wxSize(419, 351), style=wxDEFAULT_DIALOG_STYLE, title='ClamWin Preferences') self._init_utils() self.SetClientSize(wxSize(411, 324)) self.SetAutoLayout(False) self.Center(wxBOTH) EVT_CHAR_HOOK(self, self.OnCharHook) | ced0911957faf8b1fa6a8ca1040dbad5f3b217f2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3644/ced0911957faf8b1fa6a8ca1040dbad5f3b217f2/wxDialogPreferences.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
16277,
87,
12,
2890,
16,
846,
496,
4672,
468,
4374,
707,
16,
2727,
1404,
3874,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
612,
33,
27226,
734,
67,
59,
60,
3670,
10830,
55,
8914,
43,
16,
508,
2218,
2187,
982,
33,
683,
496,
16,
949,
33,
27226,
2148,
12,
25,
4366,
16,
26403,
3631,
963,
33,
27226,
1225,
12,
24,
3657,
16,
890,
10593,
3631,
2154,
33,
27226,
5280,
67,
2565,
18683,
67,
15066,
16,
2077,
2218,
2009,
301,
18049,
28310,
6134,
365,
6315,
2738,
67,
5471,
1435,
365,
18,
694,
1227,
1225,
12,
27226,
1225,
12,
24,
2499,
16,
890,
3247,
3719,
365,
18,
694,
4965,
3744,
12,
8381,
13,
365,
18,
8449,
12,
91,
20029,
18307,
13,
27917,
67,
7305,
67,
7995,
3141,
12,
2890,
16,
365,
18,
1398,
2156,
5394,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
16277,
87,
12,
2890,
16,
846,
496,
4672,
468,
4374,
707,
16,
2727,
1404,
3874,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
612,
33,
27226,
734,
67,
59,
60,
3670,
10830,
55,
8914,
43,
16,
508,
2218,
2187,
982,
33,
683,
496,
16,
949,
33,
27226,
2148,
12,
25,
4366,
16,
26403,
3631,
963,
33,
27226,
1225,
12,
24,
3657,
16,
890,
10593,
3631,
2154,
33,
27226,
5280,
67,
2565,
18683,
67,
15066,
16,
2077,
2218,
2009,
301,
18049,
28310,
6134,
365,
6315,
2738,
67,
5471,
1435,
365,
18,
694,
1227,
1225,
12,
27226,
1225,
12,
24,
2499,
16,
890,
3247,
3719,
365,
18,
694,
4965,
3744,
12,
8381,
13,
365,
18,
8449,
12,
2
] |
self.pp.end() | self.pp.end(suffix=self.suffix) | def __exit__(self, type, value, traceback): self.pp.end() if type is StopIteration: return True | 08966e33a63aeb5e305c57b77efd0697dc6d511d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2063/08966e33a63aeb5e305c57b77efd0697dc6d511d/prettyprinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
8593,
972,
12,
2890,
16,
618,
16,
460,
16,
10820,
4672,
365,
18,
11858,
18,
409,
12,
8477,
33,
2890,
18,
8477,
13,
309,
618,
353,
16179,
30,
327,
1053,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
8593,
972,
12,
2890,
16,
618,
16,
460,
16,
10820,
4672,
365,
18,
11858,
18,
409,
12,
8477,
33,
2890,
18,
8477,
13,
309,
618,
353,
16179,
30,
327,
1053,
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
] |
VmsMake.write("link /executable=cm3.exe ") for a in Objects: VmsMake.write(a + " ") VmsMake.write("\n") | VmsMake.write("$ set file/attr=(rfm=var,rat=none) *.mo\n") VmsMake.write("$ set file/attr=(rfm=var,rat=none) *.io\n") VmsMake.write("$ link /executable=cm3.exe vmslink/options\n") | def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") if Config == "ALPHA32_VMS": Compile = "cc " elif Config == "ALPHA64_VMS": Compile = "cc /pointer_size=64 " elif StringTagged(Config, "SOLARIS") or Config == "SOLsun": Compile = "/usr/ccs/bin/cc -g -mt -xcode=pic32 -xldscope=symbolic " else: Compile = { "I386_INTERIX" : "gcc -g ", # gcc -fPIC generates incorrect code on Interix "SOLgnu" : "/usr/sfw/bin/gcc -g ", # -fPIC? }.get(Config) or "gcc -g -fPIC " Compile = Compile + ({ "AMD64_LINUX" : " -m64 -mno-align-double ", "AMD64_DARWIN" : " -arch x86_64 ", "PPC64_DARWIN" : " -arch ppc64 ", "ARM_DARWIN" : " -march=armv6 -mcpu=arm1176jzf-s ", "LINUXLIBC6" : " -m32 -mno-align-double ", "MIPS64_OPENBSD" : " -mabi=64 ", "SOLgnu" : " -m32 -mcpu=v9 ", "SOLsun" : " -xarch=v8plus ", "SPARC32_LINUX" : " -m32 -mcpu=v9 -munaligned-doubles ", "SPARC64_LINUX" : " -m64 -munaligned-doubles ", }.get(Config) or " ") Link = Compile + " *.mo *.io *.o " if StringTagged(Target, "DARWIN"): pass elif StringTagged(Target, "SOLARIS") or Target.startswith("SOL"): Link = Link + " -lrt -lm -lnsl -lsocket -lpthread " elif StringTagged(Target, "HPUX"): Link = Link + " -lrt -lm " elif StringTagged(Target, "INTERIX"): Link = Link + " -lm " else: Link = Link + " -lm -lpthread " # not in Link if not StringTagged(Config, "VMS"): Compile += " -c " AssembleOnHost = False CopyAssemblyToTarget = True if StringTagged(Target, "VMS"): Assemble = "macro /alpha " elif StringTagged(Target, "SOLARIS") or Target.startswith("SOL"): Assemble = "/usr/ccs/bin/as " else: Assemble = "as " if Target != "PPC32_OPENBSD" and Target != "PPC_LINUX": if Target.find("LINUX") != -1 or Target.find("BSD") != -1: if Target.find("64") != -1 or (StringTagged(Target, "ALPHA") and not StringTagged(Target, "ALPHA32_")): Assemble = Assemble + " --64" else: Assemble = Assemble + " --32" Assemble = (Assemble + ({ "AMD64_DARWIN" : " -arch x86_64 ", "PPC64_DARWIN" : " -arch ppc64 ", "ARM_DARWIN" : " -arch armv6 ", "SOLgnu" : " -s -xarch=v8plus ", "SOLsun" : " -s -xarch=v8plus ", "SPARC32_SOLARIS" : " -s -xarch=v8plus ", "SPARC64_SOLARIS" : " -s -xarch=v9 ", }.get(Target) or "")) GnuPlatformPrefix = { "ARM_DARWIN" : "arm-apple-darwin8-", "ALPHA32_VMS" : "alpha-dec-vms-", "ALPHA64_VMS" : "alpha64-dec-vms-", }.get(Target) or "" if not vms: Compile = GnuPlatformPrefix + Compile Link = GnuPlatformPrefix + Link Assemble = GnuPlatformPrefix + Assemble if vms and AssembleOnHost: Assemble = GnuPlatformPrefix + Assemble # # squeeze runs of spaces and spaces at end # Compile = re.sub(" +", " ", Compile) Compile = re.sub(" +$", "", Compile) Link = re.sub(" +", " ", Link) Link = re.sub(" +$", "", Link) Assemble = re.sub(" +", " ", Assemble) Assemble = re.sub(" +$", "", Assemble) BootDir = "./cm3-boot-" + Target + "-" + Version P = [ "m3cc", "import-libs", "m3core", "libm3", "sysutils", "m3middle", "m3quake", "m3objfile", "m3linker", "m3back", "m3front", "cm3" ] #DoPackage(["", "realclean"] + P) or sys.exit(1) DoPackage(["", "buildlocal"] + P) or sys.exit(1) try: shutil.rmtree(BootDir) except: pass try: os.mkdir(BootDir) except: pass # # This would probably be a good use of XSL (xml style sheets) # Make = open(os.path.join(BootDir, "make.sh"), "wb") VmsMake = open(os.path.join(BootDir, "vmsmake.com"), "wb") Makefile = open(os.path.join(BootDir, "Makefile"), "wb") UpdateSource = open(os.path.join(BootDir, "updatesource.sh"), "wb") Objects = [ ] Makefile.write(".SUFFIXES:\nall: cm3\n\n") for a in [UpdateSource, Make]: a.write("#!/bin/sh\n\nset -e\nset -x\n\n") for a in [Makefile]: a.write("# edit up here\n\n") a.write("Assemble=" + Assemble + "\nCompile=" + Compile + "\nLink=" + Link + "\n") a.write("\n\n# no more editing should be needed\n\n") for a in [Make]: a.write("Assemble=\"" + Assemble + "\"\nCompile=\"" + Compile + "\"\nLink=\"" + Link + "\"\n") for q in P: dir = GetPackagePath(q) for a in os.listdir(os.path.join(Root, dir, Config)): ext_c = a.endswith(".c") ext_h = a.endswith(".h") ext_s = a.endswith(".s") ext_ms = a.endswith(".ms") ext_is = a.endswith(".mi") if not (ext_c or ext_h or ext_s or ext_ms or ext_is): continue fullpath = os.path.join(Root, dir, Config, a) if ext_h or ext_c or not vms or CopyAssemblyToTarget: CopyFile(fullpath, BootDir) if ext_h: continue Object = GetObjectName(a) Objects += [Object] if vms: if ext_c: VmsMake.write(Compile + " " + a + "\n") else: if AssembleOnHost: # must have cross assembler a = Assemble + " " + fullpath + " -o " + BootDir + "/" + Object print(a) os.system(a) else: VmsMake.write(Assemble + " " + a + "\n") continue Makefile.write("Objects=$(Objects) " + Object + "\n" + Object + ": " + a + "\n\t") if ext_c: Command = "Compile" else: Command = "Assemble" for b in [Make, Makefile]: b.write("$(" + Command + ") " + a + " -o " + Object + "\n") Makefile.write("cm3: $(Objects)\n\t") VmsMake.write("link /executable=cm3.exe ") for a in Objects: VmsMake.write(a + " ") VmsMake.write("\n") for a in [Make, Makefile]: a.write("$(Link) -o cm3\n") for a in [ # # Add to this list as needed. # Adding more than necessary is ok -- assume the target system has no changes, # so we can replace whatever is there. # "m3-libs/libm3/src/os/POSIX/OSConfigPosix.m3", "m3-libs/libm3/src/random/m3makefile", "m3-libs/m3core/src/m3makefile", "m3-libs/m3core/src/Uwaitpid.quake", "m3-libs/m3core/src/thread.quake", "m3-libs/m3core/src/C/m3makefile", "m3-libs/m3core/src/C/" + Target + "/m3makefile", "m3-libs/m3core/src/C/Common/m3makefile", "m3-libs/m3core/src/Csupport/m3makefile", "m3-libs/m3core/src/float/m3makefile", "m3-libs/m3core/src/runtime/m3makefile", "m3-libs/m3core/src/runtime/common/m3makefile", "m3-libs/m3core/src/runtime/common/Compiler.tmpl", "m3-libs/m3core/src/runtime/common/m3text.h", "m3-libs/m3core/src/runtime/common/RTError.h", "m3-libs/m3core/src/runtime/common/RTMachine.i3", "m3-libs/m3core/src/runtime/common/RTProcess.h", "m3-libs/m3core/src/runtime/common/RTSignalC.c", "m3-libs/m3core/src/runtime/common/RTSignalC.h", "m3-libs/m3core/src/runtime/common/RTSignalC.i3", "m3-libs/m3core/src/runtime/common/RTSignal.i3", "m3-libs/m3core/src/runtime/common/RTSignal.m3", "m3-libs/m3core/src/runtime/" + Target + "/m3makefile", "m3-libs/m3core/src/runtime/" + Target + "/RTMachine.m3", "m3-libs/m3core/src/runtime/" + Target + "/RTSignal.m3", "m3-libs/m3core/src/runtime/" + Target + "/RTThread.m3", "m3-libs/m3core/src/text/TextLiteral.i3", "m3-libs/m3core/src/thread/m3makefile", "m3-libs/m3core/src/thread/PTHREAD/m3makefile", "m3-libs/m3core/src/thread/PTHREAD/ThreadPThread.m3", "m3-libs/m3core/src/thread/PTHREAD/ThreadPThreadC.i3", "m3-libs/m3core/src/thread/PTHREAD/ThreadPThreadC.c", "m3-libs/m3core/src/time/POSIX/m3makefile", "m3-libs/m3core/src/unix/m3makefile", "m3-libs/m3core/src/unix/Common/m3makefile", "m3-libs/m3core/src/unix/Common/m3unix.h", "m3-libs/m3core/src/unix/Common/Udir.i3", "m3-libs/m3core/src/unix/Common/UdirC.c", "m3-libs/m3core/src/unix/Common/Usignal.i3", "m3-libs/m3core/src/unix/Common/Ustat.i3", "m3-libs/m3core/src/unix/Common/UstatC.c", "m3-libs/m3core/src/unix/Common/UtimeC.c", "m3-libs/m3core/src/unix/Common/Uucontext.i3", "m3-sys/cminstall/src/config-no-install/SOLgnu", "m3-sys/cminstall/src/config-no-install/SOLsun", "m3-sys/cminstall/src/config-no-install/Solaris.common", "m3-sys/cminstall/src/config-no-install/Unix.common", "m3-sys/cminstall/src/config-no-install/cm3cfg.common", "m3-sys/cminstall/src/config-no-install/" + Target, "m3-sys/m3cc/src/m3makefile", "m3-sys/m3cc/src/gcc/m3cg/parse.c", "m3-sys/m3middle/src/Target.i3", "m3-sys/m3middle/src/Target.m3", "scripts/python/pylib.py", "m3-libs/m3core/src/C/" + Target + "/Csetjmp.i3", "m3-libs/m3core/src/C/" + Target + "/m3makefile", "m3-libs/m3core/src/C/Common/Csetjmp.i3", "m3-libs/m3core/src/C/Common/Csignal.i3", "m3-libs/m3core/src/C/Common/Cstdio.i3", "m3-libs/m3core/src/C/Common/Cstring.i3", "m3-libs/m3core/src/C/Common/m3makefile", ]: source = os.path.join(Root, a) if FileExists(source): name = GetLastPathElement(a) reldir = RemoveLastPathElement(a) destdir = os.path.join(BootDir, reldir) dest = os.path.join(destdir, name) try: os.makedirs(destdir) except: pass CopyFile(source, dest) for b in [UpdateSource, Make]: b.write("mkdir -p /dev2/cm3/" + reldir + "\n") b.write("cp " + a + " /dev2/cm3/" + a + "\n") for a in [UpdateSource, Make, Makefile, VmsMake]: a.close() # write entirely new custom makefile for NT # We always have object files so just compile and link in one fell swoop. if StringTagged(Config, "NT") or Config == "NT386": DeleteFile("updatesource.sh") DeleteFile("make.sh") Makefile = open(os.path.join(BootDir, "Makefile"), "wb") Makefile.write("cm3.exe: *.io *.mo *.c\r\n" + " cl -Zi -MD *.c -link *.mo *.io -out:cm3.exe user32.lib kernel32.lib wsock32.lib comctl32.lib gdi32.lib advapi32.lib netapi32.lib\r\n") Makefile.close() _MakeArchive(BootDir[2:]) | 0aaa1f5072814c2e412f3bde57c60fe3a1a72786 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9328/0aaa1f5072814c2e412f3bde57c60fe3a1a72786/pylib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26254,
13332,
225,
2552,
3998,
2042,
3998,
2042,
1011,
315,
300,
7137,
300,
10102,
300,
16125,
23,
6743,
67,
16374,
1546,
397,
1903,
225,
4049,
273,
315,
21,
6,
225,
468,
1220,
1779,
353,
16975,
628,
326,
642,
1390,
18,
468,
399,
18096,
30,
1378,
518,
1338,
316,
1245,
3166,
18,
468,
1021,
12156,
7065,
310,
707,
1552,
336,
716,
2145,
18,
225,
23731,
273,
514,
18674,
12,
809,
16,
315,
58,
3537,
7923,
225,
309,
1903,
422,
315,
26313,
1578,
67,
58,
3537,
6877,
16143,
273,
315,
952,
315,
1327,
1903,
422,
315,
26313,
1105,
67,
58,
3537,
6877,
16143,
273,
315,
952,
342,
10437,
67,
1467,
33,
1105,
315,
1327,
514,
18674,
12,
809,
16,
315,
19815,
985,
5127,
7923,
578,
1903,
422,
315,
19815,
16924,
6877,
16143,
273,
2206,
13640,
19,
952,
87,
19,
4757,
19,
952,
300,
75,
300,
1010,
300,
92,
710,
33,
20003,
1578,
300,
92,
1236,
4887,
33,
9009,
12164,
315,
469,
30,
16143,
273,
288,
315,
45,
23,
5292,
67,
9125,
12507,
6,
225,
294,
315,
75,
952,
300,
75,
3104,
468,
314,
952,
300,
74,
20385,
6026,
11332,
981,
603,
5294,
697,
315,
19815,
1600,
89,
6,
3639,
294,
2206,
13640,
19,
87,
11966,
19,
4757,
19,
75,
952,
300,
75,
3104,
468,
300,
74,
20385,
35,
289,
18,
588,
12,
809,
13,
578,
315,
75,
952,
300,
75,
300,
74,
20385,
315,
225,
16143,
273,
16143,
397,
10797,
225,
315,
2192,
40,
1105,
67,
20663,
57,
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,
26254,
13332,
225,
2552,
3998,
2042,
3998,
2042,
1011,
315,
300,
7137,
300,
10102,
300,
16125,
23,
6743,
67,
16374,
1546,
397,
1903,
225,
4049,
273,
315,
21,
6,
225,
468,
1220,
1779,
353,
16975,
628,
326,
642,
1390,
18,
468,
399,
18096,
30,
1378,
518,
1338,
316,
1245,
3166,
18,
468,
1021,
12156,
7065,
310,
707,
1552,
336,
716,
2145,
18,
225,
23731,
273,
514,
18674,
12,
809,
16,
315,
58,
3537,
7923,
225,
309,
1903,
422,
315,
26313,
1578,
67,
58,
3537,
6877,
16143,
273,
315,
952,
315,
1327,
1903,
422,
315,
26313,
1105,
67,
58,
3537,
6877,
16143,
273,
315,
952,
342,
10437,
67,
1467,
33,
1105,
315,
1327,
514,
18674,
12,
809,
16,
315,
2
] |
ts.get_available_actions(self.req, | self._ts_get_available_actions(ts, | def test_available_actions_no_perms(self): ts = TicketSystem(self.env) self.req.perm = perm.PermissionCache(self.env) self.assertEqual(['leave'], ts.get_available_actions(self.req, {'status': 'new'})) self.assertEqual(['leave'], ts.get_available_actions(self.req, {'status': 'assigned'})) self.assertEqual(['leave'], ts.get_available_actions(self.req, {'status': 'accepted'})) self.assertEqual(['leave'], ts.get_available_actions(self.req, {'status': 'reopened'})) self.assertEqual(['leave'], ts.get_available_actions(self.req, {'status': 'closed'})) | 4b1c974fc51a3689f934bd513f21feadc4fe0a2a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9317/4b1c974fc51a3689f934bd513f21feadc4fe0a2a/api.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5699,
67,
4905,
67,
2135,
67,
15969,
12,
2890,
4672,
3742,
273,
22023,
3163,
12,
2890,
18,
3074,
13,
365,
18,
3658,
18,
12160,
273,
4641,
18,
5041,
1649,
12,
2890,
18,
3074,
13,
365,
18,
11231,
5812,
12,
3292,
19574,
17337,
365,
6315,
3428,
67,
588,
67,
5699,
67,
4905,
12,
3428,
16,
13666,
2327,
4278,
296,
2704,
11,
31700,
365,
18,
11231,
5812,
12,
3292,
19574,
17337,
365,
6315,
3428,
67,
588,
67,
5699,
67,
4905,
12,
3428,
16,
13666,
2327,
4278,
296,
15938,
11,
31700,
365,
18,
11231,
5812,
12,
3292,
19574,
17337,
365,
6315,
3428,
67,
588,
67,
5699,
67,
4905,
12,
3428,
16,
13666,
2327,
4278,
296,
23847,
11,
31700,
365,
18,
11231,
5812,
12,
3292,
19574,
17337,
365,
6315,
3428,
67,
588,
67,
5699,
67,
4905,
12,
3428,
16,
13666,
2327,
4278,
296,
266,
25304,
11,
31700,
365,
18,
11231,
5812,
12,
3292,
19574,
17337,
365,
6315,
3428,
67,
588,
67,
5699,
67,
4905,
12,
3428,
16,
13666,
2327,
4278,
296,
12204,
11,
31700,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5699,
67,
4905,
67,
2135,
67,
15969,
12,
2890,
4672,
3742,
273,
22023,
3163,
12,
2890,
18,
3074,
13,
365,
18,
3658,
18,
12160,
273,
4641,
18,
5041,
1649,
12,
2890,
18,
3074,
13,
365,
18,
11231,
5812,
12,
3292,
19574,
17337,
365,
6315,
3428,
67,
588,
67,
5699,
67,
4905,
12,
3428,
16,
13666,
2327,
4278,
296,
2704,
11,
31700,
365,
18,
11231,
5812,
12,
3292,
19574,
17337,
365,
6315,
3428,
67,
588,
67,
5699,
67,
4905,
12,
3428,
16,
13666,
2327,
4278,
296,
15938,
11,
31700,
365,
18,
11231,
5812,
12,
3292,
19574,
17337,
365,
6315,
3428,
67,
588,
67,
5699,
67,
4905,
12,
3428,
16,
13666,
2327,
4278,
296,
23847,
11,
31700,
365,
2
] |
def __init__(self, elem, parent=None): self.parent = parent | def __init__(self, elem, parent=None, index=0): | def __init__(self, elem, parent=None): self.parent = parent if elem.tag != 'Layer': raise ValueError('%s should be a Layer' % (elem,)) for key in ('Name', 'Title'): val = elem.find(key) if val is not None: setattr(self, key.lower(), val.text.strip()) else: setattr(self, key.lower(), 'unnamed_layer') self.id=self.name #conform to new interface # bboxes b = elem.find('BoundingBox') self.boundingBox = None if b is not None: try: #sometimes the SRS attribute is (wrongly) not provided srs=b.attrib['SRS'] except KeyError: srs=None self.boundingBox = ( float(b.attrib['minx']), float(b.attrib['miny']), float(b.attrib['maxx']), float(b.attrib['maxy']), srs, ) elif self.parent: if hasattr(self.parent, 'boundingBox'): self.boundingBox = self.parent.boundingBox | 638cf24328c5cdda953724f5aa47ca607deeb77d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11708/638cf24328c5cdda953724f5aa47ca607deeb77d/wms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3659,
16,
982,
33,
7036,
16,
770,
33,
20,
4672,
309,
3659,
18,
2692,
480,
296,
4576,
4278,
1002,
2068,
29909,
87,
1410,
506,
279,
12112,
11,
738,
261,
10037,
16,
3719,
364,
498,
316,
7707,
461,
2187,
296,
4247,
11,
4672,
1244,
273,
3659,
18,
4720,
12,
856,
13,
309,
1244,
353,
486,
599,
30,
9241,
12,
2890,
16,
498,
18,
8167,
9334,
1244,
18,
955,
18,
6406,
10756,
469,
30,
9241,
12,
2890,
16,
498,
18,
8167,
9334,
296,
318,
13188,
67,
6363,
6134,
365,
18,
350,
33,
2890,
18,
529,
468,
591,
687,
358,
394,
1560,
468,
8472,
281,
324,
273,
3659,
18,
4720,
2668,
19020,
6134,
365,
18,
3653,
13488,
273,
599,
309,
324,
353,
486,
599,
30,
775,
30,
468,
87,
25976,
326,
348,
13225,
1566,
353,
261,
21530,
715,
13,
486,
2112,
26200,
33,
70,
18,
14588,
3292,
10090,
55,
3546,
1335,
4999,
30,
26200,
33,
7036,
365,
18,
3653,
13488,
273,
261,
1431,
12,
70,
18,
14588,
3292,
1154,
92,
3546,
3631,
1431,
12,
70,
18,
14588,
3292,
1154,
93,
3546,
3631,
1431,
12,
70,
18,
14588,
3292,
1896,
92,
3546,
3631,
1431,
12,
70,
18,
14588,
3292,
1896,
93,
3546,
3631,
26200,
16,
262,
1327,
365,
18,
2938,
30,
309,
3859,
12,
2890,
18,
2938,
16,
296,
3653,
13488,
11,
4672,
365,
18,
3653,
13488,
273,
365,
18,
2938,
18,
3653,
13488,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3659,
16,
982,
33,
7036,
16,
770,
33,
20,
4672,
309,
3659,
18,
2692,
480,
296,
4576,
4278,
1002,
2068,
29909,
87,
1410,
506,
279,
12112,
11,
738,
261,
10037,
16,
3719,
364,
498,
316,
7707,
461,
2187,
296,
4247,
11,
4672,
1244,
273,
3659,
18,
4720,
12,
856,
13,
309,
1244,
353,
486,
599,
30,
9241,
12,
2890,
16,
498,
18,
8167,
9334,
1244,
18,
955,
18,
6406,
10756,
469,
30,
9241,
12,
2890,
16,
498,
18,
8167,
9334,
296,
318,
13188,
67,
6363,
6134,
365,
18,
350,
33,
2890,
18,
529,
468,
591,
687,
358,
394,
1560,
468,
8472,
281,
324,
273,
3659,
18,
4720,
2668,
19020,
6134,
365,
18,
2
] |
pixbuf = pixbuf.scale_simple(scale_w, scale_h, gtk.gdk.INTERP_BILINEAR) gobject.idle_add(self.image.set_from_pixbuf, pixbuf) | thr = threading.Thread( target=self.__scale_async, args=(pixbuf, scale_w, scale_h)) thr.setDaemon(True) thr.start() else: self.image.set_from_pixbuf(pixbuf) def __scale_async(self, pixbuf, w, h): pixbuf = pixbuf.scale_simple(w, h, gtk.gdk.INTERP_BILINEAR) gobject.idle_add(self.image.set_from_pixbuf, pixbuf) | def __scale_pixbuf(self, *data): if not self.current_pixbuf: return | cbf4721e646898ffb269b94d5b0b6d9b390d9802 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4764/cbf4721e646898ffb269b94d5b0b6d9b390d9802/albumart.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5864,
67,
14861,
4385,
12,
2890,
16,
380,
892,
4672,
309,
486,
365,
18,
2972,
67,
14861,
4385,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5864,
67,
14861,
4385,
12,
2890,
16,
380,
892,
4672,
309,
486,
365,
18,
2972,
67,
14861,
4385,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
hist[maxbin]=0 frac=frac+(maxbin/len(pos)) | hist[maxpos]=0 frac=frac+(float(maxbin)/float(len(pos))) | def getinjpar(inj,parnum): if parnum==0: return inj.mchirp if parnum==1: return inj.eta if parnum==2: return inj.get_end() if parnum==3: return inj.phi0 if parnum==4: return inj.distance if parnum==5: return inj.longitude if parnum==6: return inj.latitude if parnum==7: return inj.polarization if parnum==8: return inj.inclination return None | 33519ea48f8ccd5716372f3219410b44ab5f50ca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/33519ea48f8ccd5716372f3219410b44ab5f50ca/OddsPostProc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
267,
78,
1065,
12,
267,
78,
16,
1065,
2107,
4672,
309,
779,
2107,
631,
20,
30,
327,
316,
78,
18,
81,
343,
481,
84,
309,
779,
2107,
631,
21,
30,
327,
316,
78,
18,
1066,
309,
779,
2107,
631,
22,
30,
327,
316,
78,
18,
588,
67,
409,
1435,
309,
779,
2107,
631,
23,
30,
327,
316,
78,
18,
9973,
20,
309,
779,
2107,
631,
24,
30,
327,
316,
78,
18,
8969,
309,
779,
2107,
631,
25,
30,
327,
316,
78,
18,
16867,
309,
779,
2107,
631,
26,
30,
327,
316,
78,
18,
16967,
309,
779,
2107,
631,
27,
30,
327,
316,
78,
18,
3915,
297,
1588,
309,
779,
2107,
631,
28,
30,
327,
316,
78,
18,
267,
830,
1735,
327,
599,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
267,
78,
1065,
12,
267,
78,
16,
1065,
2107,
4672,
309,
779,
2107,
631,
20,
30,
327,
316,
78,
18,
81,
343,
481,
84,
309,
779,
2107,
631,
21,
30,
327,
316,
78,
18,
1066,
309,
779,
2107,
631,
22,
30,
327,
316,
78,
18,
588,
67,
409,
1435,
309,
779,
2107,
631,
23,
30,
327,
316,
78,
18,
9973,
20,
309,
779,
2107,
631,
24,
30,
327,
316,
78,
18,
8969,
309,
779,
2107,
631,
25,
30,
327,
316,
78,
18,
16867,
309,
779,
2107,
631,
26,
30,
327,
316,
78,
18,
16967,
309,
779,
2107,
631,
27,
30,
327,
316,
78,
18,
3915,
297,
1588,
309,
779,
2107,
631,
28,
30,
327,
316,
78,
18,
2
] |
ignore_files=[]) | ignore_files=[], emit_imports=0, emit_footer=0) enum_generator.generate( DISCRECORDING2_HDRS, 'build/codegen/_DiscRecording2_Enum.inc', ignore_files=[], emit_imports=0, emit_footer=0, emit_header=0) enum_generator.generate( DISCRECORDING3_HDRS, 'build/codegen/_DiscRecording3_Enum.inc', ignore_files=[], emit_imports=0, emit_header=0) | fd.write('typedef void* PYOBJC_VOIDPTR;\n') | cf6bd0822a967ae34ef4c558ae6f07f121d98747 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/97/cf6bd0822a967ae34ef4c558ae6f07f121d98747/cocoa_generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5194,
18,
2626,
2668,
723,
536,
918,
14,
12191,
24547,
39,
67,
58,
12945,
1856,
54,
9747,
82,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5194,
18,
2626,
2668,
723,
536,
918,
14,
12191,
24547,
39,
67,
58,
12945,
1856,
54,
9747,
82,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
log.warning('now', all_var.value.parse_repr) | def append_to_all(name, parent_docs, lineno): all_var = lookup_name('__all__', parent_docs) error = None if all_var is None or all_var.value in (None, UNKNOWN): error = "variable __all__ not found." else: try: # Make sure we can parse the __all__ value. parse_string_list(all_var.value.toktree, True) # Add the new name to __all__. if len(all_var.value.toktree[0]) > 2: all_var.value.toktree[0].insert(-1, (token.OP, ',')) all_var.value.toktree[0].insert(-1, (token.STRING, name)) all_var.value.parse_repr = pp_toktree(all_var.value.toktree) except ParseError: error = "unable to parse the contents of __all__" log.warning('now', all_var.value.parse_repr) if error: log.warning("Parsing %s (line %s): while processing an __all__" ".append() statement or @public decorator: %s" % (parent_docs[0].filename, lineno, error)) | 28945a0417e5d6eee61135a230f70a8de3ed89ed /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11420/28945a0417e5d6eee61135a230f70a8de3ed89ed/docparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
67,
869,
67,
454,
12,
529,
16,
982,
67,
8532,
16,
7586,
4672,
777,
67,
1401,
273,
3689,
67,
529,
2668,
972,
454,
972,
2187,
982,
67,
8532,
13,
225,
555,
273,
599,
309,
777,
67,
1401,
353,
599,
578,
777,
67,
1401,
18,
1132,
316,
261,
7036,
16,
13598,
4672,
555,
273,
315,
6105,
1001,
454,
972,
486,
1392,
1199,
469,
30,
775,
30,
468,
4344,
3071,
732,
848,
1109,
326,
1001,
454,
972,
460,
18,
1109,
67,
1080,
67,
1098,
12,
454,
67,
1401,
18,
1132,
18,
17692,
3413,
16,
1053,
13,
225,
468,
1436,
326,
394,
508,
358,
1001,
454,
25648,
309,
562,
12,
454,
67,
1401,
18,
1132,
18,
17692,
3413,
63,
20,
5717,
405,
576,
30,
777,
67,
1401,
18,
1132,
18,
17692,
3413,
63,
20,
8009,
6387,
19236,
21,
16,
261,
2316,
18,
3665,
16,
3316,
3719,
777,
67,
1401,
18,
1132,
18,
17692,
3413,
63,
20,
8009,
6387,
19236,
21,
16,
261,
2316,
18,
5804,
16,
508,
3719,
777,
67,
1401,
18,
1132,
18,
2670,
67,
12715,
273,
8228,
67,
17692,
3413,
12,
454,
67,
1401,
18,
1132,
18,
17692,
3413,
13,
1335,
17372,
30,
555,
273,
315,
18828,
358,
1109,
326,
2939,
434,
1001,
454,
14437,
225,
309,
555,
30,
613,
18,
8551,
2932,
13963,
738,
87,
261,
1369,
738,
87,
4672,
1323,
4929,
392,
1001,
454,
14437,
3552,
6923,
1435,
3021,
578,
632,
482,
7367,
30,
738,
87,
6,
738,
261,
2938,
67,
8532,
63,
20,
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,
714,
67,
869,
67,
454,
12,
529,
16,
982,
67,
8532,
16,
7586,
4672,
777,
67,
1401,
273,
3689,
67,
529,
2668,
972,
454,
972,
2187,
982,
67,
8532,
13,
225,
555,
273,
599,
309,
777,
67,
1401,
353,
599,
578,
777,
67,
1401,
18,
1132,
316,
261,
7036,
16,
13598,
4672,
555,
273,
315,
6105,
1001,
454,
972,
486,
1392,
1199,
469,
30,
775,
30,
468,
4344,
3071,
732,
848,
1109,
326,
1001,
454,
972,
460,
18,
1109,
67,
1080,
67,
1098,
12,
454,
67,
1401,
18,
1132,
18,
17692,
3413,
16,
1053,
13,
225,
468,
1436,
326,
394,
508,
358,
1001,
454,
25648,
309,
562,
12,
454,
67,
1401,
18,
1132,
18,
17692,
3413,
63,
20,
2
] |
|
self.assertEqual(func.next(), ('es', pathname)) | actual = func.next() expect = ('es', fakepath) self.assertEqual(actual, expect, "Expected '%s' but got '%s'" % (expect, actual)) FileUtilities.globex = old_globex | def test_yield(pathname, regex): """Replacement for globex()""" yield pathname | afcce7d64e806b40a186a38225a4a2e8ff6bd5bd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/afcce7d64e806b40a186a38225a4a2e8ff6bd5bd/Unix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
23604,
12,
28336,
16,
3936,
4672,
3536,
15201,
364,
4715,
338,
1435,
8395,
2824,
9806,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
23604,
12,
28336,
16,
3936,
4672,
3536,
15201,
364,
4715,
338,
1435,
8395,
2824,
9806,
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
] |
if not match: load(loc, ia) print "finished" | if not match: load(loc, ia) write_log(ia, when, "loaded") start = row.updated secs = time() - t_start mins = secs / 60 print "finished %d took mins" % mins if mins < 30: print 'waiting' sleep(60 * 30 - secs) | def write_edition(loc, edition): add_lang(edition) q = build_query(loc, edition) authors = [] for a in q.get('authors', []): if 'key' in a: authors.append({'key': a['key']}) else: try: ret = ol.new(a, comment='new author') except: print a raise print 'ret:', ret assert isinstance(ret, basestring) authors.append({'key': ret}) q['source_records'] = [loc] if authors: q['authors'] = authors for attempt in range(5): if attempt > 0: print 'retrying' try: ret = ol.new(q, comment='initial import') except httplib.BadStatusLine: sleep(10) continue except: # httplib.BadStatusLine print q raise break print 'ret:', ret assert isinstance(ret, basestring) key = ret pool.update(key, q) | 1b1415b95c69879526d00e20ecc42894fbc1d05f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3913/1b1415b95c69879526d00e20ecc42894fbc1d05f/load_scribe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
329,
608,
12,
1829,
16,
28432,
4672,
527,
67,
4936,
12,
329,
608,
13,
1043,
273,
1361,
67,
2271,
12,
1829,
16,
28432,
13,
14494,
273,
5378,
364,
279,
316,
1043,
18,
588,
2668,
19368,
2187,
5378,
4672,
309,
296,
856,
11,
316,
279,
30,
14494,
18,
6923,
12590,
11,
856,
4278,
279,
3292,
856,
3546,
6792,
469,
30,
775,
30,
325,
273,
8793,
18,
2704,
12,
69,
16,
2879,
2218,
2704,
2869,
6134,
1335,
30,
1172,
279,
1002,
1172,
296,
1349,
30,
2187,
325,
1815,
1549,
12,
1349,
16,
10699,
13,
14494,
18,
6923,
12590,
11,
856,
4278,
325,
6792,
1043,
3292,
3168,
67,
7094,
3546,
273,
306,
1829,
65,
309,
14494,
30,
1043,
3292,
19368,
3546,
273,
14494,
225,
364,
4395,
316,
1048,
12,
25,
4672,
309,
4395,
405,
374,
30,
1172,
296,
9620,
310,
11,
775,
30,
325,
273,
8793,
18,
2704,
12,
85,
16,
2879,
2218,
6769,
1930,
6134,
1335,
15851,
6673,
18,
6434,
1482,
1670,
30,
5329,
12,
2163,
13,
1324,
1335,
30,
468,
15851,
6673,
18,
6434,
1482,
1670,
1172,
1043,
1002,
898,
1172,
296,
1349,
30,
2187,
325,
1815,
1549,
12,
1349,
16,
10699,
13,
498,
273,
325,
2845,
18,
2725,
12,
856,
16,
1043,
13,
225,
2,
0,
0,
0,
0,
0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,
588,
2668,
19368,
2187,
5378,
4672,
309,
296,
856,
11,
316,
279,
30,
14494,
18,
6923,
12590,
11,
856,
4278,
279,
3292,
856,
3546,
6792,
469,
30,
775,
30,
325,
273,
8793,
18,
2704,
12,
69,
16,
2879,
2218,
2704,
2869,
6134,
1335,
30,
1172,
279,
1002,
1172,
296,
1349,
30,
2187,
325,
1815,
1549,
12,
1349,
16,
10699,
13,
14494,
18,
6923,
12590,
11,
856,
4278,
325,
6792,
1043,
3292,
3168,
67,
7094,
3546,
273,
306,
1829,
65,
309,
14494,
30,
1043,
3292,
2
] |
global template if template == None: | global template, _pid if os.name == 'posix' and _pid and _pid != os.getpid(): template = None if template is None: | def gettempprefix(): global template if template == None: if os.name == 'posix': template = '@' + `os.getpid()` + '.' elif os.name == 'nt': template = '~' + `os.getpid()` + '-' elif os.name == 'mac': template = 'Python-Tmp-' else: template = 'tmp' # XXX might choose a better one return template | b0e5718643f807af590e16ebb8d3eb401a327ca3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b0e5718643f807af590e16ebb8d3eb401a327ca3/tempfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
5814,
3239,
13332,
2552,
1542,
16,
389,
6610,
309,
1140,
18,
529,
422,
296,
24463,
11,
471,
389,
6610,
471,
389,
6610,
480,
1140,
18,
588,
6610,
13332,
225,
1542,
273,
599,
309,
1542,
353,
599,
30,
309,
1140,
18,
529,
422,
296,
24463,
4278,
1542,
273,
9175,
397,
1375,
538,
18,
588,
6610,
20338,
397,
2611,
1327,
1140,
18,
529,
422,
296,
496,
4278,
1542,
273,
17690,
397,
1375,
538,
18,
588,
6610,
20338,
397,
4014,
1327,
1140,
18,
529,
422,
296,
5821,
4278,
1542,
273,
296,
15774,
17,
9161,
6627,
469,
30,
1542,
273,
296,
5645,
11,
468,
11329,
4825,
9876,
279,
7844,
1245,
327,
1542,
282,
2,
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,
336,
5814,
3239,
13332,
2552,
1542,
16,
389,
6610,
309,
1140,
18,
529,
422,
296,
24463,
11,
471,
389,
6610,
471,
389,
6610,
480,
1140,
18,
588,
6610,
13332,
225,
1542,
273,
599,
309,
1542,
353,
599,
30,
309,
1140,
18,
529,
422,
296,
24463,
4278,
1542,
273,
9175,
397,
1375,
538,
18,
588,
6610,
20338,
397,
2611,
1327,
1140,
18,
529,
422,
296,
496,
4278,
1542,
273,
17690,
397,
1375,
538,
18,
588,
6610,
20338,
397,
4014,
1327,
1140,
18,
529,
422,
296,
5821,
4278,
1542,
273,
296,
15774,
17,
9161,
6627,
469,
30,
1542,
273,
296,
5645,
11,
468,
11329,
4825,
9876,
279,
7844,
1245,
327,
1542,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Use the `dot` command to render this graph, using the output | Use the ``dot`` command to render this graph, using the output | def render(self, language='gif'): """ Use the `dot` command to render this graph, using the output format `language`. Return the result as a string, or `None` if the rendering failed. """ try: result, err = run_subprocess([DOT_COMMAND, '-T%s' % language], self.to_dotfile()) # Decode into unicode, if necessary. if language == 'cmapx' and result is not None: result = result.decode('utf-8') except OSError, e: log.warning("Unable to render Graphviz dot graph:\n%s" % e) #log.debug(self.to_dotfile()) return None | a30cefa7e4b8396a34ef5836d8d306e7107e2af0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/a30cefa7e4b8396a34ef5836d8d306e7107e2af0/dotgraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
2653,
2218,
13905,
11,
4672,
3536,
2672,
326,
12176,
9811,
10335,
1296,
358,
1743,
333,
2667,
16,
1450,
326,
876,
740,
1375,
4923,
8338,
225,
2000,
326,
563,
487,
279,
533,
16,
578,
1375,
7036,
68,
309,
326,
9782,
2535,
18,
3536,
775,
30,
563,
16,
393,
273,
1086,
67,
1717,
2567,
3816,
17591,
67,
19104,
16,
2400,
56,
9,
87,
11,
738,
2653,
6487,
365,
18,
869,
67,
9811,
768,
10756,
468,
6209,
1368,
5252,
16,
309,
4573,
18,
309,
2653,
422,
296,
22738,
92,
11,
471,
563,
353,
486,
599,
30,
563,
273,
563,
18,
3922,
2668,
3158,
17,
28,
6134,
1335,
10002,
16,
425,
30,
613,
18,
8551,
2932,
3370,
358,
1743,
5601,
23167,
3928,
2667,
5581,
82,
9,
87,
6,
738,
425,
13,
468,
1330,
18,
4148,
12,
2890,
18,
869,
67,
9811,
768,
10756,
327,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2653,
2218,
13905,
11,
4672,
3536,
2672,
326,
12176,
9811,
10335,
1296,
358,
1743,
333,
2667,
16,
1450,
326,
876,
740,
1375,
4923,
8338,
225,
2000,
326,
563,
487,
279,
533,
16,
578,
1375,
7036,
68,
309,
326,
9782,
2535,
18,
3536,
775,
30,
563,
16,
393,
273,
1086,
67,
1717,
2567,
3816,
17591,
67,
19104,
16,
2400,
56,
9,
87,
11,
738,
2653,
6487,
365,
18,
869,
67,
9811,
768,
10756,
468,
6209,
1368,
5252,
16,
309,
4573,
18,
309,
2653,
422,
296,
22738,
92,
11,
471,
563,
353,
486,
599,
30,
563,
273,
563,
18,
3922,
2668,
3158,
17,
28,
6134,
1335,
10002,
16,
425,
30,
613,
18,
8551,
2932,
3370,
358,
2
] |
return u', '.join(map(smart_str, value)) | return ', '.join(map(smart_str, value)) | def resolve(self, value): bits = self.path.split(".") | 2505f2b4c7572e4c38568341fa3e82e74ca5c128 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4645/2505f2b4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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
12,
2890,
16,
460,
4672,
4125,
273,
365,
18,
803,
18,
4939,
2932,
1199,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
del sys.path[0] | os.chdir(cwd) sys.path = opath | def getModuleObjects(folder, rootName, typ): "Get a list of all function objects defined *somewhere* in a package." folders = [folder] + subFoldersOfFolder(folder) objects = [] for f in folders: sys.path.insert(0, f) os.chdir(f) pattern = os.path.join('*.py') prefix = f[string.find(f, rootName):] prefix = string.replace(prefix, os.sep, '.') modNames = glob.glob(pattern) modNames = filter(lambda m:string.find(m, '__init__.py') == -1, modNames) # Make module names fully qualified. for i in range(len(modNames)): modNames[i] = prefix + '.' + modNames[i][:string.find(modNames[i], '.')] for mName in modNames: module = __import__(mName) # Get the 'real' (leaf) module # (__import__ loads only the top-level one). if string.find(mName, '.') != -1: for part in string.split(mName, '.')[1:]: module = getattr(module, part) # Find the objects in the module's content. modContentNames = dir(module) # Handle modules. if typ == types.ModuleType: if string.find(module.__name__, 'reportlab') > -1: objects.append((mName, module)) continue for n in modContentNames: obj = eval(mName + '.' + n) # Handle functions and classes. if typ in (types.FunctionType, types.ClassType): if type(obj) == typ: objects.append((mName, obj)) # Handle methods. elif typ == types.MethodType: if type(obj) == types.ClassType: for m in dir(obj): a = getattr(obj, m) if type(a) == typ: cName = obj.__name__ objects.append(("%s.%s" % (mName, cName), a)) del sys.path[0] return objects | 576576f597862a970dbfcc99dfaa951bc8dfe7d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/576576f597862a970dbfcc99dfaa951bc8dfe7d4/test_docstrings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11251,
4710,
12,
5609,
16,
1365,
461,
16,
3815,
4672,
315,
967,
279,
666,
434,
777,
445,
2184,
2553,
380,
87,
362,
359,
14852,
14,
316,
279,
2181,
1199,
225,
9907,
273,
306,
5609,
65,
397,
720,
14885,
951,
3899,
12,
5609,
13,
225,
2184,
273,
5378,
364,
284,
316,
9907,
30,
2589,
18,
803,
18,
6387,
12,
20,
16,
284,
13,
1140,
18,
343,
1214,
12,
74,
13,
1936,
273,
1140,
18,
803,
18,
5701,
2668,
11146,
2074,
6134,
1633,
273,
284,
63,
1080,
18,
4720,
12,
74,
16,
1365,
461,
4672,
65,
1633,
273,
533,
18,
2079,
12,
3239,
16,
1140,
18,
10814,
16,
2611,
13,
681,
1557,
273,
4715,
18,
10581,
12,
4951,
13,
681,
1557,
273,
1034,
12,
14661,
312,
30,
1080,
18,
4720,
12,
81,
16,
4940,
2738,
25648,
2074,
6134,
422,
300,
21,
16,
681,
1557,
13,
468,
4344,
1605,
1257,
7418,
9348,
18,
364,
277,
316,
1048,
12,
1897,
12,
1711,
1557,
3719,
30,
681,
1557,
63,
77,
65,
273,
1633,
397,
2611,
397,
681,
1557,
63,
77,
6362,
30,
1080,
18,
4720,
12,
1711,
1557,
63,
77,
6487,
2611,
25887,
364,
312,
461,
316,
681,
1557,
30,
1605,
273,
1001,
5666,
972,
12,
81,
461,
13,
468,
968,
326,
296,
7688,
11,
261,
12070,
13,
1605,
468,
261,
972,
5666,
972,
6277,
1338,
326,
1760,
17,
2815,
1245,
2934,
309,
533,
18,
4720,
12,
81,
461,
16,
2611,
13,
480,
300,
21,
30,
364,
1087,
316,
533,
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,
11251,
4710,
12,
5609,
16,
1365,
461,
16,
3815,
4672,
315,
967,
279,
666,
434,
777,
445,
2184,
2553,
380,
87,
362,
359,
14852,
14,
316,
279,
2181,
1199,
225,
9907,
273,
306,
5609,
65,
397,
720,
14885,
951,
3899,
12,
5609,
13,
225,
2184,
273,
5378,
364,
284,
316,
9907,
30,
2589,
18,
803,
18,
6387,
12,
20,
16,
284,
13,
1140,
18,
343,
1214,
12,
74,
13,
1936,
273,
1140,
18,
803,
18,
5701,
2668,
11146,
2074,
6134,
1633,
273,
284,
63,
1080,
18,
4720,
12,
74,
16,
1365,
461,
4672,
65,
1633,
273,
533,
18,
2079,
12,
3239,
16,
1140,
18,
10814,
16,
2611,
13,
681,
1557,
273,
4715,
18,
10581,
12,
4951,
13,
681,
2
] |
@param vars: alternative param=value pairs with suggested substitutors | @param minLen: minimal length of string o to be counted as path @type minLen: int @param absolute: normalize file name [1] @type absolute: 1|0 @param resolveLinks: resolve symbolic links [0] @type resolveLinks: 1|0 @param maxSub: maximal number of substitutions [1] @type maxSub: int @param vars: additional param=value pairs with suggested substitutors | def set_path( self, fname, minLen=3, **vars ): """ Set a new path and try to identify environment variables that could substitute parts of it. If vars is given, env. variables are ignored. @param fname: relative or absolute file name @type fname: str @param vars: alternative param=value pairs with suggested substitutors @type vars: param=value """ env_items = self.get_substitution_pairs( minLen=minLen, vars=vars ) | 3c3e49363a7a3c916b648c6154d8aef255c31d3e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/482/3c3e49363a7a3c916b648c6154d8aef255c31d3e/LocalPath.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
803,
12,
365,
16,
5299,
16,
1131,
2891,
33,
23,
16,
2826,
4699,
262,
30,
3536,
1000,
279,
394,
589,
471,
775,
358,
9786,
3330,
3152,
716,
3377,
14811,
2140,
434,
518,
18,
971,
4153,
353,
864,
16,
1550,
18,
3152,
854,
5455,
18,
225,
632,
891,
5299,
30,
3632,
578,
4967,
585,
508,
632,
723,
225,
5299,
30,
609,
632,
891,
1131,
2891,
30,
16745,
769,
434,
533,
320,
358,
506,
26352,
487,
589,
632,
723,
225,
1131,
2891,
30,
509,
632,
891,
4967,
30,
3883,
585,
508,
306,
21,
65,
632,
723,
225,
4967,
30,
404,
96,
20,
632,
891,
2245,
7100,
30,
2245,
16754,
4716,
306,
20,
65,
632,
723,
225,
2245,
7100,
30,
404,
96,
20,
632,
891,
943,
1676,
30,
943,
2840,
1300,
434,
23368,
306,
21,
65,
632,
723,
225,
943,
1676,
30,
509,
632,
891,
4153,
30,
3312,
579,
33,
1132,
5574,
598,
22168,
7461,
13595,
632,
723,
225,
4153,
30,
579,
33,
1132,
3536,
1550,
67,
3319,
273,
225,
365,
18,
588,
67,
1717,
14278,
67,
11545,
12,
1131,
2891,
33,
1154,
2891,
16,
4153,
33,
4699,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
803,
12,
365,
16,
5299,
16,
1131,
2891,
33,
23,
16,
2826,
4699,
262,
30,
3536,
1000,
279,
394,
589,
471,
775,
358,
9786,
3330,
3152,
716,
3377,
14811,
2140,
434,
518,
18,
971,
4153,
353,
864,
16,
1550,
18,
3152,
854,
5455,
18,
225,
632,
891,
5299,
30,
3632,
578,
4967,
585,
508,
632,
723,
225,
5299,
30,
609,
632,
891,
1131,
2891,
30,
16745,
769,
434,
533,
320,
358,
506,
26352,
487,
589,
632,
723,
225,
1131,
2891,
30,
509,
632,
891,
4967,
30,
3883,
585,
508,
306,
21,
65,
632,
723,
225,
4967,
30,
404,
96,
20,
632,
891,
2245,
7100,
30,
2245,
16754,
4716,
306,
20,
65,
632,
723,
225,
2245,
7100,
2
] |
taskMgr.add(task, self.taskName("scroll")) | def __incButtonDown(self, event): assert self.notify.debugStateCall(self) task = Task(self.__scrollByTask) task.delayTime = (1.0 / self.scrollSpeed) task.prevTime = 0.0 task.delta = 1 self.scrollBy(task.delta) taskMgr.add(task, self.taskName("scroll")) | f9890a4f678ea170111f1c22ec2556d448162528 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/f9890a4f678ea170111f1c22ec2556d448162528/DirectScrolledList.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9523,
3616,
4164,
12,
2890,
16,
871,
4672,
1815,
365,
18,
12336,
18,
4148,
1119,
1477,
12,
2890,
13,
1562,
273,
3837,
12,
2890,
16186,
12033,
858,
2174,
13,
1562,
18,
10790,
950,
273,
261,
21,
18,
20,
342,
365,
18,
12033,
16562,
13,
1562,
18,
10001,
950,
273,
374,
18,
20,
1562,
18,
9878,
273,
404,
365,
18,
12033,
858,
12,
4146,
18,
9878,
13,
1562,
9455,
18,
1289,
12,
4146,
16,
365,
18,
4146,
461,
2932,
12033,
6,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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18,
12336,
18,
4148,
1119,
1477,
12,
2890,
13,
1562,
273,
3837,
12,
2890,
16186,
12033,
858,
2174,
13,
1562,
18,
10790,
950,
273,
261,
21,
18,
20,
342,
365,
18,
12033,
16562,
13,
1562,
18,
10001,
950,
273,
374,
18,
20,
1562,
18,
9878,
273,
404,
365,
18,
12033,
858,
12,
4146,
18,
9878,
13,
1562,
9455,
18,
1289,
12,
4146,
16,
365,
18,
4146,
461,
2932,
12033,
6,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
language = node.get_attribute('lang') | language = str(node.get_attribute('lang')) | def decode(cls, node): schema = cls.schema property = cls() for node in node.get_elements(): name = node.name # Decode the value if name in schema: type, default = schema[name] if issubclass(type, ComplexType): value = type.decode(node) else: value = unicode(node.children) value = value.encode('utf8') try: value = type.decode(value) except ValueError: # XXX Better to log it? warnings.warn('Unable to decode "%s"' % name) # The language if node.has_attribute('lang'): language = node.get_attribute('lang') else: language = None # Set property value property.set_property(name, value, language=language) else: # XXX Maybe better to log it warnings.warn('The schema does not define "%s"' % name) return property | 8f921bc29f1709b6e374ed6fc434ad37f288a593 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/8f921bc29f1709b6e374ed6fc434ad37f288a593/Schema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
12,
6429,
16,
756,
4672,
1963,
273,
2028,
18,
4821,
1272,
273,
2028,
1435,
364,
756,
316,
756,
18,
588,
67,
6274,
13332,
508,
273,
756,
18,
529,
468,
6209,
326,
460,
309,
508,
316,
1963,
30,
618,
16,
805,
273,
1963,
63,
529,
65,
309,
14664,
12,
723,
16,
16060,
559,
4672,
460,
273,
618,
18,
3922,
12,
2159,
13,
469,
30,
460,
273,
5252,
12,
2159,
18,
5906,
13,
460,
273,
460,
18,
3015,
2668,
3158,
28,
6134,
775,
30,
460,
273,
618,
18,
3922,
12,
1132,
13,
1335,
2068,
30,
468,
11329,
605,
11214,
358,
613,
518,
35,
5599,
18,
8935,
2668,
3370,
358,
2495,
2213,
87,
5187,
738,
508,
13,
468,
1021,
2653,
309,
756,
18,
5332,
67,
4589,
2668,
4936,
11,
4672,
565,
2653,
273,
609,
12,
2159,
18,
588,
67,
4589,
2668,
4936,
26112,
469,
30,
2653,
273,
599,
468,
1000,
1272,
460,
1272,
18,
542,
67,
4468,
12,
529,
16,
460,
16,
2653,
33,
4923,
13,
469,
30,
468,
11329,
14024,
7844,
358,
613,
518,
5599,
18,
8935,
2668,
1986,
1963,
1552,
486,
4426,
2213,
87,
5187,
738,
508,
13,
327,
1272,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
12,
6429,
16,
756,
4672,
1963,
273,
2028,
18,
4821,
1272,
273,
2028,
1435,
364,
756,
316,
756,
18,
588,
67,
6274,
13332,
508,
273,
756,
18,
529,
468,
6209,
326,
460,
309,
508,
316,
1963,
30,
618,
16,
805,
273,
1963,
63,
529,
65,
309,
14664,
12,
723,
16,
16060,
559,
4672,
460,
273,
618,
18,
3922,
12,
2159,
13,
469,
30,
460,
273,
5252,
12,
2159,
18,
5906,
13,
460,
273,
460,
18,
3015,
2668,
3158,
28,
6134,
775,
30,
460,
273,
618,
18,
3922,
12,
1132,
13,
1335,
2068,
30,
468,
11329,
605,
11214,
358,
613,
518,
35,
5599,
18,
8935,
2668,
3370,
358,
2495,
2213,
87,
5187,
738,
508,
13,
468,
1021,
2653,
2
] |
cu.execute("""DELETE FROM Permissions WHERE userGroupId=? AND labelId=? AND itemId=?""", userGroupId, labelId, itemId) self.db.commit() | stmt = """DELETE FROM Permissions WHERE userGroupId=? AND (labelId=? OR (labelId IS NULL AND ? IS NULL)) AND (itemId=? OR (itemId IS NULL AND ? IS NULL))""" cu.execute(stmt, userGroupId, labelId, labelId, itemId, itemId) self.db.commit() | def deletePermission(self, userGroupId, labelId, itemId): cu = self.db.cursor() cu.execute("""DELETE FROM Permissions WHERE userGroupId=? AND labelId=? AND itemId=?""", userGroupId, labelId, itemId) self.db.commit() | 816f547ab63e7a089aa6ecbbad71e9baac7c773b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/816f547ab63e7a089aa6ecbbad71e9baac7c773b/netauth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
5041,
12,
2890,
16,
729,
8722,
16,
1433,
548,
16,
18424,
4672,
15985,
273,
365,
18,
1966,
18,
9216,
1435,
225,
15985,
18,
8837,
2932,
3660,
6460,
4571,
15684,
4852,
729,
8722,
17282,
4116,
1433,
548,
17282,
4116,
18424,
17282,
3660,
3113,
729,
8722,
16,
1433,
548,
16,
18424,
13,
365,
18,
1966,
18,
7371,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
5041,
12,
2890,
16,
729,
8722,
16,
1433,
548,
16,
18424,
4672,
15985,
273,
365,
18,
1966,
18,
9216,
1435,
225,
15985,
18,
8837,
2932,
3660,
6460,
4571,
15684,
4852,
729,
8722,
17282,
4116,
1433,
548,
17282,
4116,
18424,
17282,
3660,
3113,
729,
8722,
16,
1433,
548,
16,
18424,
13,
365,
18,
1966,
18,
7371,
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
] |
print (path, garbage) | def retrieve(self, url, filename=None): url = unwrap(url) if self.tempcache and self.tempcache.has_key(url): return self.tempcache[url] type, url1 = splittype(url) if not filename and (not type or type == 'file'): try: fp = self.open_local_file(url1) hdrs = fp.info() del fp return url2pathname(splithost(url1)[1]), hdrs except IOError, msg: pass fp = self.open(url) headers = fp.info() if not filename: import tempfile garbage, path = splittype(url) print (garbage, path) garbage, path = splithost(path or "") print (garbage, path) path, garbage = splitquery(path or "") print (path, garbage) path, garbage = splitattr(path or "") print (path, garbage) suffix = os.path.splitext(path)[1] filename = tempfile.mktemp(suffix) self.__tempfiles.append(filename) result = filename, headers if self.tempcache is not None: self.tempcache[url] = result tfp = open(filename, 'wb') bs = 1024*8 block = fp.read(bs) while block: tfp.write(block) block = fp.read(bs) fp.close() tfp.close() del fp del tfp return result | 99bec1b49fade0be3214a194a0828127c35c34dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/99bec1b49fade0be3214a194a0828127c35c34dd/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4614,
12,
2890,
16,
880,
16,
1544,
33,
7036,
4672,
880,
273,
11014,
12,
718,
13,
309,
365,
18,
874,
2436,
807,
471,
365,
18,
874,
2436,
807,
18,
5332,
67,
856,
12,
718,
4672,
327,
365,
18,
874,
2436,
807,
63,
718,
65,
618,
16,
880,
21,
273,
1416,
723,
12,
718,
13,
309,
486,
1544,
471,
261,
902,
618,
578,
618,
422,
296,
768,
11,
4672,
775,
30,
4253,
273,
365,
18,
3190,
67,
3729,
67,
768,
12,
718,
21,
13,
31424,
273,
4253,
18,
1376,
1435,
1464,
4253,
327,
880,
22,
28336,
12,
13106,
483,
669,
12,
718,
21,
25146,
21,
65,
3631,
31424,
1335,
8340,
16,
1234,
30,
1342,
4253,
273,
365,
18,
3190,
12,
718,
13,
1607,
273,
4253,
18,
1376,
1435,
309,
486,
1544,
30,
1930,
13275,
15340,
16,
589,
273,
1416,
723,
12,
718,
13,
1172,
261,
75,
12332,
16,
589,
13,
15340,
16,
589,
273,
6121,
483,
669,
12,
803,
578,
1408,
13,
1172,
261,
75,
12332,
16,
589,
13,
589,
16,
15340,
273,
1416,
2271,
12,
803,
578,
1408,
13,
589,
16,
15340,
273,
1416,
1747,
12,
803,
578,
1408,
13,
3758,
273,
1140,
18,
803,
18,
4939,
408,
12,
803,
25146,
21,
65,
1544,
273,
13275,
18,
24816,
5814,
12,
8477,
13,
365,
16186,
5814,
2354,
18,
6923,
12,
3459,
13,
563,
273,
1544,
16,
1607,
309,
365,
18,
874,
2436,
807,
353,
486,
599,
30,
365,
18,
874,
2436,
807,
63,
718,
65,
273,
563,
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,
4614,
12,
2890,
16,
880,
16,
1544,
33,
7036,
4672,
880,
273,
11014,
12,
718,
13,
309,
365,
18,
874,
2436,
807,
471,
365,
18,
874,
2436,
807,
18,
5332,
67,
856,
12,
718,
4672,
327,
365,
18,
874,
2436,
807,
63,
718,
65,
618,
16,
880,
21,
273,
1416,
723,
12,
718,
13,
309,
486,
1544,
471,
261,
902,
618,
578,
618,
422,
296,
768,
11,
4672,
775,
30,
4253,
273,
365,
18,
3190,
67,
3729,
67,
768,
12,
718,
21,
13,
31424,
273,
4253,
18,
1376,
1435,
1464,
4253,
327,
880,
22,
28336,
12,
13106,
483,
669,
12,
718,
21,
25146,
21,
65,
3631,
31424,
1335,
8340,
16,
1234,
30,
1342,
4253,
273,
365,
18,
3190,
2
] |
|
gluLookAt( ow/2.0, oh/2.0, oh/1.1566, ow / 2.0, oh / 2.0, 0, 0.0, 1.0, 0.0 | gluLookAt( vw/2.0, vh/2.0, vh/1.1566, vw/2.0, vh/2.0, 0, 0.0, 1.0, 0.0 | def set_projection(self): '''Sets a 3D projection mantaining the aspect ratio of the original window size''' | 2ed31204cbecc187b0fcd9ac7eb3df86e8893a3a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7473/2ed31204cbecc187b0fcd9ac7eb3df86e8893a3a/director.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
19183,
12,
2890,
4672,
9163,
2785,
279,
890,
40,
8106,
20414,
3280,
326,
9648,
7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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
19183,
12,
2890,
4672,
9163,
2785,
279,
890,
40,
8106,
20414,
3280,
326,
9648,
7169,
434,
326,
2282,
2742,
963,
26418,
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
] |
request = urllib2.Request(url, xml, headers) | request = urllib2.Request(url, '', headers) | def _process_record(self, header, element): | 9ce336e01972e5cf42b8934d10d0a1c026f93121 /local1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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
67,
3366,
12,
2890,
16,
1446,
16,
930,
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
] |
for name, (byDefault, explicit) in self.newGroupList.iteritems(): | for (name, (byDefault, explicit, childDefaults)) \ in self.newGroupList.iteritems(): | def iterNewGroupList(self): for name, (byDefault, explicit) in self.newGroupList.iteritems(): yield name, byDefault, explicit | 74a07587cebc9b61ae9ea7fec2d4845bd485e0f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/74a07587cebc9b61ae9ea7fec2d4845bd485e0f0/grouprecipe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
1908,
1114,
682,
12,
2890,
4672,
364,
261,
529,
16,
261,
1637,
1868,
16,
5515,
16,
1151,
7019,
3719,
521,
316,
365,
18,
2704,
1114,
682,
18,
2165,
3319,
13332,
2824,
508,
16,
635,
1868,
16,
5515,
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,
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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
] |
if metahandles.has_key(n): m = metahandles[n][0] else: | if metahandles.has_key(n): m = metahandles[n][0] else: | def start(): # don't mess with certain classes of nodes if mirror mypvfsnodes = pvfsnodes if options["mirror"] == "remote-mount" or \ options["mirror"] == "meta-mirror": mypvfsnodes = [x for x in mypvfsnodes if x not in ionodes] if options["mirror"] == "remote-mount": mypvfsnodes = [x for x in mypvfsnodes if x not in metanodes] # sync files to pvfs nodes for n in mypvfsnodes: if options["one_config_file"] == "yes": os.system("rcp " + testdir + "/fs.conf " + n + ":" + testdir) else: os.system("rcp " + testdir + "/{fs.conf,server.conf-" + n + "} " + n + ":" + testdir) # start osd targets if len(osdnodes) > 0: if options["storage"] == "tmpfs": mountup = "sudo mount -t tmpfs -o size=1800m none /tmp/tgt-" + id + " \; " else: mountup = "" os.system("all -p " + allify(osdnodes) + " " + "cd " + testdir + " \; " + "rm -rf /tmp/tgt-" + id + " \; " + "mkdir /tmp/tgt-" + id + " \; " + mountup + tgtd + " -d 9 \< /dev/null \&\> tgtd.log") if len(mypvfsnodes) > 0: if options["storage"] == "tmpfs": mountup = "sudo mount -t tmpfs -o size=1800m none " + testdir + "/storage \;" else: mountup = "" if options["one_config_file"] == "yes": os.system("all -p " + allify(mypvfsnodes) + " " + "cd " + testdir + " \; " + "rm -rf " + testdir + "/storage \; " + "mkdir " + testdir + "/storage \; " + mountup + "rm -f pvfs2.log \;" + "pvfs2-server --mkfs fs.conf \;" + "TZ=EST5EDT pvfs2-server fs.conf") else: os.system("all -p " + allify(mypvfsnodes) + " " + "cd " + testdir + " \; " + "rm -rf " + testdir + "/storage \; " + "mkdir " + testdir + "/storage \; " + mountup + "ln -fs server.conf-\$\(hostname\) server.conf \; " + "rm -f pvfs2.log \;" + "pvfs2-server --mkfs fs.conf server.conf \;" + "TZ=EST5EDT pvfs2-server fs.conf server.conf") # compnodes myosdnodes = osdnodes if options["pvfs_osd_integrated"] == "yes": myosdnodes = osdnodes + mypvfsnodes # append "-ib" to the osdnodes if using rdma if options["rdma"] == "yes": startcmd = "start --rdma" if host.rfind("opt") == -1: myibosdnodes = [ n + "-ib" for n in myosdnodes ] else: myibosdnodes = [ n.replace('opt', 'opt-ib-') for n in myosdnodes ] else: myibosdnodes = myosdnodes startcmd = "start" if len(myibosdnodes) > 0: os.system("all " + allify(compnodes) + " " + "echo " + tabfile_contents + " \> " + tabfile + " \; " + "sudo " + initiator + " " + startcmd + " " + " ".join(myibosdnodes)) elif len(compnodes) > 0: os.system("all -p " + allify(compnodes) + " " + "echo " + tabfile_contents + " \> " + tabfile) else: # leave it on this starting machine at least os.system("echo " + tabfile_contents + " > " + tabfile) # format and initial pvfs layout on osd nodes. The machine where # this script runs must be one of the compnodes so it can talk to # all the OSDs with iscsi. (Or could rsh to one.) for n in osdnodes: if datahandles.has_key(n): d = datahandles[n][0] else: d = 0 if metahandles.has_key(n): m = metahandles[n][0] else: m = 0 if m == roothandle: s = " " + str(m) + " " + fsconf else: s = " " #print pvfs_init + " " + n + " " + str(d) + " " + str(m) + s ret = os.system(pvfs_init + " " + n + " " + str(d) + " " + str(m) + s) if ret: print >>sys.stderr, pvfs_init + " failed" # just format and create the partition on these if options["pvfs_osd_integrated"] == "yes": for n in mypvfsnodes: ret = os.system(pvfs_osd_integrated_init + " " + n + " " + str(pid)) if ret: print >>sys.stderr, pvfs_osd_integrated_init + " failed" | 9ac094c424de1142f8f62377c0610dccd1363cb4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11094/9ac094c424de1142f8f62377c0610dccd1363cb4/perf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
13332,
468,
2727,
1404,
12755,
598,
8626,
3318,
434,
2199,
309,
15593,
312,
879,
90,
2556,
4690,
273,
9770,
2556,
4690,
225,
309,
702,
9614,
27197,
11929,
422,
315,
7222,
17,
4778,
6,
578,
521,
702,
9614,
27197,
11929,
422,
315,
3901,
17,
27197,
6877,
312,
879,
90,
2556,
4690,
273,
306,
92,
364,
619,
316,
312,
879,
90,
2556,
4690,
309,
619,
486,
316,
28419,
1145,
65,
309,
702,
9614,
27197,
11929,
422,
315,
7222,
17,
4778,
6877,
312,
879,
90,
2556,
4690,
273,
306,
92,
364,
619,
316,
312,
879,
90,
2556,
4690,
309,
619,
486,
316,
5100,
304,
1145,
65,
225,
468,
3792,
1390,
358,
9770,
2556,
2199,
364,
290,
316,
312,
879,
90,
2556,
4690,
30,
309,
702,
9614,
476,
67,
1425,
67,
768,
11929,
422,
315,
9707,
6877,
1140,
18,
4299,
2932,
1310,
84,
315,
397,
1842,
1214,
397,
2206,
2556,
18,
3923,
315,
397,
290,
397,
6153,
397,
1842,
1214,
13,
469,
30,
1140,
18,
4299,
2932,
1310,
84,
315,
397,
1842,
1214,
397,
2206,
95,
2556,
18,
3923,
16,
3567,
18,
3923,
10951,
397,
290,
397,
27342,
315,
397,
290,
397,
6153,
397,
1842,
1214,
13,
225,
468,
787,
1140,
72,
5774,
309,
562,
12,
538,
72,
4690,
13,
405,
374,
30,
309,
702,
9614,
5697,
11929,
422,
315,
5645,
2556,
6877,
5344,
416,
273,
315,
20566,
5344,
300,
88,
1853,
2556,
300,
83,
963,
33,
2643,
713,
81,
6555,
342,
5645,
19,
29672,
10951,
397,
612,
397,
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,
787,
13332,
468,
2727,
1404,
12755,
598,
8626,
3318,
434,
2199,
309,
15593,
312,
879,
90,
2556,
4690,
273,
9770,
2556,
4690,
225,
309,
702,
9614,
27197,
11929,
422,
315,
7222,
17,
4778,
6,
578,
521,
702,
9614,
27197,
11929,
422,
315,
3901,
17,
27197,
6877,
312,
879,
90,
2556,
4690,
273,
306,
92,
364,
619,
316,
312,
879,
90,
2556,
4690,
309,
619,
486,
316,
28419,
1145,
65,
309,
702,
9614,
27197,
11929,
422,
315,
7222,
17,
4778,
6877,
312,
879,
90,
2556,
4690,
273,
306,
92,
364,
619,
316,
312,
879,
90,
2556,
4690,
309,
619,
486,
316,
5100,
304,
1145,
65,
225,
468,
3792,
1390,
358,
9770,
2556,
2199,
364,
290,
316,
312,
879,
90,
2
] |
"l (=%s) must be an iterable of %s integers" %(l, n)) compositions = [l] | "arg (=%s) must be an iterable of %s integers" %(arg, n)) compositions = [arg] | def iter_morphisms(self, l=None, codomain=None, min_length=1): r""" Iterate over all morphisms with domain ``self`` and the given codmain. | 564ffdb70e6edfcbc0b0fa7b79a0926d1d565df3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/564ffdb70e6edfcbc0b0fa7b79a0926d1d565df3/words.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
67,
81,
7657,
23749,
12,
2890,
16,
328,
33,
7036,
16,
11012,
1530,
33,
7036,
16,
1131,
67,
2469,
33,
21,
4672,
436,
8395,
11436,
1879,
777,
14354,
23749,
598,
2461,
12176,
2890,
10335,
471,
326,
864,
11012,
5254,
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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335,
471,
326,
864,
11012,
5254,
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
] |
m_width = size[ 2 ] - size[ 0 ] m_height = size[ 3 ] - size[ 1 ] | try: m_width = size[ 2 ] - size[ 0 ] m_height = size[ 3 ] - size[ 1 ] except: m_width = r.width m_height = r.height | def return_formatedtext( self, sel_list ): """ receives a list of indexex of elements to be used and returns a array with XML_FormatText ready to print (with its elements x, y, width and height already calculated) """ x, y = 0, 0 item = self.infoitem | 4eeccde8e715e3848d141b118b26dc1f8c7a74fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/4eeccde8e715e3848d141b118b26dc1f8c7a74fc/info_area.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
327,
67,
687,
690,
955,
12,
365,
16,
357,
67,
1098,
262,
30,
3536,
17024,
279,
666,
434,
770,
338,
434,
2186,
358,
506,
1399,
471,
1135,
279,
526,
598,
3167,
67,
1630,
1528,
5695,
358,
1172,
261,
1918,
2097,
2186,
619,
16,
677,
16,
1835,
471,
2072,
1818,
8894,
13,
3536,
619,
16,
677,
273,
374,
16,
374,
225,
761,
273,
365,
18,
1376,
1726,
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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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
327,
67,
687,
690,
955,
12,
365,
16,
357,
67,
1098,
262,
30,
3536,
17024,
279,
666,
434,
770,
338,
434,
2186,
358,
506,
1399,
471,
1135,
279,
526,
598,
3167,
67,
1630,
1528,
5695,
358,
1172,
261,
1918,
2097,
2186,
619,
16,
677,
16,
1835,
471,
2072,
1818,
8894,
13,
3536,
619,
16,
677,
273,
374,
16,
374,
225,
761,
273,
365,
18,
1376,
1726,
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
] |
assert(original) | def _archive_dir(mailbox_name, final_archive_name, type): """Archive a 'maildir' or 'MH' style mailbox - used by archive_mailbox()""" assert(mailbox_name) assert(final_archive_name) assert(type) original = None archive = None stats = Stats(mailbox_name, final_archive_name) delete_queue = [] if type == "maildir": original = mailbox.Maildir(mailbox_name) elif type == "mh": original = mailbox.MHMailbox(mailbox_name) else: unexpected_error("unknown type: %s" % type) assert(original) cache = IdentityCache(mailbox_name) for msg in original: if not msg: vprint("ignoring invalid message '%s'" % get_filename(msg)) continue msg_size = sizeof_message(msg) stats.another_message(msg_size) vprint("processing message '%s'" % msg.get('Message-ID')) if options.warn_duplicates: cache.warn_if_dupe(msg) if should_archive(msg): stats.another_archived(msg_size) if options.delete_old_mail: vprint("decision: delete message") else: vprint("decision: archive message") if not options.dry_run: if not archive: archive = ArchiveMbox(final_archive_name) if type == "maildir": add_status_headers(msg) archive.write(msg) if not options.dry_run and not options.copy_old_mail: delete_queue.append(get_filename(msg)) else: vprint("decision: retain message") vprint("finished reading messages") if not options.dry_run: if archive: archive.close() archive.finalise() for file_name in delete_queue: if os.path.isfile(file_name): vprint("removing original message: '%s'" % file_name) os.remove(file_name) if not options.quiet: stats.display() | c0f0ad33d781def6aaf028ff99f368b87ed0e1f7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1746/c0f0ad33d781def6aaf028ff99f368b87ed0e1f7/archivemail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10686,
67,
1214,
12,
4408,
2147,
67,
529,
16,
727,
67,
10686,
67,
529,
16,
618,
4672,
3536,
7465,
279,
296,
2540,
545,
481,
11,
578,
296,
49,
44,
11,
2154,
14187,
300,
1399,
635,
5052,
67,
4408,
2147,
1435,
8395,
1815,
12,
4408,
2147,
67,
529,
13,
1815,
12,
6385,
67,
10686,
67,
529,
13,
1815,
12,
723,
13,
2282,
273,
599,
5052,
273,
599,
3177,
273,
11486,
12,
4408,
2147,
67,
529,
16,
727,
67,
10686,
67,
529,
13,
1430,
67,
4000,
273,
5378,
225,
309,
618,
422,
315,
2540,
545,
481,
6877,
2282,
273,
14187,
18,
49,
69,
545,
481,
12,
4408,
2147,
67,
529,
13,
1327,
618,
422,
315,
81,
76,
6877,
2282,
273,
14187,
18,
49,
44,
30239,
12,
4408,
2147,
67,
529,
13,
469,
30,
9733,
67,
1636,
2932,
8172,
618,
30,
738,
87,
6,
738,
618,
13,
225,
1247,
273,
7808,
1649,
12,
4408,
2147,
67,
529,
13,
225,
364,
1234,
316,
2282,
30,
309,
486,
1234,
30,
331,
1188,
2932,
724,
6053,
2057,
883,
1995,
87,
4970,
738,
336,
67,
3459,
12,
3576,
3719,
1324,
1234,
67,
1467,
273,
13726,
67,
2150,
12,
3576,
13,
3177,
18,
304,
3011,
67,
2150,
12,
3576,
67,
1467,
13,
331,
1188,
2932,
10632,
883,
1995,
87,
4970,
738,
1234,
18,
588,
2668,
1079,
17,
734,
26112,
309,
702,
18,
8935,
67,
22449,
30,
1247,
18,
8935,
67,
430,
67,
2544,
347,
12,
3576,
13,
309,
1410,
67,
10686,
12,
3576,
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,
10686,
67,
1214,
12,
4408,
2147,
67,
529,
16,
727,
67,
10686,
67,
529,
16,
618,
4672,
3536,
7465,
279,
296,
2540,
545,
481,
11,
578,
296,
49,
44,
11,
2154,
14187,
300,
1399,
635,
5052,
67,
4408,
2147,
1435,
8395,
1815,
12,
4408,
2147,
67,
529,
13,
1815,
12,
6385,
67,
10686,
67,
529,
13,
1815,
12,
723,
13,
2282,
273,
599,
5052,
273,
599,
3177,
273,
11486,
12,
4408,
2147,
67,
529,
16,
727,
67,
10686,
67,
529,
13,
1430,
67,
4000,
273,
5378,
225,
309,
618,
422,
315,
2540,
545,
481,
6877,
2282,
273,
14187,
18,
49,
69,
545,
481,
12,
4408,
2147,
67,
529,
13,
1327,
618,
422,
315,
81,
76,
6877,
2282,
2
] |
|
print("[{1:{0}}/{2:{0}}] {3}".format( | print("[{1:{0}}{2}] {3}".format( | def work(): # A worker thread. try: while True: try: test, args_tuple = next(pending) except StopIteration: output.put((None, None, None, None)) return # -E is needed by some tests, e.g. test_import popen = Popen([sys.executable, '-E', '-m', 'test.regrtest', '--slaveargs', json.dumps(args_tuple)], stdout=PIPE, stderr=PIPE, universal_newlines=True, close_fds=True) stdout, stderr = popen.communicate() # Strip last refcount output line if it exists, since it # comes from the shutdown of the interpreter in the subcommand. stderr = debug_output_pat.sub("", stderr) stdout, _, result = stdout.strip().rpartition("\n") if not result: output.put((None, None, None, None)) return result = json.loads(result) output.put((test, stdout.rstrip(), stderr.rstrip(), result)) except BaseException: output.put((None, None, None, None)) raise | 147fdd098ed939bdfe2e79a9a1e00bbd3418405d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/147fdd098ed939bdfe2e79a9a1e00bbd3418405d/regrtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1440,
13332,
468,
432,
4322,
2650,
18,
775,
30,
1323,
1053,
30,
775,
30,
1842,
16,
833,
67,
8052,
273,
1024,
12,
9561,
13,
1335,
16179,
30,
876,
18,
458,
12443,
7036,
16,
599,
16,
599,
16,
599,
3719,
327,
468,
300,
41,
353,
3577,
635,
2690,
7434,
16,
425,
18,
75,
18,
1842,
67,
5666,
30925,
273,
14339,
3816,
9499,
18,
17751,
16,
2400,
41,
2187,
2400,
81,
2187,
296,
3813,
18,
1574,
3797,
395,
2187,
3534,
27352,
1968,
2187,
1163,
18,
13302,
1121,
12,
1968,
67,
8052,
13,
6487,
3909,
33,
27602,
16,
4514,
33,
27602,
16,
26182,
67,
31276,
33,
5510,
16,
1746,
67,
74,
2377,
33,
5510,
13,
3909,
16,
4514,
273,
30925,
18,
5702,
318,
2659,
1435,
468,
15589,
1142,
1278,
1883,
876,
980,
309,
518,
1704,
16,
3241,
518,
468,
14535,
628,
326,
5731,
434,
326,
16048,
316,
326,
18856,
18,
4514,
273,
1198,
67,
2844,
67,
16330,
18,
1717,
2932,
3113,
4514,
13,
3909,
16,
389,
16,
563,
273,
3909,
18,
6406,
7675,
86,
10534,
31458,
82,
7923,
309,
486,
563,
30,
876,
18,
458,
12443,
7036,
16,
599,
16,
599,
16,
599,
3719,
327,
563,
273,
1163,
18,
17135,
12,
2088,
13,
876,
18,
458,
12443,
3813,
16,
3909,
18,
86,
6406,
9334,
4514,
18,
86,
6406,
9334,
563,
3719,
1335,
26778,
30,
876,
18,
458,
12443,
7036,
16,
599,
16,
599,
16,
599,
3719,
1002,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1440,
13332,
468,
432,
4322,
2650,
18,
775,
30,
1323,
1053,
30,
775,
30,
1842,
16,
833,
67,
8052,
273,
1024,
12,
9561,
13,
1335,
16179,
30,
876,
18,
458,
12443,
7036,
16,
599,
16,
599,
16,
599,
3719,
327,
468,
300,
41,
353,
3577,
635,
2690,
7434,
16,
425,
18,
75,
18,
1842,
67,
5666,
30925,
273,
14339,
3816,
9499,
18,
17751,
16,
2400,
41,
2187,
2400,
81,
2187,
296,
3813,
18,
1574,
3797,
395,
2187,
3534,
27352,
1968,
2187,
1163,
18,
13302,
1121,
12,
1968,
67,
8052,
13,
6487,
3909,
33,
27602,
16,
4514,
33,
27602,
16,
26182,
67,
31276,
33,
5510,
16,
1746,
67,
74,
2377,
33,
5510,
13,
3909,
16,
4514,
273,
30925,
18,
2
] |
"""Helper function for break/clear parsing -- may be overridden.""" | """Helper function for break/clear parsing -- may be overridden. lookupmodule() translates (possibly incomplete) file or module name into an absolute file name. """ if os.path.isabs(filename) and os.path.exists(filename): return filename f = os.path.join(sys.path[0], filename) if os.path.exists(f) and self.canonic(f) == self.mainpyfile: return f | def lookupmodule(self, filename): """Helper function for break/clear parsing -- may be overridden.""" root, ext = os.path.splitext(filename) if ext == '': filename = filename + '.py' if os.path.isabs(filename): return filename for dirname in sys.path: while os.path.islink(dirname): dirname = os.readlink(dirname) fullname = os.path.join(dirname, filename) if os.path.exists(fullname): return fullname return None | 25b38c89690e79e8f3bc78245b73017eed07f42e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/25b38c89690e79e8f3bc78245b73017eed07f42e/pdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3689,
2978,
12,
2890,
16,
1544,
4672,
3536,
2276,
445,
364,
898,
19,
8507,
5811,
1493,
2026,
506,
11000,
18,
225,
3689,
2978,
1435,
2162,
815,
261,
917,
8781,
14715,
13,
585,
578,
1605,
508,
1368,
392,
4967,
585,
508,
18,
3536,
309,
1140,
18,
803,
18,
291,
5113,
12,
3459,
13,
471,
225,
1140,
18,
803,
18,
1808,
12,
3459,
4672,
327,
1544,
284,
273,
1140,
18,
803,
18,
5701,
12,
9499,
18,
803,
63,
20,
6487,
1544,
13,
309,
225,
1140,
18,
803,
18,
1808,
12,
74,
13,
471,
365,
18,
4169,
15506,
12,
74,
13,
422,
365,
18,
5254,
2074,
768,
30,
327,
284,
1365,
16,
1110,
273,
1140,
18,
803,
18,
4939,
408,
12,
3459,
13,
309,
1110,
422,
875,
30,
1544,
273,
1544,
397,
2418,
2074,
11,
309,
1140,
18,
803,
18,
291,
5113,
12,
3459,
4672,
327,
1544,
364,
4283,
316,
2589,
18,
803,
30,
1323,
1140,
18,
803,
18,
291,
1232,
12,
12287,
4672,
4283,
273,
1140,
18,
896,
1232,
12,
12287,
13,
13321,
273,
1140,
18,
803,
18,
5701,
12,
12287,
16,
1544,
13,
309,
1140,
18,
803,
18,
1808,
12,
21885,
4672,
327,
13321,
327,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3689,
2978,
12,
2890,
16,
1544,
4672,
3536,
2276,
445,
364,
898,
19,
8507,
5811,
1493,
2026,
506,
11000,
18,
225,
3689,
2978,
1435,
2162,
815,
261,
917,
8781,
14715,
13,
585,
578,
1605,
508,
1368,
392,
4967,
585,
508,
18,
3536,
309,
1140,
18,
803,
18,
291,
5113,
12,
3459,
13,
471,
225,
1140,
18,
803,
18,
1808,
12,
3459,
4672,
327,
1544,
284,
273,
1140,
18,
803,
18,
5701,
12,
9499,
18,
803,
63,
20,
6487,
1544,
13,
309,
225,
1140,
18,
803,
18,
1808,
12,
74,
13,
471,
365,
18,
4169,
15506,
12,
74,
13,
422,
365,
18,
5254,
2074,
768,
30,
327,
284,
1365,
16,
1110,
273,
1140,
18,
803,
18,
4939,
408,
12,
2
] |
nid = self.search(cr, uid, [('fields_id','=',res[0]),('res_id','=',res_id)]) | ucid = self.pool.get('res.users').browse(cr, uid, uid).company_id.id nid = self.search(cr, uid, [('fields_id','=',res[0]),('res_id','=',res_id),('company_id','=',ucid)]) | def get(self, cr, uid, name, model, res_id=False, context={}): cr.execute('select id from ir_model_fields where name=%s and model=%s', (name, model)) res = cr.fetchone() if res: nid = self.search(cr, uid, [('fields_id','=',res[0]),('res_id','=',res_id)]) if nid: d = self.browse(cr, uid, nid[0], context).value return (d and int(d.split(',')[1])) or False return False | 3bf4d5294d9ceaba1307518e5852ce245f94bf45 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/3bf4d5294d9ceaba1307518e5852ce245f94bf45/ir_property.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
4422,
16,
4555,
16,
508,
16,
938,
16,
400,
67,
350,
33,
8381,
16,
819,
12938,
4672,
4422,
18,
8837,
2668,
4025,
612,
628,
9482,
67,
2284,
67,
2821,
1625,
508,
5095,
87,
471,
938,
5095,
87,
2187,
261,
529,
16,
938,
3719,
400,
273,
4422,
18,
5754,
476,
1435,
309,
400,
30,
6232,
350,
273,
365,
18,
6011,
18,
588,
2668,
455,
18,
5577,
16063,
25731,
12,
3353,
16,
4555,
16,
4555,
2934,
16840,
67,
350,
18,
350,
19416,
273,
365,
18,
3072,
12,
3353,
16,
4555,
16,
306,
2668,
2821,
67,
350,
17023,
33,
2187,
455,
63,
20,
65,
3631,
2668,
455,
67,
350,
17023,
33,
2187,
455,
67,
350,
3631,
2668,
16840,
67,
350,
17023,
33,
2187,
5286,
350,
13,
5717,
309,
19416,
30,
302,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
19416,
63,
20,
6487,
819,
2934,
1132,
327,
261,
72,
471,
509,
12,
72,
18,
4939,
12,
2187,
6134,
63,
21,
22643,
578,
1083,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
4422,
16,
4555,
16,
508,
16,
938,
16,
400,
67,
350,
33,
8381,
16,
819,
12938,
4672,
4422,
18,
8837,
2668,
4025,
612,
628,
9482,
67,
2284,
67,
2821,
1625,
508,
5095,
87,
471,
938,
5095,
87,
2187,
261,
529,
16,
938,
3719,
400,
273,
4422,
18,
5754,
476,
1435,
309,
400,
30,
6232,
350,
273,
365,
18,
6011,
18,
588,
2668,
455,
18,
5577,
16063,
25731,
12,
3353,
16,
4555,
16,
4555,
2934,
16840,
67,
350,
18,
350,
19416,
273,
365,
18,
3072,
12,
3353,
16,
4555,
16,
306,
2668,
2821,
67,
350,
17023,
33,
2187,
455,
63,
20,
65,
3631,
2668,
455,
67,
350,
17023,
33,
2187,
455,
67,
350,
3631,
2668,
2
] |
def fl_set_xyplot_alphaytics(ob, m, s): """ fl_set_xyplot_alphaytics(ob, m, s) """ _fl_set_xyplot_alphaytics(ob, m, s) | def fl_set_xyplot_alphaytics(obj, m, s): """ fl_set_xyplot_alphaytics(obj, m, s) """ _fl_set_xyplot_alphaytics(obj, m, s) | def fl_set_xyplot_alphaytics(ob, m, s): """ fl_set_xyplot_alphaytics(ob, m, s) """ _fl_set_xyplot_alphaytics(ob, m, s) | 8765c710f695de392f6fc7c664c746ec98668b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/8765c710f695de392f6fc7c664c746ec98668b1d/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
1698,
4032,
67,
287,
844,
528,
88,
2102,
12,
2603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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
1698,
4032,
67,
287,
844,
528,
88,
2102,
12,
2603,
16,
312,
16,
272,
4672,
3536,
1183,
67,
542,
67,
1698,
4032,
67,
287,
844,
528,
88,
2102,
12,
2603,
16,
312,
16,
272,
13,
3536,
225,
389,
2242,
67,
542,
67,
1698,
4032,
67,
287,
844,
528,
88,
2102,
12,
2603,
16,
312,
16,
272,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
`GF(2)`. See help for SR. | `\mathbb{F}_2`. See help for SR. | def __init__(self, n=1, r=1, c=1, e=4, star=False, **kwargs): r""" Small Scale Variants of the AES polynomial system constructor over `GF(2)`. See help for SR. EXAMPLE:: sage: sr = mq.SR(gf2=True) sage: sr SR(1,1,1,4) """ SR_generic.__init__(self, n, r, c, e, star, **kwargs) self._correct_only = kwargs.get("correct_only", False) self._biaffine_only = kwargs.get("biaffine_only", True) | d2531bfd55e8dc010cd9c1e87cc62d2c514562d4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/d2531bfd55e8dc010cd9c1e87cc62d2c514562d4/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
290,
33,
21,
16,
436,
33,
21,
16,
276,
33,
21,
16,
425,
33,
24,
16,
10443,
33,
8381,
16,
2826,
4333,
4672,
436,
8395,
9425,
454,
12591,
11487,
4388,
434,
326,
15986,
16991,
2619,
3885,
1879,
1375,
64,
15949,
9897,
95,
42,
9044,
22,
8338,
2164,
2809,
364,
19145,
18,
225,
5675,
21373,
2866,
225,
272,
410,
30,
9133,
273,
18327,
18,
10090,
12,
75,
74,
22,
33,
5510,
13,
272,
410,
30,
9133,
19145,
12,
21,
16,
21,
16,
21,
16,
24,
13,
3536,
19145,
67,
13540,
16186,
2738,
972,
12,
2890,
16,
290,
16,
436,
16,
276,
16,
425,
16,
10443,
16,
2826,
4333,
13,
365,
6315,
6746,
67,
3700,
273,
1205,
18,
588,
2932,
6746,
67,
3700,
3113,
1083,
13,
365,
6315,
70,
1155,
1403,
558,
67,
3700,
273,
1205,
18,
588,
2932,
70,
1155,
1403,
558,
67,
3700,
3113,
1053,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
290,
33,
21,
16,
436,
33,
21,
16,
276,
33,
21,
16,
425,
33,
24,
16,
10443,
33,
8381,
16,
2826,
4333,
4672,
436,
8395,
9425,
454,
12591,
11487,
4388,
434,
326,
15986,
16991,
2619,
3885,
1879,
1375,
64,
15949,
9897,
95,
42,
9044,
22,
8338,
2164,
2809,
364,
19145,
18,
225,
5675,
21373,
2866,
225,
272,
410,
30,
9133,
273,
18327,
18,
10090,
12,
75,
74,
22,
33,
5510,
13,
272,
410,
30,
9133,
19145,
12,
21,
16,
21,
16,
21,
16,
24,
13,
3536,
19145,
67,
13540,
16186,
2738,
972,
12,
2890,
16,
290,
16,
436,
16,
276,
16,
425,
16,
10443,
16,
2826,
4333,
13,
365,
6315,
6746,
67,
2
] |
if not first: self.response.out.write(',"' + b.name + '"\n') else: self.response.out.write('"' + b.name + '"\n') first = False self.response.out.write(']}\n') | q = BenchmarkResult.all() q.ancestor(b) q.order('-__key__') results = q.fetch(10000) m = {} revs = {} for r in results: if r.builder not in m: m[r.builder] = {} m[r.builder][r.num] = r.nsperop revs[r.num] = 0 builders[r.builder] = 0 data[b.name] = m builders = list(builders.keys()) builders.sort() revs = list(revs.keys()) revs.sort() first = revs[0] last = revs[-1] if len(revs) > 80: last = revs[-80] names = list(data.keys()) names.sort() benchmarks = [] for name in names: m = data[name] builds = [] for builder in builders: if builder not in m: builds.append({"url":""}) continue d = m[builder] max = 0 tot = 0 ntot = 0 for i in range(first, last+1): if i not in d: continue val = d[i] if max < val: max = val tot += val ntot += 1 if max == 0: builds.append({"url":""}) continue avg = tot / ntot if 2*avg > max: max = 2*avg encoding = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" s = "" for i in range(first, last+1): if i not in d: s += "_" continue val = d[i] s += encoding[int((len(encoding)-1)*val/max)] builds.append({"url": "http://chart.apis.google.com/chart?cht=ls&chd=s:"+s}) benchmarks.append({"name": name, "builds": builds}) bs = [] for b in builders: f = b.split('-', 3) goos = f[0] goarch = f[1] note = "" if len(f) > 2: note = f[2] bs.append({'goos': goos, 'goarch': goarch, 'note': note}) values = {"benchmarks": benchmarks, "builders": bs} path = os.path.join(os.path.dirname(__file__), 'benchmarks.html') return template.render(path, values) | def get(self): q = Benchmark.all() bs = q.fetch(10000) | d5b946f43dd9078baac61400559a67557a9dfc53 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6483/d5b946f43dd9078baac61400559a67557a9dfc53/gobuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
4672,
1043,
273,
21854,
18,
454,
1435,
7081,
273,
1043,
18,
5754,
12,
23899,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
336,
12,
2890,
4672,
1043,
273,
21854,
18,
454,
1435,
7081,
273,
1043,
18,
5754,
12,
23899,
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
] |
model.append(["None"]) model.append(["Classic"]) model.append(["Fade"]) model.append(["Spotlight"]) model.append(["Zoom"]) model.append(["Squish"]) model.append(["3D Turn"]) model.append(["3D Spotlight Turn"]) model.append(["Glow"]) model.append(["Custom"]) | model.append([_("None")]) model.append([_("Classic")]) model.append([_("Fade")]) model.append([_("Spotlight")]) model.append([_("Zoom")]) model.append([_("Squish")]) model.append([_("3D Turn")]) model.append([_("3D Spotlight Turn")]) model.append([_("Glow")]) model.append([_("Custom")]) | def setup_effect(self, group, key, dropdown): self.effects_dd = dropdown model = gtk.ListStore(str) model.append(["None"]) model.append(["Classic"]) model.append(["Fade"]) model.append(["Spotlight"]) model.append(["Zoom"]) model.append(["Squish"]) model.append(["3D Turn"]) model.append(["3D Spotlight Turn"]) model.append(["Glow"]) model.append(["Custom"]) ##Always last dropdown.set_model(model) cell = gtk.CellRendererText() dropdown.pack_start(cell) dropdown.add_attribute(cell,'text',0) | ffe263f9ac6a47bc93b6848a46348e19351356c4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8416/ffe263f9ac6a47bc93b6848a46348e19351356c4/awnPreferences.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
13867,
12,
2890,
16,
1041,
16,
498,
16,
13972,
4672,
365,
18,
13867,
87,
67,
449,
273,
13972,
938,
273,
22718,
18,
682,
2257,
12,
701,
13,
938,
18,
6923,
3816,
67,
2932,
7036,
7923,
5717,
938,
18,
6923,
3816,
67,
2932,
797,
335,
7923,
5717,
938,
18,
6923,
3816,
67,
2932,
42,
2486,
7923,
5717,
938,
18,
6923,
3816,
67,
2932,
17292,
5099,
7923,
5717,
938,
18,
6923,
3816,
67,
2932,
11497,
7923,
5717,
938,
18,
6923,
3816,
67,
2932,
55,
372,
1468,
7923,
5717,
938,
18,
6923,
3816,
67,
2932,
23,
40,
22425,
7923,
5717,
938,
18,
6923,
3816,
67,
2932,
23,
40,
26523,
5099,
22425,
7923,
5717,
938,
18,
6923,
3816,
67,
2932,
43,
821,
7923,
5717,
938,
18,
6923,
3816,
67,
2932,
3802,
7923,
5717,
7541,
18806,
1142,
13972,
18,
542,
67,
2284,
12,
2284,
13,
2484,
273,
22718,
18,
4020,
6747,
1528,
1435,
13972,
18,
2920,
67,
1937,
12,
3855,
13,
13972,
18,
1289,
67,
4589,
12,
3855,
11189,
955,
2187,
20,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
13867,
12,
2890,
16,
1041,
16,
498,
16,
13972,
4672,
365,
18,
13867,
87,
67,
449,
273,
13972,
938,
273,
22718,
18,
682,
2257,
12,
701,
13,
938,
18,
6923,
3816,
67,
2932,
7036,
7923,
5717,
938,
18,
6923,
3816,
67,
2932,
797,
335,
7923,
5717,
938,
18,
6923,
3816,
67,
2932,
42,
2486,
7923,
5717,
938,
18,
6923,
3816,
67,
2932,
17292,
5099,
7923,
5717,
938,
18,
6923,
3816,
67,
2932,
11497,
7923,
5717,
938,
18,
6923,
3816,
67,
2932,
55,
372,
1468,
7923,
5717,
938,
18,
6923,
3816,
67,
2932,
23,
40,
22425,
7923,
5717,
938,
18,
6923,
3816,
67,
2932,
23,
40,
26523,
5099,
22425,
7923,
5717,
938,
18,
6923,
3816,
67,
2932,
2
] |
self.save(sage.misc.misc.SAGE_TMP + '/test.png', | self.save(DOCTEST_MODE_FILE, | def show(self, filename=None, dpi=DEFAULT_DPI, figsize=DEFAULT_FIGSIZE, axes = None, **args): r""" Show this graphics array using the default viewer. | 016a4d7acc0a5c729ac99155cd61974d0e7c23fa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/016a4d7acc0a5c729ac99155cd61974d0e7c23fa/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
16,
1544,
33,
7036,
16,
16361,
33,
5280,
67,
40,
1102,
16,
14697,
33,
5280,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2405,
12,
2890,
16,
1544,
33,
7036,
16,
16361,
33,
5280,
67,
40,
1102,
16,
14697,
33,
5280,
67,
5236,
4574,
16,
6515,
273,
599,
16,
2826,
1968,
4672,
436,
8395,
9674,
333,
17313,
526,
1450,
326,
805,
14157,
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
] |
return "\\csch" | """ Returns the LaTeX code for csch. EXAMPLES: sage: latex(csch) \text{csch} """ return r"\text{csch}" | def _latex_(self): return "\\csch" | 2cd3c06f5dcc27b88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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
26264,
67,
12,
2890,
4672,
327,
8422,
2143,
343,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
-t: decode string 'Aladdin:open sesame'""" | -t: encode and decode string 'Aladdin:open sesame'"""%sys.argv[0] | def test(): """Small test program""" import sys, getopt try: opts, args = getopt.getopt(sys.argv[1:], 'deut') except getopt.error, msg: sys.stdout = sys.stderr print msg print """usage: basd64 [-d] [-e] [-u] [-t] [file|-] -d, -u: decode -e: encode (default) -t: decode string 'Aladdin:open sesame'""" sys.exit(2) func = encode for o, a in opts: if o == '-e': func = encode if o == '-d': func = decode if o == '-u': func = decode if o == '-t': test1(); return if args and args[0] != '-': func(open(args[0], 'rb'), sys.stdout) else: func(sys.stdin, sys.stdout) | 4531fb48abb16344cd634a47a4210b40592240cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/4531fb48abb16344cd634a47a4210b40592240cd/base64.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
3536,
19187,
1842,
5402,
8395,
1930,
2589,
16,
336,
3838,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
323,
322,
6134,
1335,
336,
3838,
18,
1636,
16,
1234,
30,
2589,
18,
10283,
273,
2589,
18,
11241,
1172,
1234,
1172,
3536,
9167,
30,
2580,
72,
1105,
23059,
72,
65,
23059,
73,
65,
23059,
89,
65,
23059,
88,
65,
306,
768,
24718,
65,
300,
72,
16,
300,
89,
30,
2495,
300,
73,
30,
2017,
261,
1886,
13,
300,
88,
30,
2017,
471,
2495,
533,
296,
1067,
1289,
267,
30,
3190,
24138,
339,
11,
8395,
9,
9499,
18,
19485,
63,
20,
65,
2589,
18,
8593,
12,
22,
13,
1326,
273,
2017,
364,
320,
16,
279,
316,
1500,
30,
309,
320,
422,
2400,
73,
4278,
1326,
273,
2017,
309,
320,
422,
2400,
72,
4278,
1326,
273,
2495,
309,
320,
422,
2400,
89,
4278,
1326,
273,
2495,
309,
320,
422,
2400,
88,
4278,
1842,
21,
5621,
327,
309,
833,
471,
833,
63,
20,
65,
480,
4014,
30,
1326,
12,
3190,
12,
1968,
63,
20,
6487,
296,
6731,
19899,
2589,
18,
10283,
13,
469,
30,
1326,
12,
9499,
18,
21772,
16,
2589,
18,
10283,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
3536,
19187,
1842,
5402,
8395,
1930,
2589,
16,
336,
3838,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
323,
322,
6134,
1335,
336,
3838,
18,
1636,
16,
1234,
30,
2589,
18,
10283,
273,
2589,
18,
11241,
1172,
1234,
1172,
3536,
9167,
30,
2580,
72,
1105,
23059,
72,
65,
23059,
73,
65,
23059,
89,
65,
23059,
88,
65,
306,
768,
24718,
65,
300,
72,
16,
300,
89,
30,
2495,
300,
73,
30,
2017,
261,
1886,
13,
300,
88,
30,
2017,
471,
2495,
533,
296,
1067,
1289,
267,
30,
3190,
24138,
339,
11,
8395,
9,
9499,
18,
19485,
63,
20,
65,
2589,
18,
8593,
12,
22,
2
] |
return True return False | has_system = True if not has_system: return False | def prerequisiteMet(self, prerequisites): # TODO: we need to implement a hardware detection here... print "prerequisites:", prerequisites met = True if self.neededTag is None: if prerequisites.has_key("tag"): return False else: if prerequisites.has_key("tag"): if not self.neededTag in prerequisites["tag"]: return False else: return False if prerequisites.has_key("satellite"): for sat in prerequisites["satellite"]: if int(sat) not in nimmanager.getConfiguredSats(): return False if prerequisites.has_key("bcastsystem"): for bcastsystem in prerequisites["bcastsystem"]: if nimmanager.hasNimType(bcastsystem): return True return False if prerequisites.has_key("hardware"): for hardware in prerequisites["hardware"]: # TODO: hardware detection met = True return True | a7ebf0a0c2b03f8ffc7244d2b73440be00cb85d2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/a7ebf0a0c2b03f8ffc7244d2b73440be00cb85d2/DreamInfoHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30328,
16608,
1137,
12244,
12,
2890,
16,
30328,
16608,
2997,
4672,
468,
2660,
30,
732,
1608,
358,
2348,
279,
16251,
11649,
2674,
2777,
1172,
315,
683,
822,
16608,
2997,
2773,
16,
30328,
16608,
2997,
5100,
273,
1053,
309,
365,
18,
17471,
1805,
353,
599,
30,
309,
30328,
16608,
2997,
18,
5332,
67,
856,
2932,
2692,
6,
4672,
327,
1083,
469,
30,
309,
30328,
16608,
2997,
18,
5332,
67,
856,
2932,
2692,
6,
4672,
309,
486,
365,
18,
17471,
1805,
316,
30328,
16608,
2997,
9614,
2692,
11929,
30,
327,
1083,
469,
30,
327,
1083,
225,
309,
30328,
16608,
2997,
18,
5332,
67,
856,
2932,
12973,
19345,
6,
4672,
364,
5942,
316,
30328,
16608,
2997,
9614,
12973,
19345,
11929,
30,
309,
509,
12,
12973,
13,
486,
316,
290,
381,
4181,
18,
588,
15334,
55,
2323,
13332,
327,
1083,
309,
30328,
16608,
2997,
18,
5332,
67,
856,
2932,
70,
4155,
4299,
6,
4672,
364,
324,
4155,
4299,
316,
30328,
16608,
2997,
9614,
70,
4155,
4299,
11929,
30,
309,
290,
381,
4181,
18,
5332,
50,
381,
559,
12,
70,
4155,
4299,
4672,
711,
67,
4299,
273,
1053,
309,
486,
711,
67,
4299,
30,
327,
1083,
309,
30328,
16608,
2997,
18,
5332,
67,
856,
2932,
25118,
6,
4672,
364,
16251,
316,
30328,
16608,
2997,
9614,
25118,
11929,
30,
468,
2660,
30,
16251,
11649,
5100,
273,
1053,
327,
1053,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30328,
16608,
1137,
12244,
12,
2890,
16,
30328,
16608,
2997,
4672,
468,
2660,
30,
732,
1608,
358,
2348,
279,
16251,
11649,
2674,
2777,
1172,
315,
683,
822,
16608,
2997,
2773,
16,
30328,
16608,
2997,
5100,
273,
1053,
309,
365,
18,
17471,
1805,
353,
599,
30,
309,
30328,
16608,
2997,
18,
5332,
67,
856,
2932,
2692,
6,
4672,
327,
1083,
469,
30,
309,
30328,
16608,
2997,
18,
5332,
67,
856,
2932,
2692,
6,
4672,
309,
486,
365,
18,
17471,
1805,
316,
30328,
16608,
2997,
9614,
2692,
11929,
30,
327,
1083,
469,
30,
327,
1083,
225,
309,
30328,
16608,
2997,
18,
5332,
67,
856,
2932,
12973,
19345,
6,
4672,
364,
5942,
316,
30328,
16608,
2997,
9614,
12973,
19345,
11929,
30,
2
] |
for child in self.childs: | for child in self.children: | def __setattr__(self, name, value): super(Singleton, self).__setattr__(name, value) if name in ('init', 'update', 'demo'): tools.config[name][self.name] = 1 for child in self.childs: setattr(child, name, value) if name == 'depth': for child in self.childs: setattr(child, name, value + 1) | aa70e5588a3ce204d7ec88cdfe822b32c8d23485 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/aa70e5588a3ce204d7ec88cdfe822b32c8d23485/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1747,
972,
12,
2890,
16,
508,
16,
460,
4672,
2240,
12,
19571,
16,
365,
2934,
972,
542,
1747,
972,
12,
529,
16,
460,
13,
309,
508,
316,
7707,
2738,
2187,
296,
2725,
2187,
296,
27928,
11,
4672,
8513,
18,
1425,
63,
529,
6362,
2890,
18,
529,
65,
273,
404,
364,
1151,
316,
365,
18,
5906,
30,
9241,
12,
3624,
16,
508,
16,
460,
13,
309,
508,
422,
296,
5979,
4278,
364,
1151,
316,
365,
18,
5906,
30,
9241,
12,
3624,
16,
508,
16,
460,
397,
404,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1747,
972,
12,
2890,
16,
508,
16,
460,
4672,
2240,
12,
19571,
16,
365,
2934,
972,
542,
1747,
972,
12,
529,
16,
460,
13,
309,
508,
316,
7707,
2738,
2187,
296,
2725,
2187,
296,
27928,
11,
4672,
8513,
18,
1425,
63,
529,
6362,
2890,
18,
529,
65,
273,
404,
364,
1151,
316,
365,
18,
5906,
30,
9241,
12,
3624,
16,
508,
16,
460,
13,
309,
508,
422,
296,
5979,
4278,
364,
1151,
316,
365,
18,
5906,
30,
9241,
12,
3624,
16,
508,
16,
460,
397,
404,
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
] |
sys_prefix = sys.prefix | sys_prefix = os.path.normpath (sys.prefix) | def replace_sys_prefix (self, config_attr, fallback_postfix, use_exec=0): """Attempts to glean a simple pattern from an installation directory available as a 'sysconfig' attribute: if the directory name starts with the "system prefix" (the one hard-coded in the Makefile and compiled into Python), then replace it with the current installation prefix and return the "relocated" installation directory.""" | 88733f0f28ea664c3d72252269218fbb6db54daf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/88733f0f28ea664c3d72252269218fbb6db54daf/install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
67,
9499,
67,
3239,
261,
2890,
16,
642,
67,
1747,
16,
5922,
67,
2767,
904,
16,
999,
67,
4177,
33,
20,
4672,
3536,
10113,
358,
314,
298,
304,
279,
4143,
1936,
628,
392,
13193,
1867,
2319,
487,
279,
296,
9499,
1425,
11,
1566,
30,
309,
326,
1867,
508,
2542,
598,
326,
315,
4299,
1633,
6,
261,
5787,
1245,
7877,
17,
24808,
316,
326,
4344,
768,
471,
7743,
1368,
6600,
3631,
1508,
1453,
518,
598,
326,
783,
13193,
1633,
471,
327,
326,
315,
266,
1829,
690,
6,
13193,
1867,
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,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
67,
9499,
67,
3239,
261,
2890,
16,
642,
67,
1747,
16,
5922,
67,
2767,
904,
16,
999,
67,
4177,
33,
20,
4672,
3536,
10113,
358,
314,
298,
304,
279,
4143,
1936,
628,
392,
13193,
1867,
2319,
487,
279,
296,
9499,
1425,
11,
1566,
30,
309,
326,
1867,
508,
2542,
598,
326,
315,
4299,
1633,
6,
261,
5787,
1245,
7877,
17,
24808,
316,
326,
4344,
768,
471,
7743,
1368,
6600,
3631,
1508,
1453,
518,
598,
326,
783,
13193,
1633,
471,
327,
326,
315,
266,
1829,
690,
6,
13193,
1867,
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
] |
Subsets and Splits