rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
parents = self._recurse_for_parents(self) if self in parents: raise validators.ValidationError(_("You must not save a category in itself!"))
|
if self.id: if self.parent and self.parent_id == self.id: raise validators.ValidationError(_("You must not save a category in itself!")) for p in self._recurse_for_parents(self): if self.id == p.id: raise validators.ValidationError(_("You must not save a category in itself!"))
|
def save(self): parents = self._recurse_for_parents(self) if self in parents: raise validators.ValidationError(_("You must not save a category in itself!")) if not self.slug: self.slug = slugify(self.name, instance=self) super(Category, self).save()
|
784923c02a6ffad216cb5e8c0cce94ea85661da8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/171/784923c02a6ffad216cb5e8c0cce94ea85661da8/models.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
4672,
309,
365,
18,
350,
30,
309,
365,
18,
2938,
471,
365,
18,
2938,
67,
350,
422,
365,
18,
350,
30,
1002,
11632,
18,
12101,
24899,
2932,
6225,
1297,
486,
1923,
279,
3150,
316,
6174,
4442,
3719,
225,
364,
293,
316,
365,
6315,
29362,
67,
1884,
67,
12606,
12,
2890,
4672,
309,
365,
18,
350,
422,
293,
18,
350,
30,
1002,
11632,
18,
12101,
24899,
2932,
6225,
1297,
486,
1923,
279,
3150,
316,
6174,
4442,
3719,
225,
309,
486,
365,
18,
6436,
30,
365,
18,
6436,
273,
28094,
12,
2890,
18,
529,
16,
791,
33,
2890,
13,
2240,
12,
4457,
16,
365,
2934,
5688,
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,
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1652,
1923,
12,
2890,
4672,
309,
365,
18,
350,
30,
309,
365,
18,
2938,
471,
365,
18,
2938,
67,
350,
422,
365,
18,
350,
30,
1002,
11632,
18,
12101,
24899,
2932,
6225,
1297,
486,
1923,
279,
3150,
316,
6174,
4442,
3719,
225,
364,
293,
316,
365,
6315,
29362,
67,
1884,
67,
12606,
12,
2890,
4672,
309,
365,
18,
350,
422,
293,
18,
350,
30,
1002,
11632,
18,
12101,
24899,
2932,
6225,
1297,
486,
1923,
279,
3150,
316,
6174,
4442,
3719,
225,
309,
486,
365,
18,
6436,
30,
365,
18,
6436,
273,
28094,
12,
2890,
18,
529,
16,
791,
33,
2890,
13,
2240,
12,
4457,
16,
365,
2934,
5688,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self._stop_and_reload.set_icon_name('stock-close')
|
self._stop_and_reload.set_named_icon('stop')
|
def _update_stop_and_reload_icon(self): if self._embed.props.loading: self._stop_and_reload.set_icon_name('stock-close') else: self._stop_and_reload.set_icon_name('stock-continue')
|
09e223a21398240610125c4509404ebcb6dcbcac /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6905/09e223a21398240610125c4509404ebcb6dcbcac/webtoolbar.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
67,
5681,
67,
464,
67,
17517,
67,
3950,
12,
2890,
4672,
309,
365,
6315,
8483,
18,
9693,
18,
15174,
30,
365,
6315,
5681,
67,
464,
67,
17517,
18,
542,
67,
13188,
67,
3950,
2668,
5681,
6134,
469,
30,
365,
6315,
5681,
67,
464,
67,
17517,
18,
542,
67,
3950,
67,
529,
2668,
15381,
17,
17143,
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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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,
389,
2725,
67,
5681,
67,
464,
67,
17517,
67,
3950,
12,
2890,
4672,
309,
365,
6315,
8483,
18,
9693,
18,
15174,
30,
365,
6315,
5681,
67,
464,
67,
17517,
18,
542,
67,
13188,
67,
3950,
2668,
5681,
6134,
469,
30,
365,
6315,
5681,
67,
464,
67,
17517,
18,
542,
67,
3950,
67,
529,
2668,
15381,
17,
17143,
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
] |
fss = macfs.FSSpec(ofname)
|
fss = FSSpec(ofname)
|
def __init__(self, (name, finfo, dlen, rlen), ofp): if type(ofp) == type(''): ofname = ofp ofp = open(ofname, 'w') if os.name == 'mac': fss = macfs.FSSpec(ofname) fss.SetCreatorType('BnHq', 'TEXT') ofp.write('(This file must be converted with BinHex 4.0)\n\n:') hqxer = _Hqxcoderengine(ofp) self.ofp = _Rlecoderengine(hqxer) self.crc = 0 if finfo is None: finfo = FInfo() self.dlen = dlen self.rlen = rlen self._writeinfo(name, finfo) self.state = _DID_HEADER
|
3cc48ceed9d84dd8ea049cba45c2d8356ee7f2e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/3cc48ceed9d84dd8ea049cba45c2d8356ee7f2e5/binhex.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
261,
529,
16,
15190,
16,
302,
1897,
16,
436,
1897,
3631,
434,
84,
4672,
309,
618,
12,
792,
84,
13,
422,
618,
2668,
11,
4672,
434,
529,
273,
434,
84,
434,
84,
273,
1696,
12,
792,
529,
16,
296,
91,
6134,
309,
1140,
18,
529,
422,
296,
5821,
4278,
284,
1049,
273,
478,
1260,
705,
12,
792,
529,
13,
284,
1049,
18,
694,
10636,
559,
2668,
38,
82,
44,
85,
2187,
296,
5151,
6134,
434,
84,
18,
2626,
2668,
12,
2503,
585,
1297,
506,
5970,
598,
16827,
7037,
1059,
18,
20,
5153,
82,
64,
82,
2497,
13,
366,
85,
92,
264,
273,
389,
44,
85,
92,
3396,
8944,
12,
792,
84,
13,
365,
18,
792,
84,
273,
389,
54,
298,
3396,
8944,
12,
76,
85,
92,
264,
13,
365,
18,
22988,
273,
374,
309,
15190,
353,
599,
30,
15190,
273,
478,
966,
1435,
365,
18,
72,
1897,
273,
302,
1897,
365,
18,
1321,
275,
273,
436,
1897,
365,
6315,
2626,
1376,
12,
529,
16,
15190,
13,
365,
18,
2019,
273,
389,
40,
734,
67,
7557,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
261,
529,
16,
15190,
16,
302,
1897,
16,
436,
1897,
3631,
434,
84,
4672,
309,
618,
12,
792,
84,
13,
422,
618,
2668,
11,
4672,
434,
529,
273,
434,
84,
434,
84,
273,
1696,
12,
792,
529,
16,
296,
91,
6134,
309,
1140,
18,
529,
422,
296,
5821,
4278,
284,
1049,
273,
478,
1260,
705,
12,
792,
529,
13,
284,
1049,
18,
694,
10636,
559,
2668,
38,
82,
44,
85,
2187,
296,
5151,
6134,
434,
84,
18,
2626,
2668,
12,
2503,
585,
1297,
506,
5970,
598,
16827,
7037,
1059,
18,
20,
5153,
82,
64,
82,
2497,
13,
366,
85,
92,
264,
273,
389,
44,
85,
92,
3396,
8944,
12,
792,
84,
13,
2
] |
print "PIDF as currently defined is invalid: %s" % str(e)
|
self.output.put("PIDF as currently defined is invalid: %s" % str(e))
|
def republish(self): if self.publication is None: self.output.put("There is no PUBLISH dialog active.") try: self.publication.publish("application", "pidf+xml", self.pidf.toxml()) except BuilderError, e: print "PIDF as currently defined is invalid: %s" % str(e) except: traceback.print_exc()
|
ce4f59f93ca365a5202249524a56dc893aa6ee61 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/ce4f59f93ca365a5202249524a56dc893aa6ee61/sip_publish_presence.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2071,
2394,
12,
2890,
4672,
309,
365,
18,
28631,
353,
599,
30,
365,
18,
2844,
18,
458,
2932,
9828,
353,
1158,
23295,
13462,
6176,
2695,
1199,
13,
775,
30,
365,
18,
28631,
18,
6543,
2932,
3685,
3113,
315,
6610,
74,
15,
2902,
3113,
365,
18,
6610,
74,
18,
869,
2902,
10756,
1335,
5008,
668,
16,
425,
30,
365,
18,
2844,
18,
458,
2932,
16522,
42,
487,
4551,
2553,
353,
2057,
30,
738,
87,
6,
738,
609,
12,
73,
3719,
1335,
30,
10820,
18,
1188,
67,
10075,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2071,
2394,
12,
2890,
4672,
309,
365,
18,
28631,
353,
599,
30,
365,
18,
2844,
18,
458,
2932,
9828,
353,
1158,
23295,
13462,
6176,
2695,
1199,
13,
775,
30,
365,
18,
28631,
18,
6543,
2932,
3685,
3113,
315,
6610,
74,
15,
2902,
3113,
365,
18,
6610,
74,
18,
869,
2902,
10756,
1335,
5008,
668,
16,
425,
30,
365,
18,
2844,
18,
458,
2932,
16522,
42,
487,
4551,
2553,
353,
2057,
30,
738,
87,
6,
738,
609,
12,
73,
3719,
1335,
30,
10820,
18,
1188,
67,
10075,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
sage: L = add([line([[pf[0][0],0],[pf[0][0],pf[1](pf[0][0])]],rgbcolor=(0.7,0.6,0.6)) for pf in rsf.list()])
|
sage: L = add([line([[pf[0][0],0],[pf[0][0],pf[1](x=pf[0][0])]],rgbcolor=(0.7,0.6,0.6)) for pf in rsf.list()])
|
def riemann_sum(self,N,mode=None): """ Returns the piecewise line function defined by the Riemann sums in numerical integration based on a subdivision into N subintervals.
|
291c6b36e98cdcd6ef61ec35f7a3ffe05e362ec0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/291c6b36e98cdcd6ef61ec35f7a3ffe05e362ec0/piecewise.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12347,
351,
1072,
67,
1364,
12,
2890,
16,
50,
16,
3188,
33,
7036,
4672,
3536,
2860,
326,
11151,
2460,
980,
445,
2553,
635,
326,
21688,
351,
1072,
26608,
316,
17409,
12040,
2511,
603,
279,
25741,
1951,
1368,
423,
720,
19812,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12347,
351,
1072,
67,
1364,
12,
2890,
16,
50,
16,
3188,
33,
7036,
4672,
3536,
2860,
326,
11151,
2460,
980,
445,
2553,
635,
326,
21688,
351,
1072,
26608,
316,
17409,
12040,
2511,
603,
279,
25741,
1951,
1368,
423,
720,
19812,
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
] |
std=val*.005 setattr(F,"mean absolute min","%.4g" % (val-2*std))
|
std=val*pmean setattr(F,"mean absolute min","%.4g" % (val-nstd*std))
|
def process_template(tmpl,cnames,cols,voids={},minmax={}): F = genutil.StringConstructor(tmpl) keys = F.keys() match = 0 for c in cnames: if c in keys: match+=1 indx = cnames.index(c)
|
3d69e4a537719e1034fe3d9c5aff20155c424ba8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9170/3d69e4a537719e1034fe3d9c5aff20155c424ba8/table_generator.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
3202,
12,
24717,
16,
71,
1973,
16,
6842,
16,
6459,
87,
28793,
1154,
1896,
12938,
4672,
478,
273,
3157,
1367,
18,
780,
6293,
12,
24717,
13,
225,
1311,
273,
478,
18,
2452,
1435,
845,
273,
374,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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,
1207,
67,
3202,
12,
24717,
16,
71,
1973,
16,
6842,
16,
6459,
87,
28793,
1154,
1896,
12938,
4672,
478,
273,
3157,
1367,
18,
780,
6293,
12,
24717,
13,
225,
1311,
273,
478,
18,
2452,
1435,
845,
273,
374,
364,
276,
316,
276,
1973,
30,
309,
276,
316,
1311,
30,
845,
15,
33,
21,
24732,
273,
276,
1973,
18,
1615,
12,
71,
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
] |
checklink = {"href": self.makelink(linkbase, **{str(checkname):1}), "text": checkname, "stats": stats}
|
url_opts[str(checkname)] = 1 checklink = {"href": self.makelink(linkbase, **url_opts), "text": checkname, "stats": stats} del url_opts[str(checkname)]
|
def getcheckdetails(self, pofilenames, linkbase): """return a list of strings describing the results of checks""" projectstats = self.project.combine_unit_stats(pofilenames) total = max(len(projectstats.get("total", [])), 1) checklinks = [] keys = projectstats.keys() keys.sort() for checkname in keys: if not checkname.startswith("check-"): continue checkcount = len(projectstats[checkname]) checkname = checkname.replace("check-", "", 1) if total and checkcount: stats = self.nlocalize("%d string (%d%%) failed", "%d strings (%d%%) failed", checkcount, checkcount, (checkcount * 100 / total)) checklink = {"href": self.makelink(linkbase, **{str(checkname):1}), "text": checkname, "stats": stats} checklinks += [checklink] return checklinks
|
453fde85a31c143f65673eb2b3585722000751e5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11388/453fde85a31c143f65673eb2b3585722000751e5/indexpage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1893,
6395,
12,
2890,
16,
293,
792,
330,
6809,
16,
29692,
4672,
3536,
2463,
279,
666,
434,
2064,
16868,
326,
1686,
434,
4271,
8395,
1984,
5296,
273,
365,
18,
4406,
18,
14082,
67,
4873,
67,
5296,
12,
84,
792,
330,
6809,
13,
2078,
273,
943,
12,
1897,
12,
4406,
5296,
18,
588,
2932,
4963,
3113,
5378,
13,
3631,
404,
13,
866,
7135,
273,
5378,
1311,
273,
1984,
5296,
18,
2452,
1435,
1311,
18,
3804,
1435,
364,
866,
529,
316,
1311,
30,
309,
486,
866,
529,
18,
17514,
1918,
2932,
1893,
10951,
4672,
1324,
866,
1883,
273,
562,
12,
4406,
5296,
63,
1893,
529,
5717,
866,
529,
273,
866,
529,
18,
2079,
2932,
1893,
17,
3113,
23453,
404,
13,
309,
2078,
471,
866,
1883,
30,
3177,
273,
365,
18,
82,
3729,
554,
27188,
72,
533,
6142,
72,
11438,
13,
2535,
3113,
2213,
72,
2064,
6142,
72,
11438,
13,
2535,
3113,
866,
1883,
16,
866,
1883,
16,
261,
1893,
1883,
380,
2130,
342,
2078,
3719,
880,
67,
4952,
63,
701,
12,
1893,
529,
25887,
273,
404,
866,
1232,
273,
12528,
7547,
6877,
365,
18,
81,
581,
27269,
12,
1232,
1969,
16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
6809,
16,
29692,
4672,
3536,
2463,
279,
666,
434,
2064,
16868,
326,
1686,
434,
4271,
8395,
1984,
5296,
273,
365,
18,
4406,
18,
14082,
67,
4873,
67,
5296,
12,
84,
792,
330,
6809,
13,
2078,
273,
943,
12,
1897,
12,
4406,
5296,
18,
588,
2932,
4963,
3113,
5378,
13,
3631,
404,
13,
866,
7135,
273,
5378,
1311,
273,
1984,
5296,
18,
2452,
1435,
1311,
18,
3804,
1435,
364,
866,
529,
316,
1311,
30,
309,
486,
866,
529,
18,
17514,
1918,
2932,
1893,
10951,
4672,
1324,
866,
1883,
273,
562,
12,
4406,
5296,
63,
1893,
529,
5717,
866,
529,
273,
866,
529,
18,
2079,
2932,
1893,
17,
3113,
23453,
404,
2
] |
uid = self._login(self.uri, self.dbname, self.user, self.pwd)
|
uid = self._login()
|
def check_quality(self, modules, quality_logs): uid = self._login(self.uri, self.dbname, self.user, self.pwd) quality_logs += 'quality-logs' if not uid: return False conn = xmlrpclib.ServerProxy(self.uri + '/xmlrpc/object') final = {} for module in modules: qualityresult = {} test_detail = {} quality_result = self._execute(conn,'execute', self.dbname, uid, self.pwd, 'module.quality.check','check_quality',module) detail_html = '' html = '''<html><body><a name="TOP"></a>''' html +="<h1> Module: %s </h1>"%(quality_result['name']) html += "<h2> Final score: %s</h2>"%(quality_result['final_score']) html += "<div id='tabs'>" html += "<ul>" for x,y,detail in quality_result['check_detail_ids']: test = detail.get('name') msg = detail.get('message','') score = round(float(detail.get('score',0)),2) html += "<li><a href=\"#%s\">%s</a></li>"%(test.replace(' ','-'),test) detail_html +='''<div id=\"%s\"><h3>%s (Score : %s)</h3><font color=red><h5>%s</h5></font>%s</div>'''%(test.replace(' ', '-'), test, score, msg, detail.get('detail', '')) test_detail[test] = (score,msg,detail.get('detail','')) html += "</ul>" html += "%s"%(detail_html) html += "</div></body></html>" if not os.path.isdir(quality_logs): os.mkdir(quality_logs) fp = open('%s/%s.html'%(quality_logs,module),'wb') fp.write(to_decode(html)) fp.close() #final[quality_result['name']] = (quality_result['final_score'],html,test_detail)
|
7272af9417e0ab60cd3a93d1317838a000ac2e99 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12355/7272af9417e0ab60cd3a93d1317838a000ac2e99/base_quality_interrogation.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
16495,
12,
2890,
16,
4381,
16,
9312,
67,
10011,
4672,
4555,
273,
365,
6315,
5819,
1435,
9312,
67,
10011,
1011,
296,
16495,
17,
10011,
11,
309,
486,
4555,
30,
327,
1083,
1487,
273,
2025,
13832,
830,
495,
18,
2081,
3886,
12,
2890,
18,
1650,
397,
1173,
2902,
7452,
19,
1612,
6134,
727,
273,
2618,
364,
1605,
316,
4381,
30,
9312,
2088,
273,
2618,
1842,
67,
8992,
273,
2618,
9312,
67,
2088,
273,
365,
6315,
8837,
12,
4646,
11189,
8837,
2187,
365,
18,
20979,
16,
4555,
16,
365,
18,
27487,
16,
296,
2978,
18,
16495,
18,
1893,
17023,
1893,
67,
16495,
2187,
2978,
13,
7664,
67,
2620,
273,
875,
1729,
273,
9163,
32,
2620,
4438,
3432,
4438,
69,
508,
1546,
10462,
13762,
69,
1870,
6309,
1729,
1011,
6,
32,
76,
21,
34,
5924,
30,
738,
87,
7765,
76,
21,
2984,
17105,
16495,
67,
2088,
3292,
529,
19486,
1729,
1011,
3532,
76,
22,
34,
16269,
4462,
30,
738,
87,
1757,
76,
22,
2984,
17105,
16495,
67,
2088,
3292,
6385,
67,
6355,
19486,
1729,
1011,
3532,
2892,
612,
2218,
16056,
28533,
1729,
1011,
3532,
332,
2984,
364,
619,
16,
93,
16,
8992,
316,
9312,
67,
2088,
3292,
1893,
67,
8992,
67,
2232,
3546,
30,
1842,
273,
7664,
18,
588,
2668,
529,
6134,
1234,
273,
7664,
18,
588,
2668,
2150,
17023,
6134,
4462,
273,
3643,
12,
5659,
12,
8992,
18,
588,
2668,
6355,
2187,
20,
13,
3631,
22,
13,
1729,
1011,
3532,
549,
4438,
69,
3897,
5189,
7,
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,
866,
67,
16495,
12,
2890,
16,
4381,
16,
9312,
67,
10011,
4672,
4555,
273,
365,
6315,
5819,
1435,
9312,
67,
10011,
1011,
296,
16495,
17,
10011,
11,
309,
486,
4555,
30,
327,
1083,
1487,
273,
2025,
13832,
830,
495,
18,
2081,
3886,
12,
2890,
18,
1650,
397,
1173,
2902,
7452,
19,
1612,
6134,
727,
273,
2618,
364,
1605,
316,
4381,
30,
9312,
2088,
273,
2618,
1842,
67,
8992,
273,
2618,
9312,
67,
2088,
273,
365,
6315,
8837,
12,
4646,
11189,
8837,
2187,
365,
18,
20979,
16,
4555,
16,
365,
18,
27487,
16,
296,
2978,
18,
16495,
18,
1893,
17023,
1893,
67,
16495,
2187,
2978,
13,
7664,
67,
2620,
273,
875,
1729,
273,
9163,
32,
2620,
4438,
3432,
4438,
2
] |
if i != j: (-1)**p1 * self._term(i) + (-1)**p2 * self._term(j) else: return (-1)**p1 * self._term(i) def simple_roots(self): return [ self.root(i, i+1,0,1) for i in range(self.n-1) ] + [self.root(self.n, self.n, 0, 0)] def positive_roots(self): return [ self.root(i,j,0,p) for i in range(j-1) for j in range(n) for p in [0,1] ] +\ [ self.root(i,i,0,0) for i in range(n) ] def negative_roots(self): return [ self.root(i,j,1,p) for i in range(j-1) for j in range(n) for p in [0,1] ] +\ [ self.root(i,i,1,1) for i in range(n) ] def fundamental_weights(self): return [ sum(self._term(j) for j in range(i)) for i in range(self.n)]
|
return (-1)**p1 * self._term(i) + (-1)**p2 * self._term(j) def simple_roots(self): """ EXAMPLES: sage: RootSystem(['C',3]).ambient_lattice().simple_roots() [(1, -1, 0), (0, 1, -1), (0, 0, 2)] """ return [ self.root(i, i+1,0,1) for i in range(self.n-1) ] + [self.root(self.n-1, self.n-1, 0, 0)] def positive_roots(self): """ EXAMPLES: sage: RootSystem(['C',3]).ambient_lattice().positive_roots() [(1, 1, 0), (1, 0, 1), (0, 1, 1), (1, -1, 0), (1, 0, -1), (0, 1, -1), (2, 0, 0), (0, 2, 0), (0, 0, 2)] """ res = [] for p in [0,1]: for j in range(self.n): res.extend([self.root(i,j,0,p) for i in range(j)]) res.extend([self.root(i,i,0,0) for i in range(self.n)]) return res def negative_roots(self): """ EXAMPLES: sage: RootSystem(['C',3]).ambient_lattice().negative_roots() [(-1, 1, 0), (-1, 0, 1), (0, -1, 1), (-1, -1, 0), (-1, 0, -1), (0, -1, -1), (-2, 0, 0), (0, -2, 0), (0, 0, -2)] """ res = [] for p in [0,1]: for j in range(self.n): res.extend( [self.root(i,j,1,p) for i in range(j) ] ) res.extend( [ self.root(i,i,1,1) for i in range(self.n) ] ) return res def fundamental_weights(self): """ EXAMPLES: sage: RootSystem(['C',3]).ambient_lattice().fundamental_weights() [(1, 0, 0), (1, 1, 0), (1, 1, 1)] """ return [ sum(self._term(j) for j in range(i+1)) for i in range(self.n)]
|
def root(self, i, j, p1, p2): if i != j: (-1)**p1 * self._term(i) + (-1)**p2 * self._term(j) else: return (-1)**p1 * self._term(i)
|
817d04c17f2716e4c33cac3298ed0cc2bc1ca42f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/817d04c17f2716e4c33cac3298ed0cc2bc1ca42f/root_system.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1365,
12,
2890,
16,
277,
16,
525,
16,
293,
21,
16,
293,
22,
4672,
309,
277,
480,
525,
30,
24927,
21,
13,
636,
84,
21,
380,
365,
6315,
6408,
12,
77,
13,
397,
24927,
21,
13,
636,
84,
22,
380,
365,
6315,
6408,
12,
78,
13,
469,
30,
327,
24927,
21,
13,
636,
84,
21,
380,
365,
6315,
6408,
12,
77,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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277,
480,
525,
30,
24927,
21,
13,
636,
84,
21,
380,
365,
6315,
6408,
12,
77,
13,
397,
24927,
21,
13,
636,
84,
22,
380,
365,
6315,
6408,
12,
78,
13,
469,
30,
327,
24927,
21,
13,
636,
84,
21,
380,
365,
6315,
6408,
12,
77,
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
] |
sage.: ECM().time(n, 25)
|
sage.: ecm.time(n, 25)
|
def time(self, n, factor_digits, verbose=0): """ Gives an approximation for the amount of time it will take to find a factor of size factor_digits in a single process on the current computer. This estimate is provided by gmp-ecm's verbose option on a single run of a curve. INPUT: n -- a positive integer factor_digits -- the (estimated) number of digits of the smallest factor EXAMPLES: sage: n = next_prime(11^23)*next_prime(11^37) sage.: ECM().time(n, 20) Expected curves: 77 Expected time: 7.21s sage.: ECM().time(n, 25) Expected curves: 206 Expected time: 1.56m sage.: ECM().time(n, 30, verbose=1) GMP-ECM 6.0.1 [powered by GMP 4.2] [ECM]
|
d0b459e5a57c91eabccd257b526321e159fcbc64 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/d0b459e5a57c91eabccd257b526321e159fcbc64/ecm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
813,
12,
2890,
16,
290,
16,
5578,
67,
16649,
16,
3988,
33,
20,
4672,
3536,
611,
3606,
392,
24769,
364,
326,
3844,
434,
813,
518,
903,
4862,
358,
1104,
279,
5578,
434,
963,
5578,
67,
16649,
316,
279,
2202,
1207,
603,
326,
783,
26579,
18,
1220,
11108,
353,
2112,
635,
26811,
17,
557,
81,
1807,
3988,
1456,
603,
279,
2202,
1086,
434,
279,
8882,
18,
225,
12943,
30,
290,
1493,
279,
6895,
3571,
5578,
67,
16649,
1493,
326,
261,
395,
17275,
13,
1300,
434,
6815,
434,
326,
13541,
5578,
225,
5675,
8900,
11386,
30,
225,
272,
410,
30,
290,
273,
1024,
67,
16382,
12,
2499,
66,
4366,
17653,
4285,
67,
16382,
12,
2499,
66,
6418,
13,
225,
272,
410,
29710,
7773,
49,
7675,
957,
12,
82,
16,
4200,
13,
13219,
24106,
30,
28244,
377,
13219,
813,
30,
2371,
18,
5340,
87,
272,
410,
29710,
6557,
81,
18,
957,
12,
82,
16,
6969,
13,
13219,
24106,
30,
4200,
26,
565,
13219,
813,
30,
404,
18,
4313,
81,
272,
410,
29710,
7773,
49,
7675,
957,
12,
82,
16,
5196,
16,
3988,
33,
21,
13,
611,
4566,
17,
7228,
49,
1666,
18,
20,
18,
21,
306,
12238,
329,
635,
611,
4566,
1059,
18,
22,
65,
306,
7228,
49,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
813,
12,
2890,
16,
290,
16,
5578,
67,
16649,
16,
3988,
33,
20,
4672,
3536,
611,
3606,
392,
24769,
364,
326,
3844,
434,
813,
518,
903,
4862,
358,
1104,
279,
5578,
434,
963,
5578,
67,
16649,
316,
279,
2202,
1207,
603,
326,
783,
26579,
18,
1220,
11108,
353,
2112,
635,
26811,
17,
557,
81,
1807,
3988,
1456,
603,
279,
2202,
1086,
434,
279,
8882,
18,
225,
12943,
30,
290,
1493,
279,
6895,
3571,
5578,
67,
16649,
1493,
326,
261,
395,
17275,
13,
1300,
434,
6815,
434,
326,
13541,
5578,
225,
5675,
8900,
11386,
30,
225,
272,
410,
30,
290,
273,
1024,
67,
16382,
12,
2499,
66,
4366,
17653,
4285,
67,
16382,
12,
2499,
66,
6418,
13,
225,
272,
2
] |
, comment_file
|
, comment
|
def upload( tag , runner_id , platform , user , comment_file , args ): import runner if comment_file is not None: global comment_path comment_path = os.path.join( regression_root, comment_file ) runner.collect_and_upload_logs( regression_results , runner_id , tag , platform , comment_path , time.strftime( "%a, %d %b %Y %H:%M:%S +0000" , time.gmtime( os.stat( timestamp_path ).st_mtime ) ) , user )
|
6edf412d32c813b91a40fe22b9b1b8cdd281330f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7959/6edf412d32c813b91a40fe22b9b1b8cdd281330f/regression.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3617,
12,
1047,
269,
8419,
67,
350,
269,
4072,
269,
729,
269,
2879,
269,
833,
262,
30,
1930,
8419,
225,
309,
2879,
67,
768,
353,
486,
599,
30,
2552,
2879,
67,
803,
2879,
67,
803,
273,
1140,
18,
803,
18,
5701,
12,
23215,
67,
3085,
16,
2879,
262,
225,
8419,
18,
14676,
67,
464,
67,
6327,
67,
10011,
12,
23215,
67,
4717,
269,
8419,
67,
350,
269,
1047,
269,
4072,
269,
2879,
67,
803,
269,
813,
18,
701,
9982,
12,
2213,
69,
16,
738,
72,
738,
70,
738,
61,
738,
44,
5319,
49,
5319,
55,
397,
2787,
6,
269,
813,
18,
75,
10838,
12,
1140,
18,
5642,
12,
2858,
67,
803,
262,
18,
334,
67,
10838,
262,
262,
269,
729,
262,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3617,
12,
1047,
269,
8419,
67,
350,
269,
4072,
269,
729,
269,
2879,
269,
833,
262,
30,
1930,
8419,
225,
309,
2879,
67,
768,
353,
486,
599,
30,
2552,
2879,
67,
803,
2879,
67,
803,
273,
1140,
18,
803,
18,
5701,
12,
23215,
67,
3085,
16,
2879,
262,
225,
8419,
18,
14676,
67,
464,
67,
6327,
67,
10011,
12,
23215,
67,
4717,
269,
8419,
67,
350,
269,
1047,
269,
4072,
269,
2879,
67,
803,
269,
813,
18,
701,
9982,
12,
2213,
69,
16,
738,
72,
738,
70,
738,
61,
738,
44,
5319,
49,
5319,
55,
397,
2787,
6,
269,
813,
18,
75,
10838,
12,
1140,
18,
5642,
12,
2858,
67,
803,
262,
18,
334,
67,
10838,
262,
262,
2
] |
outgoing = getCurrentOutgoingAccount(view) if outgoing is not None and outgoing.isSetUp() and \
|
outgoing = getCurrentOutgoingAccount(view, ignorePassword=True) if outgoing is not None and _potentialMeAccount(outgoing) and \
|
def _calculateCurrentMeEmailAddresses(view): """ Returns a list of c{EmailAddress} items. The list contains the email addresses for all configured Outgoing and Incoming Accounts. The list email address ordering will be determined as follows: 1. The default outgoing email address 2. Any outgoing account containing an email address 3. The default incoming email address 4. Any incoming account containing an email address """ addrs = [] outgoing = getCurrentOutgoingAccount(view) if outgoing is not None and outgoing.isSetUp() and \ outgoing.fromAddress and \ outgoing.fromAddress.isValid(): addrs.append(outgoing.fromAddress) for account in OutgoingAccount.iterItems(view): if account.isSetUp() and account.fromAddress and \ account.fromAddress.isValid() and \ account != outgoing: addrs.append(account.fromAddress) incoming = getCurrentIncomingAccount(view) if incoming is not None and incoming.isSetUp() and \ incoming.replyToAddress and \ incoming.replyToAddress.isValid(): addrs.append(incoming.replyToAddress) for account in IncomingAccount.iterItems(view): if account.isSetUp() and account.replyToAddress and \ account.replyToAddress.isValid() and \ account != incoming: addrs.append(account.replyToAddress) return addrs
|
da69f378e03cd4ad2f57bb44acaad5e047e5bd57 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/da69f378e03cd4ad2f57bb44acaad5e047e5bd57/mail.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11162,
3935,
4667,
4134,
7148,
12,
1945,
4672,
3536,
2860,
279,
666,
434,
276,
95,
23590,
97,
1516,
18,
1021,
666,
1914,
326,
2699,
6138,
364,
777,
4351,
2976,
8162,
471,
26437,
30849,
18,
225,
1021,
666,
2699,
1758,
9543,
903,
506,
11383,
487,
13040,
30,
404,
18,
1021,
805,
12902,
2699,
1758,
576,
18,
5502,
12902,
2236,
4191,
392,
2699,
1758,
890,
18,
1021,
805,
6935,
2699,
1758,
1059,
18,
5502,
6935,
2236,
4191,
392,
2699,
1758,
3536,
225,
11755,
273,
5378,
225,
12902,
273,
5175,
24866,
3032,
12,
1945,
16,
2305,
3913,
33,
5510,
13,
225,
309,
12902,
353,
486,
599,
471,
389,
26451,
4667,
3032,
12,
31891,
13,
471,
521,
12902,
18,
2080,
1887,
471,
521,
12902,
18,
2080,
1887,
18,
26810,
13332,
11755,
18,
6923,
12,
31891,
18,
2080,
1887,
13,
225,
364,
2236,
316,
2976,
8162,
3032,
18,
2165,
3126,
12,
1945,
4672,
309,
2236,
18,
291,
694,
1211,
1435,
471,
2236,
18,
2080,
1887,
471,
521,
2236,
18,
2080,
1887,
18,
26810,
1435,
471,
521,
2236,
480,
12902,
30,
11755,
18,
6923,
12,
4631,
18,
2080,
1887,
13,
225,
6935,
273,
5175,
20370,
3032,
12,
1945,
13,
225,
309,
6935,
353,
486,
599,
471,
6935,
18,
291,
694,
1211,
1435,
471,
521,
6935,
18,
10629,
774,
1887,
471,
521,
6935,
18,
10629,
774,
1887,
18,
26810,
13332,
11755,
18,
6923,
12,
31033,
18,
10629,
774,
1887,
13,
225,
364,
2236,
316,
26437,
3032,
18,
2165,
3126,
12,
1945,
4672,
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,
11162,
3935,
4667,
4134,
7148,
12,
1945,
4672,
3536,
2860,
279,
666,
434,
276,
95,
23590,
97,
1516,
18,
1021,
666,
1914,
326,
2699,
6138,
364,
777,
4351,
2976,
8162,
471,
26437,
30849,
18,
225,
1021,
666,
2699,
1758,
9543,
903,
506,
11383,
487,
13040,
30,
404,
18,
1021,
805,
12902,
2699,
1758,
576,
18,
5502,
12902,
2236,
4191,
392,
2699,
1758,
890,
18,
1021,
805,
6935,
2699,
1758,
1059,
18,
5502,
6935,
2236,
4191,
392,
2699,
1758,
3536,
225,
11755,
273,
5378,
225,
12902,
273,
5175,
24866,
3032,
12,
1945,
16,
2305,
3913,
33,
5510,
13,
225,
309,
12902,
353,
486,
599,
471,
389,
26451,
4667,
3032,
12,
31891,
13,
471,
521,
12902,
18,
2080,
1887,
2
] |
('Creating', 'virtual environment', ["virtualenv", "--no-site-packages", deploy_path]),
|
('Creating', 'virtual environment', ["virtualenv", "--distribute", "--no-site-packages", deploy_path]),
|
def main(source_path, deploy_path): if os.path.exists(deploy_path): print "Cannot deploy to path - already exists" return 1 use_system_cairo = system_cairo_required() commands = [ ('Creating', 'virtual environment', ["virtualenv", "--no-site-packages", deploy_path]), ] requirements = [l[:-1] for l in open(os.path.join(source_path, "requirements", "core.txt")) if l[:-1]] if use_system_cairo: requirements.remove('pycairo') for requirement in requirements: commands.append( ('Installing', requirement, ["pip", "install", "-U", "-E", deploy_path, requirement]) ) if use_system_cairo: commands += [ ('Linking', 'cairo', cairo_link), ] else: commands += [ ('Tidying', 'cairo', cairo_hack), ] commands += [ ('Deploying', 'molly', [os.path.join(deploy_path, "bin", "python"), os.path.join(source_path, "setup.py"), "install"]), ('Copying', 'demos', copy_demos), ] stdout_log = open('molly.stdout.log', 'w') stderr_log = open('molly.stderr.log', 'w') succeeded = True for i, (action, item, command) in enumerate(commands): print "%s %s (%2d/%2d)" % (action[:12].ljust(12), item[:40].ljust(40), (i+1), len(commands)), if callable(command): try: return_code = command(source_path, deploy_path) or 0 except Exception: return_code = 1 else: return_code = subprocess.call(command, stdout=stdout_log, stderr=stderr_log) print "[%s]" % ('FAILED' if return_code else ' OK ') succeeded == succeeded and (return_code == 0) if succeeded: print """
|
ca30c453a1462dd6013ad74d3a48808603d59485 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14173/ca30c453a1462dd6013ad74d3a48808603d59485/install_virtualenv.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
3168,
67,
803,
16,
7286,
67,
803,
4672,
309,
1140,
18,
803,
18,
1808,
12,
12411,
67,
803,
4672,
1172,
315,
4515,
7286,
358,
589,
300,
1818,
1704,
6,
327,
404,
225,
999,
67,
4299,
67,
5353,
11373,
273,
2619,
67,
5353,
11373,
67,
4718,
1435,
225,
4364,
273,
306,
7707,
11092,
2187,
296,
12384,
3330,
2187,
8247,
12384,
3074,
3113,
5238,
2251,
887,
3113,
5238,
2135,
17,
4256,
17,
10308,
3113,
7286,
67,
803,
65,
3631,
308,
225,
8433,
273,
306,
80,
10531,
17,
21,
65,
364,
328,
316,
1696,
12,
538,
18,
803,
18,
5701,
12,
3168,
67,
803,
16,
315,
16175,
3113,
315,
3644,
18,
5830,
6,
3719,
309,
328,
10531,
17,
21,
13563,
225,
309,
999,
67,
4299,
67,
5353,
11373,
30,
8433,
18,
4479,
2668,
2074,
5353,
11373,
6134,
225,
364,
12405,
316,
8433,
30,
4364,
18,
6923,
12,
7707,
6410,
310,
2187,
12405,
16,
8247,
16104,
3113,
315,
5425,
3113,
3701,
57,
3113,
3701,
41,
3113,
7286,
67,
803,
16,
12405,
5717,
262,
225,
309,
999,
67,
4299,
67,
5353,
11373,
30,
4364,
1011,
306,
7707,
2098,
310,
2187,
296,
5353,
11373,
2187,
14503,
67,
1232,
3631,
308,
469,
30,
4364,
1011,
306,
7707,
56,
350,
14946,
2187,
296,
5353,
11373,
2187,
14503,
67,
76,
484,
3631,
308,
282,
4364,
1011,
306,
7707,
10015,
310,
2187,
296,
21260,
715,
2187,
306,
538,
18,
803,
18,
5701,
12,
12411,
67,
803,
16,
315,
4757,
3113,
315,
8103,
6,
3631,
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,
12,
3168,
67,
803,
16,
7286,
67,
803,
4672,
309,
1140,
18,
803,
18,
1808,
12,
12411,
67,
803,
4672,
1172,
315,
4515,
7286,
358,
589,
300,
1818,
1704,
6,
327,
404,
225,
999,
67,
4299,
67,
5353,
11373,
273,
2619,
67,
5353,
11373,
67,
4718,
1435,
225,
4364,
273,
306,
7707,
11092,
2187,
296,
12384,
3330,
2187,
8247,
12384,
3074,
3113,
5238,
2251,
887,
3113,
5238,
2135,
17,
4256,
17,
10308,
3113,
7286,
67,
803,
65,
3631,
308,
225,
8433,
273,
306,
80,
10531,
17,
21,
65,
364,
328,
316,
1696,
12,
538,
18,
803,
18,
5701,
12,
3168,
67,
803,
16,
315,
16175,
3113,
315,
3644,
18,
5830,
6,
3719,
309,
328,
10531,
17,
21,
2
] |
return dispatch_table[node.symbol](self, node)
|
return func(self, node)
|
def dispatch(self, node): if isinstance(node, Nonterminal): if node.symbol not in dispatch_table: if __general_nonterminal_visit: return __general_nonterminal_visit(self, node) else: return dispatch_table[node.symbol](self, node) elif isinstance(node, Symbol): if node.symbol not in dispatch_table: if __general_symbol_visit: return __general_symbol_visit(self, node) else: return dispatch_table[node.symbol](self, node) if __general_visit: return __general_visit(self, node) raise VisitError(node)
|
4854f3840749b007991aabfab299eb1acf367452 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/4854f3840749b007991aabfab299eb1acf367452/tree.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3435,
12,
2890,
16,
756,
4672,
309,
1549,
12,
2159,
16,
3858,
15979,
4672,
309,
756,
18,
7175,
486,
316,
3435,
67,
2121,
30,
309,
1001,
12259,
67,
5836,
15979,
67,
11658,
30,
327,
1001,
12259,
67,
5836,
15979,
67,
11658,
12,
2890,
16,
756,
13,
469,
30,
327,
1326,
12,
2890,
16,
756,
13,
1327,
1549,
12,
2159,
16,
8565,
4672,
309,
756,
18,
7175,
486,
316,
3435,
67,
2121,
30,
309,
1001,
12259,
67,
7175,
67,
11658,
30,
327,
1001,
12259,
67,
7175,
67,
11658,
12,
2890,
16,
756,
13,
469,
30,
327,
1326,
12,
2890,
16,
756,
13,
309,
1001,
12259,
67,
11658,
30,
327,
1001,
12259,
67,
11658,
12,
2890,
16,
756,
13,
1002,
22039,
668,
12,
2159,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3435,
12,
2890,
16,
756,
4672,
309,
1549,
12,
2159,
16,
3858,
15979,
4672,
309,
756,
18,
7175,
486,
316,
3435,
67,
2121,
30,
309,
1001,
12259,
67,
5836,
15979,
67,
11658,
30,
327,
1001,
12259,
67,
5836,
15979,
67,
11658,
12,
2890,
16,
756,
13,
469,
30,
327,
1326,
12,
2890,
16,
756,
13,
1327,
1549,
12,
2159,
16,
8565,
4672,
309,
756,
18,
7175,
486,
316,
3435,
67,
2121,
30,
309,
1001,
12259,
67,
7175,
67,
11658,
30,
327,
1001,
12259,
67,
7175,
67,
11658,
12,
2890,
16,
756,
13,
469,
30,
327,
1326,
12,
2890,
16,
756,
13,
309,
1001,
12259,
67,
11658,
30,
327,
1001,
12259,
67,
11658,
12,
2890,
16,
756,
13,
1002,
2
] |
else: rev = self.previous_rev(newer[1])
|
else: rev = self.previous_rev(newer[1])
|
def get_path_history(self, path, rev=None, limit=None): path = self.normalize_path(path) rev = self.normalize_rev(rev) expect_deletion = False subpool = Pool(self.pool) while rev: subpool.clear() rev_root = fs.revision_root(self.fs_ptr, rev, subpool()) node_type = fs.check_path(rev_root, path, subpool()) if node_type in _kindmap: # then path exists at that rev if expect_deletion: # it was missing, now it's there again: rev+1 must be a delete yield path, rev+1, Changeset.DELETE newer = None # 'newer' is the previously seen history tuple older = None # 'older' is the currently examined history tuple for p, r in _get_history(path, self.authz, self.fs_ptr, subpool, 0, rev, limit): older = (self.normalize_path(p), r, Changeset.ADD) rev = self.previous_rev(r) if newer: if older[0] == path: # still on the path: 'newer' was an edit yield newer[0], newer[1], Changeset.EDIT else: # the path changed: 'newer' was a copy rev = self.previous_rev(newer[1]) # restart before the copy op yield newer[0], newer[1], Changeset.COPY older = (older[0], older[1], 'unknown') break newer = older if older: # either a real ADD or the source of a COPY yield older else: expect_deletion = True rev = self.previous_rev(rev)
|
ef4a4af31bedbbc41beeb966e3c9ceaa630dad96 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/ef4a4af31bedbbc41beeb966e3c9ceaa630dad96/svn_fs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
803,
67,
8189,
12,
2890,
16,
589,
16,
5588,
33,
7036,
16,
1800,
33,
7036,
4672,
589,
273,
365,
18,
12237,
67,
803,
12,
803,
13,
5588,
273,
365,
18,
12237,
67,
9083,
12,
9083,
13,
4489,
67,
19003,
285,
273,
1083,
720,
6011,
273,
8828,
12,
2890,
18,
6011,
13,
1323,
5588,
30,
720,
6011,
18,
8507,
1435,
5588,
67,
3085,
273,
2662,
18,
13057,
67,
3085,
12,
2890,
18,
2556,
67,
6723,
16,
5588,
16,
720,
6011,
10756,
756,
67,
723,
273,
2662,
18,
1893,
67,
803,
12,
9083,
67,
3085,
16,
589,
16,
720,
6011,
10756,
309,
756,
67,
723,
316,
389,
9224,
1458,
30,
468,
1508,
589,
1704,
622,
716,
5588,
309,
4489,
67,
19003,
285,
30,
468,
518,
1703,
3315,
16,
2037,
518,
1807,
1915,
3382,
30,
5588,
15,
21,
1297,
506,
279,
1430,
2824,
589,
16,
5588,
15,
21,
16,
17776,
278,
18,
6460,
16069,
273,
599,
468,
296,
2704,
264,
11,
353,
326,
7243,
5881,
4927,
3193,
12156,
273,
599,
468,
296,
1498,
11,
353,
326,
4551,
19707,
1920,
4927,
3193,
364,
293,
16,
436,
316,
389,
588,
67,
8189,
12,
803,
16,
365,
18,
1944,
94,
16,
365,
18,
2556,
67,
6723,
16,
720,
6011,
16,
374,
16,
5588,
16,
1800,
4672,
12156,
273,
261,
2890,
18,
12237,
67,
803,
12,
84,
3631,
436,
16,
17776,
278,
18,
8355,
13,
5588,
273,
365,
18,
11515,
67,
9083,
12,
86,
13,
309,
16069,
30,
309,
12156,
63,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
803,
67,
8189,
12,
2890,
16,
589,
16,
5588,
33,
7036,
16,
1800,
33,
7036,
4672,
589,
273,
365,
18,
12237,
67,
803,
12,
803,
13,
5588,
273,
365,
18,
12237,
67,
9083,
12,
9083,
13,
4489,
67,
19003,
285,
273,
1083,
720,
6011,
273,
8828,
12,
2890,
18,
6011,
13,
1323,
5588,
30,
720,
6011,
18,
8507,
1435,
5588,
67,
3085,
273,
2662,
18,
13057,
67,
3085,
12,
2890,
18,
2556,
67,
6723,
16,
5588,
16,
720,
6011,
10756,
756,
67,
723,
273,
2662,
18,
1893,
67,
803,
12,
9083,
67,
3085,
16,
589,
16,
720,
6011,
10756,
309,
756,
67,
723,
316,
389,
9224,
1458,
30,
468,
1508,
589,
1704,
622,
716,
5588,
309,
2
] |
skin_template = TemplateViewFactory(self.template_name) template = skin_template.template api = Api(context, request, skin_template)
|
template = self.skin_template.template api = Api(context, request, self.skin_template)
|
def macro(context, request): skin_template = TemplateViewFactory(self.template_name) template = skin_template.template api = Api(context, request, skin_template) return template.macros.bind( context=context, request=request, api=api)[""]
|
91f923e696d3fed5ebf68125e362a7d7c5256738 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12476/91f923e696d3fed5ebf68125e362a7d7c5256738/zcml.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
12,
2472,
16,
590,
4672,
1542,
273,
365,
18,
7771,
267,
67,
3202,
18,
3202,
1536,
273,
4458,
12,
2472,
16,
590,
16,
365,
18,
7771,
267,
67,
3202,
13,
327,
1542,
18,
5821,
6973,
18,
4376,
12,
819,
33,
2472,
16,
590,
33,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
12,
2472,
16,
590,
4672,
1542,
273,
365,
18,
7771,
267,
67,
3202,
18,
3202,
1536,
273,
4458,
12,
2472,
16,
590,
16,
365,
18,
7771,
267,
67,
3202,
13,
327,
1542,
18,
5821,
6973,
18,
4376,
12,
819,
33,
2472,
16,
590,
33,
2293,
16,
1536,
33,
2425,
25146,
3660,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def put(self, item, block=True, timeout=None): Queue.put(self, item, block, timeout) self._unfinished_tasks.release()
|
def put(self, obj, block=True, timeout=None): assert not self._closed if not self._sem.acquire(block, timeout): raise Full self._notempty.acquire() self._cond.acquire() try: if self._thread is None: self._start_thread() self._buffer.append(obj) self._unfinished_tasks.release() self._notempty.notify() finally: self._cond.release() self._notempty.release()
|
def put(self, item, block=True, timeout=None): Queue.put(self, item, block, timeout) self._unfinished_tasks.release()
|
35bf70409ef59540b41fe97e1c43119b6b5d6a08 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/35bf70409ef59540b41fe97e1c43119b6b5d6a08/queues.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
12,
2890,
16,
761,
16,
1203,
33,
5510,
16,
2021,
33,
7036,
4672,
7530,
18,
458,
12,
2890,
16,
761,
16,
1203,
16,
2021,
13,
365,
6315,
318,
13527,
67,
9416,
18,
9340,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1378,
12,
2890,
16,
761,
16,
1203,
33,
5510,
16,
2021,
33,
7036,
4672,
7530,
18,
458,
12,
2890,
16,
761,
16,
1203,
16,
2021,
13,
365,
6315,
318,
13527,
67,
9416,
18,
9340,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
original = str(path.resolve(filename[1:-4]))
|
original = path.resolve(filename[1:-4])
|
def rollback(database): transaction = get_transaction() for reference in transaction: path = reference.path filename = path[-1].name marker = filename[-3:] original = str(path.resolve(filename[1:-4])) backup = str(path) if marker == 'tmp': remove(backup) elif marker == 'add': FileFS.remove(original) remove(backup) elif marker == 'del': rename(backup, original) transaction.clear() src = str(database.path.resolve2('.catalog.bak/')) dst = str(database.path.resolve2('.catalog')) call(['rsync', '-a', '--delete', src, dst])
|
ba8e1b9de380a9ad2af0e7b916bea57b16e5741c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/ba8e1b9de380a9ad2af0e7b916bea57b16e5741c/database.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8006,
12,
6231,
4672,
2492,
273,
336,
67,
7958,
1435,
364,
2114,
316,
2492,
30,
589,
273,
2114,
18,
803,
1544,
273,
589,
18919,
21,
8009,
529,
5373,
273,
1544,
18919,
23,
26894,
2282,
273,
589,
18,
10828,
12,
3459,
63,
21,
30,
17,
24,
5717,
5114,
273,
609,
12,
803,
13,
309,
5373,
422,
296,
5645,
4278,
1206,
12,
9572,
13,
1327,
5373,
422,
296,
1289,
4278,
1387,
4931,
18,
4479,
12,
8830,
13,
1206,
12,
9572,
13,
1327,
5373,
422,
296,
3771,
4278,
6472,
12,
9572,
16,
2282,
13,
2492,
18,
8507,
1435,
1705,
273,
609,
12,
6231,
18,
803,
18,
10828,
22,
2668,
18,
7199,
18,
31170,
2473,
3719,
3046,
273,
609,
12,
6231,
18,
803,
18,
10828,
22,
2668,
18,
7199,
26112,
745,
12,
3292,
5453,
1209,
2187,
2400,
69,
2187,
3534,
3733,
2187,
1705,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8006,
12,
6231,
4672,
2492,
273,
336,
67,
7958,
1435,
364,
2114,
316,
2492,
30,
589,
273,
2114,
18,
803,
1544,
273,
589,
18919,
21,
8009,
529,
5373,
273,
1544,
18919,
23,
26894,
2282,
273,
589,
18,
10828,
12,
3459,
63,
21,
30,
17,
24,
5717,
5114,
273,
609,
12,
803,
13,
309,
5373,
422,
296,
5645,
4278,
1206,
12,
9572,
13,
1327,
5373,
422,
296,
1289,
4278,
1387,
4931,
18,
4479,
12,
8830,
13,
1206,
12,
9572,
13,
1327,
5373,
422,
296,
3771,
4278,
6472,
12,
9572,
16,
2282,
13,
2492,
18,
8507,
1435,
1705,
273,
609,
12,
6231,
18,
803,
18,
10828,
22,
2668,
18,
7199,
18,
31170,
2473,
3719,
3046,
273,
609,
12,
6231,
18,
2
] |
%s """ % (start_string_prefix, uric, urilast, uric, urilast, uric, urilast, emailc, emailc, emailc, emailc, urilast, end_string_suffix,), re.VERBOSE))
|
%(end_string_suffix)s """ % locals(), re.VERBOSE))
|
def parse(self, text, lineno, memo, parent): """ Return 2 lists: nodes (text and inline elements), and system_messages.
|
018a79821ccb1056404d43dbe32e444d1a0e03c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/018a79821ccb1056404d43dbe32e444d1a0e03c1/states.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
977,
16,
7586,
16,
11063,
16,
982,
4672,
3536,
2000,
576,
6035,
30,
2199,
261,
955,
471,
6370,
2186,
3631,
471,
2619,
67,
6833,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
977,
16,
7586,
16,
11063,
16,
982,
4672,
3536,
2000,
576,
6035,
30,
2199,
261,
955,
471,
6370,
2186,
3631,
471,
2619,
67,
6833,
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
] |
apend_when_current_valid(current, menu, (_("add to parental protection"), boundFunction(self.addParentalProtection, csel.getCurrentSelection())))
|
append_when_current_valid(current, menu, (_("add to parental protection"), boundFunction(self.addParentalProtection, csel.getCurrentSelection())))
|
def __init__(self, session, csel): Screen.__init__(self, session) self.csel = csel self.bsel = None
|
892b126f25f6adf5856fa1caa01d998f1e53afac /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6652/892b126f25f6adf5856fa1caa01d998f1e53afac/Ch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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1339,
16,
276,
1786,
4672,
10146,
16186,
2738,
972,
12,
2890,
16,
1339,
13,
365,
18,
71,
1786,
273,
276,
1786,
365,
18,
70,
1786,
273,
599,
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
] |
'BarTest.Test1', 'BazTest.Test1',
|
'BarTest.TestOne', 'BazTest.TestOne',
|
def testThreePatterns(self): """Tests filters that consist of three patterns."""
|
3d7042176307f0d7700a3640f3b3bcc8790b8fcd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4198/3d7042176307f0d7700a3640f3b3bcc8790b8fcd/gtest_filter_unittest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
28019,
11268,
12,
2890,
4672,
3536,
14650,
3415,
716,
7111,
434,
8925,
6884,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
28019,
11268,
12,
2890,
4672,
3536,
14650,
3415,
716,
7111,
434,
8925,
6884,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def getStorageType(self): """Return the type of the storage of this field as a string""" return className(self.storage)
|
def getStorageName(self): """Return the storage name that is configured for this field as a string""" return self.storage.getName()
|
6c49241026527d58ec33dad69b98fdf197a65ae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/6c49241026527d58ec33dad69b98fdf197a65ae4/Field.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13840,
461,
12,
2890,
4672,
3536,
990,
326,
2502,
508,
716,
353,
4351,
364,
333,
652,
487,
279,
533,
8395,
327,
365,
18,
5697,
18,
17994,
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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
365,
18,
5697,
18,
17994,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
msg = self.idb.clear_break(filename, lineno) if msg: text.bell() return
|
self.idb.clear_break(filename, lineno)
|
def clear_breakpoint_here(self, filename, lineno): msg = self.idb.clear_break(filename, lineno) if msg: text.bell() return
|
b57b3220632f27ec7ae552e1b48e1b2c8acf1383 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b57b3220632f27ec7ae552e1b48e1b2c8acf1383/Debugger.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
67,
8820,
1153,
67,
14852,
12,
2890,
16,
1544,
16,
7586,
4672,
1234,
273,
365,
18,
350,
70,
18,
8507,
67,
8820,
12,
3459,
16,
7586,
13,
309,
1234,
30,
977,
18,
70,
1165,
1435,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
67,
8820,
1153,
67,
14852,
12,
2890,
16,
1544,
16,
7586,
4672,
1234,
273,
365,
18,
350,
70,
18,
8507,
67,
8820,
12,
3459,
16,
7586,
13,
309,
1234,
30,
977,
18,
70,
1165,
1435,
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
] |
([-1], [-zeta6], -2*zeta42^7 + 3) ([-1], [-zeta6 + 1], 2*zeta42^7 - 3) ([-zeta6], [-zeta6], 3*zeta42^7 - 1) ([-zeta6], [-zeta6 + 1], -2*zeta42^7 + 3) ([-zeta6 + 1], [-zeta6 + 1], zeta42^7 + 2)
|
([-1], [-zeta6], -2*zeta6 + 3) ([-1], [-zeta6 + 1], 2*zeta6 - 3) ([-zeta6], [-zeta6], 3*zeta6 - 1) ([-zeta6], [-zeta6 + 1], -2*zeta6 + 3) ([-zeta6 + 1], [-zeta6 + 1], zeta6 + 2)
|
def jacobi_sum(self, char, check=True): """ Return the Jacobi sum associated to these Dirichlet characters (i.e., J(self,char)). EXAMPLES:: sage: D = DirichletGroup(13) sage: e = D.0 sage: f = D[-2] sage: e.jacobi_sum(f) 3*zeta156^26 + 2*zeta156^13 - 3 sage: f.jacobi_sum(e) 3*zeta156^26 + 2*zeta156^13 - 3 sage: p = 7 sage: DP = DirichletGroup(p) sage: f = DP.0 sage: e.jacobi_sum(f) Traceback (most recent call last): ... NotImplementedError: Characters must be from the same Dirichlet Group. sage: all_jacobi_sums = [(DP[i],DP[j],DP[i].jacobi_sum(DP[j])) \ ... for i in range(p-1) for j in range(p-1)[i:]] ... sage: for s in all_jacobi_sums: ... print s ([1], [1], 5) ([1], [zeta6], -1) ([1], [zeta6 - 1], -1) ([1], [-1], -1) ([1], [-zeta6], -1) ([1], [-zeta6 + 1], -1) ([zeta6], [zeta6], -zeta42^7 + 3) ([zeta6], [zeta6 - 1], 2*zeta42^7 + 1) ([zeta6], [-1], -2*zeta42^7 - 1) ([zeta6], [-zeta6], zeta42^7 - 3) ([zeta6], [-zeta6 + 1], 1) ([zeta6 - 1], [zeta6 - 1], -3*zeta42^7 + 2) ([zeta6 - 1], [-1], 2*zeta42^7 + 1) ([zeta6 - 1], [-zeta6], -1) ([zeta6 - 1], [-zeta6 + 1], -zeta42^7 - 2) ([-1], [-1], 1) ([-1], [-zeta6], -2*zeta42^7 + 3) ([-1], [-zeta6 + 1], 2*zeta42^7 - 3) ([-zeta6], [-zeta6], 3*zeta42^7 - 1) ([-zeta6], [-zeta6 + 1], -2*zeta42^7 + 3) ([-zeta6 + 1], [-zeta6 + 1], zeta42^7 + 2) Let's check that trivial sums are being calculated correctly:: sage: N = 13 sage: D = DirichletGroup(N) sage: g = D(1) sage: g.jacobi_sum(g) 11 sage: sum([g(x)*g(1-x) for x in IntegerModRing(N)]) 11 Now let's take a look at a non-prime modulus. One reason we don't like non-prime moduli is that certain identities that are used in the code are not valid for non-prime moduli:: sage: N = 9 sage: D = DirichletGroup(N) sage: g = D(1) sage: g.jacobi_sum(g) Traceback (most recent call last): ... ValueError: Characters must have prime moduli at this time -- use check=False to allow non-prime moduli sage: g.jacobi_sum(g, check=False) 5 sage: sum([g(x)*g(1-x) for x in IntegerModRing(N)]) 3 TODO: Implement Jacobi sums for characters with output in finite fields GF(q) for q non-prime. """ if check: if self.parent() != char.parent(): raise NotImplementedError, "Characters must be from the same Dirichlet Group." if not self.parent().modulus().is_prime(): raise ValueError, "Characters must have prime moduli at this time -- use check=False to allow non-prime moduli" # If they are both trivial, return p if self.is_trivial() and char.is_trivial(): return (self.parent()).order() - 1 # If they are inverses of each other, return -self(-1) prod = self*char if prod.is_trivial(): return -self(-1) # If both are nontrivial, apply mult. formula: elif not self.is_trivial() and not char.is_trivial(): return self.gauss_sum()*char.gauss_sum()/prod.gauss_sum() # If exactly one is trivial, return -1 else: return -1
|
59b9d951da50fd609601a8510ce35029ae856971 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/59b9d951da50fd609601a8510ce35029ae856971/dirichlet.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20138,
30875,
67,
1364,
12,
2890,
16,
1149,
16,
866,
33,
5510,
4672,
3536,
2000,
326,
804,
1077,
30875,
2142,
3627,
358,
4259,
8446,
1354,
1810,
3949,
261,
77,
18,
73,
12990,
804,
12,
2890,
16,
3001,
13,
2934,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
463,
273,
8446,
1354,
1810,
1114,
12,
3437,
13,
272,
410,
30,
425,
273,
463,
18,
20,
272,
410,
30,
284,
273,
463,
18919,
22,
65,
272,
410,
30,
425,
18,
31390,
30875,
67,
1364,
12,
74,
13,
890,
14,
94,
1066,
28946,
66,
5558,
397,
576,
14,
94,
1066,
28946,
66,
3437,
300,
890,
272,
410,
30,
284,
18,
31390,
30875,
67,
1364,
12,
73,
13,
890,
14,
94,
1066,
28946,
66,
5558,
397,
576,
14,
94,
1066,
28946,
66,
3437,
300,
890,
272,
410,
30,
293,
273,
2371,
272,
410,
30,
463,
52,
273,
8446,
1354,
1810,
1114,
12,
84,
13,
272,
410,
30,
284,
273,
463,
52,
18,
20,
272,
410,
30,
425,
18,
31390,
30875,
67,
1364,
12,
74,
13,
2677,
823,
261,
10329,
8399,
745,
1142,
4672,
1372,
11206,
30,
3703,
9202,
1297,
506,
628,
326,
1967,
8446,
1354,
1810,
3756,
18,
272,
410,
30,
777,
67,
31390,
30875,
67,
1364,
87,
273,
306,
12,
8640,
63,
77,
6487,
8640,
63,
78,
6487,
8640,
63,
77,
8009,
31390,
30875,
67,
1364,
12,
8640,
63,
78,
22643,
521,
1372,
15604,
364,
277,
316,
1048,
12,
84,
17,
21,
13,
364,
525,
316,
1048,
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,
20138,
30875,
67,
1364,
12,
2890,
16,
1149,
16,
866,
33,
5510,
4672,
3536,
2000,
326,
804,
1077,
30875,
2142,
3627,
358,
4259,
8446,
1354,
1810,
3949,
261,
77,
18,
73,
12990,
804,
12,
2890,
16,
3001,
13,
2934,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
463,
273,
8446,
1354,
1810,
1114,
12,
3437,
13,
272,
410,
30,
425,
273,
463,
18,
20,
272,
410,
30,
284,
273,
463,
18919,
22,
65,
272,
410,
30,
425,
18,
31390,
30875,
67,
1364,
12,
74,
13,
890,
14,
94,
1066,
28946,
66,
5558,
397,
576,
14,
94,
1066,
28946,
66,
3437,
300,
890,
272,
410,
30,
284,
18,
31390,
30875,
67,
1364,
12,
73,
13,
890,
14,
94,
2
] |
for prefScore, preferenceFlavor in indexedList:
|
for currentScore, preferenceFlavor in indexedList:
|
def _filterByPreferences(self, flavorList, scoreToMatch, preferenceList): if not preferenceList: return 0, flavorList, [] strongList = [ (x.toStrongFlavor(), x) for x in flavorList ] indexedList = list(enumerate(preferenceList[:scoreToMatch + 1])) nomatches = [] minScore = None matchingFlavors = [] for strongFlavor, flavor in strongList: for prefScore, preferenceFlavor in indexedList: if strongFlavor.satisfies(preferenceFlavor): if minScore is None or minScore < prefScore: matchingFlavors = [] elif minScore > prefScore: break minScore = prefScore matchingFlavors.append(flavor) break else: # no matching flavors nomatches.append(flavor) if matchingFlavors: if scoreToMatch >= minScore: return minScore, matchingFlavors + nomatches, nomatches elif nomatches: return scoreToMatch, nomatches, nomatches else: return None, [], [] elif nomatches: return scoreToMatch, nomatches, nomatches else: return None, [], []
|
a659adf5a1544499f32d150966ec2a461c043c03 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/a659adf5a1544499f32d150966ec2a461c043c03/trovesource.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2188,
858,
12377,
12,
2890,
16,
19496,
682,
16,
4462,
26726,
16,
11555,
682,
4672,
309,
486,
11555,
682,
30,
327,
374,
16,
19496,
682,
16,
5378,
11773,
682,
273,
306,
261,
92,
18,
869,
1585,
932,
2340,
9444,
9334,
619,
13,
364,
619,
316,
19496,
682,
308,
8808,
682,
273,
666,
12,
7924,
12600,
12,
19141,
682,
10531,
6355,
26726,
397,
404,
22643,
12457,
505,
281,
273,
5378,
1131,
7295,
273,
599,
3607,
2340,
842,
1383,
273,
5378,
364,
11773,
2340,
9444,
16,
19496,
316,
11773,
682,
30,
364,
783,
7295,
16,
11555,
2340,
9444,
316,
8808,
682,
30,
309,
11773,
2340,
9444,
18,
12973,
7396,
606,
12,
19141,
2340,
9444,
4672,
309,
1131,
7295,
353,
599,
578,
1131,
7295,
411,
11307,
7295,
30,
3607,
2340,
842,
1383,
273,
5378,
1327,
1131,
7295,
405,
11307,
7295,
30,
898,
1131,
7295,
273,
11307,
7295,
3607,
2340,
842,
1383,
18,
6923,
12,
2242,
9444,
13,
898,
469,
30,
468,
1158,
3607,
31227,
1383,
12457,
505,
281,
18,
6923,
12,
2242,
9444,
13,
309,
3607,
2340,
842,
1383,
30,
309,
4462,
26726,
1545,
1131,
7295,
30,
327,
1131,
7295,
16,
3607,
2340,
842,
1383,
397,
12457,
505,
281,
16,
12457,
505,
281,
1327,
12457,
505,
281,
30,
327,
4462,
26726,
16,
12457,
505,
281,
16,
12457,
505,
281,
469,
30,
327,
599,
16,
5378,
16,
5378,
1327,
12457,
505,
281,
30,
327,
4462,
26726,
16,
12457,
505,
281,
16,
12457,
505,
281,
469,
30,
327,
599,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2188,
858,
12377,
12,
2890,
16,
19496,
682,
16,
4462,
26726,
16,
11555,
682,
4672,
309,
486,
11555,
682,
30,
327,
374,
16,
19496,
682,
16,
5378,
11773,
682,
273,
306,
261,
92,
18,
869,
1585,
932,
2340,
9444,
9334,
619,
13,
364,
619,
316,
19496,
682,
308,
8808,
682,
273,
666,
12,
7924,
12600,
12,
19141,
682,
10531,
6355,
26726,
397,
404,
22643,
12457,
505,
281,
273,
5378,
1131,
7295,
273,
599,
3607,
2340,
842,
1383,
273,
5378,
364,
11773,
2340,
9444,
16,
19496,
316,
11773,
682,
30,
364,
783,
7295,
16,
11555,
2340,
9444,
316,
8808,
682,
30,
309,
11773,
2340,
9444,
18,
12973,
7396,
606,
12,
19141,
2340,
9444,
4672,
309,
1131,
7295,
353,
2
] |
self.closed = 1
|
self.closed = True
|
def close(self): """Free the memory buffer. """ if not self.closed: self.closed = 1 del self.buf, self.pos
|
6542690b4188f7f53b198ea23efc9b5bbea194dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/6542690b4188f7f53b198ea23efc9b5bbea194dc/StringIO.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
3536,
9194,
326,
3778,
1613,
18,
3536,
309,
486,
365,
18,
12204,
30,
365,
18,
12204,
273,
1053,
1464,
365,
18,
4385,
16,
365,
18,
917,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
3536,
9194,
326,
3778,
1613,
18,
3536,
309,
486,
365,
18,
12204,
30,
365,
18,
12204,
273,
1053,
1464,
365,
18,
4385,
16,
365,
18,
917,
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._metadata_requests = []
|
self._metadata_requests = {}
|
def __init__(self, swarm, raw_server, address): self._swarm = swarm self._closed = False self._in_buffer = StringIO() self._next_len = 1 self._next_func = self.read_header_len self._address = address self._last_activity = time()
|
9db03c85b7d8689bfb6b1be5edc0ce177814ecca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9686/9db03c85b7d8689bfb6b1be5edc0ce177814ecca/MiniBitTorrent.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
20486,
16,
1831,
67,
3567,
16,
1758,
4672,
365,
6315,
87,
13113,
273,
20486,
365,
6315,
12204,
273,
1083,
365,
6315,
267,
67,
4106,
273,
15777,
1435,
365,
6315,
4285,
67,
1897,
273,
404,
365,
6315,
4285,
67,
644,
273,
365,
18,
896,
67,
3374,
67,
1897,
365,
6315,
2867,
273,
1758,
365,
6315,
2722,
67,
9653,
273,
813,
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,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,
1758,
4672,
365,
6315,
87,
13113,
273,
20486,
365,
6315,
12204,
273,
1083,
365,
6315,
267,
67,
4106,
273,
15777,
1435,
365,
6315,
4285,
67,
1897,
273,
404,
365,
6315,
4285,
67,
644,
273,
365,
18,
896,
67,
3374,
67,
1897,
365,
6315,
2867,
273,
1758,
365,
6315,
2722,
67,
9653,
273,
813,
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
] |
if len(result) == 2: result = result + ({},)
|
def _import_one(self, parent, modname, fqname): "Import a single module."
|
84fc7ddb7a93f029d7ea47386fbacf965b511ab2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/84fc7ddb7a93f029d7ea47386fbacf965b511ab2/imputil.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5666,
67,
476,
12,
2890,
16,
982,
16,
16037,
16,
8508,
529,
4672,
315,
5010,
279,
2202,
1605,
1199,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5666,
67,
476,
12,
2890,
16,
982,
16,
16037,
16,
8508,
529,
4672,
315,
5010,
279,
2202,
1605,
1199,
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
] |
|
approval_status = qres[0]
|
approval_status = qres[0][0]
|
def get_simple_approval_status(doctype, category, reportnumber): """Get the (simple) approval "status" of a given document. Using this function, Register_Approval_Request can determine whether or not a docunent has already been approved or rejected at request time. @param doctype: (string) - the document type of the document for which the approval status is being requested. @param category: (string) - the category of the document for which the approval status is being requested. @param reportnumber: (string) - the report number of the document for which the approval status is being requested. """ approval_status = None qstr = """SELECT status FROM sbmAPPROVAL WHERE doctype=%s and """ \ """categ=%s and rn=%s""" qres = run_sql(qstr, (doctype, category, reportnumber)) if len(qres) > 0: approval_status = qres[0] return approval_status
|
e2a27a10b931b6064d61101b7fc13c9e7feaf818 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/e2a27a10b931b6064d61101b7fc13c9e7feaf818/Register_Approval_Request.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
9647,
67,
12908,
1125,
67,
2327,
12,
2896,
12387,
16,
3150,
16,
2605,
2696,
4672,
3536,
967,
326,
261,
9647,
13,
23556,
315,
2327,
6,
434,
279,
864,
1668,
18,
11637,
333,
445,
16,
5433,
67,
23461,
67,
691,
848,
4199,
2856,
578,
486,
279,
997,
318,
319,
711,
1818,
2118,
20412,
578,
11876,
622,
590,
813,
18,
632,
891,
24909,
30,
261,
1080,
13,
300,
326,
1668,
618,
434,
326,
1668,
364,
1492,
326,
23556,
1267,
353,
3832,
3764,
18,
632,
891,
3150,
30,
261,
1080,
13,
300,
326,
3150,
434,
326,
1668,
364,
1492,
326,
23556,
1267,
353,
3832,
3764,
18,
632,
891,
2605,
2696,
30,
261,
1080,
13,
300,
326,
2605,
1300,
434,
326,
1668,
364,
1492,
326,
23556,
1267,
353,
3832,
3764,
18,
3536,
23556,
67,
2327,
273,
599,
1043,
701,
273,
3536,
4803,
1267,
4571,
2393,
81,
2203,
3373,
2669,
4852,
24909,
5095,
87,
471,
3536,
521,
3536,
71,
1287,
5095,
87,
471,
20594,
5095,
87,
8395,
1043,
455,
273,
1086,
67,
4669,
12,
85,
701,
16,
261,
2896,
12387,
16,
3150,
16,
2605,
2696,
3719,
309,
562,
12,
85,
455,
13,
405,
374,
30,
23556,
67,
2327,
273,
1043,
455,
63,
20,
6362,
20,
65,
327,
23556,
67,
2327,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
9647,
67,
12908,
1125,
67,
2327,
12,
2896,
12387,
16,
3150,
16,
2605,
2696,
4672,
3536,
967,
326,
261,
9647,
13,
23556,
315,
2327,
6,
434,
279,
864,
1668,
18,
11637,
333,
445,
16,
5433,
67,
23461,
67,
691,
848,
4199,
2856,
578,
486,
279,
997,
318,
319,
711,
1818,
2118,
20412,
578,
11876,
622,
590,
813,
18,
632,
891,
24909,
30,
261,
1080,
13,
300,
326,
1668,
618,
434,
326,
1668,
364,
1492,
326,
23556,
1267,
353,
3832,
3764,
18,
632,
891,
3150,
30,
261,
1080,
13,
300,
326,
3150,
434,
326,
1668,
364,
1492,
326,
23556,
1267,
353,
3832,
3764,
18,
632,
891,
2605,
2696,
30,
261,
1080,
13,
300,
326,
2605,
1300,
434,
2
] |
if isinstance(domain[i][2], basestring): res_ids = target_obj.search(cursor, user, [ ('rec_name', domain[i][1], domain[i][2]), ], context=context) else: res_ids = domain[i][2] if res_ids == True or res_ids == False:
|
if isinstance(domain[i][2], bool):
|
def _rec_get(ids, table, parent): if not ids: return [] ids2 = table.search(cursor, user, [(parent, 'in', ids), (parent, '!=', False)], context=context) return ids + _rec_get(ids2, table, parent)
|
65c1de82b1b724ef498b40d21cd63fb9f75da96e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9266/65c1de82b1b724ef498b40d21cd63fb9f75da96e/modelsql.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3927,
67,
588,
12,
2232,
16,
1014,
16,
982,
4672,
309,
486,
3258,
30,
327,
5378,
3258,
22,
273,
1014,
18,
3072,
12,
9216,
16,
729,
16,
306,
12,
2938,
16,
296,
267,
2187,
3258,
3631,
261,
2938,
16,
11817,
33,
2187,
1083,
13,
6487,
819,
33,
2472,
13,
327,
3258,
397,
389,
3927,
67,
588,
12,
2232,
22,
16,
1014,
16,
982,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3927,
67,
588,
12,
2232,
16,
1014,
16,
982,
4672,
309,
486,
3258,
30,
327,
5378,
3258,
22,
273,
1014,
18,
3072,
12,
9216,
16,
729,
16,
306,
12,
2938,
16,
296,
267,
2187,
3258,
3631,
261,
2938,
16,
11817,
33,
2187,
1083,
13,
6487,
819,
33,
2472,
13,
327,
3258,
397,
389,
3927,
67,
588,
12,
2232,
22,
16,
1014,
16,
982,
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
] |
[292, []],
|
[292, [convert_japanese_cjk]],
|
def revert_polytonicgreek(document): "Set language polytonic Greek to Greek" i = 0 if document.language == "polutonikogreek": document.language = "greek" i = find_token(document.header, "\\language", 0) if i != -1: document.header[i] = "\\language greek" j = 0 while True: j = find_token(document.body, "\\lang polutonikogreek", j) if j == -1: return document.body[j] = document.body[j].replace("\\lang polutonikogreek", "\\lang greek") j = j + 1
|
55a9aa714946c5f6301f5d7797dacd82b182c1e2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7514/55a9aa714946c5f6301f5d7797dacd82b182c1e2/lyx_1_6.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
16353,
1917,
335,
75,
992,
79,
12,
5457,
4672,
315,
694,
2653,
7573,
1917,
335,
611,
992,
79,
358,
611,
992,
79,
6,
277,
273,
374,
309,
1668,
18,
4923,
422,
315,
3915,
322,
265,
1766,
717,
992,
79,
6877,
1668,
18,
4923,
273,
315,
75,
992,
79,
6,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3374,
16,
8422,
4923,
3113,
374,
13,
309,
277,
480,
300,
21,
30,
1668,
18,
3374,
63,
77,
65,
273,
8422,
4923,
314,
992,
79,
6,
525,
273,
374,
1323,
1053,
30,
525,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
8422,
4936,
2952,
322,
265,
1766,
717,
992,
79,
3113,
525,
13,
309,
525,
422,
300,
21,
30,
327,
1668,
18,
3432,
63,
78,
65,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
16353,
1917,
335,
75,
992,
79,
12,
5457,
4672,
315,
694,
2653,
7573,
1917,
335,
611,
992,
79,
358,
611,
992,
79,
6,
277,
273,
374,
309,
1668,
18,
4923,
422,
315,
3915,
322,
265,
1766,
717,
992,
79,
6877,
1668,
18,
4923,
273,
315,
75,
992,
79,
6,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3374,
16,
8422,
4923,
3113,
374,
13,
309,
277,
480,
300,
21,
30,
1668,
18,
3374,
63,
77,
65,
273,
8422,
4923,
314,
992,
79,
6,
525,
273,
374,
1323,
1053,
30,
525,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
8422,
4936,
2952,
322,
265,
1766,
717,
992,
79,
3113,
525,
13,
309,
525,
422,
300,
21,
2
] |
turnover() -- turn the card (face up or down) & raise it onclick(handler), ondouble(handler), onmove(handler), onrelease(handler) -- set various mount event handlers reset() -- move the card out of sight, face down, and reset all event handlers Public instance variables: color, suit, value -- the card's color, suit and value
|
Public read-only instance variables: suit, value, color -- the card's suit, value and color
|
def __init__(self, stack):
|
1b2b53a25d27d96f60926802226dd375767cb3b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1b2b53a25d27d96f60926802226dd375767cb3b2/solitaire.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2110,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2110,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
css_url = '/'.join(self.getPhysicalPath()) + '/styleselect'
|
css_url = '/'.join(self.getPhysicalPath()) + '/styleselect_text'
|
def _add_styleselect_to_cfg(self, cfg): """ Adds a style select box to the front of the first row of buttons if it can find the styles file it needs if not it does nothing
|
8c8633f2bcc2e562504acb3b04c0239a78f71cb5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/8c8633f2bcc2e562504acb3b04c0239a78f71cb5/EditorTool.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
67,
10218,
13759,
67,
869,
67,
7066,
12,
2890,
16,
2776,
4672,
3536,
15605,
279,
2154,
2027,
3919,
358,
326,
6641,
434,
326,
1122,
1027,
434,
9502,
309,
518,
848,
1104,
326,
5687,
585,
518,
4260,
309,
486,
518,
1552,
5083,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
67,
10218,
13759,
67,
869,
67,
7066,
12,
2890,
16,
2776,
4672,
3536,
15605,
279,
2154,
2027,
3919,
358,
326,
6641,
434,
326,
1122,
1027,
434,
9502,
309,
518,
848,
1104,
326,
5687,
585,
518,
4260,
309,
486,
518,
1552,
5083,
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
] |
"Choose formats for " + str(self.title.text()),
|
"Choose formats for " + qstring_to_unicode((self.title.text())),
|
def add_format(self, x): files = choose_files(self, 'add formats dialog', "Choose formats for " + str(self.title.text()), [('Books', BOOK_EXTENSIONS)]) if not files: return for _file in files: _file = os.path.abspath(_file) if not os.access(_file, os.R_OK): QErrorMessage(self.window).showMessage("You do not have "+\ "permission to read the file: " + _file) continue size = os.stat(_file).st_size ext = os.path.splitext(_file)[1].lower() if '.' in ext: ext = ext.replace('.', '') for row in range(self.formats.count()): fmt = self.formats.item(row) if fmt.ext == ext: self.formats.takeItem(row) break Format(self.formats, ext, size, path=_file) self.formats_changed = True
|
74ba2b90a43cf61b3df1da5be886475a81e7176d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/74ba2b90a43cf61b3df1da5be886475a81e7176d/metadata_single.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
2139,
12,
2890,
16,
619,
4672,
1390,
273,
9876,
67,
2354,
12,
2890,
16,
296,
1289,
6449,
6176,
2187,
315,
24529,
6449,
364,
315,
397,
1043,
1080,
67,
869,
67,
9124,
12443,
2890,
18,
2649,
18,
955,
10756,
3631,
306,
2668,
9084,
87,
2187,
9784,
3141,
67,
12796,
55,
13,
5717,
309,
486,
1390,
30,
327,
364,
389,
768,
316,
1390,
30,
389,
768,
273,
1140,
18,
803,
18,
5113,
803,
24899,
768,
13,
309,
486,
1140,
18,
3860,
24899,
768,
16,
1140,
18,
54,
67,
3141,
4672,
2238,
14935,
12,
2890,
18,
5668,
2934,
4500,
1079,
2932,
6225,
741,
486,
1240,
13773,
64,
315,
9827,
358,
855,
326,
585,
30,
315,
397,
389,
768,
13,
1324,
963,
273,
1140,
18,
5642,
24899,
768,
2934,
334,
67,
1467,
1110,
273,
1140,
18,
803,
18,
4939,
408,
24899,
768,
25146,
21,
8009,
8167,
1435,
309,
2611,
316,
1110,
30,
1110,
273,
1110,
18,
2079,
2668,
1093,
16,
28707,
364,
1027,
316,
1048,
12,
2890,
18,
11962,
18,
1883,
1435,
4672,
1325,
273,
365,
18,
11962,
18,
1726,
12,
492,
13,
309,
1325,
18,
408,
422,
1110,
30,
365,
18,
11962,
18,
22188,
1180,
12,
492,
13,
898,
4077,
12,
2890,
18,
11962,
16,
1110,
16,
963,
16,
589,
33,
67,
768,
13,
365,
18,
11962,
67,
6703,
273,
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,
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,
0,
0,
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,
2139,
12,
2890,
16,
619,
4672,
1390,
273,
9876,
67,
2354,
12,
2890,
16,
296,
1289,
6449,
6176,
2187,
315,
24529,
6449,
364,
315,
397,
1043,
1080,
67,
869,
67,
9124,
12443,
2890,
18,
2649,
18,
955,
10756,
3631,
306,
2668,
9084,
87,
2187,
9784,
3141,
67,
12796,
55,
13,
5717,
309,
486,
1390,
30,
327,
364,
389,
768,
316,
1390,
30,
389,
768,
273,
1140,
18,
803,
18,
5113,
803,
24899,
768,
13,
309,
486,
1140,
18,
3860,
24899,
768,
16,
1140,
18,
54,
67,
3141,
4672,
2238,
14935,
12,
2890,
18,
5668,
2934,
4500,
1079,
2932,
6225,
741,
486,
1240,
13773,
64,
315,
9827,
358,
855,
326,
585,
30,
315,
397,
389,
768,
13,
2
] |
self.canv.setPageRotation(getattr(self.pageTemplate,'rotation',0)
|
self.canv.setPageRotation(getattr(self.pageTemplate,'rotation',0))
|
def handle_pageEnd(self): ''' show the current page check the next page template hang a page begin ''' #detect infinite loops... if self._curPageFlowableCount == 0: self._emptyPages = self._emptyPages + 1 else: self._emptyPages = 0 if self._emptyPages >= self._emptyPagesAllowed: if 1: ident = "More than %d pages generated without content - halting layout. Likely that a flowable is too large for any frame." % self._emptyPagesAllowed #leave to keep apart from the raise raise LayoutError(ident) else: pass #attempt to restore to good state else: if self._onProgress: self._onProgress('PAGE', self.canv.getPageNumber()) self.pageTemplate.afterDrawPage(self.canv, self) self.pageTemplate.onPageEnd(self.canv, self) self.afterPage() self.canv.setPageRotation(getattr(self.pageTemplate,'rotation',0) self.canv.showPage()
|
34b9f676284e1c0b30cc787c7ee768eb0d7ddf64 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/34b9f676284e1c0b30cc787c7ee768eb0d7ddf64/doctemplate.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2433,
1638,
12,
2890,
4672,
9163,
2405,
326,
783,
1363,
866,
326,
1024,
1363,
1542,
25733,
279,
1363,
2376,
9163,
468,
16518,
14853,
14075,
2777,
309,
365,
6315,
1397,
1964,
5249,
429,
1380,
422,
374,
30,
365,
6315,
5531,
5716,
273,
365,
6315,
5531,
5716,
397,
404,
469,
30,
365,
6315,
5531,
5716,
273,
374,
309,
365,
6315,
5531,
5716,
1545,
365,
6315,
5531,
5716,
5042,
30,
309,
404,
30,
3390,
273,
315,
7417,
2353,
738,
72,
4689,
4374,
2887,
913,
300,
19514,
1787,
3511,
18,
225,
511,
1766,
2357,
716,
279,
4693,
429,
353,
4885,
7876,
364,
1281,
2623,
1199,
738,
365,
6315,
5531,
5716,
5042,
468,
19574,
358,
3455,
513,
485,
628,
326,
1002,
1002,
9995,
668,
12,
6392,
13,
469,
30,
1342,
565,
468,
11764,
358,
5217,
358,
7494,
919,
469,
30,
309,
365,
6315,
265,
5491,
30,
365,
6315,
265,
5491,
2668,
11219,
2187,
365,
18,
4169,
90,
18,
588,
1964,
1854,
10756,
365,
18,
2433,
2283,
18,
5205,
6493,
1964,
12,
2890,
18,
4169,
90,
16,
365,
13,
365,
18,
2433,
2283,
18,
265,
1964,
1638,
12,
2890,
18,
4169,
90,
16,
365,
13,
365,
18,
5205,
1964,
1435,
365,
18,
4169,
90,
18,
542,
1964,
14032,
12,
588,
1747,
12,
2890,
18,
2433,
2283,
11189,
18807,
2187,
20,
3719,
365,
18,
4169,
90,
18,
4500,
1964,
1435,
2,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2433,
1638,
12,
2890,
4672,
9163,
2405,
326,
783,
1363,
866,
326,
1024,
1363,
1542,
25733,
279,
1363,
2376,
9163,
468,
16518,
14853,
14075,
2777,
309,
365,
6315,
1397,
1964,
5249,
429,
1380,
422,
374,
30,
365,
6315,
5531,
5716,
273,
365,
6315,
5531,
5716,
397,
404,
469,
30,
365,
6315,
5531,
5716,
273,
374,
309,
365,
6315,
5531,
5716,
1545,
365,
6315,
5531,
5716,
5042,
30,
309,
404,
30,
3390,
273,
315,
7417,
2353,
738,
72,
4689,
4374,
2887,
913,
300,
19514,
1787,
3511,
18,
225,
511,
1766,
2357,
716,
279,
4693,
429,
353,
4885,
7876,
364,
1281,
2623,
1199,
738,
365,
6315,
5531,
5716,
5042,
468,
19574,
358,
3455,
513,
485,
628,
326,
1002,
2
] |
nbrmax = 0
|
nbrmax = 1
|
def process_liness(self, datas, prefix, fields_def, position=0): line = datas[position] row = {} translate = {} todo = [] warning = '' # # Import normal fields # for i in range(len(fields)): if i>=len(line): raise 'Please check that all your lines have %d cols.' % (len(fields),) field = fields[i] if (len(field)==len(prefix)+1) and field[len(prefix)].endswith(':id'): res_id = False if line[i]: if fields_def[field[len(prefix)][:-3]]['type']=='many2many': res_id = [] for word in line[i].split(','): module, xml_id = word.rsplit('.', 1) ir_model_data_obj = self.pool.get('ir.model.data') id=ir_model_data_obj._get_id(cr, uid, module, xml_id) res_id2=ir_model_data_obj.read(cr, uid, [id], ['res_id'])[0]['res_id'] if res_id2: res_id.append(res_id2) if len(res_id): res_id=[(6,0,res_id)] else: module, xml_id = line[i].rsplit('.', 1) ir_model_data_obj = self.pool.get('ir.model.data') id=ir_model_data_obj._get_id(cr, uid, module, xml_id) res_id=ir_model_data_obj.read(cr, uid, [id], ['res_id'])[0]['res_id'] row[field[0][:-3]] = res_id or False continue if (len(field)==len(prefix)+1) and len(field[len(prefix)].split(':lang=')) == 2: f, lang = field[len(prefix)].split(':lang=') translate.setdefault(lang, {})[f]=line[i] or False continue if (len(field)==len(prefix)+1) and (prefix==field[0:len(prefix)]): if fields_def[field[len(prefix)]]['type']=='integer': res =line[i] and int(line[i]) elif fields_def[field[len(prefix)]]['type']=='float': res =line[i] and float(line[i]) elif fields_def[field[len(prefix)]]['type']=='selection': res = False for key,val in fields_def[field[len(prefix)]]['selection']: if key==line[i]: #val==line[i] if from the client ! res = key if line[i] and not res: logger = netsvc.Logger() logger.notifyChannel("import", netsvc.LOG_WARNING, "key '%s' not found in selection field '%s'" %(line[i], field[len(prefix)])) elif fields_def[field[len(prefix)]]['type']=='many2one': res = False if line[i]: relation = fields_def[field[len(prefix)]]['relation'] res2 = self.pool.get(relation).name_search(cr, uid, line[i], [],operator='=') res = (res2 and res2[0][0]) or False if not res and line[i]: warning += ('Relation not found: '+line[i]+' on '+relation + ' !\n') if not res: print 'Relation not found: '+line[i]+' on '+relation + ' !\n' elif fields_def[field[len(prefix)]]['type']=='many2many': res = [] if line[i]: relation = fields_def[field[len(prefix)]]['relation'] for word in line[i].split(','): res2 = self.pool.get(relation).name_search(cr, uid, word, [],operator='=') res3 = (res2 and res2[0][0]) or False if res3: res.append(res3) if len(res): res= [(6,0,res)] else: res = line[i] or False row[field[len(prefix)]] = res elif (prefix==field[0:len(prefix)]): if field[0] not in todo: todo.append(field[len(prefix)])
|
2793e2cec6e904dd16f977b9ef699fabc550be0d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/2793e2cec6e904dd16f977b9ef699fabc550be0d/orm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
80,
6336,
12,
2890,
16,
5386,
16,
1633,
16,
1466,
67,
536,
16,
1754,
33,
20,
4672,
980,
273,
5386,
63,
3276,
65,
1027,
273,
2618,
4204,
273,
2618,
10621,
273,
5378,
3436,
273,
875,
468,
468,
6164,
2212,
1466,
468,
364,
277,
316,
1048,
12,
1897,
12,
2821,
3719,
30,
309,
277,
34,
33,
1897,
12,
1369,
4672,
1002,
296,
8496,
866,
716,
777,
3433,
2362,
1240,
738,
72,
5347,
1093,
738,
261,
1897,
12,
2821,
3631,
13,
652,
273,
1466,
63,
77,
65,
309,
261,
1897,
12,
1518,
13,
631,
1897,
12,
3239,
27921,
21,
13,
471,
652,
63,
1897,
12,
3239,
13,
8009,
5839,
1918,
2668,
30,
350,
11,
4672,
400,
67,
350,
273,
1083,
309,
980,
63,
77,
14542,
309,
1466,
67,
536,
63,
1518,
63,
1897,
12,
3239,
13,
6362,
30,
17,
23,
13563,
3292,
723,
3546,
18920,
9353,
22,
9353,
4278,
400,
67,
350,
273,
5378,
364,
2076,
316,
980,
63,
77,
8009,
4939,
12,
17023,
4672,
1605,
16,
2025,
67,
350,
273,
2076,
18,
86,
4939,
2668,
1093,
16,
404,
13,
9482,
67,
2284,
67,
892,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2284,
18,
892,
6134,
612,
33,
481,
67,
2284,
67,
892,
67,
2603,
6315,
588,
67,
350,
12,
3353,
16,
4555,
16,
1605,
16,
2025,
67,
350,
13,
400,
67,
350,
22,
33,
481,
67,
2284,
67,
892,
67,
2603,
18,
896,
12,
3353,
16,
4555,
16,
306,
350,
6487,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
80,
6336,
12,
2890,
16,
5386,
16,
1633,
16,
1466,
67,
536,
16,
1754,
33,
20,
4672,
980,
273,
5386,
63,
3276,
65,
1027,
273,
2618,
4204,
273,
2618,
10621,
273,
5378,
3436,
273,
875,
468,
468,
6164,
2212,
1466,
468,
364,
277,
316,
1048,
12,
1897,
12,
2821,
3719,
30,
309,
277,
34,
33,
1897,
12,
1369,
4672,
1002,
296,
8496,
866,
716,
777,
3433,
2362,
1240,
738,
72,
5347,
1093,
738,
261,
1897,
12,
2821,
3631,
13,
652,
273,
1466,
63,
77,
65,
309,
261,
1897,
12,
1518,
13,
631,
1897,
12,
3239,
27921,
21,
13,
471,
652,
63,
1897,
12,
3239,
13,
8009,
5839,
1918,
2668,
30,
350,
11,
4672,
400,
67,
350,
2
] |
1000000.0*f0.get()*advanced.Bcal.get() + 0.5)
|
f0.get()*(1000000.0 + advanced.Bcal.get()) + 0.5)
|
def update(): global root_geom,isec0,im,pim,ndbm0,nsec0,a,ftx0,nin0,nout0, \ receiving,transmitting,newdat,nscroll,newspec,scale0,offset0, \ modpixmap0,tw,s0,c0,fmid,fmid0,loopall,ntr0,txmsg,iband0, \ bandmap,bm tsec=time.time() utc=time.gmtime(tsec) nsec=int(tsec) nsec0=nsec ns120=nsec % 120 try: f0.set(float(sf0.get())) ftx.set(float(sftx.get())) except: pass isec=utc[5] if iband.get()!=iband0: f0.set(freq0[iband.get()]) t="%.6f" % (f0.get(),) sf0.set(t) ftx.set(freqtx[iband.get()]) t="%.6f" % (ftx.get(),) sftx.set(t) if options.cat_enable.get(): print 'A',advanced.encal.get(),advanced.Acal.get(),advanced.Bcal.get() if advanced.encal.get(): nHz=int(advanced.Acal.get() + \ 1000000.0*f0.get()*advanced.Bcal.get() + 0.5) else: nHz=int(1000000.0*f0.get() + 0.5) cmd="rigctl -m %d -r %s -s %d -C data_bits=%s -C stop_bits=%s -C serial_handshake=%s F %d" % \ (options.rignum.get(),options.CatPort.get(), \ options.serial_rate.get(),options.databits.get(), \ options.stopbits.get(),options.serial_handshake.get(), nHz) ierr=os.system(cmd) if ierr!=0: print 'Error executing rigctl command to set frequency:' print cmd bandmap=[] bm={} text1.configure(state=NORMAL) text1.delete('1.0',END) text1.configure(state=DISABLED) iband0=iband.get()
|
b48e7878d698ec16bfc020ce6a88923098255ee4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2394/b48e7878d698ec16bfc020ce6a88923098255ee4/wspr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
13332,
2552,
1365,
67,
10049,
16,
291,
557,
20,
16,
381,
16,
84,
381,
16,
82,
1966,
81,
20,
16,
82,
3321,
20,
16,
69,
16,
74,
978,
20,
16,
82,
267,
20,
16,
82,
659,
20,
16,
521,
15847,
16,
2338,
1938,
1787,
16,
2704,
3404,
16,
82,
12033,
16,
2704,
2793,
16,
5864,
20,
16,
3348,
20,
16,
521,
681,
14861,
1458,
20,
16,
11246,
16,
87,
20,
16,
71,
20,
16,
74,
13138,
16,
74,
13138,
20,
16,
6498,
454,
16,
82,
313,
20,
16,
978,
3576,
16,
495,
464,
20,
16,
521,
8937,
1458,
16,
25709,
225,
268,
3321,
33,
957,
18,
957,
1435,
9439,
33,
957,
18,
75,
10838,
12,
88,
3321,
13,
290,
3321,
33,
474,
12,
88,
3321,
13,
290,
3321,
20,
33,
82,
3321,
3153,
22343,
33,
82,
3321,
738,
15743,
775,
30,
284,
20,
18,
542,
12,
5659,
12,
21668,
20,
18,
588,
1435,
3719,
284,
978,
18,
542,
12,
5659,
12,
21668,
978,
18,
588,
1435,
3719,
1335,
30,
1342,
277,
3321,
33,
17892,
63,
25,
65,
225,
309,
9834,
464,
18,
588,
1435,
5,
33,
495,
464,
20,
30,
284,
20,
18,
542,
12,
10212,
20,
63,
495,
464,
18,
588,
1435,
5717,
268,
11613,
18,
26,
74,
6,
738,
261,
74,
20,
18,
588,
9334,
13,
9033,
20,
18,
542,
12,
88,
13,
284,
978,
18,
542,
12,
10212,
978,
63,
495,
464,
18,
588,
1435,
5717,
268,
11613,
18,
26,
74,
6,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
13332,
2552,
1365,
67,
10049,
16,
291,
557,
20,
16,
381,
16,
84,
381,
16,
82,
1966,
81,
20,
16,
82,
3321,
20,
16,
69,
16,
74,
978,
20,
16,
82,
267,
20,
16,
82,
659,
20,
16,
521,
15847,
16,
2338,
1938,
1787,
16,
2704,
3404,
16,
82,
12033,
16,
2704,
2793,
16,
5864,
20,
16,
3348,
20,
16,
521,
681,
14861,
1458,
20,
16,
11246,
16,
87,
20,
16,
71,
20,
16,
74,
13138,
16,
74,
13138,
20,
16,
6498,
454,
16,
82,
313,
20,
16,
978,
3576,
16,
495,
464,
20,
16,
521,
8937,
1458,
16,
25709,
225,
268,
3321,
33,
957,
18,
957,
1435,
9439,
33,
957,
18,
75,
10838,
12,
88,
3321,
2
] |
return xj = int(aaitem-0.5)
|
return False xj = int(round(aaitem))-1
|
def getcd(isprobe, akey): # get course and distance irowq=game.quadrant.x; icolq=game.quadrant.y; key=0 navmode = "unspecified" itemp = "curt" incr = coord() iprompt = False # Get course direction and distance. If user types bad values, return # with DIREC = -1.0. game.direc = -1.0 if game.landed and not isprobe: prout(_("Dummy! You can't leave standard orbit until you")) proutn(_("are back aboard the ship.")) chew() return while navmode == "unspecified": if damaged(DNAVSYS): if isprobe: prout(_("Computer damaged; manual navigation only")) else: prout(_("Computer damaged; manual movement only")) chew() navmode = "manual" key = IHEOL break if isprobe and akey != -1: # For probe launch, use pre-scanned value first time key = akey akey = -1 else: key = scan() if key == IHEOL: proutn(_("Manual or automatic- ")) iprompt = True chew() elif key == IHALPHA: if isit("manual"): navmode = "manual" key = scan() break elif isit("automatic"): navmode = "automatic" key = scan() break else: huh() chew() return else: # numeric if isprobe: prout(_("(Manual navigation assumed.)")) else: prout(_("(Manual movement assumed.)")) navmode = "manual" break if navmode == "automatic": while key == IHEOL: if isprobe: proutn(_("Target quadrant or quadrant§or- ")) else: proutn(_("Destination sector or quadrant§or- ")) chew() iprompt = True key = scan() if key != IHREAL: huh() return xi = int(aaitem-0.05) key = scan() if key != IHREAL: huh() return xj = int(aaitem-0.5) key = scan() if key == IHREAL: # both quadrant and sector specified xk = aaitem key = scan() if key != IHREAL: huh() return xl = aaitem irowq = xi + 0.5 icolq = xj + 0.5 incr.y = xk + 0.5 incr.x = xl + 0.5 else: if isprobe: # only quadrant specified -- go to center of dest quad irowq = xi + 0.5 icolq = xj + 0.5 incr.y = incr.x = 5 else: incr.y = xi + 0.5 incr.x = xj + 0.5 itemp = "normal" if not VALID_QUADRANT(icolq,irowq) or not VALID_SECTOR(incr.x,incr.y): huh() return skip(1) if not isprobe: if itemp > "curt": if iprompt: prout(_("Helmsman Sulu- \"Course locked in for Sector %s.\"") % incr) else: prout(_("Ensign Chekov- \"Course laid in, Captain.\"")) deltax = icolq - game.quadrant.y + 0.1*(incr.x-game.sector.y) deltay = game.quadrant.x - irowq + 0.1*(game.sector.x-incr.y) else: # manual while key == IHEOL: proutn(_("X and Y displacements- ")) chew() iprompt = True key = scan() itemp = "verbose" if key != IHREAL: huh() return deltax = aaitem key = scan() if key != IHREAL: huh() return deltay = aaitem # Check for zero movement if deltax == 0 and deltay == 0: chew() return if itemp == "verbose" and not isprobe: skip(1) prout(_("Helmsman Sulu- \"Aye, Sir.\"")) game.dist = math.sqrt(deltax*deltax + deltay*deltay) game.direc = math.atan2(deltax, deltay)*1.90985932 if game.direc < 0.0: game.direc += 12.0 chew() return
|
b1c9c5334f08ac7846e441ce750b7e9ad119b37d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/b1c9c5334f08ac7846e441ce750b7e9ad119b37d/sst.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
4315,
12,
291,
27230,
16,
279,
856,
4672,
468,
336,
4362,
471,
3888,
277,
492,
85,
33,
13957,
18,
21733,
6890,
18,
92,
31,
277,
1293,
85,
33,
13957,
18,
21733,
6890,
18,
93,
31,
498,
33,
20,
8775,
3188,
273,
315,
318,
13827,
6,
761,
84,
273,
315,
1397,
88,
6,
17633,
273,
2745,
1435,
2359,
8645,
273,
1083,
225,
468,
968,
4362,
4068,
471,
3888,
18,
971,
729,
1953,
5570,
924,
16,
327,
468,
598,
3690,
862,
39,
273,
300,
21,
18,
20,
18,
7920,
18,
72,
577,
71,
273,
300,
21,
18,
20,
225,
309,
7920,
18,
80,
5860,
471,
486,
353,
27230,
30,
450,
322,
24899,
2932,
20094,
5,
4554,
848,
1404,
8851,
4529,
17656,
3180,
1846,
6,
3719,
450,
322,
82,
24899,
2932,
834,
1473,
279,
3752,
326,
24316,
1199,
3719,
462,
359,
1435,
327,
1323,
8775,
3188,
422,
315,
318,
13827,
6877,
309,
302,
301,
11349,
12,
8609,
5856,
30664,
4672,
309,
353,
27230,
30,
450,
322,
24899,
2932,
7703,
264,
302,
301,
11349,
31,
11297,
10394,
1338,
6,
3719,
469,
30,
450,
322,
24899,
2932,
7703,
264,
302,
301,
11349,
31,
11297,
26017,
1338,
6,
3719,
462,
359,
1435,
8775,
3188,
273,
315,
19840,
6,
498,
273,
467,
3900,
1741,
898,
309,
353,
27230,
471,
279,
856,
480,
300,
21,
30,
468,
2457,
10695,
8037,
16,
999,
675,
17,
1017,
10041,
460,
1122,
813,
498,
273,
279,
856,
279,
856,
273,
300,
21,
469,
30,
498,
273,
4135,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
4315,
12,
291,
27230,
16,
279,
856,
4672,
468,
336,
4362,
471,
3888,
277,
492,
85,
33,
13957,
18,
21733,
6890,
18,
92,
31,
277,
1293,
85,
33,
13957,
18,
21733,
6890,
18,
93,
31,
498,
33,
20,
8775,
3188,
273,
315,
318,
13827,
6,
761,
84,
273,
315,
1397,
88,
6,
17633,
273,
2745,
1435,
2359,
8645,
273,
1083,
225,
468,
968,
4362,
4068,
471,
3888,
18,
971,
729,
1953,
5570,
924,
16,
327,
468,
598,
3690,
862,
39,
273,
300,
21,
18,
20,
18,
7920,
18,
72,
577,
71,
273,
300,
21,
18,
20,
225,
309,
7920,
18,
80,
5860,
471,
486,
353,
27230,
30,
450,
322,
24899,
2932,
20094,
5,
4554,
848,
1404,
8851,
2
] |
buf_len = self.__get_rbuf_len() while size < 0 or buf_len < size: recv_size = max(self._rbufsize, size - buf_len) data = self._sock.recv(recv_size) if not data: break buf_len += len(data) self._rbuf.append(data) data = ''.join(self._rbuf) self._rbuf = [ ] if buf_len > size and size >= 0:
|
if size < 0: if self._rbufsize <= 1: recv_size = self.default_bufsize else: recv_size = self._rbufsize while 1: data = self._sock.recv(recv_size) if not data: break self._rbuf.append(data) else: buf_len = self._get_rbuf_len() while buf_len < size: recv_size = max(self._rbufsize, size - buf_len) data = self._sock.recv(recv_size) if not data: break buf_len += len(data) self._rbuf.append(data) data = "".join(self._rbuf) self._rbuf = [] if 0 <= size < buf_len:
|
def read(self, size=-1): buf_len = self.__get_rbuf_len() while size < 0 or buf_len < size: recv_size = max(self._rbufsize, size - buf_len) data = self._sock.recv(recv_size) if not data: break buf_len += len(data) self._rbuf.append(data) # Clear the rbuf at the end so we're not affected by # an exception during a recv data = ''.join(self._rbuf) self._rbuf = [ ] if buf_len > size and size >= 0: self._rbuf.append(data[size:]) data = data[:size] return data
|
27d975d627ac3873241741299112e1d228e86e3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/27d975d627ac3873241741299112e1d228e86e3f/socket.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
963,
29711,
21,
4672,
1681,
67,
1897,
273,
365,
16186,
588,
67,
86,
4385,
67,
1897,
1435,
1323,
963,
411,
374,
578,
1681,
67,
1897,
411,
963,
30,
10665,
67,
1467,
273,
943,
12,
2890,
6315,
86,
4385,
1467,
16,
963,
300,
1681,
67,
1897,
13,
501,
273,
365,
6315,
15031,
18,
18334,
12,
18334,
67,
1467,
13,
309,
486,
501,
30,
898,
1681,
67,
1897,
1011,
562,
12,
892,
13,
365,
6315,
86,
4385,
18,
6923,
12,
892,
13,
468,
10121,
326,
436,
4385,
622,
326,
679,
1427,
732,
4565,
486,
9844,
635,
468,
392,
1520,
4982,
279,
10665,
501,
273,
875,
18,
5701,
12,
2890,
6315,
86,
4385,
13,
365,
6315,
86,
4385,
273,
306,
308,
309,
1681,
67,
1897,
405,
963,
471,
963,
1545,
374,
30,
365,
6315,
86,
4385,
18,
6923,
12,
892,
63,
1467,
30,
5717,
501,
273,
501,
10531,
1467,
65,
327,
501,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
86,
4385,
1467,
16,
963,
300,
1681,
67,
1897,
13,
501,
273,
365,
6315,
15031,
18,
18334,
12,
18334,
67,
1467,
13,
309,
486,
501,
30,
898,
1681,
67,
1897,
1011,
562,
12,
892,
13,
365,
6315,
86,
4385,
18,
6923,
12,
892,
13,
468,
10121,
326,
436,
4385,
622,
326,
679,
1427,
732,
4565,
486,
9844,
635,
468,
392,
1520,
4982,
279,
10665,
501,
273,
875,
18,
5701,
12,
2890,
6315,
86,
4385,
13,
365,
6315,
86,
2
] |
tuple = (u.scheme, host, result, "", u.fragment_identifier) u2 = urlparse.urlunsplit(tuple) if self.exists(u2): raise TargetNameCreationFailure(u2)
|
u2 = result
|
def get_target_name(self, sound_file):
|
00c7950d95780419f81f22b1df74d95c2287e517 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2369/00c7950d95780419f81f22b1df74d95c2287e517/soundconverter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3299,
67,
529,
12,
2890,
16,
14190,
67,
768,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
67,
3299,
67,
529,
12,
2890,
16,
14190,
67,
768,
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
] |
buffer.set_modified(False)
|
def edit_widget(self): self.output = gtk.TextView() self.output.modify_font(pango.FontDescription('monospace 9')) self.output.set_wrap_mode(gtk.WRAP_WORD) buffer.connect('modified-changed', self.update_title) buffer.set_modified(False)
|
4a48893af59d7ebd151092c683fa2697ec4ab1aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10693/4a48893af59d7ebd151092c683fa2697ec4ab1aa/editor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
67,
6587,
12,
2890,
4672,
365,
18,
2844,
273,
22718,
18,
1528,
1767,
1435,
225,
365,
18,
2844,
18,
17042,
67,
5776,
12,
84,
6399,
18,
5711,
3291,
2668,
2586,
538,
909,
2468,
26112,
365,
18,
2844,
18,
542,
67,
4113,
67,
3188,
12,
4521,
79,
18,
27664,
67,
7952,
13,
225,
1613,
18,
3612,
2668,
7342,
17,
6703,
2187,
365,
18,
2725,
67,
2649,
13,
1613,
18,
542,
67,
7342,
12,
8381,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
67,
6587,
12,
2890,
4672,
365,
18,
2844,
273,
22718,
18,
1528,
1767,
1435,
225,
365,
18,
2844,
18,
17042,
67,
5776,
12,
84,
6399,
18,
5711,
3291,
2668,
2586,
538,
909,
2468,
26112,
365,
18,
2844,
18,
542,
67,
4113,
67,
3188,
12,
4521,
79,
18,
27664,
67,
7952,
13,
225,
1613,
18,
3612,
2668,
7342,
17,
6703,
2187,
365,
18,
2725,
67,
2649,
13,
1613,
18,
542,
67,
7342,
12,
8381,
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
] |
|
str = self._table_header(heading, 'details')+'</TABLE>'
|
str = self._table_header(heading, 'details')+'</table>'
|
def _var_details(self, variables, heading='Variable Details'): """## Return a detailed description of the variables in a class or module.""" variables = self._sort(variables) if len(variables) == 0: return '' str = self._table_header(heading, 'details')+'</TABLE>'
|
89bd16eaf8c7e556babe42c6a92621dbc9b8a7e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/89bd16eaf8c7e556babe42c6a92621dbc9b8a7e9/html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1401,
67,
6395,
12,
2890,
16,
3152,
16,
11053,
2218,
3092,
21897,
11,
4672,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1401,
67,
6395,
12,
2890,
16,
3152,
16,
11053,
2218,
3092,
21897,
11,
4672,
3536,
1189,
2000,
279,
6864,
2477,
434,
326,
3152,
316,
279,
667,
578,
1605,
12123,
3152,
273,
365,
6315,
3804,
12,
7528,
13,
309,
562,
12,
7528,
13,
422,
374,
30,
327,
875,
609,
273,
365,
6315,
2121,
67,
3374,
12,
19948,
16,
296,
6395,
6134,
6797,
1757,
7775,
1870,
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
] |
c.priority,c.type_action,c.date_deadline,c.date_closed
|
c.priority,c.type_action,c.date_deadline,c.date_closed,c.id
|
def init(self, cr):
|
b4e84192bb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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
4422,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def highlight_line(self, target, lineno):
|
def highlight_line(self, target, lineno, clear_highlighting = True):
|
def highlight_line(self, target, lineno): '''Highlights the line linenno in the target Text widget.'''
|
e54efb1724e4ea1f43009783bb0726df33343ebf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5103/e54efb1724e4ea1f43009783bb0726df33343ebf/TraceDisplayWindow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8839,
67,
1369,
12,
2890,
16,
1018,
16,
7586,
16,
2424,
67,
15978,
310,
273,
1053,
4672,
9163,
16205,
87,
326,
980,
4739,
275,
2135,
316,
326,
1018,
3867,
3604,
1093,
6309,
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,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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
] |
command=cmd_base+' -b "'+base+'" \'(GlueCEAccessControlBaseRule=VO:cms)\''+' '.join(attrs)
|
command=cmd_base+' -b "'+base+'" '+' '.join(attrs)
|
def getLdap(base,attrs,ldaphost,ret_dn=False): all_res=[] cmd_base='ldapsearch -LLL -x -H ldap://'+ldaphost command=cmd_base+' -b "'+base+'" \'(GlueCEAccessControlBaseRule=VO:cms)\''+' '.join(attrs) #command=cmd_base+' -b "'+base+'" '+' '.join(attrs) FNULL = open('/dev/null', 'w') try: data=Popen(command,stdout=PIPE,stderr=FNULL,shell=True).communicate()[0] except: ## we don't really care data='' FNULL.close() ## reparse the ldapsearch data: any '\n \S' sequence means actually '\S' ## see http://www.openldap.org/lists/openldap-software/200303/msg00509.html reg_fix_ldapout=re.compile(r"\n (\S)") data=reg_fix_ldapout.sub(r"\1",data) ## split different answers reg_split=re.compile(r"\n\s*\n") blocks=reg_split.split(data) for attr in attrs: res=[] for b in blocks: ## get the block with source info reg_block=re.compile(r"^\s*dn\s*:\s*(?P<dn>.*?)$(?P<real_data>.*?^\s*"+attr+"\s*:.*)\Z",re.M | re.S) blockres=reg_block.search(b) source = None tmp_res=[] if blockres: source=blockres.group('dn') reg_attr=re.compile(r"^\s*"+attr+"\s*:\s*(?P<value>\S.*?)\s*$",re.M) for val in reg_attr.finditer(blockres.group('real_data')): tmp_res.append(val.group('value')) if ret_dn: if source: res.append([source,tmp_res]) else: res=res+tmp_res all_res.append(res) #print all_res,command return all_res
|
c84da4e0ed0bd8d90853465c480a06326c7c2553 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8887/c84da4e0ed0bd8d90853465c480a06326c7c2553/LCGSiteInfo.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9014,
6223,
12,
1969,
16,
7039,
16,
14394,
2564,
16,
1349,
67,
5176,
33,
8381,
4672,
777,
67,
455,
33,
8526,
225,
1797,
67,
1969,
2218,
14394,
3072,
300,
4503,
48,
300,
92,
300,
44,
8079,
8931,
15,
14394,
2564,
225,
1296,
33,
4172,
67,
1969,
6797,
300,
70,
2491,
15,
1969,
15,
4970,
7164,
12,
21308,
344,
1441,
16541,
2171,
2175,
33,
16169,
30,
6851,
13,
11421,
6797,
2418,
5701,
12,
7039,
13,
468,
3076,
33,
4172,
67,
1969,
6797,
300,
70,
2491,
15,
1969,
15,
4970,
10058,
2418,
5701,
12,
7039,
13,
225,
478,
8560,
273,
1696,
2668,
19,
5206,
19,
2011,
2187,
296,
91,
6134,
775,
30,
501,
33,
52,
3190,
12,
3076,
16,
10283,
33,
27602,
16,
11241,
33,
42,
8560,
16,
10304,
33,
5510,
2934,
5702,
318,
2659,
1435,
63,
20,
65,
1335,
30,
7541,
732,
2727,
1404,
8654,
7671,
501,
2218,
11,
478,
8560,
18,
4412,
1435,
225,
7541,
283,
2670,
326,
8079,
3072,
501,
30,
1281,
2337,
82,
521,
55,
11,
3102,
4696,
6013,
2337,
55,
11,
7541,
2621,
1062,
2207,
5591,
18,
3190,
14394,
18,
3341,
19,
9772,
19,
3190,
14394,
17,
9269,
2726,
19,
6976,
23,
4630,
19,
3576,
713,
5995,
18,
2620,
960,
67,
904,
67,
14394,
659,
33,
266,
18,
11100,
12,
86,
12691,
82,
17938,
55,
2225,
13,
501,
33,
1574,
67,
904,
67,
14394,
659,
18,
1717,
12,
86,
12691,
21,
3113,
892,
13,
225,
7541,
1416,
3775,
12415,
960,
67,
4939,
33,
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,
9014,
6223,
12,
1969,
16,
7039,
16,
14394,
2564,
16,
1349,
67,
5176,
33,
8381,
4672,
777,
67,
455,
33,
8526,
225,
1797,
67,
1969,
2218,
14394,
3072,
300,
4503,
48,
300,
92,
300,
44,
8079,
8931,
15,
14394,
2564,
225,
1296,
33,
4172,
67,
1969,
6797,
300,
70,
2491,
15,
1969,
15,
4970,
7164,
12,
21308,
344,
1441,
16541,
2171,
2175,
33,
16169,
30,
6851,
13,
11421,
6797,
2418,
5701,
12,
7039,
13,
468,
3076,
33,
4172,
67,
1969,
6797,
300,
70,
2491,
15,
1969,
15,
4970,
10058,
2418,
5701,
12,
7039,
13,
225,
478,
8560,
273,
1696,
2668,
19,
5206,
19,
2011,
2187,
296,
91,
6134,
775,
30,
501,
33,
52,
3190,
12,
3076,
16,
10283,
2
] |
arch_table.c.id == system_arch_map.c.arch_id] query = getattr(arch_table.c.arch, op)(value)
|
alias.c.id == system_arch_map.c.arch_id] query = getattr(alias.c.arch, op)(value)
|
def filter(self): op = self.op_table[self.get_xml_attr('op', unicode, '==')] value = self.get_xml_attr('value', unicode, None) joins = [] query = None if value: joins = [system_table.c.id == system_arch_map.c.system_id, arch_table.c.id == system_arch_map.c.arch_id] query = getattr(arch_table.c.arch, op)(value) return (joins, query)
|
1bb27266646c896c21ffb02709dc3544a7ceaa04 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14755/1bb27266646c896c21ffb02709dc3544a7ceaa04/needpropertyxml.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1034,
12,
2890,
4672,
1061,
273,
365,
18,
556,
67,
2121,
63,
2890,
18,
588,
67,
2902,
67,
1747,
2668,
556,
2187,
5252,
16,
296,
631,
6134,
65,
460,
273,
365,
18,
588,
67,
2902,
67,
1747,
2668,
1132,
2187,
5252,
16,
599,
13,
13471,
273,
5378,
843,
273,
599,
309,
460,
30,
13471,
273,
306,
4299,
67,
2121,
18,
71,
18,
350,
422,
2619,
67,
991,
67,
1458,
18,
71,
18,
4299,
67,
350,
16,
2308,
18,
71,
18,
350,
282,
422,
2619,
67,
991,
67,
1458,
18,
71,
18,
991,
67,
350,
65,
843,
273,
3869,
12,
4930,
18,
71,
18,
991,
16,
1061,
21433,
1132,
13,
327,
261,
30624,
16,
843,
13,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1034,
12,
2890,
4672,
1061,
273,
365,
18,
556,
67,
2121,
63,
2890,
18,
588,
67,
2902,
67,
1747,
2668,
556,
2187,
5252,
16,
296,
631,
6134,
65,
460,
273,
365,
18,
588,
67,
2902,
67,
1747,
2668,
1132,
2187,
5252,
16,
599,
13,
13471,
273,
5378,
843,
273,
599,
309,
460,
30,
13471,
273,
306,
4299,
67,
2121,
18,
71,
18,
350,
422,
2619,
67,
991,
67,
1458,
18,
71,
18,
4299,
67,
350,
16,
2308,
18,
71,
18,
350,
282,
422,
2619,
67,
991,
67,
1458,
18,
71,
18,
991,
67,
350,
65,
843,
273,
3869,
12,
4930,
18,
71,
18,
991,
16,
1061,
21433,
1132,
13,
327,
261,
30624,
16,
843,
13,
2,
-100,
-100,
-100
] |
decl[m.groups()[0]] = 1
|
decl[m.groups()[1]] = 1
|
def findExplicitDeclarations(text): decl = {} t = text while len(t): m = re.search(r'Declarations?:[^\(]*?\s*([a-zA-Z_][a-zA-Z_0-9]*) *\(', t) if not m: break decl[m.groups()[0]] = 1 t = t[m.end():] t = "" for i in decl.keys(): t = t + i + "|" if t: return "(" + t[:-1] + ")" else: return None
|
88c123fa13334051c00d12e743af5ddd88d74756 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12582/88c123fa13334051c00d12e743af5ddd88d74756/post.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
17186,
21408,
12,
955,
4672,
3496,
273,
2618,
268,
273,
977,
1323,
562,
12,
88,
4672,
312,
273,
283,
18,
3072,
12,
86,
11,
21408,
35,
30,
15441,
12,
5772,
10936,
87,
14,
3816,
69,
17,
9600,
17,
62,
67,
6362,
69,
17,
9600,
17,
62,
67,
20,
17,
29,
15471,
380,
30351,
2187,
268,
13,
309,
486,
312,
30,
898,
3496,
63,
81,
18,
4650,
1435,
63,
21,
13563,
273,
404,
268,
273,
268,
63,
81,
18,
409,
13332,
65,
268,
273,
1408,
364,
277,
316,
3496,
18,
2452,
13332,
268,
273,
268,
397,
277,
397,
15710,
309,
268,
30,
327,
12452,
397,
268,
10531,
17,
21,
65,
397,
7310,
469,
30,
327,
599,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
17186,
21408,
12,
955,
4672,
3496,
273,
2618,
268,
273,
977,
1323,
562,
12,
88,
4672,
312,
273,
283,
18,
3072,
12,
86,
11,
21408,
35,
30,
15441,
12,
5772,
10936,
87,
14,
3816,
69,
17,
9600,
17,
62,
67,
6362,
69,
17,
9600,
17,
62,
67,
20,
17,
29,
15471,
380,
30351,
2187,
268,
13,
309,
486,
312,
30,
898,
3496,
63,
81,
18,
4650,
1435,
63,
21,
13563,
273,
404,
268,
273,
268,
63,
81,
18,
409,
13332,
65,
268,
273,
1408,
364,
277,
316,
3496,
18,
2452,
13332,
268,
273,
268,
397,
277,
397,
15710,
309,
268,
30,
327,
12452,
397,
268,
10531,
17,
21,
65,
397,
7310,
469,
30,
327,
599,
282,
2,
-100
] |
[1.0000000000000000 2.0000000000000000] [3.0000000000000000 4.5000000000000000]
|
[1.00000000000000 2.00000000000000] [3.00000000000000 4.50000000000000]
|
def _matrix_(self, R): r""" Return \sage matrix from this matlab element.
|
761fd6a4c428057f73a8d47ba21c2b016f7ecc46 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/761fd6a4c428057f73a8d47ba21c2b016f7ecc46/matlab.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5667,
67,
12,
2890,
16,
534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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,
5667,
67,
12,
2890,
16,
534,
4672,
436,
8395,
2000,
521,
87,
410,
3148,
628,
333,
4834,
7411,
930,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
try: g._extend_axes(min(xdata), max(xdata), min(ydata), max(ydata)) except ValueError: pass
|
def _from_xdata_ydata(self, xdata, ydata, coerce, options): if coerce: xdata, ydata = self._coerce(xdata, ydata) g = Graphics() g._Graphics__objects.append(GraphicPrimitive_Point(xdata, ydata, options)) try: g._extend_axes(min(xdata), max(xdata), min(ydata), max(ydata)) except ValueError: pass return g
|
4cdc64d73e24ddcdf396a7b5f766f02774b0c237 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/4cdc64d73e24ddcdf396a7b5f766f02774b0c237/plot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2080,
67,
92,
892,
67,
93,
892,
12,
2890,
16,
25363,
16,
29175,
16,
12270,
16,
702,
4672,
309,
12270,
30,
25363,
16,
29175,
273,
365,
6315,
2894,
2765,
12,
92,
892,
16,
29175,
13,
314,
273,
16830,
1435,
314,
6315,
17558,
972,
6911,
18,
6923,
12,
29459,
9840,
67,
2148,
12,
92,
892,
16,
29175,
16,
702,
3719,
327,
314,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2080,
67,
92,
892,
67,
93,
892,
12,
2890,
16,
25363,
16,
29175,
16,
12270,
16,
702,
4672,
309,
12270,
30,
25363,
16,
29175,
273,
365,
6315,
2894,
2765,
12,
92,
892,
16,
29175,
13,
314,
273,
16830,
1435,
314,
6315,
17558,
972,
6911,
18,
6923,
12,
29459,
9840,
67,
2148,
12,
92,
892,
16,
29175,
16,
702,
3719,
327,
314,
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
] |
|
SeeAlso
|
See Also
|
def pcasvd(data, keepdim=0, demean=True): '''principal components with svd Parameters ---------- data : ndarray, 2d data with observations by rows and variables in columns keepdim : integer number of eigenvectors to keep if keepdim is zero, then all eigenvectors are included demean : boolean if true, then the column mean is subtracted from the data Returns ------- xreduced : ndarray, 2d, (nobs, nvars) projection of the data x on the kept eigenvectors factors : ndarray, 2d, (nobs, nfactors) factor matrix, given by np.dot(x, evecs) evals : ndarray, 2d, (nobs, nfactors) eigenvalues evecs : ndarray, 2d, (nobs, nfactors) eigenvectors, normalized if normalize is true SeeAlso ------- pca : principal component analysis using eigenvector decomposition Notes ----- This doesn't have yet the normalize option of pca. ''' nobs, nvars = data.shape #print nobs, nvars, keepdim x = np.array(data) #make copy so original doesn't change if demean: m = x.mean(0) else: m = 0
|
7be2e59a616b316da804caf97aa615a16f8c65e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12658/7be2e59a616b316da804caf97aa615a16f8c65e8/tools_pca.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6125,
345,
16115,
12,
892,
16,
3455,
3509,
33,
20,
16,
302,
4698,
304,
33,
5510,
4672,
9163,
26138,
4085,
598,
25656,
225,
7012,
12181,
501,
294,
8304,
16,
576,
72,
501,
598,
16477,
635,
2595,
471,
3152,
316,
2168,
3455,
3509,
294,
3571,
1300,
434,
11043,
29098,
358,
3455,
309,
3455,
3509,
353,
3634,
16,
1508,
777,
11043,
29098,
854,
5849,
302,
4698,
304,
294,
1250,
309,
638,
16,
1508,
326,
1057,
3722,
353,
10418,
329,
628,
326,
501,
225,
2860,
18365,
619,
1118,
26372,
294,
8304,
16,
576,
72,
16,
261,
82,
10992,
16,
290,
4699,
13,
8106,
434,
326,
501,
619,
603,
326,
16555,
11043,
29098,
14490,
294,
8304,
16,
576,
72,
16,
261,
82,
10992,
16,
290,
22108,
13,
5578,
3148,
16,
864,
635,
1130,
18,
9811,
12,
92,
16,
425,
27698,
13,
22654,
294,
8304,
16,
576,
72,
16,
261,
82,
10992,
16,
290,
22108,
13,
29831,
425,
27698,
294,
8304,
16,
576,
72,
16,
261,
82,
10992,
16,
290,
22108,
13,
11043,
29098,
16,
5640,
309,
3883,
353,
638,
225,
2164,
8080,
18365,
293,
5353,
294,
8897,
1794,
6285,
1450,
11043,
3074,
1229,
26288,
225,
29584,
9135,
1220,
3302,
1404,
1240,
4671,
326,
3883,
1456,
434,
293,
5353,
18,
225,
9163,
290,
10992,
16,
290,
4699,
273,
501,
18,
4867,
468,
1188,
290,
10992,
16,
290,
4699,
16,
3455,
3509,
619,
273,
1130,
18,
1126,
12,
892,
13,
468,
6540,
1610,
1427,
2282,
3302,
1404,
2549,
309,
302,
4698,
304,
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,
6125,
345,
16115,
12,
892,
16,
3455,
3509,
33,
20,
16,
302,
4698,
304,
33,
5510,
4672,
9163,
26138,
4085,
598,
25656,
225,
7012,
12181,
501,
294,
8304,
16,
576,
72,
501,
598,
16477,
635,
2595,
471,
3152,
316,
2168,
3455,
3509,
294,
3571,
1300,
434,
11043,
29098,
358,
3455,
309,
3455,
3509,
353,
3634,
16,
1508,
777,
11043,
29098,
854,
5849,
302,
4698,
304,
294,
1250,
309,
638,
16,
1508,
326,
1057,
3722,
353,
10418,
329,
628,
326,
501,
225,
2860,
18365,
619,
1118,
26372,
294,
8304,
16,
576,
72,
16,
261,
82,
10992,
16,
290,
4699,
13,
8106,
434,
326,
501,
619,
603,
326,
16555,
11043,
29098,
14490,
294,
8304,
16,
576,
72,
16,
261,
82,
2
] |
pag_info, list_results = results objects = list_results[2] objects = [x[2] for x in objects]
|
objects = [x.getObject() for x in results[ int(form.get('ps_start', 0)):int(form.get('items', 10))]]
|
def search_atom(self, REQUEST=None, RESPONSE=None, **kwargs): """ """ search_mapping = RDF_SEARCH_MAPPING search_query_mapping = RDF_SEARCH_QUERY_MAPPING
|
10f9be6d5c5f0e6bfec44a46ad00db1300847a59 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/10f9be6d5c5f0e6bfec44a46ad00db1300847a59/SEMIDESite.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
7466,
12,
2890,
16,
12492,
33,
7036,
16,
20645,
33,
7036,
16,
2826,
4333,
4672,
3536,
3536,
1623,
67,
6770,
273,
13539,
67,
17251,
67,
20450,
1623,
67,
2271,
67,
6770,
273,
13539,
67,
17251,
67,
10753,
67,
20450,
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,
1623,
67,
7466,
12,
2890,
16,
12492,
33,
7036,
16,
20645,
33,
7036,
16,
2826,
4333,
4672,
3536,
3536,
1623,
67,
6770,
273,
13539,
67,
17251,
67,
20450,
1623,
67,
2271,
67,
6770,
273,
13539,
67,
17251,
67,
10753,
67,
20450,
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
] |
sage: a(0) 1 sage: a(1) 0 sage: a(2) 1 sage: a.offset 0 sage: a(8) 14833 sage: a(20) 895014631192902121 sage: a.list(9) [1, 0, 1, 2, 9, 44, 265, 1854, 14833] AUTHOR: -- Jaap Spies (2007-01-13) """ def __init__(self):
|
With offset 1 also the permanent of a (0,1)-matrix of order $n$ with $n$ 0's not on a line. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000166;a Subfactorial or rencontres numbers, or derangements: number of permutations of $n$ elements with no fixed points. sage: a(0) 1 sage: a(1) 0 sage: a(2) 1 sage: a.offset 0 sage: a(8) 14833 sage: a(20) 895014631192902121 sage: a.list(9) [1, 0, 1, 2, 9, 44, 265, 1854, 14833] AUTHOR: -- Jaap Spies (2007-01-13) """
|
def _eval(self, n): if n == 1: return ZZ(7) else: return sloane.A090010(n-1) + sloane.A090010(n)
|
d2510d4232e17c9cea8d1a0271c6be68a81d317b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/d2510d4232e17c9cea8d1a0271c6be68a81d317b/sloane_functions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
309,
290,
422,
404,
30,
327,
2285,
62,
12,
27,
13,
469,
30,
327,
225,
272,
383,
8806,
18,
37,
5908,
713,
2163,
12,
82,
17,
21,
13,
397,
272,
383,
8806,
18,
37,
5908,
713,
2163,
12,
82,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
309,
290,
422,
404,
30,
327,
2285,
62,
12,
27,
13,
469,
30,
327,
225,
272,
383,
8806,
18,
37,
5908,
713,
2163,
12,
82,
17,
21,
13,
397,
272,
383,
8806,
18,
37,
5908,
713,
2163,
12,
82,
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
] |
terminations=[n.addDecodedTermination(name,[matrix[i]],tauPSC,isModulatory) for i,n in enumerate(self._nodes)]
|
if self.multidimensional: terminations=[n.addDecodedTermination(name,matrix[i],tauPSC,isModulatory) for i,n in enumerate(self._nodes)] else: terminations=[n.addDecodedTermination(name,[matrix[i]],tauPSC,isModulatory) for i,n in enumerate(self._nodes)]
|
def addDecodedTermination(self,name,matrix,tauPSC,isModulatory): """Create a new termination. A new termination is created on each of the ensembles, which are then grouped together.""" terminations=[n.addDecodedTermination(name,[matrix[i]],tauPSC,isModulatory) for i,n in enumerate(self._nodes)] termination=EnsembleTermination(self,name,terminations) self.exposeTermination(termination,name) return self.getTermination(name)
|
efb839c5379e40113984c5668952a679b1239349 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/553/efb839c5379e40113984c5668952a679b1239349/nef.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
24888,
16516,
12,
2890,
16,
529,
16,
5667,
16,
29908,
52,
2312,
16,
291,
1739,
332,
8452,
4672,
3536,
1684,
279,
394,
19650,
18,
225,
432,
394,
19650,
353,
2522,
603,
1517,
434,
326,
570,
5747,
1040,
16,
1492,
854,
1508,
10303,
9475,
12123,
309,
365,
18,
5421,
350,
9743,
287,
30,
2481,
10144,
22850,
82,
18,
1289,
24888,
16516,
12,
529,
16,
5667,
63,
77,
6487,
29908,
52,
2312,
16,
291,
1739,
332,
8452,
13,
364,
277,
16,
82,
316,
4241,
12,
2890,
6315,
4690,
25887,
469,
30,
2481,
10144,
22850,
82,
18,
1289,
24888,
16516,
12,
529,
16,
63,
5667,
63,
77,
65,
6487,
29908,
52,
2312,
16,
291,
1739,
332,
8452,
13,
364,
277,
16,
82,
316,
4241,
12,
2890,
6315,
4690,
25887,
19650,
33,
664,
10045,
16516,
12,
2890,
16,
529,
16,
9505,
1012,
13,
365,
18,
338,
4150,
16516,
12,
9505,
367,
16,
529,
13,
327,
365,
18,
588,
16516,
12,
529,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
24888,
16516,
12,
2890,
16,
529,
16,
5667,
16,
29908,
52,
2312,
16,
291,
1739,
332,
8452,
4672,
3536,
1684,
279,
394,
19650,
18,
225,
432,
394,
19650,
353,
2522,
603,
1517,
434,
326,
570,
5747,
1040,
16,
1492,
854,
1508,
10303,
9475,
12123,
309,
365,
18,
5421,
350,
9743,
287,
30,
2481,
10144,
22850,
82,
18,
1289,
24888,
16516,
12,
529,
16,
5667,
63,
77,
6487,
29908,
52,
2312,
16,
291,
1739,
332,
8452,
13,
364,
277,
16,
82,
316,
4241,
12,
2890,
6315,
4690,
25887,
469,
30,
2481,
10144,
22850,
82,
18,
1289,
24888,
16516,
12,
529,
16,
63,
5667,
63,
77,
65,
6487,
29908,
52,
2312,
16,
291,
1739,
332,
8452,
13,
364,
277,
2
] |
def LoadPlugin(self,pluginname):
|
def LoadPlugin(self, pluginname):
|
def LoadPlugin(self,pluginname): if not self.pc.visible: self.PCshowHide() self.pc.loadByName(pluginname)
|
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,
4444,
3773,
12,
2890,
16,
1909,
529,
4672,
309,
486,
365,
18,
2436,
18,
8613,
30,
365,
18,
3513,
4500,
15690,
1435,
365,
18,
2436,
18,
945,
5911,
12,
4094,
529,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
3773,
12,
2890,
16,
1909,
529,
4672,
309,
486,
365,
18,
2436,
18,
8613,
30,
365,
18,
3513,
4500,
15690,
1435,
365,
18,
2436,
18,
945,
5911,
12,
4094,
529,
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
] |
if gl.config.ipod_purge_old_episodes: device.purge()
|
if gl.config.ipod_purge_old_episodes: device.purge()
|
def on_sync_to_ipod_activate(self, widget, episodes=None): # make sure gpod is available before even trying to sync if gl.config.device_type == 'ipod' and not sync.gpod_available: title = _('Cannot Sync To iPod') message = _('Please install the libgpod python bindings (python-gpod) and restart gPodder to continue.') self.notification( message, title ) return elif gl.config.device_type == 'mtp' and not sync.pymtp_available: title = _('Cannot sync to MTP device') message = _('Please install the libmtp python bindings (python-pymtp) and restart gPodder to continue.') self.notification( message, title ) return
|
bffcab51d0b533e0579b4762f218e698902639be /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12778/bffcab51d0b533e0579b4762f218e698902639be/gui.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
8389,
67,
869,
67,
625,
369,
67,
10014,
12,
2890,
16,
3604,
16,
5529,
27134,
33,
7036,
4672,
468,
1221,
3071,
4178,
369,
353,
2319,
1865,
5456,
8374,
358,
3792,
309,
5118,
18,
1425,
18,
5964,
67,
723,
422,
296,
625,
369,
11,
471,
486,
3792,
18,
6403,
369,
67,
5699,
30,
2077,
273,
389,
2668,
4515,
9721,
2974,
277,
5800,
6134,
883,
273,
389,
2668,
8496,
3799,
326,
2561,
6403,
369,
5790,
7394,
261,
8103,
17,
6403,
369,
13,
471,
7870,
314,
5800,
765,
358,
1324,
1093,
13,
365,
18,
9927,
12,
883,
16,
2077,
262,
327,
1327,
5118,
18,
1425,
18,
5964,
67,
723,
422,
296,
11091,
11,
471,
486,
3792,
18,
2074,
11091,
67,
5699,
30,
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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,
603,
67,
8389,
67,
869,
67,
625,
369,
67,
10014,
12,
2890,
16,
3604,
16,
5529,
27134,
33,
7036,
4672,
468,
1221,
3071,
4178,
369,
353,
2319,
1865,
5456,
8374,
358,
3792,
309,
5118,
18,
1425,
18,
5964,
67,
723,
422,
296,
625,
369,
11,
471,
486,
3792,
18,
6403,
369,
67,
5699,
30,
2077,
273,
389,
2668,
4515,
9721,
2974,
277,
5800,
6134,
883,
273,
389,
2668,
8496,
3799,
326,
2561,
6403,
369,
5790,
7394,
261,
8103,
17,
6403,
369,
13,
471,
7870,
314,
5800,
765,
358,
1324,
1093,
13,
365,
18,
9927,
12,
883,
16,
2077,
262,
327,
1327,
5118,
18,
1425,
18,
5964,
67,
723,
422,
296,
11091,
11,
471,
486,
3792,
18,
2074,
11091,
2
] |
email = upload.GetEmail()
|
email = upload.GetEmail("Email (login for uploading to %s)" % server)
|
def GetUserCredentials(): """Prompts the user for a username and password.""" email = upload.GetEmail() password = getpass.getpass("Password for %s: " % email) return email, password
|
e29b4a654728711ebfdd1fb456b60d9070103ea3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6076/e29b4a654728711ebfdd1fb456b60d9070103ea3/gcl.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17330,
6163,
13332,
3536,
13224,
1092,
326,
729,
364,
279,
2718,
471,
2201,
12123,
2699,
273,
3617,
18,
967,
4134,
2932,
4134,
261,
5819,
364,
25306,
358,
738,
87,
2225,
738,
1438,
13,
2201,
273,
31889,
18,
588,
5466,
2932,
3913,
364,
738,
87,
30,
315,
738,
2699,
13,
327,
2699,
16,
2201,
2,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17330,
6163,
13332,
3536,
13224,
1092,
326,
729,
364,
279,
2718,
471,
2201,
12123,
2699,
273,
3617,
18,
967,
4134,
2932,
4134,
261,
5819,
364,
25306,
358,
738,
87,
2225,
738,
1438,
13,
2201,
273,
31889,
18,
588,
5466,
2932,
3913,
364,
738,
87,
30,
315,
738,
2699,
13,
327,
2699,
16,
2201,
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
] |
""" SMTP 'mail' command. Begins mail xfer session. """
|
"""SMTP 'mail' command. Begins mail xfer session."""
|
def mail(self,sender,options=[]): """ SMTP 'mail' command. Begins mail xfer session. """ optionlist = '' if options and self.does_esmtp: optionlist = string.join(options, ' ') self.putcmd("mail", "FROM:%s %s" % (quoteaddr(sender) ,optionlist)) return self.getreply()
|
dfd1c12c67bea1eda4e609be530e5ca4b71d8eb4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/dfd1c12c67bea1eda4e609be530e5ca4b71d8eb4/smtplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4791,
12,
2890,
16,
15330,
16,
2116,
33,
8526,
4672,
3536,
55,
14636,
296,
4408,
11,
1296,
18,
605,
1332,
2679,
4791,
619,
586,
1339,
12123,
1456,
1098,
273,
875,
309,
702,
471,
365,
18,
20657,
67,
281,
11091,
30,
1456,
1098,
273,
533,
18,
5701,
12,
2116,
16,
296,
8624,
365,
18,
458,
4172,
2932,
4408,
3113,
315,
11249,
5319,
87,
738,
87,
6,
738,
261,
9270,
684,
3069,
12,
15330,
13,
269,
3482,
1098,
3719,
327,
365,
18,
588,
10629,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4791,
12,
2890,
16,
15330,
16,
2116,
33,
8526,
4672,
3536,
55,
14636,
296,
4408,
11,
1296,
18,
605,
1332,
2679,
4791,
619,
586,
1339,
12123,
1456,
1098,
273,
875,
309,
702,
471,
365,
18,
20657,
67,
281,
11091,
30,
1456,
1098,
273,
533,
18,
5701,
12,
2116,
16,
296,
8624,
365,
18,
458,
4172,
2932,
4408,
3113,
315,
11249,
5319,
87,
738,
87,
6,
738,
261,
9270,
684,
3069,
12,
15330,
13,
269,
3482,
1098,
3719,
327,
365,
18,
588,
10629,
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
] |
ret=eval(self.jobFunc, global_ns, local_ns) return ret
|
exec self.jobFunc in global_ns, local_ns
|
def __call__(self, local_ns=None, global_ns=None, *args, **kwargs): if callable(self.jobFunc): ret=self.jobFunc(*args, **kwargs) else: if local_ns is None: local_ns=globals() if global_ns is None: global_ns=globals() ret=eval(self.jobFunc, global_ns, local_ns) return ret
|
61c33a1cdc3d4e72e7b38b2856b31718eaac4b3a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/61c33a1cdc3d4e72e7b38b2856b31718eaac4b3a/cronjob.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
1191,
67,
2387,
33,
7036,
16,
2552,
67,
2387,
33,
7036,
16,
380,
1968,
16,
2826,
4333,
4672,
309,
4140,
12,
2890,
18,
4688,
2622,
4672,
325,
33,
2890,
18,
4688,
2622,
30857,
1968,
16,
2826,
4333,
13,
469,
30,
309,
1191,
67,
2387,
353,
599,
30,
1191,
67,
2387,
33,
16227,
1435,
309,
2552,
67,
2387,
353,
599,
30,
2552,
67,
2387,
33,
16227,
1435,
325,
33,
8622,
12,
2890,
18,
4688,
2622,
16,
2552,
67,
2387,
16,
1191,
67,
2387,
13,
327,
325,
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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
2826,
4333,
4672,
309,
4140,
12,
2890,
18,
4688,
2622,
4672,
325,
33,
2890,
18,
4688,
2622,
30857,
1968,
16,
2826,
4333,
13,
469,
30,
309,
1191,
67,
2387,
353,
599,
30,
1191,
67,
2387,
33,
16227,
1435,
309,
2552,
67,
2387,
353,
599,
30,
2552,
67,
2387,
33,
16227,
1435,
325,
33,
8622,
12,
2890,
18,
4688,
2622,
16,
2552,
67,
2387,
16,
1191,
67,
2387,
13,
327,
325,
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
] |
if not typ: typ="normal"
|
def process_message(self,stanza): if not self.initiator and not self.peer_authenticated: self.debug("Ignoring message - peer not authenticated yet") return 1 typ=stanza.get_type() if not typ: typ="normal" if self.message_handlers.has_key(typ): self.message_handlers[typ](stanza) return 1 return 0
|
1b8226065fdd33c9a6f5121c5a2b0886d6355754 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12769/1b8226065fdd33c9a6f5121c5a2b0886d6355754/stream.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2150,
12,
2890,
16,
541,
11939,
4672,
309,
486,
365,
18,
2738,
10620,
471,
486,
365,
18,
12210,
67,
14454,
30,
365,
18,
4148,
2932,
21702,
883,
300,
4261,
486,
9370,
4671,
7923,
327,
404,
225,
3815,
33,
541,
11939,
18,
588,
67,
723,
1435,
309,
365,
18,
2150,
67,
11046,
18,
5332,
67,
856,
12,
12846,
4672,
365,
18,
2150,
67,
11046,
63,
12846,
29955,
541,
11939,
13,
327,
404,
327,
374,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2150,
12,
2890,
16,
541,
11939,
4672,
309,
486,
365,
18,
2738,
10620,
471,
486,
365,
18,
12210,
67,
14454,
30,
365,
18,
4148,
2932,
21702,
883,
300,
4261,
486,
9370,
4671,
7923,
327,
404,
225,
3815,
33,
541,
11939,
18,
588,
67,
723,
1435,
309,
365,
18,
2150,
67,
11046,
18,
5332,
67,
856,
12,
12846,
4672,
365,
18,
2150,
67,
11046,
63,
12846,
29955,
541,
11939,
13,
327,
404,
327,
374,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
of Jove, from whatsoever source you may know them.</font>
|
of Jove, from whatsoever source you may know them.
|
def parse(self, text, style): """Given a formatted string will return a list of ParaFrag objects with their calculated widths. If errors occur None will be returned and the self.errors holds a list of the error messages. """
|
fbc3e56923bd589dae9668ac4344e2a48fc430a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/fbc3e56923bd589dae9668ac4344e2a48fc430a4/paraparser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
977,
16,
2154,
4672,
3536,
6083,
279,
4955,
533,
903,
327,
279,
666,
434,
2280,
69,
19509,
2184,
598,
3675,
8894,
15801,
18,
971,
1334,
3334,
599,
903,
506,
2106,
471,
326,
365,
18,
4324,
14798,
279,
666,
434,
326,
555,
2743,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
977,
16,
2154,
4672,
3536,
6083,
279,
4955,
533,
903,
327,
279,
666,
434,
2280,
69,
19509,
2184,
598,
3675,
8894,
15801,
18,
971,
1334,
3334,
599,
903,
506,
2106,
471,
326,
365,
18,
4324,
14798,
279,
666,
434,
326,
555,
2743,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
dateFiled = doc.dateFiled local_path = doc.local_path
|
if doc.dateFiled != None: dateFiled = doc.dateFiled else: print "\n***No dateFiled value for doc: " + str(doc.documentUUID) + ". Punting.***\n" return(1) if doc.local_path != "": local_path = doc.local_path else: print "\n***No local_path value for doc: " + str(doc.documentUUID) + ". Punting.***\n" return(2)
|
def update_dates(doc): # take the doc, check its dateFiled field, make a hardlink to the PDF # location, and update the database dateFiled = doc.dateFiled local_path = doc.local_path root = settings.MEDIA_ROOT # old link old = os.path.join(root, str(local_path)) # new link year, month, day = str(dateFiled).split("-") filename = os.path.basename(old) new = os.path.join(root, year, month, day, old) # make the new hard link if needed if old != new: mkdir_p(os.path.join(root, year, month, day)) os.link(old, new)
|
0fffbe31b93e4d2573c8412e927b93c2ddb12333 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6762/0fffbe31b93e4d2573c8412e927b93c2ddb12333/pdf_date_fixer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
9683,
12,
2434,
4672,
468,
4862,
326,
997,
16,
866,
2097,
1509,
812,
72,
652,
16,
1221,
279,
7877,
1232,
358,
326,
12667,
468,
2117,
16,
471,
1089,
326,
2063,
309,
997,
18,
712,
812,
72,
480,
599,
30,
1509,
812,
72,
273,
997,
18,
712,
812,
72,
469,
30,
225,
1172,
1548,
82,
14465,
2279,
1509,
812,
72,
460,
364,
997,
30,
315,
397,
609,
12,
2434,
18,
5457,
5562,
13,
397,
3552,
453,
318,
1787,
18,
636,
12174,
82,
6,
327,
12,
21,
13,
309,
997,
18,
3729,
67,
803,
480,
1408,
30,
1191,
67,
803,
273,
997,
18,
3729,
67,
803,
469,
30,
1172,
1548,
82,
14465,
2279,
1191,
67,
803,
460,
364,
997,
30,
315,
397,
609,
12,
2434,
18,
5457,
5562,
13,
397,
3552,
453,
318,
1787,
18,
636,
12174,
82,
6,
327,
12,
22,
13,
1365,
273,
1947,
18,
26368,
67,
9185,
225,
468,
1592,
1692,
1592,
273,
1140,
18,
803,
18,
5701,
12,
3085,
16,
609,
12,
3729,
67,
803,
3719,
225,
468,
394,
1692,
3286,
16,
3138,
16,
2548,
273,
609,
12,
712,
812,
72,
2934,
4939,
2932,
17,
7923,
1544,
273,
1140,
18,
803,
18,
13909,
12,
1673,
13,
394,
273,
1140,
18,
803,
18,
5701,
12,
3085,
16,
3286,
16,
3138,
16,
2548,
16,
1592,
13,
225,
468,
1221,
326,
394,
7877,
1692,
309,
3577,
309,
1592,
480,
394,
30,
6535,
67,
84,
12,
538,
18,
803,
18,
5701,
12,
3085,
16,
3286,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
9683,
12,
2434,
4672,
468,
4862,
326,
997,
16,
866,
2097,
1509,
812,
72,
652,
16,
1221,
279,
7877,
1232,
358,
326,
12667,
468,
2117,
16,
471,
1089,
326,
2063,
309,
997,
18,
712,
812,
72,
480,
599,
30,
1509,
812,
72,
273,
997,
18,
712,
812,
72,
469,
30,
225,
1172,
1548,
82,
14465,
2279,
1509,
812,
72,
460,
364,
997,
30,
315,
397,
609,
12,
2434,
18,
5457,
5562,
13,
397,
3552,
453,
318,
1787,
18,
636,
12174,
82,
6,
327,
12,
21,
13,
309,
997,
18,
3729,
67,
803,
480,
1408,
30,
1191,
67,
803,
273,
997,
18,
3729,
67,
803,
469,
30,
1172,
1548,
82,
14465,
2279,
1191,
67,
803,
460,
364,
2
] |
fvalueold = 0. fvalue = fvalueold + 10 count = 0 V = npy.zeros(func.get_gradients().shape, dtype=complex) while abs((fvalue - fvalueold) / fvalue) > tolerance: fvalueold = fvalue dF = func.get_gradients() V *= (dF * V.conj()).real > 0 V += step * dF func.step(V, **kwargs) fvalue = func.get_functional_value() if fvalue < fvalueold: step *= 0.5 count += 1 if verbose: print 'MDmin: iter=%s, step=%s, value=%s' % (count,step,fvalue)
|
fvalueold = 0. fvalue = fvalueold + 10 count = 0 V = npy.zeros(func.get_gradients().shape, dtype=complex) while abs((fvalue - fvalueold) / fvalue) > tolerance: fvalueold = fvalue dF = func.get_gradients() V *= (dF * V.conj()).real > 0 V += step * dF func.step(V, **kwargs) fvalue = func.get_functional_value() if fvalue < fvalueold: step *= 0.5 count += 1 if verbose: print 'MDmin: iter=%s, step=%s, value=%s' % (count, step, fvalue) if verbose:
|
def md_min(func, step=0.25, tolerance=1e-6, verbose=True, **kwargs): t = -time() fvalueold = 0. fvalue = fvalueold + 10 count = 0 V = npy.zeros(func.get_gradients().shape, dtype=complex) while abs((fvalue - fvalueold) / fvalue) > tolerance: fvalueold = fvalue dF = func.get_gradients() V *= (dF * V.conj()).real > 0 V += step * dF func.step(V, **kwargs) fvalue = func.get_functional_value() if fvalue < fvalueold: step *= 0.5 count += 1 if verbose: print 'MDmin: iter=%s, step=%s, value=%s' % (count,step,fvalue) t += time() print '%d iterations in %0.2f seconds (%0.2f ms/iter), endstep = %s'%( count, t, t * 1000. / count, step)
|
4a5018bb3ebbfcce6b1fa8b75bc159dea1dd6769 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1380/4a5018bb3ebbfcce6b1fa8b75bc159dea1dd6769/wannier.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3481,
67,
1154,
12,
644,
16,
2235,
33,
20,
18,
2947,
16,
10673,
33,
21,
73,
17,
26,
16,
3988,
33,
5510,
16,
2826,
4333,
4672,
268,
273,
300,
957,
1435,
284,
1132,
1673,
273,
374,
18,
284,
1132,
273,
284,
1132,
1673,
397,
1728,
1056,
273,
374,
776,
273,
1130,
93,
18,
22008,
12,
644,
18,
588,
67,
9974,
5828,
7675,
4867,
16,
3182,
33,
14259,
13,
1323,
2417,
12443,
74,
1132,
300,
284,
1132,
1673,
13,
342,
284,
1132,
13,
405,
10673,
30,
284,
1132,
1673,
273,
284,
1132,
302,
42,
273,
1326,
18,
588,
67,
9974,
5828,
1435,
776,
6413,
261,
72,
42,
380,
776,
18,
591,
78,
1435,
2934,
7688,
405,
374,
776,
1011,
2235,
380,
302,
42,
1326,
18,
4119,
12,
58,
16,
2826,
4333,
13,
284,
1132,
273,
1326,
18,
588,
67,
915,
287,
67,
1132,
1435,
309,
284,
1132,
411,
284,
1132,
1673,
30,
2235,
6413,
374,
18,
25,
1056,
1011,
404,
309,
3988,
30,
1172,
296,
6188,
1154,
30,
1400,
5095,
87,
16,
2235,
5095,
87,
16,
460,
5095,
87,
11,
738,
261,
1883,
16,
2235,
16,
284,
1132,
13,
309,
3988,
30,
268,
1011,
813,
1435,
1172,
1995,
72,
11316,
316,
738,
20,
18,
22,
74,
3974,
6142,
20,
18,
22,
74,
4086,
19,
2165,
3631,
679,
4119,
273,
738,
87,
11,
17105,
1056,
16,
268,
16,
268,
380,
4336,
18,
342,
1056,
16,
2235,
13,
282,
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,
3481,
67,
1154,
12,
644,
16,
2235,
33,
20,
18,
2947,
16,
10673,
33,
21,
73,
17,
26,
16,
3988,
33,
5510,
16,
2826,
4333,
4672,
268,
273,
300,
957,
1435,
284,
1132,
1673,
273,
374,
18,
284,
1132,
273,
284,
1132,
1673,
397,
1728,
1056,
273,
374,
776,
273,
1130,
93,
18,
22008,
12,
644,
18,
588,
67,
9974,
5828,
7675,
4867,
16,
3182,
33,
14259,
13,
1323,
2417,
12443,
74,
1132,
300,
284,
1132,
1673,
13,
342,
284,
1132,
13,
405,
10673,
30,
284,
1132,
1673,
273,
284,
1132,
302,
42,
273,
1326,
18,
588,
67,
9974,
5828,
1435,
776,
6413,
261,
72,
42,
380,
776,
18,
591,
78,
1435,
2934,
7688,
405,
374,
776,
1011,
2
] |
content = board.stringForType_(NSStringPboardType) return content
|
return board.stringForType_(NSStringPboardType)
|
def get(scrap_type): board = NSPasteboard.generalPasteboard() if scrap_type == SCRAP_TEXT: content = board.stringForType_(NSStringPboardType) return content elif scrap_type == SCRAP_BMP: # We could try loading directly but I don't trust pygame's TIFF # loading. This is slow and stupid but it does happen to work. if not NSImage.canInitWithPasteboard_(board): return None img = NSImage.alloc().initWithPasteboard_(board) data = img.TIFFRepresentation() rep = NSBitmapImageRep.alloc().initWithData_(data) if rep is None: return None data = rep.representationUsingType_properties_(NSBMPFileType, None) bmp = StringIO(data) return pygame.image.load(bmp, "scrap.bmp") else: raise ValueError("Unsupported scrap_type: %r" % (scrap_type,))
|
bd6e0badd3e5bbf24d517ef0c768e2c1534a6350 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1298/bd6e0badd3e5bbf24d517ef0c768e2c1534a6350/mac_scrap.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
1017,
1266,
67,
723,
4672,
11094,
273,
423,
3118,
14725,
3752,
18,
12259,
52,
14725,
3752,
1435,
309,
888,
1266,
67,
723,
422,
348,
5093,
2203,
67,
5151,
30,
327,
11094,
18,
1080,
22405,
67,
12,
3156,
780,
52,
3752,
559,
13,
1327,
888,
1266,
67,
723,
422,
348,
5093,
2203,
67,
38,
4566,
30,
468,
1660,
3377,
775,
7153,
5122,
1496,
467,
2727,
1404,
10267,
2395,
13957,
1807,
27491,
468,
7153,
18,
225,
1220,
353,
11816,
471,
384,
416,
350,
1496,
518,
1552,
5865,
358,
1440,
18,
309,
486,
11472,
2040,
18,
4169,
2570,
1190,
52,
14725,
3752,
67,
12,
3752,
4672,
327,
599,
3774,
273,
11472,
2040,
18,
9853,
7675,
2738,
1190,
52,
14725,
3752,
67,
12,
3752,
13,
501,
273,
3774,
18,
56,
16962,
13742,
1435,
2071,
273,
11472,
12224,
2040,
18933,
18,
9853,
7675,
2738,
1190,
751,
67,
12,
892,
13,
309,
2071,
353,
599,
30,
327,
599,
501,
273,
2071,
18,
28957,
7736,
559,
67,
4738,
67,
12,
3156,
38,
4566,
28941,
16,
599,
13,
324,
1291,
273,
15777,
12,
892,
13,
327,
2395,
13957,
18,
2730,
18,
945,
12,
70,
1291,
16,
315,
1017,
1266,
18,
70,
1291,
7923,
469,
30,
1002,
2068,
2932,
8544,
888,
1266,
67,
723,
30,
738,
86,
6,
738,
261,
1017,
1266,
67,
723,
16,
3719,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
1017,
1266,
67,
723,
4672,
11094,
273,
423,
3118,
14725,
3752,
18,
12259,
52,
14725,
3752,
1435,
309,
888,
1266,
67,
723,
422,
348,
5093,
2203,
67,
5151,
30,
327,
11094,
18,
1080,
22405,
67,
12,
3156,
780,
52,
3752,
559,
13,
1327,
888,
1266,
67,
723,
422,
348,
5093,
2203,
67,
38,
4566,
30,
468,
1660,
3377,
775,
7153,
5122,
1496,
467,
2727,
1404,
10267,
2395,
13957,
1807,
27491,
468,
7153,
18,
225,
1220,
353,
11816,
471,
384,
416,
350,
1496,
518,
1552,
5865,
358,
1440,
18,
309,
486,
11472,
2040,
18,
4169,
2570,
1190,
52,
14725,
3752,
67,
12,
3752,
4672,
327,
599,
3774,
273,
11472,
2040,
18,
9853,
7675,
2738,
1190,
52,
14725,
2
] |
tag_path_split ('foo/bar/rating') = ('njr', 'foo/bar', 'rating') tag_path_split ('/njr/foo/bar/rating') = ('njr', 'foo/bar',
|
tag_path_split('foo/bar/rating') = ('njr', 'foo/bar', 'rating') tag_path_split('/njr/foo/bar/rating') = ('njr', 'foo/bar',
|
def tag_path_split (self, tag): """A bit like os.path.split, this splits any old kind of a FluidDB tag path into a user, a subnamespace (if there is one) and a tag. But unlike os.path.split, if no namespace is given, the one from the user credentials is returned.
|
e75848841ac96982524448e932e12fd6ff9cbe0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12637/e75848841ac96982524448e932e12fd6ff9cbe0c/fdb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1047,
67,
803,
67,
4939,
261,
2890,
16,
1047,
4672,
3536,
37,
2831,
3007,
1140,
18,
803,
18,
4939,
16,
333,
11019,
1281,
1592,
3846,
434,
279,
3857,
1911,
2290,
1047,
589,
1368,
279,
729,
16,
279,
720,
4937,
261,
430,
1915,
353,
1245,
13,
471,
279,
1047,
18,
12484,
640,
5625,
1140,
18,
803,
18,
4939,
16,
309,
1158,
1981,
353,
864,
16,
326,
1245,
628,
326,
729,
4448,
353,
2106,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1047,
67,
803,
67,
4939,
261,
2890,
16,
1047,
4672,
3536,
37,
2831,
3007,
1140,
18,
803,
18,
4939,
16,
333,
11019,
1281,
1592,
3846,
434,
279,
3857,
1911,
2290,
1047,
589,
1368,
279,
729,
16,
279,
720,
4937,
261,
430,
1915,
353,
1245,
13,
471,
279,
1047,
18,
12484,
640,
5625,
1140,
18,
803,
18,
4939,
16,
309,
1158,
1981,
353,
864,
16,
326,
1245,
628,
326,
729,
4448,
353,
2106,
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
] |
def createDescription(self): return self["header"].value
|
def createDescription(self): return self["header"].value
|
fe4f82e04a0cd9087db7d881c9525475169fac45 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/fe4f82e04a0cd9087db7d881c9525475169fac45/xm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
3291,
12,
2890,
4672,
327,
365,
9614,
3374,
6,
8009,
1132,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
3291,
12,
2890,
4672,
327,
365,
9614,
3374,
6,
8009,
1132,
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
] |
|
self.addCleanup(test_support.unlink, source_name)
|
self.addCleanup(support.unlink, source_name)
|
def test_checkcache(self): getline = linecache.getline # Create a source file and cache its contents source_name = support.TESTFN + '.py' self.addCleanup(test_support.unlink, source_name) with open(source_name, 'w') as source: source.write(SOURCE_1) getline(source_name, 1)
|
45a46ee83822ea9a927f777f0c3095d45c73e1ce /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/45a46ee83822ea9a927f777f0c3095d45c73e1ce/test_linecache.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1893,
2493,
12,
2890,
4672,
336,
1369,
273,
4739,
557,
807,
18,
588,
1369,
468,
1788,
279,
1084,
585,
471,
1247,
2097,
2939,
1084,
67,
529,
273,
2865,
18,
16961,
19793,
397,
2418,
2074,
11,
365,
18,
1289,
15007,
12,
13261,
18,
318,
1232,
16,
1084,
67,
529,
13,
598,
1696,
12,
3168,
67,
529,
16,
296,
91,
6134,
487,
1084,
30,
1084,
18,
2626,
12,
6537,
67,
21,
13,
336,
1369,
12,
3168,
67,
529,
16,
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,
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,
1084,
67,
529,
273,
2865,
18,
16961,
19793,
397,
2418,
2074,
11,
365,
18,
1289,
15007,
12,
13261,
18,
318,
1232,
16,
1084,
67,
529,
13,
598,
1696,
12,
3168,
67,
529,
16,
296,
91,
6134,
487,
1084,
30,
1084,
18,
2626,
12,
6537,
67,
21,
13,
336,
1369,
12,
3168,
67,
529,
16,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def copy(self): """Returns a deep copy""" obj = self.Drawing(self.width, self.height)
|
def _copy(self,obj): """copies to obj"""
|
def copy(self): """Returns a deep copy""" obj = self.Drawing(self.width, self.height) obj._attrMap = self._attrMap.clone()
|
0bfc41659527a3f18e120b3c5c4f1a9ef5dc73f4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/0bfc41659527a3f18e120b3c5c4f1a9ef5dc73f4/shapes.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3530,
12,
2890,
16,
2603,
4672,
3536,
22295,
606,
358,
1081,
8395,
1081,
6315,
1747,
863,
273,
365,
6315,
1747,
863,
18,
14056,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3530,
12,
2890,
16,
2603,
4672,
3536,
22295,
606,
358,
1081,
8395,
1081,
6315,
1747,
863,
273,
365,
6315,
1747,
863,
18,
14056,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for d in docs] onclick = ("doclink('%s', '%s', '%s'); return false;" % (uid, name, ','.join(targets))) return uid, onclick
|
for d in docs]) if targets in self.doclink_targets_cache: onclick = ("return doclink('%s', '%s', '%s');" % (uid, name, self.doclink_targets_cache[targets])) return uid, onclick, None else: self.doclink_targets_cache[targets] = uid onclick = ("return doclink('%s', '%s', '%s');" % (uid, name, uid)) return uid, onclick, targets
|
def doclink(self, name, docs): uid = 'link-%s' % self._next_uid self._next_uid += 1 context = [n for n in self.context if n is not None] container = DottedName(self.module_name, *context) #else: # container = None targets = ['%s=%s' % (str(self.doc_descr(d,container)), str(self.url_func(d))) for d in docs] onclick = ("doclink('%s', '%s', '%s'); return false;" % (uid, name, ','.join(targets))) return uid, onclick
|
cd4d6e5fbca5f698866ebe3598f5c2ca592983e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/cd4d6e5fbca5f698866ebe3598f5c2ca592983e0/html_colorize.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
1232,
12,
2890,
16,
508,
16,
3270,
4672,
4555,
273,
296,
1232,
6456,
87,
11,
738,
365,
6315,
4285,
67,
1911,
365,
6315,
4285,
67,
1911,
1011,
404,
819,
273,
306,
82,
364,
290,
316,
365,
18,
2472,
309,
290,
353,
486,
599,
65,
1478,
273,
17502,
2344,
461,
12,
2890,
18,
2978,
67,
529,
16,
380,
2472,
13,
468,
12107,
30,
468,
565,
1478,
273,
599,
5774,
273,
10228,
9,
87,
5095,
87,
11,
738,
261,
701,
12,
2890,
18,
2434,
67,
28313,
12,
72,
16,
3782,
13,
3631,
609,
12,
2890,
18,
718,
67,
644,
12,
72,
20349,
364,
302,
316,
3270,
65,
22324,
273,
7566,
2434,
1232,
29909,
87,
2187,
1995,
87,
2187,
1995,
87,
8284,
327,
629,
4868,
738,
261,
1911,
16,
508,
16,
3316,
18,
5701,
12,
11358,
20349,
327,
4555,
16,
22324,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
1232,
12,
2890,
16,
508,
16,
3270,
4672,
4555,
273,
296,
1232,
6456,
87,
11,
738,
365,
6315,
4285,
67,
1911,
365,
6315,
4285,
67,
1911,
1011,
404,
819,
273,
306,
82,
364,
290,
316,
365,
18,
2472,
309,
290,
353,
486,
599,
65,
1478,
273,
17502,
2344,
461,
12,
2890,
18,
2978,
67,
529,
16,
380,
2472,
13,
468,
12107,
30,
468,
565,
1478,
273,
599,
5774,
273,
10228,
9,
87,
5095,
87,
11,
738,
261,
701,
12,
2890,
18,
2434,
67,
28313,
12,
72,
16,
3782,
13,
3631,
609,
12,
2890,
18,
718,
67,
644,
12,
72,
20349,
364,
302,
316,
3270,
65,
22324,
273,
7566,
2434,
1232,
29909,
87,
2187,
1995,
87,
2187,
1995,
2
] |
if client.get_bool("/apps/flyback/external_storage_location_mount"):
|
if external_storage_location_type=='drive':
|
def __init__(self, o): self.xml = o.xml self.main_gui = o # init external_storage_location external_storage_location = client.get_string("/apps/flyback/external_storage_location") if not external_storage_location: external_storage_location = '/external_storage_location' self.xml.get_widget('external_storage_location_dir').set_current_folder( external_storage_location ) self.xml.get_widget('external_storage_location_unmount').set_active( client.get_bool("/apps/flyback/external_storage_location_unmount") ) if client.get_bool("/apps/flyback/external_storage_location_mount"): self.xml.get_widget('external_storage_location_use_drive').set_active( True ) self.xml.get_widget('external_storage_location_dir').set_sensitive( False ) self.xml.get_widget('external_storage_location_drive').set_sensitive( True ) self.xml.get_widget('external_storage_location_unmount').set_sensitive( True ) else: self.xml.get_widget('external_storage_location_use_dir').set_active( True ) self.xml.get_widget('external_storage_location_dir').set_sensitive( True ) self.xml.get_widget('external_storage_location_drive').set_sensitive( False ) self.xml.get_widget('external_storage_location_unmount').set_sensitive( False ) # init user self.user_list = pwd.getpwall() self.set_model_from_list( self.xml.get_widget('run_backup_as_user'), self.user_list, index=0 ) self.orig_backup_as_user = client.get_string("/apps/flyback/backup_as_user") if not self.orig_backup_as_user: self.orig_backup_as_user = commands.getoutput("whoami") self.backup_as_user = self.orig_backup_as_user self.xml.get_widget('run_backup_as_user').set_active( self.index_of_in_list_of_lists( self.backup_as_user, self.user_list, 0, 0 ) )
|
408ec534cfcf906c0fb5810733f5cccfa33cea0c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/317/408ec534cfcf906c0fb5810733f5cccfa33cea0c/flyback.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
320,
4672,
365,
18,
2902,
273,
320,
18,
2902,
365,
18,
5254,
67,
20292,
273,
320,
225,
468,
1208,
3903,
67,
5697,
67,
3562,
3903,
67,
5697,
67,
3562,
273,
1004,
18,
588,
67,
1080,
2932,
19,
11411,
19,
29670,
823,
19,
9375,
67,
5697,
67,
3562,
7923,
309,
486,
3903,
67,
5697,
67,
3562,
30,
3903,
67,
5697,
67,
3562,
273,
1173,
9375,
67,
5697,
67,
3562,
11,
365,
18,
2902,
18,
588,
67,
6587,
2668,
9375,
67,
5697,
67,
3562,
67,
1214,
16063,
542,
67,
2972,
67,
5609,
12,
3903,
67,
5697,
67,
3562,
262,
365,
18,
2902,
18,
588,
67,
6587,
2668,
9375,
67,
5697,
67,
3562,
67,
318,
4778,
16063,
542,
67,
3535,
12,
1004,
18,
588,
67,
6430,
2932,
19,
11411,
19,
29670,
823,
19,
9375,
67,
5697,
67,
3562,
67,
318,
4778,
7923,
262,
309,
3903,
67,
5697,
67,
3562,
67,
723,
18920,
25431,
4278,
365,
18,
2902,
18,
588,
67,
6587,
2668,
9375,
67,
5697,
67,
3562,
67,
1202,
67,
25431,
16063,
542,
67,
3535,
12,
1053,
262,
365,
18,
2902,
18,
588,
67,
6587,
2668,
9375,
67,
5697,
67,
3562,
67,
1214,
16063,
542,
67,
23481,
12,
1083,
262,
365,
18,
2902,
18,
588,
67,
6587,
2668,
9375,
67,
5697,
67,
3562,
67,
25431,
16063,
542,
67,
23481,
12,
1053,
262,
365,
18,
2902,
18,
588,
67,
6587,
2668,
9375,
67,
5697,
67,
3562,
67,
318,
4778,
16063,
542,
67,
23481,
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,
320,
4672,
365,
18,
2902,
273,
320,
18,
2902,
365,
18,
5254,
67,
20292,
273,
320,
225,
468,
1208,
3903,
67,
5697,
67,
3562,
3903,
67,
5697,
67,
3562,
273,
1004,
18,
588,
67,
1080,
2932,
19,
11411,
19,
29670,
823,
19,
9375,
67,
5697,
67,
3562,
7923,
309,
486,
3903,
67,
5697,
67,
3562,
30,
3903,
67,
5697,
67,
3562,
273,
1173,
9375,
67,
5697,
67,
3562,
11,
365,
18,
2902,
18,
588,
67,
6587,
2668,
9375,
67,
5697,
67,
3562,
67,
1214,
16063,
542,
67,
2972,
67,
5609,
12,
3903,
67,
5697,
67,
3562,
262,
365,
18,
2902,
18,
588,
67,
6587,
2668,
9375,
67,
5697,
67,
3562,
67,
318,
2
] |
ps = subprocess.Popen('ps o pid,cp ' + str(updater_pid) + ' | grep -v PID', shell=True, stdout=subprocess.PIPE) rawstring = ps.stdout.read()
|
for count in range(1,10): ps = subprocess.Popen('ps o pid,cp ' + str(updater_pid) + ' | grep -v PID', shell=True, stdout=subprocess.PIPE) rawstring = ps.stdout.read() if len(rawstring)>=2: break if len(rawstring)<2: raise Exception, "unexpected output from ps:" + str(rawstring)
|
def nmclient_rawsay(nmip, nmport, *args): fullresponse = nmclient_rawcommunicate(nmip, nmport, *args) try: (response, status) = fullresponse.rsplit('\n',1) except KeyError: raise NMClientException, "Communication error '"+fullresponse+"'" if status == 'Success': return response elif status == 'Error': raise NMClientException, "Node Manager error '"+response+"'" elif status == 'Warning': raise NMClientException, "Node Manager warning '"+response+"'" else: raise NMClientException, "Unknown status '"+fullresponse+"'"
|
b309094a8dd15112e7f44f3285ec243bbe89cafe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7277/b309094a8dd15112e7f44f3285ec243bbe89cafe/testprocess.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8442,
2625,
67,
1899,
87,
528,
12,
15094,
625,
16,
8442,
655,
16,
380,
1968,
4672,
1983,
2740,
273,
8442,
2625,
67,
1899,
5702,
318,
2659,
12,
15094,
625,
16,
8442,
655,
16,
380,
1968,
13,
225,
775,
30,
261,
2740,
16,
1267,
13,
273,
1983,
2740,
18,
86,
4939,
2668,
64,
82,
2187,
21,
13,
1335,
4999,
30,
1002,
423,
49,
3781,
16,
315,
25219,
555,
2119,
15,
2854,
2740,
9078,
4970,
225,
309,
1267,
422,
296,
4510,
4278,
327,
766,
1327,
1267,
422,
296,
668,
4278,
1002,
423,
49,
3781,
16,
315,
907,
8558,
555,
2119,
15,
2740,
9078,
4970,
1327,
1267,
422,
296,
6210,
4278,
1002,
423,
49,
3781,
16,
315,
907,
8558,
3436,
2119,
15,
2740,
9078,
4970,
469,
30,
1002,
423,
49,
3781,
16,
315,
4874,
1267,
2119,
15,
2854,
2740,
9078,
4970,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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87,
528,
12,
15094,
625,
16,
8442,
655,
16,
380,
1968,
4672,
1983,
2740,
273,
8442,
2625,
67,
1899,
5702,
318,
2659,
12,
15094,
625,
16,
8442,
655,
16,
380,
1968,
13,
225,
775,
30,
261,
2740,
16,
1267,
13,
273,
1983,
2740,
18,
86,
4939,
2668,
64,
82,
2187,
21,
13,
1335,
4999,
30,
1002,
423,
49,
3781,
16,
315,
25219,
555,
2119,
15,
2854,
2740,
9078,
4970,
225,
309,
1267,
422,
296,
4510,
4278,
327,
766,
1327,
1267,
422,
296,
668,
4278,
1002,
423,
49,
3781,
16,
315,
907,
8558,
555,
2119,
15,
2740,
9078,
4970,
1327,
1267,
422,
296,
6210,
4278,
1002,
423,
49,
3781,
16,
315,
907,
8558,
3436,
2119,
2
] |
"""A ConceptNetworkNode is
|
"""A ConceptNetworkNode is
|
def fastPropagateActivations(self,state, normalNumberComingLinks, memoryPerf = 80): """Propagates activation values within state. Propagates activation values within state (faster than propagateActivations). state: in which activation values are found and changed normalNumberComingLinks "normal" number of links for the whole influence to be taken into account memoryPerf: memory performance (the higher, the better)""" influenceValues = {} influenceNb = {} for nodeState in state.nodeState: nodeState.ageActivationValues() ## Fill influence table ## # Get the nodes influenced by others for node in self.node: symbol = node.getSymbol() if symbol: ov = state.getNodeOldActivationValue(symbol) links = self.getLinksFrom(node) for link in links: weight = link.getWeight(state) nodeTo = link.getNodeTo() inflNb = influenceNb[nodeTo.getSymbol()] infl = influenceValues[nodeTo.getSymbol()] infl += 0.5 + ov * weight influenceValues[nodeTo.getSymbol()] = infl influenceNb[nodeTo.getSymbol()] += 1 ## For all influenced nodes ## for symbol in influenceValues.keys(): nodeState = state.getNodeStateBySymbol(symbol) node = self.getNode(symbol) influence = influenceValues[symbol] nbIncomings = influenceNb[symbol] nodeType = node.getType() decay = nodeType.getDecay() newAV = 0 oldAV = state.getNodeOldActivationValue(symbol) age = nodeState.getAge() influence /= log(normalNumberComingLinks + nbIncomings)\ / log(normalNumberComingLinks) minusAge = 200 / (1 + exp(-age / memoryPerf)) - 100 newAV = oldAV - decay * oldAV / 100 + influence \ - minusAge if newAV > 100: newAV = 100 if newAV < 0: newAV = 0 nodeState.setActivationValue(newAV)
|
602fe436a5d1f7eda62788919dca1b7219cc26da /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13131/602fe436a5d1f7eda62788919dca1b7219cc26da/ConceptNetwork.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4797,
11953,
340,
12241,
1012,
12,
2890,
16,
2019,
16,
2212,
1854,
799,
310,
7100,
16,
3778,
22016,
273,
8958,
4672,
3536,
11953,
815,
10027,
924,
3470,
919,
18,
225,
1186,
9095,
815,
10027,
924,
3470,
919,
261,
8076,
264,
2353,
13551,
12241,
1012,
2934,
225,
919,
30,
316,
1492,
10027,
924,
854,
1392,
471,
3550,
2212,
1854,
799,
310,
7100,
315,
6130,
6,
1300,
434,
4716,
364,
326,
7339,
13947,
23209,
358,
506,
9830,
1368,
2236,
3778,
22016,
30,
3778,
9239,
261,
5787,
10478,
16,
326,
7844,
15574,
13947,
23209,
1972,
273,
2618,
13947,
23209,
22816,
377,
273,
2618,
364,
756,
1119,
316,
919,
18,
2159,
1119,
30,
756,
1119,
18,
410,
14857,
1972,
1435,
225,
7541,
14192,
13947,
23209,
1014,
7541,
468,
968,
326,
2199,
13947,
23209,
72,
635,
10654,
364,
756,
316,
365,
18,
2159,
30,
3273,
225,
273,
756,
18,
588,
5335,
1435,
309,
3273,
30,
23094,
225,
273,
919,
18,
588,
907,
7617,
14857,
620,
12,
7175,
13,
4716,
273,
365,
18,
588,
7100,
1265,
12,
2159,
13,
364,
1692,
316,
4716,
30,
3119,
225,
273,
1692,
18,
588,
6544,
12,
2019,
13,
756,
774,
225,
273,
1692,
18,
588,
907,
774,
1435,
13947,
22816,
225,
273,
13947,
23209,
22816,
63,
2159,
774,
18,
588,
5335,
1435,
65,
13947,
565,
273,
13947,
23209,
1972,
63,
2159,
774,
18,
588,
5335,
1435,
65,
13947,
282,
1011,
374,
18,
25,
397,
23094,
380,
3119,
13947,
23209,
1972,
63,
2159,
774,
18,
588,
5335,
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,
4797,
11953,
340,
12241,
1012,
12,
2890,
16,
2019,
16,
2212,
1854,
799,
310,
7100,
16,
3778,
22016,
273,
8958,
4672,
3536,
11953,
815,
10027,
924,
3470,
919,
18,
225,
1186,
9095,
815,
10027,
924,
3470,
919,
261,
8076,
264,
2353,
13551,
12241,
1012,
2934,
225,
919,
30,
316,
1492,
10027,
924,
854,
1392,
471,
3550,
2212,
1854,
799,
310,
7100,
315,
6130,
6,
1300,
434,
4716,
364,
326,
7339,
13947,
23209,
358,
506,
9830,
1368,
2236,
3778,
22016,
30,
3778,
9239,
261,
5787,
10478,
16,
326,
7844,
15574,
13947,
23209,
1972,
273,
2618,
13947,
23209,
22816,
377,
273,
2618,
364,
756,
1119,
316,
919,
18,
2159,
1119,
30,
756,
1119,
18,
410,
14857,
1972,
1435,
225,
7541,
2
] |
def test_returns_unicode(self): for x, y in self.set_get_pairs: self.parser.returns_unicode = x self.assertEquals(self.parser.returns_unicode, y)
|
def test_returns_unicode(self): for x, y in self.set_get_pairs: self.parser.returns_unicode = x self.assertEquals(self.parser.returns_unicode, y)
|
4134c8fe1945cab0f4efd2f6077f86364b0e0b0a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/4134c8fe1945cab0f4efd2f6077f86364b0e0b0a/test_pyexpat.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6154,
67,
9124,
12,
2890,
4672,
364,
619,
16,
677,
316,
365,
18,
542,
67,
588,
67,
11545,
30,
365,
18,
4288,
18,
6154,
67,
9124,
273,
619,
365,
18,
11231,
8867,
12,
2890,
18,
4288,
18,
6154,
67,
9124,
16,
677,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6154,
67,
9124,
12,
2890,
4672,
364,
619,
16,
677,
316,
365,
18,
542,
67,
588,
67,
11545,
30,
365,
18,
4288,
18,
6154,
67,
9124,
273,
619,
365,
18,
11231,
8867,
12,
2890,
18,
4288,
18,
6154,
67,
9124,
16,
677,
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
] |
|
def checkForUnBan(self):
|
def checkForUnBan(self, debug):
|
def checkForUnBan(self): """ Check for user to remove from ban list. """ banListTemp = self.banList.copy() iterBanList = banListTemp.iteritems() for i in range(len(self.banList)): element = iterBanList.next() ip = element[0] btime = element[1] if btime < time.time()-self.banTime: self.delBanIP(ip) if self.verbose: print '`->', time.time()
|
c286d568555896e33cade457d870630e35ea16c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/c286d568555896e33cade457d870630e35ea16c4/firewall.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13855,
984,
38,
304,
12,
2890,
16,
1198,
4672,
3536,
2073,
364,
729,
358,
1206,
628,
25732,
666,
18,
3536,
25732,
682,
7185,
273,
365,
18,
21515,
682,
18,
3530,
1435,
1400,
38,
304,
682,
273,
25732,
682,
7185,
18,
2165,
3319,
1435,
364,
277,
316,
1048,
12,
1897,
12,
2890,
18,
21515,
682,
3719,
30,
930,
273,
1400,
38,
304,
682,
18,
4285,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13855,
984,
38,
304,
12,
2890,
16,
1198,
4672,
3536,
2073,
364,
729,
358,
1206,
628,
25732,
666,
18,
3536,
25732,
682,
7185,
273,
365,
18,
21515,
682,
18,
3530,
1435,
1400,
38,
304,
682,
273,
25732,
682,
7185,
18,
2165,
3319,
1435,
364,
277,
316,
1048,
12,
1897,
12,
2890,
18,
21515,
682,
3719,
30,
930,
273,
1400,
38,
304,
682,
18,
4285,
1435,
2359,
273,
930,
63,
20,
65,
324,
957,
273,
930,
63,
21,
65,
309,
324,
957,
411,
813,
18,
957,
1435,
17,
2890,
18,
21515,
950,
30,
365,
18,
3771,
38,
304,
2579,
12,
625,
13,
309,
365,
18,
11369,
30,
1172,
6992,
17,
1870,
16,
813,
18,
957,
1435,
225,
2,
-100,
-100
] |
self.program_info = (command_line, env)
|
self._program_info = (command_line, env)
|
def _calc_program_info(self): videopath = fileutil.expand_filename(self.video_path) thumbnailpath = fileutil.expand_filename(self.thumbnail_path) command_line, env = movie_data_program_info(videopath, thumbnailpath) self.program_info = (command_line, env)
|
1f4aa63779c283452d08709269047782d2f05693 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/1f4aa63779c283452d08709269047782d2f05693/moviedata.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12448,
67,
12890,
67,
1376,
12,
2890,
4672,
331,
831,
556,
421,
273,
585,
1367,
18,
12320,
67,
3459,
12,
2890,
18,
9115,
67,
803,
13,
9134,
803,
273,
585,
1367,
18,
12320,
67,
3459,
12,
2890,
18,
14904,
67,
803,
13,
1296,
67,
1369,
16,
1550,
273,
21360,
67,
892,
67,
12890,
67,
1376,
12,
6768,
556,
421,
16,
9134,
803,
13,
365,
18,
12890,
67,
1376,
273,
261,
3076,
67,
1369,
16,
1550,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12448,
67,
12890,
67,
1376,
12,
2890,
4672,
331,
831,
556,
421,
273,
585,
1367,
18,
12320,
67,
3459,
12,
2890,
18,
9115,
67,
803,
13,
9134,
803,
273,
585,
1367,
18,
12320,
67,
3459,
12,
2890,
18,
14904,
67,
803,
13,
1296,
67,
1369,
16,
1550,
273,
21360,
67,
892,
67,
12890,
67,
1376,
12,
6768,
556,
421,
16,
9134,
803,
13,
365,
18,
12890,
67,
1376,
273,
261,
3076,
67,
1369,
16,
1550,
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
] |
console.debug_stdoutln(">Entering: gnuplots.py->RMSDPlot()::make_script()...")
|
console.debug_stdoutln(">Entering: gnuplots.py->RMSDPlot()::make_script()...")
|
def make_script(self): console.debug_stdoutln(">Entering: gnuplots.py->RMSDPlot()::make_script()...") ## DEBUG basename = "%s_CHAIN%s_NTLS%s_RMSD" % ( self.chain.struct.structure_id, self.chain.chain_id, self.cpartition.num_tls_segments())
|
f921e2ace6e58d6ef561ac8457beb9b577456e33 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10674/f921e2ace6e58d6ef561ac8457beb9b577456e33/gnuplots.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
4263,
12,
2890,
4672,
2983,
18,
4148,
67,
10283,
2370,
2932,
34,
10237,
310,
30,
314,
13053,
13214,
18,
2074,
2122,
54,
3537,
40,
11532,
1435,
2866,
6540,
67,
4263,
1435,
7070,
13,
7541,
6369,
4882,
273,
2213,
87,
67,
1792,
6964,
9,
87,
67,
1784,
3045,
9,
87,
67,
54,
3537,
40,
6,
738,
261,
365,
18,
5639,
18,
1697,
18,
7627,
67,
350,
16,
365,
18,
5639,
18,
5639,
67,
350,
16,
365,
18,
71,
10534,
18,
2107,
67,
17116,
67,
12838,
10756,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
4263,
12,
2890,
4672,
2983,
18,
4148,
67,
10283,
2370,
2932,
34,
10237,
310,
30,
314,
13053,
13214,
18,
2074,
2122,
54,
3537,
40,
11532,
1435,
2866,
6540,
67,
4263,
1435,
7070,
13,
7541,
6369,
4882,
273,
2213,
87,
67,
1792,
6964,
9,
87,
67,
1784,
3045,
9,
87,
67,
54,
3537,
40,
6,
738,
261,
365,
18,
5639,
18,
1697,
18,
7627,
67,
350,
16,
365,
18,
5639,
18,
5639,
67,
350,
16,
365,
18,
71,
10534,
18,
2107,
67,
17116,
67,
12838,
10756,
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
] |
self.assertEquals('ros', stack_of('test_roslib'))
|
self.assertEquals('ros_comm', stack_of('test_roslib'))
|
def test_stack_of(self): import roslib.packages from roslib.stacks import stack_of self.assertEquals('ros', stack_of('test_roslib')) # due to caching, test twice self.assertEquals('ros', stack_of('test_roslib')) try: stack_of('fake_test_roslib') self.fail("should have failed") except roslib.packages.InvalidROSPkgException: pass
|
23dd6b1dde43dbef5a9240ab82cb3b3070d827d1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10596/23dd6b1dde43dbef5a9240ab82cb3b3070d827d1/test_roslib_stacks.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3772,
67,
792,
12,
2890,
4672,
1930,
721,
24760,
18,
10308,
628,
721,
24760,
18,
3772,
87,
1930,
2110,
67,
792,
365,
18,
11231,
8867,
2668,
6973,
67,
5702,
2187,
2110,
67,
792,
2668,
3813,
67,
303,
24760,
26112,
468,
6541,
358,
11393,
16,
1842,
13605,
365,
18,
11231,
8867,
2668,
6973,
67,
5702,
2187,
2110,
67,
792,
2668,
3813,
67,
303,
24760,
26112,
775,
30,
2110,
67,
792,
2668,
28395,
67,
3813,
67,
303,
24760,
6134,
365,
18,
6870,
2932,
13139,
1240,
2535,
7923,
1335,
721,
24760,
18,
10308,
18,
1941,
1457,
3118,
14931,
503,
30,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3772,
67,
792,
12,
2890,
4672,
1930,
721,
24760,
18,
10308,
628,
721,
24760,
18,
3772,
87,
1930,
2110,
67,
792,
365,
18,
11231,
8867,
2668,
6973,
67,
5702,
2187,
2110,
67,
792,
2668,
3813,
67,
303,
24760,
26112,
468,
6541,
358,
11393,
16,
1842,
13605,
365,
18,
11231,
8867,
2668,
6973,
67,
5702,
2187,
2110,
67,
792,
2668,
3813,
67,
303,
24760,
26112,
775,
30,
2110,
67,
792,
2668,
28395,
67,
3813,
67,
303,
24760,
6134,
365,
18,
6870,
2932,
13139,
1240,
2535,
7923,
1335,
721,
24760,
18,
10308,
18,
1941,
1457,
3118,
14931,
503,
30,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
resp, subs = s.xhdr('subject', first + '-' + last)
|
resp, subs = s.xhdr('subject', '{0}-{1}'.format(first, last))
|
def quit(self): """Process a QUIT command and close the socket. Returns: - resp: server response if successful"""
|
933238ad85875df26c18a674f77afc1abaafb88e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/933238ad85875df26c18a674f77afc1abaafb88e/nntplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9706,
12,
2890,
4672,
3536,
2227,
279,
10110,
1285,
1296,
471,
1746,
326,
2987,
18,
225,
2860,
30,
300,
1718,
30,
1438,
766,
309,
6873,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9706,
12,
2890,
4672,
3536,
2227,
279,
10110,
1285,
1296,
471,
1746,
326,
2987,
18,
225,
2860,
30,
300,
1718,
30,
1438,
766,
309,
6873,
8395,
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
] |
if weakpool(): weakpool()._mark_invalid()
|
if weakpool(): weakpool()._mark_invalid()
|
def _mark_weakpool_invalid(weakpool): if weakpool(): weakpool()._mark_invalid()
|
67793a0354afb311c0006d2fbd0c9da8c2663d69 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/67793a0354afb311c0006d2fbd0c9da8c2663d69/svn_fs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3355,
67,
26008,
6011,
67,
5387,
12,
26008,
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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,
3355,
67,
26008,
6011,
67,
5387,
12,
26008,
6011,
4672,
309,
16046,
6011,
13332,
16046,
6011,
1435,
6315,
3355,
67,
5387,
1435,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
reporterSelections.append('<option value="%d">%s</option>'%(i,r.getName()))
|
selected = (i == active) if selected: selectedStr = ' selected' else: selectedStr = '' reporterSelections.append('<option value="%d"%s>%s</option>'%(i,selectedStr,r.getName()))
|
def send_report(self, report): try: keys = self.load_report(report) except IOError: return self.send_error(400, 'Invalid report.')
|
5b2116a00281e76795ad84d13848ce5466e1c608 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11986/5b2116a00281e76795ad84d13848ce5466e1c608/ScanView.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
6006,
12,
2890,
16,
2605,
4672,
775,
30,
1311,
273,
365,
18,
945,
67,
6006,
12,
6006,
13,
1335,
8340,
30,
327,
365,
18,
4661,
67,
1636,
12,
16010,
16,
296,
1941,
2605,
1093,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
6006,
12,
2890,
16,
2605,
4672,
775,
30,
1311,
273,
365,
18,
945,
67,
6006,
12,
6006,
13,
1335,
8340,
30,
327,
365,
18,
4661,
67,
1636,
12,
16010,
16,
296,
1941,
2605,
1093,
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
] |
'media_url' : settings.MEDIA_URL
|
'media_url' : settings.MEDIA_URL, 'form' : form,
|
def blackbird_logging(): return { 'debug' : settings.DEBUG, 'media_url' : settings.MEDIA_URL }
|
7c0026df4056ec21eda3f30a20ef46a957e41d9a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13656/7c0026df4056ec21eda3f30a20ef46a957e41d9a/satchmo_util.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7721,
31245,
67,
11167,
13332,
327,
288,
296,
4148,
11,
294,
1947,
18,
9394,
16,
296,
5829,
67,
718,
11,
294,
1947,
18,
26368,
67,
1785,
16,
296,
687,
11,
294,
646,
16,
289,
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,
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,
16,
296,
5829,
67,
718,
11,
294,
1947,
18,
26368,
67,
1785,
16,
296,
687,
11,
294,
646,
16,
289,
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
] |
"""Raised when stanza requests a feature which is not (yet) implemented."""
|
"""Raised when invalid JID is encountered."""
|
def __init__(self, message): ProtocolError.__init__(self, "bad-request", message)
|
56834be7f0b9b25a3c41a6882d52e168a9c73bab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12769/56834be7f0b9b25a3c41a6882d52e168a9c73bab/exceptions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
883,
4672,
4547,
668,
16186,
2738,
972,
12,
2890,
16,
315,
8759,
17,
2293,
3113,
883,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
883,
4672,
4547,
668,
16186,
2738,
972,
12,
2890,
16,
315,
8759,
17,
2293,
3113,
883,
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
] |
output += "Suppression (error hash=
|
output += "Suppression (error hash=
|
def __str__(self): ''' Pretty print the type and backtrace(s) of this specific error, including suppression (which is just a mangled backtrace).''' output = "" if (self._commandline): output += self._commandline + "\n"
|
093ae2e104899325a1bacee5ad1990f44305506e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/093ae2e104899325a1bacee5ad1990f44305506e/memcheck_analyze.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
9163,
22328,
1172,
326,
618,
471,
13902,
12,
87,
13,
434,
333,
2923,
555,
16,
6508,
1169,
1337,
261,
12784,
353,
2537,
279,
29674,
1259,
13902,
14851,
6309,
876,
273,
1408,
309,
261,
2890,
6315,
3076,
1369,
4672,
876,
1011,
365,
6315,
3076,
1369,
397,
1548,
82,
6,
2,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
9163,
22328,
1172,
326,
618,
471,
13902,
12,
87,
13,
434,
333,
2923,
555,
16,
6508,
1169,
1337,
261,
12784,
353,
2537,
279,
29674,
1259,
13902,
14851,
6309,
876,
273,
1408,
309,
261,
2890,
6315,
3076,
1369,
4672,
876,
1011,
365,
6315,
3076,
1369,
397,
1548,
82,
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
] |
for line in pipe: words = line.lower().split() for i in range(len(words)): if words[i] in hw_identifiers: return int(words[get_index(i)].replace(':', ''), 16)
|
def _find_mac(command, args, hw_identifiers, get_index): import os for dir in ['', '/sbin/', '/usr/sbin']: executable = os.path.join(dir, command) if not os.path.exists(executable): continue try: # LC_ALL to get English output, 2>/dev/null to # prevent output on stderr cmd = 'LC_ALL=C %s %s 2>/dev/null' % (executable, args) pipe = os.popen(cmd) except IOError: continue for line in pipe: words = line.lower().split() for i in range(len(words)): if words[i] in hw_identifiers: return int(words[get_index(i)].replace(':', ''), 16) return None
|
c976884bae9d052be78a937c95ada7c573ab901f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/c976884bae9d052be78a937c95ada7c573ab901f/uuid.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
67,
5821,
12,
3076,
16,
833,
16,
16139,
67,
20218,
16,
336,
67,
1615,
4672,
1930,
1140,
364,
1577,
316,
10228,
2187,
1173,
87,
4757,
19,
2187,
1173,
13640,
19,
87,
4757,
3546,
30,
9070,
273,
1140,
18,
803,
18,
5701,
12,
1214,
16,
1296,
13,
309,
486,
1140,
18,
803,
18,
1808,
12,
17751,
4672,
1324,
225,
775,
30,
468,
27727,
67,
4685,
358,
336,
24151,
876,
16,
576,
16893,
5206,
19,
2011,
358,
468,
5309,
876,
603,
4514,
1797,
273,
296,
13394,
67,
4685,
33,
39,
738,
87,
738,
87,
576,
16893,
5206,
19,
2011,
11,
738,
261,
17751,
16,
833,
13,
6010,
273,
1140,
18,
84,
3190,
12,
4172,
13,
1335,
8340,
30,
1324,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
67,
5821,
12,
3076,
16,
833,
16,
16139,
67,
20218,
16,
336,
67,
1615,
4672,
1930,
1140,
364,
1577,
316,
10228,
2187,
1173,
87,
4757,
19,
2187,
1173,
13640,
19,
87,
4757,
3546,
30,
9070,
273,
1140,
18,
803,
18,
5701,
12,
1214,
16,
1296,
13,
309,
486,
1140,
18,
803,
18,
1808,
12,
17751,
4672,
1324,
225,
775,
30,
468,
27727,
67,
4685,
358,
336,
24151,
876,
16,
576,
16893,
5206,
19,
2011,
358,
468,
5309,
876,
603,
4514,
1797,
273,
296,
13394,
67,
4685,
33,
39,
738,
87,
738,
87,
576,
16893,
5206,
19,
2011,
11,
738,
261,
17751,
16,
833,
13,
6010,
273,
1140,
18,
84,
3190,
12,
4172,
13,
1335,
8340,
30,
2
] |
|
{'message' : 'foo', 'args' : ('foo',)}),
|
{'message' : 'foo', 'args' : ('foo',), 'filename' : None, 'errno' : None, 'strerror' : None}),
|
def testAttributes(self): # test that exception attributes are happy
|
3171c2d3fc77093826d7252ea0224fa1dfe56920 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/3171c2d3fc77093826d7252ea0224fa1dfe56920/test_exceptions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2498,
12,
2890,
4672,
468,
1842,
716,
1520,
1677,
854,
5622,
2074,
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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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
project = (yield async_call(read_project, filename)) yield self.LoadProject(project)
|
project = (yield self._OpenProject(filename))
|
def OpenProject(self, filename): try: project = (yield async_call(read_project, filename)) yield self.LoadProject(project) except Exception, e: if isinstance(e, IOError) and e.errno == errno.ENOENT: dialogs.error(self, "Project file not found:\n\n" + filename) else: dialogs.error(self, "Error loading session:\n\n%s" % traceback.format_exc())
|
99c99bcc13d0774a6f954df27c7247f044b112da /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11441/99c99bcc13d0774a6f954df27c7247f044b112da/mainframe.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3502,
4109,
12,
2890,
16,
1544,
4672,
775,
30,
1984,
273,
261,
23604,
365,
6315,
3678,
4109,
12,
3459,
3719,
1335,
1185,
16,
425,
30,
309,
1549,
12,
73,
16,
8340,
13,
471,
425,
18,
19088,
422,
8402,
18,
1157,
51,
2222,
30,
7609,
14072,
18,
1636,
12,
2890,
16,
315,
4109,
585,
486,
1392,
5581,
82,
64,
82,
6,
397,
1544,
13,
469,
30,
7609,
14072,
18,
1636,
12,
2890,
16,
315,
668,
7153,
1339,
5581,
82,
64,
82,
9,
87,
6,
738,
10820,
18,
2139,
67,
10075,
10756,
2,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3502,
4109,
12,
2890,
16,
1544,
4672,
775,
30,
1984,
273,
261,
23604,
365,
6315,
3678,
4109,
12,
3459,
3719,
1335,
1185,
16,
425,
30,
309,
1549,
12,
73,
16,
8340,
13,
471,
425,
18,
19088,
422,
8402,
18,
1157,
51,
2222,
30,
7609,
14072,
18,
1636,
12,
2890,
16,
315,
4109,
585,
486,
1392,
5581,
82,
64,
82,
6,
397,
1544,
13,
469,
30,
7609,
14072,
18,
1636,
12,
2890,
16,
315,
668,
7153,
1339,
5581,
82,
64,
82,
9,
87,
6,
738,
10820,
18,
2139,
67,
10075,
10756,
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
] |
ns = (prefix, tns) if ns[0] is None: log.debug('warning: tns (%s), not mapped to a prefix', tns) return ns
|
if prefix is None: log.debug('warning: tns (%s), not mapped to prefix', tns) prefix = 'tns' return (prefix, tns)
|
def mktns(self, root): """ Get/create the target namespace """ tns = root.get('targetNamespace') prefix = root.findPrefix(tns) ns = (prefix, tns) if ns[0] is None: log.debug('warning: tns (%s), not mapped to a prefix', tns) return ns
|
881e04727fbd5c63bb7919a46100f7502335509e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5930/881e04727fbd5c63bb7919a46100f7502335509e/wsdl.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5028,
88,
2387,
12,
2890,
16,
1365,
4672,
3536,
968,
19,
2640,
326,
1018,
1981,
3536,
268,
2387,
273,
1365,
18,
588,
2668,
3299,
3402,
6134,
1633,
273,
1365,
18,
4720,
2244,
12,
88,
2387,
13,
309,
1633,
353,
599,
30,
613,
18,
4148,
2668,
8551,
30,
268,
2387,
6142,
87,
3631,
486,
5525,
358,
1633,
2187,
268,
2387,
13,
1633,
273,
296,
88,
2387,
11,
327,
261,
3239,
16,
268,
2387,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5028,
88,
2387,
12,
2890,
16,
1365,
4672,
3536,
968,
19,
2640,
326,
1018,
1981,
3536,
268,
2387,
273,
1365,
18,
588,
2668,
3299,
3402,
6134,
1633,
273,
1365,
18,
4720,
2244,
12,
88,
2387,
13,
309,
1633,
353,
599,
30,
613,
18,
4148,
2668,
8551,
30,
268,
2387,
6142,
87,
3631,
486,
5525,
358,
1633,
2187,
268,
2387,
13,
1633,
273,
296,
88,
2387,
11,
327,
261,
3239,
16,
268,
2387,
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
] |
super(Singleton, self).__setattr__(name, value)
|
super(Node, self).__setattr__(name, value)
|
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.children: setattr(child, name, value) if name == 'depth': for child in self.children: setattr(child, name, value + 1)
|
d591f8fa8f58e3c0337e74c0485e3fbcce7b670d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/d591f8fa8f58e3c0337e74c0485e3fbcce7b670d/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1747,
972,
12,
2890,
16,
508,
16,
460,
4672,
2240,
12,
907,
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,
907,
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
] |
if not isinstance(f, MPolynomial) and self.parent() is f.parent(): raise TypeError, "self and f must have the same parent"
|
if type(self) is not type(f) or self.parent() is not f.parent(): self, f = canonical_coercion(self, f) return self.gcd(f)
|
def gcd(self, f): """ Compute the greatest common divisor of this polynomial and f.
|
14bab8e421745c4803e098f3cdde3518f71fc4b6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/14bab8e421745c4803e098f3cdde3518f71fc4b6/multi_polynomial_element.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14876,
12,
2890,
16,
284,
4672,
3536,
8155,
326,
18825,
395,
2975,
15013,
434,
333,
16991,
471,
284,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
15013,
434,
333,
16991,
471,
284,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
``(P[0]+P[1]).show()`` to plot `(t,\\theta(t))` and `(t,\\theta'(t))`:: sage: from sage.calculus.desolvers import eulers_method_2x2_plot
|
``(P[0]+P[1]).show()`` to plot `(t,\theta(t))` and `(t,\theta'(t))`::
|
def eulers_method_2x2_plot(f,g, t0, x0, y0, h, t1): """ This plots the soln in the rectangle ``(xrange[0],xrange[1]) x (yrange[0],yrange[1])`` and plots using Euler's method the numerical solution of the 1st order ODEs `x' = f(t,x,y)`, `x(a)=x_0`, `y' = g(t,x,y)`, `y(a) = y_0`. *For pedagogical purposes only.* EXAMPLES:: The following example plots the solution to `\\theta''+\\sin(\\theta)=0`, `\\theta(0)=\\frac 34`, `\\theta'(0) = 0`. Type ``P[0].show()`` to plot the solution, ``(P[0]+P[1]).show()`` to plot `(t,\\theta(t))` and `(t,\\theta'(t))`:: sage: from sage.calculus.desolvers import eulers_method_2x2_plot sage: f = lambda z : z[2]; g = lambda z : -sin(z[1]) sage: P = eulers_method_2x2_plot(f,g, 0.0, 0.75, 0.0, 0.1, 1.0) """ n=int((1.0)*(t1-t0)/h) t00 = t0; x00 = x0; y00 = y0 soln = [[t00,x00,y00]] for i in range(n+1): x01 = x00 + h*f([t00,x00,y00]) y00 = y00 + h*g([t00,x00,y00]) x00 = x01 t00 = t00 + h soln.append([t00,x00,y00]) Q1 = line([[x[0],x[1]] for x in soln], rgbcolor=(1/4,1/8,3/4)) Q2 = line([[x[0],x[2]] for x in soln], rgbcolor=(1/2,1/8,1/4)) return [Q1,Q2]
|
a5e01917e5cb3eb9aa0a8033daad14821fe571aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/a5e01917e5cb3eb9aa0a8033daad14821fe571aa/desolvers.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
332,
414,
67,
2039,
67,
22,
92,
22,
67,
4032,
12,
74,
16,
75,
16,
268,
20,
16,
619,
20,
16,
677,
20,
16,
366,
16,
268,
21,
4672,
3536,
1220,
17931,
326,
3704,
82,
316,
326,
11845,
12176,
12,
92,
3676,
63,
20,
6487,
92,
3676,
63,
21,
5717,
619,
261,
93,
3676,
63,
20,
6487,
93,
3676,
63,
21,
5717,
10335,
471,
17931,
1450,
512,
17040,
1807,
707,
326,
17409,
6959,
434,
326,
404,
334,
1353,
531,
1639,
87,
1375,
92,
11,
273,
284,
12,
88,
16,
92,
16,
93,
13,
9191,
1375,
92,
12,
69,
13,
33,
92,
67,
20,
9191,
1375,
93,
11,
273,
314,
12,
88,
16,
92,
16,
93,
13,
9191,
1375,
93,
12,
69,
13,
273,
677,
67,
20,
8338,
225,
380,
1290,
31840,
346,
717,
1706,
13694,
1338,
4509,
225,
5675,
8900,
11386,
2866,
225,
1021,
3751,
3454,
17931,
326,
6959,
358,
1375,
1695,
14482,
6309,
15,
1695,
21861,
24480,
14482,
13,
33,
20,
9191,
1375,
1695,
14482,
12,
20,
13,
33,
1695,
22187,
13438,
9191,
1375,
1695,
14482,
11,
12,
20,
13,
273,
374,
8338,
225,
1412,
12176,
52,
63,
20,
8009,
4500,
1435,
10335,
358,
3207,
326,
6959,
16,
12176,
12,
52,
63,
20,
3737,
52,
63,
21,
65,
2934,
4500,
1435,
10335,
358,
3207,
1375,
12,
88,
17211,
14482,
12,
88,
3719,
68,
471,
1375,
12,
88,
17211,
14482,
11,
12,
88,
3719,
68,
2866,
225,
272,
410,
30,
284,
273,
3195,
998,
294,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
332,
414,
67,
2039,
67,
22,
92,
22,
67,
4032,
12,
74,
16,
75,
16,
268,
20,
16,
619,
20,
16,
677,
20,
16,
366,
16,
268,
21,
4672,
3536,
1220,
17931,
326,
3704,
82,
316,
326,
11845,
12176,
12,
92,
3676,
63,
20,
6487,
92,
3676,
63,
21,
5717,
619,
261,
93,
3676,
63,
20,
6487,
93,
3676,
63,
21,
5717,
10335,
471,
17931,
1450,
512,
17040,
1807,
707,
326,
17409,
6959,
434,
326,
404,
334,
1353,
531,
1639,
87,
1375,
92,
11,
273,
284,
12,
88,
16,
92,
16,
93,
13,
9191,
1375,
92,
12,
69,
13,
33,
92,
67,
20,
9191,
1375,
93,
11,
273,
314,
12,
88,
16,
92,
16,
93,
13,
9191,
2
] |
Die('Found multiple unstable ebuilds in %s' % root)
|
Die('Found multiple unstable ebuilds in %s' % os.path.dirname(path))
|
def _FindStableEBuilds(files): """Return a list of stable ebuilds from specified list of files. Args: files: List of files. """ workon_dir = False stable_ebuilds = [] unstable_ebuilds = [] for path in files: if path.endswith('.ebuild') and not os.path.islink(path): ebuild = _EBuild(path) if ebuild.is_workon: workon_dir = True if ebuild.is_stable: stable_ebuilds.append(ebuild) else: unstable_ebuilds.append(ebuild) # If we found a workon ebuild in this directory, apply some sanity checks. if workon_dir: if len(unstable_ebuilds) > 1: Die('Found multiple unstable ebuilds in %s' % root) if len(stable_ebuilds) > 1: stable_ebuilds = [_BestEBuild(stable_ebuilds)] # Print a warning if multiple stable ebuilds are found in the same # directory. Storing multiple stable ebuilds is error-prone because # the older ebuilds will not get rev'd. # # We make a special exception for x11-drivers/xf86-video-msm for legacy # reasons. if stable_ebuilds[0].package != 'x11-drivers/xf86-video-msm': Warning('Found multiple stable ebuilds in %s' % root) if not unstable_ebuilds: Die('Missing 9999 ebuild in %s' % root) if not stable_ebuilds: Die('Missing stable ebuild in %s' % root) if stable_ebuilds: return stable_ebuilds[0] else: return None
|
804ad7df2772bbb0df99bab523e0e6acca66ef39 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/804ad7df2772bbb0df99bab523e0e6acca66ef39/cros_mark_as_stable.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3125,
30915,
41,
7746,
12,
2354,
4672,
3536,
990,
279,
666,
434,
14114,
425,
27324,
628,
1269,
666,
434,
1390,
18,
225,
6634,
30,
1390,
30,
987,
434,
1390,
18,
3536,
1440,
265,
67,
1214,
273,
1083,
14114,
67,
73,
27324,
273,
5378,
640,
15021,
67,
73,
27324,
273,
5378,
364,
589,
316,
1390,
30,
309,
589,
18,
5839,
1918,
2668,
18,
73,
3510,
6134,
471,
486,
1140,
18,
803,
18,
291,
1232,
12,
803,
4672,
425,
3510,
273,
389,
41,
3116,
12,
803,
13,
309,
425,
3510,
18,
291,
67,
1252,
265,
30,
1440,
265,
67,
1214,
273,
1053,
309,
425,
3510,
18,
291,
67,
15021,
30,
14114,
67,
73,
27324,
18,
6923,
12,
73,
3510,
13,
469,
30,
640,
15021,
67,
73,
27324,
18,
6923,
12,
73,
3510,
13,
225,
468,
971,
732,
1392,
279,
1440,
265,
425,
3510,
316,
333,
1867,
16,
2230,
2690,
16267,
4271,
18,
309,
1440,
265,
67,
1214,
30,
309,
562,
12,
318,
15021,
67,
73,
27324,
13,
405,
404,
30,
463,
1385,
2668,
2043,
3229,
640,
15021,
425,
27324,
316,
738,
87,
11,
738,
1140,
18,
803,
18,
12287,
12,
803,
3719,
309,
562,
12,
15021,
67,
73,
27324,
13,
405,
404,
30,
14114,
67,
73,
27324,
273,
306,
67,
14173,
41,
3116,
12,
15021,
67,
73,
27324,
25887,
225,
468,
3038,
279,
3436,
309,
3229,
14114,
425,
27324,
854,
1392,
316,
326,
1967,
468,
1867,
18,
934,
6053,
3229,
14114,
425,
27324,
353,
555,
17,
683,
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,
3125,
30915,
41,
7746,
12,
2354,
4672,
3536,
990,
279,
666,
434,
14114,
425,
27324,
628,
1269,
666,
434,
1390,
18,
225,
6634,
30,
1390,
30,
987,
434,
1390,
18,
3536,
1440,
265,
67,
1214,
273,
1083,
14114,
67,
73,
27324,
273,
5378,
640,
15021,
67,
73,
27324,
273,
5378,
364,
589,
316,
1390,
30,
309,
589,
18,
5839,
1918,
2668,
18,
73,
3510,
6134,
471,
486,
1140,
18,
803,
18,
291,
1232,
12,
803,
4672,
425,
3510,
273,
389,
41,
3116,
12,
803,
13,
309,
425,
3510,
18,
291,
67,
1252,
265,
30,
1440,
265,
67,
1214,
273,
1053,
309,
425,
3510,
18,
291,
67,
15021,
30,
14114,
67,
73,
27324,
18,
6923,
12,
73,
3510,
2
] |
self.tip = None
|
def remove(self): if self.tray: self.tray.destroy() self.tray = None self.tip = None self.urgent_window = None
|
b9ccee387853728df19f592b305be65eeb7ba5d8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10693/b9ccee387853728df19f592b305be65eeb7ba5d8/notification.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
12,
2890,
4672,
309,
365,
18,
313,
528,
30,
365,
18,
313,
528,
18,
11662,
1435,
365,
18,
313,
528,
273,
599,
365,
18,
295,
75,
319,
67,
5668,
273,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1206,
12,
2890,
4672,
309,
365,
18,
313,
528,
30,
365,
18,
313,
528,
18,
11662,
1435,
365,
18,
313,
528,
273,
599,
365,
18,
295,
75,
319,
67,
5668,
273,
599,
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
] |
|
try: event, value, line_number = stream.next() except StopIteration: return None
|
event, value, line_number = stream_next(stream) if event == None: break
|
def table_stream(stream, _tag_uri, _tag_name, _attributes, _ns_decls, pdf_stylesheet, pdf_table_style): data_table = None table_td = None stack = [] stack.append((_tag_name, _attributes, None)) data_table = [] style_id = _attributes.get((None, 'style'), None) style_table = pdf_table_style.get(style_id, TableStyle()) rowHeights_table = _attributes.get((None, 'rowHeights'), None) colWidths_table = _attributes.get((None, 'colWidths'), None) # reportlab default value splitByRow_table = 1 repeatRows_table = to_int(_attributes.get((None, 'repeatRows'), 1), 1) if rowHeights_table is not None: rowHeights_table_tab = rowHeights_table.split(',') rowHeights_table = [] for rh in rowHeights_table_tab: rowHeights_table.append(get_value_reportlab(rh)) if colWidths_table is not None: colWidths_table_tab = colWidths_table.split(',') colWidths_table = [] for cw in colWidths_table_tab: colWidths_table.append(get_value_reportlab(cw)) while True: try: event, value, line_number = stream.next() except StopIteration: return None #### START ELEMENT #### if event == START_ELEMENT: tag_uri, tag_name, attributes, ns_decls = value push = True if tag_name == 'tr': table_tr = [] end_tag_tr = False elif tag_name == 'td': table_td = [] end_tag_td = False elif tag_name == 'image': if stack[-1][0] == 'td': push = False widget = image_stream(stream, tag_uri, tag_name, attributes, ns_decls, pdf_stylesheet, True) if widget is not None: table_td.append(widget) else: pass elif tag_name == 'para': if stack[-1][0] == 'td': push = False widget = paragraph_stream(stream, tag_uri, tag_name, attributes, ns_decls, pdf_stylesheet) if widget is not None: table_td.append(widget) else: pass elif tag_name in ['pre', 'xpre']: if stack[-1][0] == 'td': push = False widget = preformatted_stream(stream, tag_uri, tag_name, attributes, ns_decls, pdf_stylesheet) if widget is not None: table_td.append(widget) else: pass elif tag_name == 'spacer': if stack[-1][0] == 'td': push = False widget = spacer_stream(stream, tag_uri, tag_name, attributes, ns_decls, pdf_stylesheet) if widget is not None: table_td.append(widget) else: pass elif tag_name == 'blockTable': if stack[-1][0] == 'td': push = False widget = table_stream(stream, tag_uri, tag_name, attributes, ns_decls, pdf_stylesheet, pdf_table_style) if widget is not None: table_td.append(widget) else: pass if push: stack.append((tag_name, attributes, None)) #### END ELEMENT #### elif event == END_ELEMENT: tag_uri, tag_name = value if stack[-1][0] == _tag_name: element = stack.pop() widget = Table(data_table, colWidths_table, rowHeights_table, style_table, splitByRow=splitByRow_table, repeatRows=repeatRows_table) return widget elif stack[-1][0] == 'tr': data_table.append(table_tr) stack.pop() end_tag_tr = True table_tr = None elif stack[-1][0] == 'td': end_tag_td = True if len(table_td) == 1: table_td = table_td[0] table_tr.append(table_td) table_td = None stack.pop() #### TEXT ELEMENT #### elif event == TEXT: if stack[-1][0] == 'blockTable': pass elif stack[-1][0] == 'tr': pass elif stack[-1][0] == 'td': value = strip(Unicode.decode(value, encoding)) if len(value) > 0 and value != ' ': value = XML.encode(value) # entities table_td.append(value) else: pass
|
51b02e012792ad1fcdef1300580c1d6a58548c1f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/51b02e012792ad1fcdef1300580c1d6a58548c1f/rml.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1014,
67,
3256,
12,
3256,
16,
389,
2692,
67,
1650,
16,
389,
2692,
67,
529,
16,
389,
4350,
16,
389,
2387,
67,
323,
6429,
16,
8169,
67,
19403,
16,
8169,
67,
2121,
67,
4060,
4672,
501,
67,
2121,
273,
599,
1014,
67,
4465,
273,
599,
2110,
273,
5378,
2110,
18,
6923,
12443,
67,
2692,
67,
529,
16,
389,
4350,
16,
599,
3719,
225,
501,
67,
2121,
273,
5378,
2154,
67,
350,
273,
389,
4350,
18,
588,
12443,
7036,
16,
296,
4060,
19899,
599,
13,
2154,
67,
2121,
273,
8169,
67,
2121,
67,
4060,
18,
588,
12,
4060,
67,
350,
16,
3555,
2885,
10756,
1027,
2686,
87,
67,
2121,
273,
389,
4350,
18,
588,
12443,
7036,
16,
296,
492,
2686,
87,
19899,
599,
13,
645,
22407,
67,
2121,
273,
389,
4350,
18,
588,
12443,
7036,
16,
296,
1293,
22407,
19899,
599,
13,
468,
2605,
7411,
805,
460,
1416,
858,
1999,
67,
2121,
273,
404,
7666,
4300,
67,
2121,
273,
358,
67,
474,
24899,
4350,
18,
588,
12443,
7036,
16,
296,
9374,
4300,
19899,
404,
3631,
404,
13,
225,
309,
1027,
2686,
87,
67,
2121,
353,
486,
599,
30,
1027,
2686,
87,
67,
2121,
67,
7032,
273,
1027,
2686,
87,
67,
2121,
18,
4939,
12,
2187,
6134,
1027,
2686,
87,
67,
2121,
273,
5378,
364,
6259,
316,
1027,
2686,
87,
67,
2121,
67,
7032,
30,
1027,
2686,
87,
67,
2121,
18,
6923,
12,
588,
67,
1132,
67,
6006,
7411,
12,
30138,
3719,
225,
309,
645,
22407,
67,
2121,
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,
1014,
67,
3256,
12,
3256,
16,
389,
2692,
67,
1650,
16,
389,
2692,
67,
529,
16,
389,
4350,
16,
389,
2387,
67,
323,
6429,
16,
8169,
67,
19403,
16,
8169,
67,
2121,
67,
4060,
4672,
501,
67,
2121,
273,
599,
1014,
67,
4465,
273,
599,
2110,
273,
5378,
2110,
18,
6923,
12443,
67,
2692,
67,
529,
16,
389,
4350,
16,
599,
3719,
225,
501,
67,
2121,
273,
5378,
2154,
67,
350,
273,
389,
4350,
18,
588,
12443,
7036,
16,
296,
4060,
19899,
599,
13,
2154,
67,
2121,
273,
8169,
67,
2121,
67,
4060,
18,
588,
12,
4060,
67,
350,
16,
3555,
2885,
10756,
1027,
2686,
87,
67,
2121,
273,
389,
4350,
18,
588,
12443,
7036,
16,
296,
492,
2
] |
def __init__(self, serviceref, begin, end, name, description, eit):
|
def __init__(self, serviceref, begin, end, name, description, eit, disabled):
|
def __init__(self, serviceref, begin, end, name, description, eit): timer.TimerEntry.__init__(self, int(begin), int(end)) assert isinstance(serviceref, ServiceReference) self.service_ref = serviceref self.eit = eit self.dontSave = False self.name = name self.description = description self.timer = None self.record_service = None self.start_prepare = 0 self.log_entries = [] self.resetState()
|
07e90b35a0d807fe7783bf2ed3823ac665260d57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/07e90b35a0d807fe7783bf2ed3823ac665260d57/RecordTimer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
24658,
822,
74,
16,
2376,
16,
679,
16,
508,
16,
2477,
16,
425,
305,
16,
5673,
4672,
5441,
18,
6777,
1622,
16186,
2738,
972,
12,
2890,
16,
509,
12,
10086,
3631,
509,
12,
409,
3719,
225,
1815,
1549,
12,
23039,
335,
822,
74,
16,
26755,
13,
225,
365,
18,
3278,
67,
1734,
273,
24658,
822,
74,
365,
18,
73,
305,
273,
425,
305,
365,
18,
72,
1580,
4755,
273,
1083,
365,
18,
529,
273,
508,
365,
18,
3384,
273,
2477,
365,
18,
12542,
273,
599,
365,
18,
3366,
67,
3278,
273,
599,
365,
18,
1937,
67,
9366,
273,
374,
225,
365,
18,
1330,
67,
8219,
273,
5378,
365,
18,
6208,
1119,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
24658,
822,
74,
16,
2376,
16,
679,
16,
508,
16,
2477,
16,
425,
305,
16,
5673,
4672,
5441,
18,
6777,
1622,
16186,
2738,
972,
12,
2890,
16,
509,
12,
10086,
3631,
509,
12,
409,
3719,
225,
1815,
1549,
12,
23039,
335,
822,
74,
16,
26755,
13,
225,
365,
18,
3278,
67,
1734,
273,
24658,
822,
74,
365,
18,
73,
305,
273,
425,
305,
365,
18,
72,
1580,
4755,
273,
1083,
365,
18,
529,
273,
508,
365,
18,
3384,
273,
2477,
365,
18,
12542,
273,
599,
365,
18,
3366,
67,
3278,
273,
599,
365,
18,
1937,
67,
9366,
273,
374,
225,
365,
18,
1330,
67,
8219,
273,
5378,
365,
18,
6208,
1119,
1435,
2
] |
name_c = name + 'c'
|
name_c = cache_from_source(name)
|
def main(): silent = 0 verbose = 0 if sys.argv[1:]: if sys.argv[1] == '-v': verbose = 1 elif sys.argv[1] == '-s': silent = 1 MAGIC = imp.get_magic() if not silent: print('Using MAGIC word', repr(MAGIC)) for dirname in sys.path: try: names = os.listdir(dirname) except os.error: print('Cannot list directory', repr(dirname)) continue if not silent: print('Checking ', repr(dirname), '...') names.sort() for name in names: if name[-3:] == '.py': name = os.path.join(dirname, name) try: st = os.stat(name) except os.error: print('Cannot stat', repr(name)) continue if verbose: print('Check', repr(name), '...') name_c = name + 'c' try: f = open(name_c, 'r') except IOError: print('Cannot open', repr(name_c)) continue magic_str = f.read(4) mtime_str = f.read(4) f.close() if magic_str != MAGIC: print('Bad MAGIC word in ".pyc" file', end=' ') print(repr(name_c)) continue mtime = get_long(mtime_str) if mtime == 0 or mtime == -1: print('Bad ".pyc" file', repr(name_c)) elif mtime != st[ST_MTIME]: print('Out-of-date ".pyc" file', end=' ') print(repr(name_c))
|
aea75dbd3091f43084d8b5687d0e3bf451da72c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/aea75dbd3091f43084d8b5687d0e3bf451da72c0/checkpyc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
10404,
273,
374,
3988,
273,
374,
309,
2589,
18,
19485,
63,
21,
30,
14542,
309,
2589,
18,
19485,
63,
21,
65,
422,
2400,
90,
4278,
3988,
273,
404,
1327,
2589,
18,
19485,
63,
21,
65,
422,
2400,
87,
4278,
10404,
273,
404,
490,
22247,
273,
1646,
18,
588,
67,
11179,
1435,
309,
486,
10404,
30,
1172,
2668,
7736,
490,
22247,
2076,
2187,
8480,
12,
49,
22247,
3719,
364,
4283,
316,
2589,
18,
803,
30,
775,
30,
1257,
273,
1140,
18,
1098,
1214,
12,
12287,
13,
1335,
1140,
18,
1636,
30,
1172,
2668,
4515,
666,
1867,
2187,
8480,
12,
12287,
3719,
1324,
309,
486,
10404,
30,
1172,
2668,
14294,
2265,
8480,
12,
12287,
3631,
20243,
13,
1257,
18,
3804,
1435,
364,
508,
316,
1257,
30,
309,
508,
18919,
23,
26894,
422,
2418,
2074,
4278,
508,
273,
1140,
18,
803,
18,
5701,
12,
12287,
16,
508,
13,
775,
30,
384,
273,
1140,
18,
5642,
12,
529,
13,
1335,
1140,
18,
1636,
30,
1172,
2668,
4515,
610,
2187,
8480,
12,
529,
3719,
1324,
309,
3988,
30,
1172,
2668,
1564,
2187,
8480,
12,
529,
3631,
20243,
13,
508,
67,
71,
273,
1247,
67,
2080,
67,
3168,
12,
529,
13,
775,
30,
284,
273,
1696,
12,
529,
67,
71,
16,
296,
86,
6134,
1335,
8340,
30,
1172,
2668,
4515,
1696,
2187,
8480,
12,
529,
67,
71,
3719,
1324,
8146,
67,
701,
273,
284,
18,
896,
12,
24,
13,
13158,
67,
701,
273,
284,
18,
896,
12,
24,
13,
284,
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,
10404,
273,
374,
3988,
273,
374,
309,
2589,
18,
19485,
63,
21,
30,
14542,
309,
2589,
18,
19485,
63,
21,
65,
422,
2400,
90,
4278,
3988,
273,
404,
1327,
2589,
18,
19485,
63,
21,
65,
422,
2400,
87,
4278,
10404,
273,
404,
490,
22247,
273,
1646,
18,
588,
67,
11179,
1435,
309,
486,
10404,
30,
1172,
2668,
7736,
490,
22247,
2076,
2187,
8480,
12,
49,
22247,
3719,
364,
4283,
316,
2589,
18,
803,
30,
775,
30,
1257,
273,
1140,
18,
1098,
1214,
12,
12287,
13,
1335,
1140,
18,
1636,
30,
1172,
2668,
4515,
666,
1867,
2187,
8480,
12,
12287,
3719,
1324,
309,
486,
10404,
30,
1172,
2668,
14294,
2265,
8480,
12,
12287,
3631,
20243,
13,
1257,
2
] |
yes_or_no = raw_input("Sure about ecotype id %s?(y/N)"%ecotype_id)
|
yes_or_no = raw_input("Sure about ecotype id %s?(Y/n)"%ecotype_id)
|
def straightenEcotypeID(self, accID_ls, nativename2tg_ecotypeid_set, ecotypeid2tg_ecotypeid, ecotype_id_set_250k_in_pipeline=None): """ 2009-7-30 find all correct ecotype IDs for entries in accID_ls """ sys.stderr.write("Straightening ecotype id out ...") counter = 0 ecotype_id_ls = [] for original_name in accID_ls: counter += 1 original_name = original_name.strip() original_name = original_name.upper() #2009-7-23 turn into uppercase since nativename2tg_ecotypeid_set has its key all upper-cased. if self.allNumberPattern.match(original_name): #2009-7-23 the original_name is all number. assume it's ecotypeid. ecotype_id = original_name elif original_name in nativename2tg_ecotypeid_set: tg_ecotypeid_set = nativename2tg_ecotypeid_set.get(original_name) if len(tg_ecotypeid_set)>1: if ecotype_id_set_250k_in_pipeline is not None: #2009-7-22 solve the redundancy problem candidate_ecotyepid_ls = [] for ecotype_id in tg_ecotypeid_set: if ecotype_id in ecotype_id_set_250k_in_pipeline: candidate_ecotyepid_ls.append(ecotype_id) if len(candidate_ecotyepid_ls)==1: ecotype_id = candidate_ecotyepid_ls[0] else: ecotype_id = None if ecotype_id is None: #2009-7-22 only do this if the procedure above fails while 1: ecotype_id = raw_input("No %s. Pick one ecotype id from "%counter +repr(list(tg_ecotypeid_set)) + " for %s: "%original_name) yes_or_no = raw_input("Sure about ecotype id %s?(Y/n)"%ecotype_id) if yes_or_no =='n' or yes_or_no=='N' or yes_or_no == 'No' or yes_or_no =='no': pass else: break else: ecotype_id = list(tg_ecotypeid_set)[0] else: choice_instructions = "No %s. Enter ecotypeid for accession %s: "%(counter, original_name) while 1: ecotype_id = raw_input(choice_instructions) yes_or_no = raw_input("Sure about ecotype id %s?(y/N)"%ecotype_id) if yes_or_no =='n' or yes_or_no=='N' or yes_or_no == 'No' or yes_or_no =='no': pass else: break ecotype_id = int(ecotype_id) tg_ecotypeid = ecotypeid2tg_ecotypeid[ecotype_id] ecotype_id_ls.append(tg_ecotypeid) sys.stderr.write("Done.\n") return ecotype_id_ls
|
50dd4dc1c759c3e00ca89c1da2e513f12d2188cc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9645/50dd4dc1c759c3e00ca89c1da2e513f12d2188cc/PutPhenotypeIntoDB.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21251,
275,
23057,
10570,
734,
12,
2890,
16,
4078,
734,
67,
3251,
16,
10535,
837,
339,
22,
88,
75,
67,
557,
10570,
350,
67,
542,
16,
6557,
10570,
350,
22,
88,
75,
67,
557,
10570,
350,
16,
6557,
10570,
67,
350,
67,
542,
67,
26520,
79,
67,
267,
67,
14511,
33,
7036,
4672,
3536,
4044,
29,
17,
27,
17,
5082,
1104,
777,
3434,
6557,
10570,
7115,
364,
3222,
316,
4078,
734,
67,
3251,
3536,
2589,
18,
11241,
18,
2626,
2932,
1585,
19717,
275,
310,
6557,
10570,
612,
596,
1372,
7923,
3895,
273,
374,
6557,
10570,
67,
350,
67,
3251,
273,
5378,
364,
2282,
67,
529,
316,
4078,
734,
67,
3251,
30,
3895,
1011,
404,
2282,
67,
529,
273,
2282,
67,
529,
18,
6406,
1435,
2282,
67,
529,
273,
2282,
67,
529,
18,
5797,
1435,
468,
6976,
29,
17,
27,
17,
4366,
7005,
1368,
18966,
3241,
10535,
837,
339,
22,
88,
75,
67,
557,
10570,
350,
67,
542,
711,
2097,
498,
777,
3854,
17,
3593,
72,
18,
309,
365,
18,
454,
1854,
3234,
18,
1916,
12,
8830,
67,
529,
4672,
202,
7,
6976,
29,
17,
27,
17,
4366,
326,
2282,
67,
529,
353,
777,
1300,
18,
6750,
518,
1807,
6557,
10570,
350,
18,
6557,
10570,
67,
350,
273,
2282,
67,
529,
1327,
2282,
67,
529,
316,
10535,
837,
339,
22,
88,
75,
67,
557,
10570,
350,
67,
542,
30,
18289,
67,
557,
10570,
350,
67,
542,
273,
10535,
837,
339,
22,
88,
75,
67,
557,
10570,
350,
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,
21251,
275,
23057,
10570,
734,
12,
2890,
16,
4078,
734,
67,
3251,
16,
10535,
837,
339,
22,
88,
75,
67,
557,
10570,
350,
67,
542,
16,
6557,
10570,
350,
22,
88,
75,
67,
557,
10570,
350,
16,
6557,
10570,
67,
350,
67,
542,
67,
26520,
79,
67,
267,
67,
14511,
33,
7036,
4672,
3536,
4044,
29,
17,
27,
17,
5082,
1104,
777,
3434,
6557,
10570,
7115,
364,
3222,
316,
4078,
734,
67,
3251,
3536,
2589,
18,
11241,
18,
2626,
2932,
1585,
19717,
275,
310,
6557,
10570,
612,
596,
1372,
7923,
3895,
273,
374,
6557,
10570,
67,
350,
67,
3251,
273,
5378,
364,
2282,
67,
529,
316,
4078,
734,
67,
3251,
30,
3895,
1011,
404,
2282,
67,
529,
273,
2
] |
'parse_configs'
|
'parse_configs' , 'scons_tools' , 'scons_env' ,
|
def __init__(self, name, debug, infosource=None): platform_init = getattr(self, racy.renv.system(), self.platform_not_managed)
|
18b853c4543fc1e6887a4f6f48ef48eae4eec8a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8002/18b853c4543fc1e6887a4f6f48ef48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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
1198,
16,
10626,
552,
33,
7036,
4672,
4072,
67,
2738,
273,
3869,
12,
2890,
16,
767,
2431,
18,
1187,
90,
18,
4299,
9334,
365,
18,
9898,
67,
902,
67,
19360,
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
] |
EXAMPLE:: class ComplexType(BaseNode): _singleChildren = ['foo', 'bar'] binder = DataBinder() binder.registerType('foo', BooleanNode) binder.registerType('bar', NullNode) binder.registerType('baz', ComplexType) obj = binder.parseString('<baz><foo>TRUE</foo><bar>test</bar></baz>') obj.foo == True obj.bar == 'test' EXAMPLE:: binder = DataBinder() class baz(object): pass obj = baz() obj.foo = True obj.bar = 'test' binder.toXml(obj) == '<baz><foo>true</foo><bar>test</bar></baz>'
|
def characters(self, ch): elem = self.stack[-1] elem.characters(ch)
|
730e59e6864efc9ab4db21b0b5931411fe5a4e44 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7631/730e59e6864efc9ab4db21b0b5931411fe5a4e44/api1.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3949,
12,
2890,
16,
462,
4672,
3659,
273,
365,
18,
3772,
18919,
21,
65,
3659,
18,
20558,
12,
343,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
error_status = "500 Dude, this is whack!"
|
error_status = "500 Internal Server Error"
|
def format_date_time(timestamp): year, month, day, hh, mm, ss, wd, y, z = time.gmtime(timestamp) return "%s, %02d %3s %4d %02d:%02d:%02d GMT" % ( _weekdayname[wd], day, _monthname[month], year, hh, mm, ss )
|
6f9030329c0eb9d3aa279b26842efc51a47d96e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/6f9030329c0eb9d3aa279b26842efc51a47d96e0/handlers.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
712,
67,
957,
12,
5508,
4672,
3286,
16,
3138,
16,
2548,
16,
18629,
16,
9740,
16,
5202,
16,
14452,
16,
677,
16,
998,
273,
813,
18,
75,
10838,
12,
5508,
13,
327,
2213,
87,
16,
738,
3103,
72,
738,
23,
87,
738,
24,
72,
738,
3103,
72,
5319,
3103,
72,
5319,
3103,
72,
21706,
6,
738,
261,
389,
10741,
2881,
529,
63,
3623,
6487,
2548,
16,
389,
7496,
529,
63,
7496,
6487,
3286,
16,
18629,
16,
9740,
16,
5202,
262,
565,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
712,
67,
957,
12,
5508,
4672,
3286,
16,
3138,
16,
2548,
16,
18629,
16,
9740,
16,
5202,
16,
14452,
16,
677,
16,
998,
273,
813,
18,
75,
10838,
12,
5508,
13,
327,
2213,
87,
16,
738,
3103,
72,
738,
23,
87,
738,
24,
72,
738,
3103,
72,
5319,
3103,
72,
5319,
3103,
72,
21706,
6,
738,
261,
389,
10741,
2881,
529,
63,
3623,
6487,
2548,
16,
389,
7496,
529,
63,
7496,
6487,
3286,
16,
18629,
16,
9740,
16,
5202,
262,
565,
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
] |
self.out = []
|
self.push_output_collector([])
|
def visit_header(self, node): self.out = [] self.out.append(r'\newcommand{\DUheader}{')
|
d1a332cc00a1b10df4c2b8fa6efdd3ca79dbf763 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1278/d1a332cc00a1b10df4c2b8fa6efdd3ca79dbf763/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
3374,
12,
2890,
16,
756,
4672,
365,
18,
6206,
67,
2844,
67,
21356,
3816,
5717,
365,
18,
659,
18,
6923,
12,
86,
8314,
2704,
3076,
23241,
16214,
3374,
8637,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
3374,
12,
2890,
16,
756,
4672,
365,
18,
6206,
67,
2844,
67,
21356,
3816,
5717,
365,
18,
659,
18,
6923,
12,
86,
8314,
2704,
3076,
23241,
16214,
3374,
8637,
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
] |
case_sensitive=False, forward=True, next=True):
|
case_sensitive=False, forward=True, next=False):
|
def replace(self, text, replace_text, case_sensitive=False, forward=True, next=True): """Replaces next occurrence of 'text' with 'replace_text'"""
|
af072e0c1d96c3ffc3bc35f267880303e08e3b87 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4738/af072e0c1d96c3ffc3bc35f267880303e08e3b87/__init__.py
|
[
1,
8585,
326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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
12,
2890,
16,
977,
16,
1453,
67,
955,
16,
648,
67,
23481,
33,
8381,
16,
5104,
33,
5510,
16,
1024,
33,
8381,
4672,
3536,
15189,
1024,
13083,
434,
296,
955,
11,
598,
296,
2079,
67,
955,
11,
8395,
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
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.