rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
self.contents['Package'][pkg.get('name')] = {} if pkg.getchildren(): self.contents['Package'][pkg.get('name')]['__children__'] \ | if pkg.get('name') != None: self.contents['Package'][pkg.get('name')] = {} if pkg.getchildren(): self.contents['Package'][pkg.get('name')]['__children__'] \ | def __init__(self, data, pdict, parent=None): # copy local attributes to all child nodes if no local attribute exists if not pdict.has_key('Package'): pdict['Package'] = [] for child in data.getchildren(): for attr in [key for key in data.attrib.keys() \ if key != 'name' and not child.attrib.has_key(key)]: try: child.s... | 3f50ca7c85a6bfae26588c228467db86095c9a08 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11867/3f50ca7c85a6bfae26588c228467db86095c9a08/Pkgmgr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
501,
16,
293,
1576,
16,
982,
33,
7036,
4672,
468,
1610,
1191,
1677,
358,
777,
1151,
2199,
309,
1158,
1191,
1566,
1704,
309,
486,
293,
1576,
18,
5332,
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,
1001,
2738,
972,
12,
2890,
16,
501,
16,
293,
1576,
16,
982,
33,
7036,
4672,
468,
1610,
1191,
1677,
358,
777,
1151,
2199,
309,
1158,
1191,
1566,
1704,
309,
486,
293,
1576,
18,
5332,
67,... |
"""Reverses refs list""" | def _readings(self, trail=[]): """Reverses trail list""" for drs in (ancestor for ancestor in ReverseIterator(trail) if isinstance(ancestor, DRS)): """Reverses refs list""" search_list = drs.refs if self.argument.variable in drs.refs: search_list = drs.refs[:drs.refs.index(self.argument.variable)] for ref in ReverseI... | 68786db639f39079f41b13361b86c9c6d9005077 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2768/68786db639f39079f41b13361b86c9c6d9005077/temporaldrt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
899,
12,
2890,
16,
15569,
33,
8526,
4672,
3536,
426,
2496,
281,
15569,
666,
8395,
364,
5081,
87,
316,
261,
28798,
364,
9731,
316,
18469,
3198,
12,
15565,
13,
309,
1549,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
899,
12,
2890,
16,
15569,
33,
8526,
4672,
3536,
426,
2496,
281,
15569,
666,
8395,
364,
5081,
87,
316,
261,
28798,
364,
9731,
316,
18469,
3198,
12,
15565,
13,
309,
1549,
12,
2... | |
def rmSpace(item,num): """ removes the spaces from items in a list """ for pos in item[:num]: pos = pos.replace(' ','') | def apTag(devices): """ Create a ap dictionary with tags of the data type on an incoming list """ dict = {} for entry in devices: ap = {} string_list = entry.split(',') #entry = entry.replace(' ','') #sorry for the clusterfuck but i swear it all makse sense len(string_list) if len(string_list) == 15: ap = {"bssid":stri... | b61278edc3c7c2774608f0b6c7dda3de78129718 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3861/b61278edc3c7c2774608f0b6c7dda3de78129718/airgraph-ng.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
513,
1805,
12,
12506,
4672,
3536,
1788,
279,
513,
3880,
598,
2342,
434,
326,
501,
618,
603,
392,
6935,
666,
3536,
2065,
273,
2618,
364,
1241,
316,
7166,
30,
513,
273,
2618,
533,
67,
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,
513,
1805,
12,
12506,
4672,
3536,
1788,
279,
513,
3880,
598,
2342,
434,
326,
501,
618,
603,
392,
6935,
666,
3536,
2065,
273,
2618,
364,
1241,
316,
7166,
30,
513,
273,
2618,
533,
67,
10... | |
asyncObj=null | var asyncObj; | def async_lib(): s = r""" | a3ff91a3ace186cba86f20991b852556b86c646a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/a3ff91a3ace186cba86f20991b852556b86c646a/js.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4326,
67,
2941,
13332,
272,
273,
436,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
4326,
67,
2941,
13332,
272,
273,
436,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
precision=(lat_length+lon_length)/5 | precision = int((lat_length+lon_length)/5) | def _encode_i2c(lat,lon,lat_length,lon_length): precision=(lat_length+lon_length)/5 if lat_length < lon_length: a = lon b = lat else: a = lat b = lon boost = (0,1,4,5,16,17,20,21) ret = '' for i in range(precision): ret+=_base32[(boost[a&7]+(boost[b&3]<<1))&0x1F] t = a>>3 a = b>>2 b = t return ret[::-1] | 163dcda42c877d28f99f5343c4b9677abf498c37 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5062/163dcda42c877d28f99f5343c4b9677abf498c37/geohash.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3015,
67,
77,
22,
71,
12,
4801,
16,
9379,
16,
4801,
67,
2469,
16,
9379,
67,
2469,
4672,
6039,
273,
509,
12443,
4801,
67,
2469,
15,
9379,
67,
2469,
13176,
25,
13,
309,
2516,
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,
3015,
67,
77,
22,
71,
12,
4801,
16,
9379,
16,
4801,
67,
2469,
16,
9379,
67,
2469,
4672,
6039,
273,
509,
12443,
4801,
67,
2469,
15,
9379,
67,
2469,
13176,
25,
13,
309,
2516,
67,
... |
"""Factory method for use as a decorator.""" def wrapper(fun): | """Factory method for use as a decorator (only suitable for Python view code). """ def view_wrapped(fun): | def define(cls, design, name=None, language='python', wrapper=DEFAULT, **defaults): """Factory method for use as a decorator.""" def wrapper(fun): return cls(design, fun, language=language, wrapper=wrapper, **defaults) return wrapper | abd0cdf1bfd1a8bd765e42303fcbab4cabb09fe0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9373/abd0cdf1bfd1a8bd765e42303fcbab4cabb09fe0/schema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4426,
12,
6429,
16,
8281,
16,
508,
33,
7036,
16,
2653,
2218,
8103,
2187,
4053,
33,
5280,
16,
2826,
7606,
4672,
3536,
1733,
707,
364,
999,
487,
279,
7367,
261,
3700,
10631,
364,
6600,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4426,
12,
6429,
16,
8281,
16,
508,
33,
7036,
16,
2653,
2218,
8103,
2187,
4053,
33,
5280,
16,
2826,
7606,
4672,
3536,
1733,
707,
364,
999,
487,
279,
7367,
261,
3700,
10631,
364,
6600,
1... |
name = searchmap.get('name', None) | fullname = searchmap.get('fullname', None) | def searchForMembers(self, REQUEST=None, **kw): """Hacked up version of Plone searchForMembers. | ba2a0a101753ab88a512fedb0e9fbbed423ce7cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12230/ba2a0a101753ab88a512fedb0e9fbbed423ce7cb/membership.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
1290,
6918,
12,
2890,
16,
12492,
33,
7036,
16,
2826,
9987,
4672,
3536,
44,
484,
329,
731,
1177,
434,
3008,
476,
1623,
1290,
6918,
18,
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,
1623,
1290,
6918,
12,
2890,
16,
12492,
33,
7036,
16,
2826,
9987,
4672,
3536,
44,
484,
329,
731,
1177,
434,
3008,
476,
1623,
1290,
6918,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
this = apply(_quickfix.new_SettlCurrAmt, args) | this = _quickfix.new_SettlCurrAmt(*args) | def __init__(self, *args): this = apply(_quickfix.new_SettlCurrAmt, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
694,
6172,
20143,
31787,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
694,
6172,
20143,
31787,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,... |
self.__block.release() | else: deadline = _time() + timeout while not self.__stopped: delay = deadline - _time() if delay <= 0: if __debug__: self._note("%s.join(): timed out", self) break self.__block.wait(delay) else: if __debug__: self._note("%s.join(): thread stopped", self) finally: self.__block.release() | def join(self, timeout=None): assert self.__initialized, "Thread.__init__() not called" assert self.__started, "cannot join thread before it is started" assert self is not currentThread(), "cannot join current thread" if __debug__: if not self.__stopped: self._note("%s.join(): waiting until thread stops", self) self.__... | c66948eac73f4d518ea76bb4ea45f37eaf5744cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c66948eac73f4d518ea76bb4ea45f37eaf5744cc/threading.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1233,
12,
2890,
16,
2021,
33,
7036,
4672,
1815,
365,
16186,
13227,
16,
315,
3830,
16186,
2738,
972,
1435,
486,
2566,
6,
1815,
365,
16186,
14561,
16,
315,
12892,
1233,
2650,
1865,
518,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1233,
12,
2890,
16,
2021,
33,
7036,
4672,
1815,
365,
16186,
13227,
16,
315,
3830,
16186,
2738,
972,
1435,
486,
2566,
6,
1815,
365,
16186,
14561,
16,
315,
12892,
1233,
2650,
1865,
518,
35... |
self.fixconfig() | self.fixconfig(section=section) | def setconfig(self, section, name, value, overlay=True): if overlay: self._ocfg.set(section, name, value) self._tcfg.set(section, name, value) self._ucfg.set(section, name, value) self.fixconfig() | ce295c475924dbee95e9f94ceec9415ee7b4ddc0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/ce295c475924dbee95e9f94ceec9415ee7b4ddc0/ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
1425,
12,
2890,
16,
2442,
16,
508,
16,
460,
16,
9218,
33,
5510,
4672,
309,
9218,
30,
365,
6315,
504,
2137,
18,
542,
12,
3464,
16,
508,
16,
460,
13,
365,
6315,
5111,
2137,
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,
444,
1425,
12,
2890,
16,
2442,
16,
508,
16,
460,
16,
9218,
33,
5510,
4672,
309,
9218,
30,
365,
6315,
504,
2137,
18,
542,
12,
3464,
16,
508,
16,
460,
13,
365,
6315,
5111,
2137,
18,
... |
if len(bits) == 1 or remaining_space <= 0: break | break | def split(self, canvas, w, h): chunks_that_fit = [] remaining_chunks = list(self.chunks) remaining_space = w while remaining_chunks: chunk = remaining_chunks.pop(0) cw, ch = chunk.size(canvas, w, h) if cw <= remaining_space: chunks_that_fit.append(chunk) remaining_space -= cw else: bits = chunk.split(canvas, w, h, rema... | 790919f7308e8c301aafb7376d47478693c19a35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7434/790919f7308e8c301aafb7376d47478693c19a35/mgp2pdf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
12,
2890,
16,
5953,
16,
341,
16,
366,
4672,
6055,
67,
19056,
67,
7216,
273,
5378,
4463,
67,
14691,
273,
666,
12,
2890,
18,
14691,
13,
4463,
67,
2981,
273,
341,
1323,
4463,
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,
1416,
12,
2890,
16,
5953,
16,
341,
16,
366,
4672,
6055,
67,
19056,
67,
7216,
273,
5378,
4463,
67,
14691,
273,
666,
12,
2890,
18,
14691,
13,
4463,
67,
2981,
273,
341,
1323,
4463,
67,
... |
for line in html.split('<br />'): yield line.replace(' ', ' ') | return [line.replace(' ', ' ') for line in html.split('<br />')] | def render(self, context, mimetype, content, filename=None, rev=None): # -n to ignore php.ini so we're using default colors cmdline = '%s -sn' % self.path self.env.log.debug("PHP command line: %s" % cmdline) | db62e6886c2be1c8202e482b98ab2facbbe24c49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/db62e6886c2be1c8202e482b98ab2facbbe24c49/php.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
819,
16,
12595,
16,
913,
16,
1544,
33,
7036,
16,
5588,
33,
7036,
4672,
468,
300,
82,
358,
2305,
3863,
18,
8767,
1427,
732,
4565,
1450,
805,
5740,
22877,
273,
1995,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1743,
12,
2890,
16,
819,
16,
12595,
16,
913,
16,
1544,
33,
7036,
16,
5588,
33,
7036,
4672,
468,
300,
82,
358,
2305,
3863,
18,
8767,
1427,
732,
4565,
1450,
805,
5740,
22877,
273,
1995,
... |
INPUT:: | INPUT: | def BubbleSortGraph(self,n): r''' Returns the bubble sort graph, B(n). The vertices of the bubble sort graph are the set of permutations on n symbols. Two vertices are adjacent if one can be obtained from the other by swapping the labels in the ith and (i+1)th position for `1 \leq i \leq n-1`. INPUT:: - ``n`` EXAM... | e2ee6e2dee950e2eed3f8ce7082257fc1b9ee75d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/e2ee6e2dee950e2eed3f8ce7082257fc1b9ee75d/graph_generators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
605,
14787,
4416,
4137,
12,
2890,
16,
82,
4672,
436,
26418,
2860,
326,
21577,
1524,
2667,
16,
605,
12,
82,
2934,
225,
1021,
6928,
434,
326,
21577,
1524,
2667,
854,
326,
444,
434,
26468,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
605,
14787,
4416,
4137,
12,
2890,
16,
82,
4672,
436,
26418,
2860,
326,
21577,
1524,
2667,
16,
605,
12,
82,
2934,
225,
1021,
6928,
434,
326,
21577,
1524,
2667,
854,
326,
444,
434,
26468,
... |
return _BINARY[platform]() | return _BINARY[sys.platform]() | def chrome_exe(): return _BINARY[platform]() | e474f441b10a13d9a67358685e0a01f8158c57a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/215/e474f441b10a13d9a67358685e0a01f8158c57a7/driver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18167,
67,
14880,
13332,
327,
389,
16813,
63,
9499,
18,
9898,
65,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18167,
67,
14880,
13332,
327,
389,
16813,
63,
9499,
18,
9898,
65,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
root_dir=output_dir) | root_dir=self.bdist_dir) | def run (self): | 54c7c4e402eaf3e8a11e2e86de977bcf04f3870e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/54c7c4e402eaf3e8a11e2e86de977bcf04f3870e/bdist_dumb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
metadata = self.build_metadata(users, owner=None, **{'dc:title': {'en': u'Users'}}) cache['users.metadata'] = metadata | cache['users.metadata'] = self.build_metadata(users, owner=None, **{'dc:title': {'en': u'Users'}}) | def new(self, username=None, password=None): # Call the parent WebSite.new(self) | b3122e167f944423a1924cf3fef16ed3adece2be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/b3122e167f944423a1924cf3fef16ed3adece2be/root.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
16,
2718,
33,
7036,
16,
2201,
33,
7036,
4672,
468,
3049,
326,
982,
2999,
4956,
18,
2704,
12,
2890,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
16,
2718,
33,
7036,
16,
2201,
33,
7036,
4672,
468,
3049,
326,
982,
2999,
4956,
18,
2704,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
def __getstate__(self): return self.__dict__.copy() | def __reduce__(self): return (self.__class__,(),self.__dict__.copy(),) | def __getstate__(self): return self.__dict__.copy() | 54b2eb28769451afe00c5752cc4e71ab0301717e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5578/54b2eb28769451afe00c5752cc4e71ab0301717e/errors.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
2019,
972,
12,
2890,
4672,
327,
365,
16186,
1576,
25648,
3530,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
2019,
972,
12,
2890,
4672,
327,
365,
16186,
1576,
25648,
3530,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.returnResult(DV.youtube_service.GetYouTubeVideoFeed(query[1])) | self.returnResult(DV.youtube_service.GetYouTubeVideoFeed(DamnUnicode(query[1]))) | def run(self): while self.queries is None: time.sleep(.025) try: self.parent.loadlevel += 1 except: pass # Window might have been closed while len(self.queries): query = self.queries[0] if query[0] == 'feed': self.returnResult(DV.youtube_service.GetYouTubeVideoFeed(query[1])) elif query[0] == 'image': http = DamnURLOpe... | 777b51966c405a4125499e87b9c901d2e689c9b0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11142/777b51966c405a4125499e87b9c901d2e689c9b0/DamnVid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1323,
365,
18,
13748,
353,
599,
30,
813,
18,
19607,
10604,
20,
2947,
13,
775,
30,
365,
18,
2938,
18,
945,
2815,
1011,
404,
1335,
30,
1342,
468,
6076,
4825,
1240,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1323,
365,
18,
13748,
353,
599,
30,
813,
18,
19607,
10604,
20,
2947,
13,
775,
30,
365,
18,
2938,
18,
945,
2815,
1011,
404,
1335,
30,
1342,
468,
6076,
4825,
1240,
... |
mentry.msgstr = mentry.msgstr.replace('\\n', '').lstrip() + '\n' | mentry.msgstr = mentry.msgstr.replace('\\n', '').lstrip() | def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: return 0 | cdea390b7214d8a3b58120248b62da616fc51152 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9209/cdea390b7214d8a3b58120248b62da616fc51152/polib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9411,
24899,
2890,
16,
1308,
4672,
309,
389,
2890,
18,
3576,
350,
405,
1308,
18,
3576,
350,
30,
327,
404,
1327,
389,
2890,
18,
3576,
350,
411,
1308,
18,
3576,
350,
30,
327,
300,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9411,
24899,
2890,
16,
1308,
4672,
309,
389,
2890,
18,
3576,
350,
405,
1308,
18,
3576,
350,
30,
327,
404,
1327,
389,
2890,
18,
3576,
350,
411,
1308,
18,
3576,
350,
30,
327,
300,
21,
... |
if env.prefs[displayPOVAxis_prefs_key]: drawPointOfViewAxes(self.o.scale, -self.o.pov) | #the solid origin is hidden. See def standard_repaint_0 in GLPane.py | 5eaea8b40aadbfa299e7a794a13a93e77933a53a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11221/5eaea8b40aadbfa299e7a794a13a93e77933a53a/GraphicsMode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
5787,
18035,
4026,
353,
5949,
18,
2164,
1652,
4529,
67,
14462,
1598,
67,
20,
316,
10252,
8485,
18,
2074,
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,
468,
5787,
18035,
4026,
353,
5949,
18,
2164,
1652,
4529,
67,
14462,
1598,
67,
20,
316,
10252,
8485,
18,
2074,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
word = re.sub('(?i)(http://www.youtube.com/watch\?v\=)(.*)($|\s)', '<div class="markup-youtube"><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/\g<2>=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/\g<2>&hl=en&fs=1... | word = re.sub('(?i)(http://)(.+?)(youtube.com/watch\?v\=)(.*)($|\s)', '<div class="markup-youtube"><object width="425" height="344"><param name="movie" value="http://\g<2>youtube.com/v/\g<4>' '&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://\g<2>youtube.com/v/\g<4>&... | def markup_youtube(word, substituted, substituted_words): """ Markup youtube URIs. """ if substituted: return word if word in substituted_words: return word word = re.sub('(?i)(http://www.youtube.com/watch\?v\=)(.*)($|\s)', '<div class="markup-youtube"><object width="425" height="344"><param name="movie" value="http... | 509a65dea636d908d469d7bd92a3fa13240508bf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6274/509a65dea636d908d469d7bd92a3fa13240508bf/emailbody.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9813,
67,
31749,
12,
1095,
16,
7461,
4817,
16,
7461,
4817,
67,
3753,
4672,
3536,
26420,
677,
21105,
24565,
18,
225,
3536,
309,
7461,
4817,
30,
327,
2076,
225,
309,
2076,
316,
7461,
4817,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9813,
67,
31749,
12,
1095,
16,
7461,
4817,
16,
7461,
4817,
67,
3753,
4672,
3536,
26420,
677,
21105,
24565,
18,
225,
3536,
309,
7461,
4817,
30,
327,
2076,
225,
309,
2076,
316,
7461,
4817,... |
wc = rpm.mpw(1) | wc = mpw(1) | def test02_CarryBorrow(self): if verbose: print '\n', '-=' * 30 print "Running %s.test02_CarryBorrow..." % \ self.__class__.__name__ | 02c21bd38bc4c3cd104df46a866a86ecb963492c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1057/02c21bd38bc4c3cd104df46a866a86ecb963492c/test_methods.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3103,
67,
16321,
1176,
38,
15318,
12,
2890,
4672,
309,
3988,
30,
1172,
2337,
82,
2187,
2400,
2218,
380,
5196,
1172,
315,
7051,
738,
87,
18,
3813,
3103,
67,
16321,
1176,
38,
15318,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3103,
67,
16321,
1176,
38,
15318,
12,
2890,
4672,
309,
3988,
30,
1172,
2337,
82,
2187,
2400,
2218,
380,
5196,
1172,
315,
7051,
738,
87,
18,
3813,
3103,
67,
16321,
1176,
38,
15318,
... |
def __init__(self, ct, base_ring=ZZ, prefix=None, cache=False): self.cartan_type = cartan_type.CartanType(ct) | ct = cartan_type.CartanType(ct) return cache_wcr(ct, base_ring=base_ring, prefix=prefix, cache=cache) class WeylCharacterRing_class(Algebra): def __init__(self, ct, base_ring, prefix, cache): """ EXAMPLES: sage: R = WeylCharacterRing(['A',3]) sage: R == loads(dumps(R)) True """ sage.structure.parent_base.ParentWithBas... | def __init__(self, ct, base_ring=ZZ, prefix=None, cache=False): self.cartan_type = cartan_type.CartanType(ct) self._base_ring = base_ring self._lattice = RootSystem(self.cartan_type).ambient_lattice() self._origin = tuple(self._lattice._free_module(0)) self.VS = VectorSpace(QQ, self._lattice.n) if prefix == None: prefi... | 0a30ee9b10542e4dc66149f6ffe87504cb679b84 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0a30ee9b10542e4dc66149f6ffe87504cb679b84/weyl_characters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5691,
273,
7035,
304,
67,
723,
18,
13006,
304,
559,
12,
299,
13,
327,
1247,
67,
91,
3353,
12,
299,
16,
1026,
67,
8022,
33,
1969,
67,
8022,
16,
1633,
33,
3239,
16,
1247,
33,
2493,
13,
225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5691,
273,
7035,
304,
67,
723,
18,
13006,
304,
559,
12,
299,
13,
327,
1247,
67,
91,
3353,
12,
299,
16,
1026,
67,
8022,
33,
1969,
67,
8022,
16,
1633,
33,
3239,
16,
1247,
33,
2493,
13,
225... |
imap = IMAPSession(server, port, imapDebug, doExpunge) | def run(): global imap try: opts, args = getopt.getopt(sys.argv[1:], 'hbtcvpl:e:i:d:D:') except getopt.error, msg: print >>sys.stderr, str(msg) + '\n\n' + __doc__ sys.exit() bdbname = options["pop3proxy", "persistent_storage_file"] useDBM = options["pop3proxy", "persistent_use_database"] doTrain = False doClassify = F... | 73b67ae1162a12a60c76f80345bf121187aeff76 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/73b67ae1162a12a60c76f80345bf121187aeff76/imapfilter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13332,
2552,
20226,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
76,
70,
5111,
90,
412,
30,
73,
30,
77,
30,
72,
30,
40,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13332,
2552,
20226,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
76,
70,
5111,
90,
412,
30,
73,
30,
77,
30,
72,
30,
40,
... | |
verbose = 1 | if "-q" not in sys.argv: verbose = 1 | def NullThreadFunc(): pass | 3bf4d00907dec9e1c36a74a8c8bd7df657ca62a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/3bf4d00907dec9e1c36a74a8c8bd7df657ca62a2/testPyComTest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4112,
3830,
2622,
13332,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4112,
3830,
2622,
13332,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def read(self, wtd): | def read(self, totalwtd): | def read(self, wtd): | 685e16d7d64a75a3703f25888d3f192ad5c25f70 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/685e16d7d64a75a3703f25888d3f192ad5c25f70/binhex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
341,
4465,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
341,
4465,
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,... |
"ACE_wrappers", ["TAO", "autom4te.cache"]) | "ACE_wrappers", ["TAO"]) | def package (stage_dir, package_dir, decorator): """ Packages ACE, ACE+TAO, and ACE+TAO+CIAO releases of current staged tree, with decorator appended to the name of the archive. """ from os.path import join from os import remove from os import chdir chdir (stage_dir) text_files = list () bin_files = list () # Erase ... | d3d8857ed57fbd80287a0136fb46f48193b91ebc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5660/d3d8857ed57fbd80287a0136fb46f48193b91ebc/make_release.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2181,
261,
12869,
67,
1214,
16,
2181,
67,
1214,
16,
7367,
4672,
3536,
7930,
1023,
432,
1441,
16,
432,
1441,
15,
9833,
51,
16,
471,
432,
1441,
15,
9833,
51,
15,
7266,
20463,
14824,
434,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2181,
261,
12869,
67,
1214,
16,
2181,
67,
1214,
16,
7367,
4672,
3536,
7930,
1023,
432,
1441,
16,
432,
1441,
15,
9833,
51,
16,
471,
432,
1441,
15,
9833,
51,
15,
7266,
20463,
14824,
434,... |
self.root_directory = root_directory if root_directory is not None: self.root_directory = self.normpath(self.root_directory) else: self.root_directory = self.directory | self.root_directory = self.normpath(root_directory or directory) | def __init__(self, directory, root_directory=None, cache_max_age=None): self.directory = self.normpath(directory) self.root_directory = root_directory if root_directory is not None: self.root_directory = self.normpath(self.root_directory) else: self.root_directory = self.directory self.cache_max_age = cache_max_age | 7984286e7dac147f479b2fe183cfe845cc621cfb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2097/7984286e7dac147f479b2fe183cfe845cc621cfb/urlparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1867,
16,
1365,
67,
5149,
33,
7036,
16,
1247,
67,
1896,
67,
410,
33,
7036,
4672,
365,
18,
5149,
273,
365,
18,
7959,
803,
12,
5149,
13,
365,
18,
3085,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1867,
16,
1365,
67,
5149,
33,
7036,
16,
1247,
67,
1896,
67,
410,
33,
7036,
4672,
365,
18,
5149,
273,
365,
18,
7959,
803,
12,
5149,
13,
365,
18,
3085,
... |
def printdiff(self, repo, node1, node2=None, files=None, | def printdiff(self, repo, diffopts, node1, node2=None, files=None, | def printdiff(self, repo, node1, node2=None, files=None, fp=None, changes=None, opts={}): stat = opts.get('stat') if stat: opts['unified'] = '0' | 55bccdfea016e52d8b3428d6a781f922638a6b09 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/55bccdfea016e52d8b3428d6a781f922638a6b09/mq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
5413,
12,
2890,
16,
3538,
16,
1901,
617,
1092,
16,
756,
21,
16,
756,
22,
33,
7036,
16,
1390,
33,
7036,
16,
4253,
33,
7036,
16,
3478,
33,
7036,
16,
1500,
12938,
4672,
610,
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,
1172,
5413,
12,
2890,
16,
3538,
16,
1901,
617,
1092,
16,
756,
21,
16,
756,
22,
33,
7036,
16,
1390,
33,
7036,
16,
4253,
33,
7036,
16,
3478,
33,
7036,
16,
1500,
12938,
4672,
610,
273,
... |
def Ei(z): | def Ei(z, prec=None): | def Ei(z): """ Return the value of the complex exponential integral Ei(z) at a complex number z. .. warning:: Calculations are done to double precision, and the output is a complex double element, no matter how big the precision of the input is. EXAMPLES:: sage: Ei(10) 2492.22897624 sage: Ei(I) 0.337403922901 + 2.5... | 0016d905ae9942ddf6d29c45616a626159148357 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/0016d905ae9942ddf6d29c45616a626159148357/transcendental.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
512,
77,
12,
94,
16,
13382,
33,
7036,
4672,
3536,
2000,
326,
460,
434,
326,
7233,
21774,
21423,
512,
77,
12,
94,
13,
622,
279,
7233,
1300,
998,
18,
225,
6116,
3436,
2866,
225,
15994,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
512,
77,
12,
94,
16,
13382,
33,
7036,
4672,
3536,
2000,
326,
460,
434,
326,
7233,
21774,
21423,
512,
77,
12,
94,
13,
622,
279,
7233,
1300,
998,
18,
225,
6116,
3436,
2866,
225,
15994,
... |
path = get_path(self.sip_address, application, node, **kwargs) | path = get_path('sip:'+self.sip_address, application, node, **kwargs) | def _get(self, application, node=None, etag=None, headers=None, **kwargs): headers = self._update_headers(headers) path = get_path(self.sip_address, application, node, **kwargs) return self.con.request('GET', path, headers=headers, etag=etag) | 430ba67d7d1513ec27bfae76c4a6cf75392dd2d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3443/430ba67d7d1513ec27bfae76c4a6cf75392dd2d3/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
12,
2890,
16,
2521,
16,
756,
33,
7036,
16,
13655,
33,
7036,
16,
1607,
33,
7036,
16,
2826,
4333,
4672,
1607,
273,
365,
6315,
2725,
67,
2485,
12,
2485,
13,
589,
273,
336,
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,
588,
12,
2890,
16,
2521,
16,
756,
33,
7036,
16,
13655,
33,
7036,
16,
1607,
33,
7036,
16,
2826,
4333,
4672,
1607,
273,
365,
6315,
2725,
67,
2485,
12,
2485,
13,
589,
273,
336,
67,... |
Note: This method is automatically invoked by __init__, if a host is specified during instantiation. | Note: This method is automatically invoked by __init__, if a host is specified during instantiation. | def connect(self, host='localhost', port = 0): """Connect to a host on a given port. | de1c0a3c6cefc0960617175f1a9491221d9defa6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/de1c0a3c6cefc0960617175f1a9491221d9defa6/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
1479,
2218,
13014,
2187,
1756,
273,
374,
4672,
3536,
5215,
358,
279,
1479,
603,
279,
864,
1756,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
1479,
2218,
13014,
2187,
1756,
273,
374,
4672,
3536,
5215,
358,
279,
1479,
603,
279,
864,
1756,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
print "pos%d:" % i, comp.norm_2(x-sim_x) print "vel%d:" % i, comp.norm_2(v-sim_v) print "vel%d:..." % i, v, sim_v | if False: print "particle %d" % i print "pos:", comp.norm_2(x-sim_x)/comp.norm_2(x) print "vel:", comp.norm_2(v-sim_v)/comp.norm_2(v) print "force:", comp.norm_2(f-sim_f)/comp.norm_2(f) print "vel:", v, sim_v print "force%d:..." % i, f, sim_f print "forces%d:..." % i, el_sim_f, mag_sim_f | def check_result(): from hedge.tools import cross | 4e0642717da58c59dedfc3098f1fadd944e86d35 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12869/4e0642717da58c59dedfc3098f1fadd944e86d35/static-field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
2088,
13332,
628,
366,
7126,
18,
6642,
1930,
6828,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
866,
67,
2088,
13332,
628,
366,
7126,
18,
6642,
1930,
6828,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
print body | def _get_config(self, id, resource, config_class): uri = '/%s/%s/%s/config' % (self.Version, resource, id) response = self.make_request('GET', uri) body = response.read() print body if response.status >= 300: raise CloudFrontServerError(response.status, response.reason, body) d = config_class(connection=self) d.etag = ... | 1aec0ada70443e518d4e082e6c0f324adf202320 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/1aec0ada70443e518d4e082e6c0f324adf202320/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1425,
12,
2890,
16,
612,
16,
1058,
16,
642,
67,
1106,
4672,
2003,
273,
27140,
87,
5258,
87,
5258,
87,
19,
1425,
11,
738,
261,
2890,
18,
1444,
16,
1058,
16,
612,
13,
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,
389,
588,
67,
1425,
12,
2890,
16,
612,
16,
1058,
16,
642,
67,
1106,
4672,
2003,
273,
27140,
87,
5258,
87,
5258,
87,
19,
1425,
11,
738,
261,
2890,
18,
1444,
16,
1058,
16,
612,
13,
7... | |
greader = Greader(self.username, self.password) unread, info_friends, info = greader.refresh() if unread[0] == -1: self.error = True self.specto.logger.log(('%s') % unread[1], "error", self.name) elif unread[0] == 1: | self.unreadMsg = 0 greader = Greader(self.username, self.password, "specto") SID = greader.login() feed_db = greader.get_unread_items(SID) for feed in feed_db: self.unreadMsg += feed.messages if feed.messages > 0 and self.news_info.add(feed): self.actually_changed = True self.newMsg += feed.messages if self.unreadMsg =... | def check(self): """ Check for new news on your greader account. """ try: self.newMsg = 0 greader = Greader(self.username, self.password) unread, info_friends, info = greader.refresh() if unread[0] == -1: self.error = True self.specto.logger.log(('%s') % unread[1], "error", self.name) elif unread[0] == 1:#no unread ite... | 8ed7710d8a2c0b078dbec45ef11229271b0d8791 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10818/8ed7710d8a2c0b078dbec45ef11229271b0d8791/watch_web_greader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
4672,
3536,
2073,
364,
394,
14783,
603,
3433,
314,
10530,
2236,
18,
3536,
775,
30,
365,
18,
2704,
3332,
273,
374,
314,
10530,
273,
611,
10530,
12,
2890,
18,
5053,
16,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
4672,
3536,
2073,
364,
394,
14783,
603,
3433,
314,
10530,
2236,
18,
3536,
775,
30,
365,
18,
2704,
3332,
273,
374,
314,
10530,
273,
611,
10530,
12,
2890,
18,
5053,
16,
36... |
directives += " -C \"TypesConfig " + os.path.join("/etc", "mime.types") + "\"" | directives += " -C \"TypesConfig " + \ os.path.join(android_tree_root, http_conf_path, "mime.types") + "\"" | def main(): if len(sys.argv) < 2: run_cmd = "" else: run_cmd = sys.argv[1] # Setup logging class logging.basicConfig(level=logging.INFO, format='%(message)s') if not run_cmd in ("start", "stop", "restart"): logging.info("illegal argument: " + run_cmd) logging.info("Usage: python run_apache2.py start|stop|restart") re... | a456488b85d37cbfb3de8ee9b6a8e66037692bbf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10653/a456488b85d37cbfb3de8ee9b6a8e66037692bbf/run_apache2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
309,
562,
12,
9499,
18,
19485,
13,
411,
576,
30,
1086,
67,
4172,
273,
1408,
469,
30,
1086,
67,
4172,
273,
2589,
18,
19485,
63,
21,
65,
225,
468,
10939,
2907,
667,
2907,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
309,
562,
12,
9499,
18,
19485,
13,
411,
576,
30,
1086,
67,
4172,
273,
1408,
469,
30,
1086,
67,
4172,
273,
2589,
18,
19485,
63,
21,
65,
225,
468,
10939,
2907,
667,
2907,
... |
def UpdateSecondColumnName(self, name): | def UpdateFileNamePerformerColumnName(self, name): | def UpdateSecondColumnName(self, name): """ Updates the second column to display the name of the reflected contents. """ columnNameItem = wx.ListItem() columnNameItem.SetText(name) self.Playlist.SetColumn(self.SecondColumn, columnNameItem) songList = self.PlaylistSongStructList self.clear() for song in songList: self.A... | 7d6c2cead80b3d812ebc0d6027018fbc93b8714c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12653/7d6c2cead80b3d812ebc0d6027018fbc93b8714c/pykaraoke.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2315,
4771,
4990,
264,
8516,
12,
2890,
16,
508,
4672,
3536,
15419,
326,
2205,
1057,
358,
2562,
326,
508,
434,
326,
21591,
2939,
18,
3536,
7578,
1180,
273,
7075,
18,
13575,
1435,
7578,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2315,
4771,
4990,
264,
8516,
12,
2890,
16,
508,
4672,
3536,
15419,
326,
2205,
1057,
358,
2562,
326,
508,
434,
326,
21591,
2939,
18,
3536,
7578,
1180,
273,
7075,
18,
13575,
1435,
7578,
11... |
yield Bit(self, "has_logo3id") yield Bit(self, "has_darwinid") yield Bit(self, "runas_user") yield Bit(self, "has_exp_icon_sz") | yield Bit(self, "has_logo3id", "Is LOGO3 ID info present?") yield Bit(self, "has_darwinid", "Is the DarwinID info present?") yield Bit(self, "runas_user", "Is the target run as another user?") yield Bit(self, "has_exp_icon_sz", "Is custom icon information available?") | def createFields(self): yield UInt32(self, "signature", "Shortcut signature (0x0000004C)") yield GUID(self, "guid") | 2078f158e6614c23c8bcfb26762a3370d667c630 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/2078f158e6614c23c8bcfb26762a3370d667c630/lnk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2314,
12,
2890,
4672,
2824,
29810,
1578,
12,
2890,
16,
315,
8195,
3113,
315,
15576,
3372,
261,
20,
92,
9449,
24,
39,
2225,
13,
2824,
20322,
12,
2890,
16,
315,
14066,
7923,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2314,
12,
2890,
4672,
2824,
29810,
1578,
12,
2890,
16,
315,
8195,
3113,
315,
15576,
3372,
261,
20,
92,
9449,
24,
39,
2225,
13,
2824,
20322,
12,
2890,
16,
315,
14066,
7923,
2,
-100... |
gLogger.verbose( "Using proxy %s" % proxyPath ) | gLogger.debug( "Using proxy %s" % proxyPath ) | def __generateContextWithProxy( self ): proxyPath = GridCert.getGridProxy() if not proxyPath: DIRAC.abort( 10, "No valid proxy found" ) self.setLocalCredentialsLocation( ( proxyPath, proxyPath ) ) gLogger.verbose( "Using proxy %s" % proxyPath ) self.__createContext() self.sslContext.use_certificate_chain_file( proxyPat... | a273155ed5de8f7a2726d0bf130a010c8a582b17 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/a273155ed5de8f7a2726d0bf130a010c8a582b17/SocketInfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
7163,
1042,
1190,
3886,
12,
365,
262,
30,
2889,
743,
273,
7145,
5461,
18,
588,
6313,
3886,
1435,
309,
486,
2889,
743,
30,
18544,
2226,
18,
18623,
12,
1728,
16,
315,
2279,
923,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7163,
1042,
1190,
3886,
12,
365,
262,
30,
2889,
743,
273,
7145,
5461,
18,
588,
6313,
3886,
1435,
309,
486,
2889,
743,
30,
18544,
2226,
18,
18623,
12,
1728,
16,
315,
2279,
923,
28... |
name, subject = netstring.decode (child) | subject, name = netstring.decode (child) | def pns_to_xml_utf8_strings (dom, model): e, children = pns_to_xml_utf8 (dom, model) if children: e.xml_children = [] for child in netstring.decode (children): name, subject = netstring.decode (child) if subject: e.xml_children.append ('<%s pns="%s"/>' % ( name, xml_utf8.xml_attr (subject) )) else: e.xml_children.appen... | dc4ed1e2c25cfea423394a522f65916017f5d565 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/dc4ed1e2c25cfea423394a522f65916017f5d565/pns_xml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
2387,
67,
869,
67,
2902,
67,
3158,
28,
67,
10219,
261,
9859,
16,
938,
4672,
425,
16,
2325,
273,
293,
2387,
67,
869,
67,
2902,
67,
3158,
28,
261,
9859,
16,
938,
13,
309,
2325,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
293,
2387,
67,
869,
67,
2902,
67,
3158,
28,
67,
10219,
261,
9859,
16,
938,
4672,
425,
16,
2325,
273,
293,
2387,
67,
869,
67,
2902,
67,
3158,
28,
261,
9859,
16,
938,
13,
309,
2325,
... |
mi = MetaInformation(title="My New Title", authors=['Smith, John']) set_metadata(open(sys.argv[1], 'rb'), mi) | if False: print get_metadata(open(sys.argv[1], 'rb')) else: import cStringIO data = open(sys.argv[1], 'rb') stream = cStringIO.StringIO() stream.write(data.read()) mi = MetaInformation(title="A Marvelously Long Title", authors=['Riker, Gregory; Riker, Charles']) set_metadata(stream, mi) tokens = sys.argv[1].rpartit... | def set_metadata(stream, mi): mu = MetadataUpdater(stream) mu.update(mi) return | 4a3ebab22ec7393f3b837330b2a358c53cbe18e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/4a3ebab22ec7393f3b837330b2a358c53cbe18e5/topaz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
4165,
12,
3256,
16,
12837,
4672,
4129,
273,
6912,
15305,
12,
3256,
13,
4129,
18,
2725,
12,
9197,
13,
327,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
4165,
12,
3256,
16,
12837,
4672,
4129,
273,
6912,
15305,
12,
3256,
13,
4129,
18,
2725,
12,
9197,
13,
327,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
for t in task.get_tags(): path = self.tree.get_path_for_node(t) iter = self.get_iter(path) self.row_changed(path, iter) | for tag in task.get_tags(): tasks_count = tag.get_tasks_nbr(workview=self.workview) tag_name = tag.get_name() if tasks_count < 1: if tag_name in self.displayed: self.row_deleted(self.displayed[tag_name]) self.displayed.pop(tag_name) else: self._update_tag_from_name(tag_name) def _update_all_tasks_and_no_tags(self): ''... | def update_tags_for_task(self, tid): task = self.req.get_task(tid) if task: for t in task.get_tags(): path = self.tree.get_path_for_node(t) iter = self.get_iter(path) self.row_changed(path, iter) | c8fbddaf26ab19611f3055231e3df9deeb20cb28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/c8fbddaf26ab19611f3055231e3df9deeb20cb28/tagtree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
4156,
67,
1884,
67,
4146,
12,
2890,
16,
11594,
4672,
1562,
273,
365,
18,
3658,
18,
588,
67,
4146,
12,
18081,
13,
309,
1562,
30,
364,
268,
316,
1562,
18,
588,
67,
4156,
1333... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4156,
67,
1884,
67,
4146,
12,
2890,
16,
11594,
4672,
1562,
273,
365,
18,
3658,
18,
588,
67,
4146,
12,
18081,
13,
309,
1562,
30,
364,
268,
316,
1562,
18,
588,
67,
4156,
1333... |
self.__melScript.write("hwRender -camera \"" + camera + "\" -width " + width + " -height " + height + ";\n\n") | self.__melScript.write("catch(`hwRender -camera \"" + camera + "\" -width " + width + " -height " + height + "`);\n\n") | def WriteRender(self, logname, outputDir, settings, isAnimated): """WriteRender(logname, outputDir, settings, isAnimated) -> list_of_str Implements FApplication.WriteRender() """ baseName = self.__currentImportProperName output = os.path.normpath(os.path.join(outputDir, baseName)) outputDir = os.path.dirname(output) ... | 093ca1abab97a567c7de389f0937f68bc696aae1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11176/093ca1abab97a567c7de389f0937f68bc696aae1/FMaya_UIRender.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
3420,
12,
2890,
16,
613,
529,
16,
21412,
16,
1947,
16,
353,
979,
17275,
4672,
3536,
3067,
3420,
12,
1330,
529,
16,
21412,
16,
1947,
16,
353,
979,
17275,
13,
317,
666,
67,
792,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
3420,
12,
2890,
16,
613,
529,
16,
21412,
16,
1947,
16,
353,
979,
17275,
4672,
3536,
3067,
3420,
12,
1330,
529,
16,
21412,
16,
1947,
16,
353,
979,
17275,
13,
317,
666,
67,
792,
... |
print "Usage: pyloic <hivemind irc server> <irc port> <irc channel> [--tor] [--socks5=ip:port]" | print "Usage: python main.py <hivemind irc server> <irc port> <irc channel> [--tor] [--socks5=ip:port]" | def main(args): global irc, flooder, socks5ip, socks5port listener = Listener(LAZER_RECV, lazerParseHook) getEventManager().addListener(listener) listener = Listener(START_LAZER, lazerStartHook) getEventManager().addListener(listener) listener = Listener(IRC_RESTART, restartIRCHook) getEventManager().addListener(liste... | ae9b2ddff43a2fe5b437a4cf0ebe022b6c969e4d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13624/ae9b2ddff43a2fe5b437a4cf0ebe022b6c969e4d/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1968,
4672,
2552,
277,
1310,
16,
20802,
5350,
16,
7313,
87,
25,
625,
16,
7313,
87,
25,
655,
225,
2991,
273,
10652,
12,
2534,
62,
654,
67,
862,
22007,
16,
328,
1561,
264,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1968,
4672,
2552,
277,
1310,
16,
20802,
5350,
16,
7313,
87,
25,
625,
16,
7313,
87,
25,
655,
225,
2991,
273,
10652,
12,
2534,
62,
654,
67,
862,
22007,
16,
328,
1561,
264,
32... |
class Retry (PublishingException): | class Retry(PublishingException): | def __str__(self): return 'Location: %s' % self.location | 7893590cebabb8468069414f2adbc2caecaee2ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9825/7893590cebabb8468069414f2adbc2caecaee2ec/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
296,
2735,
30,
738,
87,
11,
738,
365,
18,
3562,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
296,
2735,
30,
738,
87,
11,
738,
365,
18,
3562,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
ns3.CsmaHelper.EnablePcap("mixed-wireless", appSink.GetId(), 0, False) | csma = ns3.CsmaHelper() csma.EnablePcapAll("mixed-wireless", False) | def main(argv): # # First, we declare and initialize a few local variables that control some # simulation parameters. # backboneNodes = 10 infraNodes = 5 lanNodes = 5 stopTime = 10 # # Simulation defaults are typically set next, before command line # arguments are parsed. # ns3.Config.SetDefault("ns3::OnOffApplica... | 32c0ad4164fdb0c3beb96818f3eed87ad61bea3e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12851/32c0ad4164fdb0c3beb96818f3eed87ad61bea3e/mixed-wireless.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
468,
468,
225,
5783,
16,
732,
14196,
471,
4046,
279,
11315,
1191,
3152,
716,
3325,
2690,
468,
225,
14754,
1472,
18,
468,
1473,
19930,
3205,
273,
1728,
8286,
354,
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,
2774,
12,
19485,
4672,
468,
468,
225,
5783,
16,
732,
14196,
471,
4046,
279,
11315,
1191,
3152,
716,
3325,
2690,
468,
225,
14754,
1472,
18,
468,
1473,
19930,
3205,
273,
1728,
8286,
354,
3... |
i18n("Printer '%s' has no toner left.")), | ki18n("Printer '%1' has no toner left.")), | def get_description (self): messages = { 'toner-low': (i18n("Toner low"), i18n("Printer '%s' is low on toner.")), 'toner-empty': (i18n("Toner empty"), i18n("Printer '%s' has no toner left.")), 'cover-open': (i18n("Cover open"), i18n("The cover is open on printer '%s'.")), 'door-open': (i18n("Door open"), i18n("The door... | a79c8d54e834549b4d455fdc197090d606ca2c0a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1682/a79c8d54e834549b4d455fdc197090d606ca2c0a/printer-applet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3384,
261,
2890,
4672,
2743,
273,
288,
296,
1917,
264,
17,
821,
4278,
261,
77,
2643,
82,
2932,
56,
31430,
4587,
6,
3631,
277,
2643,
82,
2932,
12149,
1995,
87,
11,
353,
4587,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3384,
261,
2890,
4672,
2743,
273,
288,
296,
1917,
264,
17,
821,
4278,
261,
77,
2643,
82,
2932,
56,
31430,
4587,
6,
3631,
277,
2643,
82,
2932,
12149,
1995,
87,
11,
353,
4587,
... |
file_url = "file://%s" % fname | if os.name == 'nt': file_url = "file:///%s" % fname else: file_url = "file://%s" % fname | def test_trivial(self): # A couple trivial tests | 2e3da14d8b6fc13f1514dce8420c992d7aaf13f8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/2e3da14d8b6fc13f1514dce8420c992d7aaf13f8/test_urllib2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
313,
20109,
12,
2890,
4672,
468,
432,
1825,
2268,
433,
20109,
7434,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
313,
20109,
12,
2890,
4672,
468,
432,
1825,
2268,
433,
20109,
7434,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
t="<p><strong>%s</strong><p>" % strip(ctag(t)) | t="<p><strong>%s</strong></p>" % strip(ctag(t)) | def head(self, before, t, level, d): if level > 0 and level < 6: return ('%s<h%d>%s</h%d>\n%s\n' % (before,level,strip(ctag(t)),level,d)) t="<p><strong>%s</strong><p>" % strip(ctag(t)) return ('%s<dl><dt>%s\n</dt><dd>%s\n</dd></dl>\n' % (before,t,d)) | 8595964a97697010af972509b9ca4ae48aaac388 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/8595964a97697010af972509b9ca4ae48aaac388/StructuredText.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
910,
12,
2890,
16,
1865,
16,
268,
16,
1801,
16,
302,
4672,
309,
1801,
405,
374,
471,
1801,
411,
1666,
30,
327,
7707,
9,
87,
32,
76,
9,
72,
9822,
87,
1757,
76,
9,
72,
5333,
82,
9,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
910,
12,
2890,
16,
1865,
16,
268,
16,
1801,
16,
302,
4672,
309,
1801,
405,
374,
471,
1801,
411,
1666,
30,
327,
7707,
9,
87,
32,
76,
9,
72,
9822,
87,
1757,
76,
9,
72,
5333,
82,
9,... |
subheading = _('from %s') % (self.episode.channel.title) | subheading = '; '.join((self.episode.cute_pubdate(), \ self.episode.get_filesize_string(), \ self.episode.channel.title)) | def on_display_text(self): heading = self.episode.title subheading = _('from %s') % (self.episode.channel.title) description = self.episode.description | 80ca2b7fe48b069b18ed5c96bcdba095af007d62 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12778/80ca2b7fe48b069b18ed5c96bcdba095af007d62/shownotes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
5417,
67,
955,
12,
2890,
4672,
11053,
273,
365,
18,
29687,
18,
2649,
720,
19948,
273,
12386,
2418,
5701,
12443,
2890,
18,
29687,
18,
71,
624,
67,
10174,
712,
9334,
521,
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,
603,
67,
5417,
67,
955,
12,
2890,
4672,
11053,
273,
365,
18,
29687,
18,
2649,
720,
19948,
273,
12386,
2418,
5701,
12443,
2890,
18,
29687,
18,
71,
624,
67,
10174,
712,
9334,
521,
365,
1... |
elif item.description.lower().startswith("dinner") and not item.description.lower().startswith("discount"): | elif item.description.lower().startswith("dinner"): | def rego_desk_list(self): """ List of people who have not checked in (see checkins table). [Registrations] """ import zookeepr.model checkedin = zookeepr.model.metadata.bind.execute("SELECT person_id FROM checkins WHERE conference IS NOT NULL"); checkedin_list = checkedin.fetchall() registration_list = self.dbsession.q... | 9cf71694ef12fa03a8eb819a0536258280351f9f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12856/9cf71694ef12fa03a8eb819a0536258280351f9f/admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
960,
83,
67,
5489,
79,
67,
1098,
12,
2890,
4672,
3536,
987,
434,
16951,
10354,
1240,
486,
5950,
316,
261,
5946,
866,
2679,
1014,
2934,
306,
20175,
1012,
65,
3536,
1930,
998,
1184,
1340,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
960,
83,
67,
5489,
79,
67,
1098,
12,
2890,
4672,
3536,
987,
434,
16951,
10354,
1240,
486,
5950,
316,
261,
5946,
866,
2679,
1014,
2934,
306,
20175,
1012,
65,
3536,
1930,
998,
1184,
1340,
... |
doc.documentType = documentType | if documentType == 'U': doc.documentType = 'Unpublished' elif documentType == 'P': doc.documentType = 'Published' | def scrapeCourt(courtID, result, verbosity, daemonmode): if verbosity >= 1: result += "NOW SCRAPING COURT: " + str(courtID) + "\n" if verbosity >= 2: print "NOW SCRAPING COURT: " + str(courtID) if (courtID == 1): """ PDFs are available from the first circuit if you go to their RSS feed. So go to their RSS feed we shal... | a2c330722731f0163de49a433859aa6ca21fac0a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6762/a2c330722731f0163de49a433859aa6ca21fac0a/scrape_and_parse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
888,
25360,
29328,
88,
12,
71,
477,
88,
734,
16,
563,
16,
11561,
16,
8131,
3188,
4672,
309,
11561,
1545,
404,
30,
563,
1011,
315,
27091,
348,
5093,
2203,
1360,
7910,
1099,
56,
30,
315,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
888,
25360,
29328,
88,
12,
71,
477,
88,
734,
16,
563,
16,
11561,
16,
8131,
3188,
4672,
309,
11561,
1545,
404,
30,
563,
1011,
315,
27091,
348,
5093,
2203,
1360,
7910,
1099,
56,
30,
315,... |
def ChromiumBaselinePath(platform): | def ChromiumBaselinePath(platform=None): | def ChromiumBaselinePath(platform): """Returns the full path to the directory containing expected baseline results from chromium ports.""" return PathFromBase('webkit', 'data', 'layout_tests', 'platform', platform) | 5bbf2884b6ff9466d95e3c6f177ebb7a39b70268 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/5bbf2884b6ff9466d95e3c6f177ebb7a39b70268/path_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1680,
520,
5077,
16635,
743,
12,
9898,
33,
7036,
4672,
3536,
1356,
326,
1983,
589,
358,
326,
1867,
4191,
2665,
14243,
1686,
628,
8123,
5077,
9048,
12123,
327,
2666,
1265,
2171,
2668,
29319... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1680,
520,
5077,
16635,
743,
12,
9898,
33,
7036,
4672,
3536,
1356,
326,
1983,
589,
358,
326,
1867,
4191,
2665,
14243,
1686,
628,
8123,
5077,
9048,
12123,
327,
2666,
1265,
2171,
2668,
29319... |
fcntl.fcntl(self.fd, FCNTL.F_SETFL, FCNTL.O_NONBLOCK) | fcntl.fcntl(self.fd, FCNTL.F_SETFL, os.O_NONBLOCK) | def nonblocking(self): """internal - not portable!""" if self.fd is None: raise portNotOpenError fcntl.fcntl(self.fd, FCNTL.F_SETFL, FCNTL.O_NONBLOCK) | 094cdf3631d56c5376e61830f910ee00d84506d3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10955/094cdf3631d56c5376e61830f910ee00d84506d3/serialposix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1661,
18926,
12,
2890,
4672,
3536,
7236,
300,
486,
1756,
429,
5,
8395,
309,
365,
18,
8313,
353,
599,
30,
1002,
1756,
1248,
3678,
668,
30894,
18,
7142,
16681,
12,
2890,
18,
8313,
16,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1661,
18926,
12,
2890,
4672,
3536,
7236,
300,
486,
1756,
429,
5,
8395,
309,
365,
18,
8313,
353,
599,
30,
1002,
1756,
1248,
3678,
668,
30894,
18,
7142,
16681,
12,
2890,
18,
8313,
16,
47... |
sys.stdout.write("%g\n"%(time.time()-d)) sys.stdout.flush() | def submit_job(self, index, data): with self.lock: sys.stdout.write("submit job:") sys.stdout.flush() d = time.time() args = ( index, data, self.tconf, self.advanced_fit, self.mass_fraction_tool ) #self.job_server.submit( # analyze_spectrum, # args, # modules=("time", ), # callback=self.update_records #) re... | 219a43fffce78867efd8be3bd2d11688364abe8b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14949/219a43fffce78867efd8be3bd2d11688364abe8b/pptaskmanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
67,
4688,
12,
2890,
16,
770,
16,
501,
4672,
598,
365,
18,
739,
30,
2589,
18,
10283,
18,
2626,
2932,
9297,
1719,
2773,
13,
2589,
18,
10283,
18,
11330,
1435,
302,
273,
813,
18,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4879,
67,
4688,
12,
2890,
16,
770,
16,
501,
4672,
598,
365,
18,
739,
30,
2589,
18,
10283,
18,
2626,
2932,
9297,
1719,
2773,
13,
2589,
18,
10283,
18,
11330,
1435,
302,
273,
813,
18,
9... | |
True | True, self.event | def OnButton(event): self.plugin.choices = self.choices self.plugin.menuDlg = Menu() self.plugin.menuDlg.ShowMenu( self.plugin, self.choices, foreColourButton.GetValue(), backColourButton.GetValue(), fontButton.GetValue(), True ) | e1fa4c9b0e24e89f67c1d855207a1876617f94d1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8076/e1fa4c9b0e24e89f67c1d855207a1876617f94d1/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
3616,
12,
2575,
4672,
365,
18,
4094,
18,
11937,
273,
365,
18,
11937,
365,
18,
4094,
18,
5414,
40,
23623,
273,
9809,
1435,
365,
18,
4094,
18,
5414,
40,
23623,
18,
5706,
4599,
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,
2755,
3616,
12,
2575,
4672,
365,
18,
4094,
18,
11937,
273,
365,
18,
11937,
365,
18,
4094,
18,
5414,
40,
23623,
273,
9809,
1435,
365,
18,
4094,
18,
5414,
40,
23623,
18,
5706,
4599,
12,
... |
isstring = False | own_fh = False | def loadtxt(fname, dtype=float, comments='#', delimiter=None, converters=None, skiprows=0, usecols=None, unpack=False): """ Load data from a text file. Each row in the text file must have the same number of values. Parameters ---------- fname : file or str File or filename to read. If the filename extension is ``.gz... | 8630830bb05bd13aab0fcd869c8339c1515460de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/8630830bb05bd13aab0fcd869c8339c1515460de/npyio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
5830,
12,
12749,
16,
3182,
33,
5659,
16,
5678,
2218,
7,
2187,
5654,
33,
7036,
16,
19414,
33,
7036,
16,
2488,
3870,
33,
20,
16,
999,
6842,
33,
7036,
16,
6167,
33,
8381,
4672,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1262,
5830,
12,
12749,
16,
3182,
33,
5659,
16,
5678,
2218,
7,
2187,
5654,
33,
7036,
16,
19414,
33,
7036,
16,
2488,
3870,
33,
20,
16,
999,
6842,
33,
7036,
16,
6167,
33,
8381,
4672,
35... |
retVal = self.isProxy() isProxy = retVal[ 'Value' ] | def getCredentials(self): if not self.__loadedChain: return S_ERROR( "No chain loaded" ) retVal = self.isProxy() isProxy = retVal[ 'Value' ] credDict = { 'subject' : self.__certList[0].get_subject().one_line(), 'isProxy' : isProxy, 'validDN' : False, 'validGroup' : False } if isProxy: retVal = self.getDIRACGroup() if n... | 305602de5e0c340ed06b7c08603efd49c207738d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/305602de5e0c340ed06b7c08603efd49c207738d/X509Chain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30653,
12,
2890,
4672,
309,
486,
365,
16186,
4230,
3893,
30,
327,
348,
67,
3589,
12,
315,
2279,
2687,
4203,
6,
262,
6197,
5014,
273,
288,
296,
7857,
11,
294,
365,
16186,
7593,
682,
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,
30653,
12,
2890,
4672,
309,
486,
365,
16186,
4230,
3893,
30,
327,
348,
67,
3589,
12,
315,
2279,
2687,
4203,
6,
262,
6197,
5014,
273,
288,
296,
7857,
11,
294,
365,
16186,
7593,
682,
63,... | |
This function is equivalent to the plot command with the options | This function is equivalent to the :func:`plot` command with the options | def polar_plot(funcs, *args, **kwds): r""" ``polar_plot`` takes a single function or a list or tuple of functions and plots them with polar coordinates in the given domain. This function is equivalent to the plot command with the options ``polar=True`` and ``aspect_ratio=1``. For more help on options, see the document... | 8bd751eb284941c294a29b0ed61ffc50187ae646 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/8bd751eb284941c294a29b0ed61ffc50187ae646/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24244,
67,
4032,
12,
17728,
16,
380,
1968,
16,
2826,
25577,
4672,
436,
8395,
12176,
3915,
297,
67,
4032,
10335,
5530,
279,
2202,
445,
578,
279,
666,
578,
3193,
434,
4186,
471,
17931,
218... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24244,
67,
4032,
12,
17728,
16,
380,
1968,
16,
2826,
25577,
4672,
436,
8395,
12176,
3915,
297,
67,
4032,
10335,
5530,
279,
2202,
445,
578,
279,
666,
578,
3193,
434,
4186,
471,
17931,
218... |
('2009-08-21 21:00:00', 1250877600), ('20090821 210000', 1250877600) ]: | ('2007-09-20 16:15:14', EXAMPLE_TIME), ('20070920 161514', EXAMPLE_TIME) ]: | def test_parse_modified_time_with_valid_times(self): for input, expected in [ ('100', 100), ('2009-08-21 21:00:00', 1250877600), ('20090821 210000', 1250877600) ]: assert_equals(parse_time(input), expected) | 3f44fb4c6f2d70011327e5320fc19c108b778272 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6988/3f44fb4c6f2d70011327e5320fc19c108b778272/test_robottime.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2670,
67,
7342,
67,
957,
67,
1918,
67,
877,
67,
8293,
12,
2890,
4672,
364,
810,
16,
2665,
316,
306,
7707,
6625,
2187,
2130,
3631,
7707,
6976,
27,
17,
5908,
17,
3462,
2872,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2670,
67,
7342,
67,
957,
67,
1918,
67,
877,
67,
8293,
12,
2890,
4672,
364,
810,
16,
2665,
316,
306,
7707,
6625,
2187,
2130,
3631,
7707,
6976,
27,
17,
5908,
17,
3462,
2872,
... |
created_entry = self.doclist.Post(self.new_entry, | created_entry = self.client.Post(self.new_entry, | def testCreateAndDeleteEmptyDocumentSlugHeaderTitle(self): created_entry = self.doclist.Post(self.new_entry, '/feeds/documents/private/full', extra_headers={'Slug': self.TITLE}) self.doclist.Delete(created_entry.GetEditLink().href) self.assertEqual(created_entry.title.text, self.TITLE) self.assertEqual(created_entry.ca... | dcc46816af19bac967f4b588353a3ee4514dd5d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6580/dcc46816af19bac967f4b588353a3ee4514dd5d2/service_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1684,
1876,
2613,
1921,
2519,
9966,
1864,
4247,
12,
2890,
4672,
2522,
67,
4099,
273,
365,
18,
2625,
18,
3349,
12,
2890,
18,
2704,
67,
4099,
16,
1173,
7848,
87,
19,
24795,
19,
115... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1684,
1876,
2613,
1921,
2519,
9966,
1864,
4247,
12,
2890,
4672,
2522,
67,
4099,
273,
365,
18,
2625,
18,
3349,
12,
2890,
18,
2704,
67,
4099,
16,
1173,
7848,
87,
19,
24795,
19,
115... |
def SetSegmentType(segea, type): | def SetSegmentType(segea, segtype): | def SetSegmentType(segea, type): """ Set segment type @param segea: any address within segment @param type: new segment type: @return: !=0 - ok """ seg = idaapi.getseg(segea) if not seg: return False seg.type = type return seg.update() | 4f22943d42ee1d5013421d280b3bd776bee83fb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3410/4f22943d42ee1d5013421d280b3bd776bee83fb9/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
4131,
559,
12,
307,
908,
69,
16,
2291,
723,
4672,
3536,
1000,
3267,
618,
225,
632,
891,
695,
908,
69,
30,
1281,
1758,
3470,
3267,
632,
891,
618,
30,
394,
3267,
618,
30,
225,
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,
1000,
4131,
559,
12,
307,
908,
69,
16,
2291,
723,
4672,
3536,
1000,
3267,
618,
225,
632,
891,
695,
908,
69,
30,
1281,
1758,
3470,
3267,
632,
891,
618,
30,
394,
3267,
618,
30,
225,
63... |
chunks.append(size) | chunks.append(data) | def read(self, size): """Read 'size' bytes from remote.""" # sslobj.read() sometimes returns < size bytes chunks = [] read = 0 while read < size: data = self.sslobj.read(size-read) read += len(data) chunks.append(size) | 09cec0a4d120b9b6b8b6f391e484c06bca7d77eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/09cec0a4d120b9b6b8b6f391e484c06bca7d77eb/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
963,
4672,
3536,
1994,
296,
1467,
11,
1731,
628,
2632,
12123,
468,
5202,
383,
441,
18,
896,
1435,
16594,
1135,
411,
963,
1731,
6055,
273,
5378,
855,
273,
374,
1323,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4672,
3536,
1994,
296,
1467,
11,
1731,
628,
2632,
12123,
468,
5202,
383,
441,
18,
896,
1435,
16594,
1135,
411,
963,
1731,
6055,
273,
5378,
855,
273,
374,
1323,
... |
self._regenerate() | self._regenerate(debug=True) | def get_dev_output(self, name, variation): assert name == self.main_module self._regenerate() return self._compiled | d81888e767010d1d117a8a8eb85fb468a070a307 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11828/d81888e767010d1d117a8a8eb85fb468a070a307/sass.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5206,
67,
2844,
12,
2890,
16,
508,
16,
14761,
4672,
1815,
508,
422,
365,
18,
5254,
67,
2978,
365,
6315,
1574,
14681,
12,
4148,
33,
5510,
13,
327,
365,
6315,
19397,
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,
336,
67,
5206,
67,
2844,
12,
2890,
16,
508,
16,
14761,
4672,
1815,
508,
422,
365,
18,
5254,
67,
2978,
365,
6315,
1574,
14681,
12,
4148,
33,
5510,
13,
327,
365,
6315,
19397,
2,
-100,
... |
MAGIC_GCLIENT_BRANCH, target], | magic_gclient_branch, target], | def UpdateGClientBranch(webkit_rev): """Update the magic gclient branch to point at |webkit_rev|. Returns: true if the branch didn't need changes.""" target = FindSVNRev(webkit_rev) if not target: print "r%s not available; fetching." % webkit_rev subprocess.check_call(['git', 'fetch'], shell=(os.name == 'nt')) target ... | 1224ad1d7aacd8cd49d57571458700e8020d0fa4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/1224ad1d7aacd8cd49d57571458700e8020d0fa4/sync-webkit-git.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2315,
43,
1227,
7108,
12,
29319,
67,
9083,
4672,
3536,
1891,
326,
8146,
314,
2625,
3803,
358,
1634,
622,
571,
29319,
67,
9083,
96,
18,
225,
2860,
30,
638,
309,
326,
3803,
10242,
1404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2315,
43,
1227,
7108,
12,
29319,
67,
9083,
4672,
3536,
1891,
326,
8146,
314,
2625,
3803,
358,
1634,
622,
571,
29319,
67,
9083,
96,
18,
225,
2860,
30,
638,
309,
326,
3803,
10242,
1404,
... |
dataset = DataSet.objects.get(pk=dataset_id) | dataset = get_object_or_404(DataSet,pk=dataset_id) | def view_dataset(request, dataset_id): dataset = DataSet.objects.get(pk=dataset_id) return render_to_response('datasets/view_dataset.html', {'dataset': dataset, 'user':request.user}) | b5f48b5e9887015c4a2654cf735b11dcc4c468ec /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2706/b5f48b5e9887015c4a2654cf735b11dcc4c468ec/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1476,
67,
8682,
12,
2293,
16,
3709,
67,
350,
4672,
3709,
273,
336,
67,
1612,
67,
280,
67,
11746,
12,
13676,
16,
5465,
33,
8682,
67,
350,
13,
327,
1743,
67,
869,
67,
2740,
2668,
21125... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1476,
67,
8682,
12,
2293,
16,
3709,
67,
350,
4672,
3709,
273,
336,
67,
1612,
67,
280,
67,
11746,
12,
13676,
16,
5465,
33,
8682,
67,
350,
13,
327,
1743,
67,
869,
67,
2740,
2668,
21125... |
return n, "s" | return n, suffix | def plural_s(n): if (n == 1): return n, "" return n, "s" | b7509af2b3574f7abd6c5d1e4103b61e4a71e9c0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/696/b7509af2b3574f7abd6c5d1e4103b61e4a71e9c0/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7978,
67,
87,
12,
82,
4672,
309,
261,
82,
422,
404,
4672,
327,
290,
16,
1408,
327,
290,
16,
3758,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7978,
67,
87,
12,
82,
4672,
309,
261,
82,
422,
404,
4672,
327,
290,
16,
1408,
327,
290,
16,
3758,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
code, data = struct.unpack('!L', data[:4])[0], data[4:] | code, = struct.unpack('!L', data[:4]) data = data[4:] | def packet_STATUS(self, data): d, data = self._parseRequest(data) code, data = struct.unpack('!L', data[:4])[0], data[4:] msg, data = getNS(data) lang = getNS(data) if code == FX_OK: d.callback((msg, lang)) else: d.errback(SFTPError(code, msg, lang)) | aef8d7424b2a725faf6ca18b071ce67e27dc3850 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/aef8d7424b2a725faf6ca18b071ce67e27dc3850/filetransfer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4414,
67,
8608,
12,
2890,
16,
501,
4672,
302,
16,
501,
273,
365,
6315,
2670,
691,
12,
892,
13,
981,
16,
273,
1958,
18,
17309,
2668,
5,
48,
2187,
501,
10531,
24,
5717,
501,
273,
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,
4414,
67,
8608,
12,
2890,
16,
501,
4672,
302,
16,
501,
273,
365,
6315,
2670,
691,
12,
892,
13,
981,
16,
273,
1958,
18,
17309,
2668,
5,
48,
2187,
501,
10531,
24,
5717,
501,
273,
501,
... |
inheritdoc = 0 | def _func_summary(self, functions, sort_order, heading='Function Summary'): """ @return: The HTML code for a function summary table. This is used by L{_module_to_html} to list the functions in a module; and by L{_class_to_html} to list member functions. @rtype: C{string} """ functions = self._sort(functions, sort_orde... | 62ff4e473663c51d0a945a451e36120f11d9450a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/62ff4e473663c51d0a945a451e36120f11d9450a/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
644,
67,
7687,
12,
2890,
16,
4186,
16,
1524,
67,
1019,
16,
11053,
2218,
2083,
17967,
11,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
279,
445,
4916,
1014,
18,
225,
1220,
353,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
644,
67,
7687,
12,
2890,
16,
4186,
16,
1524,
67,
1019,
16,
11053,
2218,
2083,
17967,
11,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
279,
445,
4916,
1014,
18,
225,
1220,
353,... | |
print "Reading multiple bugs, all-at-once: %s" % str(bugidlist) for b in bz.getbugssimple(bugidlist): | print "Reading multiple bugs, all-at-once: %s" % str(data['bugidlist']) for b in bz.getbugs(data['bugidlist']): | def selftest(user='',password=''): url = 'https://partner-bugzilla.redhat.com/xmlrpc.cgi' public_bug = 1 private_bug = 250666 bugidlist = (1,2,3,1337,123456) query = {'product':'Fedora', 'component':'kernel', 'version':'devel', 'long_desc':'wireless'} print "Woo, welcome to the bugzilla.py self-test." print "Using bug... | 35f9cb409068820018480408376e2c4332d1f315 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5050/35f9cb409068820018480408376e2c4332d1f315/selftest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
365,
3813,
12,
1355,
2218,
2187,
3664,
2218,
11,
4672,
880,
273,
296,
4528,
2207,
31993,
17,
925,
15990,
18,
1118,
11304,
18,
832,
19,
2902,
7452,
18,
19062,
11,
1071,
67,
925,
273,
40... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
365,
3813,
12,
1355,
2218,
2187,
3664,
2218,
11,
4672,
880,
273,
296,
4528,
2207,
31993,
17,
925,
15990,
18,
1118,
11304,
18,
832,
19,
2902,
7452,
18,
19062,
11,
1071,
67,
925,
273,
40... |
print "debug fyi: len(names) == %d (names = %r)" % (len(names), names) | if len(names) == 2 and \ isinstance( self.object_for_glselect_name(names[0]), self.assy.Chunk ): if not env.seen_before("nested names for Chunk"): print "debug (once-per-session message): nested glnames for a Chunk: ", names else: print "debug fyi: len(names) == %d (names = %r)" % (len(names), names) | def do_glselect_if_wanted(self): #bruce 070919 split this out """ Do the glRenderMode(GL_SELECT) drawing for one frame (and related individual object depth/stencil buffer drawing) if desired for this frame. """ if self.glselect_wanted: # note: this will be reset below. ####@@@@ WARNING: The original code for this, here... | 498839aedfd28994ad03aaba2f4960caabdea001 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/498839aedfd28994ad03aaba2f4960caabdea001/GLPane.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
7043,
4025,
67,
430,
67,
25861,
12,
2890,
4672,
468,
2848,
3965,
10934,
5908,
3657,
1416,
333,
596,
3536,
2256,
326,
5118,
3420,
2309,
12,
11261,
67,
4803,
13,
16327,
364,
1245,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
67,
7043,
4025,
67,
430,
67,
25861,
12,
2890,
4672,
468,
2848,
3965,
10934,
5908,
3657,
1416,
333,
596,
3536,
2256,
326,
5118,
3420,
2309,
12,
11261,
67,
4803,
13,
16327,
364,
1245,... |
print 'problem in %s - %s' % (value.filename, value.args) | print 'Problem in %s - %s' % (value.filename, value.args) | def doc(thing): """Display documentation on an object (for interactive use).""" if type(thing) is type(""): try: path, x = locate(thing) except DocImportError, value: print 'problem in %s - %s' % (value.filename, value.args) return if x: thing = x else: print 'could not find or import %s' % repr(thing) return desc = d... | c8867551cbacbd399ba1d7b4ce3738d629629967 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c8867551cbacbd399ba1d7b4ce3738d629629967/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
12,
4274,
4672,
3536,
4236,
7323,
603,
392,
733,
261,
1884,
12625,
999,
13,
12123,
309,
618,
12,
4274,
13,
353,
618,
2932,
6,
4672,
775,
30,
589,
16,
619,
273,
10627,
12,
4274,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
4274,
4672,
3536,
4236,
7323,
603,
392,
733,
261,
1884,
12625,
999,
13,
12123,
309,
618,
12,
4274,
13,
353,
618,
2932,
6,
4672,
775,
30,
589,
16,
619,
273,
10627,
12,
4274,
... |
jobs2 = [comp.get_game() for _ in range(4)] | jobs2 = [comp2.get_game() for _ in range(4)] | def fake_response(job, winner): result = Game_result({'b' : 't1', 'w' : 't2'}, winner) response = Game_job_result() response.game_id = job.game_id response.game_result = result response.engine_names = {} response.engine_descriptions = {} response.game_data = job.game_data return response | 83af52a9949a36d3c03a96d81382ba6e299c8cdb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6121/83af52a9949a36d3c03a96d81382ba6e299c8cdb/playoff_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10517,
67,
2740,
12,
4688,
16,
5657,
1224,
4672,
563,
273,
14121,
67,
2088,
12590,
11,
70,
11,
294,
296,
88,
21,
2187,
296,
91,
11,
294,
296,
88,
22,
11,
5779,
5657,
1224,
13,
766,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10517,
67,
2740,
12,
4688,
16,
5657,
1224,
4672,
563,
273,
14121,
67,
2088,
12590,
11,
70,
11,
294,
296,
88,
21,
2187,
296,
91,
11,
294,
296,
88,
22,
11,
5779,
5657,
1224,
13,
766,
... |
splat = [self.value for i in range(INT_ARRAY_SIZES[self.array_typecode])] vsplat = array.array(self.array_typecode, splat) | splat = [self.value for i in xrange(INT_ARRAY_SIZES[self.array_typecode])] vsplat = extarray.extarray(self.array_typecode, splat) | def _set_literal_value(self, value): if type(value) is _array_type: if value.typecode not in self.array_typecodes: raise Exception("Array typecode '%s' is not supported" % (value.typecode,)) | 63ee3ecdfc0d8eb23bfa96a8acd9712c6385807c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9699/63ee3ecdfc0d8eb23bfa96a8acd9712c6385807c/vmx_types.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
13107,
67,
1132,
12,
2890,
16,
460,
4672,
309,
618,
12,
1132,
13,
353,
389,
1126,
67,
723,
30,
309,
460,
18,
723,
710,
486,
316,
365,
18,
1126,
67,
723,
7000,
30,
100... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
542,
67,
13107,
67,
1132,
12,
2890,
16,
460,
4672,
309,
618,
12,
1132,
13,
353,
389,
1126,
67,
723,
30,
309,
460,
18,
723,
710,
486,
316,
365,
18,
1126,
67,
723,
7000,
30,
100... |
self.optfinished = False self.coupledcluster = False | SCFRMS, SCFMAX, SCFENERGY = range(3) self.optfinished = False self.coupledcluster = False | def before_parsing(self): | 08909f70b4ab66b14e63fb04fe7694f8b1b23d47 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8167/08909f70b4ab66b14e63fb04fe7694f8b1b23d47/gaussianparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1865,
67,
24979,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
1865,
67,
24979,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
for table in self.db.tables: | for table in self.db.getTableNames(): | def getAvailableCharacterDomains(self): """ Gets a list of all available I{character domains}. By default available is domain C{Unicode}, which represents all Chinese characters encoded in Unicode. Further domains can be given to the database as tables ending in C{...Set} including a column C{ChineseCharacter}, e.g. C{... | 26b29e477f7baa95bc06f0a2ffb7d023f45e83c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/26b29e477f7baa95bc06f0a2ffb7d023f45e83c0/characterlookup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15796,
7069,
15531,
12,
2890,
4672,
3536,
11881,
279,
666,
434,
777,
2319,
467,
95,
11560,
10128,
5496,
2525,
805,
2319,
353,
2461,
385,
95,
16532,
5779,
1492,
8686,
777,
1680,
25331,
3949... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15796,
7069,
15531,
12,
2890,
4672,
3536,
11881,
279,
666,
434,
777,
2319,
467,
95,
11560,
10128,
5496,
2525,
805,
2319,
353,
2461,
385,
95,
16532,
5779,
1492,
8686,
777,
1680,
25331,
3949... |
private_prefix = '_%s__' % cls.__name__ | def introspect_class(cls, class_doc): """ Add API documentation information about the class C{cls} to C{class_doc}. """ class_doc.specialize_to(ClassDoc) # Record the class's docstring. class_doc.docstring = get_docstring(cls) # Record the class's __all__ attribute (public names). if hasattr(cls, '__all__'): try: pub... | 3ef4f18ba8cf25ff9f346948e297f4652844ea7e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3512/3ef4f18ba8cf25ff9f346948e297f4652844ea7e/docintrospecter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30165,
67,
1106,
12,
6429,
16,
667,
67,
2434,
4672,
3536,
1436,
1491,
7323,
1779,
2973,
326,
667,
385,
95,
6429,
97,
358,
385,
95,
1106,
67,
2434,
5496,
3536,
667,
67,
2434,
18,
2793,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30165,
67,
1106,
12,
6429,
16,
667,
67,
2434,
4672,
3536,
1436,
1491,
7323,
1779,
2973,
326,
667,
385,
95,
6429,
97,
358,
385,
95,
1106,
67,
2434,
5496,
3536,
667,
67,
2434,
18,
2793,
... | |
def getDockFaction(): | def getDockFaction(system): | def getDockFaction(): | 5ff1aa41f77bfec6038df8a00568aa95dab717ce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2883/5ff1aa41f77bfec6038df8a00568aa95dab717ce/dynamic_news.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2343,
975,
42,
1128,
13332,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2343,
975,
42,
1128,
13332,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
extra_link_args = [s for s in fields if not s[2:] in libraries and not s[2:] in library_dirs and not s[2:] in include_dirs] | extra_link_args = [s for s in fields if not s[2:] in libraries and not s in libraries and not s[2:] in library_dirs and not s[2:] in include_dirs] | def find_sources(makefile, quip_root): source_dirs = [] all_sources = [] wrap_sources = [] wrap_types = [] libatoms_dir = os.path.join(quip_root, 'libAtoms/') makefile_libatoms = parse_makefile(os.path.join(libatoms_dir,'Makefile')) libatoms_sources = [os.path.join(libatoms_dir,f) for f in (expand_addsuffix(m... | 1d695eb0547478d1560c98002914949ecd85a844 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8914/1d695eb0547478d1560c98002914949ecd85a844/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
10141,
12,
6540,
768,
16,
719,
625,
67,
3085,
4672,
225,
1084,
67,
8291,
225,
273,
5378,
777,
67,
10141,
225,
273,
5378,
2193,
67,
10141,
273,
5378,
2193,
67,
2352,
282,
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,
1104,
67,
10141,
12,
6540,
768,
16,
719,
625,
67,
3085,
4672,
225,
1084,
67,
8291,
225,
273,
5378,
777,
67,
10141,
225,
273,
5378,
2193,
67,
10141,
273,
5378,
2193,
67,
2352,
282,
273,... |
return m2.bio_write(self.sslbio, data) | return m2.ssl_write(self.ssl, data) | def _write_bio(self, data): return m2.bio_write(self.sslbio, data) | 00b626b1ae2f8b02ab6849a0340d53a65bd27866 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8055/00b626b1ae2f8b02ab6849a0340d53a65bd27866/Connection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
21010,
12,
2890,
16,
501,
4672,
327,
312,
22,
18,
21010,
67,
2626,
12,
2890,
18,
8157,
21010,
16,
501,
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,
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,
2626,
67,
21010,
12,
2890,
16,
501,
4672,
327,
312,
22,
18,
21010,
67,
2626,
12,
2890,
18,
8157,
21010,
16,
501,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if self.status_overlay is not None: self.status_overlay.fade_out() | self.clear_status() | def _warn_button_fired(self, event): """ removes the old overlay and replaces it with an warning overlay """ if self.status_overlay is not None: # fade_out will remove the overlay when its done self.status_overlay.fade_out() | 5b171fa3e7ccca600549f35c9e5f5d82a817535b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13167/5b171fa3e7ccca600549f35c9e5f5d82a817535b/status_overlay.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8935,
67,
5391,
67,
74,
2921,
12,
2890,
16,
871,
4672,
3536,
7157,
326,
1592,
9218,
471,
12878,
518,
598,
392,
3436,
9218,
3536,
309,
365,
18,
2327,
67,
17312,
353,
486,
599,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8935,
67,
5391,
67,
74,
2921,
12,
2890,
16,
871,
4672,
3536,
7157,
326,
1592,
9218,
471,
12878,
518,
598,
392,
3436,
9218,
3536,
309,
365,
18,
2327,
67,
17312,
353,
486,
599,
30,
... |
elif isinstance(l,tuple): | elif isinstance(l, tuple): | def antiphi(self,l): """ Inverse of self.phi. | cd82551727ddbae04c5b28f55b59ec14654a84ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/cd82551727ddbae04c5b28f55b59ec14654a84ab/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
392,
14587,
12266,
12,
2890,
16,
80,
4672,
3536,
657,
2476,
434,
365,
18,
9973,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
392,
14587,
12266,
12,
2890,
16,
80,
4672,
3536,
657,
2476,
434,
365,
18,
9973,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
from distutils.ccompiler import new_compiler from distutils.sysconfig import customize_compiler | def build_extensions(self): from distutils.ccompiler import new_compiler from distutils.sysconfig import customize_compiler | 66e3f5d7800dab1d255bb617f52e54569e4cd1a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/66e3f5d7800dab1d255bb617f52e54569e4cd1a9/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
9489,
12,
2890,
4672,
628,
2411,
5471,
18,
71,
9576,
1930,
394,
67,
9576,
628,
2411,
5471,
18,
9499,
1425,
1930,
20236,
67,
9576,
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,
1361,
67,
9489,
12,
2890,
4672,
628,
2411,
5471,
18,
71,
9576,
1930,
394,
67,
9576,
628,
2411,
5471,
18,
9499,
1425,
1930,
20236,
67,
9576,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
WARNING -- this isn't ready for general use yet. | def extension(self, modulus, prec = None, names = None, print_mode = None, halt = None): """ Create an extension of this p-adic ring. | faa33523b3ad002e80eb21c4f0972ba282183142 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/faa33523b3ad002e80eb21c4f0972ba282183142/padic_generic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2710,
12,
2890,
16,
24770,
16,
13382,
273,
599,
16,
1257,
273,
599,
16,
1172,
67,
3188,
273,
599,
16,
18389,
273,
599,
4672,
3536,
1788,
392,
2710,
434,
333,
293,
17,
20333,
9221,
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,
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,
2710,
12,
2890,
16,
24770,
16,
13382,
273,
599,
16,
1257,
273,
599,
16,
1172,
67,
3188,
273,
599,
16,
18389,
273,
599,
4672,
3536,
1788,
392,
2710,
434,
333,
293,
17,
20333,
9221,
18,
... | |
s = sm.create_session(request) | def getUid ( request ): """It gives the userId taking it from the cookie of the request,also has the control mechanism for the guest users, inserting in the MySql table when need it, and raise the cookie to the client. getUid(request) -> userId """ sm = session.MPSessionManager(pSession, pSessionMapping()) try : s = s... | 755952c0c41ebee9afa92157efff386e58efbac9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/755952c0c41ebee9afa92157efff386e58efbac9/webuser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31652,
261,
590,
262,
30,
3536,
7193,
14758,
326,
6249,
13763,
518,
628,
326,
3878,
434,
326,
590,
16,
31144,
711,
326,
3325,
12860,
364,
326,
13051,
3677,
16,
21079,
316,
326,
28382,
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,
31652,
261,
590,
262,
30,
3536,
7193,
14758,
326,
6249,
13763,
518,
628,
326,
3878,
434,
326,
590,
16,
31144,
711,
326,
3325,
12860,
364,
326,
13051,
3677,
16,
21079,
316,
326,
28382,
10... | |
self.sendLine("TOPIC %s :%s" % (channel, topic)) | if topic != None: self.sendLine("TOPIC %s :%s" % (channel, topic)) else: self.sendLine("TOPIC %s" % (channel,)) | def topic(self, channel, topic): # << TOPIC #xtestx :fff if channel[0] not in '&#!+': channel = '#' + channel self.sendLine("TOPIC %s :%s" % (channel, topic)) | 494b9d5f056c28f6e92951c0c9e52f9889d54b93 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/494b9d5f056c28f6e92951c0c9e52f9889d54b93/irc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3958,
12,
2890,
16,
1904,
16,
3958,
4672,
468,
2296,
8493,
20385,
468,
92,
3813,
92,
294,
25449,
309,
1904,
63,
20,
65,
486,
316,
21312,
5,
15,
4278,
1904,
273,
6501,
397,
1904,
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3958,
12,
2890,
16,
1904,
16,
3958,
4672,
468,
2296,
8493,
20385,
468,
92,
3813,
92,
294,
25449,
309,
1904,
63,
20,
65,
486,
316,
21312,
5,
15,
4278,
1904,
273,
6501,
397,
1904,
365,
... |
print attribute + " "+ args | def on_quickadd_activate(self, widget): text = self.quickadd_entry.get_text() due_date = no_date defer_date = no_date if text: tags, notagonly = self.get_selected_tags() # Get tags in the title #NOTE: the ?: tells regexp that the first one is # a non-capturing group, so it must not be returned # to findall. http://www.... | 4a721d16dc199b13c06c71ef66efb7b4bc1ee01f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/4a721d16dc199b13c06c71ef66efb7b4bc1ee01f/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
19525,
1289,
67,
10014,
12,
2890,
16,
3604,
4672,
977,
273,
365,
18,
19525,
1289,
67,
4099,
18,
588,
67,
955,
1435,
6541,
67,
712,
273,
1158,
67,
712,
2220,
67,
712,
273,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19525,
1289,
67,
10014,
12,
2890,
16,
3604,
4672,
977,
273,
365,
18,
19525,
1289,
67,
4099,
18,
588,
67,
955,
1435,
6541,
67,
712,
273,
1158,
67,
712,
2220,
67,
712,
273,
11... | |
g = Generator(s, mangle_from_=0) | g = Generator(s, mangle_from_=False) | def test_dont_mangle_from(self): s = StringIO() g = Generator(s, mangle_from_=0) g.flatten(self.msg) self.assertEqual(s.getvalue(), """\ | 1abdc903fc08a89b4695728d372aaf3594fcb8c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1abdc903fc08a89b4695728d372aaf3594fcb8c8/test_email.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
72,
1580,
67,
81,
4341,
67,
2080,
12,
2890,
4672,
272,
273,
15777,
1435,
314,
273,
10159,
12,
87,
16,
312,
4341,
67,
2080,
67,
33,
8381,
13,
314,
18,
16940,
12,
2890,
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
72,
1580,
67,
81,
4341,
67,
2080,
12,
2890,
4672,
272,
273,
15777,
1435,
314,
273,
10159,
12,
87,
16,
312,
4341,
67,
2080,
67,
33,
8381,
13,
314,
18,
16940,
12,
2890,
18,
... |
VS.IOmessage (2,"Oswald","Privateer",self.msgColor+"Target "+unit.getUnitFullName(self.jump)+" using the self.player.commAnimation("com_tutorial_oswald.ani") self.player.commAnimation("com_tutorial_oswald.ani") self.timer = VS.GetGameTime()+4 | VS.IOmessage (5,"Oswald","Privateer",self.msgColor+"Target "+unit.getUnitFullName(self.jump)+" navigation point using the self.sequence = [[0,4,0],[5,6,0]] self.speech = ["com_tutorial_oswald/oswald_spec_01.ogg", ""] self.talktime = VS.GetGameTime() self.timer = VS.GetGameTime()+12 | def practiceSpec (self): # practice intro if (self.practice==0): #self.jump = universe.getRandomJumppoint() self.jump = unit.getUnitByName('JumpToOldziey') nam = unit.getUnitFullName(self.jump) self.objective = VS.addObjective("Target %s" % nam) self.objectives+=[int(self.objective)] VS.IOmessage (0,"Oswald","Privateer... | 66c46e79ea501cbc68b49d8dd0a03a57988f1683 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2883/66c46e79ea501cbc68b49d8dd0a03a57988f1683/quest_tutorial.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27164,
1990,
261,
2890,
4672,
468,
27164,
13079,
309,
261,
2890,
18,
84,
14266,
1812,
631,
20,
4672,
468,
2890,
18,
24574,
273,
29235,
18,
588,
8529,
26743,
1153,
1435,
365,
18,
24574,
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,
27164,
1990,
261,
2890,
4672,
468,
27164,
13079,
309,
261,
2890,
18,
84,
14266,
1812,
631,
20,
4672,
468,
2890,
18,
24574,
273,
29235,
18,
588,
8529,
26743,
1153,
1435,
365,
18,
24574,
2... |
EDocSelf.jtc = EDocSelf.jcb.getEditor().getEditorComponent() def remove(EDocSelf, offs, len): if not EDocSelf.selecting: javax.swing.text.PlainDocument.remove(EDocSelf, offs, len) def insertString(EDocSelf, offs, string, a): if not EDocSelf.selecting: javax.swing.text.PlainDocument.insertString(EDocSelf, offs,... | resizeLinear = fixedResizeLinear | def __init__(EDocSelf, j, m, d): EDocSelf.jcb = j EDocSelf.cbm = m EDocSelf.dock = d # the dock the DropDownBox is in # flag to indicate that we're selecitng something so it doesn't restarnt on next letter EDocSelf.selecting = false EDocSelf.currentOffs = 0 # the current value of offs # get the JTextComponent EDocSelf... | 8af652f92c958a612eb017e220064d457d58bae7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2706/8af652f92c958a612eb017e220064d457d58bae7/guessfixer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
41,
1759,
10084,
16,
525,
16,
312,
16,
302,
4672,
512,
1759,
10084,
18,
78,
7358,
273,
525,
512,
1759,
10084,
18,
7358,
81,
273,
312,
512,
1759,
10084,
18,
72,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
41,
1759,
10084,
16,
525,
16,
312,
16,
302,
4672,
512,
1759,
10084,
18,
78,
7358,
273,
525,
512,
1759,
10084,
18,
7358,
81,
273,
312,
512,
1759,
10084,
18,
72,
9... |
self.pane_position = self.main_hpaned.get_position() | def on_main_window_configure_event(self, window, event): """ Saving window size to avoid losing data when it gets destroyed """ self.window_width, self.window_height = self.main_window.get_size() self.window_posx, self.window_posy = self.main_window.get_position() self.pane_position = self.main_hpaned.get_position() | 6f9f2c0f8d93d8b9b366e6ac9e4d614dd02826f9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/735/6f9f2c0f8d93d8b9b366e6ac9e4d614dd02826f9/pyrenamer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
5254,
67,
5668,
67,
14895,
67,
2575,
12,
2890,
16,
2742,
16,
871,
4672,
3536,
348,
5339,
2742,
963,
358,
4543,
437,
2470,
501,
1347,
518,
5571,
17689,
3536,
365,
18,
5668,
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,
603,
67,
5254,
67,
5668,
67,
14895,
67,
2575,
12,
2890,
16,
2742,
16,
871,
4672,
3536,
348,
5339,
2742,
963,
358,
4543,
437,
2470,
501,
1347,
518,
5571,
17689,
3536,
365,
18,
5668,
67,... | |
self.temperature = self.conScan.Tsam.mean() | def _setBySpec(self): """Set the settings for the set from the considered pyspec scan object | 8862dcf26a4225de67d49c677cfa7010b7a8e0ce /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8436/8862dcf26a4225de67d49c677cfa7010b7a8e0ce/transformations.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
858,
1990,
12,
2890,
4672,
3536,
694,
326,
1947,
364,
326,
444,
628,
326,
7399,
21027,
705,
4135,
733,
2,
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,
542,
858,
1990,
12,
2890,
4672,
3536,
694,
326,
1947,
364,
326,
444,
628,
326,
7399,
21027,
705,
4135,
733,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
id = genObjectId(title) | id = 'w_' + genObjectId(title) | def manage_addWidget(klass, container, id="", title=None, REQUEST=None, **kwargs): """Add widget""" if not title: title = str(klass) if not id: id = genObjectId(title) if id=='respondent': # reserved id idSuffix = '_w' # TODO: refactor SurveyAnswer and remove this workaround else: idSuffix = '' while (id+idSuffix in c... | c76d098a5528b120b97204f0f81787018b719087 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/c76d098a5528b120b97204f0f81787018b719087/Widget.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
1289,
4609,
12,
22626,
16,
1478,
16,
612,
1546,
3113,
2077,
33,
7036,
16,
12492,
33,
7036,
16,
2826,
4333,
4672,
3536,
986,
3604,
8395,
309,
486,
2077,
30,
2077,
273,
609,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10680,
67,
1289,
4609,
12,
22626,
16,
1478,
16,
612,
1546,
3113,
2077,
33,
7036,
16,
12492,
33,
7036,
16,
2826,
4333,
4672,
3536,
986,
3604,
8395,
309,
486,
2077,
30,
2077,
273,
609,
1... |
out.writerow([ip, self.idhex, self.nickname, self.last_tested, True, self.exit_policy(), list(self.working_ports), list(self.failed_ports)]) | out.writerow([ip self.idhex, self.nickname, self.last_tested, not self.stale, self.exit_policy(), list(self.working_ports), list(self.failed_ports)]) | def export_csv(self, out): """ Export record in CSV format, given a Python csv.writer instance. """ # If actual_ip is set, it differs from router.ip (advertised ExitAddress). ip = self.actual_ip if self.actual_ip else self.ip out.writerow([ip, self.idhex, self.nickname, self.last_tested, True, self.exit_policy(), list... | 8207708f4aacc526b714231b94c38c72115a641e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9986/8207708f4aacc526b714231b94c38c72115a641e/torbel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
6715,
12,
2890,
16,
596,
4672,
3536,
11054,
1409,
316,
10381,
740,
16,
864,
279,
6600,
6101,
18,
6299,
791,
18,
3536,
468,
971,
3214,
67,
625,
353,
444,
16,
518,
21944,
628,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3359,
67,
6715,
12,
2890,
16,
596,
4672,
3536,
11054,
1409,
316,
10381,
740,
16,
864,
279,
6600,
6101,
18,
6299,
791,
18,
3536,
468,
971,
3214,
67,
625,
353,
444,
16,
518,
21944,
628,
... |
p = p.scaled(xsize, ysize, Qt.IgnoreAspectRatio, Qt.SmoothTransformation) | p = p.scaled(xsize, ysize, Qt.IgnoreAspectRatio, Qt.SmoothTransformation) | def __init__(self, data, encoding, x0, y0, x1, y1, xsize, ysize): p = QPixmap() p.loadFromData(data, encoding, Qt.AutoColor) w, h = p.width(), p.height() p = p.copy(x0, y0, min(w, x1-x0), min(h, y1-y0)) if p.width() != xsize or p.height() != ysize: p = p.scaled(xsize, ysize, Qt.IgnoreAspectRatio, Qt.SmoothTransformatio... | 7d41e55dca63f9cf8c624b6a2e102e77d191e8fc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/7d41e55dca63f9cf8c624b6a2e102e77d191e8fc/text.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
501,
16,
2688,
16,
619,
20,
16,
677,
20,
16,
619,
21,
16,
677,
21,
16,
619,
1467,
16,
677,
1467,
4672,
293,
273,
2238,
21816,
1458,
1435,
293,
18,
94... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
501,
16,
2688,
16,
619,
20,
16,
677,
20,
16,
619,
21,
16,
677,
21,
16,
619,
1467,
16,
677,
1467,
4672,
293,
273,
2238,
21816,
1458,
1435,
293,
18,
94... |
if isdir(dst): dst = os.path.join(dst, basename(src)) elif exists(dst): | if os.path.isdir(dst): dst = os.path.join(dst, os.path.basename(src)) elif os.path.exists(dst): | def move (src, dst): """move src to dst, possibly overwriting file2""" from os.path import exists, isfile, isdir, basename, dirname import errno if not isfile(src): raise IOError, "can't move %s: not a regular file" % `src` if isdir(dst): dst = os.path.join(dst, basename(src)) elif exists(dst): raise IOError, "can't ... | 3d7364bd19456d652ebe40dffc593a436396d1a3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/3d7364bd19456d652ebe40dffc593a436396d1a3/adzap2wc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
261,
4816,
16,
3046,
4672,
3536,
8501,
1705,
358,
3046,
16,
10016,
23492,
585,
22,
8395,
628,
1140,
18,
803,
1930,
1704,
16,
8814,
16,
9783,
16,
4882,
16,
4283,
1930,
8402,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3635,
261,
4816,
16,
3046,
4672,
3536,
8501,
1705,
358,
3046,
16,
10016,
23492,
585,
22,
8395,
628,
1140,
18,
803,
1930,
1704,
16,
8814,
16,
9783,
16,
4882,
16,
4283,
1930,
8402,
225,
... |
% {'path': self.theme_file_path}) | % {'path': self.theme_file_path, 'view_mode': view_mode, 'control_visibility': control_visibility}) | def __init__(self, *args): html4css1.HTMLTranslator.__init__(self, *args) #insert S5-specific stylesheet and script stuff: self.theme_file_path = None self.setup_theme() self.stylesheet.append(self.s5_stylesheet_template % {'path': self.theme_file_path}) if not self.document.settings.current_slide: self.stylesheet.appe... | 2638d51d0b3ab1ad4ff44ff40054ae85f5a5d2bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/2638d51d0b3ab1ad4ff44ff40054ae85f5a5d2bc/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
1729,
24,
5212,
21,
18,
4870,
12233,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
13,
468,
6387,
348,
25,
17,
12524,
13820,
471,
2728,
107... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
380,
1968,
4672,
1729,
24,
5212,
21,
18,
4870,
12233,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
13,
468,
6387,
348,
25,
17,
12524,
13820,
471,
2728,
107... |
print("received message: ") print(msg) | def run(self): self.running = True while (self.running): msg, env = self.cc.group_recvmsg(False) if msg: print("received message: ") print(msg) answer = self.handle_msg(msg); print("sending answer: ") print(answer) self.cc.group_reply(env, answer) print("answer sent") else: self.running = False | 2c82b2107e8d8f96bf2a222a40fa374d54f5d0e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6792/2c82b2107e8d8f96bf2a222a40fa374d54f5d0e9/bind-cfgd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
365,
18,
8704,
273,
1053,
1323,
261,
2890,
18,
8704,
4672,
1234,
16,
1550,
273,
365,
18,
952,
18,
1655,
67,
18334,
3576,
12,
8381,
13,
309,
1234,
30,
5803,
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,
1086,
12,
2890,
4672,
365,
18,
8704,
273,
1053,
1323,
261,
2890,
18,
8704,
4672,
1234,
16,
1550,
273,
365,
18,
952,
18,
1655,
67,
18334,
3576,
12,
8381,
13,
309,
1234,
30,
5803,
273,
... | |
WedgeLabel3d._ydepth_3d = self._ydepth_3d | checkLabelOverlap = self.checkLabelOverlap | def _checkDXY(self,ba): if ba[0]=='n': if not hasattr(self,'_ody'): self._ody = self.dy self.dy = -self._ody + self._ydepth_3d | 6b5f4e0548b57f023855df90ac9f9d79f8f033ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/6b5f4e0548b57f023855df90ac9f9d79f8f033ca/piecharts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
40,
8546,
12,
2890,
16,
12124,
4672,
309,
9846,
63,
20,
65,
18920,
82,
4278,
309,
486,
3859,
12,
2890,
11189,
67,
973,
11,
4672,
365,
6315,
973,
273,
365,
18,
15680,
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
40,
8546,
12,
2890,
16,
12124,
4672,
309,
9846,
63,
20,
65,
18920,
82,
4278,
309,
486,
3859,
12,
2890,
11189,
67,
973,
11,
4672,
365,
6315,
973,
273,
365,
18,
15680,
365,
... |
defaults = {'name' : course.name, 'description' : course.description} | defaults = {'name' : course.name, 'description' : course.description, 'instructor' : course.instructor.id} | def edit_form(self,course): | 619bb712c5ec2889170fac7708bd66a32b9bc37b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5854/619bb712c5ec2889170fac7708bd66a32b9bc37b/controllers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
67,
687,
12,
2890,
16,
5566,
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,
3874,
67,
687,
12,
2890,
16,
5566,
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,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.