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, 2187, 296, 622, 306, 20, 17, 29, 37, 17, 42, 7073, 28, 29531, 16200, 3546, 30, 309, 283, 18, 3072, 12, 4951, 16, 8480, 12, 503, 3719, 30, 327, 283, 18, 1717, 12, 4951, 16, 7481, 16, 977, 13, 327, 977, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 92, 63, 20, 17, 29, 69, 17, 74, 7073, 26, 29531, 16200, 2187, 296, 622, 306, 20, 17, 29, 37, 17, 42, 7073, 28, 29531, 16200, 3546, 30, 309, 283, 18, 3072, 12, 4951, 16, 8480, 12, 503, 3719, 30, 327, 283, 18, 1717, 12, 4951, 16, 7481, 16, 977, 13, 327, 977, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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.log(0,'error',__("Layout %s has an invalid schedule finish time. Using 00:00:00 UTC on 19 January 2038") % self.layoutID) toDt = 2147472000
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, 6376, 17023, 12083, 1621, 6134, 397, 1140, 18, 10814, 397, 365, 18, 6741, 734, 397, 2418, 18402, 74, 11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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 6376, 17023, 12083, 1621, 6134, 397, 1140, 18, 10814, 397, 365, 18, 6741, 734, 397, 2418, 18402, 74, 11, 4672, 468, 2597, 711, 18, 11889, 279, 7749, 365, 18, 12406, 1190, 2279, 60, 9105, 273, 1053, 1335, 30, 327, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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.conf.basedir, self.conf.directory, f) if not os.path.exists(fn): self.callback.errorlog(_('cannot get to file: %s') % fn) if os.path.getctime(fn) > self.conf.mdtimestamp: return False else: return True return False
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, 18, 1893, 3428, 30, 8800, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 3923, 18, 31722, 16, 365, 18, 3923, 18, 5149, 13, 1390, 273, 365, 18, 588, 26098, 12, 5176, 16, 2418, 86, 7755, 6134, 1390, 273, 365, 18, 5290, 54, 84, 959, 12, 2354, 13, 364, 284, 316, 1390, 30, 2295, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 3923, 18, 31722, 16, 365, 18, 3923, 18, 5149, 16, 284, 13, 309, 486, 1140, 18, 803, 18, 1808, 12, 4293, 4672, 365, 18, 3394, 18, 1636, 1330, 24899, 2668, 12892, 336, 358, 585, 30, 738, 87, 6134, 738, 2295, 13, 309, 1140, 18, 803, 18, 588, 21261, 12, 4293, 13, 405, 365, 18, 3923, 18, 1264, 5508, 30, 327, 1083, 225, 327, 1053, 225, 327, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 18, 1893, 3428, 30, 8800, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 3923, 18, 31722, 16, 365, 18, 3923, 18, 5149, 13, 1390, 273, 365, 18, 588, 26098, 12, 5176, 16, 2418, 86, 7755, 6134, 1390, 273, 365, 18, 5290, 54, 84, 959, 12, 2354, 13, 364, 284, 316, 1390, 30, 2295, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 3923, 18, 31722, 16, 365, 18, 3923, 18, 5149, 16, 284, 13, 309, 486, 1140, 18, 803, 18, 1808, 12, 4293, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def _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 = 'utf-16be' xml_data = unicode(xml_data, 'utf-16be').encode('utf-8') elif (len(xml_data) >= 4) and (xml_data[:2] == '\xfe\xff') \ and (xml_data[2:4] != '\x00\x00'): # UTF-16BE with BOM sniffed_xml_encoding = 'utf-16be' xml_data = unicode(xml_data[2:], 'utf-16be').encode('utf-8') elif xml_data[:4] == '\x3c\x00\x3f\x00': # UTF-16LE sniffed_xml_encoding = 'utf-16le' xml_data = unicode(xml_data, 'utf-16le').encode('utf-8') elif (len(xml_data) >= 4) and (xml_data[:2] == '\xff\xfe') and \ (xml_data[2:4] != '\x00\x00'): # UTF-16LE with BOM sniffed_xml_encoding = 'utf-16le' xml_data = unicode(xml_data[2:], 'utf-16le').encode('utf-8') elif xml_data[:4] == '\x00\x00\x00\x3c': # UTF-32BE sniffed_xml_encoding = 'utf-32be' xml_data = unicode(xml_data, 'utf-32be').encode('utf-8') elif xml_data[:4] == '\x3c\x00\x00\x00': # UTF-32LE sniffed_xml_encoding = 'utf-32le' xml_data = unicode(xml_data, 'utf-32le').encode('utf-8') elif xml_data[:4] == '\x00\x00\xfe\xff': # UTF-32BE with BOM sniffed_xml_encoding = 'utf-32be' xml_data = unicode(xml_data[4:], 'utf-32be').encode('utf-8') elif xml_data[:4] == '\xff\xfe\x00\x00': # UTF-32LE with BOM sniffed_xml_encoding = 'utf-32le' xml_data = unicode(xml_data[4:], 'utf-32le').encode('utf-8') elif xml_data[:3] == '\xef\xbb\xbf': # UTF-8 with BOM sniffed_xml_encoding = 'utf-8' xml_data = unicode(xml_data[3:], 'utf-8').encode('utf-8') else: sniffed_xml_encoding = 'ascii' pass except: xml_encoding_match = None xml_encoding_re = '^<\?.*encoding=[\'"](.*?)[\'"].*\?>'.encode() xml_encoding_match = re.compile(xml_encoding_re).match(xml_data) if not xml_encoding_match and isHTML: meta_re = '<\s*meta[^>]+charset=([^>]*?)[;\'">]'.encode() regexp = re.compile(meta_re, re.I) xml_encoding_match = regexp.search(xml_data) if xml_encoding_match is not None: xml_encoding = xml_encoding_match.groups()[0].decode( 'ascii').lower() if isHTML: self.declaredHTMLEncoding = xml_encoding if sniffed_xml_encoding and \ (xml_encoding in ('iso-10646-ucs-2', 'ucs-2', 'csunicode', 'iso-10646-ucs-4', 'ucs-4', 'csucs4', 'utf-16', 'utf-32', 'utf_16', 'utf_32', 'utf16', 'u16')): xml_encoding = sniffed_xml_encoding return xml_data, xml_encoding, 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, 775, 30, 309, 2025, 67, 892, 10531, 24, 65, 422, 2337, 92, 24, 71, 64, 92, 26, 74, 64, 6995, 27, 64, 92, 11290, 4278, 468, 512, 16283, 2565, 39, 2025, 67, 892, 273, 365, 6315, 24008, 4315, 335, 67, 869, 67, 9184, 12, 2902, 67, 892, 13, 1327, 2025, 67, 892, 10531, 24, 65, 422, 2337, 92, 713, 64, 92, 23, 71, 64, 92, 713, 64, 92, 23, 74, 4278, 468, 6380, 17, 2313, 5948, 26974, 329, 67, 2902, 67, 5999, 273, 296, 3158, 17, 2313, 2196, 11, 2025, 67, 892, 273, 5252, 12, 2902, 67, 892, 16, 296, 3158, 17, 2313, 2196, 16063, 3015, 2668, 3158, 17, 28, 6134, 1327, 261, 1897, 12, 2902, 67, 892, 13, 1545, 1059, 13, 471, 261, 2902, 67, 892, 10531, 22, 65, 422, 2337, 26947, 64, 5297, 6134, 521, 471, 261, 2902, 67, 892, 63, 22, 30, 24, 65, 480, 2337, 92, 713, 64, 92, 713, 11, 4672, 468, 6380, 17, 2313, 5948, 598, 25408, 26974, 329, 67, 2902, 67, 5999, 273, 296, 3158, 17, 2313, 2196, 11, 2025, 67, 892, 273, 5252, 12, 2902, 67, 892, 63, 22, 30, 6487, 296, 3158, 17, 2313, 2196, 16063, 3015, 2668, 3158, 17, 28, 6134, 1327, 2025, 67, 892, 10531, 24, 65, 422, 2337, 92, 23, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 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, 775, 30, 309, 2025, 67, 892, 10531, 24, 65, 422, 2337, 92, 24, 71, 64, 92, 26, 74, 64, 6995, 27, 64, 92, 11290, 4278, 468, 512, 16283, 2565, 39, 2025, 67, 892, 273, 365, 6315, 24008, 4315, 335, 67, 869, 67, 9184, 12, 2902, 67, 892, 13, 1327, 2025, 67, 892, 10531, 24, 65, 422, 2337, 92, 713, 64, 92, 23, 71, 64, 92, 713, 64, 92, 23, 74, 4278, 468, 6380, 17, 2313, 5948, 26974, 329, 67, 2902, 67, 5999, 273, 296, 2 ]
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, 91, 4880, 18, 9144, 1435, 469, 30, 309, 16033, 7944, 471, 486, 16033, 7944, 18, 12204, 30, 980, 273, 16033, 7944, 18, 896, 1369, 1435, 469, 30, 980, 273, 1831, 67, 2630, 2932, 19104, 34, 9369, 309, 613, 7944, 30, 613, 7944, 18, 2626, 12, 1369, 397, 1548, 82, 7923, 327, 980, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 91, 4880, 18, 9144, 1435, 469, 30, 309, 16033, 7944, 471, 486, 16033, 7944, 18, 12204, 30, 980, 273, 16033, 7944, 18, 896, 1369, 1435, 469, 30, 980, 273, 1831, 67, 2630, 2932, 19104, 34, 9369, 309, 613, 7944, 30, 613, 7944, 18, 2626, 12, 1369, 397, 1548, 82, 7923, 327, 980, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 18, 1098, 1377, 422, 1308, 18, 1098, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 18, 1098, 1377, 422, 1308, 18, 1098, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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') except WindowsError: ce_sdk = '' if ce_sdk: supported_wince_platforms = [] ce_index = 0 while 1: try: sdk_device = _winreg.EnumKey(ce_sdk, ce_index) except WindowsError: break ce_index = ce_index + 1 sdk = _winreg.OpenKey(ce_sdk, sdk_device) path,type = _winreg.QueryValueEx(sdk, 'SDKRootDir') path=str(path) path,device = os.path.split(path) if not device: path,device = os.path.split(path) for arch,compiler in all_wince_platforms: platforms = [] if os.path.isdir(os.path.join(path, device, 'Lib', arch)): platforms.append((arch, compiler, os.path.join(path, device, 'Include', arch), os.path.join(path, device, 'Lib', arch))) if platforms: supported_wince_platforms.append((device, platforms)) # checks MSVC version_pattern = re.compile('^..?\...?') for vcver,vcvar in [('VCExpress','Exp'), ('VisualStudio','')]: try: prefix = 'SOFTWARE\\Wow6432node\\Microsoft\\'+vcver all_versions = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, prefix) except WindowsError: try: prefix = 'SOFTWARE\\Microsoft\\'+vcver all_versions = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, prefix) except WindowsError: continue index = 0 detected_versions = [] while 1: try: version = _winreg.EnumKey(all_versions, index) except WindowsError: break index = index + 1 if not version_pattern.match(version): continue if version.endswith('Exp'): versionnumber = float(version[:-3]) else: versionnumber = float(version) detected_versions.append((versionnumber, version, prefix+"\\"+version)) detected_versions.sort(key = lambda (x,y,z):x) for (v,version,reg) in detected_versions: try: msvc_version = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, reg + "\\Setup\\VS") path,type = _winreg.QueryValueEx(msvc_version, 'ProductDir') path=str(path) targets = [] if ce_sdk: for device,platforms in supported_wince_platforms: cetargets = [] for platform,compiler,include,lib in platforms: winCEpath = os.path.join(path, 'VC', 'ce') if os.path.isdir(winCEpath): common_bindirs,_1,_2 = conf.get_msvc_version('msvc', version, 'x86', os.path.join(path, 'Common7', 'Tools', 'vsvars32.bat')) if os.path.isdir(os.path.join(winCEpath, 'lib', platform)): bindirs = [os.path.join(winCEpath, 'bin', compiler), os.path.join(winCEpath, 'bin', 'x86_'+compiler)] + common_bindirs incdirs = [include, os.path.join(winCEpath, 'include'), os.path.join(winCEpath, 'atlmfc', 'include')] libdirs = [lib, os.path.join(winCEpath, 'lib', platform), os.path.join(winCEpath, 'atlmfc', 'lib', platform)] cetargets.append((platform, (platform, (bindirs,incdirs,libdirs)))) versions.append((device+' '+version, cetargets)) if os.path.isfile(os.path.join(path, 'VC', 'vcvarsall.bat')): for target,realtarget in all_msvc_platforms[::-1]: try: targets.append((target, (realtarget, conf.get_msvc_version('msvc', version, target, os.path.join(path, 'VC', 'vcvarsall.bat'))))) except: pass elif os.path.isfile(os.path.join(path, 'Common7', 'Tools', 'vsvars32.bat')): try: targets.append(('x86', ('x86', conf.get_msvc_version('msvc', version, 'x86', os.path.join(path, 'Common7', 'Tools', 'vsvars32.bat'))))) except conf.errors.ConfigurationError: pass versions.append(('msvc '+version, targets)) except WindowsError: continue
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, 1574, 18, 44, 3297, 67, 14922, 67, 5535, 1792, 3740, 16, 296, 3584, 4464, 28499, 1695, 59, 543, 1105, 1578, 2159, 1695, 22350, 1695, 10399, 29538, 19089, 1695, 22625, 87, 6134, 1335, 8202, 668, 30, 775, 30, 5898, 67, 20907, 273, 389, 8082, 1574, 18, 3678, 653, 24899, 8082, 1574, 18, 44, 3297, 67, 14922, 67, 5535, 1792, 3740, 16, 296, 3584, 4464, 28499, 1695, 22350, 1695, 10399, 29538, 19089, 1695, 22625, 87, 6134, 1335, 8202, 668, 30, 5898, 67, 20907, 273, 875, 309, 5898, 67, 20907, 30, 3260, 67, 91, 2410, 67, 9898, 87, 273, 5378, 5898, 67, 1615, 273, 374, 1323, 404, 30, 775, 30, 14446, 67, 5964, 273, 389, 8082, 1574, 18, 3572, 653, 12, 311, 67, 20907, 16, 5898, 67, 1615, 13, 1335, 8202, 668, 30, 898, 5898, 67, 1615, 273, 5898, 67, 1615, 397, 404, 14446, 273, 389, 8082, 1574, 18, 3678, 653, 12, 311, 67, 20907, 16, 14446, 67, 5964, 13, 589, 16, 723, 273, 389, 8082, 1574, 18, 1138, 620, 424, 12, 20907, 16, 296, 22625, 27322, 6134, 589, 33, 701, 12, 803, 13, 589, 16, 5964, 273, 1140, 18, 803, 18, 4939, 12, 803, 13, 309, 486, 2346, 30, 589, 16, 5964, 273, 1140, 18, 803, 18, 4939, 12, 803, 13, 364, 6637, 16, 9576, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 1574, 18, 44, 3297, 67, 14922, 67, 5535, 1792, 3740, 16, 296, 3584, 4464, 28499, 1695, 59, 543, 1105, 1578, 2159, 1695, 22350, 1695, 10399, 29538, 19089, 1695, 22625, 87, 6134, 1335, 8202, 668, 30, 775, 30, 5898, 67, 20907, 273, 389, 8082, 1574, 18, 3678, 653, 24899, 8082, 1574, 18, 44, 3297, 67, 14922, 67, 5535, 1792, 3740, 16, 296, 3584, 4464, 28499, 1695, 22350, 1695, 10399, 29538, 19089, 1695, 22625, 87, 6134, 1335, 8202, 668, 30, 5898, 67, 20907, 273, 875, 309, 5898, 2 ]
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, 327, 4892, 422, 315, 2505, 72, 19, 21136, 17, 5149, 6, 327, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 327, 4892, 422, 315, 2505, 72, 19, 21136, 17, 5149, 6, 327, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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.asctime() # use PandaDDM self.pandaDDM = pandaDDM # file list for dispDS for PandaDDM self.dispFileList = {} # priority for ddm job self.ddmAttempt = ddmAttempt # site mapper self.siteMapper = None # fork another process because python doesn't release memory self.forkRun = forkRun # run task assignment only self.onlyTA = onlyTA # location map self.replicaMap = {} # all replica locations self.allReplicaMap = {}
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, 3700, 9833, 33, 8381, 4672, 17254, 18, 3830, 16186, 2738, 972, 12, 2890, 13, 365, 18, 10088, 4202, 273, 6550, 365, 18, 4146, 1892, 273, 1562, 1892, 468, 776, 3060, 87, 434, 3435, 40, 6450, 365, 18, 90, 1911, 863, 273, 2618, 468, 400, 373, 3951, 578, 486, 365, 18, 455, 373, 1938, 273, 400, 373, 1938, 468, 813, 14429, 365, 18, 5508, 273, 813, 18, 701, 9982, 27188, 61, 6456, 81, 6456, 72, 738, 44, 5319, 49, 5319, 55, 3113, 957, 18, 75, 10838, 10756, 468, 999, 453, 464, 69, 5698, 49, 365, 18, 84, 464, 69, 5698, 49, 273, 293, 464, 69, 5698, 49, 468, 585, 666, 364, 16232, 3948, 364, 453, 464, 69, 5698, 49, 365, 18, 25453, 26098, 273, 2618, 468, 4394, 364, 6957, 81, 1719, 365, 18, 449, 81, 7744, 273, 6957, 81, 7744, 468, 2834, 5815, 365, 18, 4256, 4597, 273, 599, 468, 12515, 4042, 1207, 2724, 5790, 3302, 1404, 3992, 3778, 365, 18, 23335, 1997, 273, 12515, 1997, 468, 1086, 1562, 6661, 1338, 365, 18, 3700, 9833, 273, 1338, 9833, 468, 2117, 852, 365, 18, 30065, 863, 225, 273, 2618, 468, 777, 12335, 7838, 365, 18, 454, 14222, 863, 273, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 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, 3700, 9833, 33, 8381, 4672, 17254, 18, 3830, 16186, 2738, 972, 12, 2890, 13, 365, 18, 10088, 4202, 273, 6550, 365, 18, 4146, 1892, 273, 1562, 1892, 468, 776, 3060, 87, 434, 3435, 40, 6450, 365, 18, 90, 1911, 863, 273, 2618, 468, 400, 373, 3951, 578, 486, 365, 18, 455, 373, 1938, 273, 400, 373, 1938, 468, 813, 14429, 365, 18, 5508, 273, 813, 18, 701, 9982, 27188, 61, 6456, 81, 6456, 72, 738, 44, 5319, 49, 5319, 55, 3113, 957, 2 ]
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, 6134, 938, 18, 2157, 18, 1289, 12, 10657, 13, 3475, 18, 23687, 273, 288, 89, 14271, 881, 24144, 4278, 89, 11,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 6134, 938, 18, 2157, 18, 1289, 12, 10657, 13, 3475, 18, 23687, 273, 288, 89, 14271, 881, 24144, 4278, 89, 11, 1248, 603, 326, 666, 11, 97, 938, 18, 7422, 18, 7371, 67, 464, 67, 4479, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 1002, 10195, 16, 296, 3676, 63, 77, 65, 770, 596, 434, 1048, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 = " E" elif (label_val < 0.0) : direction_label = " W" else : direction_label = "" if (axis == PL_Y_AXIS and value == 0.0) : # A special case for the equator snprintf(label, length, "%s", direction_label) else : snprintf(label, length, "%.0f%s", fabs(label_val), direction_label) return 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, 4068, 67, 1925, 273, 315, 423, 6, 1327, 261, 1925, 67, 1125, 411, 374, 18, 20, 13, 294, 4068, 67, 1925, 273, 315, 348, 6, 225, 469, 294, 4068, 67, 1925, 273, 315, 19508, 6, 1327, 261, 4890, 422, 22443, 67, 60, 67, 25614, 13, 294, 1433, 67, 1125, 273, 3883, 67, 16867, 12, 1132, 13, 309, 261, 1925, 67, 1125, 405, 374, 18, 20, 13, 294, 4068, 67, 1925, 273, 315, 512, 6, 1327, 261, 1925, 67, 1125, 411, 374, 18, 20, 13, 294, 4068, 67, 1925, 273, 315, 678, 6, 469, 294, 4068, 67, 1925, 273, 1408, 225, 309, 261, 4890, 422, 22443, 67, 61, 67, 25614, 471, 460, 422, 374, 18, 20, 13, 294, 468, 432, 4582, 648, 364, 326, 1298, 639, 4556, 1461, 12, 1925, 16, 769, 16, 2213, 87, 3113, 4068, 67, 1925, 13, 469, 294, 4556, 1461, 12, 1925, 16, 769, 16, 26209, 20, 74, 9, 87, 3113, 31431, 12, 1925, 67, 1125, 3631, 4068, 67, 1925, 13, 327, 1433, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 4068, 67, 1925, 273, 315, 423, 6, 1327, 261, 1925, 67, 1125, 411, 374, 18, 20, 13, 294, 4068, 67, 1925, 273, 315, 348, 6, 225, 469, 294, 4068, 67, 1925, 273, 315, 19508, 6, 1327, 261, 4890, 422, 22443, 67, 60, 67, 25614, 13, 294, 1433, 67, 1125, 273, 3883, 67, 16867, 12, 1132, 13, 309, 261, 1925, 67, 1125, 405, 374, 18, 20, 13, 294, 4068, 67, 1925, 273, 315, 512, 6, 1327, 261, 1925, 67, 1125, 411, 374, 18, 2 ]
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.parse(fname).getroot() self.parse_filelist(fdata, farch) # merge data sdata = self.packages.values() self.packages['global'] = copy.deepcopy(sdata.pop()) while sdata: self.packages['global'].intersection(sdata.pop())
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, 768, 67, 869, 67, 991, 63, 12749, 65, 284, 892, 273, 328, 2902, 18, 31303, 18, 2670, 12, 12749, 2934, 588, 3085, 1435, 365, 18, 2670, 67, 8258, 12, 74, 892, 16, 284, 991, 13, 364, 5299, 316, 306, 74, 364, 284, 316, 365, 18, 2354, 309, 284, 18, 5839, 1918, 2668, 7540, 292, 1486, 18, 2902, 18, 9764, 6134, 14542, 284, 991, 273, 365, 18, 768, 67, 869, 67, 991, 63, 12749, 65, 284, 892, 273, 328, 2902, 18, 31303, 18, 2670, 12, 12749, 2934, 588, 3085, 1435, 365, 18, 2670,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 768, 67, 869, 67, 991, 63, 12749, 65, 284, 892, 273, 328, 2902, 18, 31303, 18, 2670, 12, 12749, 2934, 588, 3085, 1435, 365, 18, 2670, 67, 8258, 12, 74, 892, 16, 284, 991, 13, 364, 5299, 316, 306, 74, 364, 284, 316, 365, 18, 2354, 309, 284, 18, 5839, 1918, 2668, 7540, 292, 1486, 18, 2902, 18, 9764, 6134, 14542, 284, 991, 273, 365, 18, 768, 67, 869, 67, 991, 63, 12749, 65, 284, 892, 273, 328, 2902, 18, 31303, 18, 2670, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 16, 296, 23335, 11, 4672, 327, 4231, 273, 1140, 18, 23335, 1435, 309, 4231, 422, 374, 30, 468, 657, 326, 1151, 16, 2176, 326, 14187, 18, 365, 6315, 2147, 18, 739, 1435, 813, 18, 19607, 12, 22, 13, 365, 6315, 2147, 18, 26226, 1435, 1140, 6315, 8593, 12, 20, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 16, 296, 23335, 11, 4672, 327, 4231, 273, 1140, 18, 23335, 1435, 309, 4231, 422, 374, 30, 468, 657, 326, 1151, 16, 2176, 326, 14187, 18, 365, 6315, 2147, 18, 739, 1435, 813, 18, 19607, 12, 22, 13, 365, 6315, 2147, 18, 26226, 1435, 1140, 6315, 8593, 12, 20, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 append to charmap tail return charset # cannot compress except IndexError: # unicode return charset # compress character map i = p = n = 0 runs = [] for c in charmap: if c: if n == 0: p = i n = n + 1 elif n: runs.append((p, n)) n = 0 i = i + 1 if n: runs.append((p, n)) if len(runs) <= 2: # use literal/range for p, n in runs: if n == 1: out.append((LITERAL, p)) else: out.append((RANGE, (p, p+n-1))) if len(out) < len(charset): return out else: # use bitmap data = [] m = 1; v = 0 for c in charmap: if c: v = v + m m = m << 1 if m > MAXCODE: data.append(v) m = 1; v = 0 out.append((CHARSET, data)) return out return charset
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, 309, 1061, 353, 12901, 26316, 30, 596, 18, 6923, 12443, 556, 16, 1712, 3719, 1327, 1061, 353, 511, 18454, 30, 1149, 1458, 63, 904, 416, 12, 842, 25887, 273, 404, 1327, 1061, 353, 534, 8357, 30, 364, 277, 316, 1048, 12, 904, 416, 12, 842, 63, 20, 65, 3631, 2917, 416, 12, 842, 63, 21, 5717, 15, 21, 4672, 1149, 1458, 63, 77, 65, 273, 404, 1327, 1061, 353, 31524, 19281, 30, 468, 9852, 30, 3377, 714, 358, 1149, 1458, 5798, 327, 4856, 468, 2780, 8099, 1335, 10195, 30, 468, 5252, 327, 4856, 468, 8099, 3351, 852, 277, 273, 293, 273, 290, 273, 374, 7597, 273, 5378, 364, 276, 316, 1149, 1458, 30, 309, 276, 30, 309, 290, 422, 374, 30, 293, 273, 277, 290, 273, 290, 397, 404, 1327, 290, 30, 7597, 18, 6923, 12443, 84, 16, 290, 3719, 290, 273, 374, 277, 273, 277, 397, 404, 309, 290, 30, 7597, 18, 6923, 12443, 84, 16, 290, 3719, 309, 562, 12, 20152, 13, 1648, 576, 30, 468, 999, 7158, 19, 3676, 364, 293, 16, 290, 316, 7597, 30, 309, 290, 422, 404, 30, 596, 18, 6923, 12443, 23225, 16, 293, 3719, 469, 30, 596, 18, 6923, 12443, 15928, 16, 261, 84, 16, 293, 15, 82, 17, 21, 20349, 309, 562, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 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, 309, 1061, 353, 12901, 26316, 30, 596, 18, 6923, 12443, 556, 16, 1712, 3719, 1327, 1061, 353, 511, 18454, 30, 1149, 1458, 63, 904, 416, 12, 842, 25887, 273, 404, 1327, 1061, 353, 534, 8357, 30, 364, 277, 316, 1048, 12, 904, 416, 12, 842, 63, 20, 65, 3631, 2917, 416, 12, 842, 63, 21, 5717, 15, 21, 4672, 1149, 1458, 63, 77, 65, 273, 404, 1327, 1061, 353, 31524, 19281, 30, 468, 9852, 30, 3377, 714, 358, 1149, 1458, 5798, 327, 4856, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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), force_escape(newspaper), rfc3339_safe(pub_date), force_escape(title)))
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_escape(newspaper), rfc3339_safe(pub_date), force_escape(title))
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"?>\n<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n') max_urls = 50000 page_count = 0 url_count = 0 sitemap_file = None for loc, last_mod, newspaper, pub_date, title in sitemap_urls(): # if we've maxed out the number of urls per sitemap # close out the one we have open and open a new one if url_count % max_urls == 0: page_count += 1 if sitemap_file: sitemap.write('</urlset>\n') sitemap.close() sitemap_file = 'sitemap-%05d.xml' % page_count _logger.info("writing %s" % sitemap_file) sitemap = open(os.path.join(settings.DOCUMENT_ROOT, sitemap_file), 'w') sitemap.write('<?xml version="1.0" encoding="UTF-8"?>\n<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">\n') sitemap_index.write('<sitemap><loc>http://chroniclingamerica.loc.gov/%s</loc></sitemap>\n' % sitemap_file) # add a url to the sitemap if newspaper and pub_date and title: 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), force_escape(newspaper), rfc3339_safe(pub_date), force_escape(title))) else: sitemap.write("<url><loc>http://chroniclingamerica.loc.gov%s</loc><lastmod>%s</lastmod></url>\n" % (loc, rfc3339(last_mod))) url_count += 1 # necessary to avoid memory bloat when settings.DEBUG = True if url_count % 1000 == 0: reset_queries() # wrap up some open files sitemap.write('</urlset>\n') sitemap.close() sitemap_index.write('</sitemapindex>\n') sitemap_index.close()
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, 4203, 18, 3536, 14628, 67, 1615, 273, 1696, 12, 1140, 18, 803, 18, 5701, 12, 4272, 18, 18450, 67, 9185, 16, 296, 21517, 18, 2902, 19899, 296, 91, 6134, 14628, 67, 1615, 18, 2626, 2668, 12880, 2902, 1177, 1546, 21, 18, 20, 6, 2688, 1546, 5159, 17, 28, 6, 35, 5333, 82, 32, 21517, 1615, 12302, 1546, 2505, 2207, 5591, 18, 87, 1726, 6679, 18, 3341, 19, 17928, 19, 21517, 19, 20, 18, 29, 6, 5333, 82, 6134, 225, 943, 67, 10518, 273, 1381, 2787, 1363, 67, 1883, 273, 374, 880, 67, 1883, 273, 374, 14628, 67, 768, 273, 599, 225, 364, 1515, 16, 1142, 67, 1711, 16, 394, 1752, 7294, 16, 5634, 67, 712, 16, 2077, 316, 14628, 67, 10518, 13332, 225, 468, 309, 732, 8081, 943, 329, 596, 326, 1300, 434, 6903, 1534, 14628, 468, 1746, 596, 326, 1245, 732, 1240, 1696, 471, 1696, 279, 394, 1245, 309, 880, 67, 1883, 738, 943, 67, 10518, 422, 374, 30, 1363, 67, 1883, 1011, 404, 309, 14628, 67, 768, 30, 14628, 18, 2626, 2668, 1757, 718, 542, 5333, 82, 6134, 14628, 18, 4412, 1435, 14628, 67, 768, 273, 296, 21517, 6456, 6260, 72, 18, 2902, 11, 738, 1363, 67, 1883, 389, 4901, 18, 1376, 2932, 14345, 738, 87, 6, 738, 14628, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 4203, 18, 3536, 14628, 67, 1615, 273, 1696, 12, 1140, 18, 803, 18, 5701, 12, 4272, 18, 18450, 67, 9185, 16, 296, 21517, 18, 2902, 19899, 296, 91, 6134, 14628, 67, 1615, 18, 2626, 2668, 12880, 2902, 1177, 1546, 21, 18, 20, 6, 2688, 1546, 5159, 17, 28, 6, 35, 5333, 82, 32, 21517, 1615, 12302, 1546, 2505, 2207, 5591, 18, 87, 1726, 6679, 18, 3341, 19, 17928, 19, 21517, 19, 20, 18, 29, 6, 5333, 82, 6134, 225, 943, 67, 10518, 273, 1381, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.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(cr, uid, move_ids) wf_service.trg_write(uid, 'stock.picking', pick.id, cr)
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, 21954, 4227, 18, 25635, 2932, 13815, 7923, 365, 18, 17153, 67, 5734, 67, 6145, 12, 3353, 16, 4555, 16, 3258, 13, 364, 6002, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 4672, 3635, 67, 2232, 273, 306, 92, 18, 350, 364, 619, 316, 6002, 18, 8501, 67, 3548, 65, 365, 18, 6011, 18, 588, 2668, 15381, 18, 8501, 16063, 5734, 67, 6145, 12, 3353, 16, 4555, 16, 3635, 67, 2232, 13, 11578, 67, 3278, 18, 313, 75, 67, 2626, 12, 1911, 16, 296, 15381, 18, 11503, 310, 2187, 6002, 18, 350, 16, 4422, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0 ]
[ 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, 21954, 4227, 18, 25635, 2932, 13815, 7923, 365, 18, 17153, 67, 5734, 67, 6145, 12, 3353, 16, 4555, 16, 3258, 13, 364, 6002, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 4672, 3635, 67, 2232, 273, 306, 92, 18, 350, 364, 619, 316, 6002, 18, 8501, 67, 3548, 65, 365, 18, 6011, 18, 588, 2668, 15381, 18, 8501, 16063, 5734, 67, 6145, 12, 3353, 16, 4555, 16, 3635, 67, 2232, 13, 11578, 67, 3278, 18, 313, 75, 67, 2626, 12, 1911, 16, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 DIRAC import gConfig cesCfg = ResourcesDefaults.getComputingElementDefaults( ceName, ceType, cfg, currentSectionPath ) ceNameList = cesCfg.listSections() if not ceNameList: error = 'No CE Name provided' gLogger.error( error ) if exitOnError: exit( -1 ) return S_ERROR( error) for ceName in ceNameList: if 'CEType' not in cesCfg[ceName]: error = 'Missing Type for CE "%s"' % ceName gLogger.error( error ) if exitOnError: exit( -1 ) return S_ERROR( error) localsiteCfg = localCfg['LocalSite'] # Replace Configuration under LocalSite with new Configuration for ceName in ceNameList: if localsiteCfg.existsKey( ceName ): gLogger.notice(' Removing existing CE:', ceName ) localsiteCfg.deleteKey( ceName ) gLogger.notice( 'Configuring CE:', ceName ) localsiteCfg.createNewSection( ceName, contents=cesCfg[ceName] ) # Apply configuration and try to instantiate the CEs gConfig.loadCFG( localCfg ) for ceName in ceNameList: ceFactory = ComputingElementFactory( ) try: ceInstance = ceFactory.getCE(ceType, ceName) except Exception, x: error = 'Fail to instantiate CE' gLogger.exception(error) if exitOnError: exit( -1 ) return S_ERROR( error) if not ceInstance['OK']: error = 'Fail to instantiate CE: %s' % ceInstance['Message'] gLogger.error(error) if exitOnError: exit( -1 ) return S_ERROR( error) # Everything is OK, we can save the new cfg localCfg.writeToFile( cfgFile ) gLogger.always( 'LocalSite section in %s has been uptdated with new configuration:' % os.path.basename(cfgFile) ) gLogger.always( str( localCfg['LocalSite'] ) ) return S_OK( ceNameList )
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, 3536, 628, 18544, 2226, 18, 3805, 18, 7703, 310, 18, 7703, 310, 1046, 1733, 565, 1930, 14169, 310, 1046, 1733, 628, 18544, 2226, 18, 3805, 18, 7703, 310, 18, 7703, 310, 1046, 1850, 1930, 6993, 1441, 809, 5014, 628, 18544, 2226, 1930, 314, 809, 276, 281, 8198, 273, 8128, 7019, 18, 588, 7703, 310, 1046, 7019, 12, 5898, 461, 16, 5898, 559, 16, 2776, 16, 783, 5285, 743, 262, 5898, 461, 682, 273, 276, 281, 8198, 18, 1098, 15965, 1435, 309, 486, 5898, 461, 682, 30, 555, 273, 296, 2279, 29538, 1770, 2112, 11, 314, 3328, 18, 1636, 12, 555, 262, 309, 2427, 11427, 30, 2427, 12, 300, 21, 262, 327, 348, 67, 3589, 12, 555, 13, 225, 364, 5898, 461, 316, 5898, 461, 682, 30, 309, 296, 1441, 559, 11, 486, 316, 276, 281, 8198, 63, 311, 461, 14542, 555, 273, 296, 4841, 1412, 364, 29538, 2213, 87, 5187, 738, 5898, 461, 314, 3328, 18, 1636, 12, 555, 262, 309, 2427, 11427, 30, 2427, 12, 300, 21, 262, 327, 348, 67, 3589, 12, 555, 13, 225, 1191, 4256, 8198, 273, 1191, 8198, 3292, 2042, 4956, 3546, 468, 6910, 4659, 3613, 3566, 4956, 598, 394, 4659, 364, 5898, 461, 316, 5898, 461, 682, 30, 309, 1191, 4256, 8198, 18, 1808, 653, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 3536, 628, 18544, 2226, 18, 3805, 18, 7703, 310, 18, 7703, 310, 1046, 1733, 565, 1930, 14169, 310, 1046, 1733, 628, 18544, 2226, 18, 3805, 18, 7703, 310, 18, 7703, 310, 1046, 1850, 1930, 6993, 1441, 809, 5014, 628, 18544, 2226, 1930, 314, 809, 276, 281, 8198, 273, 8128, 7019, 18, 588, 7703, 310, 1046, 7019, 12, 5898, 461, 16, 5898, 559, 16, 2776, 16, 783, 5285, 743, 262, 5898, 461, 682, 273, 276, 281, 8198, 18, 1098, 15965, 1435, 309, 486, 5898, 461, 2 ]
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, 13, 1062, 72, 273, 2239, 2081, 12, 3567, 67, 2867, 16, 776, 2664, 1774, 1503, 13, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 13, 1062, 72, 273, 2239, 2081, 12, 3567, 67, 2867, 16, 776, 2664, 1774, 1503, 13, 1062, 72, 18, 30104, 67, 1405, 502, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if 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, 16, 293, 22, 71, 896, 16, 293, 22, 71, 2626, 16, 276, 22, 84, 896, 16, 276, 22, 84, 2626, 16, 393, 896, 16, 393, 2626, 16, 10197, 67, 13991, 67, 29659, 16, 10197, 67, 1937, 67, 2704, 67, 3184, 4672, 3536, 5289, 5402, 261, 3537, 8202, 1177, 15574, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 16, 293, 22, 71, 896, 16, 293, 22, 71, 2626, 16, 276, 22, 84, 896, 16, 276, 22, 84, 2626, 16, 393, 896, 16, 393, 2626, 16, 10197, 67, 13991, 67, 29659, 16, 10197, 67, 1937, 67, 2704, 67, 3184, 4672, 3536, 5289, 5402, 261, 3537, 8202, 1177, 15574, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
""" 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'] = cfg.get('MENU', 'main', 1) menu['pause'] = cfg.get('MENU', 'pause', 1) menu['mud'] = cfg.get('MENU', 'mud', 1) menu['go'] = cfg.get('MENU', 'go', 1) mysql['host'] = cfg.get('MYSQL', 'host', 1) mysql['port'] = int(cfg.get('MYSQL', 'port', 1)) mysql['user'] = cfg.get('MYSQL', 'user', 1) mysql['passwd'] = cfg.get('MYSQL', 'passwd', 1) mysql['db'] = cfg.get('MYSQL', 'db', 1) debug['log'] = int(cfg.get('DEBUG', 'log', 1)) debug['logfile'] = cfg.get('DEBUG', 'logfile', 1) if not (_debug): _debug = int(cfg.get('DEBUG', 'verbose', 1)) return 0
""" 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', 'admin', 1) menu['main'] = cfg.get('MENU', 'main', 1) menu['pause'] = cfg.get('MENU', 'pause', 1) menu['mud'] = cfg.get('MENU', 'mud', 1) menu['go'] = cfg.get('MENU', 'go', 1) mysql['host'] = cfg.get('MYSQL', 'host', 1) mysql['port'] = int(cfg.get('MYSQL', 'port', 1)) mysql['user'] = cfg.get('MYSQL', 'user', 1) mysql['passwd'] = cfg.get('MYSQL', 'passwd', 1) mysql['db'] = cfg.get('MYSQL', 'db', 1) debug['log'] = int(cfg.get('DEBUG', 'log', 1)) debug['logfile'] = cfg.get('DEBUG', 'logfile', 1) if not _debug: _debug = int(cfg.get('DEBUG', 'verbose', 1)) return 0
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', 1) menu['main'] = cfg.get('MENU', 'main', 1) menu['pause'] = cfg.get('MENU', 'pause', 1) menu['mud'] = cfg.get('MENU', 'mud', 1) menu['go'] = cfg.get('MENU', 'go', 1) mysql['host'] = cfg.get('MYSQL', 'host', 1) mysql['port'] = int(cfg.get('MYSQL', 'port', 1)) mysql['user'] = cfg.get('MYSQL', 'user', 1) mysql['passwd'] = cfg.get('MYSQL', 'passwd', 1) mysql['db'] = cfg.get('MYSQL', 'db', 1) debug['log'] = int(cfg.get('DEBUG', 'log', 1)) debug['logfile'] = cfg.get('DEBUG', 'logfile', 1) if not (_debug): _debug = int(cfg.get('DEBUG', 'verbose', 1)) return 0
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, 19, 79, 19, 8103, 19, 2074, 17, 7020, 1100, 19, 70, 2038, 18, 7066, 6134, 324, 2038, 3292, 2564, 3546, 273, 2776, 18, 588, 2668, 9676, 55, 2187, 296, 2564, 2187, 404, 13, 324, 2038, 3292, 1355, 3546, 273, 2776, 18, 588, 2668, 9676, 55, 17023, 1355, 2187, 404, 13, 324, 2038, 3292, 24002, 3546, 273, 2776, 18, 588, 2668, 9676, 55, 17023, 24002, 2187, 404, 13, 324, 2038, 3292, 3666, 3546, 273, 2776, 18, 588, 2668, 9676, 55, 2187, 296, 3666, 2187, 404, 13, 3824, 3292, 5254, 3546, 273, 2776, 18, 588, 2668, 29227, 2187, 296, 5254, 2187, 404, 13, 3824, 3292, 19476, 3546, 273, 2776, 18, 588, 2668, 29227, 2187, 296, 19476, 2187, 404, 13, 3824, 3292, 81, 1100, 3546, 273, 2776, 18, 588, 2668, 29227, 2187, 296, 81, 1100, 2187, 404, 13, 3824, 3292, 3240, 3546, 273, 2776, 18, 588, 2668, 29227, 2187, 296, 3240, 2187, 404, 13, 7219, 3292, 2564, 3546, 273, 2776, 18, 588, 2668, 22114, 3997, 2187, 296, 2564, 2187, 404, 13, 7219, 3292, 655, 3546, 273, 509, 12, 7066, 18, 588, 2668, 22114, 3997, 2187, 296, 655, 2187, 404, 3719, 7219, 3292, 1355, 3546, 273, 2776, 18, 588, 2668, 22114, 3997, 2187, 296, 1355, 2187, 404, 13, 7219, 3292, 24002, 3546, 273, 2776, 18, 588, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 19, 79, 19, 8103, 19, 2074, 17, 7020, 1100, 19, 70, 2038, 18, 7066, 6134, 324, 2038, 3292, 2564, 3546, 273, 2776, 18, 588, 2668, 9676, 55, 2187, 296, 2564, 2187, 404, 13, 324, 2038, 3292, 1355, 3546, 273, 2776, 18, 588, 2668, 9676, 55, 17023, 1355, 2187, 404, 13, 324, 2038, 3292, 24002, 3546, 273, 2776, 18, 588, 2668, 9676, 55, 17023, 24002, 2187, 404, 13, 324, 2038, 3292, 3666, 3546, 273, 2776, 18, 588, 2668, 9676, 55, 2187, 296, 3666, 2187, 404, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 65, 9016, 273, 306, 404, 18, 28, 3657, 1611, 16, 404, 18, 22, 4700, 9401, 16, 374, 18, 10689, 4700, 5520, 16, 300, 20, 18, 3028, 3028, 29, 2947, 16, 300, 25, 18, 6162, 9498, 16, 300, 10593, 18, 27, 1578, 21, 65, 468, 628, 4233, 351, 2126, 69, 18, 364, 619, 16, 93, 316, 3144, 12, 5279, 16, 6795, 4672, 284, 273, 613, 67, 70, 403, 292, 79, 67, 21, 67, 24, 12, 92, 13, 1172, 619, 16, 93, 16, 74, 16, 6625, 14, 5113, 12443, 74, 17, 93, 13176, 93, 13, 1815, 2417, 12443, 74, 17, 93, 13176, 93, 17653, 6625, 18, 20, 411, 576, 18, 20, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 65, 9016, 273, 306, 404, 18, 28, 3657, 1611, 16, 404, 18, 22, 4700, 9401, 16, 374, 18, 10689, 4700, 5520, 16, 300, 20, 18, 3028, 3028, 29, 2947, 16, 300, 25, 18, 6162, 9498, 16, 300, 10593, 18, 27, 1578, 21, 65, 468, 628, 4233, 351, 2126, 69, 18, 364, 619, 16, 93, 316, 3144, 12, 5279, 16, 6795, 4672, 284, 273, 613, 67, 70, 403, 292, 79, 67, 21, 67, 24, 12, 92, 13, 1172, 619, 16, 93, 16, 74, 2 ]
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()) # If the part is text/plain, we leave it alone if ctype == 'text/plain': pass elif ctype == 'text/html' and isinstance(sanitize, IntType): if sanitize == 0: if outer: raise DiscardMessage part.set_payload(_('HTML attachment scrubbed and removed')) elif sanitize == 2: # By leaving it alone, Pipermail will automatically escape it pass elif sanitize == 3: # Pull it out as an attachment but leave it unescaped. This # is dangerous, but perhaps useful for heavily moderated # lists. omask = os.umask(002) try: url = save_attachment(mlist, part, dir, filter_html=0) finally: os.umask(omask) part.set_payload(_("""\
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, 30, 1234, 892, 273, 2618, 1577, 273, 4604, 67, 17828, 67, 1214, 12, 781, 376, 16, 1234, 16, 1234, 892, 13, 468, 4494, 5442, 1879, 777, 720, 6019, 434, 333, 883, 471, 11991, 373, 596, 11191, 1953, 364, 1087, 316, 1234, 18, 11348, 13332, 11920, 273, 1087, 18, 588, 67, 723, 12, 2680, 18, 588, 67, 1886, 67, 723, 10756, 468, 971, 326, 1087, 353, 977, 19, 7446, 16, 732, 8851, 518, 24068, 309, 11920, 422, 296, 955, 19, 7446, 4278, 1342, 1327, 11920, 422, 296, 955, 19, 2620, 11, 471, 1549, 12, 20266, 16, 3094, 559, 4672, 309, 8881, 422, 374, 30, 309, 6390, 30, 1002, 21643, 1079, 1087, 18, 542, 67, 7648, 24899, 2668, 4870, 6042, 11991, 373, 2992, 471, 3723, 26112, 1327, 8881, 422, 576, 30, 468, 2525, 15086, 518, 24068, 16, 13380, 457, 4408, 903, 6635, 4114, 518, 1342, 1327, 8881, 422, 890, 30, 468, 14899, 518, 596, 487, 392, 6042, 1496, 8851, 518, 27869, 18, 225, 1220, 468, 353, 27308, 1481, 16, 1496, 26282, 5301, 364, 3904, 842, 3220, 681, 19007, 468, 6035, 18, 320, 4455, 273, 1140, 18, 379, 835, 12, 24908, 13, 775, 30, 880, 273, 1923, 67, 11461, 12, 781, 376, 16, 1087, 16, 1577, 16, 1034, 67, 2620, 33, 20, 13, 3095, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 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, 30, 1234, 892, 273, 2618, 1577, 273, 4604, 67, 17828, 67, 1214, 12, 781, 376, 16, 1234, 16, 1234, 892, 13, 468, 4494, 5442, 1879, 777, 720, 6019, 434, 333, 883, 471, 11991, 373, 596, 11191, 1953, 364, 1087, 316, 1234, 18, 11348, 13332, 11920, 273, 1087, 18, 588, 67, 723, 12, 2680, 18, 588, 67, 1886, 67, 723, 10756, 468, 971, 326, 1087, 353, 977, 19, 7446, 16, 732, 8851, 518, 24068, 309, 11920, 422, 296, 955, 19, 7446, 4278, 1342, 1327, 2 ]
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, 18233, 2040, 10656, 16186, 2738, 972, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 18233, 2040, 10656, 16186, 2738, 972, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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" in l: handler = XML_Importer(default_cat, reset_learning_data) elif "smconv_pl" in l: handler = smconv_XML_Importer(default_cat, reset_learning_data) else: handler = memaid_XML_Importer(default_cat, reset_learning_data) f.close() # Parse XML file. parser = make_parser() parser.setFeature(feature_namespaces, 0) parser.setContentHandler(handler) try: # Use cStringIo to avoid a crash in sax when filename has unicode # characters. s = file(filename).read() f = cStringIO.StringIO(s) parser.parse(f) except Exception, e: raise XMLError(stack_trace=True) # Calculate offset with current start date. cur_start_date = time_of_start.time imp_start_date = import_time_of_start.time offset = long(round((cur_start_date - imp_start_date) / 60. / 60. / 24.)) # Adjust timings. if reset_learning_data == False: if cur_start_date <= imp_start_date : for item in handler.imported_items: item.last_rep += abs(offset) item.next_rep += abs(offset) else: time_of_start.time = imp_start_date for item in items: item.last_rep += abs(offset) item.next_rep += abs(offset) return handler.imported_items
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, 20736, 585, 18, 225, 1838, 273, 599, 225, 284, 273, 599, 775, 30, 284, 273, 585, 12, 3459, 13, 1335, 30, 775, 30, 284, 273, 585, 12, 9124, 12, 3459, 2934, 3015, 2932, 26578, 6, 3719, 1335, 30, 1002, 4444, 668, 1435, 225, 328, 273, 284, 18, 896, 1369, 1435, 328, 1011, 284, 18, 896, 1369, 5621, 309, 315, 13607, 351, 538, 878, 73, 6, 316, 328, 30, 1838, 273, 3167, 67, 21927, 12, 1886, 67, 2574, 16, 2715, 67, 21455, 67, 892, 13, 1327, 315, 4808, 4896, 67, 412, 6, 316, 328, 30, 1838, 273, 3029, 4896, 67, 4201, 67, 21927, 12, 1886, 67, 2574, 16, 2715, 67, 21455, 67, 892, 13, 469, 30, 1838, 273, 1663, 20736, 67, 4201, 67, 21927, 12, 1886, 67, 2574, 16, 2715, 67, 21455, 67, 892, 13, 225, 284, 18, 4412, 1435, 225, 468, 2884, 3167, 585, 18, 225, 2082, 273, 1221, 67, 4288, 1435, 2082, 18, 542, 4595, 12, 7238, 67, 16078, 16, 374, 13, 2082, 18, 542, 1350, 1503, 12, 4176, 13, 225, 775, 30, 468, 2672, 276, 780, 15963, 358, 4543, 279, 17053, 316, 20319, 1347, 1544, 711, 5252, 468, 3949, 18, 272, 273, 585, 12, 3459, 2934, 896, 1435, 284, 273, 276, 780, 4294, 18, 780, 4294, 12, 87, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20736, 585, 18, 225, 1838, 273, 599, 225, 284, 273, 599, 775, 30, 284, 273, 585, 12, 3459, 13, 1335, 30, 775, 30, 284, 273, 585, 12, 9124, 12, 3459, 2934, 3015, 2932, 26578, 6, 3719, 1335, 30, 1002, 4444, 668, 1435, 225, 328, 273, 284, 18, 896, 1369, 1435, 328, 1011, 284, 18, 896, 1369, 5621, 309, 315, 13607, 351, 538, 878, 73, 6, 316, 328, 30, 1838, 273, 3167, 67, 21927, 12, 1886, 67, 2574, 16, 2715, 67, 21455, 67, 892, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 1125, 18, 2752, 70, 67, 13923, 1435, 1718, 273, 22718, 18, 6353, 18, 2681, 12, 2890, 13, 309, 1718, 422, 22718, 18, 14508, 67, 3141, 30, 460, 273, 365, 18, 1125, 18, 588, 67, 955, 1435, 469, 30, 460, 273, 599, 365, 18, 11662, 1435, 327, 460, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 1125, 18, 2752, 70, 67, 13923, 1435, 1718, 273, 22718, 18, 6353, 18, 2681, 12, 2890, 13, 309, 1718, 422, 22718, 18, 14508, 67, 3141, 30, 460, 273, 365, 18, 1125, 18, 588, 67, 955, 1435, 469, 30, 460, 273, 599, 365, 18, 11662, 1435, 327, 460, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.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, 1447, 2668, 2187, 2337, 88, 64, 88, 64, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 1447, 2668, 2187, 2337, 88, 64, 88, 64, 451, 14519, 225, 22603, 738, 87, 4359, 738, 5318, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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.get(key): return # Search the filters for item in filters: action, msg, cat, mod, ln = item if (msg.match(message) and issubclass(category, cat) and mod.match(module) and (ln == 0 or lineno == ln)): break else: action = defaultaction # Early exit actions if action == "ignore": registry[key] = 1 return if action == "error": raise category(message) # Other actions if action == "once": registry[key] = 1 oncekey = (message, category) if onceregistry.get(oncekey): return onceregistry[oncekey] = 1 elif action == "always": pass elif action == "module": registry[key] = 1 altkey = (message, category, 0) if registry.get(altkey): return registry[altkey] = 1 elif action == "default": registry[key] = 1 else: # Unrecognized actions are errors raise RuntimeError( "Unrecognized action (%s) in warnings.filters:\n %s" % (`action`, str(item))) # Print message and context showwarning(message, category, filename, lineno)
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, 1435, 422, 3552, 2074, 6877, 1605, 273, 1605, 10531, 17, 23, 65, 468, 11329, 18734, 2973, 7676, 9806, 35, 309, 4023, 353, 599, 30, 4023, 273, 2618, 498, 273, 261, 2150, 16, 3150, 16, 7586, 13, 468, 19884, 1842, 364, 2975, 648, 309, 4023, 18, 588, 12, 856, 4672, 327, 468, 5167, 326, 3415, 364, 761, 316, 3415, 30, 1301, 16, 1234, 16, 6573, 16, 681, 16, 7211, 273, 761, 309, 261, 3576, 18, 1916, 12, 2150, 13, 471, 14664, 12, 4743, 16, 6573, 13, 471, 681, 18, 1916, 12, 2978, 13, 471, 261, 2370, 422, 374, 578, 7586, 422, 7211, 3719, 30, 898, 469, 30, 1301, 273, 805, 1128, 468, 512, 20279, 2427, 4209, 309, 1301, 422, 315, 6185, 6877, 4023, 63, 856, 65, 273, 404, 327, 309, 1301, 422, 315, 1636, 6877, 1002, 883, 468, 4673, 4209, 309, 1301, 422, 315, 8243, 6877, 4023, 63, 856, 65, 273, 404, 3647, 856, 273, 261, 2150, 16, 3150, 13, 309, 603, 71, 11877, 2128, 18, 588, 12, 8243, 856, 4672, 327, 603, 71, 11877, 2128, 63, 8243, 856, 65, 273, 404, 1327, 1301, 422, 315, 17737, 6877, 1342, 1327, 1301, 422, 315, 2978, 6877, 4023, 63, 856, 65, 273, 404, 3770, 856, 273, 261, 2150, 16, 3150, 16, 374, 13, 309, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 1435, 422, 3552, 2074, 6877, 1605, 273, 1605, 10531, 17, 23, 65, 468, 11329, 18734, 2973, 7676, 9806, 35, 309, 4023, 353, 599, 30, 4023, 273, 2618, 498, 273, 261, 2150, 16, 3150, 16, 7586, 13, 468, 19884, 1842, 364, 2975, 648, 309, 4023, 18, 588, 12, 856, 4672, 327, 468, 5167, 326, 3415, 364, 761, 316, 3415, 30, 1301, 16, 1234, 16, 6573, 16, 681, 16, 7211, 273, 761, 309, 261, 3576, 18, 1916, 12, 2150, 13, 471, 14664, 12, 4743, 16, 2 ]
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, 'Failed to raise BuildFailure' assert popen.called assert popen.call_args[0][0] == 'foo' assert popen.call_args[1]['shell'] == True assert popen.call_args[1]['stdout'] == subprocess.PIPE assert popen.call_args[1]['stderr'] == subprocess.PIPE
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, 30925, 18, 2463, 67, 1132, 18, 11241, 18, 896, 18, 2463, 67, 1132, 273, 296, 19068, 4514, 11, 775, 30, 12779, 18, 674, 2668, 11351, 2187, 7477, 33, 5510, 13, 1335, 12779, 18, 3116, 5247, 16, 425, 30, 833, 273, 425, 18, 1968, 1815, 833, 422, 7707, 1676, 2567, 327, 981, 30, 404, 2187, 262, 469, 30, 1815, 1083, 16, 296, 2925, 358, 1002, 3998, 5247, 11, 225, 1815, 30925, 18, 11777, 1815, 30925, 18, 1991, 67, 1968, 63, 20, 6362, 20, 65, 422, 296, 11351, 11, 1815, 30925, 18, 1991, 67, 1968, 63, 21, 23962, 10304, 3546, 422, 1053, 1815, 30925, 18, 1991, 67, 1968, 63, 21, 23962, 10283, 3546, 422, 6652, 18, 27602, 1815, 30925, 18, 1991, 67, 1968, 63, 21, 23962, 11241, 3546, 422, 6652, 18, 882, 16864, 225, 1815, 555, 18, 11777, 1815, 555, 18, 1991, 67, 1968, 422, 261, 2668, 19068, 4514, 2187, 262, 16, 2618, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 30925, 18, 2463, 67, 1132, 18, 11241, 18, 896, 18, 2463, 67, 1132, 273, 296, 19068, 4514, 11, 775, 30, 12779, 18, 674, 2668, 11351, 2187, 7477, 33, 5510, 13, 1335, 12779, 18, 3116, 5247, 16, 425, 30, 833, 273, 425, 18, 1968, 1815, 833, 422, 7707, 1676, 2567, 327, 981, 30, 404, 2187, 262, 469, 30, 1815, 1083, 16, 296, 2925, 358, 1002, 3998, 5247, 11, 225, 1815, 30925, 18, 11777, 1815, 30925, 18, 1991, 67, 1968, 63, 20, 6362, 20, 65, 2 ]
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, 93, 380, 619, 2826, 261, 93, 300, 404, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 93, 380, 619, 2826, 261, 93, 300, 404, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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.RasterCount+1): if datatype != ds.GetRasterBand(band_index).DataType: datatype = gdalconst.GDT_Float32 typecode = GDALTypeCodeToNumericTypeCode( datatype ) if typecode == None: datatype = gdalconst.GDT_Float32 typecode = numpy.float32 array_list = [] for band_index in range(1,ds.RasterCount+1): band_array = BandReadAsArray( ds.GetRasterBand(band_index), xoff, yoff, xsize, ysize) array_list.append( reshape( band_array, [1,ysize,xsize] ) ) return numpy.concatenate( array_list )
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, 273, 3780, 18, 18637, 60, 1225, 309, 677, 1467, 353, 599, 30, 677, 1467, 273, 3780, 18, 18637, 61, 1225, 225, 309, 3780, 18, 18637, 1380, 422, 404, 30, 327, 27601, 1994, 19196, 12, 3780, 18, 967, 18637, 14231, 12, 21, 3631, 619, 3674, 16, 677, 3674, 16, 619, 1467, 16, 677, 1467, 13, 225, 11172, 273, 3780, 18, 967, 18637, 14231, 12, 21, 2934, 6273, 364, 8937, 67, 1615, 316, 1048, 12, 22, 16, 2377, 18, 18637, 1380, 15, 21, 4672, 309, 11172, 480, 3780, 18, 967, 18637, 14231, 12, 12752, 67, 1615, 2934, 6273, 30, 11172, 273, 15551, 287, 10248, 18, 43, 9081, 67, 4723, 1578, 225, 618, 710, 273, 30176, 1013, 15460, 774, 9902, 15460, 12, 11172, 262, 309, 618, 710, 422, 599, 30, 11172, 273, 15551, 287, 10248, 18, 43, 9081, 67, 4723, 1578, 618, 710, 273, 3972, 18, 5659, 1578, 225, 526, 67, 1098, 273, 5378, 364, 8937, 67, 1615, 316, 1048, 12, 21, 16, 2377, 18, 18637, 1380, 15, 21, 4672, 8937, 67, 1126, 273, 27601, 1994, 19196, 12, 3780, 18, 967, 18637, 14231, 12, 12752, 67, 1615, 3631, 619, 3674, 16, 677, 3674, 16, 619, 1467, 16, 677, 1467, 13, 526, 67, 1098, 18, 6923, 12, 3972, 18, 1955, 1273, 12, 8937, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 273, 3780, 18, 18637, 60, 1225, 309, 677, 1467, 353, 599, 30, 677, 1467, 273, 3780, 18, 18637, 61, 1225, 225, 309, 3780, 18, 18637, 1380, 422, 404, 30, 327, 27601, 1994, 19196, 12, 3780, 18, 967, 18637, 14231, 12, 21, 3631, 619, 3674, 16, 677, 3674, 16, 619, 1467, 16, 677, 1467, 13, 225, 11172, 273, 3780, 18, 967, 18637, 14231, 12, 21, 2934, 6273, 364, 8937, 67, 1615, 316, 1048, 12, 22, 16, 2377, 18, 18637, 1380, 15, 21, 4672, 2 ]
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, 18, 428, 93, 18, 10312, 352, 4895, 4131, 4672, 6468, 352, 4895, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 18, 428, 93, 18, 10312, 352, 4895, 4131, 4672, 6468, 352, 4895, 682, 1011, 306, 2603, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 22, 13, 327, 1326, 30857, 1968, 16, 2826, 4333, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 22, 13, 327, 1326, 30857, 1968, 16, 2826, 4333, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"""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, 588, 67, 17312, 67, 892, 67, 1937, 67, 3348, 1435, 225, 309, 9218, 67, 892, 67, 3348, 353, 486, 599, 30, 327, 365, 16186, 892, 972, 63, 9218, 67, 892, 67, 3348, 294, 308, 225, 327, 599, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 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, 588, 67, 17312, 67, 892, 67, 1937, 67, 3348, 1435, 225, 309, 9218, 67, 892, 67, 3348, 353, 486, 599, 30, 327, 365, 16186, 892, 972, 63, 9218, 67, 892, 67, 3348, 294, 308, 225, 327, 599, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 y.isdigit() and m.isdigit() and d.isdigit() : yy = int(y) mm = int(m) dd = int(d) # we catch exceptions here try : toreturn = date(yy,mm,dd) except ValueError: toreturn = None if not toreturn: return no_date else: return RealDate(toreturn)
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, 422, 389, 2932, 29082, 7923, 578, 609, 77, 422, 315, 29082, 6877, 327, 511, 13641, 225, 358, 2463, 273, 599, 998, 329, 340, 273, 5378, 309, 609, 77, 294, 309, 4014, 316, 609, 77, 294, 998, 329, 340, 273, 609, 77, 18, 4939, 2668, 17, 6134, 1327, 2023, 316, 609, 77, 294, 998, 329, 340, 273, 609, 77, 18, 4939, 2668, 2473, 13, 225, 309, 562, 12, 94, 329, 340, 13, 422, 890, 294, 677, 273, 998, 329, 340, 63, 20, 65, 312, 273, 998, 329, 340, 63, 21, 65, 302, 273, 998, 329, 340, 63, 22, 65, 309, 677, 18, 291, 11052, 1435, 471, 312, 18, 291, 11052, 1435, 471, 302, 18, 291, 11052, 1435, 294, 9016, 273, 509, 12, 93, 13, 9740, 273, 509, 12, 81, 13, 6957, 273, 509, 12, 72, 13, 468, 732, 1044, 4798, 2674, 775, 294, 358, 2463, 273, 1509, 12, 6795, 16, 7020, 16, 449, 13, 1335, 2068, 30, 358, 2463, 273, 599, 225, 309, 486, 358, 2463, 30, 327, 1158, 67, 712, 469, 30, 327, 15987, 1626, 12, 88, 479, 20922, 13, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 422, 389, 2932, 29082, 7923, 578, 609, 77, 422, 315, 29082, 6877, 327, 511, 13641, 225, 358, 2463, 273, 599, 998, 329, 340, 273, 5378, 309, 609, 77, 294, 309, 4014, 316, 609, 77, 294, 998, 329, 340, 273, 609, 77, 18, 4939, 2668, 17, 6134, 1327, 2023, 316, 609, 77, 294, 998, 329, 340, 273, 609, 77, 18, 4939, 2668, 2473, 13, 225, 309, 562, 12, 94, 329, 340, 13, 422, 890, 294, 677, 273, 998, 329, 340, 63, 20, 65, 2 ]
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_toolchain})) self.pageContent.toolchainList.addItem(item) toolchains = self.toolchains() toolchains[sel_toolchain] = False self.setToolchains(toolchains)
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, 365, 18, 313, 2932, 24529, 326, 5226, 5639, 6, 3631, 1408, 13, 309, 486, 357, 67, 6738, 5639, 18, 291, 1921, 13332, 761, 273, 2238, 682, 4609, 1180, 12, 1786, 67, 6738, 5639, 13, 761, 18, 542, 751, 12, 23310, 18, 1299, 2996, 16, 1043, 8688, 67, 15747, 18, 6283, 780, 5014, 12590, 6, 803, 6877, 357, 67, 6738, 5639, 31700, 365, 18, 2433, 1350, 18, 6738, 5639, 682, 18, 1289, 1180, 12, 1726, 13, 5226, 23060, 273, 365, 18, 6738, 23060, 1435, 5226, 23060, 63, 1786, 67, 6738, 5639, 65, 273, 1083, 365, 18, 542, 6364, 23060, 12, 6738, 23060, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 365, 18, 313, 2932, 24529, 326, 5226, 5639, 6, 3631, 1408, 13, 309, 486, 357, 67, 6738, 5639, 18, 291, 1921, 13332, 761, 273, 2238, 682, 4609, 1180, 12, 1786, 67, 6738, 5639, 13, 761, 18, 542, 751, 12, 23310, 18, 1299, 2996, 16, 1043, 8688, 67, 15747, 18, 6283, 780, 5014, 12590, 6, 803, 6877, 357, 67, 6738, 5639, 31700, 365, 18, 2433, 1350, 18, 6738, 5639, 682, 18, 1289, 1180, 12, 1726, 13, 5226, 23060, 273, 365, 18, 6738, 23060, 1435, 5226, 2 ]
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] except: # position might duplicate continue # choose someone to mutate ind = pop.individual(random.randint(0, pop.popSize() - 1)) ind.setAllele(1, idx) return True
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, 4886, 16, 1496, 333, 468, 3454, 2537, 15887, 1517, 1026, 6017, 1245, 635, 1245, 6265, 364, 277, 316, 1048, 12, 6858, 4672, 309, 2744, 18, 9188, 1435, 411, 4993, 30, 775, 30, 2067, 273, 1843, 18, 1289, 1333, 77, 12, 16298, 33, 20, 16, 949, 33, 77, 25146, 20, 65, 1335, 30, 468, 1754, 4825, 6751, 1324, 468, 9876, 18626, 358, 15887, 1547, 273, 1843, 18, 22032, 5557, 12, 9188, 18, 7884, 474, 12, 20, 16, 1843, 18, 5120, 1225, 1435, 300, 404, 3719, 1547, 18, 542, 1595, 6516, 12, 21, 16, 2067, 13, 327, 1053, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 4886, 16, 1496, 333, 468, 3454, 2537, 15887, 1517, 1026, 6017, 1245, 635, 1245, 6265, 364, 277, 316, 1048, 12, 6858, 4672, 309, 2744, 18, 9188, 1435, 411, 4993, 30, 775, 30, 2067, 273, 1843, 18, 1289, 1333, 77, 12, 16298, 33, 20, 16, 949, 33, 77, 25146, 20, 65, 1335, 30, 468, 1754, 4825, 6751, 1324, 468, 9876, 18626, 358, 15887, 1547, 273, 1843, 18, 22032, 5557, 12, 9188, 18, 7884, 474, 12, 20, 16, 1843, 18, 5120, 1225, 1435, 300, 404, 3719, 2 ]
"""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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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: print "Cannot import Config file '",sys.argv[1],"' exiting ...." sys.exit(1) UniqueID = '' # Compute Unique ID Number if(len(sys.argv) >= 3): UniqueID += '_' + sys.argv[2] # Variables Structure/Dictionary Vars = {} # SFT time baseline try: Vars['TSFT'] = config.TSFT except: print "TSFT cannot be read" sys.exit(1) # Strength of signal try: Vars['h0'] = config.h0 except: print "h0 cannot be read" sys.exit(1) # Cosine of iota try: Vars['cosi'] = config.cosi except: try: Vars['cosi'] = random.uniform(config.cosi_min,config.cosi_max) except: print "Cannot read in cosi variable" sys.exit(1) if(math.fabs(Vars['cosi']) > 1): print "abs(cosi) > 1 !!!" sys.exit(1) # Initial Phase try: Vars['phi0'] = config.phi0 except: try: Vars['phi0'] = random.uniform(config.phi0_min,config.phi0_max) except: print "Cannot read in phi0 variable" sys.exit(1) # Polarization Angle try: Vars['psi'] = config.psi except: try: Vars['psi'] = random.uniform(config.psi_min,config.psi_max) except: print "Cannot read in psi variable" sys.exit(1) # Number of Dirichlet terms used. try: Vars['Dterms'] = float(config.Dterms) except: print "Dterms cannot be read" sys.exit(1) # Interferometer try: IFOs = config.IFOs IFOs = IFOs.split(' ') NumofIFOs = len(IFOs) Vars['NumofIFOs'] = NumofIFOs Vars['IFO'] = [] for i in range(NumofIFOs): Vars['IFO'].append(IFOs[i]) except: print "IFO cannot be read" sys.exit(1) # Start Time try: t0 = config.t0 t0 = t0.split(' ') if(len(t0) != NumofIFOs): print "Number of starttimes != Number of IFOs" sys.exit(1) Vars['t0'] = [] for i in range(NumofIFOs): Vars['t0'].append(float(t0[i])) except: print "t0 cannot be read" sys.exit(1) # Reference Time in SSB try: Vars['refTime'] = float(config.refTime) refString = ' --refTime ' + str(Vars['refTime']) except: refString = ' ' # Output Directory try: Vars['Out'] = config.Out + UniqueID except: print "Out cannot be read" sys.exit(1) # Ephemeris Directory try: Vars['Ephem'] = config.Ephem except: print "Ephem cannot be read" sys.exit(1) # Ephemeris Year try: Vars['EphemYear'] = config.EphemYear except: print "EphemYear cannot be read" sys.exit(1) # Noise Sh try: Vars['Sh'] = float(config.Sh) except: print "Sh cannot be read" sys.exit(1) # Duration of Analysis try: TSpan = config.TSpan TSpan = TSpan.split(' ') if(len(TSpan) != NumofIFOs): print "Number of TSpans != Number of IFOs" sys.exit(1) Vars['TSpan'] = [] for i in range(NumofIFOs): Vars['TSpan'].append(float(TSpan[i])) except: print "TSpan cannot be read" sys.exit(1) # Number of SFTs to add try: NumSFTs = config.NumSFTs NumSFTs = NumSFTs.split(' ') if(len(NumSFTs) != NumofIFOs): print "Number of starttimes != Number of IFOs" sys.exit(1) Vars['NumSFTs'] = [] for i in range(NumofIFOs): Vars['NumSFTs'].append(int(NumSFTs[i])) except: print "NumSFTs cannot be read" sys.exit(1) # Number of Gaps to add try: NumGaps = config.NumGaps NumGaps = NumGaps.split(' ') if(len(NumGaps) != NumofIFOs): print "Number of starttimes != Number of IFOs" sys.exit(1) Vars['NumGaps'] = [] for i in range(NumofIFOs): Vars['NumGaps'].append(int(NumGaps[i])) except: print "NumGaps cannot be read" sys.exit(1) # Alpha (Right Ascension) try: Vars['Alpha'] = config.Alpha except: try: Vars['Alpha'] = random.uniform(config.Alpha_min,config.Alpha_max) except: print "Cannot read in Alpha variable" sys.exit(1) if(Vars['Alpha'] < 0 or Vars['Alpha'] > 2.0*math.pi): print "Alpha out of bounds !!!" sys.exit(1) # Delta (Declination) try: Vars['Delta'] = config.Delta except: try: Vars['Delta'] = random.uniform(config.Delta_min,config.Delta_max) except: print "Cannot read in Delta variable" sys.exit(1) if(math.fabs(Vars['Delta']) > math.pi/2.0): print "abs(Delta) > pi/2 !!!" sys.exit(1) # Minimum Frequency try: Vars['Fmin'] = config.Fmin except: print "Fmin cannot be read" sys.exit(1) # Band of Analysis try: Vars['Band'] = config.Band except: print "Band cannot be read" sys.exit(1) # Injection Frequency try: Vars['Finj'] = config.Finj except: try: Vars['Finj'] = random.uniform(config.Finj_min,config.Finj_max) except: print "Cannot read in Finj variable" sys.exit(1) if(Vars['Finj'] < 0): print "Finj < 0 !!!" sys.exit(1) # Spindown/ FDOT try: Vars['FDot'] = config.FDot except: try: Vars['FDot'] = random.uniform(config.FDot_min,config.FDot_max) except: print "Cannot read in FDot variable" sys.exit(1) # FDOTBand try: Vars['FDotBand'] = config.FDotBand except: Vars['FDotBand'] = 0 #print "Cannot read in FDot variable" #sys.exit(1) # dFDot try: Vars['dFDot'] = config.dFDot except: Vars['dFDot'] = 10 # Resolution try: Vars['Res'] = config.Res if(Vars['Res'] > 1.0/Vars['TSpan'][0]): print "Resolution too low, set to 1/T" Vars['Res'] = 1.0/Vars['TSpan'][0] if(Vars['Res'] < 0): print "Resolution < 0" sys.exit(1) except: Vars['Res'] = 1.0/Vars['TSpan'][0] current = 0 for i in range(NumofIFOs): if(Vars['TSpan'][i] > Vars['TSpan'][current]): current = i Vars['Res'] = 1.0/Vars['TSpan'][i] # Debug Check try: Vars['debug'] = config.debug except: Vars['debug'] = 1.0 # F Threshold try: Vars['FThres'] = config.FThres except: Vars['FThres'] = 0 # Optional Output Variable from Resamp try: Vars['ResampOutput'] = config.ResampOutput except: Vars['ResampOutput'] = "MyTS" # Optional Use Your Own TimeStampsFile try: Vars['TimeStampsFile'] = config.TimeStampsFile TimeStampsFile_Is_Set = True except: Vars['TimeStampsFile'] = 'TimeStampsFile' + UniqueID TimeStampsFile_Is_Set = False # Print out all the variables (if Debug is on) if(Vars['debug']): print "---------- Configuration Variables --------- " PrintValues(Vars) print "-------------------------------------------- \n \n" # Create the Time Stamp File if(not(TimeStampsFile_Is_Set)): CreateTimeStampFile(Vars,UniqueID) # If running multiple time, delete all the old SFTs if(os.path.exists("./"+Vars['Out'])): try: shutil.rmtree(Vars['Out']) except: print "Could not delete old directory\n" sys.exit(1) try: os.mkdir(Vars['Out']) except: print "Something went wrong creating new directory\n" print "Permission trouble maybe\n" sys.exit(1) # Generate Fake data string for ifo in range(NumofIFOs): FakeDataString = GenFakeDataString(1,Vars,ifo,UniqueID,refString) if(Vars['debug']): print "----------- Makefakedata String ------------" print FakeDataString print "--------------------------------------------\n\n" # Generate the data try: G = commands.getoutput(FakeDataString) os.remove("timestampsFile"+Vars['IFO'][ifo]+UniqueID) except: print "Tried to generate SFTs, failed" sys.exit(1) # Run v2() OutputFileVLoudest = "OutputVLoudest" + UniqueID OutputFileVFstat = "OutputVFstat" + UniqueID startstring = "lalapps_ComputeFStatistic_v2 --outputFstat " + OutputFileVFstat + " --outputLoudest " + OutputFileVLoudest + " -F " + str(Vars['FThres']) + " " endstring = " " + refString V2DataString = GenDataString(startstring,endstring,Vars) if(Vars['debug']): print "----------- V2 String ------------" print V2DataString print "----------------------------------\n\n" print "----------- Running V2 -----------" (status,Voutput) = commands.getstatusoutput(V2DataString) if(status): print "V2 failed, Output was \n\n" print Voutput sys.exit(1) if(Vars['debug']): print "---------- V2 Done ---------------\n\n" # Run Resamp ResampLocation = "/home/ppatel/lalsuite/lalapps/src/pulsar/FDS_isolated/ResamplingFstat/" OutputFileRLoudest = "OutputRLoudest" + UniqueID OutputFileRFstat = "OutputRFstat" + UniqueID startstring = ResampLocation + "lalapps_ComputeFStatistic_resamp --outputFstat " + OutputFileRFstat + " --outputLoudest " + OutputFileRLoudest+ " -F " + str(Vars['FThres']) + " " endstring = " " + refString RDataString = GenDataString(startstring,endstring,Vars) if(Vars['debug']): print "-------- Resamp String -----------" print RDataString print "----------------------------------\n\n" print "--------- Running Resamp ---------" (status,Routput) = commands.getstatusoutput(RDataString) if(status): print "Resamp failed, Output was\n\n" print Routput sys.exit(0) if(Vars['debug']): print "---------- Resamp Done -----------\n\n" if(Vars['debug']): print "---------- Deleting SFT Folder ---------\n\n" try: shutil.rmtree(Vars['Out']) except: print " Could not delete SFT folder \n\n" sys.exit(1) FreqOutput = AnalyzeFreq(OutputFileRFstat,OutputFileVFstat,Vars['Finj'],Vars['Res']) LoudestOutput = AnalyzeLoudest(OutputFileRLoudest,OutputFileVLoudest) os.remove(OutputFileRLoudest) os.remove(OutputFileVLoudest) #os.remove(OutputFileRFstat) #os.remove(OutputFileVFstat) print FreqOutput,LoudestOutput return(0)
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, 1775, 315, 1172, 315, 10858, 353, 3104, 9499, 18, 19485, 63, 20, 6487, 6, 411, 13705, 34, 288, 2278, 3588, 97, 315, 1172, 315, 9500, 310, 1372, 6265, 18460, 2589, 18, 8593, 12, 21, 13, 225, 775, 30, 642, 273, 1001, 5666, 972, 12, 9499, 18, 19485, 63, 21, 19226, 1335, 30, 1172, 315, 4515, 1930, 1903, 585, 19197, 9499, 18, 19485, 63, 21, 6487, 5187, 15702, 1372, 1199, 2589, 18, 8593, 12, 21, 13, 225, 14584, 734, 273, 875, 225, 468, 8155, 14584, 1599, 3588, 309, 12, 1897, 12, 9499, 18, 19485, 13, 1545, 890, 4672, 14584, 734, 1011, 4427, 397, 2589, 18, 19485, 63, 22, 65, 225, 468, 23536, 13348, 19, 10905, 27289, 273, 2618, 225, 468, 348, 4464, 813, 14243, 775, 30, 27289, 3292, 8047, 4464, 3546, 273, 642, 18, 8047, 4464, 1335, 30, 1172, 315, 8047, 4464, 2780, 506, 855, 6, 2589, 18, 8593, 12, 21, 13, 225, 468, 934, 13038, 434, 4277, 775, 30, 27289, 3292, 76, 20, 3546, 273, 642, 18, 76, 20, 1335, 30, 1172, 315, 76, 20, 2780, 506, 855, 6, 2589, 18, 8593, 12, 21, 13, 225, 468, 385, 538, 558, 434, 277, 25441, 775, 30, 27289, 3292, 14445, 77, 3546, 273, 642, 18, 14445, 77, 1335, 30, 775, 30, 27289, 3292, 14445, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 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, 1775, 315, 1172, 315, 10858, 353, 3104, 9499, 18, 19485, 63, 20, 6487, 6, 411, 13705, 34, 288, 2278, 3588, 97, 315, 1172, 315, 9500, 310, 1372, 6265, 18460, 2589, 18, 8593, 12, 21, 13, 225, 775, 30, 642, 273, 1001, 5666, 972, 12, 9499, 18, 19485, 63, 21, 19226, 1335, 30, 1172, 315, 4515, 1930, 1903, 585, 19197, 9499, 18, 19485, 63, 21, 6487, 5187, 15702, 1372, 1199, 2589, 18, 8593, 12, 21, 13, 225, 14584, 734, 273, 875, 225, 468, 8155, 14584, 2 ]
{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, 6789, 434, 365, 603, 271, 64, 15949, 17156, 95, 52, 97, 66, 21, 4713, 15949, 17156, 95, 53, 6792, 8, 18, 225, 8646, 854, 2106, 316, 279, 13162, 646, 31, 2621, 365, 18, 12498, 67, 71, 407, 84, 364, 326, 2379, 434, 13162, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 6789, 434, 365, 603, 271, 64, 15949, 17156, 95, 52, 97, 66, 21, 4713, 15949, 17156, 95, 53, 6792, 8, 18, 225, 8646, 854, 2106, 316, 279, 13162, 646, 31, 2621, 365, 18, 12498, 67, 71, 407, 84, 364, 326, 2379, 434, 13162, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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', test) zc.buildout.testing.install('transaction', test) zc.buildout.testing.install('zc.lockfile', test) zc.buildout.testing.install('zc.recipe.egg', test) zc.buildout.testing.install('zc.recipe.filestorage', test) zc.buildout.testing.install('zdaemon', test) zc.buildout.testing.install('zope.annotation', test) zc.buildout.testing.install('zope.app.appsetup', test) zc.buildout.testing.install('zope.app.publication', test) zc.buildout.testing.install('zope.app.wsgi', test) zc.buildout.testing.install('zope.authentication', test) zc.buildout.testing.install('zope.broken', test) zc.buildout.testing.install('zope.browser', test) zc.buildout.testing.install('zope.cachedescriptors', test) zc.buildout.testing.install('zope.component', test) zc.buildout.testing.install('zope.configuration', test) zc.buildout.testing.install('zope.container', test) zc.buildout.testing.install('zope.copy', test) zc.buildout.testing.install('zope.deferredimport', test) zc.buildout.testing.install('zope.dottedname', test) zc.buildout.testing.install('zope.error', test) zc.buildout.testing.install('zope.event', test) zc.buildout.testing.install('zope.exceptions', test) zc.buildout.testing.install('zope.filerepresentation', test) zc.buildout.testing.install('zope.i18n', test) zc.buildout.testing.install('zope.i18nmessageid', test) zc.buildout.testing.install('zope.interface', test) zc.buildout.testing.install('zope.lifecycleevent', test) zc.buildout.testing.install('zope.location', test) zc.buildout.testing.install('zope.minmax', test) zc.buildout.testing.install('zope.processlifetime', test) zc.buildout.testing.install('zope.proxy', test) zc.buildout.testing.install('zope.publisher', test) zc.buildout.testing.install('zope.schema', test) zc.buildout.testing.install('zope.security', test) zc.buildout.testing.install('zope.session', test) zc.buildout.testing.install('zope.site', test) zc.buildout.testing.install('zope.size', test) zc.buildout.testing.install('zope.testing', test) zc.buildout.testing.install('zope.traversing', test) zc.buildout.testing.install('zope.contenttype', test) zc.buildout.testing.install_develop('z3c.recipe.paster', test)
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, 998, 71, 18, 3510, 659, 18, 3813, 310, 18, 5425, 2668, 52, 14725, 10015, 2187, 1842, 13, 998, 71, 18, 3510, 659, 18, 3813, 310, 18, 5425, 2668, 52, 14725, 3651, 2187, 1842, 13, 998, 71, 18, 3510, 659, 18, 3813, 310, 18, 5425, 2668, 62, 809, 2187, 1842, 13, 998, 71, 18, 3510, 659, 18, 3813, 310, 18, 5425, 2668, 62, 19786, 23, 2187, 1842, 13, 998, 71, 18, 3510, 659, 18, 3813, 310, 18, 5425, 2668, 2074, 12994, 2187, 1842, 13, 998, 71, 18, 3510, 659, 18, 3813, 310, 18, 5425, 2668, 7958, 2187, 1842, 13, 998, 71, 18, 3510, 659, 18, 3813, 310, 18, 5425, 2668, 94, 71, 18, 739, 768, 2187, 1842, 13, 998, 71, 18, 3510, 659, 18, 3813, 310, 18, 5425, 2668, 94, 71, 18, 3927, 3151, 18, 23171, 2187, 1842, 13, 998, 71, 18, 3510, 659, 18, 3813, 310, 18, 5425, 2668, 94, 71, 18, 3927, 3151, 18, 7540, 395, 1531, 2187, 1842, 13, 998, 71, 18, 3510, 659, 18, 3813, 310, 18, 5425, 2668, 94, 21511, 2187, 1842, 13, 998, 71, 18, 3510, 659, 18, 3813, 310, 18, 5425, 2668, 94, 1306, 18, 11495, 2187, 1842, 13, 998, 71, 18, 3510, 659, 18, 3813, 310, 18, 5425, 2668, 94, 1306, 18, 2910, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 998, 71, 18, 3510, 659, 18, 3813, 310, 18, 5425, 2668, 52, 14725, 10015, 2187, 1842, 13, 998, 71, 18, 3510, 659, 18, 3813, 310, 18, 5425, 2668, 52, 14725, 3651, 2187, 1842, 13, 998, 71, 18, 3510, 659, 18, 3813, 310, 18, 5425, 2668, 62, 809, 2187, 1842, 13, 998, 71, 18, 3510, 659, 18, 3813, 310, 18, 5425, 2668, 62, 19786, 23, 2187, 1842, 13, 998, 71, 18, 3510, 659, 18, 3813, 310, 18, 5425, 2668, 2074, 12994, 2187, 1842, 2 ]
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(logname, "w") if f: fprintf(f, "******* new log *******\n") fclose(f)
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, 273, 19193, 67, 81, 9853, 12, 10835, 12, 1969, 13, 397, 1728, 13, 225, 309, 486, 3647, 30, 622, 8593, 12, 15733, 67, 1330, 67, 3771, 13, 3647, 9904, 225, 309, 3089, 30, 741, 30, 2005, 12, 1330, 529, 16, 2213, 87, 9, 3028, 72, 18, 1330, 3113, 1026, 16, 277, 13, 284, 273, 9607, 12, 1330, 529, 16, 315, 86, 7923, 309, 284, 30, 11099, 12, 74, 13, 277, 9904, 1323, 261, 74, 13, 469, 30, 2005, 12, 1330, 529, 16, 2213, 87, 18, 1330, 3113, 1026, 13, 225, 284, 273, 9607, 12, 1330, 529, 16, 315, 91, 7923, 309, 284, 30, 284, 1461, 12, 74, 16, 315, 27243, 394, 613, 380, 11345, 64, 82, 7923, 11099, 12, 74, 13, 282, 2,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, 0, 0, 0, 0, 0 ]
[ 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, 273, 19193, 67, 81, 9853, 12, 10835, 12, 1969, 13, 397, 1728, 13, 225, 309, 486, 3647, 30, 622, 8593, 12, 15733, 67, 1330, 67, 3771, 13, 3647, 9904, 225, 309, 3089, 30, 741, 30, 2005, 12, 1330, 529, 16, 2213, 87, 9, 3028, 72, 18, 1330, 3113, 1026, 16, 277, 13, 284, 273, 9607, 12, 1330, 529, 16, 315, 86, 7923, 309, 284, 30, 11099, 12, 74, 13, 277, 9904, 1323, 261, 74, 13, 469, 30, 2005, 12, 1330, 529, 16, 2213, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.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(impliedTagToken("label", "StartTag")) # XXX Localization ... self.processCharacters( {"type":tokenTypes["Characters"], "data":"This is a searchable index. Insert your search keywords here: "}) attributes = token["data"].copy() #don't really need a copy here I think attributes["name"] = "isindex" self.processStartTag(impliedTagToken("input", "StartTag", attributes = attributes, selfClosing = token["selfClosing"])) self.processEndTag(impliedTagToken("label")) self.processEndTag(impliedTagToken("p")) self.processStartTag(impliedTagToken("hr", "StartTag")) self.processEndTag(impliedTagToken("form"))
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, 30, 327, 365, 18, 2567, 30512, 12, 381, 3110, 1805, 1345, 2932, 687, 3113, 315, 30512, 6, 3719, 365, 18, 2567, 30512, 12, 381, 3110, 1805, 1345, 2932, 7256, 3113, 315, 30512, 6, 3719, 365, 18, 2567, 30512, 12, 381, 3110, 1805, 1345, 2932, 1925, 3113, 315, 30512, 6, 3719, 468, 11329, 3566, 1588, 1372, 365, 18, 2567, 11600, 12, 12528, 723, 6877, 2316, 2016, 9614, 11600, 6, 6487, 315, 892, 15563, 2503, 353, 279, 23721, 770, 18, 8040, 3433, 1623, 7093, 2674, 30, 315, 6792, 1677, 273, 1147, 9614, 892, 6, 8009, 3530, 1435, 468, 19752, 1404, 8654, 1608, 279, 1610, 2674, 467, 15507, 1677, 9614, 529, 11929, 273, 315, 291, 1615, 6, 365, 18, 2567, 30512, 12, 381, 3110, 1805, 1345, 2932, 2630, 3113, 315, 30512, 3113, 1677, 273, 1677, 16, 365, 15745, 273, 1147, 9614, 2890, 15745, 11929, 3719, 365, 18, 2567, 25633, 12, 381, 3110, 1805, 1345, 2932, 1925, 6, 3719, 365, 18, 2567, 25633, 12, 381, 3110, 1805, 1345, 2932, 84, 6, 3719, 365, 18, 2567, 30512, 12, 381, 3110, 1805, 1345, 2932, 7256, 3113, 315, 30512, 6, 3719, 365, 18, 2567, 25633, 12, 381, 3110, 1805, 1345, 2932, 687, 6, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 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, 30, 327, 365, 18, 2567, 30512, 12, 381, 3110, 1805, 1345, 2932, 687, 3113, 315, 30512, 6, 3719, 365, 18, 2567, 30512, 12, 381, 3110, 1805, 1345, 2932, 7256, 3113, 315, 30512, 6, 3719, 365, 18, 2567, 30512, 12, 381, 3110, 1805, 1345, 2932, 1925, 3113, 315, 30512, 6, 3719, 468, 11329, 3566, 1588, 1372, 365, 18, 2567, 11600, 12, 12528, 723, 6877, 2316, 2016, 9614, 11600, 6, 6487, 315, 892, 15563, 2503, 353, 279, 23721, 770, 18, 8040, 3433, 1623, 7093, 2674, 2 ]
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'] != weapon[0]: return ggPlayer = Player(attacker) # Stop Player at last level ? if not int(gg_nade_bonus_mode): # Player on last level ? if getTotalLevels(str(gg_nade_bonus)) == ggPlayer.nadeBonusLevel: es.msg('Player on last level! (mode 0)') return # Multikil check multiKill = getLevelMultiKill(ggPlayer.nadeBonusLevel, str(gg_nade_bonus)) # Checking for multikill level if multiKill > 1: # Adding kill ggPlayer.nadeBonusMulti += 1 # Level up ? if ggPlayer.nadeBonusMulti >= multiKill: # Reset multikill count ggPlayer.nadeBonusMulti = 0 # Level up ggPlayer.nadeBonusLevel += 1 # Give new weapon giveBonus(attacker, True, True) # Add multiKill else: # Add to multikill count ggPlayer.nadeBonusMulti += 1 # Play sound ggPlayer.playsound('multikill') else: # Level up ggPlayer.nadeBonusLevel += 1 # Give new weapon giveBonus(attacker, True, True)
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, 309, 486, 866, 38, 22889, 12, 4558, 484, 264, 4672, 327, 225, 468, 1660, 1450, 279, 732, 28629, 666, 692, 309, 486, 1450, 3218, 28629, 682, 13332, 327, 225, 732, 28629, 273, 336, 3218, 28629, 12, 4558, 484, 264, 13, 5001, 18, 3576, 12, 1814, 28629, 13, 468, 28938, 326, 8673, 598, 326, 324, 22889, 31475, 692, 309, 871, 67, 1401, 3292, 1814, 28629, 3546, 480, 732, 28629, 63, 20, 14542, 327, 225, 29758, 12148, 273, 19185, 12, 4558, 484, 264, 13, 225, 468, 5131, 19185, 622, 1142, 1801, 692, 309, 486, 509, 12, 14253, 67, 82, 2486, 67, 18688, 407, 67, 3188, 4672, 225, 468, 19185, 603, 1142, 1801, 692, 309, 12831, 12240, 12, 701, 12, 14253, 67, 82, 2486, 67, 18688, 407, 3719, 422, 29758, 12148, 18, 82, 2486, 38, 22889, 2355, 30, 327, 225, 468, 7778, 1766, 330, 866, 3309, 19045, 273, 17236, 5002, 19045, 12, 14253, 12148, 18, 82, 2486, 38, 22889, 2355, 16, 609, 12, 14253, 67, 82, 2486, 67, 18688, 407, 3719, 225, 468, 24471, 364, 1778, 1766, 737, 1801, 309, 3309, 19045, 405, 404, 30, 225, 468, 21240, 8673, 29758, 12148, 18, 82, 2486, 38, 22889, 5002, 1011, 404, 225, 468, 4557, 731, 692, 309, 29758, 12148, 18, 82, 2486, 38, 22889, 5002, 1545, 3309, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 309, 486, 866, 38, 22889, 12, 4558, 484, 264, 4672, 327, 225, 468, 1660, 1450, 279, 732, 28629, 666, 692, 309, 486, 1450, 3218, 28629, 682, 13332, 327, 225, 732, 28629, 273, 336, 3218, 28629, 12, 4558, 484, 264, 13, 5001, 18, 3576, 12, 1814, 28629, 13, 468, 28938, 326, 8673, 598, 326, 324, 22889, 31475, 692, 309, 871, 67, 1401, 3292, 1814, 28629, 3546, 480, 732, 28629, 63, 20, 14542, 327, 225, 29758, 12148, 273, 19185, 12, 4558, 484, 264, 13, 225, 468, 2 ]
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, 67, 3188, 16, 596, 33, 659, 63, 20, 6487, 720, 6358, 33, 2890, 18, 1717, 6358, 16, 6374, 67, 6081, 67, 4867, 33, 2890, 18, 20300, 67, 6081, 67, 20701, 16, 6374, 67, 79, 8865, 67, 4867, 33, 2890, 18, 20300, 67, 79, 8865, 67, 20701, 16, 24579, 67, 7989, 33, 2890, 18, 20300, 67, 79, 8865, 67, 7989, 67, 3669, 16, 3988, 33, 20, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 67, 3188, 16, 596, 33, 659, 63, 20, 6487, 720, 6358, 33, 2890, 18, 1717, 6358, 16, 6374, 67, 6081, 67, 4867, 33, 2890, 18, 20300, 67, 6081, 67, 20701, 16, 6374, 67, 79, 8865, 67, 4867, 33, 2890, 18, 20300, 67, 79, 8865, 67, 20701, 16, 24579, 67, 7989, 33, 2890, 18, 20300, 67, 79, 8865, 67, 7989, 67, 3669, 16, 3988, 33, 20, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 350, 65, 273, 1719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 350, 65, 273, 1719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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.direct.dr.mouseX, base.direct.dr.mouseY) #iRay.collideWithBitMask(1) iRay.collideWithBitMask(BitMask32.bit(21)) iRay.ct.traverse(base.direct.grid)
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, 1767, 471, 64, 1026, 18, 7205, 18, 26426, 18, 17994, 1435, 480, 296, 10422, 84, 4278, 468, 752, 14961, 628, 326, 10836, 358, 5966, 890, 72, 1754, 277, 54, 528, 273, 12977, 54, 528, 12, 1969, 18, 7205, 18, 26426, 13, 277, 54, 528, 18, 12910, 3585, 18, 542, 1265, 48, 773, 12, 1969, 18, 7205, 18, 20133, 907, 16, 1026, 18, 7205, 18, 3069, 18, 11697, 60, 16, 1026, 18, 7205, 18, 3069, 18, 11697, 61, 13, 468, 77, 54, 528, 18, 1293, 8130, 1190, 5775, 5796, 12, 21, 13, 277, 54, 528, 18, 1293, 8130, 1190, 5775, 5796, 12, 5775, 5796, 1578, 18, 3682, 12, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 1767, 471, 64, 1026, 18, 7205, 18, 26426, 18, 17994, 1435, 480, 296, 10422, 84, 4278, 468, 752, 14961, 628, 326, 10836, 358, 5966, 890, 72, 1754, 277, 54, 528, 273, 12977, 54, 528, 12, 1969, 18, 7205, 18, 26426, 13, 277, 54, 528, 18, 12910, 3585, 18, 542, 1265, 48, 773, 12, 1969, 18, 7205, 18, 20133, 907, 16, 1026, 18, 7205, 18, 3069, 18, 11697, 60, 16, 1026, 18, 7205, 18, 3069, 18, 11697, 61, 13, 468, 77, 54, 528, 18, 1293, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def 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 satisfies $U(a,b,x) \sim x^{-a}$, as $x\rightarrow \infty$, and is sometimes denoted \verb|x^{-a}2_F_0(a,1+a-b,-1/x)|. This is not the same as Kummer's $M$-hypergeometric function, denoted sometimes as \verb|_1F_1(alpha,beta,x)|, though it satisfies the same DE that $U$ does. WARNING: In the literature, both are called "Kummer confluent hypergeometric" functions. EXAMPLES: sage: hypergeometric_U(1,1,1,"scipy") 0.596347362323... sage: hypergeometric_U(1,1,1) 0.59634736232319... sage: hypergeometric_U(1,1,1,"pari",70) 0.59634736232319407434... """ if alg=="scipy": import scipy.special ans = str(scipy.special.hyperu(float(alpha),float(beta),float(x))) ans = ans.replace("(","") ans = ans.replace(")","") ans = ans.replace("j","*I") return sage_eval(ans) ## For commented out code below, ## f = lambda x: hypergeometric_U(1,1,x) ## P = plot(f,0.1,1) ## seems to hang. I don't know why. from sage.libs.pari.all import pari from sage.interfaces.gp import Gp,gp R,a = _setup(prec) #b = R(pari(alpha).hyperu(beta,x)) #pari.set_real_precision(a) #return b #above has weird bug ans = gp.eval("hyperu(%s,%s,%s)"%(alpha,beta,x)) return R(ans)
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, 16, 5758, 16, 92, 13, 445, 18, 20720, 16, 11989, 273, 315, 1017, 9126, 6, 848, 506, 1399, 18, 225, 1021, 2195, 80, 10744, 9512, 10049, 1591, 445, 271, 93, 273, 587, 12, 69, 16, 70, 16, 92, 21877, 353, 2553, 358, 506, 326, 6959, 358, 1475, 379, 6592, 1807, 15221, 2001, 15778, 225, 521, 63, 7668, 6309, 397, 261, 70, 17, 92, 13, 93, 11, 300, 26179, 273, 374, 18, 521, 65, 1220, 17917, 271, 57, 12, 69, 16, 70, 16, 92, 13, 521, 9812, 619, 66, 95, 17, 69, 22496, 16, 487, 271, 92, 64, 4083, 7815, 521, 267, 1222, 93, 8, 16, 471, 353, 16594, 5545, 16474, 521, 16629, 96, 92, 66, 95, 17, 69, 97, 22, 67, 42, 67, 20, 12, 69, 16, 21, 15, 69, 17, 70, 16, 17, 21, 19, 92, 14047, 18, 1220, 353, 486, 326, 1967, 487, 1475, 379, 6592, 1807, 271, 49, 8, 17, 17203, 10049, 1591, 445, 16, 5545, 16474, 16594, 487, 521, 16629, 96, 67, 21, 42, 67, 21, 12, 5429, 16, 5758, 16, 92, 14047, 16, 11376, 518, 17917, 326, 1967, 2030, 716, 271, 57, 8, 1552, 18, 225, 9744, 30, 657, 326, 328, 2165, 1231, 16, 3937, 854, 2566, 315, 47, 379, 6592, 2195, 80, 10744, 9512, 10049, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 16, 5758, 16, 92, 13, 445, 18, 20720, 16, 11989, 273, 315, 1017, 9126, 6, 848, 506, 1399, 18, 225, 1021, 2195, 80, 10744, 9512, 10049, 1591, 445, 271, 93, 273, 587, 12, 69, 16, 70, 16, 92, 21877, 353, 2553, 358, 506, 326, 6959, 358, 1475, 379, 6592, 1807, 15221, 2001, 15778, 225, 521, 63, 7668, 6309, 397, 261, 70, 17, 92, 13, 93, 11, 300, 26179, 273, 374, 18, 521, 65, 1220, 17917, 271, 57, 12, 69, 16, 70, 16, 92, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def 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, 261, 7496, 67, 529, 63, 451, 351, 2152, 6487, 2898, 2091, 13, 327, 272, 18, 5693, 12, 2819, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 261, 7496, 67, 529, 63, 451, 351, 2152, 6487, 2898, 2091, 13, 327, 272, 18, 5693, 12, 2819, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 365, 18, 5112, 63, 20, 65, 2145, 273, 3859, 12, 2890, 18, 5112, 63, 21, 6487, 296, 18288, 67, 529, 6134, 521, 471, 365, 18, 5112, 63, 21, 8009, 18288, 67, 529, 1435, 521, 578, 365, 18, 5112, 63, 21, 65, 327, 7751, 9, 87, 738, 87, 738, 87, 2225, 738, 261, 4482, 16, 365, 18, 915, 16, 2145, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 365, 18, 5112, 63, 20, 65, 2145, 273, 3859, 12, 2890, 18, 5112, 63, 21, 6487, 296, 18288, 67, 529, 6134, 521, 471, 365, 18, 5112, 63, 21, 8009, 18288, 67, 529, 1435, 521, 578, 365, 18, 5112, 63, 21, 65, 327, 7751, 9, 87, 738, 87, 738, 87, 2225, 738, 261, 4482, 16, 365, 18, 915, 16, 2145, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 18, 896, 67, 3548, 67, 869, 67, 14068, 16604, 1435, 469, 30, 365, 18, 896, 67, 3548, 67, 869, 67, 9339, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 18, 896, 67, 3548, 67, 869, 67, 14068, 16604, 1435, 469, 30, 365, 18, 896, 67, 3548, 67, 869, 67, 9339, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 1240, 28693, 30, 306, 1289, 19, 1717, 1575, 16, 302, 1812, 533, 16, 563, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 1240, 28693, 30, 306, 1289, 19, 1717, 1575, 16, 302, 1812, 533, 16, 563, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 18, 19485, 63, 21, 30, 6487, 64, 365, 18, 12749, 67, 1098, 16, 365, 18, 2692, 67, 1098, 17211, 2879, 33, 2890, 18, 2620, 67, 14723, 578, 599, 13, 1045, 67, 2493, 67, 2844, 12, 2890, 18, 4952, 16, 1729, 67, 3459, 16, 365, 18, 12749, 67, 1098, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 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, 18, 19485, 63, 21, 30, 6487, 64, 365, 18, 12749, 67, 1098, 16, 365, 18, 2692, 67, 1098, 17211, 2879, 33, 2890, 18, 2620, 67, 14723, 578, 599, 13, 1045, 67, 2493, 67, 2844, 12, 2890, 18, 4952, 16, 1729, 67, 3459, 16, 365, 18, 12749, 67, 1098, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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.', 1) raise SystemExit(1) logStatusMsg(u"writing daemonInfo", 5) try: codecs.open( os.path.join(getConfig()['global']['workingDir'], getConfig()['global']['daemonInfo']), 'w', 'utf-8').write(unicodeC(os.getpid())) except IOError, m: logStatusMsg( unicodeC(m) + os.linesep + u"Could not write to, or not set, daemonInfo", 1 ) sharedData = getSharedData() if not _runOnce: _runOnce = getConfig()['global']['runOnce'] while True: try: sharedData.scanning = True logStatusMsg( u"[Waking up] %s" % time.asctime() , 4) startTime = time.time() run() logStatusMsg( u"Processing took %d seconds" % (time.time() - startTime) , 4) except Warning, message: logStatusMsg( u"Warning: %s" % unicodeC(message), 1 ) except Fatal, message: logStatusMsg( u"Fatal: %s" % unicodeC(message), 1 ) sharedData.scanning = False getSaved().save() getSaved().unlock() raise SystemExit except Exception, m: logStatusMsg( u"Unknown Error: %s" % unicodeC(m), 1, 0) # to send this to logfile or not...? raise SystemExit sharedData.scanning = False if _runOnce: logStatusMsg( u"[Complete] %s" % time.asctime() , 4) break logStatusMsg( u"[Sleeping] %s" % time.asctime() , 4) elapsed = time.time() - getSaved().lastChecked #checkSleep has a 10 second resolution, let's sleep for 9, just to be on the safe side time.sleep(9) if getConfig()['global']['scanMins'] * 60 < time.time() - getSaved().lastChecked: checkSleep ( getConfig()['global']['scanMins'] * 60 - elapsed ) else: checkSleep( getConfig()['global']['scanMins'] * 60 )
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, 11089, 1435, 480, 1140, 18, 803, 18, 7688, 803, 12, 4367, 1435, 3292, 6347, 21712, 20478, 1621, 3546, 262, 30, 1140, 18, 343, 1214, 12, 588, 809, 1435, 3292, 6347, 21712, 20478, 1621, 19486, 309, 19858, 1435, 471, 1140, 18, 529, 480, 296, 496, 4278, 613, 1482, 3332, 2668, 31211, 40, 749, 353, 1818, 3549, 18, 15702, 1093, 16, 404, 13, 1002, 25454, 12, 21, 13, 613, 1482, 3332, 12, 89, 6, 14345, 8131, 966, 3113, 1381, 13, 775, 30, 17437, 18, 3190, 12, 1140, 18, 803, 18, 5701, 12, 588, 809, 1435, 3292, 6347, 21712, 20478, 1621, 17337, 4367, 1435, 3292, 6347, 21712, 21511, 966, 3546, 3631, 296, 91, 2187, 296, 3158, 17, 28, 16063, 2626, 12, 9124, 39, 12, 538, 18, 588, 6610, 1435, 3719, 1335, 8340, 16, 312, 30, 613, 1482, 3332, 12, 5252, 39, 12, 81, 13, 397, 1140, 18, 3548, 881, 397, 582, 6, 4445, 486, 1045, 358, 16, 578, 486, 444, 16, 8131, 966, 3113, 404, 262, 5116, 751, 273, 23427, 751, 1435, 309, 486, 389, 2681, 12212, 30, 389, 2681, 12212, 273, 4367, 1435, 3292, 6347, 21712, 2681, 12212, 3546, 1323, 1053, 30, 775, 30, 5116, 751, 18, 1017, 10903, 273, 1053, 613, 1482, 3332, 12, 582, 6, 63, 59, 6159, 731, 65, 738, 87, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 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, 11089, 1435, 480, 1140, 18, 803, 18, 7688, 803, 12, 4367, 1435, 3292, 6347, 21712, 20478, 1621, 3546, 262, 30, 1140, 18, 343, 1214, 12, 588, 809, 1435, 3292, 6347, 21712, 20478, 1621, 19486, 309, 19858, 1435, 471, 1140, 18, 529, 480, 296, 496, 4278, 613, 1482, 3332, 2668, 31211, 40, 749, 353, 1818, 3549, 18, 15702, 1093, 16, 404, 13, 1002, 25454, 12, 21, 13, 613, 1482, 3332, 12, 89, 6, 14345, 8131, 966, 3113, 1381, 13, 775, 30, 17437, 18, 3190, 12, 2 ]
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, 15639, 1021, 729, 353, 486, 316, 333, 7895, 67, 5577, 1427, 732, 336, 599, 309, 365, 18, 588, 1299, 7675, 7774, 353, 599, 30, 365, 18, 588, 1299, 7675, 7774, 33, 2668,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 15639, 1021, 729, 353, 486, 316, 333, 7895, 67, 5577, 1427, 732, 336, 599, 309, 365, 18, 588, 1299, 7675, 7774, 353, 599, 30, 365, 18, 588, 1299, 7675, 7774, 33, 2668, 4419, 2187, 13, 4900, 33, 2890, 18, 588, 1299, 7675, 588, 6898, 1435, 327, 4900, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def 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 = Word('121') sage: s = w.factor_set() sage: sorted(s) [word: , word: 1, word: 12, word: 121, word: 2, word: 21] :: sage: w = Word('1213121') sage: for i in range(w.length()): sorted(w.factor_set(i)) [word: ] [word: 1, word: 2, word: 3] [word: 12, word: 13, word: 21, word: 31] [word: 121, word: 131, word: 213, word: 312] [word: 1213, word: 1312, word: 2131, word: 3121] [word: 12131, word: 13121, word: 21312] [word: 121312, word: 213121] :: sage: w = Word([1,2,1,2,3]) sage: s = w.factor_set() sage: sorted(s)
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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(Engineer.name=='foo') """ return self.operate(PropComparator.of_type_op, class_)
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, 2113, 69, 11799, 18, 225, 843, 18, 5701, 12, 12627, 18, 351, 2817, 25521, 18, 792, 67, 723, 12, 4410, 264, 13, 2934, 1695, 1034, 12, 4410, 264, 18, 529, 18920, 11351, 6134, 225, 521, 1106, 67, 279, 667, 578, 5815, 11193, 716, 11498, 903, 506, 5314, 333, 2923, 10177, 18, 282, 3536, 225, 327, 365, 18, 4063, 340, 12, 4658, 5559,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 2113, 69, 11799, 18, 225, 843, 18, 5701, 12, 12627, 18, 351, 2817, 25521, 18, 792, 67, 723, 12, 4410, 264, 13, 2934, 1695, 1034, 12, 4410, 264, 18, 529, 18920, 11351, 6134, 225, 521, 1106, 67, 279, 667, 578, 5815, 11193, 716, 11498, 903, 506, 5314, 333, 2923, 10177, 18, 282, 3536, 225, 327, 365, 18, 4063, 340, 12, 4658, 5559, 18, 792, 67, 723, 67, 556, 16, 667, 67, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 12, 280, 726, 18, 2704, 3901, 350, 9334, 578, 726, 18, 4723, 3092, 2932, 4865, 6, 3719, 501, 4741, 273, 501, 18, 4025, 12, 2704, 3748, 13, 468, 8830, 501, 501, 7951, 273, 501, 4741, 18, 4025, 12, 2704, 3748, 13, 468, 6385, 1686, 903, 506, 4041, 316, 333, 733, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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}{0em}\n')
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, 3292, 1369, 2629, 3546, 273, 453, 793, 7119, 5931, 87, 18, 1369, 2629, 309, 1549, 12, 2159, 18, 2938, 16, 2199, 18, 1369, 67, 2629, 4672, 365, 18, 3432, 18, 6923, 2668, 1695, 1726, 8526, 64, 82, 11, 3718, 10086, 95, 16214, 1369, 2629, 8637, 1695, 16214, 1369, 2629, 9355, 6280, 82, 6134, 469, 30, 365, 18, 3432, 18, 6923, 2668, 64, 82, 1695, 10086, 95, 16214, 1369, 2629, 8637, 20, 351, 6280, 82, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 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, 3292, 1369, 2629, 3546, 273, 453, 793, 7119, 5931, 87, 18, 1369, 2629, 309, 1549, 12, 2159, 18, 2938, 16, 2199, 18, 1369, 67, 2629, 4672, 365, 18, 3432, 18, 6923, 2668, 1695, 1726, 8526, 64, 82, 11, 3718, 10086, 95, 16214, 1369, 2629, 8637, 1695, 16214, 1369, 2629, 9355, 6280, 82, 6134, 469, 30, 365, 18, 3432, 18, 6923, 2668, 64, 82, 1695, 10086, 95, 16214, 1369, 2629, 8637, 20, 351, 6280, 82, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, %(sec)d sec") % vars() else: text = _("%(min)d min, %(sec)d sec") % vars() self.setCaption(self.captionTitle + _(" (%(value).2f%% complete, remaining time: %(text)s)") % vars()) else: self.setCaption(self.captionTitle + " (0% complete)" ) if self.progressBarHandler: self.progressBarHandler(self, value) qApp.processEvents()
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, 18, 20, 19, 5659, 12, 1132, 13, 4463, 273, 943, 12, 4963, 300, 3122, 16, 374, 13, 366, 273, 509, 12, 17956, 19, 5718, 713, 13, 1131, 273, 509, 12443, 17956, 300, 366, 14, 5718, 713, 13176, 4848, 13, 1428, 273, 509, 12, 17956, 300, 366, 14, 5718, 713, 300, 1131, 14, 4848, 13, 309, 366, 405, 374, 30, 977, 273, 389, 2932, 17105, 76, 13, 72, 366, 16, 8975, 1154, 13, 72, 1131, 16, 8975, 3321, 13, 72, 1428, 7923, 738, 4153, 1435, 469, 30, 977, 273, 22061, 1154, 13, 72, 1131, 16, 8975, 3321, 13, 72, 1428, 6, 738, 4153, 1435, 365, 18, 542, 21158, 12, 2890, 18, 15386, 4247, 397, 315, 6142, 12, 1132, 2934, 22, 74, 11438, 3912, 16, 4463, 813, 30, 8975, 955, 13, 87, 2225, 738, 4153, 10756, 469, 30, 365, 18, 542, 21158, 12, 2890, 18, 15386, 4247, 397, 315, 261, 20, 9, 3912, 2225, 262, 309, 365, 18, 8298, 5190, 1503, 30, 365, 18, 8298, 5190, 1503, 12, 2890, 16, 460, 13, 1043, 3371, 18, 2567, 3783, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 18, 20, 19, 5659, 12, 1132, 13, 4463, 273, 943, 12, 4963, 300, 3122, 16, 374, 13, 366, 273, 509, 12, 17956, 19, 5718, 713, 13, 1131, 273, 509, 12443, 17956, 300, 366, 14, 5718, 713, 13176, 4848, 13, 1428, 273, 509, 12, 17956, 300, 366, 14, 5718, 713, 300, 1131, 14, 4848, 13, 309, 366, 405, 374, 30, 977, 273, 389, 2932, 17105, 76, 13, 72, 366, 16, 8975, 1154, 13, 72, 1131, 16, 8975, 3321, 13, 72, 1428, 7923, 738, 4153, 2 ]
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, filename)
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, 15780, 273, 365, 18, 15780, 397, 404, 2362, 273, 533, 18, 4939, 12, 3168, 16, 1548, 82, 7923, 4739, 557, 807, 18, 2493, 63, 3459, 65, 273, 562, 12, 3168, 27921, 21, 16, 374, 16, 2362, 16, 1544, 365, 18, 10161, 273, 374, 327, 5294, 3535, 30010, 18, 2681, 3168, 12, 2890, 16, 1084, 16, 1544, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 15780, 273, 365, 18, 15780, 397, 404, 2362, 273, 533, 18, 4939, 12, 3168, 16, 1548, 82, 7923, 4739, 557, 807, 18, 2493, 63, 3459, 65, 273, 562, 12, 3168, 27921, 21, 16, 374, 16, 2362, 16, 1544, 365, 18, 10161, 273, 374, 327, 5294, 3535, 30010, 18, 2681, 3168, 12, 2890, 16, 1084, 16, 1544, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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': runChandler = 'RunChandler.bat' else: runChandler = 'RunChandler' if releaseMode == 'debug': runChandler = os.path.join(chandlerDir, 'debug', runChandler) elif releaseMode == 'release': runChandler = os.path.join(chandlerDir, 'release', runChandler) os.chdir(chandlerDir) try: print "Running %s Functional Tests" % releaseMode log.write(separator) log.write("Running %s Functional Tests ...\n" % releaseMode) try: os.remove(chandlerLog) except OSError: pass args = [runChandler, '--create', '--nocatch', '--profileDir=%s' % logDir, '--parcelPath=tools/QATestScripts/DataFiles', '--scriptTimeout=600', '--scriptFile=tools/cats/Functional/FunctionalTestSuite.py', '--chandlerTestLogfile=FunctionalTestSuite.log', #new framework defaults to no log without this '--chandlerTestDebug=1', '--chandlerTestMask=0',] outputList = hardhatutil.executeCommandReturnOutput(args) hardhatutil.dumpOutputList(outputList, log) dumpTestLogs(log, chandlerLog, FuncTestLog) for line in outputList: if line.find('#TINDERBOX# Status = FAIL') >= 0 or \ line.find('#TINDERBOX# Status = UNCHECKED') >= 0: print "functional tests failed" log.write("***Error during functional tests***\n") forceBuildNextCycle(log, workingDir) return "test_failed" except hardhatutil.ExternalCommandErrorWithOutputList, e: dumpTestLogs(log, chandlerLog, FuncTestLog, e.args) print "functional tests failed", e log.write("***Error during functional tests***\n") forceBuildNextCycle(log, workingDir) return "test_failed" except Exception, e: print "functional tests failed", e log.write("***Error during functional tests***\n") log.write("Exception:\n") log.write(str(e) + "\n") forceBuildNextCycle(log, workingDir) return "test_failed" else: log.write("Functional tests exit code=0\n") return "success"
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, 273, 1140, 18, 803, 18, 5701, 12, 343, 464, 749, 1621, 16, 296, 3813, 67, 5040, 6134, 462, 464, 749, 1343, 273, 1140, 18, 803, 18, 5701, 12, 1330, 1621, 16, 1377, 296, 343, 464, 749, 18, 1330, 6134, 6165, 4709, 1343, 273, 1140, 18, 803, 18, 5701, 12, 1330, 1621, 16, 1377, 296, 2083, 287, 4709, 13587, 18, 1330, 6134, 225, 309, 1361, 3074, 3292, 538, 3546, 422, 296, 8082, 4278, 1086, 782, 464, 749, 273, 296, 1997, 782, 464, 749, 18, 28260, 11, 469, 30, 1086, 782, 464, 749, 273, 296, 1997, 782, 464, 749, 11, 225, 309, 3992, 2309, 422, 296, 4148, 4278, 1086, 782, 464, 749, 273, 1140, 18, 803, 18, 5701, 12, 343, 464, 749, 1621, 16, 296, 4148, 2187, 1086, 782, 464, 749, 13, 1327, 3992, 2309, 422, 296, 9340, 4278, 1086, 782, 464, 749, 273, 1140, 18, 803, 18, 5701, 12, 343, 464, 749, 1621, 16, 296, 9340, 2187, 1086, 782, 464, 749, 13, 225, 1140, 18, 343, 1214, 12, 343, 464, 749, 1621, 13, 225, 775, 30, 1172, 315, 7051, 738, 87, 4284, 287, 7766, 87, 6, 738, 3992, 2309, 613, 18, 2626, 12, 11287, 13, 613, 18, 2626, 2932, 7051, 738, 87, 4284, 287, 7766, 87, 1372, 64, 82, 6, 738, 3992, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 273, 1140, 18, 803, 18, 5701, 12, 343, 464, 749, 1621, 16, 296, 3813, 67, 5040, 6134, 462, 464, 749, 1343, 273, 1140, 18, 803, 18, 5701, 12, 1330, 1621, 16, 1377, 296, 343, 464, 749, 18, 1330, 6134, 6165, 4709, 1343, 273, 1140, 18, 803, 18, 5701, 12, 1330, 1621, 16, 1377, 296, 2083, 287, 4709, 13587, 18, 1330, 6134, 225, 309, 1361, 3074, 3292, 538, 3546, 422, 296, 8082, 4278, 1086, 782, 464, 749, 273, 296, 1997, 782, 464, 749, 18, 2 ]
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 docstrings[name] = value #print 'got',name if re.match(r'static PyMethodDef SwigMethods', line): outfile.write(line) #print 'here' while 1: line = infile.readline() m = re.match('[ \t]+\{[ \t]\(char \*\)"([a-zA-Z_0-9]+)"(.*)\},', line) if not m: break func = m.group(1) #print 'look for',func if func in docstrings.keys(): line = '\t{ (char *)"%s"%s, %s },\n' % (func, m.group(2), docstrings[func]) outfile.write(line) outfile.write(line)
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, 3797, 6134, 8756, 273, 1696, 12, 9499, 18, 19485, 63, 22, 6487, 296, 6046, 6134, 225, 997, 10219, 273, 2618, 225, 1323, 404, 30, 980, 273, 14568, 18, 896, 1369, 1435, 309, 486, 980, 30, 898, 312, 273, 283, 18, 1916, 12, 86, 11, 7, 11255, 389, 2434, 67, 3816, 69, 17, 9600, 17, 62, 67, 20, 17, 29, 7941, 2187, 980, 13, 309, 312, 30, 508, 273, 312, 18, 1655, 12, 21, 13, 460, 273, 2070, 2434, 4623, 15, 529, 997, 10219, 63, 529, 65, 273, 460, 468, 1188, 296, 13212, 2187, 529, 225, 309, 283, 18, 1916, 12, 86, 1807, 88, 2126, 4707, 1305, 3262, 5434, 360, 4712, 2187, 980, 4672, 8756, 18, 2626, 12, 1369, 13, 468, 1188, 296, 14852, 11, 1323, 404, 30, 980, 273, 14568, 18, 896, 1369, 1435, 312, 273, 283, 18, 1916, 2668, 63, 521, 88, 26446, 95, 63, 521, 88, 13944, 12, 3001, 521, 12174, 2225, 3816, 69, 17, 9600, 17, 62, 67, 20, 17, 29, 3737, 2225, 27816, 16, 3206, 521, 5779, 2187, 980, 13, 309, 486, 312, 30, 898, 1326, 273, 312, 18, 1655, 12, 21, 13, 468, 1188, 296, 7330, 364, 2187, 644, 309, 1326, 316, 997, 10219, 18, 2452, 13332, 980, 273, 2337, 88, 95, 261, 3001, 380, 2225, 9, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 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, 3797, 6134, 8756, 273, 1696, 12, 9499, 18, 19485, 63, 22, 6487, 296, 6046, 6134, 225, 997, 10219, 273, 2618, 225, 1323, 404, 30, 980, 273, 14568, 18, 896, 1369, 1435, 309, 486, 980, 30, 898, 312, 273, 283, 18, 1916, 12, 86, 11, 7, 11255, 389, 2434, 67, 3816, 69, 17, 9600, 17, 62, 67, 20, 17, 29, 7941, 2187, 980, 13, 309, 312, 30, 508, 273, 312, 18, 1655, 12, 21, 13, 460, 273, 2070, 2434, 4623, 15, 529, 997, 10219, 63, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self._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, 10756, 3238, 18, 2626, 12, 701, 13, 1071, 18, 2626, 12, 701, 13, 2, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10756, 3238, 18, 2626, 12, 701, 13, 1071, 18, 2626, 12, 701, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 738, 87, 6, 738, 1041, 262, 1339, 1318, 18, 542, 7416, 1114, 12, 1041, 262, 309, 296, 3693, 67, 30269, 654, 11, 316, 590, 18, 28684, 30, 327, 3136, 67, 869, 12, 590, 18, 28684, 63, 296, 3693, 67, 30269, 654, 11, 308, 262, 469, 30, 327, 3136, 67, 869, 12, 9246, 18, 718, 67, 1884, 12, 4016, 262, 262, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 738, 87, 6, 738, 1041, 262, 1339, 1318, 18, 542, 7416, 1114, 12, 1041, 262, 309, 296, 3693, 67, 30269, 654, 11, 316, 590, 18, 28684, 30, 327, 3136, 67, 869, 12, 590, 18, 28684, 63, 296, 3693, 67, 30269, 654, 11, 308, 262, 469, 30, 327, 3136, 67, 869, 12, 9246, 18, 718, 67, 1884, 12, 4016, 262, 262, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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(): if key == "main": #mainconf = conf.vars["main"] #if mainconf.has_key("distroverpkg"): # distroverpkg = [mainconf["distroverpkg"]] continue sec = conf[key] if sec.get("enabled") == "0": continue baseurls = sec.get("baseurl", []) excludes = sec.get("exclude", "") # If we have mirrorlist grab it, read it and add the extended # lines to our baseurls, just like yum does. if sec.has_key("mirrorlist"): for mlist in sec["mirrorlist"]: mlist = conf.extendValue(mlist) if verbose > 2: print "Getting mirrorlist from %s." % mlist fname = cacheLocal([mlist], "mirrorlist", key, 1, verbose, nofilename=1) lines = [] if fname: lines = open(fname).readlines() for l in lines: l = l.replace("$ARCH", "$basearch")[:-1] if l: baseurls.append(conf.extendValue(l)) if not baseurls: print "%s:" % key, "No url for this section in conf file." return None repo = RpmRepo(baseurls, excludes, verbose, key, readsrc) repo.read() if not readdebug: repo.delDebuginfo() if readcompsfile: repo.compsfile = cacheLocal(baseurls, "/repodata/comps.xml", key + "/repo") repos.append(repo) return repos
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, 2720, 316, 342, 14175, 19, 93, 379, 18, 3923, 642, 1390, 18, 13686, 273, 5378, 364, 276, 316, 642, 2354, 30, 2195, 273, 1624, 379, 3976, 12, 11369, 16, 3992, 502, 16, 6637, 16, 3998, 12269, 12818, 12, 991, 3631, 1361, 3085, 16, 276, 16, 13686, 8291, 13, 468, 1188, 2195, 18, 4699, 364, 498, 316, 2195, 18, 4699, 18, 2452, 13332, 309, 498, 422, 315, 5254, 6877, 468, 5254, 3923, 273, 2195, 18, 4699, 9614, 5254, 11929, 468, 430, 2774, 3923, 18, 5332, 67, 856, 2932, 4413, 303, 502, 10657, 6, 4672, 468, 565, 27450, 502, 10657, 273, 306, 5254, 3923, 9614, 4413, 303, 502, 10657, 11929, 65, 1324, 1428, 273, 2195, 63, 856, 65, 309, 1428, 18, 588, 2932, 5745, 7923, 422, 315, 20, 6877, 1324, 1026, 10518, 273, 1428, 18, 588, 2932, 1969, 718, 3113, 5378, 13, 13644, 273, 1428, 18, 588, 2932, 10157, 3113, 1408, 13, 468, 971, 732, 1240, 15593, 1098, 11086, 518, 16, 855, 518, 471, 527, 326, 7021, 468, 2362, 358, 3134, 1026, 10518, 16, 2537, 3007, 677, 379, 1552, 18, 309, 1428, 18, 5332, 67, 856, 2932, 27197, 1098, 6, 4672, 364, 312, 1098, 316, 1428, 9614, 27197, 1098, 11929, 30, 312, 1098, 273, 2195, 18, 14313, 620, 12, 781, 376, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2720, 316, 342, 14175, 19, 93, 379, 18, 3923, 642, 1390, 18, 13686, 273, 5378, 364, 276, 316, 642, 2354, 30, 2195, 273, 1624, 379, 3976, 12, 11369, 16, 3992, 502, 16, 6637, 16, 3998, 12269, 12818, 12, 991, 3631, 1361, 3085, 16, 276, 16, 13686, 8291, 13, 468, 1188, 2195, 18, 4699, 364, 498, 316, 2195, 18, 4699, 18, 2452, 13332, 309, 498, 422, 315, 5254, 6877, 468, 5254, 3923, 273, 2195, 18, 4699, 9614, 5254, 11929, 468, 430, 2774, 3923, 2 ]
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, 348, 17, 2147, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 348, 17, 2147, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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.scrollbars() self.changed = 0 self.do_postopen() self.do_activate(1, None)
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, 3829, 12, 86, 16, 508, 16, 404, 16, 374, 16, 300, 21, 16, 404, 16, 374, 92, 27982, 27982, 13, 365, 18, 30902, 273, 341, 436, 22, 273, 261, 20, 16, 374, 16, 890, 7950, 16, 4248, 25, 13, 2238, 72, 18, 694, 2617, 12, 91, 13, 2238, 72, 18, 1528, 5711, 12, 24, 13, 2238, 72, 18, 1528, 1225, 12, 29, 13, 365, 18, 2344, 273, 25156, 18, 56, 1157, 359, 12, 3069, 16, 16612, 13, 365, 18, 2344, 18, 1448, 4965, 1767, 12, 21, 13, 365, 18, 2344, 18, 1448, 694, 1528, 12, 892, 13, 341, 18, 6493, 30948, 5554, 1435, 365, 18, 12033, 13518, 1435, 365, 18, 6703, 273, 374, 365, 18, 2896, 67, 2767, 3190, 1435, 365, 18, 2896, 67, 10014, 12, 21, 16, 599, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 3829, 12, 86, 16, 508, 16, 404, 16, 374, 16, 300, 21, 16, 404, 16, 374, 92, 27982, 27982, 13, 365, 18, 30902, 273, 341, 436, 22, 273, 261, 20, 16, 374, 16, 890, 7950, 16, 4248, 25, 13, 2238, 72, 18, 694, 2617, 12, 91, 13, 2238, 72, 18, 1528, 5711, 12, 24, 13, 2238, 72, 18, 1528, 1225, 12, 29, 13, 365, 18, 2344, 273, 25156, 18, 56, 1157, 359, 12, 3069, 16, 16612, 13, 365, 18, 2344, 18, 1448, 2 ]
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 Keyword Arguments: *table*: [ string ] The name of the table to read from the HDF5 file (this is only required if there are more than one table in the file) ''' _check_h5py_installed() self.reset() if isinstance(filename, h5py.highlevel.File) or isinstance(filename, h5py.highlevel.Group): f = filename else: if not os.path.exists(filename): raise Exception("File not found: %s" % filename) f = h5py.File(filename) # If no table is requested, check that there is only one table if table is None: tables = _list_tables(f) if len(tables) == 1: table = tables.keys()[0] else: raise TableException(tables, 'table') # Set the table name self.table_name = table # Convert table to numpy array table = np.array(f[table]) # Add columns to table for name in table.dtype.names: self.add_column(name, table[name])
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, 1021, 21673, 25, 585, 358, 855, 326, 1014, 628, 225, 4869, 225, 380, 768, 578, 1041, 1640, 14, 30, 306, 366, 25, 2074, 18, 8766, 2815, 18, 812, 571, 366, 25, 2074, 18, 8766, 2815, 18, 1114, 308, 1021, 21673, 25, 585, 1640, 578, 1041, 1640, 358, 855, 326, 1014, 628, 225, 4055, 18317, 13599, 30, 225, 380, 2121, 14, 30, 306, 533, 308, 1021, 508, 434, 326, 1014, 358, 855, 628, 326, 21673, 25, 585, 261, 2211, 353, 1338, 1931, 309, 1915, 854, 1898, 2353, 1245, 1014, 316, 326, 585, 13, 9163, 225, 389, 1893, 67, 76, 25, 2074, 67, 13435, 1435, 225, 365, 18, 6208, 1435, 225, 309, 1549, 12, 3459, 16, 366, 25, 2074, 18, 8766, 2815, 18, 812, 13, 578, 1549, 12, 3459, 16, 366, 25, 2074, 18, 8766, 2815, 18, 1114, 4672, 284, 273, 1544, 469, 30, 309, 486, 1140, 18, 803, 18, 1808, 12, 3459, 4672, 1002, 1185, 2932, 812, 486, 1392, 30, 738, 87, 6, 738, 1544, 13, 284, 273, 366, 25, 2074, 18, 812, 12, 3459, 13, 225, 468, 971, 1158, 1014, 353, 3764, 16, 866, 716, 1915, 353, 1338, 1245, 1014, 309, 1014, 353, 599, 30, 4606, 273, 389, 1098, 67, 9373, 12, 74, 13, 309, 562, 12, 9373, 13, 422, 404, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 1021, 21673, 25, 585, 358, 855, 326, 1014, 628, 225, 4869, 225, 380, 768, 578, 1041, 1640, 14, 30, 306, 366, 25, 2074, 18, 8766, 2815, 18, 812, 571, 366, 25, 2074, 18, 8766, 2815, 18, 1114, 308, 1021, 21673, 25, 585, 1640, 578, 1041, 1640, 358, 855, 326, 1014, 628, 225, 4055, 18317, 13599, 30, 225, 380, 2121, 14, 30, 306, 533, 308, 1021, 508, 434, 326, 1014, 358, 855, 628, 326, 21673, 25, 585, 261, 2211, 353, 1338, 1931, 309, 1915, 2 ]
def _readheader(self):
def _readheader(self):
def _readheader(self):
cada31e8208b1e7201f5afc9f9782089bec7ebe3 /local1/tlutelli/issta_data/temp/all_python//python/2006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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
generator = self
def runResources(self): generator = self
63354a1816d9c1c59ec75f093ba355092a8dc330 /local1/tlutelli/issta_data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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 65, 327, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 65, 327, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 1509, 471, 813, 16, 471, 3467, 358, 296, 56, 10332, 1220, 707, 6146, 3937, 1525, 471, 3025, 6449, 18, 1021, 1525, 740, 353, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 1509, 471, 813, 16, 471, 3467, 358, 296, 56, 10332, 1220, 707, 6146, 3937, 1525, 471, 3025, 6449, 18, 1021, 1525, 740, 353, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 2293, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 2293, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 ID is passed or no such member in the structure otherwise returns type of the member, see bit definitions above. If the member type is a structure then function GetMemberStrid() should be used to get the structure type id. """ s = idaapi.get_struc(id) if not s: return -1 m = idaapi.get_member(s, member_offset) if not m: return -1 return m.flag
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, 848, 506, 1281, 1384, 316, 326, 3140, 18, 2457, 3454, 16, 353, 279, 3140, 353, 1059, 1731, 1525, 471, 2542, 622, 1384, 576, 16, 1508, 576, 16, 23, 16, 24, 16, 25, 5545, 1168, 326, 1967, 3695, 3140, 18, 225, 632, 2463, 30, 300, 21, 309, 5570, 3695, 618, 1599, 353, 2275, 578, 1158, 4123, 3140, 316, 326, 3695, 3541, 1135, 618, 434, 326, 3140, 16, 2621, 2831, 6377, 5721, 18, 971, 326, 3140, 618, 353, 279, 3695, 1508, 445, 968, 4419, 1585, 350, 1435, 1410, 506, 1399, 358, 336, 326, 3695, 618, 612, 18, 3536, 272, 273, 612, 69, 2425, 18, 588, 67, 701, 5286, 12, 7453, 13, 309, 486, 272, 30, 327, 300, 21, 225, 312, 273, 612, 69, 2425, 18, 588, 67, 5990, 12, 87, 16, 3140, 67, 3348, 13, 309, 486, 312, 30, 327, 300, 21, 225, 327, 312, 18, 6420, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 848, 506, 1281, 1384, 316, 326, 3140, 18, 2457, 3454, 16, 353, 279, 3140, 353, 1059, 1731, 1525, 471, 2542, 622, 1384, 576, 16, 1508, 576, 16, 23, 16, 24, 16, 25, 5545, 1168, 326, 1967, 3695, 3140, 18, 225, 632, 2463, 30, 300, 21, 309, 5570, 3695, 618, 1599, 353, 2275, 578, 1158, 4123, 3140, 316, 326, 3695, 3541, 1135, 618, 434, 326, 3140, 16, 2621, 2831, 6377, 5721, 18, 971, 326, 3140, 618, 353, 279, 3695, 1508, 445, 968, 4419, 1585, 2 ]
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, 82, 717, 83, 2968, 10711, 65, 23059, 2135, 3190, 10396, 65, 23059, 82, 601, 781, 3864, 1172, 296, 5397, 23059, 9536, 10711, 856, 5311, 65, 23059, 5734, 79, 781, 65, 23059, 90, 3864, 1172, 296, 5397, 810, 67, 768, 306, 2844, 67, 1214, 3864, 1172, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 82, 717, 83, 2968, 10711, 65, 23059, 2135, 3190, 10396, 65, 23059, 82, 601, 781, 3864, 1172, 296, 5397, 23059, 9536, 10711, 856, 5311, 65, 23059, 5734, 79, 781, 65, 23059, 90, 3864, 1172, 296, 5397, 810, 67, 768, 306, 2844, 67, 1214, 3864, 1172, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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.set_handle_refresh(True) return br
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, 365, 18, 3664, 353, 486, 599, 30, 5186, 18, 3190, 2668, 2505, 2207, 281, 7449, 18, 832, 6134, 5186, 18, 4025, 67, 687, 12, 11611, 33, 21, 13, 5186, 18, 687, 18, 4720, 67, 7098, 12, 529, 2218, 5053, 2187, 618, 2218, 955, 16063, 1132, 273, 365, 18, 5053, 5186, 18, 687, 3292, 3664, 3546, 273, 365, 18, 3664, 5186, 18, 9297, 1435, 5186, 18, 542, 67, 4110, 67, 9144, 12, 5510, 13, 327, 5186, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 365, 18, 3664, 353, 486, 599, 30, 5186, 18, 3190, 2668, 2505, 2207, 281, 7449, 18, 832, 6134, 5186, 18, 4025, 67, 687, 12, 11611, 33, 21, 13, 5186, 18, 687, 18, 4720, 67, 7098, 12, 529, 2218, 5053, 2187, 618, 2218, 955, 16063, 1132, 273, 365, 18, 5053, 5186, 18, 687, 3292, 3664, 3546, 273, 365, 18, 3664, 5186, 18, 9297, 1435, 5186, 18, 542, 67, 4110, 67, 9144, 12, 5510, 13, 327, 5186, 225, 2, -100, -100, -100, -100, -100, -100, -100 ]
_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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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6193, 16, 2890, 2934, 972, 2738, 972, 12, 4110, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.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 element @type name: string @return: None""" self.pb.set_fraction(float(h+1)/self.__nbVal) self.pb.set_text(filename) while gtk.events_pending():gtk.main_iteration()
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, 330, 11087, 1100, 354, 595, 22990, 884, 13517, 820, 2832, 21732, 17110, 18, 444, 326, 4007, 17, 3215, 358, 326, 864, 460, 598, 326, 864, 508, 632, 891, 366, 30, 783, 1300, 434, 326, 585, 632, 723, 1244, 30, 3571, 578, 1431, 632, 891, 508, 30, 508, 434, 326, 783, 930, 632, 723, 508, 30, 533, 632, 2463, 30, 599, 8395, 309, 366, 32, 2890, 16186, 6423, 3053, 30, 365, 18, 5733, 18, 542, 67, 16744, 12, 5659, 12, 76, 15, 21, 13176, 2890, 16186, 6423, 3053, 13, 469, 30, 365, 18, 5733, 18, 542, 67, 16744, 12, 21, 18, 20, 13, 365, 18, 5733, 18, 542, 67, 955, 12, 3459, 13, 1323, 22718, 18, 5989, 67, 9561, 13332, 4521, 79, 18, 5254, 67, 16108, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 330, 11087, 1100, 354, 595, 22990, 884, 13517, 820, 2832, 21732, 17110, 18, 444, 326, 4007, 17, 3215, 358, 326, 864, 460, 598, 326, 864, 508, 632, 891, 366, 30, 783, 1300, 434, 326, 585, 632, 723, 1244, 30, 3571, 578, 1431, 632, 891, 508, 30, 508, 434, 326, 783, 930, 632, 723, 508, 30, 533, 632, 2463, 30, 599, 8395, 309, 366, 32, 2890, 16186, 6423, 3053, 30, 365, 18, 5733, 18, 542, 67, 16744, 12, 5659, 12, 76, 15, 21, 13176, 2 ]
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, 34, 273, 6730, 13602, 10369, 12, 53, 53, 16, 890, 13, 272, 410, 30, 284, 273, 279, 66, 23, 397, 324, 397, 576, 14, 70, 66, 22, 272, 410, 30, 284, 18, 24045, 87, 1435, 306, 12, 23, 16, 374, 16, 374, 3631, 261, 20, 16, 576, 16, 374, 3631, 261, 20, 16, 404, 16, 374, 25887, 3536, 327, 365, 18, 2956, 7675, 24045, 87, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 34, 273, 6730, 13602, 10369, 12, 53, 53, 16, 890, 13, 272, 410, 30, 284, 273, 279, 66, 23, 397, 324, 397, 576, 14, 70, 66, 22, 272, 410, 30, 284, 18, 24045, 87, 1435, 306, 12, 23, 16, 374, 16, 374, 3631, 261, 20, 16, 576, 16, 374, 3631, 261, 20, 16, 404, 16, 374, 25887, 3536, 327, 365, 18, 2956, 7675, 24045, 87, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 30, 327, 5081, 469, 30, 327, 9411, 12, 69, 16, 324, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 30, 327, 5081, 469, 30, 327, 9411, 12, 69, 16, 324, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]