rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
return re.sub(' at 0x[0-9a-f]{5,}>$', '>', text) | for pattern in [' at 0x[0-9a-f]{6,}>$', ' at [0-9A-F]{8,}>$']: if re.search(pattern, repr(Exception)): return re.sub(pattern, '>', text) return text | def cleanid(text): """Remove the hexadecimal id from a Python object representation.""" return re.sub(' at 0x[0-9a-f]{5,}>$', '>', text) | 1d384634bf8f9e6180839048207bfd3539bbbc51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1d384634bf8f9e6180839048207bfd3539bbbc51/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
350,
12,
955,
4672,
3536,
3288,
326,
20070,
612,
628,
279,
6600,
733,
4335,
12123,
225,
364,
1936,
316,
10228,
622,
374,
92,
63,
20,
17,
29,
69,
17,
74,
7073,
26,
29531,
16200,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2721,
350,
12,
955,
4672,
3536,
3288,
326,
20070,
612,
628,
279,
6600,
733,
4335,
12123,
225,
364,
1936,
316,
10228,
622,
374,
92,
63,
20,
17,
29,
69,
17,
74,
7073,
26,
29531,
16200,
... |
fromDt = time.mktime(time.strptime(sc[0], "%Y-%m-%d %H:%M:%S")) toDt = time.mktime(time.strptime(sc[1], "%Y-%m-%d %H:%M:%S")) | try: fromDt = time.mktime(time.strptime(sc[0], "%Y-%m-%d %H:%M:%S")) except OverflowError: log.log(0,'error',__("Layout %s has an invalid schedule start time. Using 00:00:00 UTC on 1 January 1970") % self.layoutID) fromtDt = 0 try: toDt = time.mktime(time.strptime(sc[1], "%Y-%m-%d %H:%M:%S")) except OverflowError: log... | def canRun(self): # See if the layout file changed underneath us try: if self.__mtime != os.path.getmtime(config.get('Main','libraryDir') + os.sep + self.layoutID + '.xlf'): # It has. Force a reload self.builtWithNoXLF = True except: return False | 2296151912f575ab228673cee69d9c64f367c719 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5464/2296151912f575ab228673cee69d9c64f367c719/XiboClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
848,
1997,
12,
2890,
4672,
468,
2164,
309,
326,
3511,
585,
3550,
3613,
4644,
421,
584,
775,
30,
309,
365,
16186,
10838,
480,
1140,
18,
803,
18,
588,
10838,
12,
1425,
18,
588,
2668,
637... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
848,
1997,
12,
2890,
4672,
468,
2164,
309,
326,
3511,
585,
3550,
3613,
4644,
421,
584,
775,
30,
309,
365,
16186,
10838,
480,
1140,
18,
803,
18,
588,
10838,
12,
1425,
18,
588,
2668,
637... |
else: return True | return True | def checkTimeStamps(self): """check the timestamp of our target dir. If it is not newer than the repodata return False, else True""" if self.conf.checkts: dn = os.path.join(self.conf.basedir, self.conf.directory) files = self.getFileList(dn, '.rpm') files = self.trimRpms(files) for f in files: fn = os.path.join(self.co... | ad8110649baeb8bb9826c9d55be16c023734493e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9557/ad8110649baeb8bb9826c9d55be16c023734493e/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
21536,
87,
12,
2890,
4672,
3536,
1893,
326,
2858,
434,
3134,
1018,
1577,
18,
971,
518,
353,
486,
16069,
2353,
326,
2071,
18229,
327,
1083,
16,
469,
1053,
8395,
309,
365,
18,
3923,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
21536,
87,
12,
2890,
4672,
3536,
1893,
326,
2858,
434,
3134,
1018,
1577,
18,
971,
518,
353,
486,
16069,
2353,
326,
2071,
18229,
327,
1083,
16,
469,
1053,
8395,
309,
365,
18,
3923,
... |
return render_to_response('site/text_create_upload.html', {'form' : form}, context_instance=RequestContext(request)) | return None, render_to_response('site/text_create_upload.html', {'form' : form}, context_instance=RequestContext(request)) | def _text_create_upload(request, createForm): | 2b2f37116fa7245250c61864345ab897378c44b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5622/2b2f37116fa7245250c61864345ab897378c44b7/create.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
955,
67,
2640,
67,
6327,
12,
2293,
16,
19580,
4672,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
955,
67,
2640,
67,
6327,
12,
2293,
16,
19580,
4672,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
def _detectEncoding(self, xml_data, isHTML=False): | def _detectEncoding(self, xml_data): | def _detectEncoding(self, xml_data, isHTML=False): """Given a document, tries to detect its XML encoding.""" xml_encoding = sniffed_xml_encoding = None try: if xml_data[:4] == '\x4c\x6f\xa7\x94': # EBCDIC xml_data = self._ebcdic_to_ascii(xml_data) elif xml_data[:4] == '\x00\x3c\x00\x3f': # UTF-16BE sniffed_xml_encoding... | 7300e101f39b7a1a436c6765d140c987cbc58a45 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/7300e101f39b7a1a436c6765d140c987cbc58a45/BeautifulSoup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16518,
4705,
12,
2890,
16,
2025,
67,
892,
4672,
3536,
6083,
279,
1668,
16,
9327,
358,
5966,
2097,
3167,
2688,
12123,
2025,
67,
5999,
273,
26974,
329,
67,
2902,
67,
5999,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16518,
4705,
12,
2890,
16,
2025,
67,
892,
4672,
3536,
6083,
279,
1668,
16,
9327,
358,
5966,
2097,
3167,
2688,
12123,
2025,
67,
5999,
273,
26974,
329,
67,
2902,
67,
5999,
273,
599,
... |
line = raw_input() | line = raw_input("COMMAND> ") | def cgetline(): "Get a line of input." if game.options & OPTION_CURSES: line = curwnd.getstr() + "\n" curwnd.refresh() else: if replayfp and not replayfp.closed: line = replayfp.readline() else: line = raw_input() if logfp: logfp.write(line + "\n") return line | 7bd7a884799555ab23f60b565f0906f17d22c385 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/7bd7a884799555ab23f60b565f0906f17d22c385/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
588,
1369,
13332,
315,
967,
279,
980,
434,
810,
1199,
309,
7920,
18,
2116,
473,
7845,
67,
7509,
1090,
55,
30,
980,
273,
662,
91,
4880,
18,
588,
701,
1435,
397,
1548,
82,
6,
662,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
588,
1369,
13332,
315,
967,
279,
980,
434,
810,
1199,
309,
7920,
18,
2116,
473,
7845,
67,
7509,
1090,
55,
30,
980,
273,
662,
91,
4880,
18,
588,
701,
1435,
397,
1548,
82,
6,
662,... |
self.list == other.list | self._list == other._list | def __eq__(self, other): return self.__class__ == other.__class__ and \ self.parent() == self.parent() and \ self.list == other.list | 67303a93f4786cc66febe9f35ec0899a79994cf0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/67303a93f4786cc66febe9f35ec0899a79994cf0/tensor_product.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11253,
972,
12,
2890,
16,
1308,
4672,
327,
365,
16186,
1106,
972,
422,
1308,
16186,
1106,
972,
471,
521,
365,
18,
2938,
1435,
225,
422,
365,
18,
2938,
1435,
282,
471,
521,
365,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11253,
972,
12,
2890,
16,
1308,
4672,
327,
365,
16186,
1106,
972,
422,
1308,
16186,
1106,
972,
471,
521,
365,
18,
2938,
1435,
225,
422,
365,
18,
2938,
1435,
282,
471,
521,
365,
1... |
form p { margin:0 } | def startFormatting(title, identifier, source): document = """Content-Type:text/html;charset=UTF-8 | f5f4c3ed6200811f1911f1b21ca420f1c2697ec6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5033/f5f4c3ed6200811f1911f1b21ca420f1c2697ec6/trackerlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
23974,
12,
2649,
16,
2756,
16,
1084,
4672,
1668,
273,
3536,
1350,
17,
559,
30,
955,
19,
2620,
31,
9999,
33,
5159,
17,
28,
225,
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,
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,
787,
23974,
12,
2649,
16,
2756,
16,
1084,
4672,
1668,
273,
3536,
1350,
17,
559,
30,
955,
19,
2620,
31,
9999,
33,
5159,
17,
28,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
detected_versions = [] | def gather_msvc_versions(conf, versions): """checks SmartPhones SDKs""" try: ce_sdk = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, 'SOFTWARE\\Wow6432node\\Microsoft\\Windows CE Tools\\SDKs') except WindowsError: try: ce_sdk = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, 'SOFTWARE\\Microsoft\\Windows CE Tools\\SDKs') exce... | 5b759445013793033db911036920d549e6b9f6db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2886/5b759445013793033db911036920d549e6b9f6db/msvc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11090,
67,
959,
4227,
67,
10169,
12,
3923,
16,
5244,
4672,
3536,
12366,
19656,
3731,
5322,
3881,
87,
8395,
775,
30,
5898,
67,
20907,
273,
389,
8082,
1574,
18,
3678,
653,
24899,
8082,
157... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11090,
67,
959,
4227,
67,
10169,
12,
3923,
16,
5244,
4672,
3536,
12366,
19656,
3731,
5322,
3881,
87,
8395,
775,
30,
5898,
67,
20907,
273,
389,
8082,
1574,
18,
3678,
653,
24899,
8082,
157... | |
dprint("ref=%s, type=%s" % (ref, ref.__class__)) | def is_folder(cls, ref): dprint("ref=%s, type=%s" % (ref, ref.__class__)) if cls.exists(ref): dprint(ref) mime = cls._get_metadata(ref, 'getcontenttype') return mime == "httpd/unix-directory" return False | 86f487d201afc0c26ccca3cb3fdfd7f84807d2f7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/86f487d201afc0c26ccca3cb3fdfd7f84807d2f7/http.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
5609,
12,
6429,
16,
1278,
4672,
309,
2028,
18,
1808,
12,
1734,
4672,
302,
1188,
12,
1734,
13,
4892,
273,
2028,
6315,
588,
67,
4165,
12,
1734,
16,
296,
588,
1745,
723,
6134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
353,
67,
5609,
12,
6429,
16,
1278,
4672,
309,
2028,
18,
1808,
12,
1734,
4672,
302,
1188,
12,
1734,
13,
4892,
273,
2028,
6315,
588,
67,
4165,
12,
1734,
16,
296,
588,
1745,
723,
6134,
... | |
self.timestamp = time.asctime() | self.timestamp = time.strftime("%Y-%m-%d %H:%M:%S",time.gmtime()) | def __init__(self,taskBuffer,jobs,resubmit=False,pandaDDM=False,ddmAttempt=0,forkRun=False,onlyTA=False): threading.Thread.__init__(self) self.jobs = jobs self.taskBuffer = taskBuffer # VUIDs of dispatchDBlocks self.vuidMap = {} # resubmission or not self.resubmit = resubmit # time stamp self.timestamp = time.asc... | 4e25ff459b78e50b61ea2614281204d0c39c6fc9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7525/4e25ff459b78e50b61ea2614281204d0c39c6fc9/Setupper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4146,
1892,
16,
10088,
16,
455,
373,
1938,
33,
8381,
16,
84,
464,
69,
5698,
49,
33,
8381,
16,
449,
81,
7744,
33,
20,
16,
23335,
1997,
33,
8381,
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,
1001,
2738,
972,
12,
2890,
16,
4146,
1892,
16,
10088,
16,
455,
373,
1938,
33,
8381,
16,
84,
464,
69,
5698,
49,
33,
8381,
16,
449,
81,
7744,
33,
20,
16,
23335,
1997,
33,
8381,
16,
3... |
assert 'Department:</strong> Not on the list' in dept_readonly, dept_readonly | assert 'Not on the list' in dept_readonly, dept_readonly | def test_2_field_department_other(self): # Create package model.repo.new_revision() pkg = model.Package(name=u'test2') model.Session.add(pkg) pkg.extras = {u'department':u'Not on the list'} model.repo.commit_and_remove() | 49bfc6559ff9a3ad5d6a3f26b92da40f734f25bd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/265/49bfc6559ff9a3ad5d6a3f26b92da40f734f25bd/test_package_gov.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
22,
67,
1518,
67,
323,
15750,
67,
3011,
12,
2890,
4672,
468,
1788,
2181,
938,
18,
7422,
18,
2704,
67,
13057,
1435,
3475,
273,
938,
18,
2261,
12,
529,
33,
89,
1404,
395,
22,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22,
67,
1518,
67,
323,
15750,
67,
3011,
12,
2890,
4672,
468,
1788,
2181,
938,
18,
7422,
18,
2704,
67,
13057,
1435,
3475,
273,
938,
18,
2261,
12,
529,
33,
89,
1404,
395,
22,... |
if 0 <= i < self.len: | """implement x[i]""" if 0 <= i <= self.len: | def __getitem__(self, i): if 0 <= i < self.len: return self.start + self.step * i else: raise IndexError, 'range[i] index out of range' | c2b151c66ee9bc6e686400ee93e65e07d1999888 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c2b151c66ee9bc6e686400ee93e65e07d1999888/Range.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
277,
4672,
3536,
10442,
619,
63,
77,
65,
8395,
309,
374,
1648,
277,
1648,
365,
18,
1897,
30,
327,
365,
18,
1937,
397,
365,
18,
4119,
380,
277,
469,
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
277,
4672,
3536,
10442,
619,
63,
77,
65,
8395,
309,
374,
1648,
277,
1648,
365,
18,
1897,
30,
327,
365,
18,
1937,
397,
365,
18,
4119,
380,
277,
469,
30... |
if (axis == PL_Y_AXIS) : | if (axis == 2) : | def geolocation_labeler(axis, value, data): if (axis == PL_Y_AXIS) : label_val = value if (label_val > 0.0) : direction_label = " N" elif (label_val < 0.0) : direction_label = " S" else : direction_label = "Eq" elif (axis == PL_X_AXIS) : label_val = normalize_longitude(value) if (label_val > 0.0) : direction_label = "... | 2a57dd16068d23be8a38c537aa761bf52acb234c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2933/2a57dd16068d23be8a38c537aa761bf52acb234c/xw19.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8244,
355,
4431,
67,
1925,
264,
12,
4890,
16,
460,
16,
501,
4672,
309,
261,
4890,
422,
576,
13,
294,
1433,
67,
1125,
273,
460,
309,
261,
1925,
67,
1125,
405,
374,
18,
20,
13,
294,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8244,
355,
4431,
67,
1925,
264,
12,
4890,
16,
460,
16,
501,
4672,
309,
261,
4890,
422,
576,
13,
294,
1433,
67,
1125,
273,
460,
309,
261,
1925,
67,
1125,
405,
374,
18,
20,
13,
294,
... |
farch = fname.split('@')[-3] | farch = self.file_to_arch[fname] | def read_files(self): for fname in [f for f in self.files if f.endswith('primary.xml.gz')]: farch = fname.split('@')[-3] fdata = lxml.etree.parse(fname).getroot() self.parse_primary(fdata, farch) for fname in [f for f in self.files if f.endswith('filelists.xml.gz')]: farch = fname.split('@')[-3] fdata = lxml.etree.pars... | 7c4ce56bf3898af3475020066234fcc47bdbf103 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11867/7c4ce56bf3898af3475020066234fcc47bdbf103/Packages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
2354,
12,
2890,
4672,
364,
5299,
316,
306,
74,
364,
284,
316,
365,
18,
2354,
309,
284,
18,
5839,
1918,
2668,
8258,
18,
2902,
18,
9764,
6134,
14542,
284,
991,
273,
365,
18,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
2354,
12,
2890,
4672,
364,
5299,
316,
306,
74,
364,
284,
316,
365,
18,
2354,
309,
284,
18,
5839,
1918,
2668,
8258,
18,
2902,
18,
9764,
6134,
14542,
284,
991,
273,
365,
18,
7... |
EaError.UserNotFound = EaError(101, 'The user was not found') | EaError.AccountNotFound = EaError(101, 'The user was not found') EaError.AccountDisabled = EaError(102, '') | def __init__(self, id, text): self.id = id self.text = text | 98e9df291a812180e2c2c3c06144712f79a49dd6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10390/98e9df291a812180e2c2c3c06144712f79a49dd6/db.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
612,
16,
977,
4672,
365,
18,
350,
273,
612,
365,
18,
955,
273,
977,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
612,
16,
977,
4672,
365,
18,
350,
273,
612,
365,
18,
955,
273,
977,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pid, status = os.wait() | exited_pid, status = os.waitpid(pid, 0) | def test_lock_conflict(self): # Fork off a subprocess that will lock the file for 2 seconds, # unlock it, and then exit. if not hasattr(os, 'fork'): return pid = os.fork() if pid == 0: # In the child, lock the mailbox. self._box.lock() time.sleep(2) self._box.unlock() os._exit(0) | 15486f78f0ccb04b86905b175c004a5b4c4f785e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/15486f78f0ccb04b86905b175c004a5b4c4f785e/test_mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
739,
67,
20340,
12,
2890,
4672,
468,
27599,
3397,
279,
6652,
716,
903,
2176,
326,
585,
364,
576,
3974,
16,
468,
7186,
518,
16,
471,
1508,
2427,
18,
309,
486,
3859,
12,
538,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
739,
67,
20340,
12,
2890,
4672,
468,
27599,
3397,
279,
6652,
716,
903,
2176,
326,
585,
364,
576,
3974,
16,
468,
7186,
518,
16,
471,
1508,
2427,
18,
309,
486,
3859,
12,
538,
... |
def _charset(charset, fixup): | def _charset(charset, fixup=None): | def _charset(charset, fixup): # internal: optimize character set out = [] charmap = [0]*256 try: for op, av in charset: if op is NEGATE: out.append((op, av)) elif op is LITERAL: charmap[fixup(av)] = 1 elif op is RANGE: for i in range(fixup(av[0]), fixup(av[1])+1): charmap[i] = 1 elif op is CATEGORY: # FIXME: could appe... | 658446d11997aca3b5b493d6d12d95c5d0884579 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/658446d11997aca3b5b493d6d12d95c5d0884579/sre_compile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9999,
12,
9999,
16,
2917,
416,
33,
7036,
4672,
468,
2713,
30,
10979,
3351,
444,
596,
273,
5378,
1149,
1458,
273,
306,
20,
5772,
5034,
775,
30,
364,
1061,
16,
1712,
316,
4856,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9999,
12,
9999,
16,
2917,
416,
33,
7036,
4672,
468,
2713,
30,
10979,
3351,
444,
596,
273,
5378,
1149,
1458,
273,
306,
20,
5772,
5034,
775,
30,
364,
1061,
16,
1712,
316,
4856,
30,
... |
window n1=%d > half_x.rsf && window f1=%d < $SOURCE | cat axis=1 half_x.rsf > $TARGET && | window squeeze=n n1=%d > half_x.rsf && window squeeze=n f1=%d < $SOURCE | cat axis=1 half_x.rsf > $TARGET && | def rfield (real_par,grid_par,covar_par): | 79742fe120e5b66d8c972da746344f265417c962 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3143/79742fe120e5b66d8c972da746344f265417c962/rfield.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
1518,
261,
7688,
67,
1065,
16,
5222,
67,
1065,
16,
2894,
1401,
67,
1065,
4672,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
436,
1518,
261,
7688,
67,
1065,
16,
5222,
67,
1065,
16,
2894,
1401,
67,
1065,
4672,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
sitemap.write("<url><loc>http://chroniclingamerica.loc.gov%s</loc><lastmod>%s</lastmod><news:news><news:publication><news:name>%s</news:name><news:language>en</news:language></news:publication><news:publication_date>%s</news:publication_date><news:title>%s</news:title></news:news></url>\n" % (loc, rfc3339(last_mod), fo... | url = "<url><loc>http://chroniclingamerica.loc.gov%s</loc><lastmod>%s</lastmod><news:news><news:publication><news:name>%s</news:name><news:language>en</news:language></news:publication><news:publication_date>%s</news:publication_date><news:title>%s</news:title></news:news></url>\n" % (loc, rfc3339(last_mod), force_esca... | def write_sitemaps(): """ This function will write a sitemap index file that references individual sitemaps for all the batches, issues, pages and titles that have been loaded. """ sitemap_index = open( os.path.join(settings.DOCUMENT_ROOT, 'sitemap.xml'), 'w') sitemap_index.write('<?xml version="1.0" encoding="UTF-8"?>... | 353644ff5a546385757f82db77ec2830fbdf8f01 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6299/353644ff5a546385757f82db77ec2830fbdf8f01/release.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
87,
1726,
6679,
13332,
3536,
1220,
445,
903,
1045,
279,
14628,
770,
585,
716,
5351,
7327,
272,
1726,
6679,
364,
777,
326,
13166,
16,
8296,
16,
4689,
471,
14693,
716,
1240,
2118... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
87,
1726,
6679,
13332,
3536,
1220,
445,
903,
1045,
279,
14628,
770,
585,
716,
5351,
7327,
272,
1726,
6679,
364,
777,
326,
13166,
16,
8296,
16,
4689,
471,
14693,
716,
1240,
2118... |
def _writeinfo(self, name, finfo): if DEBUG: print 'binhex info:', name, finfo.Type, finfo.Creator, self.dlen, self.rlen | def _writeinfo(self, name, finfo): | def _writeinfo(self, name, finfo): | a220e67a9ed94d66b81e393a3bb9e6acd10068c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a220e67a9ed94d66b81e393a3bb9e6acd10068c1/binhex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
1376,
12,
2890,
16,
508,
16,
15190,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
1376,
12,
2890,
16,
508,
16,
15190,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.action_move(cr, uid, [pick.id]) wf_service.trg_validate(uid, 'stock.picking', pick.id, 'button_done', cr) return True | context.update({'active_ids':ids}) return { 'name': 'Make Picking', 'view_type': 'form', 'view_mode': 'form', 'res_model': 'stock.partial.picking', 'type': 'ir.actions.act_window', 'target': 'new', 'nodestroy': True, 'context':context } | def draft_validate(self, cr, uid, ids, *args): """ Validates picking directly from draft state. @return: True """ wf_service = netsvc.LocalService("workflow") self.draft_force_assign(cr, uid, ids) for pick in self.browse(cr, uid, ids): move_ids = [x.id for x in pick.move_lines] self.pool.get('stock.move').force_assign(... | cff45072e7024a39ec3df798a8103499e8f412c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/cff45072e7024a39ec3df798a8103499e8f412c0/stock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12246,
67,
5662,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
380,
1968,
4672,
3536,
2364,
815,
6002,
310,
5122,
628,
12246,
919,
18,
632,
2463,
30,
1053,
3536,
11578,
67,
3278,
273,
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,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12246,
67,
5662,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
380,
1968,
4672,
3536,
2364,
815,
6002,
310,
5122,
628,
12246,
919,
18,
632,
2463,
30,
1053,
3536,
11578,
67,
3278,
273,
21... |
K = self.absolute_field('a').galois_closure(names=names) if K.degree() == self.absolute_degree(): return self return K | return self.absolute_field('a').galois_closure(names=names) | def galois_closure(self, names=None): """ Return the absolute number field $K$ that is the Galois closure of self. | 05f3a2a8ba9f83942ded7f49b8c102545c57b7b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/05f3a2a8ba9f83942ded7f49b8c102545c57b7b9/number_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24902,
19606,
67,
20823,
12,
2890,
16,
1257,
33,
7036,
4672,
3536,
2000,
326,
4967,
1300,
652,
271,
47,
8,
716,
353,
326,
611,
287,
19606,
7213,
434,
365,
18,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24902,
19606,
67,
20823,
12,
2890,
16,
1257,
33,
7036,
4672,
3536,
2000,
326,
4967,
1300,
652,
271,
47,
8,
716,
353,
326,
611,
287,
19606,
7213,
434,
365,
18,
2,
-100,
-100,
-100,
-100... |
gLogger.error(error) | gLogger.error( error ) | def configureCE( ceName='',ceType='', cfg=None, currentSectionPath='' ): """ Produce new dirac.cfg including configuration for new CE """ from DIRAC.Resources.Computing.ComputingElementFactory import ComputingElementFactory from DIRAC.Resources.Computing.ComputingElement import getLocalCEConfigDict from DIR... | 9cd965a8f6afefefa23e4aaa683056b6432068d8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9cd965a8f6afefefa23e4aaa683056b6432068d8/InstallTools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
1441,
12,
5898,
461,
2218,
2187,
311,
559,
2218,
2187,
2776,
33,
7036,
16,
783,
5285,
743,
2218,
11,
262,
30,
3536,
23278,
394,
4314,
8836,
18,
7066,
6508,
1664,
364,
394,
29538,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5068,
1441,
12,
5898,
461,
2218,
2187,
311,
559,
2218,
2187,
2776,
33,
7036,
16,
783,
5285,
743,
2218,
11,
262,
30,
3536,
23278,
394,
4314,
8836,
18,
7066,
6508,
1664,
364,
394,
29538,
... |
connect_db(port=settings.http_port) httpServer() | connect_db() httpServer(port=settings.http_port) | def httpServer(port=8080, host=''): print "Starting HTTP server on port %d..." % (port,) server_address = (host, port) httpd = HTTPServer(server_address, VSHTTPHandler) httpd.serve_forever() | 5c860daa752d3c05a4b73ee612ad2af908ab8a47 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1837/5c860daa752d3c05a4b73ee612ad2af908ab8a47/httpserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1062,
2081,
12,
655,
33,
3672,
3672,
16,
1479,
2218,
11,
4672,
1172,
315,
11715,
2239,
1438,
603,
1756,
738,
72,
7070,
738,
261,
655,
16,
13,
1438,
67,
2867,
273,
261,
2564,
16,
1756,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1062,
2081,
12,
655,
33,
3672,
3672,
16,
1479,
2218,
11,
4672,
1172,
315,
11715,
2239,
1438,
603,
1756,
738,
72,
7070,
738,
261,
655,
16,
13,
1438,
67,
2867,
273,
261,
2564,
16,
1756,
... |
if p2cread is not None: | if p2cread != -1: | def _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session): """Execute program (MS Windows version)""" | bb4199344722e2c8cbf036c95592a4d090076ce7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/bb4199344722e2c8cbf036c95592a4d090076ce7/subprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
67,
3624,
12,
2890,
16,
833,
16,
9070,
16,
675,
4177,
67,
4293,
16,
1746,
67,
74,
2377,
16,
7239,
16,
1550,
16,
26182,
67,
31276,
16,
11850,
1376,
16,
6710,
7133,
16,
5972... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8837,
67,
3624,
12,
2890,
16,
833,
16,
9070,
16,
675,
4177,
67,
4293,
16,
1746,
67,
74,
2377,
16,
7239,
16,
1550,
16,
26182,
67,
31276,
16,
11850,
1376,
16,
6710,
7133,
16,
5972... |
""" populate lists with configuration information """ global bbs, debug, menu, www, _debug cfg = ConfigParser.ConfigParser() cfg.read('bbs.cfg') bbs['host'] = cfg.get('BBS', 'host', 1) bbs['user'] = cfg.get('BBS','user', 1) bbs['passwd'] = cfg.get('BBS','passwd', 1) bbs['admin'] = cfg.get('BBS', 'admin', 1) menu['main'... | """ populate lists with configuration information """ global bbs, debug, menu, www, _debug cfg = ConfigParser.ConfigParser() cfg.read('/home/k/python/py-mmud/bbs.cfg') bbs['host'] = cfg.get('BBS', 'host', 1) bbs['user'] = cfg.get('BBS','user', 1) bbs['passwd'] = cfg.get('BBS','passwd', 1) bbs['admin'] = cfg.get('BBS', ... | def config(): """ populate lists with configuration information """ global bbs, debug, menu, www, _debug cfg = ConfigParser.ConfigParser() cfg.read('bbs.cfg') bbs['host'] = cfg.get('BBS', 'host', 1) bbs['user'] = cfg.get('BBS','user', 1) bbs['passwd'] = cfg.get('BBS','passwd', 1) bbs['admin'] = cfg.get('BBS', 'admin', ... | 9f0495ce7066cd2385a6fdae1f019f7da433c5a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6760/9f0495ce7066cd2385a6fdae1f019f7da433c5a4/chloe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
642,
13332,
3536,
6490,
6035,
598,
1664,
1779,
3536,
2552,
324,
2038,
16,
1198,
16,
3824,
16,
8765,
16,
389,
4148,
2776,
273,
25076,
18,
809,
2678,
1435,
2776,
18,
896,
2668,
19,
8712,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
642,
13332,
3536,
6490,
6035,
598,
1664,
1779,
3536,
2552,
324,
2038,
16,
1198,
16,
3824,
16,
8765,
16,
389,
4148,
2776,
273,
25076,
18,
809,
2678,
1435,
2776,
18,
896,
2668,
19,
8712,
... |
self.atcr = data.endswith(u"\r") if self.atcr and size is None: | if data.endswith(u"\r"): | def readline(self, size=None, keepends=True): | 95f96d570ba78b0ba5b869a8e87f1517ee20e301 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/95f96d570ba78b0ba5b869a8e87f1517ee20e301/codecs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12023,
12,
2890,
16,
963,
33,
7036,
16,
3455,
5839,
33,
5510,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12023,
12,
2890,
16,
963,
33,
7036,
16,
3455,
5839,
33,
5510,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
test() | import sys test('-debug' in sys.argv[1:]) print 'OK' | def test(): # test various values xx = [ 0.01, 0.05, 0.1, 0.5, 5.0 , 50] yy = [ 1.81901, 1.27752, 0.987739, -0.0404925, -5.5961, -51.7321] # from mathematica. for x,y in zip(xx,yy): f = log_besselk_1_4(x) print x,y,f,100*abs((f-y)/y) assert abs((f-y)/y)*100.0 < 2.0 | 5475ff594249d4f44d86c823e1254197423d3fe7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/696/5475ff594249d4f44d86c823e1254197423d3fe7/besselk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
468,
1842,
11191,
924,
12223,
273,
306,
374,
18,
1611,
16,
565,
374,
18,
6260,
16,
565,
374,
18,
21,
16,
4202,
374,
18,
25,
16,
3639,
1381,
18,
20,
282,
269,
225,
6437,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13332,
468,
1842,
11191,
924,
12223,
273,
306,
374,
18,
1611,
16,
565,
374,
18,
6260,
16,
565,
374,
18,
21,
16,
4202,
374,
18,
25,
16,
3639,
1381,
18,
20,
282,
269,
225,
6437,
... |
payload = Utils.websafe(part.get_payload()) | payload = Utils.websafe(part.get_payload(decode=1)) | def process(mlist, msg, msgdata=None): sanitize = mm_cfg.ARCHIVE_HTML_SANITIZER outer = 1 if msgdata is None: msgdata = {} dir = calculate_attachments_dir(mlist, msg, msgdata) # Now walk over all subparts of this message and scrub out various types for part in msg.walk(): ctype = part.get_type(part.get_default_type()) ... | 2f76c8bbc636cfcb4c9d2855080c63bcffa5ed74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/2f76c8bbc636cfcb4c9d2855080c63bcffa5ed74/Scrubber.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
781,
376,
16,
1234,
16,
1234,
892,
33,
7036,
4672,
8881,
273,
9740,
67,
7066,
18,
10586,
5354,
67,
4870,
67,
22721,
1285,
6867,
654,
6390,
273,
404,
309,
1234,
892,
353,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
781,
376,
16,
1234,
16,
1234,
892,
33,
7036,
4672,
8881,
273,
9740,
67,
7066,
18,
10586,
5354,
67,
4870,
67,
22721,
1285,
6867,
654,
6390,
273,
404,
309,
1234,
892,
353,
599,... |
OWGUI.checkBox(wbS, self, "useGenerator", "Use lazy evaluation") | OWGUI.checkBox(box, self, "useGenerator", "Use lazy evaluation") | def __init__(self, parent=None, signalManager = None): OWImageSubFile.__init__(self, parent, signalManager, "Image Dataset") OWImageDataset.__init__(self) | acc69052736fce0593fbae92083234ff2ceca235 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2658/acc69052736fce0593fbae92083234ff2ceca235/OWImageLoader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
33,
7036,
16,
4277,
1318,
273,
599,
4672,
18233,
2040,
1676,
812,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
315,
2040,
10778,
7923,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
33,
7036,
16,
4277,
1318,
273,
599,
4672,
18233,
2040,
1676,
812,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
315,
2040,
10778,
7923,
1... |
time_of_start.time = imp_start_date | time_of_start = StartTime(imp_start_date) | def import_XML(filename, default_cat, reset_learning_data=False): global items # Determine if we import a Mnemosyne or a Memaid file. handler = None f = None try: f = file(filename) except: try: f = file(unicode(filename).encode("latin")) except: raise LoadError() l = f.readline() l += f.readline(); if "mnemosyne" ... | fc80de0cebc33b1cc03a41cf02e8259795330188 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1240/fc80de0cebc33b1cc03a41cf02e8259795330188/mnemosyne_core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
4201,
12,
3459,
16,
805,
67,
2574,
16,
2715,
67,
21455,
67,
892,
33,
8381,
4672,
2552,
1516,
225,
468,
10229,
309,
732,
1930,
279,
23851,
351,
538,
878,
73,
578,
279,
5890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1930,
67,
4201,
12,
3459,
16,
805,
67,
2574,
16,
2715,
67,
21455,
67,
892,
33,
8381,
4672,
2552,
1516,
225,
468,
10229,
309,
732,
1930,
279,
23851,
351,
538,
878,
73,
578,
279,
5890,
... |
def recognizes(self, value): return type(value) in (self.getImplementationType(), unicode, str) | def recognizes(self, value): | 8fcaab3822965c4aa349bcc9732b2d19e301dd8f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/8fcaab3822965c4aa349bcc9732b2d19e301dd8f/Types.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14603,
3128,
12,
2890,
16,
460,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14603,
3128,
12,
2890,
16,
460,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
resp = self.dialog.run() | resp = gtk.Dialog.run(self) | def run(self): self.dialog.show_all() self.val.set_text("") self.val.set_activates_default(True) self.val.grab_focus() resp = self.dialog.run() if resp == gtk.RESPONSE_OK: value = self.val.get_text() else: value = None self.destroy() return value | 44deb3636adb3eb180d1cc44ce811a1cb782bb80 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/44deb3636adb3eb180d1cc44ce811a1cb782bb80/widgets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
365,
18,
12730,
18,
4500,
67,
454,
1435,
365,
18,
1125,
18,
542,
67,
955,
2932,
7923,
365,
18,
1125,
18,
542,
67,
11422,
815,
67,
1886,
12,
5510,
13,
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,
1086,
12,
2890,
4672,
365,
18,
12730,
18,
4500,
67,
454,
1435,
365,
18,
1125,
18,
542,
67,
955,
2932,
7923,
365,
18,
1125,
18,
542,
67,
11422,
815,
67,
1886,
12,
5510,
13,
365,
18,
... |
self.addOutput('','\t\t\tfilename %s;' % filename) | self.addOutput('','\t\t\tfilename "%s";' % filename) | def printHost(self, name, hostname, mac, ip): self.addOutput('', '\t\thost %s {' % name) if mac: self.addOutput('', '\t\t\thardware ethernet %s;' % mac) | d18dd5b346ae795f727645bf2b6cab0828ffd4f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7066/d18dd5b346ae795f727645bf2b6cab0828ffd4f2/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
2594,
12,
2890,
16,
508,
16,
5199,
16,
5318,
16,
2359,
4672,
365,
18,
1289,
1447,
2668,
2187,
2337,
88,
64,
451,
669,
738,
87,
13666,
738,
508,
13,
309,
5318,
30,
365,
18,
1289... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
2594,
12,
2890,
16,
508,
16,
5199,
16,
5318,
16,
2359,
4672,
365,
18,
1289,
1447,
2668,
2187,
2337,
88,
64,
451,
669,
738,
87,
13666,
738,
508,
13,
309,
5318,
30,
365,
18,
1289... |
email_to = Option("root@localhost") | email_to = ListOption(["root@localhost"]) | def NoUpdatesAvailableSignal(self, message): pass | 407777395791145c466bec07939913193d3f17e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/407777395791145c466bec07939913193d3f17e6/yum-updatesd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2631,
5121,
5268,
11208,
12,
2890,
16,
883,
4672,
1342,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2631,
5121,
5268,
11208,
12,
2890,
16,
883,
4672,
1342,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
raise category(message) | raise message | def warn_explicit(message, category, filename, lineno, module=None, registry=None): if module is None: module = filename if module[-3:].lower() == ".py": module = module[:-3] # XXX What about leading pathname? if registry is None: registry = {} key = (message, category, lineno) # Quick test for common case if registry.... | b25c2b0a4a46156bd8efa9eab39503e18fa0b805 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b25c2b0a4a46156bd8efa9eab39503e18fa0b805/warnings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1894,
67,
16511,
12,
2150,
16,
3150,
16,
1544,
16,
7586,
16,
1605,
33,
7036,
16,
4023,
33,
7036,
4672,
309,
1605,
353,
599,
30,
1605,
273,
1544,
309,
1605,
18919,
23,
30,
8009,
8167,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1894,
67,
16511,
12,
2150,
16,
3150,
16,
1544,
16,
7586,
16,
1605,
33,
7036,
16,
4023,
33,
7036,
4672,
309,
1605,
353,
599,
30,
1605,
273,
1544,
309,
1605,
18919,
23,
30,
8009,
8167,
... |
assert popen.call_args[1]['stderr'] == subprocess.PIPE | assert popen.call_args[1]['stderr'] == subprocess.STDOUT assert error.called assert error.call_args == (('some stderr', ), {}) | def test_sh_with_capture_raises_BuildFailure(popen): popen.return_value = Mock() popen.return_value.returncode = 1 popen.return_value.stderr.read.return_value = 'some stderr' try: easy.sh('foo', capture=True) except easy.BuildFailure, e: args = e.args assert args == ('Subprocess return code: 1', ) else: assert False, '... | 1dc65da21f774b0a281e91d3e5181c2d16b1469e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14074/1dc65da21f774b0a281e91d3e5181c2d16b1469e/test_easy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
674,
67,
1918,
67,
19250,
67,
354,
6141,
67,
3116,
5247,
12,
84,
3190,
4672,
30925,
18,
2463,
67,
1132,
273,
7867,
1435,
30925,
18,
2463,
67,
1132,
18,
2463,
710,
273,
404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
674,
67,
1918,
67,
19250,
67,
354,
6141,
67,
3116,
5247,
12,
84,
3190,
4672,
30925,
18,
2463,
67,
1132,
273,
7867,
1435,
30925,
18,
2463,
67,
1132,
18,
2463,
710,
273,
404,
... |
if isinstance(other, oofun): r.attach((self>0)('pow_domain_%d'%r._id, tol=1e-13)) | if isinstance(other, oofun) or not isinstance(other, int): r.attach((self>0)('pow_domain_%d'%r._id, tol=1e-13)) | def __pow__(self, other): d_x = lambda x, y: y * x ** (y - 1) if x.size == 1 else Diag(y * x ** (y - 1)) | cc4e56d232579431d3bcfa09e0884225a2802e0b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6196/cc4e56d232579431d3bcfa09e0884225a2802e0b/ooFun.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
23509,
972,
12,
2890,
16,
1308,
4672,
225,
302,
67,
92,
273,
3195,
619,
16,
677,
30,
677,
380,
619,
2826,
261,
93,
300,
404,
13,
309,
619,
18,
1467,
422,
404,
469,
14539,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
23509,
972,
12,
2890,
16,
1308,
4672,
225,
302,
67,
92,
273,
3195,
619,
16,
677,
30,
677,
380,
619,
2826,
261,
93,
300,
404,
13,
309,
619,
18,
1467,
422,
404,
469,
14539,
12,
... |
array_list.append( reshape( band_array, [1,ysize,xsize] ) ) | array_list.append( numpy.reshape( band_array, [1,ysize,xsize] ) ) | def DatasetReadAsArray( ds, xoff=0, yoff=0, xsize=None, ysize=None ): if xsize is None: xsize = ds.RasterXSize if ysize is None: ysize = ds.RasterYSize if ds.RasterCount == 1: return BandReadAsArray( ds.GetRasterBand(1), xoff, yoff, xsize, ysize) datatype = ds.GetRasterBand(1).DataType for band_index in range(2,ds.R... | c0714d58ed6091b5d6d077e5d18bc42b71c81f11 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10290/c0714d58ed6091b5d6d077e5d18bc42b71c81f11/gdal_array.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10778,
1994,
19196,
12,
3780,
16,
619,
3674,
33,
20,
16,
677,
3674,
33,
20,
16,
619,
1467,
33,
7036,
16,
677,
1467,
33,
7036,
262,
30,
225,
309,
619,
1467,
353,
599,
30,
619,
1467,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10778,
1994,
19196,
12,
3780,
16,
619,
3674,
33,
20,
16,
677,
3674,
33,
20,
16,
619,
1467,
33,
7036,
16,
677,
1467,
33,
7036,
262,
30,
225,
309,
619,
1467,
353,
599,
30,
619,
1467,
... |
nanotubeList += [obj] | selNanotubeSegmentList += [obj] return | def addSelectedNanotubeSegment(obj, nanotubeList = selNanotubeSegmentList): if obj.picked and isinstance(obj, self.win.assy.NanotubeSegment): nanotubeList += [obj] | bb89b2ae90a227fb52c43ef3a8b40a33cd889202 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/bb89b2ae90a227fb52c43ef3a8b40a33cd889202/ops_select.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
7416,
10312,
352,
4895,
4131,
12,
2603,
16,
6468,
352,
4895,
682,
273,
357,
10312,
352,
4895,
4131,
682,
4672,
309,
1081,
18,
11503,
329,
471,
1549,
12,
2603,
16,
365,
18,
8082,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
7416,
10312,
352,
4895,
4131,
12,
2603,
16,
6468,
352,
4895,
682,
273,
357,
10312,
352,
4895,
4131,
682,
4672,
309,
1081,
18,
11503,
329,
471,
1549,
12,
2603,
16,
365,
18,
8082,
1... |
warnings.warn_explicit( "Call to deprecated function %(funcname)s." % { 'funcname': func.__name__, }, category=DeprecationWarning, filename=func.func_code.co_filename, lineno=func.func_code.co_firstlineno + 1 ) | warnings.warn("Call to deprecated function %s." % func.__name__, category=DeprecationWarning, stacklevel=2) | def new_func(*args, **kwargs): warnings.warn_explicit( "Call to deprecated function %(funcname)s." % { 'funcname': func.__name__, }, category=DeprecationWarning, filename=func.func_code.co_filename, lineno=func.func_code.co_firstlineno + 1 ) return func(*args, **kwargs) | f6cf34e30b3576000aa52411c113527304a94e68 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/f6cf34e30b3576000aa52411c113527304a94e68/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
644,
30857,
1968,
16,
2826,
4333,
4672,
5599,
18,
8935,
2932,
1477,
358,
6849,
445,
738,
87,
1199,
738,
1326,
16186,
529,
972,
16,
3150,
33,
758,
13643,
6210,
16,
26847,
33,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
644,
30857,
1968,
16,
2826,
4333,
4672,
5599,
18,
8935,
2932,
1477,
358,
6849,
445,
738,
87,
1199,
738,
1326,
16186,
529,
972,
16,
3150,
33,
758,
13643,
6210,
16,
26847,
33,
2... |
"""Get data not contained within the areas described in the headers.""" | """Get the data appended to the file and not contained within the area described in the headers.""" overlay_data_offset = self.get_overlay_data_start_offset() if overlay_data_offset is not None: return self.__data__[ overlay_data_offset : ] return None | def get_overlay(self): """Get data not contained within the areas described in the headers.""" | 7d7fdf89e3c176d01a0ccd3f60205073f55aef49 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4177/7d7fdf89e3c176d01a0ccd3f60205073f55aef49/pefile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
17312,
12,
2890,
4672,
3536,
967,
326,
501,
12317,
358,
326,
585,
471,
486,
7542,
3470,
326,
5091,
11893,
316,
326,
1607,
12123,
225,
9218,
67,
892,
67,
3348,
273,
365,
18,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17312,
12,
2890,
4672,
3536,
967,
326,
501,
12317,
358,
326,
585,
471,
486,
7542,
3470,
326,
5091,
11893,
316,
326,
1607,
12123,
225,
9218,
67,
892,
67,
3348,
273,
365,
18,
58... |
elif stri == _("later"): | elif stri == _("later") or stri == "later": | def strtodate(stri) : if stri == _("now"): return NOW elif stri == _("soon"): return SOON elif stri == _("later"): return LATER toreturn = None zedate = [] if stri : if '-' in stri : zedate = stri.split('-') elif '/' in stri : zedate = stri.split('/') if len(zedate) == 3 : y = zedate[0] m = zedate[1] d = zedate[2] if... | d4bb8c5640e754a91caa95ae7274bb727ec79759 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/d4bb8c5640e754a91caa95ae7274bb727ec79759/dates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
609,
88,
31756,
12,
701,
77,
13,
294,
309,
609,
77,
422,
389,
2932,
3338,
6,
4672,
327,
3741,
59,
1327,
609,
77,
422,
389,
2932,
2048,
265,
6,
4672,
327,
7460,
673,
1327,
609,
77,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
609,
88,
31756,
12,
701,
77,
13,
294,
309,
609,
77,
422,
389,
2932,
3338,
6,
4672,
327,
3741,
59,
1327,
609,
77,
422,
389,
2932,
2048,
265,
6,
4672,
327,
7460,
673,
1327,
609,
77,
... |
item.setData(Qt.UserRole, qvariant_converter.convertString({"path": sel_toolchain})) | item.setData(Qt.UserRole, qvariant_converter.convertStringDict({"path": sel_toolchain})) | def addToolchain(self): """ Slot called when the user adds manually a toolchain. """ sel_toolchain = QFileDialog.getOpenFileName(self, self.tr("Choose the toolchain"), "") if not sel_toolchain.isEmpty(): item = QListWidgetItem(sel_toolchain) item.setData(Qt.UserRole, qvariant_converter.convertString({"path": sel_toolch... | 999ab72f10c4f5518a347a70bbd2a5d9d9ac87e6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9114/999ab72f10c4f5518a347a70bbd2a5d9d9ac87e6/BToolchainPage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
6364,
5639,
12,
2890,
4672,
3536,
23195,
2566,
1347,
326,
729,
4831,
10036,
279,
5226,
5639,
18,
3536,
357,
67,
6738,
5639,
273,
2238,
812,
6353,
18,
588,
3678,
4771,
12,
2890,
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,
527,
6364,
5639,
12,
2890,
4672,
3536,
23195,
2566,
1347,
326,
729,
4831,
10036,
279,
5226,
5639,
18,
3536,
357,
67,
6738,
5639,
273,
2238,
812,
6353,
18,
588,
3678,
4771,
12,
2890,
16,
... |
parentsTagger(), | def mutator(pop, param): 'Parameter has a length of region and a mutation rate at each basepair' region, rate = param # there are certainly more efficient algorithm, but this # example just mutate each basepair one by one.... for i in range(region): if random.random() < rate: try: idx = pop.addLoci(chrom=0, pos=i)[0] e... | 505ded08bbab01d6828bb201d31e079f6d9e3b55 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/505ded08bbab01d6828bb201d31e079f6d9e3b55/userGuide.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29156,
12,
5120,
16,
579,
4672,
296,
1662,
711,
279,
769,
434,
3020,
471,
279,
11934,
4993,
622,
1517,
1026,
6017,
11,
3020,
16,
4993,
273,
579,
468,
1915,
854,
8626,
715,
1898,
14382,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29156,
12,
5120,
16,
579,
4672,
296,
1662,
711,
279,
769,
434,
3020,
471,
279,
11934,
4993,
622,
1517,
1026,
6017,
11,
3020,
16,
4993,
273,
579,
468,
1915,
854,
8626,
715,
1898,
14382,
... | |
"""Load one or more packages into numpy's top-level namespace. | """Load one or more packages into parent package top-level namespace. | def __call__(self,*packages, **options): """Load one or more packages into numpy's top-level namespace. | 5d495dd5e9c3f1d2311a3a860a11c7d220f18e8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/5d495dd5e9c3f1d2311a3a860a11c7d220f18e8d/_import_tools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
14,
10308,
16,
2826,
2116,
4672,
3536,
2563,
1245,
578,
1898,
5907,
1368,
3972,
1807,
1760,
17,
2815,
1981,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
14,
10308,
16,
2826,
2116,
4672,
3536,
2563,
1245,
578,
1898,
5907,
1368,
3972,
1807,
1760,
17,
2815,
1981,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
rpm_dir[d] = os.path.join(rpm_base, d) | rpm_dir[d] = os.path.join(self.rpm_base, d) | def run (self): | 7ce6d074aa331774c9e7198747eb5665ee125881 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7ce6d074aa331774c9e7198747eb5665ee125881/bdist_rpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
print "Something went wrong creating new directory\n" print "Permission trouble maybe\n" | print >> sys.stderr, "Something went wrong creating new directory\n" print >> sys.stderr, "Permission trouble maybe\n" | def main(): # Import the Configuration File into config # Import the Configuration File into config if(len(sys.argv) < 2): print "Insufficient command line arguments " print " Usage is ",sys.argv[0]," <ConfigFile> {Job Number} " print " Exiting ........." sys.exit(1) try: config = __import__(sys.argv[1]); except: pri... | 9f242671e9d0d7238a0ede41c485e14209156b6b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/9f242671e9d0d7238a0ede41c485e14209156b6b/multiresamp_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
225,
468,
6164,
326,
4659,
1387,
1368,
642,
468,
6164,
326,
4659,
1387,
1368,
642,
309,
12,
1897,
12,
9499,
18,
19485,
13,
411,
576,
4672,
1172,
315,
5048,
11339,
1296,
980,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
225,
468,
6164,
326,
4659,
1387,
1368,
642,
468,
6164,
326,
4659,
1387,
1368,
642,
309,
12,
1897,
12,
9499,
18,
19485,
13,
411,
576,
4672,
1172,
315,
5048,
11339,
1296,
980,... |
{0, Infinity, 1/2, 2/5} | {0, 1/2, Infinity, 2/5} | def _find_cusps(self): r""" Return a set of inequivalent cusps for self, i.e. a set of representatives for the orbits of self on $\mathbf{P}^1(\mathbf{Q})$. These are returned in a reduced form; see self.reduce_cusp for the definition of reduced. | dd45d508e0a15679f93915d933e8e7359ffce1a8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/dd45d508e0a15679f93915d933e8e7359ffce1a8/congroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
67,
71,
407,
1121,
12,
2890,
4672,
436,
8395,
2000,
279,
444,
434,
316,
14298,
6505,
27964,
1121,
364,
365,
16,
277,
18,
73,
18,
279,
444,
434,
2406,
8785,
364,
326,
578,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
67,
71,
407,
1121,
12,
2890,
4672,
436,
8395,
2000,
279,
444,
434,
316,
14298,
6505,
27964,
1121,
364,
365,
16,
277,
18,
73,
18,
279,
444,
434,
2406,
8785,
364,
326,
578,
... |
def setUpDebug(test): setUp(test) zc.buildout.testing.install('zope.app.debug', test) | def setUp(test): zc.buildout.testing.buildoutSetUp(test) zc.buildout.testing.install('Paste', test) zc.buildout.testing.install('PasteDeploy', test) zc.buildout.testing.install('PasteScript', test) zc.buildout.testing.install('ZConfig', test) zc.buildout.testing.install('ZODB3', test) zc.buildout.testing.install('pytz'... | 0a3ec5fdaa54516c01df3e9b86cfc389bfcb1ef8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9507/0a3ec5fdaa54516c01df3e9b86cfc389bfcb1ef8/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
3813,
4672,
998,
71,
18,
3510,
659,
18,
3813,
310,
18,
3510,
659,
694,
1211,
12,
3813,
13,
998,
71,
18,
3510,
659,
18,
3813,
310,
18,
5425,
2668,
52,
14725,
2187,
1842,
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,
24292,
12,
3813,
4672,
998,
71,
18,
3510,
659,
18,
3813,
310,
18,
3510,
659,
694,
1211,
12,
3813,
13,
998,
71,
18,
3510,
659,
18,
3813,
310,
18,
5425,
2668,
52,
14725,
2187,
1842,
13... | |
atexit(land_log_del) | if not once: atexit(land_log_del) once++ | def land_log_new(char const *base, int unique): FILE *f int i = 0 if logname: land_free(logname) logname = land_malloc(strlen(base) + 10) atexit(land_log_del) if unique: do: sprintf(logname, "%s%04d.log", base, i) f = fopen(logname, "r") if f: fclose(f) i++ while (f) else: sprintf(logname, "%s.log", base) f = fopen... | c8247dbcb08c4be4130b297e7cf4447cec886fec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/930/c8247dbcb08c4be4130b297e7cf4447cec886fec/log.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19193,
67,
1330,
67,
2704,
12,
3001,
1866,
380,
1969,
16,
509,
3089,
4672,
7527,
380,
74,
509,
277,
273,
374,
309,
613,
529,
30,
19193,
67,
9156,
12,
1330,
529,
13,
225,
613,
529,
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,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19193,
67,
1330,
67,
2704,
12,
3001,
1866,
380,
1969,
16,
509,
3089,
4672,
7527,
380,
74,
509,
277,
273,
374,
309,
613,
529,
30,
19193,
67,
9156,
12,
1330,
529,
13,
225,
613,
529,
27... |
def getMeta(self, metatype=""): | def getHints(self, metatype=""): | def getMeta(self, metatype=""): | d660931a4cc6103b9e77b2b4d58051cd6b3721de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/d660931a4cc6103b9e77b2b4d58051cd6b3721de/Class.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11312,
12,
2890,
16,
5100,
6361,
1546,
6,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
11312,
12,
2890,
16,
5100,
6361,
1546,
6,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.processStartTag(impliedTagToken("p", "StartTag")) | def startTagIsIndex(self, token): self.parser.parseError("deprecated-tag", {"name": "isindex"}) if self.tree.formPointer: return self.processStartTag(impliedTagToken("form", "StartTag")) self.processStartTag(impliedTagToken("hr", "StartTag")) self.processStartTag(impliedTagToken("p", "StartTag")) self.processStartTag(i... | d6ad7f65c6800ac258d200f25f4d42fa51a9ce3b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4487/d6ad7f65c6800ac258d200f25f4d42fa51a9ce3b/html5parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
2520,
1016,
12,
2890,
16,
1147,
4672,
365,
18,
4288,
18,
2670,
668,
2932,
14089,
17,
2692,
3113,
12528,
529,
6877,
315,
291,
1615,
6,
6792,
309,
365,
18,
3413,
18,
687,
4926... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1805,
2520,
1016,
12,
2890,
16,
1147,
4672,
365,
18,
4288,
18,
2670,
668,
2932,
14089,
17,
2692,
3113,
12528,
529,
6877,
315,
291,
1615,
6,
6792,
309,
365,
18,
3413,
18,
687,
4926... | |
es.msg('Player on last level! (mode 0)') | def player_death(event_var): attacker = int(event_var['attacker']) # Checking if player needs a new nade bonus if not checkBonus(attacker): return # We using a weapon list ? if not usingWeaponList(): return weapon = getWeapon(attacker) es.msg(weapon) # Was the kill with the bonus gun ? if event_var['weapon'] != weap... | 09a0353ffc9a35c9fd5e45b849faed77352bdea8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4555/09a0353ffc9a35c9fd5e45b849faed77352bdea8/gg_nade_bonus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7291,
67,
323,
421,
12,
2575,
67,
1401,
4672,
13843,
264,
273,
509,
12,
2575,
67,
1401,
3292,
4558,
484,
264,
19486,
225,
468,
24471,
309,
7291,
4260,
279,
394,
290,
2486,
324,
22889,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7291,
67,
323,
421,
12,
2575,
67,
1401,
4672,
13843,
264,
273,
509,
12,
2575,
67,
1401,
3292,
4558,
484,
264,
19486,
225,
468,
24471,
309,
7291,
4260,
279,
394,
290,
2486,
324,
22889,
... | |
print "out", out | def perform(self, node, (img, kern), (out,)): print "out", out out[0] = cuda_ndarray.conv(img, kern, mode=self.border_mode, out=out[0], subsample=self.subsample, logical_img_shape=self.logical_img_hw, logical_kern_shape=self.logical_kern_hw, kern_align=self.logical_kern_align_top, verbose=0) | 9655b929aa35f7cf279fd61eaf73bdc62304daa6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/9655b929aa35f7cf279fd61eaf73bdc62304daa6/blas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
12,
2890,
16,
756,
16,
261,
6081,
16,
24579,
3631,
261,
659,
16,
3719,
30,
596,
63,
20,
65,
273,
18621,
67,
25681,
18,
4896,
12,
6081,
16,
24579,
16,
1965,
33,
2890,
18,
8815,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3073,
12,
2890,
16,
756,
16,
261,
6081,
16,
24579,
3631,
261,
659,
16,
3719,
30,
596,
63,
20,
65,
273,
18621,
67,
25681,
18,
4896,
12,
6081,
16,
24579,
16,
1965,
33,
2890,
18,
8815,
... | |
i = i+1 | def master_resubmit(self,jobs): '''Resubmit failed subjobs''' jobIDs = {} for job in jobs: jobIDs[job.backend.id] = job | 19635ee9205007eed09eb74c9ba5407951f8ffa8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1488/19635ee9205007eed09eb74c9ba5407951f8ffa8/Panda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4171,
67,
455,
373,
1938,
12,
2890,
16,
10088,
4672,
9163,
607,
373,
1938,
2535,
720,
10088,
26418,
1719,
5103,
273,
2618,
364,
1719,
316,
6550,
30,
1719,
5103,
63,
4688,
18,
9993,
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,
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,
4171,
67,
455,
373,
1938,
12,
2890,
16,
10088,
4672,
9163,
607,
373,
1938,
2535,
720,
10088,
26418,
1719,
5103,
273,
2618,
364,
1719,
316,
6550,
30,
1719,
5103,
63,
4688,
18,
9993,
18,
... | |
hitPt = entry.getSurfacePoint(entry.getFromNodePath()) np = NodePath('temp') np.setPos(base.direct.camera, hitPt) self.hitPt.assign(np.getPos()) np.remove() | self.hitPt = entry.getSurfacePoint(self) | def getAxisIntersectPt(self, axis): if hasattr(base.direct, "manipulationControl") and base.direct.manipulationControl.fMultiView and\ base.direct.camera.getName() != 'persp': # create ray from the camera to detect 3d position iRay = SelectionRay(base.direct.camera) iRay.collider.setFromLens(base.direct.camNode, base.d... | e6d5ec494707be9dddb9b6144cebc352a9bae73c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7242/e6d5ec494707be9dddb9b6144cebc352a9bae73c/DirectManipulation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4506,
5674,
22541,
16484,
12,
2890,
16,
2654,
4672,
309,
3859,
12,
1969,
18,
7205,
16,
315,
4728,
625,
6234,
3367,
7923,
471,
1026,
18,
7205,
18,
4728,
625,
6234,
3367,
18,
74,
5002,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4506,
5674,
22541,
16484,
12,
2890,
16,
2654,
4672,
309,
3859,
12,
1969,
18,
7205,
16,
315,
4728,
625,
6234,
3367,
7923,
471,
1026,
18,
7205,
18,
4728,
625,
6234,
3367,
18,
74,
5002,
1... |
print "ho" | def read(self, filename='CHG'): """Read CHG or CHGCAR file. | faff8ab41a4f3236e4b65a87950bf2459bd694ca /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1380/faff8ab41a4f3236e4b65a87950bf2459bd694ca/vasp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
1544,
2218,
1792,
43,
11,
4672,
3536,
1994,
6469,
43,
578,
6469,
15396,
985,
585,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
1544,
2218,
1792,
43,
11,
4672,
3536,
1994,
6469,
43,
578,
6469,
15396,
985,
585,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
def hypergeometric_U(alpha,beta,x,alg="pari",prec=53): | def hypergeometric_U(alpha,beta,x,algorithm="pari",prec=53): | def hypergeometric_U(alpha,beta,x,alg="pari",prec=53): r""" Default is a wrap of Pari's hyperu(alpha,beta,x) function. Optionally, alg = "scipy" can be used. The confluent hypergeometric function $y = U(a,b,x)$ is defined to be the solution to Kummer's differential equation \[ xy'' + (b-x)y' - ay = 0. \] This satisfi... | 6634f9ab85d7944da6788aaab93ffaa3f22ce5ac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/6634f9ab85d7944da6788aaab93ffaa3f22ce5ac/special.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9512,
10049,
1591,
67,
57,
12,
5429,
16,
5758,
16,
92,
16,
12743,
1546,
1065,
77,
3113,
4036,
33,
8643,
4672,
436,
8395,
2989,
353,
279,
2193,
434,
2280,
77,
1807,
9512,
89,
12,
5429,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9512,
10049,
1591,
67,
57,
12,
5429,
16,
5758,
16,
92,
16,
12743,
1546,
1065,
77,
3113,
4036,
33,
8643,
4672,
436,
8395,
2989,
353,
279,
2193,
434,
2280,
77,
1807,
9512,
89,
12,
5429,
... |
self.logger.debug("%s inventory" % (time.time())) | self.logger.debug("Thread %s : starting process : %s " % (threadname, time.time())) | def treatinv(self, deviceid, cont): content = cont[0] | 7f5253f5e176c62706a748e3cf56ca52f7ad59b4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5988/7f5253f5e176c62706a748e3cf56ca52f7ad59b4/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10116,
5768,
12,
2890,
16,
2346,
350,
16,
466,
4672,
913,
273,
466,
63,
20,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
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,
10116,
5768,
12,
2890,
16,
2346,
350,
16,
466,
4672,
913,
273,
466,
63,
20,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def formatmonthname(self, theyear, themonth, width): | def formatmonthname(self, theyear, themonth, width, withyear=True): | def formatmonthname(self, theyear, themonth, width): """ Return a formatted month name. """ s = "%s %r" % (month_name[themonth], theyear) return s.center(width) | 138ec9a7d26e139421c93bda9f6e6e7a6e88c9d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/138ec9a7d26e139421c93bda9f6e6e7a6e88c9d4/calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
7496,
529,
12,
2890,
16,
2898,
2091,
16,
2182,
2152,
16,
1835,
16,
598,
6874,
33,
5510,
4672,
3536,
2000,
279,
4955,
3138,
508,
18,
3536,
272,
273,
2213,
87,
738,
86,
6,
738,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
7496,
529,
12,
2890,
16,
2898,
2091,
16,
2182,
2152,
16,
1835,
16,
598,
6874,
33,
5510,
4672,
3536,
2000,
279,
4955,
3138,
508,
18,
3536,
272,
273,
2213,
87,
738,
86,
6,
738,
26... |
cmapf = open('.fpy_f2cmap','w') | cmapf = open('.f2py_f2cmap','w') | def func(extension, build_dir): | d270e803dadccb9382da6e54e9e63803b4a81b15 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/d270e803dadccb9382da6e54e9e63803b4a81b15/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1326,
12,
6447,
16,
1361,
67,
1214,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1326,
12,
6447,
16,
1361,
67,
1214,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
and self.columns[1].canonical_name() \ or self.columns[1] | and self.columns[1].canonical_name() \ or self.columns[1] | def canonical_name(self): left = hasattr(self.columns[0], 'canonical_name') \ and self.columns[0].canonical_name() \ or self.columns[0] right = hasattr(self.columns[1], 'canonical_name') \ and self.columns[1].canonical_name() \ or self.columns[1] return "(%s %s %s)" % (left, self.function, right) | 0ad3a62c146644d494682839e4ffa7e5c64c0da7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2515/0ad3a62c146644d494682839e4ffa7e5c64c0da7/sqlquery.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7378,
67,
529,
12,
2890,
4672,
2002,
273,
3859,
12,
2890,
18,
5112,
63,
20,
6487,
296,
18288,
67,
529,
6134,
521,
471,
365,
18,
5112,
63,
20,
8009,
18288,
67,
529,
1435,
521,
578,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7378,
67,
529,
12,
2890,
4672,
2002,
273,
3859,
12,
2890,
18,
5112,
63,
20,
6487,
296,
18288,
67,
529,
6134,
521,
471,
365,
18,
5112,
63,
20,
8009,
18288,
67,
529,
1435,
521,
578,
36... |
self.file = self.make_file('') | self.file = self.__file = StringIO() | def read_lines(self): """Internal: read lines until EOF or outerboundary.""" self.file = self.make_file('') if self.outerboundary: self.read_lines_to_outerboundary() else: self.read_lines_to_eof() | 4511768299263013e8a65822bca79ed7fc692617 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/4511768299263013e8a65822bca79ed7fc692617/cgi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
3548,
12,
2890,
4672,
3536,
3061,
30,
855,
2362,
3180,
6431,
578,
6390,
16604,
12123,
365,
18,
768,
273,
365,
16186,
768,
273,
15777,
1435,
309,
365,
18,
14068,
16604,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
3548,
12,
2890,
4672,
3536,
3061,
30,
855,
2362,
3180,
6431,
578,
6390,
16604,
12123,
365,
18,
768,
273,
365,
16186,
768,
273,
15777,
1435,
309,
365,
18,
14068,
16604,
30,
365,
... |
return "%s (%s)"%(str(tot), "".join(output)) | return data[1:],str(tot) | def dice(self,x): roll = [] # Dices we still need to roll [add/subtract, dice string] rolled = [] # Dices we have rolled: [add/subtract, dice string, result] | 0c2660358aa59fdccd838709058972b485f435cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13227/0c2660358aa59fdccd838709058972b485f435cd/ropeserve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
302,
1812,
12,
2890,
16,
92,
4672,
5824,
273,
5378,
468,
463,
1242,
732,
4859,
1608,
358,
5824,
306,
1289,
19,
1717,
1575,
16,
302,
1812,
533,
65,
28693,
273,
5378,
468,
463,
1242,
732... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
302,
1812,
12,
2890,
16,
92,
4672,
5824,
273,
5378,
468,
463,
1242,
732,
4859,
1608,
358,
5824,
306,
1289,
19,
1717,
1575,
16,
302,
1812,
533,
65,
28693,
273,
5378,
468,
463,
1242,
732... |
comment=self.html_footer) | comment=self.html_footer or None) | def write_page(self): """ create the page """ if self.opts.enable_output: html_filename = write_html_output(self.opts, sys.argv[1:],\ self.fname_list, self.tag_list,\ comment=self.html_footer) write_cache_output(self.opts, html_filename, self.fname_list) | f08d6d5573aa333bf04ec6dd7a5ccb36f7944b2f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/f08d6d5573aa333bf04ec6dd7a5ccb36f7944b2f/InspiralUtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
2433,
12,
2890,
4672,
3536,
752,
326,
1363,
3536,
309,
365,
18,
4952,
18,
7589,
67,
2844,
30,
1729,
67,
3459,
273,
1045,
67,
2620,
67,
2844,
12,
2890,
18,
4952,
16,
2589,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
2433,
12,
2890,
4672,
3536,
752,
326,
1363,
3536,
309,
365,
18,
4952,
18,
7589,
67,
2844,
30,
1729,
67,
3459,
273,
1045,
67,
2620,
67,
2844,
12,
2890,
18,
4952,
16,
2589,
1... |
logStatusMsg( u"Unknown Error: %s" % unicodeC(m), 1, 0) | m1,m2,m3=sys.exc_info() logStatusMsg( u"Unexpected Error: %s%s%s%s%s" % (unicodeC(m1),unicodeC(m2),os.linesep, u' ',unicodeC(m3) ),1,0) | def main( ): global _runOnce getConfig(filename=configFile) if os.getcwd() != getConfig()['global']['workingDir'] or os.getcwd() != os.path.realpath( getConfig()['global']['workingDir'] ): os.chdir(getConfig()['global']['workingDir']) if isRunning() and os.name != 'nt': logStatusMsg('RSSDler is already running. exiting... | 87e68aa179ddb5b8355b2b97811bad9b19e23ab2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/87e68aa179ddb5b8355b2b97811bad9b19e23ab2/rssdler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
262,
30,
2552,
389,
2681,
12212,
4367,
12,
3459,
33,
1425,
812,
13,
309,
1140,
18,
588,
11089,
1435,
480,
4367,
1435,
3292,
6347,
21712,
20478,
1621,
3546,
578,
1140,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
262,
30,
2552,
389,
2681,
12212,
4367,
12,
3459,
33,
1425,
812,
13,
309,
1140,
18,
588,
11089,
1435,
480,
4367,
1435,
3292,
6347,
21712,
20478,
1621,
3546,
578,
1140,
18,
588,
... |
return roles | allowed = self.valid_roles() return tuple([r for r in roles if r in allowed]) | def getRoles(self): """Return the list of roles assigned to a user.""" roles=() try: roles=self.getUser().getRoles() except TypeError: #XXX The user is not in this acl_users so we get None if self.getUser().roles is None: self.getUser().roles=('Member',) roles=self.getUser().getRoles() return roles | 311f261570e72b35c95f1fa2cd3c6d0df8f0b05f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/311f261570e72b35c95f1fa2cd3c6d0df8f0b05f/Member.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21787,
12,
2890,
4672,
3536,
990,
326,
666,
434,
4900,
6958,
358,
279,
729,
12123,
4900,
33,
1435,
775,
30,
4900,
33,
2890,
18,
588,
1299,
7675,
588,
6898,
1435,
1335,
3580,
30,
468,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21787,
12,
2890,
4672,
3536,
990,
326,
666,
434,
4900,
6958,
358,
279,
729,
12123,
4900,
33,
1435,
775,
30,
4900,
33,
2890,
18,
588,
1299,
7675,
588,
6898,
1435,
1335,
3580,
30,
468,
1... |
value = ', '.join(value) | value = ', '.join(sorted(value)) | def gather_layout_data(self, outgraph): _ = self.request.getText | 95e44c6a7a034ac611bad0c0e45ddfd31fc0f1c3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/95e44c6a7a034ac611bad0c0e45ddfd31fc0f1c3/ShowGraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11090,
67,
6741,
67,
892,
12,
2890,
16,
596,
4660,
4672,
389,
273,
365,
18,
2293,
18,
588,
1528,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11090,
67,
6741,
67,
892,
12,
2890,
16,
596,
4660,
4672,
389,
273,
365,
18,
2293,
18,
588,
1528,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def factor_set(self): r""" Returns the set of factors of self. EXAMPLES:: sage: Word('1213121').factor_set() Set of elements of <generator object at 0xa8fde6c> sage: sorted( Word([1,2,1,2,3]).factor_set() ) | def factor_set(self, n=None): r""" Returns the set of factors (of length n) of self. INPUT: - ``n`` - an integer or ``None`` (default: None). OUTPUT: If ``n`` is an integer, returns the set of all distinct factors of length ``n``. If ``n`` is ``None``, returns the set of all distinct factors. EXAMPLES:: sage: w =... | def factor_set(self): r""" Returns the set of factors of self. | 3b1af04f0a27d5f0e8da71474158c869f20b49a6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/3b1af04f0a27d5f0e8da71474158c869f20b49a6/word.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5578,
67,
542,
12,
2890,
4672,
436,
8395,
2860,
326,
444,
434,
14490,
434,
365,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5578,
67,
542,
12,
2890,
4672,
436,
8395,
2860,
326,
444,
434,
14490,
434,
365,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
class_ a class or mapper indicating that criterion will be against this specific subclass. e.g.:: query.join(Company.employees.of_type(Engineer)).\ filter(Engineer.name=='foo') | query.join(Company.employees.of_type(Engineer)).\\ filter(Engineer.name=='foo') \class_ a class or mapper indicating that criterion will be against this specific subclass. | def of_type(self, class_): """Redefine this object in terms of a polymorphic subclass. Returns a new PropComparator from which further criterion can be evaulated. class_ a class or mapper indicating that criterion will be against this specific subclass. e.g.:: query.join(Company.employees.of_type(Engineer)).\ filter... | 8bd37070312ce48c5172de0cfc417bbd8b8201b6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1074/8bd37070312ce48c5172de0cfc417bbd8b8201b6/interfaces.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
434,
67,
723,
12,
2890,
16,
667,
67,
4672,
3536,
426,
11255,
333,
733,
316,
6548,
434,
279,
2952,
21976,
10177,
18,
225,
2860,
279,
394,
10484,
5559,
628,
1492,
9271,
11498,
848,
506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
434,
67,
723,
12,
2890,
16,
667,
67,
4672,
3536,
426,
11255,
333,
733,
316,
6548,
434,
279,
2952,
21976,
10177,
18,
225,
2860,
279,
394,
10484,
5559,
628,
1492,
9271,
11498,
848,
506,
... |
newData = orange.ExampleTable(dataOrig) | def createLogRegExampleTable(data): newDomain = orange.Domain(data.domain.attributes+[data.domain.classVar]) newDomain.addmeta(orange.newmetaid(), orange.FloatVariable("weight")) dataOrig = data.select(newDomain) #original data dataFinal = dataOrig.select(newDomain) #final results will be stored in this object | 4ae7da6ee8b6f203a5502fe34e8cd40ceb01f647 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/4ae7da6ee8b6f203a5502fe34e8cd40ceb01f647/orngLR.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
1343,
1617,
10908,
1388,
12,
892,
4672,
394,
3748,
273,
578,
726,
18,
3748,
12,
892,
18,
4308,
18,
4350,
15,
63,
892,
18,
4308,
18,
1106,
1537,
5717,
394,
3748,
18,
1289,
3901,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1343,
1617,
10908,
1388,
12,
892,
4672,
394,
3748,
273,
578,
726,
18,
3748,
12,
892,
18,
4308,
18,
4350,
15,
63,
892,
18,
4308,
18,
1106,
1537,
5717,
394,
3748,
18,
1289,
3901,
... | |
self.requirements['~providelenght'] = PreambleCmds.providelenght | self.requirements['~providelength'] = PreambleCmds.providelength | def visit_line_block(self, node): self.requirements['~providelenght'] = PreambleCmds.providelenght self.fallbacks['lineblock'] = PreambleCmds.lineblock if isinstance(node.parent, nodes.line_block): self.body.append('\\item[]\n' '\\begin{DUlineblock}{\\DUlineblockindent}\n') else: self.body.append('\n\\begin{DUlineblock... | 1b8dac55202344263da9188c7d59f13cb6f789ae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5620/1b8dac55202344263da9188c7d59f13cb6f789ae/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
1369,
67,
2629,
12,
2890,
16,
756,
4672,
365,
18,
16175,
3292,
98,
685,
1246,
292,
1288,
3546,
273,
453,
793,
7119,
5931,
87,
18,
685,
1246,
292,
1288,
365,
18,
16471,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
1369,
67,
2629,
12,
2890,
16,
756,
4672,
365,
18,
16175,
3292,
98,
685,
1246,
292,
1288,
3546,
273,
453,
793,
7119,
5931,
87,
18,
685,
1246,
292,
1288,
365,
18,
16471,
87,
... |
text = _("%(min)d min, %(sec)d sec") % vars() self.setCaption(self.captionTitle + _(" (%(value).2f%% complete, remaining time: %(text)s)") % vars()) | text = "%(min)d min, %(sec)d sec" % vars() self.setCaption(self.captionTitle + " (%(value).2f%% complete, remaining time: %(text)s)" % vars()) | def progressBarSet(self, value): if value > 0: self.progressBarValue = value diff = time.time() - self.startTime total = diff * 100.0/float(value) remaining = max(total - diff, 0) h = int(remaining/3600) min = int((remaining - h*3600)/60) sec = int(remaining - h*3600 - min*60) if h > 0: text = _("%(h)d h, %(min)d min, ... | 79ccff2999c9c0a22e7818b839520d72a6426525 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/79ccff2999c9c0a22e7818b839520d72a6426525/OWBaseWidget.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29101,
694,
12,
2890,
16,
460,
4672,
309,
460,
405,
374,
30,
365,
18,
8298,
5190,
620,
273,
460,
3122,
273,
813,
18,
957,
1435,
300,
365,
18,
1937,
950,
2078,
273,
3122,
380,
2130,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29101,
694,
12,
2890,
16,
460,
4672,
309,
460,
405,
374,
30,
365,
18,
8298,
5190,
620,
273,
460,
3122,
273,
813,
18,
957,
1435,
300,
365,
18,
1937,
950,
2078,
273,
3122,
380,
2130,
1... |
self.more = 0 return InteractiveInterpreter.runsource(self, source, filename) | return filename | def runsource(self, source): # Extend base class to stuff the source in the line cache filename = "<pyshell#%d>" % self.gid self.gid = self.gid + 1 lines = string.split(source, "\n") linecache.cache[filename] = len(source)+1, 0, lines, filename self.more = 0 return InteractiveInterpreter.runsource(self, source, filenam... | df95520d5088c816678f35b469940b23a88a32a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/df95520d5088c816678f35b469940b23a88a32a8/PyShell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3168,
12,
2890,
16,
1084,
4672,
468,
27686,
1026,
667,
358,
10769,
326,
1084,
316,
326,
980,
1247,
1544,
273,
3532,
2074,
10304,
7,
9,
72,
2984,
738,
365,
18,
15780,
365,
18,
157... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3168,
12,
2890,
16,
1084,
4672,
468,
27686,
1026,
667,
358,
10769,
326,
1084,
316,
326,
980,
1247,
1544,
273,
3532,
2074,
10304,
7,
9,
72,
2984,
738,
365,
18,
15780,
365,
18,
157... |
dumpTestLogs(log, chandlerLog, FuncTestLog) | dumpTestLogs(log, chandlerLog) | def doFunctionalTests(releaseMode, workingDir, log): chandlerDir = os.path.join(workingDir, 'chandler') logDir = os.path.join(chandlerDir, 'test_profile') chandlerLog = os.path.join(logDir, 'chandler.log') FuncTestLog = os.path.join(logDir, 'FunctionalTestSuite.log') if buildenv['os'] == 'win': runChan... | cd75730c9f7a986dc2d788d1085ad083a22617b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/cd75730c9f7a986dc2d788d1085ad083a22617b4/newchandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
2083,
287,
14650,
12,
9340,
2309,
16,
5960,
1621,
16,
613,
4672,
462,
464,
749,
1621,
273,
1140,
18,
803,
18,
5701,
12,
20478,
1621,
16,
225,
296,
343,
464,
749,
6134,
31101,
1377... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2083,
287,
14650,
12,
9340,
2309,
16,
5960,
1621,
16,
613,
4672,
462,
464,
749,
1621,
273,
1140,
18,
803,
18,
5701,
12,
20478,
1621,
16,
225,
296,
343,
464,
749,
6134,
31101,
1377... |
m = re.match('[ \t]+\{[ \t]\(char \*\)"([a-zA-Z_0-9]+)"(.*)\},', line) | m = re.match('[ \t]+\{[ \t]\(char \*\)"([a-zA-Z_0-9]+)"(.*)\, NULL \},', line) | def main(): if len(sys.argv) != 3: print 'usage: makedocstrings infile outfile' infile = open(sys.argv[1], 'rt') outfile = open(sys.argv[2], 'wt') docstrings = {} while 1: line = infile.readline() if not line: break m = re.match(r'#define _doc_([a-zA-Z_0-9]+)', line) if m: name = m.group(1) value = '_doc_'+name docs... | 314051adc25d0660734b0bf7d0f868b72d2a9cee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2933/314051adc25d0660734b0bf7d0f868b72d2a9cee/makedocstrings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
309,
562,
12,
9499,
18,
19485,
13,
480,
890,
30,
1172,
296,
9167,
30,
11882,
504,
10219,
14568,
8756,
11,
225,
14568,
273,
1696,
12,
9499,
18,
19485,
63,
21,
6487,
296,
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,
2774,
13332,
309,
562,
12,
9499,
18,
19485,
13,
480,
890,
30,
1172,
296,
9167,
30,
11882,
504,
10219,
14568,
8756,
11,
225,
14568,
273,
1696,
12,
9499,
18,
19485,
63,
21,
6487,
296,
37... |
repos = self.env.get_repository() | repos = self.env.get_repository(req.authname) | def render(self, req): rev = req.args.get('rev') path = req.args.get('path', '/') | 45580914b79a2d223cd41d37636c8276b12563db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/45580914b79a2d223cd41d37636c8276b12563db/Browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1111,
4672,
5588,
273,
1111,
18,
1968,
18,
588,
2668,
9083,
6134,
589,
273,
1111,
18,
1968,
18,
588,
2668,
803,
2187,
2023,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1111,
4672,
5588,
273,
1111,
18,
1968,
18,
588,
2668,
9083,
6134,
589,
273,
1111,
18,
1968,
18,
588,
2668,
803,
2187,
2023,
13,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
self._write_module_list(public, private, doc.modules(), doc.by_group(doc.modules())) | self._write_module_list(public, private, doc, doc.modules()) | def _write_module(self, public, private, uid, doc): # Write the header, navbar, & module name str = self._header(uid.name()) private.write(str) public.write(str) | 21a6d8c30a29a133335836c07a6da6e2f0b95f2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/21a6d8c30a29a133335836c07a6da6e2f0b95f2a/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
2978,
12,
2890,
16,
1071,
16,
3238,
16,
4555,
16,
997,
4672,
468,
2598,
326,
1446,
16,
8775,
3215,
16,
473,
1605,
508,
609,
273,
365,
6315,
3374,
12,
1911,
18,
529,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
2978,
12,
2890,
16,
1071,
16,
3238,
16,
4555,
16,
997,
4672,
468,
2598,
326,
1446,
16,
8775,
3215,
16,
473,
1605,
508,
609,
273,
365,
6315,
3374,
12,
1911,
18,
529,
10... |
self.output_write(" most: (%d) .. %s\n" % (len(self.selected), " ".join(self.selected[-20:]))) | self.output_write(" most: (%d) .. %s\n" % (len(selected), " ".join(selected[-20:]))) | def iter_packages(self, packages, hint=False): """Iter on the list of actions and apply them one-by-one | 3c58b798cd50f8be9e049992349195127926024b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/3c58b798cd50f8be9e049992349195127926024b/britney.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
67,
10308,
12,
2890,
16,
5907,
16,
7380,
33,
8381,
4672,
3536,
2360,
603,
326,
666,
434,
4209,
471,
2230,
2182,
1245,
17,
1637,
17,
476,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
67,
10308,
12,
2890,
16,
5907,
16,
7380,
33,
8381,
4672,
3536,
2360,
603,
326,
666,
434,
4209,
471,
2230,
2182,
1245,
17,
1637,
17,
476,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return redirect_to( helpers.url_for( "/" ) ) | return redirect_to( "/" ) | def changeGroup( self ): group = request.environ[ 'pylons.routes_dict' ][ 'id' ] log.info( "User has selected group %s" % group ) sessionManager.setSelectedGroup( group ) if 'HTTP_REFERER' in request.environ: return redirect_to( request.environ[ 'HTTP_REFERER' ] ) else: return redirect_to( helpers.url_for( "/" ) ) | 20b560b9ffd6f2e058fef618affa7c04aef43902 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12767/20b560b9ffd6f2e058fef618affa7c04aef43902/userdata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
1114,
12,
365,
262,
30,
1041,
273,
590,
18,
28684,
63,
296,
2074,
80,
7008,
18,
10854,
67,
1576,
11,
308,
63,
296,
350,
11,
308,
613,
18,
1376,
12,
315,
1299,
711,
3170,
1041,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2549,
1114,
12,
365,
262,
30,
1041,
273,
590,
18,
28684,
63,
296,
2074,
80,
7008,
18,
10854,
67,
1576,
11,
308,
63,
296,
350,
11,
308,
613,
18,
1376,
12,
315,
1299,
711,
3170,
1041,
... |
self.assertEquals(str, type(''.join(['blah']))) | self.assertEquals(str, type(''.join(['blah']))) | def test_join(self): | 37d883bdd5f8db439c18a4b2c0a6db4c87317220 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6753/37d883bdd5f8db439c18a4b2c0a6db4c87317220/test_str2unicode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5701,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5701,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
readsrc, reposdirs, verbose, readcompsfile=0): | readsrc, reposdirs, verbose, readcompsfile=0, fast=1): | def readRepos(releasever, configfiles, arch, buildroot, readdebug, readsrc, reposdirs, verbose, readcompsfile=0): # Read in /etc/yum.conf config files. repos = [] for c in configfiles: conf = YumConf(verbose, releasever, arch, BuildArchTranslate(arch), buildroot, c, reposdirs) #print conf.vars for key in conf.vars.keys... | 427871e48b993cbe1bec0e26f0693386c8014c95 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/427871e48b993cbe1bec0e26f0693386c8014c95/oldpyrpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
28453,
12,
9340,
502,
16,
642,
2354,
16,
6637,
16,
1361,
3085,
16,
855,
4148,
16,
855,
4816,
16,
13686,
8291,
16,
3988,
16,
855,
31532,
768,
33,
20,
16,
4797,
33,
21,
4672,
468,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
28453,
12,
9340,
502,
16,
642,
2354,
16,
6637,
16,
1361,
3085,
16,
855,
4148,
16,
855,
4816,
16,
13686,
8291,
16,
3988,
16,
855,
31532,
768,
33,
20,
16,
4797,
33,
21,
4672,
468,... |
bits are greater than the input bits. | bits are greater than the input bits:: | def polynomials(self, X=None, Y=None, degree=2, groebner=False): r""" Return a list of polynomials satisfying this S-box. | 16527da1ddc0ac750f609cd58858c5b45d932696 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/16527da1ddc0ac750f609cd58858c5b45d932696/sbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16991,
87,
12,
2890,
16,
1139,
33,
7036,
16,
1624,
33,
7036,
16,
10782,
33,
22,
16,
314,
303,
24008,
1224,
33,
8381,
4672,
436,
8395,
2000,
279,
666,
434,
16991,
87,
9281,
14946,
333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16991,
87,
12,
2890,
16,
1139,
33,
7036,
16,
1624,
33,
7036,
16,
10782,
33,
22,
16,
314,
303,
24008,
1224,
33,
8381,
4672,
436,
8395,
2000,
279,
666,
434,
16991,
87,
9281,
14946,
333,
... |
self.ted = TE.TENew(r2, r2) | self.ted = TE.TENew(dr, vr) | def open(self, path, name, data): self.path = path self.name = name r = (40, 40, 400, 300) w = Win.NewWindow(r, name, 1, 0, -1, 1, 0x55555555) self.wid = w r2 = (0, 0, 345, 245) Qd.SetPort(w) Qd.TextFont(4) Qd.TextSize(9) self.ted = TE.TENew(r2, r2) self.ted.TEAutoView(1) self.ted.TESetText(data) w.DrawGrowIcon() self.... | 633997a17c48ac80fd8b6e4ee6f1d3576be78327 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/633997a17c48ac80fd8b6e4ee6f1d3576be78327/ped.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
16,
589,
16,
508,
16,
501,
4672,
365,
18,
803,
273,
589,
365,
18,
529,
273,
508,
436,
273,
261,
7132,
16,
8063,
16,
7409,
16,
11631,
13,
341,
273,
21628,
18,
1908,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
589,
16,
508,
16,
501,
4672,
365,
18,
803,
273,
589,
365,
18,
529,
273,
508,
436,
273,
261,
7132,
16,
8063,
16,
7409,
16,
11631,
13,
341,
273,
21628,
18,
1908,
... |
table = np.array(f[table]) | self._setup_table(len(f[table]), f[table].dtype) | def read(self, filename, table=None, verbose=True): ''' Read a table from an HDF5 file Required Arguments: *filename*: [ string ] The HDF5 file to read the table from OR *file or group handle*: [ h5py.highlevel.File | h5py.highlevel.Group ] The HDF5 file handle or group handle to read the table from Optional Keywo... | 44e599d68cf0da8bbdacfe09bea753fbe87be67a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13233/44e599d68cf0da8bbdacfe09bea753fbe87be67a/hdf5table.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
1544,
16,
1014,
33,
7036,
16,
3988,
33,
5510,
4672,
9163,
2720,
279,
1014,
628,
392,
21673,
25,
585,
225,
10647,
13599,
30,
225,
380,
3459,
14,
30,
306,
533,
308,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
1544,
16,
1014,
33,
7036,
16,
3988,
33,
5510,
4672,
9163,
2720,
279,
1014,
628,
392,
21673,
25,
585,
225,
10647,
13599,
30,
225,
380,
3459,
14,
30,
306,
533,
308,
... |
def _readheader(self): | def _readheader(self): | def _readheader(self): | cada31e8208b1e7201f5afc9f9782089bec7ebe3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/cada31e8208b1e7201f5afc9f9782089bec7ebe3/binhex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
3374,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
3374,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
generator = self | def runResources(self): generator = self | 63354a1816d9c1c59ec75f093ba355092a8dc330 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5718/63354a1816d9c1c59ec75f093ba355092a8dc330/Generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3805,
12,
2890,
4672,
4456,
273,
365,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3805,
12,
2890,
4672,
4456,
273,
365,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
return [] | return [] | def get_subviews(self, name): for block in self.class_views: if name in block: if len(block) == 1: return [] return block[:] return [] | 893f404d409f3ea707786a12da3e7e36b867d857 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/893f404d409f3ea707786a12da3e7e36b867d857/Handler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1717,
7061,
12,
2890,
16,
508,
4672,
364,
1203,
316,
365,
18,
1106,
67,
7061,
30,
309,
508,
316,
1203,
30,
309,
562,
12,
2629,
13,
422,
404,
30,
327,
5378,
327,
1203,
10531,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
67,
1717,
7061,
12,
2890,
16,
508,
4672,
364,
1203,
316,
365,
18,
1106,
67,
7061,
30,
309,
508,
316,
1203,
30,
309,
562,
12,
2629,
13,
422,
404,
30,
327,
5378,
327,
1203,
10531,... |
sign = '+' if tzseconds >= 0 else '-' | sign = ('-', '+')[tzseconds >= 0] | def isoformat(self, sep='T', short=False): """Returns the date represented by this instance in ISO 8601 conforming format. The separator is used to separate the date and time, and defaults to 'T'. This method supports both long and short formats. The long format is | b1ef9cfc8fd8f80431a724b4b8188555c0a512fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5357/b1ef9cfc8fd8f80431a724b4b8188555c0a512fb/fixed_datetime.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22220,
12,
2890,
16,
5478,
2218,
56,
2187,
3025,
33,
8381,
4672,
3536,
1356,
326,
1509,
10584,
635,
333,
791,
316,
9351,
29632,
20156,
310,
740,
18,
1021,
4182,
353,
1399,
358,
9004,
326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22220,
12,
2890,
16,
5478,
2218,
56,
2187,
3025,
33,
8381,
4672,
3536,
1356,
326,
1509,
10584,
635,
333,
791,
316,
9351,
29632,
20156,
310,
740,
18,
1021,
4182,
353,
1399,
358,
9004,
326... |
return "%s/edit.html" % absoluteURL(event, self.request) | return "%s/edit.html?fromResourceBooking=True" % absoluteURL(event, self.request) | def nextURL(self, event): """Return the URL to be displayed after the add operation.""" return "%s/edit.html" % absoluteURL(event, self.request) | 9aa4bee96bcef996f0be1764f77c2ad4b2952ad2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7127/9aa4bee96bcef996f0be1764f77c2ad4b2952ad2/cal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
1785,
12,
2890,
16,
871,
4672,
3536,
990,
326,
1976,
358,
506,
10453,
1839,
326,
527,
1674,
12123,
327,
2213,
87,
19,
4619,
18,
2620,
6,
738,
4967,
1785,
12,
2575,
16,
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,
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,
1024,
1785,
12,
2890,
16,
871,
4672,
3536,
990,
326,
1976,
358,
506,
10453,
1839,
326,
527,
1674,
12123,
327,
2213,
87,
19,
4619,
18,
2620,
6,
738,
4967,
1785,
12,
2575,
16,
365,
18,
... |
s = idaapi.get_struc(id) | s = idaapi.get_struc(sid) | def GetMemberFlag(id, member_offset): """ Get type of a member @param id: structure type ID @param member_offset: member offset. The offset can be any offset in the member. For example, is a member is 4 bytes long and starts at offset 2, then 2,3,4,5 denote the same structure member. @return: -1 if bad structure type... | 76aa24fecdace41c9fc827e500b95cfdf5053272 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4773/76aa24fecdace41c9fc827e500b95cfdf5053272/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
4419,
4678,
12,
350,
16,
3140,
67,
3348,
4672,
3536,
968,
618,
434,
279,
3140,
225,
632,
891,
612,
30,
3695,
618,
1599,
632,
891,
3140,
67,
3348,
30,
3140,
1384,
18,
1021,
1384,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
968,
4419,
4678,
12,
350,
16,
3140,
67,
3348,
4672,
3536,
968,
618,
434,
279,
3140,
225,
632,
891,
612,
30,
3695,
618,
1599,
632,
891,
3140,
67,
3348,
30,
3140,
1384,
18,
1021,
1384,
... |
maxzoom = int(max( ceil(log(xsize/float(tilesize), 2)), ceil(log(ysize/float(tilesize), 2)))) | maxzoom = int(max( ceil(log2(xsize/float(tilesize))), ceil(log2(ysize/float(tilesize))))) | def Usage(): print 'Usage: gdal2tiles.py [-title "Title"] [-publishurl http://yourserver/dir/]' print ' [-nogooglemaps] [-noopenlayers] [-nokml]' print ' [-googlemapskey KEY] [-forcekml] [-v]' print ' input_file [output_dir]' print | aed453372303d79578bbfe0db035d8d42f800dc8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10290/aed453372303d79578bbfe0db035d8d42f800dc8/gdal2tiles.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10858,
13332,
1172,
296,
5357,
30,
15551,
287,
22,
28366,
18,
2074,
23059,
2649,
315,
4247,
11929,
23059,
6543,
718,
1062,
2207,
93,
477,
3567,
19,
1214,
19,
3864,
1172,
296,
5397,
23059,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10858,
13332,
1172,
296,
5357,
30,
15551,
287,
22,
28366,
18,
2074,
23059,
2649,
315,
4247,
11929,
23059,
6543,
718,
1062,
2207,
93,
477,
3567,
19,
1214,
19,
3864,
1172,
296,
5397,
23059,
... |
br.select_form(nr=0) | br.select_form(nr=1) | def get_browser(self): br = BasicNewsRecipe.get_browser() br.set_handle_refresh(False) if self.username is not None and self.password is not None: br.open('http://espn.com') br.select_form(nr=0) br.form.find_control(name='username', type='text').value = self.username br.form['password'] = self.password br.submit() br.s... | 9132c638a6769a5345ba6db07267fce2472490b5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/9132c638a6769a5345ba6db07267fce2472490b5/recipe_espn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11213,
12,
2890,
4672,
5186,
273,
7651,
17948,
5650,
3151,
18,
588,
67,
11213,
1435,
5186,
18,
542,
67,
4110,
67,
9144,
12,
8381,
13,
309,
365,
18,
5053,
353,
486,
599,
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,
336,
67,
11213,
12,
2890,
4672,
5186,
273,
7651,
17948,
5650,
3151,
18,
588,
67,
11213,
1435,
5186,
18,
542,
67,
4110,
67,
9144,
12,
8381,
13,
309,
365,
18,
5053,
353,
486,
599,
471,
... |
_abacus_toolbar_button.set_expanded(True) | def __init__(self, handle): """ Initiate activity. """ super(AbacusActivity,self).__init__(handle) | fd911751574e06f9f013eb80fbecdcda1b58afa5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7608/fd911751574e06f9f013eb80fbecdcda1b58afa5/AbacusActivity.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1640,
4672,
3536,
26615,
5728,
18,
3536,
2240,
12,
5895,
1077,
407,
6193,
16,
2890,
2934,
972,
2738,
972,
12,
4110,
13,
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,
0,
0,
0,
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,
1640,
4672,
3536,
26615,
5728,
18,
3536,
2240,
12,
5895,
1077,
407,
6193,
16,
2890,
2934,
972,
2738,
972,
12,
4110,
13,
2,
-100,
-100,
-100,
-100,
-100,
... | |
y = scale(self._findMinMaxValues()[0]) | y = self._findMinMaxValues()[0] if vm is not None: y = min(y,vm) y = scale(y) | def calcBarPositions(self): """Works out where they go. default vertical. | cb13ab363fa36c821b61aae9cdb905565175064c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/cb13ab363fa36c821b61aae9cdb905565175064c/barcharts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
5190,
11024,
12,
2890,
4672,
3536,
16663,
596,
1625,
2898,
1960,
18,
805,
9768,
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,
... | [
1,
1,
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,
7029,
5190,
11024,
12,
2890,
4672,
3536,
16663,
596,
1625,
2898,
1960,
18,
805,
9768,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.pb.set_fraction(float(h+1)/self.__nbVal) | if h<self.__nbVal: self.pb.set_fraction(float(h+1)/self.__nbVal) else: self.pb.set_fraction(1.0) | def updateProgressBar(self,h,filename): """ Mise jour de la progressbar Dans le cas d'un toolkit, c'est ici qu'il faudra appeler le traitement des vnements. set the progress-bar to the given value with the given name @param h: current number of the file @type val: integer or float @param name: name of the current elem... | 00405f0c4fb078d3a39c5486ff5c7f50803c8788 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12328/00405f0c4fb078d3a39c5486ff5c7f50803c8788/imagizer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
31547,
12,
2890,
16,
76,
16,
3459,
4672,
3536,
490,
784,
225,
525,
477,
443,
7125,
31730,
463,
634,
884,
8697,
302,
11,
318,
5226,
8691,
16,
276,
11,
395,
277,
8450,
719,
11,
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,
1089,
31547,
12,
2890,
16,
76,
16,
3459,
4672,
3536,
490,
784,
225,
525,
477,
443,
7125,
31730,
463,
634,
884,
8697,
302,
11,
318,
5226,
8691,
16,
276,
11,
395,
277,
8450,
719,
11,
3... |
return self.element().exponents() | return [m.element().dict().keys()[0] for m in self.monomials()] | def exponents(self): """ Return the exponents of the monomials appearing in self. EXAMPLES: sage: R.<a,b,c> = PolynomialRing(QQ, 3) sage: f = a^3 + b + 2*b^2 sage: f.exponents() [(3, 0, 0), (0, 2, 0), (0, 1, 0)] """ return self.element().exponents() | eaa2644ca56d50b5a6c6132e7d48c3031813aed4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/eaa2644ca56d50b5a6c6132e7d48c3031813aed4/multi_polynomial_element.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9100,
87,
12,
2890,
4672,
3536,
2000,
326,
9100,
87,
434,
326,
312,
4708,
649,
87,
7226,
5968,
316,
365,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
534,
22782,
69,
16,
70,
16,
71,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9100,
87,
12,
2890,
4672,
3536,
2000,
326,
9100,
87,
434,
326,
312,
4708,
649,
87,
7226,
5968,
316,
365,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
534,
22782,
69,
16,
70,
16,
71,... |
def relevance_sort(a, b): dr = relevance(b, *cache[b]) - relevance(a, *cache[a]) if dr != 0: return dr else: return cmp(a, b) found.sort(relevance_sort) | def relevance_value(a): return relevance(a, *cache[a]) found.sort(key=relevance_value) | def relevance_sort(a, b): dr = relevance(b, *cache[b]) - relevance(a, *cache[a]) if dr != 0: return dr else: return cmp(a, b) | 0a67e86f49a0dee8d39f94dd29947311d5491a29 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/0a67e86f49a0dee8d39f94dd29947311d5491a29/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6707,
5882,
67,
3804,
12,
69,
16,
324,
4672,
5081,
273,
6707,
5882,
12,
70,
16,
380,
2493,
63,
70,
5717,
300,
6707,
5882,
12,
69,
16,
380,
2493,
63,
69,
5717,
309,
5081,
480,
374,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6707,
5882,
67,
3804,
12,
69,
16,
324,
4672,
5081,
273,
6707,
5882,
12,
70,
16,
380,
2493,
63,
70,
5717,
300,
6707,
5882,
12,
69,
16,
380,
2493,
63,
69,
5717,
309,
5081,
480,
374,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.