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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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,
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,
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,
2... |
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(hq... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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,
293... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
293... |
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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... |
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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... |
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.... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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._exe... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
... |
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 i... | 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... | 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,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
8... |
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 ... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
, 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 ... | 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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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... |
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 e... | 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,
308... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
308... |
('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.jo... | 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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,... |
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_v... | 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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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... |
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 i... | 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,
90... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
90... |
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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... |
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._co... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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,
... |
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... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
%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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,... |
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/ChannelSelection.py | [
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,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
-1... |
'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,... | [
1,
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... | [
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,
... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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,
-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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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,
... |
([-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... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
... |
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, fl... | 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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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,
... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
... | |
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 do... | 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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
[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 polutonik... | 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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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... |
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 a... | 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,
... | [
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... | [
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... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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,
... |
"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 "+\ "p... | 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,
289... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
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,
289... |
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 genera... | 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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
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... |
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(pr... | 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,
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,
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,
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... | 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,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1... |
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: pro... | 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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,... |
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(... | 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 d... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
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,
... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
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,
-10... |
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,
2611... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
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,
2611... | |
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,
3536,
1189,
2000,
279,
6864,
2477,
434,
326,
3152,
316,
279,
667,
578,
1605,
12123,
3152,
273,
365,
6315,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,... |
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): | b4e84192bb541f0d5a652fdb5c2650c60c50ca3a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/b4e84192bb541f0d5a652fdb5c2650c60c50ca3a/crm_claim_report.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
4422,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
-10... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
-100,
-1... |
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... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
... |
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... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
[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,
4672,
436,
8395,
2000,
521,
87,
410,
3148,
628,
333,
4834,
7411,
930,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
-... |
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,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
1... | |
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 m... | 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,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
63... |
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,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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,
1... |
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: ... | 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,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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,
3... |
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=EnsembleTer... | 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,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
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,
3... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
-1... |
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.') se... | 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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,... |
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,
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,
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,
2... |
""" 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,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
1... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
... |
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,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
79... | |
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,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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,
4... |
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("-")... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
... |
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 = 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 ... | 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 +=... | 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,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
1... |
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 no... | 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,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
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,
1... |
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,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
7... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
... | |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
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,
... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
-1... |
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, ... | 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 =... | 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,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
3... |
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_d... | 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,
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,
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,
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 NMClientE... | 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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,... |
"""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 t... | 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,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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,
... | |
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: prin... | 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,
68... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
68... |
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,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
3... |
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,... |
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.InvalidROSPkgExcept... | 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,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
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,
79... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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,... |
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,
6011,
4672,
309,
16046,
6011,
13332,
16046,
6011,
1435,
6315,
3355,
67,
5387,
1435,
282,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,... |
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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... |
'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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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,
... |
"""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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
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,
... |
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,
630... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
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,
630... |
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,... | 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,
354... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
354... | |
{'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,
... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2498,
12,
2890,
4672,
468,
1842,
716,
1520,
1677,
854,
5622,
2074,
2,
-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" % ... | 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,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
1... |
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,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
23... |
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14876,
12,
2890,
16,
284,
4672,
3536,
8155,
326,
18825,
395,
2975,
15013,
434,
333,
16991,
471,
284,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
``(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.* EXAMPL... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
... |
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_di... | 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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
-... | |
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()) r... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
... |
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_ser... | 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,
1008... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
1008... |
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(dirnam... | 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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,... |
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: co... | 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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
'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/18b853c4543fc1e6887a4f6f48ef48eae4eec8a7/libext.py | [
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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... |
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' ... | 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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3949,
12,
2890,
16,
462,
4672,
3659,
273,
365,
18,
3772,
18919,
21,
65,
3659,
18,
20558,
12,
343,
13,
2,
-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,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
1... |
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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... |
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,
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,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
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,
6... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.