rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
try: imapobj.select(self.getfullname()) except imapobj.readonly: | imapobj.select(self.getfullname(),readonly=1) if not 'd' in imapobj.myrights(self.getfullname())[1][0].split()[1]: | def deletemessages_noconvert(self, uidlist): # Weed out ones not in self.messagelist uidlist = [uid for uid in uidlist if uid in self.messagelist] if not len(uidlist): return | c305d63e005c8ca1ae57f1ec54f023e0d0069824 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5335/c305d63e005c8ca1ae57f1ec54f023e0d0069824/IMAP.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6578,
351,
1753,
67,
82,
16550,
1097,
12,
2890,
16,
4555,
1098,
4672,
468,
1660,
329,
596,
5945,
486,
316,
365,
18,
81,
403,
346,
5449,
4555,
1098,
273,
306,
1911,
364,
4555,
316,
4555... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6578,
351,
1753,
67,
82,
16550,
1097,
12,
2890,
16,
4555,
1098,
4672,
468,
1660,
329,
596,
5945,
486,
316,
365,
18,
81,
403,
346,
5449,
4555,
1098,
273,
306,
1911,
364,
4555,
316,
4555... |
absolute, withFiles) | absolute, withFiles, withFileContents) | def addEntry(self, item, withFiles): (name, (oldVersion, oldFlavor), (newVersion, newFlavor), absolute) = \ item | c1fb30ff97c24803d5cb35db4bc1d6376529b6fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/c1fb30ff97c24803d5cb35db4bc1d6376529b6fa/netserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
1622,
12,
2890,
16,
761,
16,
598,
2697,
4672,
261,
529,
16,
261,
1673,
1444,
16,
1592,
2340,
9444,
3631,
261,
2704,
1444,
16,
394,
2340,
9444,
3631,
4967,
13,
273,
521,
761,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
1622,
12,
2890,
16,
761,
16,
598,
2697,
4672,
261,
529,
16,
261,
1673,
1444,
16,
1592,
2340,
9444,
3631,
261,
2704,
1444,
16,
394,
2340,
9444,
3631,
4967,
13,
273,
521,
761,
2,
... |
else: flip_image = False | def AddNewActor(self, pubsub_evt): """ Create surface actor, save into project and send it to viewer. """ surface_data = pubsub_evt.data | a2f19a0049d9ec69b97156cc0d72d3f341354750 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/a2f19a0049d9ec69b97156cc0d72d3f341354750/surface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
1908,
17876,
12,
2890,
16,
23288,
67,
73,
11734,
4672,
3536,
1788,
9034,
8327,
16,
1923,
1368,
1984,
471,
1366,
518,
358,
14157,
18,
3536,
9034,
67,
892,
273,
23288,
67,
73,
11734,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
1908,
17876,
12,
2890,
16,
23288,
67,
73,
11734,
4672,
3536,
1788,
9034,
8327,
16,
1923,
1368,
1984,
471,
1366,
518,
358,
14157,
18,
3536,
9034,
67,
892,
273,
23288,
67,
73,
11734,... | |
pass | entries = None if entries: for e in entries: changeset.addEntry(e, changeset.revision) | def _applyChangeset(self, changeset): """ Do the actual work of applying the changeset to the working copy. """ | 28ff3cbc6f4d10b29d7e05dbea641a3566272b75 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5981/28ff3cbc6f4d10b29d7e05dbea641a3566272b75/source.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9010,
29743,
12,
2890,
16,
22463,
4672,
3536,
2256,
326,
3214,
1440,
434,
13650,
326,
22463,
358,
326,
5960,
1610,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9010,
29743,
12,
2890,
16,
22463,
4672,
3536,
2256,
326,
3214,
1440,
434,
13650,
326,
22463,
358,
326,
5960,
1610,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
buildno = int(buildno) | def _sys_version(): """ Returns a parsed version of Python's sys.version as tuple (version, buildno, builddate, compiler) referring to the Python version, build number, build date/time as string and the compiler identification string. Note that unlike the Python sys.version, the returned value for the Python version will always include the patchlevel (it defaults to '.0'). """ global _sys_version_cache if _sys_version_cache is not None: return _sys_version_cache version, buildno, builddate, buildtime, compiler = \ _sys_version_parser.match(sys.version).groups() buildno = int(buildno) builddate = builddate + ' ' + buildtime l = string.split(version, '.') if len(l) == 2: l.append('0') version = string.join(l, '.') _sys_version_cache = (version, buildno, builddate, compiler) return _sys_version_cache | 0da556dc7655f5ca2fde904a87483981ab9f8a69 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0da556dc7655f5ca2fde904a87483981ab9f8a69/platform.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9499,
67,
1589,
13332,
225,
3536,
2860,
279,
2707,
1177,
434,
6600,
1807,
2589,
18,
1589,
487,
3193,
261,
1589,
16,
1361,
2135,
16,
25666,
330,
449,
340,
16,
5274,
13,
1278,
20245,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9499,
67,
1589,
13332,
225,
3536,
2860,
279,
2707,
1177,
434,
6600,
1807,
2589,
18,
1589,
487,
3193,
261,
1589,
16,
1361,
2135,
16,
25666,
330,
449,
340,
16,
5274,
13,
1278,
20245,
... | |
self._vte.set_cursor_blinks = (self.conf.cursor_blink) | self._vte.set_cursor_blinks (self.conf.cursor_blink) | def reconfigure_vte (self): # Set our emulation self._vte.set_emulation (self.conf.emulation) | 7af9c6edbde755f4dd39ec37ba21c704e5ffc9ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1032/7af9c6edbde755f4dd39ec37ba21c704e5ffc9ea/terminatorterm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
14895,
67,
90,
736,
261,
2890,
4672,
468,
1000,
3134,
801,
6234,
365,
6315,
90,
736,
18,
542,
67,
351,
6234,
261,
2890,
18,
3923,
18,
351,
6234,
13,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
14895,
67,
90,
736,
261,
2890,
4672,
468,
1000,
3134,
801,
6234,
365,
6315,
90,
736,
18,
542,
67,
351,
6234,
261,
2890,
18,
3923,
18,
351,
6234,
13,
2,
-100,
-100,
-100,
-100,
-... |
raise ValueError, "overflow in number field" | raise ValueError("overflow in number field") | def itn(n, digits=8, posix=False): """Convert a python number to a number field. """ # POSIX 1003.1-1988 requires numbers to be encoded as a string of # octal digits followed by a null-byte, this allows values up to # (8**(digits-1))-1. GNU tar allows storing numbers greater than # that if necessary. A leading 0200 byte indicates this particular # encoding, the following digits-1 bytes are a big-endian # representation. This allows values up to (256**(digits-1))-1. if 0 <= n < 8 ** (digits - 1): s = "%0*o" % (digits - 1, n) + NUL else: if posix: raise ValueError, "overflow in number field" if n < 0: # XXX We mimic GNU tar's behaviour with negative numbers, # this could raise OverflowError. n = struct.unpack("L", struct.pack("l", n))[0] s = "" for i in xrange(digits - 1): s = chr(n & 0377) + s n >>= 8 s = chr(0200) + s return s | 9d576e732e0c14bd37ecb65d8001d6f596cc8566 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9d576e732e0c14bd37ecb65d8001d6f596cc8566/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
518,
82,
12,
82,
16,
6815,
33,
28,
16,
16366,
33,
8381,
4672,
3536,
2723,
279,
5790,
1300,
358,
279,
1300,
652,
18,
3536,
468,
13803,
31773,
2130,
23,
18,
21,
17,
3657,
5482,
4991,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
518,
82,
12,
82,
16,
6815,
33,
28,
16,
16366,
33,
8381,
4672,
3536,
2723,
279,
5790,
1300,
358,
279,
1300,
652,
18,
3536,
468,
13803,
31773,
2130,
23,
18,
21,
17,
3657,
5482,
4991,
5... |
def handle_events(delay): | def handle_events(self, delay): | def handle_events(delay): """ This method gets the time in which to process GUI events, in seconds. If the GUI toolkit is loaded, run it for the specified delay and return True. If it isn't loaded, return False immediately. """ raise NotImplementedError("Abstract method") | 8be08826167f135125800846036b1b07ae964b2c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10932/8be08826167f135125800846036b1b07ae964b2c/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
5989,
12,
2890,
16,
4624,
4672,
3536,
1220,
707,
5571,
326,
813,
316,
1492,
358,
1207,
10978,
2641,
16,
316,
3974,
18,
971,
326,
10978,
5226,
8691,
353,
4203,
16,
1086,
518,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
5989,
12,
2890,
16,
4624,
4672,
3536,
1220,
707,
5571,
326,
813,
316,
1492,
358,
1207,
10978,
2641,
16,
316,
3974,
18,
971,
326,
10978,
5226,
8691,
353,
4203,
16,
1086,
518,
... |
res = re.search(expr, os.popen('/sbin/ldconfig -p 2>/dev/null').read()) | f = os.popen('/sbin/ldconfig -p 2>/dev/null') try: data = f.read() finally: f.close() res = re.search(expr, data) | def _findSoname_ldconfig(name): import struct if struct.calcsize('l') == 4: machine = os.uname()[4] + '-32' else: machine = os.uname()[4] + '-64' mach_map = { 'x86_64-64': 'libc6,x86-64', 'ppc64-64': 'libc6,64bit', 'sparc64-64': 'libc6,64bit', 's390x-64': 'libc6,64bit', 'ia64-64': 'libc6,IA-64', } abi_type = mach_map.get(machine, 'libc6') | 81fd8040341a991b482bf3fecec454286274ef79 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/81fd8040341a991b482bf3fecec454286274ef79/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
55,
265,
339,
67,
1236,
1425,
12,
529,
4672,
1930,
1958,
309,
1958,
18,
12448,
1467,
2668,
80,
6134,
422,
1059,
30,
5228,
273,
1140,
18,
318,
339,
1435,
63,
24,
65,
397,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
55,
265,
339,
67,
1236,
1425,
12,
529,
4672,
1930,
1958,
309,
1958,
18,
12448,
1467,
2668,
80,
6134,
422,
1059,
30,
5228,
273,
1140,
18,
318,
339,
1435,
63,
24,
65,
397,
2... |
if h[0] == 'P' and h[1] in '123456' and h[2] in ' \t\n\r': | if len(h) >= 3 and \ h[0] == 'P' and h[1] in '123456' and h[2] in ' \t\n\r': | def test_pnm(h, f): # PBM, PGM, PPM (portable {bit,gray,pix}map; together portable anymap) if h[0] == 'P' and h[1] in '123456' and h[2] in ' \t\n\r': return 'pnm' | cc073e5007dadddaee1978b2c6edcaa129979402 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/cc073e5007dadddaee1978b2c6edcaa129979402/imghdr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
7449,
81,
12,
76,
16,
284,
4672,
468,
20819,
49,
16,
22116,
49,
16,
453,
12728,
261,
655,
429,
288,
3682,
16,
22440,
16,
14861,
97,
1458,
31,
9475,
1756,
429,
1281,
1458,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7449,
81,
12,
76,
16,
284,
4672,
468,
20819,
49,
16,
22116,
49,
16,
453,
12728,
261,
655,
429,
288,
3682,
16,
22440,
16,
14861,
97,
1458,
31,
9475,
1756,
429,
1281,
1458,
1... |
return SampleAuto(server, sensor, *params) | return SampleAuto(inform_callback, sensor, *params) | def get_strategy(strategyName, server, sensor, *params): """Factory method to create a suitable strategy object given the necessary details. FIXME: Reimplement using singleton factory which new strategies can register with. You can probably register lambda functions to create the objects. """ if strategyName not in SampleStrategy.SAMPLING_LOOKUP_REV: raise ValueError("Unknown sampling strategy '%s'." " Known strategies are %s." % (strategyName, SampleStrategy.SAMPLING_LOOKUP.values())) | b524db5bfde0db2717f1c17b14e64514805c7ecf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10400/b524db5bfde0db2717f1c17b14e64514805c7ecf/sampling.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
14914,
12,
14914,
461,
16,
1438,
16,
10583,
16,
380,
2010,
4672,
3536,
1733,
707,
358,
752,
279,
10631,
6252,
733,
864,
326,
4573,
3189,
18,
9852,
30,
868,
10442,
1450,
6396,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14914,
12,
14914,
461,
16,
1438,
16,
10583,
16,
380,
2010,
4672,
3536,
1733,
707,
358,
752,
279,
10631,
6252,
733,
864,
326,
4573,
3189,
18,
9852,
30,
868,
10442,
1450,
6396,
... |
mime_type, enc = guess_content_type(f_name, str(value), self.default_content_type) | mime_type, enc = guess_content_type(f_name, str(value), mime_type) | def _process_input(self, value, default=None, \ mime_type=None, **kwargs): # We also need to handle the case where there is a baseUnit # for this field containing a valid set of data that would # not be reuploaded in a subsequent edit, this is basically # migrated from the old BaseObject.set method if type(value) != StringType: if ((isinstance(value, FileUpload) and value.filename != '') or (isinstance(value, FileType) and value.name != '')): #OK, its a file, is it empty? f_name = '' if isinstance(value, FileUpload): f_name = value.filename if isinstance(value, FileType): f_name = value.name value = value.read() if mime_type is None: mime_type, enc = guess_content_type(f_name, value, self.default_content_type) value.seek(-1, 2) size = value.tell() value.seek(0) if size == 0: # This new file has no length, so we keep # the orig return default #XXX missing mimetype return value, mime_type | a2a548380985300f23c238b6fe586e2bdc9a3922 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/a2a548380985300f23c238b6fe586e2bdc9a3922/Field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
67,
2630,
12,
2890,
16,
460,
16,
805,
33,
7036,
16,
521,
4892,
67,
723,
33,
7036,
16,
2826,
4333,
4672,
468,
1660,
2546,
1608,
358,
1640,
326,
648,
1625,
1915,
353,
279,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
67,
2630,
12,
2890,
16,
460,
16,
805,
33,
7036,
16,
521,
4892,
67,
723,
33,
7036,
16,
2826,
4333,
4672,
468,
1660,
2546,
1608,
358,
1640,
326,
648,
1625,
1915,
353,
279,
1... |
for dev in instance.disks: | for idx, dev in enumerate(instance.disks): | def _ExecD8Secondary(self, feedback_fn): """Replace the secondary node for drbd8. | d418ebfb87b39874d8ab5c5e0243201049c0b25f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/d418ebfb87b39874d8ab5c5e0243201049c0b25f/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1905,
40,
28,
14893,
12,
2890,
16,
10762,
67,
4293,
4672,
3536,
5729,
326,
9946,
756,
364,
5081,
16410,
28,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1905,
40,
28,
14893,
12,
2890,
16,
10762,
67,
4293,
4672,
3536,
5729,
326,
9946,
756,
364,
5081,
16410,
28,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
path = self.cfg.base_release path = os.path.join(path,'dybgaudi/DybRelease/cmt') | rp = self.cfg.release_package if not rp: return if rp[0] != '/': br = self.cfg.base_release rp = os.path.join(br,rp) path = os.path.join(rp,'cmt') | def _setup_base(self): 'Set up the base release' self._setup_cmt() path = self.cfg.base_release path = os.path.join(path,'dybgaudi/DybRelease/cmt') sys.stderr.write('source setup.sh in %s\n'%path) self.env = source('setup.sh',env=self.env,path=path) return | a29f9cb995bdf48e03d928383ed97371193cd1b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9874/a29f9cb995bdf48e03d928383ed97371193cd1b3/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8401,
67,
1969,
12,
2890,
4672,
296,
694,
731,
326,
1026,
3992,
11,
365,
6315,
8401,
67,
71,
1010,
1435,
8715,
273,
365,
18,
7066,
18,
9340,
67,
5610,
309,
486,
8715,
30,
327,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8401,
67,
1969,
12,
2890,
4672,
296,
694,
731,
326,
1026,
3992,
11,
365,
6315,
8401,
67,
71,
1010,
1435,
8715,
273,
365,
18,
7066,
18,
9340,
67,
5610,
309,
486,
8715,
30,
327,
3... |
return (False, always) | return (False, False, always) | def add_text(page = None, addText = None, summary = None, regexSkip = None, regexSkipUrl = None, always = False, up = False, putText = True, oldTextGiven = None): if not addText: raise NoEnoughData('You have to specify what text you want to add!') if not summary: summary = wikipedia.setAction(wikipedia.translate(wikipedia.getSite(), msg) % addText) # When a page is tagged as "really well written" it has a star in the interwiki links. # This is a list of all the templates used (in regex format) to make the stars appear. starsList = ['link[ _]fa', 'link[ _]adq', 'enllaç[ _]ad', 'link[ _]ua', 'legătură[ _]af', 'destacado', 'ua', 'liên k[ _]t[ _]chọn[ _]lọc'] errorCount = 0 site = wikipedia.getSite() # /wiki/ is not always the right path in non-wiki projects pathWiki = site.family.nicepath(site.lang) if putText: wikipedia.output(u'Loading %s...' % page.title()) if oldTextGiven == None: try: text = page.get() except wikipedia.NoPage: wikipedia.output(u"%s doesn't exist, skip!" % page.title()) return (False, always) # continue except wikipedia.IsRedirectPage: wikipedia.output(u"%s is a redirect, skip!" % page.title()) return (False, always) # continue else: text = oldTextGiven # Understand if the bot has to skip the page or not # In this way you can use both -except and -excepturl if regexSkipUrl != None: url = '%s%s' % (pathWiki, page.urlname()) result = re.findall(regexSkipUrl, site.getUrl(url)) if result != []: wikipedia.output(u'Exception! regex (or word) used with -exceptUrl is in the page. Skip!') return (False, always) # continue if regexSkip != None: result = re.findall(regexSkip, text) if result != []: wikipedia.output(u'Exception! regex (or word) used with -except is in the page. Skip!') return (False, always) # continue # If not up, text put below if not up: newtext = text # Getting the categories categoriesInside = wikipedia.getCategoryLinks(newtext, site) # Deleting the categories newtext = wikipedia.removeCategoryLinks(newtext, site) # Getting the interwiki interwikiInside = wikipedia.getLanguageLinks(newtext, site) # Removing the interwiki newtext = wikipedia.removeLanguageLinks(newtext, site) #nn got a message between the categories and the iw's and they want to keep it there, first remove it if (site.language()==u'nn'): newtext = newtext.replace(nn_iw_msg, '') # Translating the \\n into binary \n addText = addText.replace('\\n', '\n') # Adding the text newtext += u"\n%s" % addText # Reputting the categories newtext = wikipedia.replaceCategoryLinks(newtext, categoriesInside, site, True) #Put the nn iw message back if (site.language()==u'nn'): newtext = newtext + u'\n' + nn_iw_msg # Dealing the stars' issue starsListInPage = list() for star in starsList: regex = re.compile('(\{\{(?:template:|)%s\|.*?\}\}\n)' % star, re.I) risultato = regex.findall(newtext) if risultato != []: newtext = regex.sub('', newtext) for element in risultato: newtext += '\n%s' % element # Adding the interwiki newtext = wikipedia.replaceLanguageLinks(newtext, interwikiInside, site) # If instead the text must be added above... else: newtext = addText + '\n' + text if putText and text != newtext: wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % page.title()) wikipedia.showDiff(text, newtext) choice = '' # Let's put the changes. while 1: # If someone load it as module, maybe it's not so useful to put the text in the page if putText: if not always: choice = wikipedia.inputChoice(u'Do you want to accept these changes?', ['Yes', 'No', 'All'], ['y', 'N', 'a'], 'N') if choice == 'a': always = True if choice == 'n': return (False, always) if choice == 'y' or always: try: if always: page.put(newtext, summary) else: page.put_async(newtext, summary) except wikipedia.EditConflict: wikipedia.output(u'Edit conflict! skip!') return (False, always) except wikipedia.ServerError: errorCount += 1 if errorCount < 5: wikipedia.output(u'Server Error! Wait..') time.sleep(3) continue else: raise wikipedia.ServerError(u'Fifth Server Error!') except wikipedia.SpamfilterError, e: wikipedia.output(u'Cannot change %s because of blacklist entry %s' % (page.title(), e.url)) return (False, always) except wikipedia.PageNotSaved, error: wikipedia.output(u'Error putting page: %s' % error.args) return (False, always) except wikipedia.LockedPage: wikipedia.output(u'Skipping %s (locked page)' % page.title()) return (False, always) else: # Break only if the errors are one after the other... errorCount = 0 return (True, always) else: return (text, newtext, always) | de1028401404385f435bbea25b8acdf43ff4df22 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/de1028401404385f435bbea25b8acdf43ff4df22/add_text.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
955,
12,
2433,
273,
599,
16,
25796,
273,
599,
16,
4916,
273,
599,
16,
3936,
6368,
273,
599,
16,
3936,
6368,
1489,
273,
599,
16,
3712,
273,
1083,
16,
731,
273,
1083,
16,
1378... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
955,
12,
2433,
273,
599,
16,
25796,
273,
599,
16,
4916,
273,
599,
16,
3936,
6368,
273,
599,
16,
3936,
6368,
1489,
273,
599,
16,
3712,
273,
1083,
16,
731,
273,
1083,
16,
1378... |
_write_if_nonempty(public, private, variables, '<br />\n\n') | _write_if_nonempty(public, private, vars, '<br />\n\n') | def _write_var_details(self, public, private, variables, container, heading='Variable Details'): """ @return: The HTML code for a variable details table. This is used by L{_module_to_html} to describe the variables in a module; and by L{_class_to_html} to describe instance variables and class variables. @rtype: C{string} """ # Write the header if len(variables) == 0: return '' str = self._table_header(heading, 'details')+'</table>\n' _write_if_nonempty(public, private, variables, str) | 6ecda71cd0e7e4752ddec3a0c1619699a3092855 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/6ecda71cd0e7e4752ddec3a0c1619699a3092855/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
1401,
67,
6395,
12,
2890,
16,
1071,
16,
3238,
16,
3152,
16,
1478,
16,
11053,
2218,
3092,
21897,
11,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
279,
2190,
3189,
101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2626,
67,
1401,
67,
6395,
12,
2890,
16,
1071,
16,
3238,
16,
3152,
16,
1478,
16,
11053,
2218,
3092,
21897,
11,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
279,
2190,
3189,
101... |
filesegs, cvssegs = string.split(filets), string.split(timestamp) | if conflict and len(ismerge) ==1: filesegs, cvssegs = 1, 0 | def cvsFileLocallyModified(filename, timestamp): """ cvsFileLocallyModified -> modified, conflict """ filets = time.asctime(time.gmtime(os.stat(filename)[stat.ST_MTIME])) filesegs, cvssegs = string.split(filets), string.split(timestamp) # convert day to int to avoid zero padded differences filesegs[2], cvssegs[2] = int(filesegs[2]), int(cvssegs[2]) return ( filesegs != cvssegs, string.split(timestamp, '+')[0] == 'Result of merge') | 51465a7a04c596b02899565e3cacf4caff63217e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/51465a7a04c596b02899565e3cacf4caff63217e/CVSExplorer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
6904,
812,
1333,
1230,
4575,
12,
3459,
16,
2858,
4672,
3536,
225,
276,
6904,
812,
1333,
1230,
4575,
317,
4358,
16,
7546,
3536,
661,
2413,
273,
813,
18,
345,
21261,
12,
957,
18,
75... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
276,
6904,
812,
1333,
1230,
4575,
12,
3459,
16,
2858,
4672,
3536,
225,
276,
6904,
812,
1333,
1230,
4575,
317,
4358,
16,
7546,
3536,
661,
2413,
273,
813,
18,
345,
21261,
12,
957,
18,
75... |
if self.InterestDebug: print 'INTEREST DEBUG: removeInterest(): handle=%s, event=%s' % ( handle, event) | if self.__verbose(): print 'CR::INTEREST.removeInterest(handle=%s, event=%s, auto=%s)' % ( handle, event, auto) | def removeInterest(self, handle, event=None, auto=False): """ Stop looking in a (set of) zone(s) """ assert DoInterestManager.notify.debugCall() assert isinstance(handle, InterestHandle) existed = False if ((not auto) and (event is None)): event = self._getAnonymousEvent('removeInterest') handle = handle.asInt() if DoInterestManager._interests.has_key(handle): existed = True intState = DoInterestManager._interests[handle] if event: messenger.send(self._getRemoveInterestEvent(), [event, intState.parentId, intState.zoneIdList]) if intState.isPendingDelete(): self.notify.warning( 'removeInterest: interest %s already pending removal' % handle) # this interest is already pending delete, so let's just tack this # callback onto the list if event is not None: intState.addEvent(event) else: if len(intState.events) > 0: # we're not pending a removal, but we have outstanding events? # probably we are waiting for an add/alter complete. # should we send those events now? self.notify.warning('removeInterest: abandoning events: %s' % intState.events) intState.clearEvents() intState.state = InterestState.StatePendingDel if auto: self._considerRemoveInterest(handle) else: scopeId = self._getNextScopeId() intState.scope = scopeId if event is not None: intState.addEvent(event) self._sendRemoveInterest(handle, scopeId) if event is None: self._considerRemoveInterest(handle) if self.InterestDebug: print 'INTEREST DEBUG: removeInterest(): handle=%s, event=%s' % ( handle, event) else: DoInterestManager.notify.warning( "removeInterest: handle not found: %s" % (handle)) assert self.printInterestsIfDebug() return existed | 0ad3bac423d39b998827d489a97d947c4e85743a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/0ad3bac423d39b998827d489a97d947c4e85743a/DoInterestManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
29281,
12,
2890,
16,
1640,
16,
871,
33,
7036,
16,
3656,
33,
8381,
4672,
3536,
5131,
7849,
316,
279,
261,
542,
434,
13,
4157,
12,
87,
13,
3536,
1815,
2256,
29281,
1318,
18,
12336,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1206,
29281,
12,
2890,
16,
1640,
16,
871,
33,
7036,
16,
3656,
33,
8381,
4672,
3536,
5131,
7849,
316,
279,
261,
542,
434,
13,
4157,
12,
87,
13,
3536,
1815,
2256,
29281,
1318,
18,
12336,... |
regex = '\\\\(include|input){([^}]*)}', | regex = '\\\\(?:include|input){([^}]*)}', | def LaTeXScanner(fs = SCons.Node.FS.default_fs): """Return a prototype Scanner instance for scanning LaTeX source files""" ds = LaTeX(name = "LaTeXScanner", suffixes = '$LATEXSUFFIXES', path_variable = 'TEXINPUTS', regex = '\\\\(include|input){([^}]*)}', recursive = 0) return ds | 20d6ce929186e622a400dfa092ca3e30968a2022 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7126/20d6ce929186e622a400dfa092ca3e30968a2022/LaTeX.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21072,
21575,
60,
11338,
12,
2556,
273,
20487,
18,
907,
18,
4931,
18,
1886,
67,
2556,
4672,
3536,
990,
279,
4409,
19074,
791,
364,
21138,
21072,
21575,
60,
1084,
1390,
8395,
3780,
273,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21072,
21575,
60,
11338,
12,
2556,
273,
20487,
18,
907,
18,
4931,
18,
1886,
67,
2556,
4672,
3536,
990,
279,
4409,
19074,
791,
364,
21138,
21072,
21575,
60,
1084,
1390,
8395,
3780,
273,
2... |
(0.001368852970712986, 0.0041009402016725094, 0.012252436441829828, 0.036308782091905023, 0.10501923017634662, 0.28312883556311919, 0.63159685013597011, 0.95000000000000351) | (0.001368852970712986, 0.0041009402016725094, 0.012252436441829..., 0.03630878209190..., 0.10501923017634..., 0.28312883556311..., 0.6315968501359..., 0.95000000000000...) | def gamma(self): """ Return the vector of the kbar transitional probabilities. | 7fc5ba4dc150bd23de5f8fcf2510fac8a76c5136 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/7fc5ba4dc150bd23de5f8fcf2510fac8a76c5136/markov_multifractal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9601,
12,
2890,
4672,
3536,
2000,
326,
3806,
434,
326,
417,
3215,
6007,
287,
17958,
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,... | [
1,
1,
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,
9601,
12,
2890,
4672,
3536,
2000,
326,
3806,
434,
326,
417,
3215,
6007,
287,
17958,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return self._round_down(prec) | return -self._round_down(prec) | def _round_05up(self, prec): """Round down unless digit prec-1 is 0 or 5.""" if prec == 0 or self._int[prec-1] in '05': return self._round_up(prec) else: return self._round_down(prec) | f7a5e43b4a9f07fe2f0986b1d5636dfd5d160c72 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/f7a5e43b4a9f07fe2f0986b1d5636dfd5d160c72/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2260,
67,
6260,
416,
12,
2890,
16,
13382,
4672,
3536,
11066,
2588,
3308,
8035,
13382,
17,
21,
353,
374,
578,
1381,
12123,
309,
13382,
422,
374,
578,
365,
6315,
474,
63,
4036,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2260,
67,
6260,
416,
12,
2890,
16,
13382,
4672,
3536,
11066,
2588,
3308,
8035,
13382,
17,
21,
353,
374,
578,
1381,
12123,
309,
13382,
422,
374,
578,
365,
6315,
474,
63,
4036,
17,
... |
def SetLeader( self, value ) : | def SetLeader(self, value): | def SetLeader( self, value ) : assert not value or value in self.LEADERS self.Leader = value return self | 13865299ef9bc077be9a5eaa4326b7a30307d828 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3330/13865299ef9bc077be9a5eaa4326b7a30307d828/PropertySets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
15254,
12,
2890,
16,
460,
4672,
1815,
486,
460,
578,
460,
316,
365,
18,
900,
5483,
55,
365,
18,
15254,
273,
460,
327,
365,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
1000,
15254,
12,
2890,
16,
460,
4672,
1815,
486,
460,
578,
460,
316,
365,
18,
900,
5483,
55,
365,
18,
15254,
273,
460,
327,
365,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
worst = sorted(status_count.keys())[0] html = status_html(db, status_count) if link: html = '<a href="%s">%s</a>' % (link, html) return box(html, db.status_word[worst]) | shade = shade_from_status_count(status_count) html,tooltip = status_html(db, status_count, shade) precounted_box = box(html, shade, False, link, tooltip) return precounted_box | def status_precounted_box(db, status_count, link = None): """ Display a table within a box, representing the status count of the group of tests (e.g. 10 GOOD, 2 WARN, 3 FAIL) """ if not status_count: return box(None, None) worst = sorted(status_count.keys())[0] html = status_html(db, status_count) if link: html = '<a href="%s">%s</a>' % (link, html) return box(html, db.status_word[worst]) | 5958a8a4b9fbbddc47d7050825e700de71888f9f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/5958a8a4b9fbbddc47d7050825e700de71888f9f/display.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1267,
67,
1484,
1883,
329,
67,
2147,
12,
1966,
16,
1267,
67,
1883,
16,
1692,
273,
599,
4672,
3536,
9311,
279,
1014,
3470,
279,
3919,
16,
5123,
326,
1267,
1056,
434,
326,
1041,
434,
743... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1267,
67,
1484,
1883,
329,
67,
2147,
12,
1966,
16,
1267,
67,
1883,
16,
1692,
273,
599,
4672,
3536,
9311,
279,
1014,
3470,
279,
3919,
16,
5123,
326,
1267,
1056,
434,
326,
1041,
434,
743... |
if isinstance(kw, Keyword): kw.name = kw._get_name(kw.name, NonResolvingContext()) | if isinstance(kw, Keyword): kw.name = kw._get_name(kw.name) | def start_keyword(self, kw): if isinstance(kw, Keyword): # Doesn't match For or Parallel kw.name = kw._get_name(kw.name, NonResolvingContext()) LogSerializer.start_keyword(self, kw) | 076d8bf7a3a0cdff70ef78ad8ba9fb20075c01c6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7408/076d8bf7a3a0cdff70ef78ad8ba9fb20075c01c6/testdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
11041,
12,
2890,
16,
5323,
4672,
309,
1549,
12,
9987,
16,
18317,
4672,
225,
468,
9637,
82,
1404,
845,
2457,
578,
20203,
5323,
18,
529,
273,
5323,
6315,
588,
67,
529,
12,
9987,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
11041,
12,
2890,
16,
5323,
4672,
309,
1549,
12,
9987,
16,
18317,
4672,
225,
468,
9637,
82,
1404,
845,
2457,
578,
20203,
5323,
18,
529,
273,
5323,
6315,
588,
67,
529,
12,
9987,... |
utils.addPortalMessage(_(u'Unable to activate PAS plugin "recursive_groups".')) | utils.addPortalMessage(_(u"Unable to activate PAS plugin 'recursive_groups'.")) | def set_enable_nested_groups(self, value): acl = getToolByName(self.context, 'acl_users') plugins = acl.plugins if value: plugins.activatePlugin(IGroupsPlugin, 'recursive_groups') if 'recursive_groups' not in plugins.getAllPlugins('IGroupsPlugin')['active']: utils = getToolByName(context, 'plone_utils') utils.addPortalMessage(_(u'Unable to activate PAS plugin "recursive_groups".')) # move it to the top of the list while plugins.getAllPlugins('IGroupsPlugin')['active'].index('recursive_groups') > 0: plugins.movePluginsUp(IGroupsPlugin,['recursive_groups']) else: plugins.deactivatePlugin(IGroupsPlugin, 'recursive_groups') | 4c3ff5aec394857d53d3471f4e1f009e7e2edf7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12189/4c3ff5aec394857d53d3471f4e1f009e7e2edf7b/usergroups.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
7589,
67,
12985,
67,
4650,
12,
2890,
16,
460,
4672,
7895,
273,
336,
6364,
5911,
12,
2890,
18,
2472,
16,
296,
10150,
67,
5577,
6134,
4799,
273,
7895,
18,
8057,
309,
460,
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,
444,
67,
7589,
67,
12985,
67,
4650,
12,
2890,
16,
460,
4672,
7895,
273,
336,
6364,
5911,
12,
2890,
18,
2472,
16,
296,
10150,
67,
5577,
6134,
4799,
273,
7895,
18,
8057,
309,
460,
30,
... |
decoder = timeside.decoder.FileDecoder(item.file.path) | audio = os.path.join(os.path.dirname(__file__), item.file.path) decoder = timeside.decoder.FileDecoder(audio) | def item_export(self, request, public_id, extension): """Export a given media item in the specified format (OGG, FLAC, ...)""" | 5aa5286ce1fb06e7ab201eeb8964c2e872887247 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12043/5aa5286ce1fb06e7ab201eeb8964c2e872887247/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
761,
67,
6530,
12,
2890,
16,
590,
16,
1071,
67,
350,
16,
2710,
4672,
3536,
6144,
279,
864,
3539,
761,
316,
326,
1269,
740,
261,
13369,
43,
16,
31358,
2226,
16,
1372,
15574,
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,
761,
67,
6530,
12,
2890,
16,
590,
16,
1071,
67,
350,
16,
2710,
4672,
3536,
6144,
279,
864,
3539,
761,
316,
326,
1269,
740,
261,
13369,
43,
16,
31358,
2226,
16,
1372,
15574,
2,
-100,
... |
print >>sys.stderr, """USAGE: %s [options] | sys.stderr.write("""USAGE: %s [options] | def usage(): print >>sys.stderr, """USAGE: %s [options] Simple Terminal Programm for the serial port. options: -p, --port=PORT: port, a number, defualt = 0 or a device name -b, --baud=BAUD: baudrate, default 9600 -r, --rtscts: enable RTS/CTS flow control (default off) -x, --xonxoff: enable software flow control (default off) -e, --echo: enable local echo (default off) -c, --cr: disable CR -> CR+LF translation """ % sys.argv[0] | b786cd543c0d1d1d0891ed88728d89d9950c58cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10955/b786cd543c0d1d1d0891ed88728d89d9950c58cb/miniterm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
2589,
18,
11241,
18,
2626,
2932,
3660,
29550,
30,
738,
87,
306,
2116,
65,
4477,
18778,
13586,
81,
364,
326,
2734,
1756,
18,
225,
702,
30,
300,
84,
16,
1493,
655,
33,
6354,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4084,
13332,
2589,
18,
11241,
18,
2626,
2932,
3660,
29550,
30,
738,
87,
306,
2116,
65,
4477,
18778,
13586,
81,
364,
326,
2734,
1756,
18,
225,
702,
30,
300,
84,
16,
1493,
655,
33,
6354,... |
except VauleError: | except ValueError: | def dcc_SEND(self, user, channel, data): # Use splitQuoted for those who send files with spaces in the names. data = text.splitQuoted(data) if len(data) < 3: raise IRCBadMessage, "malformed DCC SEND request: %r" % (data,) | e962a8bb8dcad31eea345dc001bf1c2a593d3f2c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/e962a8bb8dcad31eea345dc001bf1c2a593d3f2c/irc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
302,
952,
67,
21675,
12,
2890,
16,
729,
16,
1904,
16,
501,
4672,
468,
2672,
1416,
15919,
364,
5348,
10354,
1366,
1390,
598,
7292,
316,
326,
1257,
18,
501,
273,
977,
18,
4939,
15919,
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,
302,
952,
67,
21675,
12,
2890,
16,
729,
16,
1904,
16,
501,
4672,
468,
2672,
1416,
15919,
364,
5348,
10354,
1366,
1390,
598,
7292,
316,
326,
1257,
18,
501,
273,
977,
18,
4939,
15919,
12... |
'partner_id': il['partner_id'] or False, | def _get_analityc_lines(self, cr, uid, id): inv = self.browse(cr, uid, [id])[0] cur_obj = self.pool.get('res.currency') | 4c8838b8ff1995002e5edc1cf71121cfbe916b8b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/4c8838b8ff1995002e5edc1cf71121cfbe916b8b/voucher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
304,
7919,
71,
67,
3548,
12,
2890,
16,
4422,
16,
4555,
16,
612,
4672,
2198,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
306,
350,
5717,
63,
20,
65,
662,
67,
2603,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
304,
7919,
71,
67,
3548,
12,
2890,
16,
4422,
16,
4555,
16,
612,
4672,
2198,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
306,
350,
5717,
63,
20,
65,
662,
67,
2603,
27... | |
self.max_use= reader.Value() | self.max_use = reader.Value() | def __init__(self, parent): """ Name: __init__ Desc: Params: | bd70128110a2d24a87a679b5cef5300644275ac4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11528/bd70128110a2d24a87a679b5cef5300644275ac4/map_if.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
4672,
3536,
1770,
30,
565,
1001,
2738,
972,
13913,
30,
8861,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
4672,
3536,
1770,
30,
565,
1001,
2738,
972,
13913,
30,
8861,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
fopen.write('os.environ["X509_CERT_DIR"]="%s/certificates"\n' %self.sharedArea) fopen.write('os.environ["X509_VOMS_DIR"]="%s/vomsdir"\n' %self.sharedArea) | def submitJob(self,executableFile,jdl,proxy,localID): """ Method to submit job, should be overridden in sub-class. """ self.log.verbose('Setting up proxy for payload') result = self.writeProxyToFile(proxy) if not result['OK']: return result | 740faf343a2e7468472d557cc7873a955800d592 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/740faf343a2e7468472d557cc7873a955800d592/TorqueComputingElement.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
2278,
12,
2890,
16,
17751,
812,
16,
78,
5761,
16,
5656,
16,
3729,
734,
4672,
3536,
2985,
358,
4879,
1719,
16,
1410,
506,
11000,
316,
720,
17,
1106,
18,
3536,
365,
18,
1330,
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,
4879,
2278,
12,
2890,
16,
17751,
812,
16,
78,
5761,
16,
5656,
16,
3729,
734,
4672,
3536,
2985,
358,
4879,
1719,
16,
1410,
506,
11000,
316,
720,
17,
1106,
18,
3536,
365,
18,
1330,
18,
... | |
myQ = Q( thread = thread ) | allmonitors = Monitor.objects.all() monitors = allmonitors.filter( thread = thread ) | def save(self): isnew = not self.id ret = super(Post, self).save() | 77203119e748782a5a3b62aaf5ca07d4065a1caf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11563/77203119e748782a5a3b62aaf5ca07d4065a1caf/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
4672,
353,
2704,
273,
486,
365,
18,
350,
325,
273,
2240,
12,
3349,
16,
365,
2934,
5688,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
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,
1923,
12,
2890,
4672,
353,
2704,
273,
486,
365,
18,
350,
325,
273,
2240,
12,
3349,
16,
365,
2934,
5688,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.addCurrentServiceToBouquet(bouquet[0][1]) | self.addCurrentServiceToBouquet(bouquets[0][1]) | def addServiceToBouquetSelected(self): bouquets = self.csel.getBouquetList() if bouquets is None: cnt = 0 else: cnt = len(bouquets) if cnt > 1: # show bouquet list self.session.open(BouquetSelector, bouquets, self.addCurrentServiceToBouquet) elif cnt == 1: # add to only one existing bouquet self.addCurrentServiceToBouquet(bouquet[0][1]) else: #no bouquets in root.. so assume only one favourite list is used self.addCurrentServiceToBouquet(self.csel.bouquet_root) | 8b353d9dd3ae6fd5915dff698ef670cf023d2214 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/8b353d9dd3ae6fd5915dff698ef670cf023d2214/ChannelSelection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
1179,
774,
38,
1395,
28357,
7416,
12,
2890,
4672,
800,
89,
372,
2413,
273,
365,
18,
71,
1786,
18,
588,
38,
1395,
28357,
682,
1435,
309,
800,
89,
372,
2413,
353,
599,
30,
7599,
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,
527,
1179,
774,
38,
1395,
28357,
7416,
12,
2890,
4672,
800,
89,
372,
2413,
273,
365,
18,
71,
1786,
18,
588,
38,
1395,
28357,
682,
1435,
309,
800,
89,
372,
2413,
353,
599,
30,
7599,
2... |
'<em>%s</em> sucessfully exported to <em>%s</em>' % (id,f), | '<em>%s</em> successfully exported to <em>%s</em>' % (id,f), | def manage_exportObject(self, id='', download=None, toxml=None, RESPONSE=None,REQUEST=None): """Exports an object to a file and returns that file.""" if not id: # can't use getId() here (breaks on "old" exported objects) id=self.id if hasattr(id, 'im_func'): id=id() ob=self else: ob=self._getOb(id) | f4601e003f7ebd44a2b970754aa26fa048be31a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/f4601e003f7ebd44a2b970754aa26fa048be31a6/ObjectManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
6530,
921,
12,
2890,
16,
612,
2218,
2187,
4224,
33,
7036,
16,
358,
2902,
33,
7036,
16,
20645,
33,
7036,
16,
5519,
33,
7036,
4672,
3536,
15352,
392,
733,
358,
279,
585,
471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6530,
921,
12,
2890,
16,
612,
2218,
2187,
4224,
33,
7036,
16,
358,
2902,
33,
7036,
16,
20645,
33,
7036,
16,
5519,
33,
7036,
4672,
3536,
15352,
392,
733,
358,
279,
585,
471,
... |
'[wlan-lj] ' + event.node.ip + '/' + event.node.name + ' - ' + event.code_to_string(), | '[wlan-lj] %s - %s' % (name_ip, event.code_to_string()), | def notify(self, event): """ Notify a user about an event. | f0a54ab582f37d01e47e8e300f1fc28bf26f0cb9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11345/f0a54ab582f37d01e47e8e300f1fc28bf26f0cb9/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5066,
12,
2890,
16,
871,
4672,
3536,
10918,
279,
729,
2973,
392,
871,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
5066,
12,
2890,
16,
871,
4672,
3536,
10918,
279,
729,
2973,
392,
871,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
class MatcherHandler: def __init__(self): """ Matcher service per call initialization """ pass | class MatcherHandler(RequestHandler): | def initializeMatcherHandler( serviceInfo ): """ Matcher Service initialization """ global jobDB global jobLoggingDB jobDB = JobDB() jobLoggingDB = jobLoggingDB return S_OK() | 01ec48096a4898a90e8c548b22f6f8b762bc621c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/01ec48096a4898a90e8c548b22f6f8b762bc621c/MatcherHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
6286,
1503,
12,
1156,
966,
262,
30,
3536,
225,
9757,
1956,
10313,
3536,
225,
2552,
1719,
2290,
2552,
1719,
7735,
2290,
225,
1719,
2290,
273,
3956,
2290,
1435,
1719,
7735,
2290,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
6286,
1503,
12,
1156,
966,
262,
30,
3536,
225,
9757,
1956,
10313,
3536,
225,
2552,
1719,
2290,
2552,
1719,
7735,
2290,
225,
1719,
2290,
273,
3956,
2290,
1435,
1719,
7735,
2290,
273,
... |
os.path.walk(directory, self.visit, recurse) | for root, dirs, files in os.walk(directory): self.visit(recurse, root, dirs+files) | def run(self, directory=None, recurse=1): recurse = recurse and self.initial_settings.recurse if directory: self.directories = [directory] elif self.settings_spec._directories: self.directories = self.settings_spec._directories else: self.directories = [os.getcwd()] for directory in self.directories: try: os.path.walk(directory, self.visit, recurse) except (AttributeError): # python2.2 does not have os.walk os.path.walk(directory, self.visit, recurse) | e0dc03908f93ca3c7a9c2aa67146afcc7f8956a9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8194/e0dc03908f93ca3c7a9c2aa67146afcc7f8956a9/buildhtml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1867,
33,
7036,
16,
11502,
33,
21,
4672,
11502,
273,
11502,
471,
365,
18,
6769,
67,
4272,
18,
29362,
309,
1867,
30,
365,
18,
15121,
273,
306,
5149,
65,
1327,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1867,
33,
7036,
16,
11502,
33,
21,
4672,
11502,
273,
11502,
471,
365,
18,
6769,
67,
4272,
18,
29362,
309,
1867,
30,
365,
18,
15121,
273,
306,
5149,
65,
1327,
365,
... |
default_list_name = "%s's Indicators" % user.username | default_list_name = "%s's Indicators" % user.email | def get_or_create_default_for_user(self, user): default_list_name = "%s's Indicators" % user.username list, created = self.get_or_create(owner=user, name=default_list_name) user.get_profile().indicator_lists.add(list) return list, created | b598a4644607c1109b0dd4f2de96fb750f95ccf7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12153/b598a4644607c1109b0dd4f2de96fb750f95ccf7/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
280,
67,
2640,
67,
1886,
67,
1884,
67,
1355,
12,
2890,
16,
729,
4672,
805,
67,
1098,
67,
529,
273,
2213,
87,
1807,
9223,
24994,
6,
738,
729,
18,
3652,
666,
16,
2522,
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,
336,
67,
280,
67,
2640,
67,
1886,
67,
1884,
67,
1355,
12,
2890,
16,
729,
4672,
805,
67,
1098,
67,
529,
273,
2213,
87,
1807,
9223,
24994,
6,
738,
729,
18,
3652,
666,
16,
2522,
273,
... |
def graph_instance_get(self, cursor, graph, instance_id, nested=False, | def graph_instance_get(self, cursor, user, graph, instance_id, nested=False, | def graph_instance_get(self, cursor, graph, instance_id, nested=False, context=None): instance_obj = self.pool.get('workflow.instance') instance = instance_obj.browse(cursor, user, instance_id, context=context) self.graph_get(cursor, user, graph, instance.workflow.id, nested, self.workitem_get(cursor, user, instance.id, context=context), context=context) | 0be16e5868ad4a3ea0858e980ed4f4f5f44a99b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/0be16e5868ad4a3ea0858e980ed4f4f5f44a99b9/workflow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2667,
67,
1336,
67,
588,
12,
2890,
16,
3347,
16,
729,
16,
2667,
16,
791,
67,
350,
16,
4764,
33,
8381,
16,
819,
33,
7036,
4672,
791,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
138... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2667,
67,
1336,
67,
588,
12,
2890,
16,
3347,
16,
729,
16,
2667,
16,
791,
67,
350,
16,
4764,
33,
8381,
16,
819,
33,
7036,
4672,
791,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
138... |
test.run(arguments = "--implicit-cache " + args) | test.run(arguments = "--implicit-cache " + args) | def copy(target, source, env): open(str(target[0]), 'wt').write(open(str(source[0]), 'rt').read()) | d4bb061128cb8eee811f467825a4e171e8deeae2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12817/d4bb061128cb8eee811f467825a4e171e8deeae2/basic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
12,
3299,
16,
1084,
16,
1550,
4672,
1696,
12,
701,
12,
3299,
63,
20,
65,
3631,
296,
6046,
16063,
2626,
12,
3190,
12,
701,
12,
3168,
63,
20,
65,
3631,
296,
3797,
16063,
896,
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,
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,
1610,
12,
3299,
16,
1084,
16,
1550,
4672,
1696,
12,
701,
12,
3299,
63,
20,
65,
3631,
296,
6046,
16063,
2626,
12,
3190,
12,
701,
12,
3168,
63,
20,
65,
3631,
296,
3797,
16063,
896,
107... |
from sqlalchemy.sql import visitors | from sqlalchemy.sql.visitors import iterate_depthfirst, traverse_using, ClauseVisitor | def traverse( visitor, obj): try: f = visitor.traverse except: return obj.accept_visitor( visitor) else: return f( obj) | 22be6ef9b7cf8da3fb946e2bd05e49c4f5d79581 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10808/22be6ef9b7cf8da3fb946e2bd05e49c4f5d79581/sa_generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10080,
12,
8000,
16,
1081,
4672,
775,
30,
284,
273,
8000,
18,
2033,
2476,
1335,
30,
327,
1081,
18,
9436,
67,
3516,
1811,
12,
8000,
13,
469,
30,
327,
284,
12,
1081,
13,
225,
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,
1,
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,
10080,
12,
8000,
16,
1081,
4672,
775,
30,
284,
273,
8000,
18,
2033,
2476,
1335,
30,
327,
1081,
18,
9436,
67,
3516,
1811,
12,
8000,
13,
469,
30,
327,
284,
12,
1081,
13,
225,
2,
-100,
... |
entry = RecordTimerEntry(serviceref, begin, end, name, description, eit, disabled, justplay, afterevent) | entry = RecordTimerEntry(serviceref, begin, end, name, description, eit, disabled, justplay, afterevent, dirname = location) | def createTimer(xml): begin = int(xml.getAttribute("begin")) end = int(xml.getAttribute("end")) serviceref = ServiceReference(xml.getAttribute("serviceref").encode("utf-8")) description = xml.getAttribute("description").encode("utf-8") repeated = xml.getAttribute("repeated").encode("utf-8") disabled = long(xml.getAttribute("disabled") or "0") justplay = long(xml.getAttribute("justplay") or "0") afterevent = str(xml.getAttribute("afterevent") or "nothing") afterevent = { "nothing": AFTEREVENT.NONE, "standby": AFTEREVENT.STANDBY, "deepstandby": AFTEREVENT.DEEPSTANDBY }[afterevent] if xml.hasAttribute("eit") and xml.getAttribute("eit") != "None": eit = long(xml.getAttribute("eit")) else: eit = None name = xml.getAttribute("name").encode("utf-8") #filename = xml.getAttribute("filename").encode("utf-8") entry = RecordTimerEntry(serviceref, begin, end, name, description, eit, disabled, justplay, afterevent) entry.repeated = int(repeated) for l in elementsWithTag(xml.childNodes, "log"): time = int(l.getAttribute("time")) code = int(l.getAttribute("code")) msg = mergeText(l.childNodes).strip().encode("utf-8") entry.log_entries.append((time, code, msg)) return entry | bc937acb188ea59ced7d67ceaa91f2598db39ab9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/bc937acb188ea59ced7d67ceaa91f2598db39ab9/RecordTimer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
6777,
12,
2902,
4672,
2376,
273,
509,
12,
2902,
18,
588,
1499,
2932,
10086,
6,
3719,
679,
273,
509,
12,
2902,
18,
588,
1499,
2932,
409,
6,
3719,
24658,
822,
74,
273,
26755,
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,
752,
6777,
12,
2902,
4672,
2376,
273,
509,
12,
2902,
18,
588,
1499,
2932,
10086,
6,
3719,
679,
273,
509,
12,
2902,
18,
588,
1499,
2932,
409,
6,
3719,
24658,
822,
74,
273,
26755,
12,
... |
str = '%5s: %s: ' % ('L'+`self.linenum`, typ) str += wordwrap(self.descr, 7, startindex=len(str)) | str = '%5s: %s: ' % ('L'+`self._linenum+self._offset`, typ) str += wordwrap(self._descr, 7, startindex=len(str)) | def _repr(self, typ): RANGE = 20 if self.charnum <= RANGE: left = self.token.contents[0:self.charnum] else: left = '...' + self.token.contents[self.charnum-RANGE:self.charnum] if (len(self.token.contents)-self.charnum) <= RANGE: right = self.token.contents[self.charnum:] else: right = (self.token.contents[self.charnum:self.charnum+RANGE] + '...') str = '%5s: %s: ' % ('L'+`self.linenum`, typ) str += wordwrap(self.descr, 7, startindex=len(str)) return (str + '\n %s%s\n %s^' % (left, right, ' '*len(left))) | 7bf7c136593a0f12e906094a55f7b8f591c5abaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7bf7c136593a0f12e906094a55f7b8f591c5abaf/epytext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12715,
12,
2890,
16,
3815,
4672,
534,
8357,
273,
4200,
309,
365,
18,
343,
1303,
379,
1648,
534,
8357,
30,
2002,
273,
365,
18,
2316,
18,
3980,
63,
20,
30,
2890,
18,
343,
1303,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12715,
12,
2890,
16,
3815,
4672,
534,
8357,
273,
4200,
309,
365,
18,
343,
1303,
379,
1648,
534,
8357,
30,
2002,
273,
365,
18,
2316,
18,
3980,
63,
20,
30,
2890,
18,
343,
1303,
37... |
'desc': u"Искать только в шарах с заданым именем хоста." + ru_multiarg, | 'desc': u"Искать только в шарах с заданным именем хоста." + ru_multiarg, | def ru_order_desc(): return string.join([ u"%s (%s)" % (bold(x), ru_orders[x]) for x in ru_orders.keys()], ", ") | c57475933ab846439ec63b953e99c40d78dd7aa3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4762/c57475933ab846439ec63b953e99c40d78dd7aa3/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19621,
67,
1019,
67,
5569,
13332,
327,
533,
18,
5701,
3816,
582,
28385,
87,
6142,
87,
2225,
738,
261,
16390,
12,
92,
3631,
19621,
67,
9972,
63,
92,
5717,
364,
619,
316,
19621,
67,
9972... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19621,
67,
1019,
67,
5569,
13332,
327,
533,
18,
5701,
3816,
582,
28385,
87,
6142,
87,
2225,
738,
261,
16390,
12,
92,
3631,
19621,
67,
9972,
63,
92,
5717,
364,
619,
316,
19621,
67,
9972... |
for row in csv.reader( open('/home/mesonet/ot/ot0005/incoming/Fluxdata/%s' % (file,), 'rb') ): | for row in csv.reader( open('/mnt/home/mesonet/ot/ot0005/incoming/Fluxdata/%s' % (file,), 'rb') ): | def c(v): if (v == "NAN" or v == "-INF" or v == "INF"): return None return v | 62ea0b7260952e0eafa2dfb701ef648e71354aff /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11189/62ea0b7260952e0eafa2dfb701ef648e71354aff/flux_ingest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
12,
90,
4672,
309,
261,
90,
422,
315,
50,
1258,
6,
578,
331,
422,
3701,
19212,
6,
578,
331,
422,
315,
19212,
6,
4672,
327,
599,
327,
331,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
12,
90,
4672,
309,
261,
90,
422,
315,
50,
1258,
6,
578,
331,
422,
3701,
19212,
6,
578,
331,
422,
315,
19212,
6,
4672,
327,
599,
327,
331,
225,
2,
-100,
-100,
-100,
-100,
-100,
... |
if isinstance(value, (datetime.date, datetime.datetime, datetime.time)): s = value.isoformat() try: s = rx_datetime.findall(s)[0] except: pass p.Value = s p.Size = len(s) elif isinstance(value, basestring): | if isinstance(value, basestring): | def _configureParameter(p, value): """Configures the given ADO Parameter 'p' with the Python 'value'.""" if isinstance(value, (datetime.date, datetime.datetime, datetime.time)): #Known problem with JET Provider. Date can not be specified as a COM date. # See for example: # http://support.microsoft.com/default.aspx?scid=kb%3ben-us%3b284843 # One workaround is to provide the date as a string in the format 'YYYY-MM-dd' s = value.isoformat() # Hack to trim microseconds on iso dates down to 3 decimals try: # ... only if parameter is a datetime string s = rx_datetime.findall(s)[0] except: pass p.Value = s p.Size = len(s) elif isinstance(value, basestring): s = value # Hack to trim microseconds on iso dates down to 3 decimals try: # ... only if parameter is a datetime string s = rx_datetime.findall(s)[0] except: pass p.Value = s p.Size = len(s) elif isinstance(value, buffer): p.Size = len(value) p.AppendChunk(value) elif isinstance(value, decimal.Decimal): s = str(elem.normalize()) p.Value = elem p.Precision = len(s) point = s.find('.') if point == -1: p.NumericScale = 0 else: p.NumericScale = len(s)-point else: p.Value = value # Use -1 instead of 0 for empty strings and similar. if p.Size == 0: p.Size = -1 | 932ac550f3a72350d92bf3089014e79481193cb0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1254/932ac550f3a72350d92bf3089014e79481193cb0/dbapi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14895,
1662,
12,
84,
16,
460,
4672,
3536,
20323,
326,
864,
432,
3191,
5498,
296,
84,
11,
598,
326,
6600,
296,
1132,
11,
12123,
309,
1549,
12,
1132,
16,
261,
6585,
18,
712,
16,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14895,
1662,
12,
84,
16,
460,
4672,
3536,
20323,
326,
864,
432,
3191,
5498,
296,
84,
11,
598,
326,
6600,
296,
1132,
11,
12123,
309,
1549,
12,
1132,
16,
261,
6585,
18,
712,
16,
3... |
for tls_desc in tls_desc_list: tls_file.tls_desc_list.append(tls_desc) | for tls_desc in tls_desc_list: tls_file.tls_desc_list.append(tls_desc) | def refmac5_prep(xyzin, tlsin_list, xyzout, tlsout): """Use TLS model + Uiso for each atom. Output xyzout with the residual Uiso only. """ ## load structure struct = FileIO.LoadStructure(fil = xyzin) ## load and construct TLS groups tls_group_list = [] tls_file = TLS.TLSFile() tls_file.set_file_format(TLS.TLSFileFormatTLSOUT()) tls_file_format = TLS.TLSFileFormatTLSOUT() for tlsin in tlsin_list: tls_desc_list = tls_file_format.load(open(tlsin, "r")) for tls_desc in tls_desc_list: tls_file.tls_desc_list.append(tls_desc) tls_group = tls_desc.construct_tls_group_with_atoms(struct) tls_group.tls_desc = tls_desc tls_group_list.append(tls_group) ## set the extra Uiso for each atom for tls_group in tls_group_list: ## minimal/maximal amount of Uiso which has to be added ## to the group's atoms to to make Uiso == Uiso_tls min_Uiso = 0.0 max_Uiso = 0.0 for atm, Utls in tls_group.iter_atm_Utls(): tls_tf = numpy.trace(Utls) / 3.0 ref_tf = numpy.trace(atm.get_U()) / 3.0 if ref_tf > tls_tf: max_Uiso = max(ref_tf - tls_tf, max_Uiso) else: min_Uiso = max(tls_tf - ref_tf, min_Uiso) ## reduce the TLS group T tensor by min_Uiso so that ## a PDB file can be written out where all atoms ## Uiso == Uiso_tls ## we must rotate the T tensor to its primary axes before ## subtracting min_Uiso magnitude from it (T_eval, TR) = numpy.linalg.eig(tls_group.T) T = numpy.dot(TR, numpy.dot(tls_group.T, numpy.transpose(TR))) ## FIXME: allclose(some_array, some_scalar) ## The next three lines appear to cause this def to crash, 2007-10-04 #assert numpy.allclose(T[0,1], 0.0) #assert numpy.allclose(T[0,2], 0.0) #assert numpy.allclose(T[1,2], 0.0) T[0,0] = T[0,0] - min_Uiso T[1,1] = T[1,1] - min_Uiso T[2,2] = T[2,2] - min_Uiso ## now take some of the smallest principal component of T and ## move it into the individual atomic temperature factors min_T = min(T[0,0], min(T[1,1], T[2,2])) sub_T = min_T * 0.50 add_Uiso = min_T - sub_T T[0,0] = T[0,0] - sub_T T[1,1] = T[1,1] - sub_T T[2,2] = T[2,2] - sub_T ## rotate T back to original orientation tls_group.T = numpy.dot( numpy.transpose(TR), numpy.dot(T, TR)) ## reset the TLS tensor values in the TLSDesc object so they can be ## saved tls_group.tls_desc.set_tls_group(tls_group) ## set atm.temp_factor for atm, Utls in tls_group.iter_atm_Utls(): tls_tf = numpy.trace(Utls) / 3.0 ref_tf = numpy.trace(atm.get_U()) / 3.0 if ref_tf > tls_tf: atm.temp_factor = ((add_Uiso) + ref_tf - tls_tf)*Constants.U2B atm.U = None else: atm.temp_factor = (add_Uiso) * Constants.U2B atm.U = None FileIO.SaveStructure(fil = xyzout, struct = struct) tls_file.save(open(tlsout, "w")) | 927f30c52e2fba131cd408196ada5dd0e1ef93a9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10674/927f30c52e2fba131cd408196ada5dd0e1ef93a9/tls_calcs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1278,
5821,
25,
67,
19109,
12,
17177,
267,
16,
6871,
267,
67,
1098,
16,
14779,
659,
16,
6871,
659,
4672,
3536,
3727,
8098,
938,
397,
587,
9699,
364,
1517,
3179,
18,
3633,
14779,
659,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1278,
5821,
25,
67,
19109,
12,
17177,
267,
16,
6871,
267,
67,
1098,
16,
14779,
659,
16,
6871,
659,
4672,
3536,
3727,
8098,
938,
397,
587,
9699,
364,
1517,
3179,
18,
3633,
14779,
659,
5... |
'content': content.Title().decode("utf-8")})) | 'content': safe_unicode(content.Title())})) | def Title(self): """The title of the comment. """ if not self.creator: creator = translate(Message(_(u"label_anonymous", default=u"Anonymous"))) else: creator = self.creator creator = creator | 7dbcc9e2bee7c81e70ee9854bf6b32da73c0d3aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12197/7dbcc9e2bee7c81e70ee9854bf6b32da73c0d3aa/comment.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10984,
12,
2890,
4672,
3536,
1986,
2077,
434,
326,
2879,
18,
3536,
309,
486,
365,
18,
20394,
30,
11784,
273,
4204,
12,
1079,
24899,
12,
89,
6,
1925,
67,
19070,
3113,
805,
33,
89,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10984,
12,
2890,
4672,
3536,
1986,
2077,
434,
326,
2879,
18,
3536,
309,
486,
365,
18,
20394,
30,
11784,
273,
4204,
12,
1079,
24899,
12,
89,
6,
1925,
67,
19070,
3113,
805,
33,
89,
6,
... |
dist_path = self.abs_path_clean(os.path.expandvars(redirection)) if (not os.path.isdir(dist_path)): | dist_path = self.abs_path_clean(op.expandvars(redirection)) if (not op.isdir(dist_path)): | def process_args(self, pre_processed_args): command_line = pre_processed_args.command_line for path in pre_processed_args.repository_paths: self.add_repository(path=path) module_names = [] for module_name in command_line.args: if (len(module_name) == 0): continue # ignore arguments like "" if (module_name == ".."): raise Sorry('Invalid module name: ".."') if (module_name == "."): module_name = "libtbx" if (module_name in self.command_line_redirections): del self.command_line_redirections[module_name] elif (module_name.count("=") == 1 and self.find_dist_path(module_name, optional=True) is None): module_name, redirection = module_name.split("=") dist_path = self.abs_path_clean(os.path.expandvars(redirection)) if (not os.path.isdir(dist_path)): raise Sorry( 'Invalid command line redirection:\n' ' module name = "%s"\n' ' redirection = "%s"\n' ' resulting target = "%s"' % ( module_name, redirection, dist_path)) self.command_line_redirections[module_name] = dist_path module_names.append(module_name) if (pre_processed_args.warm_start): if (not command_line.options.only): for module in self.module_list: module_names.append(module.name) else: self.build_options = build_options( compiler=command_line.options.compiler, mode=command_line.options.build, warning_level=command_line.options.warning_level, static_libraries=command_line.options.static_libraries, static_exe=command_line.options.static_exe, scan_boost=command_line.options.scan_boost, write_full_flex_fwd_h=command_line.options.write_full_flex_fwd_h, boost_python_no_py_signatures =command_line.options.boost_python_no_py_signatures, boost_python_bool_int_strict =command_line.options.boost_python_bool_int_strict, enable_boost_threads=command_line.options.enable_boost_threads, enable_openmp_if_possible =command_line.options.enable_openmp_if_possible, precompile_headers=command_line.options.precompile_headers, use_environment_flags=command_line.options.use_environment_flags, force_32bit=command_line.options.force_32bit, msvc_arch_flag=command_line.options.msvc_arch_flag) self.build_options.get_flags_from_environment() if (command_line.options.command_version_suffix is not None): self.command_version_suffix = \ command_line.options.command_version_suffix self.write_command_version_suffix() if (command_line.options.build_boost_python_extensions is not None): self.build_options.build_boost_python_extensions \ = command_line.options.build_boost_python_extensions self.reset_module_registry() module_names.append("libtbx") module_names.reverse() for module_name in module_names: self.process_module( dependent_module=None, module_name=module_name, optional=False) self.scons_dist_path = self.find_dist_path("scons", optional=True) self.path_utility = self.under_dist( "libtbx", "command_line/path_utility.py") assert os.path.isfile(self.path_utility) | 621ff93ea6f104ac4c6d943d7e9d6c18b1468502 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/621ff93ea6f104ac4c6d943d7e9d6c18b1468502/env_config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
1968,
12,
2890,
16,
675,
67,
11005,
67,
1968,
4672,
1296,
67,
1369,
273,
675,
67,
11005,
67,
1968,
18,
3076,
67,
1369,
364,
589,
316,
675,
67,
11005,
67,
1968,
18,
9071,
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,
1207,
67,
1968,
12,
2890,
16,
675,
67,
11005,
67,
1968,
4672,
1296,
67,
1369,
273,
675,
67,
11005,
67,
1968,
18,
3076,
67,
1369,
364,
589,
316,
675,
67,
11005,
67,
1968,
18,
9071,
67... |
self._current_ref.authors = content | if self._current_ref.authors : self._current_ref.authors += ' ' + content else : self._current_ref.authors = content | def authors(self, content): self._current_ref.authors = content | 0dfd00f6ba76fc7874c15ac68b46856386a5d222 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/0dfd00f6ba76fc7874c15ac68b46856386a5d222/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14494,
12,
2890,
16,
913,
4672,
365,
6315,
2972,
67,
1734,
18,
19368,
273,
913,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14494,
12,
2890,
16,
913,
4672,
365,
6315,
2972,
67,
1734,
18,
19368,
273,
913,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
def new_subsection(self, title, lineno): | def new_subsection(self, title, lineno, messages): | def new_subsection(self, title, lineno): """Append new subsection to document tree. On return, check level.""" memo = self.memo mylevel = memo.section_level memo.section_level += 1 sectionnode = nodes.section() self.parent += sectionnode textnodes, messages = self.inline_text(title, lineno) titlenode = nodes.title(title, '', *textnodes) name = normalize_name(titlenode.astext()) sectionnode['name'] = name sectionnode += titlenode sectionnode += messages self.document.note_implicit_target(sectionnode, sectionnode) offset = self.state_machine.line_offset + 1 absoffset = self.state_machine.abs_line_offset() + 1 newabsoffset = self.nested_parse( self.state_machine.input_lines[offset:], input_offset=absoffset, node=sectionnode, match_titles=1) self.goto_line(newabsoffset) if memo.section_level <= mylevel: # can't handle next section? raise EOFError # bubble up to supersection # reset section_level; next pass will detect it properly memo.section_level = mylevel | 3b276ab058f6fea3778175ae2d6e97f9f883e4ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/3b276ab058f6fea3778175ae2d6e97f9f883e4ca/states.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
1717,
3464,
12,
2890,
16,
2077,
16,
7586,
16,
2743,
4672,
3536,
5736,
394,
720,
3464,
358,
1668,
2151,
18,
2755,
327,
16,
866,
1801,
12123,
11063,
273,
365,
18,
19521,
312,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
1717,
3464,
12,
2890,
16,
2077,
16,
7586,
16,
2743,
4672,
3536,
5736,
394,
720,
3464,
358,
1668,
2151,
18,
2755,
327,
16,
866,
1801,
12123,
11063,
273,
365,
18,
19521,
312,
13... |
raise CommentError("Parameter tag is missing name!") | raise CommentException("Parameter tag is missing name!") | def __parseTagLine(self, line): """ Parses a single tag line aka @foo """ mode = "identifier" | 470adfb6d700fb9f2d722129f03a36dd34c85062 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/470adfb6d700fb9f2d722129f03a36dd34c85062/Comment.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2670,
1805,
1670,
12,
2890,
16,
980,
4672,
3536,
2280,
2420,
279,
2202,
1047,
980,
28105,
632,
11351,
3536,
1965,
273,
315,
5644,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2670,
1805,
1670,
12,
2890,
16,
980,
4672,
3536,
2280,
2420,
279,
2202,
1047,
980,
28105,
632,
11351,
3536,
1965,
273,
315,
5644,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.m.cache[int(id)] = self | def __init__(self, manager, id, url, name, size, status, error, pluginname, package, order): self.m = manager self.m.cache[int(id)] = self self.id = int(id) self.url = url self.name = name self.size = size self.status = status self.pluginname = pluginname self.packageid = package #should not be used, use package() instead self.error = error self.order = order # database information ends here self.plugin = None self.waitUntil = 0 # time() + time to wait # status attributes self.active = False #obsolete? self.abort = False self.reconnected = False | 95fe4671c27b09e56a8eaa4558f5933f41787801 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/95fe4671c27b09e56a8eaa4558f5933f41787801/FileDatabase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3301,
16,
612,
16,
880,
16,
508,
16,
963,
16,
1267,
16,
555,
16,
1909,
529,
16,
2181,
16,
1353,
4672,
365,
18,
81,
273,
3301,
225,
365,
18,
350,
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,
1001,
2738,
972,
12,
2890,
16,
3301,
16,
612,
16,
880,
16,
508,
16,
963,
16,
1267,
16,
555,
16,
1909,
529,
16,
2181,
16,
1353,
4672,
365,
18,
81,
273,
3301,
225,
365,
18,
350,
273,... | |
print >>stderr, path, self.base_path | def __call__(self, environ, start_response): from sys import stderr path = environ['SCRIPT_NAME'] + environ.get('PATH_INFO', '') environ['PATH_INFO'] = path[len(self.base_path):] environ['SCRIPT_NAME'] = self.base_path print >>stderr, path, self.base_path return self.application(environ, start_response) | ca8495bf94b07b0694bd65be2806ef64685d2453 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/ca8495bf94b07b0694bd65be2806ef64685d2453/standalone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
628,
2589,
1930,
4514,
589,
273,
5473,
3292,
10885,
67,
1985,
3546,
397,
5473,
18,
588,
2668,
4211,
67,
5923,
2187,
28707,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
628,
2589,
1930,
4514,
589,
273,
5473,
3292,
10885,
67,
1985,
3546,
397,
5473,
18,
588,
2668,
4211,
67,
5923,
2187,
28707,
... | |
(fastaIn, simCut, lenCut, ncpu) | (fastaIn, simCut, lenCut, ncpu) | def clusterFasta( self, fastaIn=None, simCut=1.75, lenCut=0.9, ncpu=1 ): """ Cluster sequences. The input fasta titles must be the IDs. fastaClust( fastaIn [, simCut, lenCut, ncpu] ) | 192f7ffa922aed1ead1fed83d7e0b2a4faaea9b9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/192f7ffa922aed1ead1fed83d7e0b2a4faaea9b9/SequenceSearcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2855,
12305,
69,
12,
365,
16,
13104,
382,
33,
7036,
16,
3142,
15812,
33,
21,
18,
5877,
16,
562,
15812,
33,
20,
18,
29,
16,
290,
11447,
33,
21,
262,
30,
3536,
5584,
8463,
18,
1021,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2855,
12305,
69,
12,
365,
16,
13104,
382,
33,
7036,
16,
3142,
15812,
33,
21,
18,
5877,
16,
562,
15812,
33,
20,
18,
29,
16,
290,
11447,
33,
21,
262,
30,
3536,
5584,
8463,
18,
1021,
... |
tcltkdata = [(tcltk.id, "REGISTRY.tcl"), | tcldata = [(tcltk.id, "REGISTRY.tcl"), | # File extensions, associated with the REGISTRY.def component | 7d3755d2c0d6d586308666b1dddf185f0169c320 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7d3755d2c0d6d586308666b1dddf185f0169c320/msi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
1387,
4418,
16,
3627,
598,
326,
11980,
25042,
18,
536,
1794,
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,
468,
1387,
4418,
16,
3627,
598,
326,
11980,
25042,
18,
536,
1794,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
('wpOldTitle', self.title()), ('wpNewTitle', newtitle), | ('wpOldTitle', self.title().encode(self.site().encoding())), ('wpNewTitle', newtitle.encode(self.site().encoding())), | def move(self, newtitle, reason = None, movetalkpage = True, sysop = False): if reason == None: reason = "Pagemove by bot" if self.namespace() // 2 == 1: movetalkpage = False host = self.site().hostname() address = self.site().move_address() self.site().forceLogin(sysop = sysop) token = self.site().getToken(self, sysop = sysop) predata = [ ('wpOldTitle', self.title()), ('wpNewTitle', newtitle), ('wpReason', reason), ] if movetalkpage: predata.append(('wpMovetalk','1')) else: predata.append(('wpMovetalk','0')) if token: predata.append(('wpEditToken', token)) if self.site().hostname() in config.authenticate.keys(): predata.append(("Content-type","application/x-www-form-urlencoded")) predata.append(("User-agent", "PythonWikipediaBot/1.0")) data = urlencode(tuple(predata)) response = urllib2.urlopen(urllib2.Request('http://' + self.site().hostname() + address, data)) data = '' else: data = urlencode(tuple(predata)) conn = httplib.HTTPConnection(host) conn.putrequest("POST", address) conn.putheader('Content-Length', str(len(data))) conn.putheader("Content-type", "application/x-www-form-urlencoded") conn.putheader("User-agent", "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0") if self.site().cookies(sysop = sysop): conn.putheader('Cookie', self.site().cookies(sysop = sysop)) conn.endheaders() conn.send(data) | 669559fd5f1a834e2bd4a0a437499b7615a4eca6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/669559fd5f1a834e2bd4a0a437499b7615a4eca6/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
12,
2890,
16,
394,
2649,
16,
3971,
273,
599,
16,
5730,
278,
2960,
2433,
273,
1053,
16,
2589,
556,
273,
1083,
4672,
309,
3971,
422,
599,
30,
3971,
273,
315,
10156,
351,
841,
635,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
394,
2649,
16,
3971,
273,
599,
16,
5730,
278,
2960,
2433,
273,
1053,
16,
2589,
556,
273,
1083,
4672,
309,
3971,
422,
599,
30,
3971,
273,
315,
10156,
351,
841,
635,
... |
f77.generate(env) | add_all_to_env(env) add_f77_to_env(env) | def generate(env): """Add Builders and construction variables for g77 to an Environment.""" f77.generate(env) env['_FORTRAND'] = env.Detect(compilers) or 'g77' | 5b0432f62c5f0a8c9ea47036f68e387eb35505f8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12817/5b0432f62c5f0a8c9ea47036f68e387eb35505f8/g77.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
12,
3074,
4672,
3536,
986,
3998,
414,
471,
16171,
3152,
364,
314,
4700,
358,
392,
7518,
12123,
527,
67,
454,
67,
869,
67,
3074,
12,
3074,
13,
527,
67,
74,
4700,
67,
869,
67,
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,
2103,
12,
3074,
4672,
3536,
986,
3998,
414,
471,
16171,
3152,
364,
314,
4700,
358,
392,
7518,
12123,
527,
67,
454,
67,
869,
67,
3074,
12,
3074,
13,
527,
67,
74,
4700,
67,
869,
67,
30... |
self.create_poll() | def __init__(self, default_mimetype='audio/mpeg'): self.player = None self.source = None self.sink = None self.bus = None self.poll_LC = None | 56a690641745e5de48e43c2d6f0dd10f24a0e22c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11626/56a690641745e5de48e43c2d6f0dd10f24a0e22c/gstreamer_renderer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
805,
67,
22571,
2218,
11509,
19,
19951,
11,
4672,
365,
18,
14872,
273,
599,
365,
18,
3168,
273,
599,
365,
18,
17074,
273,
599,
365,
18,
9274,
273,
599,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
805,
67,
22571,
2218,
11509,
19,
19951,
11,
4672,
365,
18,
14872,
273,
599,
365,
18,
3168,
273,
599,
365,
18,
17074,
273,
599,
365,
18,
9274,
273,
599,
... | |
print "Working on instruction " + ins | def parse(instruc = ""): word_buf = "" instruc = instruc.strip() if instruc.lower() == "ret": instruc = "jmpr r7" instruc_list = instruc.split(" ") word = instruc_list[0] #for word in instruc: ins = word.lower() print "Working on instruction " + ins if ins == "nop": return "0000000000000000" if (ins == "brn" or ins == "brnz" or ins == "brnp" or ins == "brz" or ins == "brzp" or ins == "brp" or ins == "brnzp"): word_buf += "0000" word_buf = parse_branch(instruc, word_buf) return word_buf if (ins == "add" or ins == "mul" or ins == "sub" or ins == "div"): word_buf += "0001" word_buf = parse_alu(instruc, word_buf) return word_buf if (ins == "cmp" or ins == "cmpu" or ins == "cmpi" or ins == "cmpiu"): word_buf += "0010" word_buf = parse_compare(instruc, word_buf) return word_buf if (ins == "jsr" or ins == "jsrr"): word_buf += "0100" word_buf = parse_jump(instruc, word_buf) return word_buf if (ins == "jmp" or ins == "jmpr"): word_buf += "1100" word_buf = parse_jump(instruc, word_buf) return word_buf if (ins == "and" or ins == "not" or ins == "or" or ins == "xor"): word_buf += "0101" word_buf = parse_bool(intruc, word_buf) return word_buf if ins == "rti": word_buf += "1000000000000000" return word_buf if (ins == "ldr" or ins == "str"): word_buf += "011" word_buf = parse_mem(instruc, word_buf) return word_buf if (ins == "const" or ins == "hiconst"): word_buf = parse_const(instruc, word_buf) return word_buf if (ins == "sll" or ins == "sra" or ins == "srl" or ins == "mod"): word_buf += "1010" word_buf = parse_shift(instruc, word_buf) return word_buf if ins == "trap": word_buf += "1111" word_buf = parse_trap(instruc, word_buf) return word_buf print instruc + " is not a valid LC4 command" print "ERROR: Assembler error @ following instruction: " + instruc return "-1" | c9041b22a5fae24347e6995b51cec7b258f41bc2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4891/c9041b22a5fae24347e6995b51cec7b258f41bc2/assembler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
267,
701,
5286,
273,
1408,
4672,
2076,
67,
4385,
273,
1408,
16170,
5286,
273,
16170,
5286,
18,
6406,
1435,
309,
16170,
5286,
18,
8167,
1435,
422,
315,
1349,
6877,
16170,
5286,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
12,
267,
701,
5286,
273,
1408,
4672,
2076,
67,
4385,
273,
1408,
16170,
5286,
273,
16170,
5286,
18,
6406,
1435,
309,
16170,
5286,
18,
8167,
1435,
422,
315,
1349,
6877,
16170,
5286,
... | |
assert isinstance(req, Request) | def open(self, fullurl, data=None): # accept a URL or a Request object if isinstance(fullurl, basestring): req = Request(fullurl, data) else: req = fullurl if data is not None: req.add_data(data) assert isinstance(req, Request) # really only care about interface | 6ec002138aef5b08031173f240c313708ebcde21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/6ec002138aef5b08031173f240c313708ebcde21/urllib2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
16,
1983,
718,
16,
501,
33,
7036,
4672,
468,
2791,
279,
1976,
578,
279,
1567,
733,
309,
1549,
12,
2854,
718,
16,
10699,
4672,
1111,
273,
1567,
12,
2854,
718,
16,
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,
1696,
12,
2890,
16,
1983,
718,
16,
501,
33,
7036,
4672,
468,
2791,
279,
1976,
578,
279,
1567,
733,
309,
1549,
12,
2854,
718,
16,
10699,
4672,
1111,
273,
1567,
12,
2854,
718,
16,
501,
... | |
val['partner_id']= obj2.fields_get(cr,uid,['partner_id']) and dst_basedir.object2.partner_id.id or False | val['partner_id']= obj2.fields_get(src.cr, src.uid,['partner_id']) and dst_basedir.object2.partner_id.id or False | def rename(self, src, dst_basedir,dst_basename): """ Renaming operation, the effect depends on the src: * A file: read, create and remove * A directory: change the parent and reassign childs to ressource """ try: dst_basename=_to_unicode(dst_basename) if src.type=='collection': if src.object._table_name <> 'document.directory': raise OSError(1, 'Operation not permited.') result = { 'directory': [], 'attachment': [] } # Compute all childs to set the new ressource ID child_ids = [src] while len(child_ids): node = child_ids.pop(0) child_ids += node.children() if node.type =='collection': result['directory'].append(node.object.id) if (not node.object.ressource_id) and node.object2: raise OSError(1, 'Operation not permited.') elif node.type =='file': result['attachment'].append(node.object.id) | 7e66320fdb3a535cbd481da6942484323f4a0808 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/7e66320fdb3a535cbd481da6942484323f4a0808/abstracted_fs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6472,
12,
2890,
16,
1705,
16,
3046,
67,
31722,
16,
11057,
67,
13909,
4672,
3536,
25921,
7772,
1674,
16,
326,
5426,
10935,
603,
326,
1705,
30,
380,
432,
585,
30,
855,
16,
752,
471,
1206... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6472,
12,
2890,
16,
1705,
16,
3046,
67,
31722,
16,
11057,
67,
13909,
4672,
3536,
25921,
7772,
1674,
16,
326,
5426,
10935,
603,
326,
1705,
30,
380,
432,
585,
30,
855,
16,
752,
471,
1206... |
total_waypoints = randint(5, 18) | total_waypoints = randint(5, 18) | def generate_path(self): """ Assembles random waypoints into a "path" list """ from random import randint total_waypoints = randint(5, 18) path = [] for i in range(total_waypoints): path += [randint(1, 100)] return path | 6e7d5f2b538b57b791a24be47e353bb93f68d00a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4798/6e7d5f2b538b57b791a24be47e353bb93f68d00a/init.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
803,
12,
2890,
4672,
3536,
2970,
5747,
1040,
2744,
4031,
4139,
1368,
279,
315,
803,
6,
666,
3536,
225,
628,
2744,
1930,
16783,
225,
2078,
67,
1888,
4139,
273,
16783,
12,
25,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2103,
67,
803,
12,
2890,
4672,
3536,
2970,
5747,
1040,
2744,
4031,
4139,
1368,
279,
315,
803,
6,
666,
3536,
225,
628,
2744,
1930,
16783,
225,
2078,
67,
1888,
4139,
273,
16783,
12,
25,
... |
>>> interfaces = utilities.getUtilitiesFor(IContentType) | >>> interfaces = list(utilities.getUtilitiesFor(IContentType)) | def provideInterface(id, interface, iface_type=None): """register Interface with utility service >>> from zope.app.tests.placelesssetup import setUp, tearDown >>> setUp() >>> utilities = zapi.getService(None, zapi.servicenames.Utilities) >>> from zope.interface import Interface >>> from zope.interface.interfaces import IInterface >>> from zope.app.content.interfaces import IContentType >>> class I(Interface): ... pass >>> IInterface.providedBy(I) True >>> IContentType.providedBy(I) False >>> interfaces = utilities.getUtilitiesFor(IContentType) >>> interfaces [] >>> provideInterface('', I, IContentType) >>> IContentType.providedBy(I) True >>> interfaces = utilities.getUtilitiesFor(IContentType) >>> [name for (name, iface) in interfaces] ['zope.app.component.interface.I'] >>> [iface.__name__ for (name, iface) in interfaces] ['I'] >>> class I1(Interface): ... pass >>> provideInterface('', I1) >>> IInterface.providedBy(I1) True >>> IContentType.providedBy(I1) False >>> interfaces1 = utilities.getUtilitiesFor(IContentType) >>> [name for (name, iface) in interfaces] ['zope.app.component.interface.I'] >>> [iface.__name__ for (name, iface) in interfaces] ['I'] >>> tearDown() """ if not id: id = "%s.%s" % (interface.__module__, interface.__name__) if not IInterface.providedBy(interface): if not isinstance(interface, (type, ClassType)): raise TypeError(id, "is not an interface or class") return if iface_type is not None: if not iface_type.extends(IInterface): raise TypeError(iface_type, "is not an interface type") directlyProvides(interface, iface_type) else: iface_type = IInterface utilityService = zapi.getService(None, zapi.servicenames.Utilities) utilityService.provideUtility(iface_type, interface, name=id) | ab7b724336ad45169dfaa66cb33bd11ac217f761 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9537/ab7b724336ad45169dfaa66cb33bd11ac217f761/interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5615,
1358,
12,
350,
16,
1560,
16,
9751,
67,
723,
33,
7036,
4672,
3536,
4861,
6682,
598,
12788,
1156,
225,
4080,
628,
998,
1306,
18,
2910,
18,
16341,
18,
30538,
12617,
8401,
1930,
24292,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5615,
1358,
12,
350,
16,
1560,
16,
9751,
67,
723,
33,
7036,
4672,
3536,
4861,
6682,
598,
12788,
1156,
225,
4080,
628,
998,
1306,
18,
2910,
18,
16341,
18,
30538,
12617,
8401,
1930,
24292,... |
fp.write("\t\taetools.enumsubst(_arguments, %s, _Enum_%s)\n" % | if ename <> '****': fp.write("\t\taetools.enumsubst(_arguments, %s, _Enum_%s)\n" % | fp.write("\tdef %s(self, "%funcname) | e2a5ba9db51e91cf44ff7a756a9ef280ee514e26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e2a5ba9db51e91cf44ff7a756a9ef280ee514e26/gensuitemodule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4253,
18,
2626,
31458,
88,
536,
738,
87,
12,
2890,
16,
2213,
644,
529,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
4253,
18,
2626,
31458,
88,
536,
738,
87,
12,
2890,
16,
2213,
644,
529,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
schema[lower(name)]=i schema[upper(name)]=i | n=lower(name) if n != name: aliases.append((n, SQLAlias(name))) n=upper(name) if n != name: aliases.append((n, SQLAlias(name))) | def __init__(self,file,brains=NoBrains, parent=None, zbrains=None): | 867a0555f053e7f9a19e094d1a66b78adb94ddbe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/867a0555f053e7f9a19e094d1a66b78adb94ddbe/RDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
768,
16,
15397,
2679,
33,
2279,
38,
354,
2679,
16,
982,
33,
7036,
16,
998,
15397,
2679,
33,
7036,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
768,
16,
15397,
2679,
33,
2279,
38,
354,
2679,
16,
982,
33,
7036,
16,
998,
15397,
2679,
33,
7036,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
, path='/' | , path=portalPath | def updateSkinCookie(self): ''' If needed, updates the skin cookie based on the member preference. ''' pm = getToolByName(self, 'portal_membership') member = pm.getAuthenticatedMember() if hasattr(aq_base(member), 'portal_skin'): mskin = member.portal_skin if mskin: req = self.REQUEST cookie = req.cookies.get(self.request_varname, None) if cookie != mskin: resp = req.RESPONSE if not self.cookie_persistence: # *Don't* make the cookie persistent! resp.setCookie( self.request_varname, mskin, path='/' ) else: expires = ( DateTime( 'GMT' ) + 365 ).rfc822() resp.setCookie( self.request_varname , mskin , path='/' , expires=expires ) # Ensure updateSkinCookie() doesn't try again # within this request. req.cookies[self.request_varname] = mskin req[self.request_varname] = mskin return 1 return 0 | 17b578e8852eb024ebcd955318a4ade0ede05811 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/17b578e8852eb024ebcd955318a4ade0ede05811/SkinsTool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
26827,
6151,
12,
2890,
4672,
9163,
971,
3577,
16,
4533,
326,
18705,
3878,
2511,
603,
326,
3140,
11555,
18,
9163,
7430,
273,
336,
6364,
5911,
12,
2890,
16,
296,
24386,
67,
19679,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26827,
6151,
12,
2890,
4672,
9163,
971,
3577,
16,
4533,
326,
18705,
3878,
2511,
603,
326,
3140,
11555,
18,
9163,
7430,
273,
336,
6364,
5911,
12,
2890,
16,
296,
24386,
67,
19679,
61... |
print "Command-" +`c` | if DEBUG: print "Command-" +`c` | def do_key(self, event): (what, message, when, where, modifiers) = event c = chr(message & charCodeMask) if modifiers & cmdKey: if c == '.': raise self else: result = MenuKey(ord(c)) id = (result>>16) & 0xffff # Hi word item = result & 0xffff # Lo word if id: self.do_rawmenu(id, item, None, event) elif c == 'w': w = FrontWindow() if w: self.do_close(w) else: print 'Command-W without front window' else: print "Command-" +`c` else: self.do_char(c, event) | 893e2778cafb9fb79a78ba1781c654f1f89d9f1f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/893e2778cafb9fb79a78ba1781c654f1f89d9f1f/FrameWork.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
856,
12,
2890,
16,
871,
4672,
261,
23770,
16,
883,
16,
1347,
16,
1625,
16,
10429,
13,
273,
871,
276,
273,
4513,
12,
2150,
473,
13096,
5796,
13,
309,
10429,
473,
1797,
653,
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,
741,
67,
856,
12,
2890,
16,
871,
4672,
261,
23770,
16,
883,
16,
1347,
16,
1625,
16,
10429,
13,
273,
871,
276,
273,
4513,
12,
2150,
473,
13096,
5796,
13,
309,
10429,
473,
1797,
653,
3... |
content = filecontents.FromFilesystem(headRealPath), | content = filecontents.FromFilesystem(absolutePath), | def install(self, flags, troveCs): (oldTrv, trv) = SingleCapsuleOperation.install(self, flags, troveCs) trvInfo = troveCs.getNewNameVersionFlavor() oldTrvInfo = troveCs.getOldNameVersionFlavor() | 694b74d4be096c7f40ce7a6a11d429138f3f0c01 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8747/694b74d4be096c7f40ce7a6a11d429138f3f0c01/rpmcapsule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
12,
2890,
16,
2943,
16,
23432,
537,
14272,
4672,
261,
1673,
1070,
90,
16,
433,
90,
13,
273,
10326,
24193,
725,
2988,
18,
5425,
12,
2890,
16,
2943,
16,
23432,
537,
14272,
13,
433,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3799,
12,
2890,
16,
2943,
16,
23432,
537,
14272,
4672,
261,
1673,
1070,
90,
16,
433,
90,
13,
273,
10326,
24193,
725,
2988,
18,
5425,
12,
2890,
16,
2943,
16,
23432,
537,
14272,
13,
433,... |
Return True if this group is commutative. | Return ``True`` if this group is commutative. | def is_commutative(self): """ Return True if this group is commutative. EXAMPLES:: sage: G = PermutationGroup(['(1,2,3)(4,5)', '(1,2,3,4,5)']) sage: G.is_commutative() False sage: G = PermutationGroup(['(1,2,3)(4,5)']) sage: G.is_commutative() True """ return self.is_abelian() | 1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
5702,
322,
1535,
12,
2890,
4672,
3536,
2000,
12176,
5510,
10335,
309,
333,
1041,
353,
1543,
322,
1535,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
611,
273,
13813,
9245... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
353,
67,
5702,
322,
1535,
12,
2890,
4672,
3536,
2000,
12176,
5510,
10335,
309,
333,
1041,
353,
1543,
322,
1535,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
611,
273,
13813,
9245... |
"""This needs to hack around readline and curses not playing nicely together. See also gethw() above.""" global DO_RESIZE h, w = gethw() if not h: return curses.endwin() os.environ["LINES"] = str( h ) os.environ["COLUMNS"] = str( w ) curses.doupdate() DO_RESIZE = False caller.resize() caller.statusbar.resize() | """This needs to hack around readline and curses not playing nicely together. See also gethw() above.""" global DO_RESIZE h, w = gethw() if not h: return curses.endwin() os.environ["LINES"] = str( h ) os.environ["COLUMNS"] = str( w ) curses.doupdate() DO_RESIZE = False caller.resize() caller.statusbar.resize() | def do_resize( caller ): """This needs to hack around readline and curses not playing nicely together. See also gethw() above.""" global DO_RESIZE h, w = gethw() if not h: return # Hopefully this shouldn't happen. :) curses.endwin() os.environ["LINES"] = str( h ) os.environ["COLUMNS"] = str( w ) curses.doupdate() DO_RESIZE = False caller.resize() caller.statusbar.resize() # The list win resizes itself every time it appears so no need to do it here. | 62b5311573ce50804121e2c3e6ff3852a1e8c517 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6932/62b5311573ce50804121e2c3e6ff3852a1e8c517/bpython.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
15169,
12,
4894,
262,
30,
3536,
2503,
4260,
358,
11769,
6740,
12023,
471,
30436,
486,
23982,
11562,
2357,
9475,
18,
2164,
2546,
336,
20701,
1435,
5721,
12123,
2552,
5467,
67,
862,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15169,
12,
4894,
262,
30,
3536,
2503,
4260,
358,
11769,
6740,
12023,
471,
30436,
486,
23982,
11562,
2357,
9475,
18,
2164,
2546,
336,
20701,
1435,
5721,
12123,
2552,
5467,
67,
862,... |
yi = ff.replace("pi",repr(RR(pi))) yi = sage_eval(yi.replace("x",repr(xi))) | yi = ff(xi) | def plot_fourier_series_partial_sum_hann(self,N,L,xmin,xmax, **kwds): r""" Plots the partial sum \[ f(x) \sim \frac{a_0}{2} + \sum_{n=1}^N H_N(n)*[a_n\cos(\frac{n\pi x}{L}) + b_n\sin(\frac{n\pi x}{L})], \] over xmin < x < xmin, where H_N(x) = (0.5)+(0.5)*cos(x*pi/N) is the N-th Hann filter. | 5168ece748a266be5681974a91884400b5d9f02c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/5168ece748a266be5681974a91884400b5d9f02c/piecewise.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
67,
74,
24775,
67,
10222,
67,
11601,
67,
1364,
67,
76,
1072,
12,
2890,
16,
50,
16,
48,
16,
92,
1154,
16,
92,
1896,
16,
2826,
25577,
4672,
436,
8395,
3008,
6968,
326,
4702,
2142... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3207,
67,
74,
24775,
67,
10222,
67,
11601,
67,
1364,
67,
76,
1072,
12,
2890,
16,
50,
16,
48,
16,
92,
1154,
16,
92,
1896,
16,
2826,
25577,
4672,
436,
8395,
3008,
6968,
326,
4702,
2142... |
"foo1(track=%s, subjectNodePath=%s, duration=%s)"%( | "doorUnlock(track=%s, subjectNodePath=%s, duration=%s)"%( | def doorUnlock(self, track, subjectNodePath, duration): assert(self.debugPrint( "foo1(track=%s, subjectNodePath=%s, duration=%s)"%( track, subjectNodePath, duration))) track.append(Sequence( Func(toonbase.localToon.stopUpdateSmartCamera), PosHprInterval( camera, other=self, pos=Point3(-2, -35, 7.5), hpr=VBase3(-7, 0, 0)), LerpPosHprInterval( nodePath=camera, other=self, duration=duration, pos=Point3(2, -22, 7.5), hpr=VBase3(4, 0, 0), blendType="easeInOut"), PosHprInterval( camera, other=self, pos=Point3(0, -28, 7.5), hpr=VBase3(0, 0, 0)), Func(toonbase.localToon.startUpdateSmartCamera), )) return track | cf1e6a3b4a90a997abbf7f6b409a3f4841a05938 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/cf1e6a3b4a90a997abbf7f6b409a3f4841a05938/CutScene.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
280,
7087,
12,
2890,
16,
3298,
16,
3221,
907,
743,
16,
3734,
4672,
1815,
12,
2890,
18,
4148,
5108,
12,
315,
2896,
280,
7087,
12,
4101,
5095,
87,
16,
3221,
907,
743,
5095,
87,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
280,
7087,
12,
2890,
16,
3298,
16,
3221,
907,
743,
16,
3734,
4672,
1815,
12,
2890,
18,
4148,
5108,
12,
315,
2896,
280,
7087,
12,
4101,
5095,
87,
16,
3221,
907,
743,
5095,
87,
16... |
def load_completion(self, ids): | def load_completion(self, names): | def load_completion(self, ids): self.completion.set_match_func(self.match_func, None) self.completion.connect("match-selected", self.on_completion_match) self.wid_text.set_completion(self.completion) self.completion.set_model(self.liststore) self.completion.set_text_column(0) for i, word in enumerate(ids): if word[1][0] == '[': i = word[1].find(']') str1 = word[1][1:i] str2 = word[1][i+2:] self.liststore.append([("%s %s" % (str1, str2)), str2]) else: self.liststore.append([word[1], word[1]]) | 4225f5449fb945fc0badd9a5713a1d27a2300615 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/4225f5449fb945fc0badd9a5713a1d27a2300615/many2one.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
11469,
12,
2890,
16,
1257,
4672,
365,
18,
11469,
18,
542,
67,
1916,
67,
644,
12,
2890,
18,
1916,
67,
644,
16,
599,
13,
365,
18,
11469,
18,
3612,
2932,
1916,
17,
8109,
3113,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
11469,
12,
2890,
16,
1257,
4672,
365,
18,
11469,
18,
542,
67,
1916,
67,
644,
12,
2890,
18,
1916,
67,
644,
16,
599,
13,
365,
18,
11469,
18,
3612,
2932,
1916,
17,
8109,
3113,... |
self.insert_to_priority_db_feeder_queue(ooid,submitted_timestamp,processed_json) | self.insert_to_priority_db_feeder_queue(ooid,submitted_timestamp) | def put_processed_json(self,ooid,processed_json): """ Create a crash report from the cooked json output of the processor """ row_id = ooid_to_row_id(ooid) | c3a802cca5a68450f58b4fda05d74a38ee7d8510 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12383/c3a802cca5a68450f58b4fda05d74a38ee7d8510/hbaseClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
67,
11005,
67,
1977,
12,
2890,
16,
83,
839,
16,
11005,
67,
1977,
4672,
3536,
1788,
279,
17053,
2605,
628,
326,
15860,
329,
1163,
876,
434,
326,
6659,
3536,
1027,
67,
350,
273,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
67,
11005,
67,
1977,
12,
2890,
16,
83,
839,
16,
11005,
67,
1977,
4672,
3536,
1788,
279,
17053,
2605,
628,
326,
15860,
329,
1163,
876,
434,
326,
6659,
3536,
1027,
67,
350,
273,
32... |
sage: it.next() Elliptic Curve defined by y^2 + y = x^3 - x^2 - 10*x - 20 over Rational Field sage: it.next() Elliptic Curve defined by y^2 + y = x^3 - x^2 - 7820*x - 263580 over Rational Field """ return self.iter([11, self.largest_conductor()+1]) | sage: it.next().label() '11a1' sage: it.next().label() '11a2' sage: it.next().label() '11a3' sage: it.next().label() '14a1' sage: skip = [it.next() for _ in range(100)] sage: it.next().label() '45a3' """ return self.iter(xsrange(11,self.largest_conductor()+1)) | def __iter__(self): """ Returns an iterator through all EllipticCurve objects in the Cremona database. | fb3431bba902a2778bc04ef2120a158db023876d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/fb3431bba902a2778bc04ef2120a158db023876d/cremona.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
3536,
2860,
392,
2775,
3059,
777,
10426,
549,
21507,
9423,
2184,
316,
326,
5799,
2586,
69,
2063,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
3536,
2860,
392,
2775,
3059,
777,
10426,
549,
21507,
9423,
2184,
316,
326,
5799,
2586,
69,
2063,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
attributeName = GetRedirectAttribute(item, 'body'); textType = item.getAttributeAspect(attributeName, 'type') widgetText = widget.GetValue() if widgetText: text = unicode(widgetText, 'utf-8', 'ignore').encode('ascii', 'ignore') item.body = textType.makeValue(text, encoding='ascii', indexed=True) | if validate: attributeName = GetRedirectAttribute(item, 'body'); textType = item.getAttributeAspect(attributeName, 'type') widgetText = widget.GetValue() if widgetText: text = unicode(widgetText, 'utf-8', 'ignore').encode('ascii', 'ignore') item.body = textType.makeValue(text, encoding='ascii', indexed=True) | def saveAttributeFromWidget (self, item, widget, validate): attributeName = GetRedirectAttribute(item, 'body'); textType = item.getAttributeAspect(attributeName, 'type') widgetText = widget.GetValue() if widgetText: #XXX: Ensures that any non-ascii text entered in to the detail view # is properly encoded to ascii. This is a short term fix # and will not address issues related to internationalization text = unicode(widgetText, 'utf-8', 'ignore').encode('ascii', 'ignore') item.body = textType.makeValue(text, encoding='ascii', indexed=True) | 308d5b9d0da3d10a094ab2fb35d2e516c51c3558 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/308d5b9d0da3d10a094ab2fb35d2e516c51c3558/Detail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
1499,
1265,
4609,
261,
2890,
16,
761,
16,
3604,
16,
1954,
4672,
9734,
273,
968,
5961,
1499,
12,
1726,
16,
296,
3432,
8284,
977,
559,
273,
761,
18,
588,
1499,
17468,
12,
4589,
461... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
1499,
1265,
4609,
261,
2890,
16,
761,
16,
3604,
16,
1954,
4672,
9734,
273,
968,
5961,
1499,
12,
1726,
16,
296,
3432,
8284,
977,
559,
273,
761,
18,
588,
1499,
17468,
12,
4589,
461... |
elif event.key.keyval == Gdk.KP_Up or event.key.keyval == Gdk.Up: | elif event.key.keyval == Gdk.KEY_KP_Up or event.key.keyval == Gdk.KEY_Up: | def __key_press_event_cb(self, view, event): if event.key.keyval == Gdk.d and event.key.state == Gdk.ModifierType.CONTROL_MASK: self.destroy() elif event.key.keyval == Gdk.Return and event.key.state == Gdk.ModifierType.CONTROL_MASK: # Get the command buffer = view.get_buffer() inp_mark = buffer.get_mark("input") inp = buffer.get_iter_at_mark(inp_mark) cur = buffer.get_end_iter() line = buffer.get_text(inp, cur, True) self.current_command = self.current_command + line + "\n" self.history_add(line) | 41bf18408a8155299c0868e65d97739374d59c3d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11070/41bf18408a8155299c0868e65d97739374d59c3d/console.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
856,
67,
1028,
67,
2575,
67,
7358,
12,
2890,
16,
1476,
16,
871,
4672,
309,
871,
18,
856,
18,
856,
1125,
422,
611,
2883,
18,
72,
471,
871,
18,
856,
18,
2019,
422,
611,
2883,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
856,
67,
1028,
67,
2575,
67,
7358,
12,
2890,
16,
1476,
16,
871,
4672,
309,
871,
18,
856,
18,
856,
1125,
422,
611,
2883,
18,
72,
471,
871,
18,
856,
18,
2019,
422,
611,
2883,
1... |
("a;", ("a", ";")), ("a/b;c/d;e", ("a/b;c/d", ";e")), | ("a;", ("a", "")), ("a/b;c/d;e", ("a/b;c/d", "e")), | def test_splitparam (self): """path parameter split test""" p = [ ("", ("", "")), ("/", ("/", "")), ("a", ("a", "")), ("a;", ("a", ";")), ("a/b;c/d;e", ("a/b;c/d", ";e")), ] for x in p: self._splitparam (self, x) | 267870176cbdd8a2ef1c955a05006f83e178dba7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/267870176cbdd8a2ef1c955a05006f83e178dba7/test_url.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4939,
891,
261,
2890,
4672,
3536,
803,
1569,
1416,
1842,
8395,
293,
273,
306,
7566,
3113,
7566,
3113,
1408,
13,
3631,
7566,
19,
3113,
7566,
19,
3113,
1408,
13,
3631,
7566,
69,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4939,
891,
261,
2890,
4672,
3536,
803,
1569,
1416,
1842,
8395,
293,
273,
306,
7566,
3113,
7566,
3113,
1408,
13,
3631,
7566,
19,
3113,
7566,
19,
3113,
1408,
13,
3631,
7566,
69,
... |
return translate('duplication_error_text', 'ftw_meeting') | return translate( 'duplication_error_text', 'ftw_meeting', context=self.request) | def __call__(self, date_hash=None): """If successfull this view returns a small part html Example: <a href="url/to/meeting">Meeting</a> this will be displayed as statusmessage | 7b9eb76e85b184a69f98586606124fad699fc96c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11898/7b9eb76e85b184a69f98586606124fad699fc96c/create_meeting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
1509,
67,
2816,
33,
7036,
4672,
3536,
2047,
2216,
2854,
333,
1476,
1135,
279,
5264,
1087,
1729,
5090,
30,
411,
69,
3897,
1546,
718,
19,
869,
19,
3501,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
1509,
67,
2816,
33,
7036,
4672,
3536,
2047,
2216,
2854,
333,
1476,
1135,
279,
5264,
1087,
1729,
5090,
30,
411,
69,
3897,
1546,
718,
19,
869,
19,
3501,
21... |
cmd = 'python devserver.py' | cmd = 'python devserver.py --factory_config miniomaha.conf' | def start_devserver(): """Starts devserver.""" cmd = 'python devserver.py' print 'Running command: %s' % cmd devserver_process = KillableProcess(cmd, cwd=DEVSERVER_DIR) devserver_process.start(wait=False) | ca3029e0d2ab0858f3066471d3aa8b23ab00d9dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/ca3029e0d2ab0858f3066471d3aa8b23ab00d9dd/serve_factory_packages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
5206,
3567,
13332,
3536,
11203,
4461,
3567,
12123,
1797,
273,
296,
8103,
4461,
3567,
18,
2074,
1493,
6848,
67,
1425,
1131,
14642,
69,
3395,
18,
3923,
11,
1172,
296,
7051,
1296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
5206,
3567,
13332,
3536,
11203,
4461,
3567,
12123,
1797,
273,
296,
8103,
4461,
3567,
18,
2074,
1493,
6848,
67,
1425,
1131,
14642,
69,
3395,
18,
3923,
11,
1172,
296,
7051,
1296,
... |
para = Paragraph(text=self.buffer, font="Serif",font_size=10,) | para = Paragraph(text=self.buffer, font="FreeSerif",font_size=10,) | def end_p(self) : self.p=False para = Paragraph(text=self.buffer, font="Serif",font_size=10,) para.set_justify(True) if self.language: para.language = self.language else: para.language = None para.set_hyphenate(True) self.pdf.add_paragraph(para) self.buffer = None | ac361d25903931d8700fea4f90895adc4a26a32c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14704/ac361d25903931d8700fea4f90895adc4a26a32c/wiki2pdf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
679,
67,
84,
12,
2890,
13,
294,
365,
18,
84,
33,
8381,
12602,
273,
24963,
12,
955,
33,
2890,
18,
4106,
16,
3512,
1546,
9194,
827,
430,
3113,
5776,
67,
1467,
33,
2163,
16,
13,
12602,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
679,
67,
84,
12,
2890,
13,
294,
365,
18,
84,
33,
8381,
12602,
273,
24963,
12,
955,
33,
2890,
18,
4106,
16,
3512,
1546,
9194,
827,
430,
3113,
5776,
67,
1467,
33,
2163,
16,
13,
12602,
... |
this = apply(_quickfix.new_SellerDays, args) | this = _quickfix.new_SellerDays(*args) | def __init__(self, *args): this = apply(_quickfix.new_SellerDays, 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,
22050,
9384,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
22050,
9384,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
... |
logfcn(args) | logfcn(string.strip(args)) | def log(self, args): "Log using each of the supplied logging methods" for logfcn in self._logfunctions: logfcn(args) | 74b79a55283be02a4e929917fc7e99dcb8b3055d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5112/74b79a55283be02a4e929917fc7e99dcb8b3055d/CTSlab.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
12,
2890,
16,
833,
4672,
315,
1343,
1450,
1517,
434,
326,
4580,
2907,
2590,
6,
364,
613,
7142,
82,
316,
365,
6315,
1330,
10722,
30,
613,
7142,
82,
12,
1968,
13,
2,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
12,
2890,
16,
833,
4672,
315,
1343,
1450,
1517,
434,
326,
4580,
2907,
2590,
6,
364,
613,
7142,
82,
316,
365,
6315,
1330,
10722,
30,
613,
7142,
82,
12,
1968,
13,
2,
-100,
-100,
-... |
if _debug: print "\t%s: Called Plane.mapImageToPlane()" % rendererName | debugMsg("Called Plane.mapImageToPlane()") | def render(self): """ Perform Plane object specific (pre)rendering tasks """ if _debug: print "\t%s: Called Plane.mapImageToPlane()" % rendererName | 14a27bcd280a0a7884be8bd64c5e85ab15303932 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/14a27bcd280a0a7884be8bd64c5e85ab15303932/plane.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
4672,
3536,
11217,
3008,
8806,
733,
2923,
261,
1484,
13,
5902,
310,
4592,
3536,
309,
389,
4148,
30,
1172,
1548,
88,
9,
87,
30,
11782,
3008,
8806,
18,
1458,
2040,
774,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1743,
12,
2890,
4672,
3536,
11217,
3008,
8806,
733,
2923,
261,
1484,
13,
5902,
310,
4592,
3536,
309,
389,
4148,
30,
1172,
1548,
88,
9,
87,
30,
11782,
3008,
8806,
18,
1458,
2040,
774,
1... |
file1.write(cgi_file1 % sys.executable) | file1.write(cgi_file1 % self.pythonexe) | def setUp(self): BaseTestCase.setUp(self) self.parent_dir = tempfile.mkdtemp() self.cgi_dir = os.path.join(self.parent_dir, 'cgi-bin') os.mkdir(self.cgi_dir) | 0805e6eed94015cee09ba052deda2e1c94c182b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/0805e6eed94015cee09ba052deda2e1c94c182b3/test_httpservers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
3360,
4709,
2449,
18,
542,
1211,
12,
2890,
13,
365,
18,
2938,
67,
1214,
273,
13275,
18,
24816,
72,
5814,
1435,
365,
18,
19062,
67,
1214,
273,
1140,
18,
803,
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,
24292,
12,
2890,
4672,
3360,
4709,
2449,
18,
542,
1211,
12,
2890,
13,
365,
18,
2938,
67,
1214,
273,
13275,
18,
24816,
72,
5814,
1435,
365,
18,
19062,
67,
1214,
273,
1140,
18,
803,
18,
... |
time.strftime("%a, %d %b %Y %H:%M:%S GMT", self.last_modified)) req.send_header('Pragma', 'no-cache') req.send_header('Expires', 'Mon, 26 Jul 1997 05:00:00 GMT') req.send_header('Cache-Control', 'no-store, no-cache, must-revalidate, max-age=0') req.send_header('Cache-Control', 'post-check=0, pre-check=0') | time.strftime("%a, %d %b %Y %H:%M:%S GMT", self.last_modified)) | def display_raw(self, req): req.send_response(200) req.send_header('Content-Type', self.mime_type) req.send_header('Content-Length', str(self.length)) req.send_header('Last-Modified', time.strftime("%a, %d %b %Y %H:%M:%S GMT", self.last_modified)) req.send_header('Pragma', 'no-cache') req.send_header('Expires', 'Mon, 26 Jul 1997 05:00:00 GMT') req.send_header('Cache-Control', 'no-store, no-cache, must-revalidate, max-age=0') req.send_header('Cache-Control', 'post-check=0, pre-check=0') req.end_headers() i = 0 while 1: data = self.read_func(self.CHUNK_SIZE) if not data: break req.write(data) i += self.CHUNK_SIZE | 74120833ed550d69a6a65e69042631dfac99a114 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/74120833ed550d69a6a65e69042631dfac99a114/File.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
67,
1899,
12,
2890,
16,
1111,
4672,
1111,
18,
4661,
67,
2740,
12,
6976,
13,
1111,
18,
4661,
67,
3374,
2668,
1350,
17,
559,
2187,
365,
18,
11757,
67,
723,
13,
1111,
18,
4661,
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,
2562,
67,
1899,
12,
2890,
16,
1111,
4672,
1111,
18,
4661,
67,
2740,
12,
6976,
13,
1111,
18,
4661,
67,
3374,
2668,
1350,
17,
559,
2187,
365,
18,
11757,
67,
723,
13,
1111,
18,
4661,
67... |
mixer.setrec(0) sys.exit(0) if args.find(',') != -1: channel,volume = map(int,args.split(',')) | mixer.setrec(0, channel) | def set_mixer(name, args, idx=0): # Demonstrates how to set mixer settings try: mixer = alsaaudio.Mixer(name, cardindex=idx) except alsaaudio.ALSAAudioError: sys.stderr.write("No such mixer") sys.exit(1) if args in ['mute','unmute']: # Mute/unmute the mixer if args == 'mute': mixer.setmute(1) else: mixer.setmute(0) sys.exit(0) if args in ['rec','unrec']: # Enable/disable recording if args == 'rec': mixer.setrec(1) else: mixer.setrec(0) sys.exit(0) if args.find(',') != -1: channel,volume = map(int,args.split(',')) else: channel = alsaaudio.MIXER_CHANNEL_ALL volume = int(args) # Set volume for specified channel. MIXER_CHANNEL_ALL means set # volume for all channels mixer.setvolume(volume, channel) | cf41942ed57983a3a124937fc348323d231386b3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4473/cf41942ed57983a3a124937fc348323d231386b3/mixertest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
14860,
264,
12,
529,
16,
833,
16,
2067,
33,
20,
4672,
468,
463,
4758,
701,
815,
3661,
358,
444,
6843,
264,
1947,
775,
30,
6843,
264,
273,
524,
87,
7598,
4484,
18,
21294,
264... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
14860,
264,
12,
529,
16,
833,
16,
2067,
33,
20,
4672,
468,
463,
4758,
701,
815,
3661,
358,
444,
6843,
264,
1947,
775,
30,
6843,
264,
273,
524,
87,
7598,
4484,
18,
21294,
264... |
filename = '<codegen %s:%d>' % (fn, lineno) | filename = '<%d-codegen %s:%d>' % (self._counter, fn, lineno) | def compile(self, filename=None, mode='exec', flag=generators.compiler_flag, dont_inherit=0, _genframe=None): """ return compiled code object. if filename is None invent an artificial filename which displays the source/line position of the caller frame. """ if not filename or py.path.local(filename).check(file=0): if _genframe is None: _genframe = sys._getframe(1) # the caller fn,lineno = _genframe.f_code.co_filename, _genframe.f_lineno if not filename: filename = '<codegen %s:%d>' % (fn, lineno) else: filename = '<codegen %r %s:%d>' % (filename, fn, lineno) source = "\n".join(self.lines) + '\n' try: co = cpy_compile(source, filename, mode, flag) except SyntaxError: ex = sys.exc_info()[1] # re-represent syntax errors from parsing python strings msglines = self.lines[:ex.lineno] if ex.offset: msglines.append(" "*ex.offset + '^') msglines.append("syntax error probably generated here: %s" % filename) newex = SyntaxError('\n'.join(msglines)) newex.offset = ex.offset newex.lineno = ex.lineno newex.text = ex.text raise newex else: if flag & _AST_FLAG: return co lines = [(x + "\n") for x in self.lines] if sys.version_info[0] >= 3: # XXX py3's inspect.getsourcefile() checks for a module # and a pep302 __loader__ ... we don't have a module # at code compile-time so we need to fake it here m = ModuleType("_pycodecompile_pseudo_module") py.std.inspect.modulesbyfile[filename] = None py.std.sys.modules[None] = m m.__loader__ = 1 py.std.linecache.cache[filename] = (1, None, lines, filename) return co | 160477a3cefc7151a5208898f9416c198fc7c489 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/160477a3cefc7151a5208898f9416c198fc7c489/source.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
12,
2890,
16,
1544,
33,
7036,
16,
1965,
2218,
4177,
2187,
2982,
33,
25959,
18,
9576,
67,
6420,
16,
14046,
67,
6018,
33,
20,
16,
389,
4507,
3789,
33,
7036,
4672,
3536,
327,
7743,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
12,
2890,
16,
1544,
33,
7036,
16,
1965,
2218,
4177,
2187,
2982,
33,
25959,
18,
9576,
67,
6420,
16,
14046,
67,
6018,
33,
20,
16,
389,
4507,
3789,
33,
7036,
4672,
3536,
327,
7743,
... |
raise yum.Errors.YumRPMCheckError,retmsgs | raise Errors.YumRPMCheckError,retmsgs | def _doTestTransaction(self,callback,display=None): ''' Do the RPM test transaction ''' # This can be overloaded by a subclass. if self.conf.rpm_check_debug: self.verbose_logger.log(logginglevels.INFO_2, 'Running rpm_check_debug') msgs = self._run_rpm_check_debug() if msgs: retmsgs = ['ERROR with rpm_check_debug vs depsolve:'] retmsgs.extend(msgs) retmsgs.append('Please report this error in bugzilla') raise yum.Errors.YumRPMCheckError,retmsgs tsConf = {} for feature in ['diskspacecheck']: # more to come, I'm sure tsConf[feature] = getattr( self.conf, feature ) # testcb = RPMTransaction(self, test=True) # overwrite the default display class if display: testcb.display = display # clean out the ts b/c we have to give it new paths to the rpms del self.ts | 4cf258968a109cd03de2ae7a078ff0e8e6760cea /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5445/4cf258968a109cd03de2ae7a078ff0e8e6760cea/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
4709,
3342,
12,
2890,
16,
3394,
16,
5417,
33,
7036,
4672,
9163,
2256,
326,
534,
12728,
1842,
2492,
9163,
468,
1220,
848,
506,
1879,
4230,
635,
279,
10177,
18,
309,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
4709,
3342,
12,
2890,
16,
3394,
16,
5417,
33,
7036,
4672,
9163,
2256,
326,
534,
12728,
1842,
2492,
9163,
468,
1220,
848,
506,
1879,
4230,
635,
279,
10177,
18,
309,
365,
18,
... |
db_type = whichdb.whichdb(path) | db_type = whichdb(path) | def cache_db_type(self, path): ''' determine which DB wrote the class file, and cache it as an attribute of __class__ (to allow for subclassed DBs to be different sorts) ''' db_type = '' if os.path.exists(path): db_type = whichdb.whichdb(path) if not db_type: raise hyperdb.DatabaseError( _("Couldn't identify database type")) elif os.path.exists(path+'.db'): # if the path ends in '.db', it's a dbm database, whether # anydbm says it's dbhash or not! db_type = 'dbm' self.__class__._db_type = db_type | 04ad3c2939e2720a90ab097016ce5c4cdedf8ced /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1906/04ad3c2939e2720a90ab097016ce5c4cdedf8ced/sessions_dbm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1247,
67,
1966,
67,
723,
12,
2890,
16,
589,
4672,
9163,
4199,
1492,
2383,
341,
21436,
326,
667,
585,
16,
471,
1247,
518,
487,
392,
1566,
434,
1001,
1106,
972,
261,
869,
1699,
364,
720,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1247,
67,
1966,
67,
723,
12,
2890,
16,
589,
4672,
9163,
4199,
1492,
2383,
341,
21436,
326,
667,
585,
16,
471,
1247,
518,
487,
392,
1566,
434,
1001,
1106,
972,
261,
869,
1699,
364,
720,... |
index %= len(self) | index = self._fix_neg_index(index) self._dict[value] = index for i in range(index, len(self._list)): elem = self._list[i] self._dict[elem] = self._dict[elem] + 1 | def insert(self, index, value): index %= len(self) if index > len(self): raise IndexError if value in self: return index %= len(self) self._list.insert(index, value) self._dict[value] = index | df8b146eb0ed4ec51ea2ff8cec3b642c375153e2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5397/df8b146eb0ed4ec51ea2ff8cec3b642c375153e2/collections_.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
12,
2890,
16,
770,
16,
460,
4672,
770,
273,
365,
6315,
904,
67,
14518,
67,
1615,
12,
1615,
13,
365,
6315,
1576,
63,
1132,
65,
273,
770,
364,
277,
316,
1048,
12,
1615,
16,
562,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2243,
12,
2890,
16,
770,
16,
460,
4672,
770,
273,
365,
6315,
904,
67,
14518,
67,
1615,
12,
1615,
13,
365,
6315,
1576,
63,
1132,
65,
273,
770,
364,
277,
316,
1048,
12,
1615,
16,
562,
... |
req.add_header(self.header, 'Digest %s' % auth) | auth_val = 'Digest %s' % auth if req.headers.get(self.auth_header, None) == auth_val: return None req.add_header(self.auth_header, auth_val) | def retry_http_digest_auth(self, req, auth): token, challenge = auth.split(' ', 1) chal = parse_keqv_list(parse_http_list(challenge)) auth = self.get_authorization(req, chal) if auth: req.add_header(self.header, 'Digest %s' % auth) resp = self.parent.open(req) self.__current_realm = None return resp | 52a17becbcc8bba8d4750926c58f6ac6e41464b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/52a17becbcc8bba8d4750926c58f6ac6e41464b7/urllib2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3300,
67,
2505,
67,
10171,
67,
1944,
12,
2890,
16,
1111,
16,
1357,
4672,
1147,
16,
12948,
273,
1357,
18,
4939,
2668,
2265,
404,
13,
462,
287,
273,
1109,
67,
4491,
85,
90,
67,
1098,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3300,
67,
2505,
67,
10171,
67,
1944,
12,
2890,
16,
1111,
16,
1357,
4672,
1147,
16,
12948,
273,
1357,
18,
4939,
2668,
2265,
404,
13,
462,
287,
273,
1109,
67,
4491,
85,
90,
67,
1098,
1... |
lines = header(name, 'varchar', 'integer') | lines = header(name, ['varchar'], 'integer') | def pgsql_delete(name, tables, key): lines = header(name, 'varchar', 'integer') lines.append('begin') for table in tables: line = "delete from %s where %s = $1 ;" % (table, key) lines.append(line) lines.append('return 0 ;') lines.append('end ;') lines.append("' language 'plpgsql';") return '\n'.join(lines) + '\n' | 34f0c1bb57dbf21512f9530d203352415153310f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2558/34f0c1bb57dbf21512f9530d203352415153310f/plsql.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
30175,
67,
3733,
12,
529,
16,
4606,
16,
498,
4672,
2362,
273,
1446,
12,
529,
16,
10228,
90,
22483,
17337,
296,
7745,
6134,
2362,
18,
6923,
2668,
10086,
6134,
364,
1014,
316,
4606,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30175,
67,
3733,
12,
529,
16,
4606,
16,
498,
4672,
2362,
273,
1446,
12,
529,
16,
10228,
90,
22483,
17337,
296,
7745,
6134,
2362,
18,
6923,
2668,
10086,
6134,
364,
1014,
316,
4606,
... |
if char < 0x20 or char > 0x7E: | if char < 33 or char > 126 or chr(char) in \ ('[', ']', '(', ')', '{', '}', '<', '>', '/', '%'): | def extractInfo(self, charInfo=1): """Extract typographic information from the loaded font file. | 07507b8a952bfffc6323d9fd017854aa4f8705ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/07507b8a952bfffc6323d9fd017854aa4f8705ae/ttfonts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
966,
12,
2890,
16,
1149,
966,
33,
21,
4672,
3536,
4976,
3815,
16983,
1779,
628,
326,
4203,
3512,
585,
18,
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,
2608,
966,
12,
2890,
16,
1149,
966,
33,
21,
4672,
3536,
4976,
3815,
16983,
1779,
628,
326,
4203,
3512,
585,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
framework = sysconfig.get_config_var('PYTHONFRAMEWORK') if framework: exts.append( Extension('gestalt', ['gestaltmodule.c'], extra_link_args=['-framework', 'Carbon']) ) exts.append( Extension('MacOS', ['macosmodule.c'], extra_link_args=['-framework', 'Carbon']) ) exts.append( Extension('icglue', ['icgluemodule.c'], extra_link_args=['-framework', 'Carbon']) ) exts.append( Extension('macfs', ['macfsmodule.c', '../Python/getapplbycreator.c'], extra_link_args=['-framework', 'Carbon']) ) exts.append( Extension('_Res', ['res/_Resmodule.c'], extra_link_args=['-framework', 'Carbon']) ) exts.append( Extension('_Snd', ['snd/_Sndmodule.c'], extra_link_args=['-framework', 'Carbon']) ) exts.append( Extension('Nav', ['Nav.c'], | exts.append( Extension('gestalt', ['gestaltmodule.c'], | def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') | ae619d6209eaf1fd84fa7c6ad9af1811242cd77a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/ae619d6209eaf1fd84fa7c6ad9af1811242cd77a/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... |
for widget in self.allButtonsRequiringFilename: | for widget in self.allSaveButtonsRequiringFilename: widget['clean name'] = cleanstring(widget['name']) self.allLoadButtonsRequiringFilename = [ {'name':'Load From File','widget':self.GUI.loadFromFileButton, 'function':self.GUI.calibrationDataLoad,'move to page':moveToCalibration}, {'name':'Load Mask','widget':self.GUI.loadMask, 'function':self.GUI.loadPolygonsFromFile,'move to page':moveToMasking}, ] for widget in self.allLoadButtonsRequiringFilename: | def __init__(self,GUI,setstatus): """ Object to perform the macro recording/writing. The object requires the GUI To work with. """ | abae46ac242a5c403d574eba08c1a66f400ce23b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8973/abae46ac242a5c403d574eba08c1a66f400ce23b/MacroMode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
43,
5370,
16,
542,
2327,
4672,
3536,
1033,
358,
3073,
326,
11522,
14949,
19,
14345,
18,
1021,
733,
4991,
326,
10978,
2974,
1440,
598,
18,
3536,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
43,
5370,
16,
542,
2327,
4672,
3536,
1033,
358,
3073,
326,
11522,
14949,
19,
14345,
18,
1021,
733,
4991,
326,
10978,
2974,
1440,
598,
18,
3536,
2,
-100,
... |
return self.__submodule | r""" Alias for \code{self.free_module()}. EXAMPLES: sage: M = ModularSymbols(17,4).cuspidal_subspace() sage: M.free_module() is M.module() True """ return self.free_module() | def module(self): return self.__submodule | 448402c83dbf6e87567edb0de0e4b1f151dd54f6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/448402c83dbf6e87567edb0de0e4b1f151dd54f6/submodule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1605,
12,
2890,
4672,
327,
365,
16186,
1717,
2978,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1605,
12,
2890,
4672,
327,
365,
16186,
1717,
2978,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
urllib.urlretrieve(download_url, BUILD_ZIP_NAME) | urllib.urlretrieve(download_url, BUILD_ZIP_NAME, _Reporthook) print | def TryRevision(rev, profile, args): """Downloads revision |rev|, unzips it, and opens it for the user to test. |profile| is the profile to use.""" # Do this in a temp dir so we don't collide with user files. cwd = os.getcwd() tempdir = tempfile.mkdtemp(prefix='bisect_tmp') os.chdir(tempdir) # Download the file. download_url = BUILD_BASE_URL + (BUILD_ARCHIVE_URL % rev) + BUILD_ZIP_NAME try: print 'Fetching ' + download_url urllib.urlretrieve(download_url, BUILD_ZIP_NAME) except Exception, e: print('Could not retrieve the download. Sorry.') sys.exit(-1) # Unzip the file. print 'Unziping ...' UnzipFilenameToDir(BUILD_ZIP_NAME, os.curdir) # Tell the system to open the app. args = ['--user-data-dir=%s' % profile] + args flags = ' '.join(map(pipes.quote, args)) exe = os.path.join(os.getcwd(), BUILD_DIR_NAME, BUILD_EXE_NAME) cmd = '%s %s' % (exe, flags) print 'Running %s' % cmd os.system(cmd) os.chdir(cwd) print 'Cleaning temp dir ...' try: shutil.rmtree(tempdir, True) except Exception, e: pass | 6ad3b2f81e30b63588810b891ef17aa98afa9942 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/6ad3b2f81e30b63588810b891ef17aa98afa9942/build-bisect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6161,
7939,
12,
9083,
16,
3042,
16,
833,
4672,
3536,
22141,
6350,
571,
9083,
96,
16,
20259,
87,
518,
16,
471,
10400,
518,
364,
326,
729,
358,
1842,
18,
571,
5040,
96,
353,
326,
3042,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6161,
7939,
12,
9083,
16,
3042,
16,
833,
4672,
3536,
22141,
6350,
571,
9083,
96,
16,
20259,
87,
518,
16,
471,
10400,
518,
364,
326,
729,
358,
1842,
18,
571,
5040,
96,
353,
326,
3042,
... |
installNode.setAttribute("device", type) | installNode.setAttribute("device", devicetype) | def targetDev(self, doc, type, path, bus): installNode = doc.createElement("disk") installNode.setAttribute("type", "file") installNode.setAttribute("device", type) sourceInstallNode = doc.createElement("source") sourceInstallNode.setAttribute("file", path) installNode.appendChild(sourceInstallNode) targetInstallNode = doc.createElement("target") targetInstallNode.setAttribute("dev", bus) installNode.appendChild(targetInstallNode) return installNode | 1f0323a18ecdf94f3b3336d1df235fcd65c18c27 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14184/1f0323a18ecdf94f3b3336d1df235fcd65c18c27/Guest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1018,
8870,
12,
2890,
16,
997,
16,
618,
16,
589,
16,
5766,
4672,
3799,
907,
273,
997,
18,
2640,
1046,
2932,
10863,
7923,
3799,
907,
18,
542,
1499,
2932,
723,
3113,
315,
768,
7923,
3799... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1018,
8870,
12,
2890,
16,
997,
16,
618,
16,
589,
16,
5766,
4672,
3799,
907,
273,
997,
18,
2640,
1046,
2932,
10863,
7923,
3799,
907,
18,
542,
1499,
2932,
723,
3113,
315,
768,
7923,
3799... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.