rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
def leftDrag(self,event):
def leftDrag(self, event):
def leftDrag(self,event): pass
55ac4fdc2a170bd52fcbe417587721669a976b6f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/55ac4fdc2a170bd52fcbe417587721669a976b6f/test_animation_mode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1652, 2002, 11728, 12, 2890, 16, 871, 4672, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 1652, 2002, 11728, 12, 2890, 16, 871, 4672, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
unattended_contents = re.sub(dummy_medium_re, content, unattended_contents) dummy_path = "C:" dummy_storage_re = r'\bKVM_TEST_STORAGE_DRIVER_PATH\b' storage_driver = os.environ.get('KVM_TEST_virtio_storage_path', '') if re.search(dummy_storage_re, unattended_contents): if self.install_virtio: unattended_contents = re.sub(dummy_storage_re, storage_driver, unattended_contents) else: unattended_contents = re.sub(dummy_storage_re, dummy_path, unattended_contents) dummy_network_re = r'\bKVM_TEST_NETWORK_DRIVER_PATH\b' network_driver = os.environ.get('KVM_TEST_virtio_network_path', '') if re.search(dummy_network_re, unattended_contents): if self.install_virtio: unattended_contents = re.sub(dummy_network_re, network_driver, unattended_contents) else: unattended_contents = re.sub(dummy_network_re, dummy_path, unattended_contents) dummy_nw_install_re = r'\bKVM_TEST_VIRTIO_NETWORK_INSTALLER\b' nw_install = os.environ.get('KVM_TEST_virtio_network_installer', 'help') if re.search(dummy_nw_install_re, unattended_contents): if self.install_virtio: unattended_contents = re.sub(dummy_nw_install_re, nw_install, unattended_contents) else: unattended_contents = re.sub(dummy_nw_install_re, 'help', unattended_contents)
unattended_contents = re.sub(dummy_medium_re, content, unattended_contents) def replace_virtio_key(contents, dummy_re, env): """ Replace a virtio dummy string with contents. If install_virtio is not set, replace it with a dummy string. @param contents: Contents of the unattended file @param dummy_re: Regular expression used to search on the. unattended file contents. @param env: Name of the environment variable. """ dummy_path = "C:" driver = os.environ.get(env, '') if re.search(dummy_re, contents): if self.install_virtio == "yes": if driver.endswith("msi"): driver = 'msiexec /passive /package ' + driver else: try: drive, path = driver.split(":") driver = drive + ":" + re.escape(path) except: pass contents = re.sub(dummy_re, driver, contents) else: contents = re.sub(dummy_re, dummy_path, contents) return contents vdict = {r'\bKVM_TEST_STORAGE_DRIVER_PATH\b': 'KVM_TEST_virtio_storage_path', r'\bKVM_TEST_NETWORK_DRIVER_PATH\b': 'KVM_TEST_virtio_network_path', r'\bKVM_TEST_VIRTIO_NETWORK_INSTALLER\b': 'KVM_TEST_virtio_network_installer_path'} for vkey in vdict: unattended_contents = replace_virtio_key(unattended_contents, vkey, vdict[vkey])
def create_boot_floppy(self): """ Prepares a boot floppy by creating a floppy image file, mounting it and copying an answer file (kickstarts for RH based distros, answer files for windows) to it. After that the image is umounted. """ print "Creating boot floppy"
d245408f9a2fd5877bf4770afc7b97ad08147815 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10349/d245408f9a2fd5877bf4770afc7b97ad08147815/unattended.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 7137, 67, 74, 16884, 2074, 12, 2890, 4672, 3536, 2962, 84, 4807, 279, 4835, 284, 16884, 2074, 635, 4979, 279, 284, 16884, 2074, 1316, 585, 16, 5344, 310, 518, 471, 8933, 392, 5803, 585, 261, 79, 1200, 17514, 364, 534, 44, 2511, 2411, 6973, 16, 5803, 1390, 364, 9965, 13, 358, 518, 18, 7360, 716, 326, 1316, 353, 9570, 592, 329, 18, 3536, 1172, 315, 11092, 4835, 284, 16884, 2074, 6, 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, 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, 1316, 585, 16, 5344, 310, 518, 471, 8933, 392, 5803, 585, 261, 79, 1200, 17514, 364, 534, 44, 2511, 2411, 6973, 16, 5803, 1390, 364, 9965, 13, 358, 518, 18, 7360, 716, 326, 1316, 353, 9570, 592, 329, 18, 3536, 1172, 315, 11092, 4835, 284, 16884, 2074, 6, 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 ]
evalString = " _y%dData.SetTuple1(i,_y%d[i])" % (i,i)
evalString = " _y%dData.SetTuple1(i,_y%d[i])" % (i, i)
def setData(self,*dataList): """ Set data to the plot
525240b057c0121c2cab7772950af46d6399ad7e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/525240b057c0121c2cab7772950af46d6399ad7e/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7929, 12, 2890, 16, 14, 892, 682, 4672, 3536, 1000, 501, 358, 326, 3207, 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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585, 326, 22398, 316, 326, 981, 30, 1652, 7929, 12, 2890, 16, 14, 892, 682, 4672, 3536, 1000, 501, 358, 326, 3207, 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 ]
"error is: %s." % (User.users_file, e))
"error is: %s." % (self.users_filename, e))
def __read_my_entry(self): try: file = open(self.users_file) except IOError, e: logging.critical("There was an error opening the users file (%s). The " "error is: %s." % (User.users_file, e)) raise UserError('Error opening users file') try: lines = file.readlines() except IOError, e: logging.critical("There was an error opening the users file (%s). The " "error is: %s." % (User.users_file, e)) raise UserError('Error reading users file') file.close() for line in lines: entry = line.split(':') if len(entry) != 2: logging.error("There is an invalid entry in the users file: %s. " "Skipping this entry." % line) continue if int(entry[0]) == self._id: self._name = entry[1].strip('\n') return raise InvalidUserIdError(user_id)
f42a194fdebca5d19e0277d35955d7040cb0756d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2803/f42a194fdebca5d19e0277d35955d7040cb0756d/user.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 896, 67, 4811, 67, 4099, 12, 2890, 4672, 775, 30, 585, 273, 1696, 12, 2890, 18, 5577, 67, 768, 13, 1335, 8340, 16, 425, 30, 2907, 18, 28000, 2932, 9828, 1703, 392, 555, 10890, 326, 3677, 585, 6142, 87, 2934, 1021, 315, 315, 1636, 353, 30, 738, 87, 1199, 738, 261, 2890, 18, 5577, 67, 3459, 16, 425, 3719, 1002, 2177, 668, 2668, 668, 10890, 3677, 585, 6134, 775, 30, 2362, 273, 585, 18, 896, 3548, 1435, 1335, 8340, 16, 425, 30, 2907, 18, 28000, 2932, 9828, 1703, 392, 555, 10890, 326, 3677, 585, 6142, 87, 2934, 1021, 315, 315, 1636, 353, 30, 738, 87, 1199, 738, 261, 2890, 18, 5577, 67, 3459, 16, 425, 3719, 1002, 2177, 668, 2668, 668, 6453, 3677, 585, 6134, 585, 18, 4412, 1435, 364, 980, 316, 2362, 30, 1241, 273, 980, 18, 4939, 2668, 2497, 13, 309, 562, 12, 4099, 13, 480, 576, 30, 2907, 18, 1636, 2932, 9828, 353, 392, 2057, 1241, 316, 326, 3677, 585, 30, 738, 87, 18, 315, 315, 16877, 333, 1241, 1199, 738, 980, 13, 1324, 309, 509, 12, 4099, 63, 20, 5717, 422, 365, 6315, 350, 30, 365, 6315, 529, 273, 1241, 63, 21, 8009, 6406, 2668, 64, 82, 6134, 327, 1002, 1962, 10502, 668, 12, 1355, 67, 350, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 896, 67, 4811, 67, 4099, 12, 2890, 4672, 775, 30, 585, 273, 1696, 12, 2890, 18, 5577, 67, 768, 13, 1335, 8340, 16, 425, 30, 2907, 18, 28000, 2932, 9828, 1703, 392, 555, 10890, 326, 3677, 585, 6142, 87, 2934, 1021, 315, 315, 1636, 353, 30, 738, 87, 1199, 738, 261, 2890, 18, 5577, 67, 3459, 16, 425, 3719, 1002, 2177, 668, 2668, 668, 10890, 3677, 585, 6134, 775, 30, 2362, 273, 585, 18, 896, 3548, 1435, 1335, 8340, 16, 425, 30, 2907, 18, 28000, 2932, 9828, 1703, 392, 555, 10890, 326, 3677, 585, 6142, 87, 2934, 1021, 315, 315, 1636, 353, 30, 738, 87, 1199, 738, 261, 2890, 18, 5577, 67, 3459, 16, 425, 3719, 1002, 2 ]
try: saxparser.setDTDHandler(feedparser) except xml.sax.SAXNotSupportedException: if _debug: sys.stderr.write('using an xml library that does not support DTDHandler (not a big deal)\n') try: saxparser.setEntityResolver(feedparser) except xml.sax.SAXNotSupportedException: if _debug: sys.stderr.write('using an xml library that does not support EntityResolver (not a big deal)\n') encoding_set = (result['encoding'] == xml_encoding) if not encoding_set: bozo_exception = None proposed_encodings = [result['encoding'], xml_encoding, 'utf-8', 'iso-8859-1', 'windows-1252'] tried_encodings = [] for proposed_encoding in proposed_encodings: if proposed_encodings in tried_encodings: continue tried_encodings.append(proposed_encoding) try: data = _changeEncodingDeclaration(data, proposed_encoding) except Exception, bozo_exception: if _debug: sys.stderr.write('character encoding is wrong\n') else: if proposed_encoding != result['encoding']: try: raise CharacterEncodingOverride, "document declared as %s, but parsed as %s" % (result['encoding'], proposed_encoding) except CharacterEncodingOverride, bozo_exception: result['bozo'] = 1 result['bozo_exception'] = bozo_exception result['encoding'] = proposed_encoding encoding_set = 1 break if not encoding_set: result['bozo'] = 1 result['bozo_exception'] = bozo_exception use_strict_parser = 0 if use_strict_parser:
def parse(url_file_stream_or_string, etag=None, modified=None, agent=None, referrer=None): """Parse a feed from a URL, file, stream, or string""" result = FeedParserDict() f = _open_resource(url_file_stream_or_string, etag=etag, modified=modified, agent=agent, referrer=referrer) data = f.read() if hasattr(f, "headers"): if gzip and f.headers.get('content-encoding', '') == 'gzip': try: data = gzip.GzipFile(fileobj=_StringIO(data)).read() except: # some feeds claim to be gzipped but they're not, so we get garbage data = '' if hasattr(f, "info"): info = f.info() result["etag"] = info.getheader("ETag") last_modified = info.getheader("Last-Modified") if last_modified: result["modified"] = _parse_date(last_modified) if hasattr(f, "url"): result["url"] = f.url result["status"] = 200 # default, may be overridden later if hasattr(f, "status"): result["status"] = f.status if hasattr(f, "headers"): result["headers"] = f.headers.dict f.close() if result.get("status", 0) == 304: result['feed'] = FeedParserDict() result['entries'] = [] result['debug_message'] = "The feed has not changed since you last checked, so the server sent no data. This is a feature, not a bug!" return result result['encoding'], http_encoding, xml_encoding = _getCharacterEncoding(result.get("headers", {}), data) result['version'], data = _stripDoctype(data) baseuri = result.get('headers', {}).get('content-location', result.get('url')) # try true XML parser first if not _XML_AVAILABLE: if _debug: sys.stderr.write('no xml libraries available\n') use_strict_parser = _XML_AVAILABLE if use_strict_parser: if _debug: sys.stderr.write('using xml library\n') result['bozo'] = 0 feedparser = _StrictFeedParser(baseuri, result['encoding']) if _debug and _debug_never_use_libxml2: sys.stderr.write('not using libxml2 (even if available)\n') additional_parsers = [] else: additional_parsers = ["drv_libxml2"] saxparser = xml.sax.make_parser(additional_parsers) saxparser.setFeature(xml.sax.handler.feature_namespaces, 1) saxparser.setContentHandler(feedparser) saxparser.setErrorHandler(feedparser) try: saxparser.setDTDHandler(feedparser) except xml.sax.SAXNotSupportedException: # libxml2 driver does not support DTDHandler if _debug: sys.stderr.write('using an xml library that does not support DTDHandler (not a big deal)\n') try: saxparser.setEntityResolver(feedparser) except xml.sax.SAXNotSupportedException: # libxml2 driver does not support EntityResolver if _debug: sys.stderr.write('using an xml library that does not support EntityResolver (not a big deal)\n') encoding_set = (result['encoding'] == xml_encoding) if not encoding_set: bozo_exception = None proposed_encodings = [result['encoding'], xml_encoding, 'utf-8', 'iso-8859-1', 'windows-1252'] tried_encodings = [] for proposed_encoding in proposed_encodings: if proposed_encodings in tried_encodings: continue tried_encodings.append(proposed_encoding) try: data = _changeEncodingDeclaration(data, proposed_encoding) except Exception, bozo_exception: if _debug: sys.stderr.write('character encoding is wrong\n') else: if proposed_encoding != result['encoding']: try: raise CharacterEncodingOverride, "document declared as %s, but parsed as %s" % (result['encoding'], proposed_encoding) except CharacterEncodingOverride, bozo_exception: result['bozo'] = 1 result['bozo_exception'] = bozo_exception result['encoding'] = proposed_encoding encoding_set = 1 break if not encoding_set: result['bozo'] = 1 result['bozo_exception'] = bozo_exception use_strict_parser = 0 if use_strict_parser: source = xml.sax.xmlreader.InputSource() source.setByteStream(_StringIO(data)) if hasattr(saxparser, '_ns_stack'): # work around bug in built-in SAX parser (doesn't recognize xml: namespace) # PyXML doesn't have this problem, and it doesn't have _ns_stack either saxparser._ns_stack.append({'http://www.w3.org/XML/1998/namespace':'xml'}) try: saxparser.parse(source) except Exception, e: if _debug: sys.stderr.write('xml parsing failed\n') feedparser.bozo = 1 feedparser.bozo_exception = feedparser.exc or e if feedparser.bozo: # feed is not well-formed XML, fall back on regex-based parser result['bozo'] = 1 result['bozo_exception'] = feedparser.bozo_exception use_strict_parser = 0 if not use_strict_parser: if _debug: sys.stderr.write('using regexes, now you have two problems\n') feedparser = _LooseFeedParser(baseuri, result['encoding']) feedparser.feed(data) result['feed'] = feedparser.feeddata result['entries'] = feedparser.entries result['version'] = result['version'] or feedparser.version return result
99200d105c483d0627b0c87195d2d3372fe4ba91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/99200d105c483d0627b0c87195d2d3372fe4ba91/feedparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 718, 67, 768, 67, 3256, 67, 280, 67, 1080, 16, 13655, 33, 7036, 16, 4358, 33, 7036, 16, 4040, 33, 7036, 16, 14502, 33, 7036, 4672, 3536, 3201, 279, 4746, 628, 279, 1976, 16, 585, 16, 1407, 16, 578, 533, 8395, 563, 273, 14013, 2678, 5014, 1435, 284, 273, 389, 3190, 67, 3146, 12, 718, 67, 768, 67, 3256, 67, 280, 67, 1080, 16, 13655, 33, 20788, 16, 4358, 33, 7342, 16, 4040, 33, 5629, 16, 14502, 33, 1734, 11110, 13, 501, 273, 284, 18, 896, 1435, 309, 3859, 12, 74, 16, 315, 2485, 6, 4672, 309, 10331, 471, 284, 18, 2485, 18, 588, 2668, 1745, 17, 5999, 2187, 28707, 422, 296, 17380, 4278, 775, 30, 501, 273, 10331, 18, 27825, 812, 12, 768, 2603, 33, 67, 780, 4294, 12, 892, 13, 2934, 896, 1435, 1335, 30, 468, 2690, 27684, 7516, 358, 506, 10331, 1845, 1496, 2898, 4565, 486, 16, 1427, 732, 336, 15340, 501, 273, 875, 309, 3859, 12, 74, 16, 315, 1376, 6, 4672, 1123, 273, 284, 18, 1376, 1435, 563, 9614, 20788, 11929, 273, 1123, 18, 75, 546, 18105, 2932, 22560, 7923, 1142, 67, 7342, 273, 1123, 18, 75, 546, 18105, 2932, 3024, 17, 4575, 7923, 309, 1142, 67, 7342, 30, 563, 9614, 7342, 11929, 273, 389, 2670, 67, 712, 12, 2722, 67, 7342, 13, 309, 3859, 12, 74, 16, 315, 718, 6, 4672, 563, 9614, 718, 11929, 273, 284, 18, 718, 563, 9614, 2327, 11929, 273, 4044, 468, 805, 16, 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, 1109, 12, 718, 67, 768, 67, 3256, 67, 280, 67, 1080, 16, 13655, 33, 7036, 16, 4358, 33, 7036, 16, 4040, 33, 7036, 16, 14502, 33, 7036, 4672, 3536, 3201, 279, 4746, 628, 279, 1976, 16, 585, 16, 1407, 16, 578, 533, 8395, 563, 273, 14013, 2678, 5014, 1435, 284, 273, 389, 3190, 67, 3146, 12, 718, 67, 768, 67, 3256, 67, 280, 67, 1080, 16, 13655, 33, 20788, 16, 4358, 33, 7342, 16, 4040, 33, 5629, 16, 14502, 33, 1734, 11110, 13, 501, 273, 284, 18, 896, 1435, 309, 3859, 12, 74, 16, 315, 2485, 6, 4672, 309, 10331, 471, 284, 18, 2485, 18, 588, 2668, 1745, 17, 5999, 2187, 28707, 422, 296, 17380, 4278, 775, 30, 2 ]
for ifo,name,version,start,end in tmpDQSeg:
for ifo,name,version,start,end in self.resultList:
def fetchInformation(self,triggerTime=None,window=300,version=99): """ This method is responsible for queries to the data server. The results of the query become an internal list that can be converted into an HTML table. The arguments allow you to query with trigger time of interest and to change the window with each call if desired. The version argument will fetch segments with that version or higher. """ if triggerTime==int(-1): os.stdout.write("Specify trigger time please.\n") return else: self.triggerTime = int(triggerTime) try: connection=None serverURL=self.serverURL.strip("ldbd://") connection=segmentdb_utils.setup_database(serverURL) except Exception, errMsg: sys.stderr.write("Error connection to %s\n"\ %(serverURL)) sys.stderr.write("Error Message :\t %s\n"%(str(errMsg))) self.resultList=list() return try: engine=query_engine.LdbdQueryEngine(connection) gpsEnd=int(triggerTime)+int(window) gpsStart=int(triggerTime)-int(window) sqlString=self.dqvQuery%(version,gpsEnd,gpsStart) queryResult=engine.query(sqlString) self.resultList=queryResult except Exception, errMsg: sys.stderr.write("Query failed %s \n"%(self.serverURL)) sys.stdout.write("Error fetching query results at %s.\n"%(triggerTime)) sys.stderr.write("Error message seen: %s\n"%(str(errMsg))) sys.stderr.write("Query Tried: \n %s \n"%(sqlString)) return engine.close() #Coalesce the segments for each DQ flag #Reparse the information tmpDQSeg=self.resultList newDQSeg=list() if tmpDQSeg.__len__() > 0: #Obtain list of all flags uniqSegmentName=list() for ifo,name,version,start,end in tmpDQSeg: if not uniqSegmentName.__contains__((ifo,name,version)): uniqSegmentName.append((ifo,name,version)) #Save textKey for all uniq segments combos for uifo,uname,uversion in uniqSegmentName: segmentIntervals=list() #Extra segments based on uniq textKey for ifo,name,version,start,end in tmpDQSeg: if (uifo,uname,uversion)==(ifo,name,version): segmentIntervals.append((start,end)) segmentIntervals.sort() #Coalesce those segments newStyle=bool(True) if newStyle: newSegmentIntervals=self.__merge__(segmentIntervals) else: newSegmentIntervals=segmentIntervals #Write them to the object which we will return for newStart,newStop in newSegmentIntervals: newDQSeg.append([uifo,uname,uversion,newStart,newStop]) del segmentIntervals #Save the final result self.resultList=newDQSeg.sort()
3684fe51b66eea122e194da773554d201e0ff5c9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/3684fe51b66eea122e194da773554d201e0ff5c9/fu_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2158, 5369, 12, 2890, 16, 10668, 950, 33, 7036, 16, 5668, 33, 19249, 16, 1589, 33, 2733, 4672, 3536, 1220, 707, 353, 14549, 364, 6218, 358, 326, 501, 1438, 18, 225, 1021, 1686, 434, 326, 843, 12561, 392, 2713, 666, 716, 848, 506, 5970, 1368, 392, 3982, 1014, 18, 225, 1021, 1775, 1699, 1846, 358, 843, 598, 3080, 813, 434, 16513, 471, 358, 2549, 326, 2742, 598, 1517, 745, 309, 6049, 18, 1021, 1177, 1237, 903, 2158, 5155, 598, 716, 1177, 578, 10478, 18, 3536, 309, 3080, 950, 631, 474, 19236, 21, 4672, 1140, 18, 10283, 18, 2626, 2932, 19302, 3080, 813, 9582, 8403, 82, 7923, 327, 469, 30, 365, 18, 10668, 950, 273, 509, 12, 10668, 950, 13, 775, 30, 1459, 33, 7036, 1438, 1785, 33, 2890, 18, 3567, 1785, 18, 6406, 2932, 1236, 16410, 2207, 7923, 1459, 33, 9273, 1966, 67, 5471, 18, 8401, 67, 6231, 12, 3567, 1785, 13, 1335, 1185, 16, 12412, 30, 2589, 18, 11241, 18, 2626, 2932, 668, 1459, 358, 738, 87, 64, 82, 12691, 8975, 3567, 1785, 3719, 2589, 18, 11241, 18, 2626, 2932, 668, 2350, 294, 64, 88, 738, 87, 64, 82, 6, 17105, 701, 12, 370, 3332, 20349, 365, 18, 2088, 682, 33, 1098, 1435, 327, 775, 30, 4073, 33, 2271, 67, 8944, 18, 48, 1966, 72, 1138, 4410, 12, 4071, 13, 20985, 1638, 33, 474, 12, 10668, 950, 27921, 474, 12, 5668, 13, 20985, 1685, 33, 474, 12, 10668, 950, 24950, 474, 12, 5668, 13, 1847, 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, 2158, 5369, 12, 2890, 16, 10668, 950, 33, 7036, 16, 5668, 33, 19249, 16, 1589, 33, 2733, 4672, 3536, 1220, 707, 353, 14549, 364, 6218, 358, 326, 501, 1438, 18, 225, 1021, 1686, 434, 326, 843, 12561, 392, 2713, 666, 716, 848, 506, 5970, 1368, 392, 3982, 1014, 18, 225, 1021, 1775, 1699, 1846, 358, 843, 598, 3080, 813, 434, 16513, 471, 358, 2549, 326, 2742, 598, 1517, 745, 309, 6049, 18, 1021, 1177, 1237, 903, 2158, 5155, 598, 716, 1177, 578, 10478, 18, 3536, 309, 3080, 950, 631, 474, 19236, 21, 4672, 1140, 18, 10283, 18, 2626, 2932, 19302, 3080, 813, 9582, 8403, 82, 7923, 327, 469, 30, 365, 18, 10668, 950, 273, 509, 12, 10668, 950, 2 ]
h = d.GetDialogItemAsControl(3)
h = d.GetDialogItemAsControl(3)
def AskPassword(prompt, default='', id=264): """Display a PROMPT string and a text entry field with a DEFAULT string. The string is displayed as bullets only. Return the contents of the text entry field when the user clicks the OK button or presses Return. Return None when the user clicks the Cancel button. If omitted, DEFAULT is empty. The PROMPT and DEFAULT strings, as well as the return value, can be at most 255 characters long. """ d = GetNewDialog(id, -1) if not d: print "Can't get DLOG resource with id =", id return h = d.GetDialogItemAsControl(3) # STATIC TEXT ITEM <= prompt SetDialogItemText(h, lf2cr(prompt)) h = d.GetDialogItemAsControl(4) # EDIT TEXT ITEM bullets = '\245'*len(default) SetDialogItemText(h, bullets ) d.SelectDialogItemText(4, 999, 999) d.SetDialogDefaultItem(Dialogs.ok) d.SetDialogCancelItem(Dialogs.cancel) string = default oldschedparams = MacOS.SchedParams(0,0) while 1: ready,ev = Evt.WaitNextEvent(Events.everyEvent, 6) if not ready: continue what,msg,when,where,mod = ev if what == 0 : Dlg.DialogSelect(ev) # for blinking caret elif Dlg.IsDialogEvent(ev): if what in (Events.keyDown, Events.autoKey): charcode = msg & Events.charCodeMask if ( mod & Events.cmdKey ): MacOS.SysBeep() continue # don't do cut & paste commands else: if charcode == Events.kReturnCharCode: break elif charcode == Events.kEscapeCharCode: string = None break elif charcode in (Events.kLeftArrowCharCode, Events.kBackspaceCharCode): string = string[:-1] else: string = string + chr(charcode) msg = 0245 # Octal code for bullet ev = (what,msg,when,where,mod) rs, win, item = Dlg.DialogSelect(ev) if item == Dialogs.ok : break elif item == Dialogs.cancel : string = None break elif what == Events.mouseDown: part, win = Win.FindWindow(where) if part == Windows.inDrag and win: win.DragWindow(where, screenbounds) elif part == Windows.inMenuBar: MacOS.HandleEvent(ev) else: MacOS.SysBeep() # Cannot handle selections, unfortunately elif what == Events.updateEvt: MacOS.HandleEvent(ev) apply(MacOS.SchedParams, oldschedparams) return string
60429e055ef92d63347018d239c717d7cc65d174 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/60429e055ef92d63347018d239c717d7cc65d174/EasyDialogs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25747, 3913, 12, 13325, 16, 202, 805, 2218, 2187, 612, 33, 23728, 4672, 3536, 4236, 279, 453, 3942, 1856, 533, 471, 279, 977, 1241, 652, 598, 279, 3331, 533, 18, 1021, 533, 353, 10453, 487, 324, 420, 2413, 1338, 18, 225, 2000, 326, 2939, 434, 326, 977, 1241, 652, 1347, 326, 729, 27659, 326, 7791, 3568, 578, 11779, 281, 2000, 18, 2000, 599, 1347, 326, 729, 27659, 326, 10347, 3568, 18, 225, 971, 16195, 16, 3331, 353, 1008, 18, 225, 1021, 453, 3942, 1856, 471, 3331, 2064, 16, 487, 5492, 487, 326, 327, 460, 16, 848, 506, 622, 4486, 4561, 3949, 1525, 18, 3536, 302, 273, 968, 1908, 6353, 12, 350, 16, 300, 21, 13, 309, 486, 302, 30, 1172, 315, 2568, 1404, 336, 463, 4842, 1058, 598, 612, 273, 3113, 612, 327, 366, 273, 302, 18, 967, 6353, 1180, 1463, 3367, 12, 23, 13, 202, 7, 19980, 9204, 25504, 1648, 6866, 1000, 6353, 1180, 1528, 12, 76, 16, 18594, 22, 3353, 12, 13325, 3719, 366, 273, 302, 18, 967, 6353, 1180, 1463, 3367, 12, 24, 13, 202, 7, 21307, 9204, 25504, 324, 420, 2413, 273, 2337, 3247, 25, 11, 14, 1897, 12, 1886, 13, 1000, 6353, 1180, 1528, 12, 76, 16, 324, 420, 2413, 262, 302, 18, 3391, 6353, 1180, 1528, 12, 24, 16, 22249, 16, 22249, 13, 302, 18, 694, 6353, 1868, 1180, 12, 11885, 14072, 18, 601, 13, 302, 18, 694, 6353, 6691, 1180, 12, 11885, 14072, 18, 10996, 13, 533, 273, 805, 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, 25747, 3913, 12, 13325, 16, 202, 805, 2218, 2187, 612, 33, 23728, 4672, 3536, 4236, 279, 453, 3942, 1856, 533, 471, 279, 977, 1241, 652, 598, 279, 3331, 533, 18, 1021, 533, 353, 10453, 487, 324, 420, 2413, 1338, 18, 225, 2000, 326, 2939, 434, 326, 977, 1241, 652, 1347, 326, 729, 27659, 326, 7791, 3568, 578, 11779, 281, 2000, 18, 2000, 599, 1347, 326, 729, 27659, 326, 10347, 3568, 18, 225, 971, 16195, 16, 3331, 353, 1008, 18, 225, 1021, 453, 3942, 1856, 471, 3331, 2064, 16, 487, 5492, 487, 326, 327, 460, 16, 848, 506, 622, 4486, 4561, 3949, 1525, 18, 3536, 302, 273, 968, 1908, 6353, 12, 350, 16, 300, 21, 13, 309, 486, 302, 2 ]
"""amdmt_periodic : | PERIODIC field"""
"""amdmt_periodic : PERIODIC field"""
def p_amdmt_periodic(t): """amdmt_periodic : | PERIODIC field""" #{ AMDMT_PERIODIC $2 } pass
6898a7de9977616782066bab1d86bf5afe481caf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1485/6898a7de9977616782066bab1d86bf5afe481caf/opparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 67, 301, 72, 1010, 67, 6908, 335, 12, 88, 4672, 3536, 301, 72, 1010, 67, 6908, 335, 294, 10950, 21054, 2871, 652, 8395, 3735, 432, 6188, 6152, 67, 28437, 2871, 271, 22, 289, 1342, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 67, 301, 72, 1010, 67, 6908, 335, 12, 88, 4672, 3536, 301, 72, 1010, 67, 6908, 335, 294, 10950, 21054, 2871, 652, 8395, 3735, 432, 6188, 6152, 67, 28437, 2871, 271, 22, 289, 1342, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
header = ''.join(xpath(html % tag, expr))
header = ''.join(xpath(html, expr % tag))
def _toc_from_spine(self, opf): self.toc = toc = TOC() titles = [] headers = [] for item in self.spine: if not item.linear: continue html = item.data title = ''.join(xpath(html, '/h:html/h:head/h:title/text()')) title = COLLAPSE_RE(' ', title.strip()) if title: titles.append(title) headers.append('(unlabled)') for tag in ('h1', 'h2', 'h3', 'h4', 'h5', 'strong'): expr = '/h:html/h:body//h:%s[position()=1]/text()' header = ''.join(xpath(html % tag, expr)) header = COLLAPSE_RE.sub(' ', header.strip()) if header: headers[-1] = header break use = titles if len(titles) > len(set(titles)): use = headers for title, item in izip(use, self.spine): if not item.linear: continue toc.add(title, item.href) return True
f524968ce263965500648526102b3c5a43d0038e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/f524968ce263965500648526102b3c5a43d0038e/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1391, 67, 2080, 67, 1752, 558, 12, 2890, 16, 1061, 74, 4672, 365, 18, 1391, 273, 17919, 273, 8493, 39, 1435, 14693, 273, 5378, 1607, 273, 5378, 364, 761, 316, 365, 18, 1752, 558, 30, 309, 486, 761, 18, 12379, 30, 1324, 1729, 273, 761, 18, 892, 2077, 273, 875, 18, 5701, 12, 18644, 12, 2620, 16, 1173, 76, 30, 2620, 19, 76, 30, 1978, 19, 76, 30, 2649, 19, 955, 11866, 3719, 2077, 273, 5597, 48, 2203, 1090, 67, 862, 2668, 2265, 2077, 18, 6406, 10756, 309, 2077, 30, 14693, 18, 6923, 12, 2649, 13, 1607, 18, 6923, 2668, 12, 318, 80, 1116, 2506, 13, 364, 1047, 316, 7707, 76, 21, 2187, 296, 76, 22, 2187, 296, 76, 23, 2187, 296, 76, 24, 2187, 296, 76, 25, 2187, 296, 9110, 11, 4672, 3065, 273, 1173, 76, 30, 2620, 19, 76, 30, 3432, 759, 76, 5319, 87, 63, 3276, 1435, 33, 21, 18537, 955, 11866, 1446, 273, 875, 18, 5701, 12, 18644, 12, 2620, 16, 3065, 738, 1047, 3719, 1446, 273, 5597, 48, 2203, 1090, 67, 862, 18, 1717, 2668, 2265, 1446, 18, 6406, 10756, 309, 1446, 30, 1607, 18919, 21, 65, 273, 1446, 898, 999, 273, 14693, 309, 562, 12, 17643, 13, 405, 562, 12, 542, 12, 17643, 3719, 30, 999, 273, 1607, 364, 2077, 16, 761, 316, 277, 4450, 12, 1202, 16, 365, 18, 1752, 558, 4672, 309, 486, 761, 18, 12379, 30, 1324, 17919, 18, 1289, 12, 2649, 16, 761, 18, 7547, 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, 1391, 67, 2080, 67, 1752, 558, 12, 2890, 16, 1061, 74, 4672, 365, 18, 1391, 273, 17919, 273, 8493, 39, 1435, 14693, 273, 5378, 1607, 273, 5378, 364, 761, 316, 365, 18, 1752, 558, 30, 309, 486, 761, 18, 12379, 30, 1324, 1729, 273, 761, 18, 892, 2077, 273, 875, 18, 5701, 12, 18644, 12, 2620, 16, 1173, 76, 30, 2620, 19, 76, 30, 1978, 19, 76, 30, 2649, 19, 955, 11866, 3719, 2077, 273, 5597, 48, 2203, 1090, 67, 862, 2668, 2265, 2077, 18, 6406, 10756, 309, 2077, 30, 14693, 18, 6923, 12, 2649, 13, 1607, 18, 6923, 2668, 12, 318, 80, 1116, 2506, 13, 364, 1047, 316, 7707, 76, 21, 2187, 296, 76, 22, 2187, 2 ]
A dict containing the result of the retrieve operation.
A list containing the result of the retrieve operation.
def RetrieveAllMembers(self, group_id): """Retrieve all members in the given group.
f24416f49afb909f4e826471cfc70c4d3cdbea45 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10620/f24416f49afb909f4e826471cfc70c4d3cdbea45/service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10708, 1595, 6918, 12, 2890, 16, 1041, 67, 350, 4672, 3536, 5767, 777, 4833, 316, 326, 864, 1041, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10708, 1595, 6918, 12, 2890, 16, 1041, 67, 350, 4672, 3536, 5767, 777, 4833, 316, 326, 864, 1041, 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 ]
w.insert(0, 1)
w.insert(0, integer.Integer(1))
def prime_powers(start, stop=None): r""" List of all positive primes powers between start and stop-1, inclusive. If the second argument is omitted, returns the primes up to the first argument. EXAMPLES: sage: prime_powers(20) [1, 2, 3, 4, 5, 7, 8, 9, 11, 13, 16, 17, 19] sage: len(prime_powers(1000)) 194 sage: len(prime_range(1000)) 168 sage: a = [z for z in range(95,1234) if is_prime_power(z)] sage: b = prime_powers(95,1234) sage: len(b) 194 sage: len(a) 194 sage: a[:10] [97, 101, 103, 107, 109, 113, 121, 125, 127, 128] sage: b[:10] [97, 101, 103, 107, 109, 113, 121, 125, 127, 128] sage: a == b True """ if stop is None: start, stop = 1, int(start) from math import log from bisect import bisect v = prime_range(stop) i = bisect(v, start) if start > 2: if v[i] == start: i -= 1 w = list(v[i:]) else: w = list(v) if start <= 1: w.insert(0, 1) log_stop = log(stop) for p in v: q = p*p n = int(log(stop)/log(p)) if n <= 1: break for i in xrange(1,n): if q >= start: w.append(q) q *= p w.sort() return w
5e743ee4c8ff3bc4960c06e32e0afe1fdfe4e3e0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/5e743ee4c8ff3bc4960c06e32e0afe1fdfe4e3e0/arith.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17014, 67, 23509, 414, 12, 1937, 16, 2132, 33, 7036, 4672, 436, 8395, 987, 434, 777, 6895, 846, 4485, 7602, 414, 3086, 787, 471, 2132, 17, 21, 16, 13562, 18, 225, 971, 326, 2205, 1237, 353, 16195, 16, 1135, 326, 846, 4485, 731, 358, 326, 1122, 1237, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 17014, 67, 23509, 414, 12, 3462, 13, 306, 21, 16, 576, 16, 890, 16, 1059, 16, 1381, 16, 2371, 16, 1725, 16, 2468, 16, 4648, 16, 5958, 16, 2872, 16, 8043, 16, 5342, 65, 272, 410, 30, 562, 12, 16382, 67, 23509, 414, 12, 18088, 3719, 5342, 24, 272, 410, 30, 562, 12, 16382, 67, 3676, 12, 18088, 3719, 2872, 28, 272, 410, 30, 279, 273, 306, 94, 364, 998, 316, 1048, 12, 8778, 16, 28462, 13, 309, 353, 67, 16382, 67, 12238, 12, 94, 25887, 272, 410, 30, 324, 273, 17014, 67, 23509, 414, 12, 8778, 16, 28462, 13, 272, 410, 30, 562, 12, 70, 13, 5342, 24, 272, 410, 30, 562, 12, 69, 13, 5342, 24, 272, 410, 30, 279, 10531, 2163, 65, 306, 10580, 16, 13822, 16, 1728, 23, 16, 1728, 27, 16, 30116, 16, 404, 3437, 16, 2593, 21, 16, 30616, 16, 12331, 16, 8038, 65, 272, 410, 30, 324, 10531, 2163, 65, 306, 10580, 16, 13822, 16, 1728, 23, 16, 1728, 27, 16, 30116, 16, 404, 3437, 16, 2593, 21, 16, 30616, 16, 12331, 16, 8038, 65, 272, 410, 30, 279, 422, 324, 1053, 3536, 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, 17014, 67, 23509, 414, 12, 1937, 16, 2132, 33, 7036, 4672, 436, 8395, 987, 434, 777, 6895, 846, 4485, 7602, 414, 3086, 787, 471, 2132, 17, 21, 16, 13562, 18, 225, 971, 326, 2205, 1237, 353, 16195, 16, 1135, 326, 846, 4485, 731, 358, 326, 1122, 1237, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 17014, 67, 23509, 414, 12, 3462, 13, 306, 21, 16, 576, 16, 890, 16, 1059, 16, 1381, 16, 2371, 16, 1725, 16, 2468, 16, 4648, 16, 5958, 16, 2872, 16, 8043, 16, 5342, 65, 272, 410, 30, 562, 12, 16382, 67, 23509, 414, 12, 18088, 3719, 5342, 24, 272, 410, 30, 562, 12, 16382, 67, 3676, 12, 18088, 3719, 2872, 28, 272, 2 ]
title = u'Check and &Repair',
title = u'C&heck and Repair',
def makeVisibleHourMenuItems(parcel): """ Create the 'Visible Hours' submenu. Should look like: Automatic --------- 5 hours 6 hours
0f34bfb39c65fb7fde6515f91e68765902a9d99c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/0f34bfb39c65fb7fde6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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 6207, 13433, 4599, 3126, 12, 1065, 2183, 4672, 3536, 1788, 326, 296, 6207, 670, 4390, 11, 27539, 18, 9363, 2324, 3007, 30, 225, 11809, 4941, 300, 788, 1381, 7507, 1666, 7507, 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 ]
address_state = models.USStateField('State',maxlength=5,blank=True, null=True, core=True)
address_state = models.USStateField('State',blank=True, null=True, core=True)
def __str__(self): return '%s Zip Codes that are less than %s miles from %s' % \ (len(self.zipcodes.split(',')), self.distance, self.zip_code)
0ffc962cfe9560f9565ca5549049c88e639607e5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12041/0ffc962cfe9560f9565ca5549049c88e639607e5/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 1995, 87, 8603, 8347, 716, 854, 5242, 2353, 738, 87, 312, 1449, 628, 738, 87, 11, 738, 521, 261, 1897, 12, 2890, 18, 4450, 7000, 18, 4939, 12, 2187, 6134, 3631, 365, 18, 8969, 16, 365, 18, 4450, 67, 710, 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, 1001, 701, 972, 12, 2890, 4672, 327, 1995, 87, 8603, 8347, 716, 854, 5242, 2353, 738, 87, 312, 1449, 628, 738, 87, 11, 738, 521, 261, 1897, 12, 2890, 18, 4450, 7000, 18, 4939, 12, 2187, 6134, 3631, 365, 18, 8969, 16, 365, 18, 4450, 67, 710, 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 ]
if err[0] in errno.errorcode: error = err[1]
if err[0] in (errno.ECONNRESET, errno.ENOTCONN, errno.ESHUTDOWN, \ errno.ECONNABORTED): self.handle_close() return
def handle_error(self): """Called when an exception is raised and not otherwise handled.""" self.cmd_channel.debug("DTPHandler.handle_error()") try: raise # if error is connection related we provide a detailed # information about it except socket.error, err: if err[0] in errno.errorcode: error = err[1] else: error = "Unknown connection error" # an error could occur in case we fail reading / writing # from / to file (e.g. file system gets full) except EnvironmentError, err: error = _strerror(err) except: # some other exception occurred; we don't want to provide # confidential error messages to user so we return a # generic "unknown error" response. logerror(traceback.format_exc()) error = "Unknown error" self.cmd_channel.respond("426 %s; transfer aborted." %error) self.close()
08a44a0f4f817f270bef740e82e4911e8e40f8fd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/08a44a0f4f817f270bef740e82e4911e8e40f8fd/ftpserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 1636, 12, 2890, 4672, 3536, 8185, 1347, 392, 1520, 353, 11531, 471, 486, 3541, 7681, 12123, 365, 18, 4172, 67, 4327, 18, 4148, 2932, 9081, 52, 1503, 18, 4110, 67, 1636, 1435, 7923, 775, 30, 1002, 468, 309, 555, 353, 1459, 3746, 732, 5615, 279, 6864, 468, 1779, 2973, 518, 1335, 2987, 18, 1636, 16, 393, 30, 225, 309, 393, 63, 20, 65, 316, 261, 19088, 18, 41, 27733, 26665, 16, 8402, 18, 1157, 1974, 27733, 16, 8402, 18, 41, 2664, 1693, 12711, 16, 521, 8402, 18, 41, 27733, 2090, 11245, 4672, 365, 18, 4110, 67, 4412, 1435, 327, 469, 30, 555, 273, 315, 4874, 1459, 555, 6, 468, 392, 555, 3377, 3334, 316, 648, 732, 2321, 6453, 342, 7410, 468, 628, 342, 358, 585, 261, 73, 18, 75, 18, 585, 2619, 5571, 1983, 13, 1335, 7518, 668, 16, 393, 30, 555, 273, 389, 701, 1636, 12, 370, 13, 1335, 30, 468, 2690, 1308, 1520, 7841, 31, 732, 2727, 1404, 2545, 358, 5615, 468, 2195, 350, 2001, 555, 2743, 358, 729, 1427, 732, 327, 279, 468, 5210, 315, 8172, 555, 6, 766, 18, 613, 1636, 12, 21696, 18, 2139, 67, 10075, 10756, 555, 273, 315, 4874, 555, 6, 365, 18, 4172, 67, 4327, 18, 17863, 2932, 24, 5558, 738, 87, 31, 7412, 18166, 1199, 738, 1636, 13, 365, 18, 4412, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 1636, 12, 2890, 4672, 3536, 8185, 1347, 392, 1520, 353, 11531, 471, 486, 3541, 7681, 12123, 365, 18, 4172, 67, 4327, 18, 4148, 2932, 9081, 52, 1503, 18, 4110, 67, 1636, 1435, 7923, 775, 30, 1002, 468, 309, 555, 353, 1459, 3746, 732, 5615, 279, 6864, 468, 1779, 2973, 518, 1335, 2987, 18, 1636, 16, 393, 30, 225, 309, 393, 63, 20, 65, 316, 261, 19088, 18, 41, 27733, 26665, 16, 8402, 18, 1157, 1974, 27733, 16, 8402, 18, 41, 2664, 1693, 12711, 16, 521, 8402, 18, 41, 27733, 2090, 11245, 4672, 365, 18, 4110, 67, 4412, 1435, 327, 469, 30, 555, 273, 315, 4874, 1459, 555, 6, 468, 392, 555, 3377, 3334, 316, 648, 732, 2 ]
if not isinstance(targetpath, unicode): encoding = detect(targetpath)['encoding'] try: targetpath = targetpath.decode(encoding) except: targetpath = targetpath.decode('utf-8', 'replace') targetpath = targetpath.encode(filesystem_encoding)
def _extract_member(self, member, targetpath, pwd): """Extract the ZipInfo object 'member' to a physical file on the path targetpath. """ # build the destination pathname, replacing # forward slashes to platform specific separators. if targetpath[-1:] == "/": targetpath = targetpath[:-1]
90bf890e10e1b94de2516aed57e6ff57395a5843 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/90bf890e10e1b94de2516aed57e6ff57395a5843/zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8004, 67, 5990, 12, 2890, 16, 3140, 16, 1018, 803, 16, 14720, 4672, 3536, 4976, 326, 8603, 966, 733, 296, 5990, 11, 358, 279, 11640, 585,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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, 389, 8004, 67, 5990, 12, 2890, 16, 3140, 16, 1018, 803, 16, 14720, 4672, 3536, 4976, 326, 8603, 966, 733, 296, 5990, 11, 358, 279, 11640, 585, 603, 326, 589, 1018, 803, 18, 3536, 468, 1361, 326, 2929, 9806, 16, 13993, 468, 5104, 19034, 358, 4072, 2923, 14815, 18, 309, 1018, 803, 18919, 21, 26894, 422, 4016, 30, 1018, 803, 273, 1018, 803, 10531, 17, 21, 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 ]
date.XLALGreenwichMeanSiderealTime(gps)
date.XLALGreenwichMeanSiderealTime(sim.get_peak(instrument))
def hrss_in_instrument(sim, instrument): """ Given an injection and an instrument, compute and return the h_rss of the injection as should be observed in the instrument. That is, project the waveform onto the instrument, and return the root integrated strain squared. """ if sim.coordinates != "EQUATORIAL": raise ValueError, sim.coordinates detector = inject.cached_detector[inject.prefix_to_name[instrument]] gps = { "H1": date.LIGOTimeGPS(sim.h_peak_time, sim.h_peak_time_ns), "H2": date.LIGOTimeGPS(sim.h_peak_time, sim.h_peak_time_ns), "L1": date.LIGOTimeGPS(sim.l_peak_time, sim.l_peak_time_ns) }[instrument] fplus, fcross = inject.XLALComputeDetAMResponse( detector.response, sim.longitude, # ra sim.latitude, # dec sim.polarization, date.XLALGreenwichMeanSiderealTime(gps) ) return abs(fplus) * sim.hrss
38fd7d077f44c411b43d42667ddb342e953966a5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/38fd7d077f44c411b43d42667ddb342e953966a5/SimBurstUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15407, 1049, 67, 267, 67, 22818, 12, 9812, 16, 10353, 4672, 3536, 16803, 392, 10380, 471, 392, 10353, 16, 3671, 471, 327, 326, 366, 67, 25151, 434, 326, 10380, 487, 1410, 506, 12117, 316, 326, 10353, 18, 225, 12466, 353, 16, 1984, 326, 31511, 10170, 326, 10353, 16, 471, 327, 326, 1365, 31121, 16853, 21778, 18, 3536, 309, 3142, 18, 16941, 480, 315, 41, 3500, 3575, 6365, 6877, 1002, 2068, 16, 3142, 18, 16941, 13826, 273, 4590, 18, 7097, 67, 8238, 1229, 63, 22170, 18, 3239, 67, 869, 67, 529, 63, 22818, 13563, 20985, 273, 288, 315, 44, 21, 6877, 1509, 18, 2053, 16387, 950, 28983, 12, 9812, 18, 76, 67, 10244, 67, 957, 16, 3142, 18, 76, 67, 10244, 67, 957, 67, 2387, 3631, 315, 44, 22, 6877, 1509, 18, 2053, 16387, 950, 28983, 12, 9812, 18, 76, 67, 10244, 67, 957, 16, 3142, 18, 76, 67, 10244, 67, 957, 67, 2387, 3631, 315, 48, 21, 6877, 1509, 18, 2053, 16387, 950, 28983, 12, 9812, 18, 80, 67, 10244, 67, 957, 16, 3142, 18, 80, 67, 10244, 67, 957, 67, 2387, 13, 289, 63, 22818, 65, 284, 10103, 16, 8036, 3984, 273, 4590, 18, 23668, 1013, 7018, 4986, 2192, 1064, 12, 13826, 18, 2740, 16, 3142, 18, 16867, 16, 202, 7, 767, 3142, 18, 16967, 16, 202, 7, 2109, 3142, 18, 3915, 297, 1588, 16, 1509, 18, 23668, 1013, 21453, 91, 1354, 15312, 11067, 822, 287, 950, 12, 9812, 18, 588, 67, 10244, 12, 22818, 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, 15407, 1049, 67, 267, 67, 22818, 12, 9812, 16, 10353, 4672, 3536, 16803, 392, 10380, 471, 392, 10353, 16, 3671, 471, 327, 326, 366, 67, 25151, 434, 326, 10380, 487, 1410, 506, 12117, 316, 326, 10353, 18, 225, 12466, 353, 16, 1984, 326, 31511, 10170, 326, 10353, 16, 471, 327, 326, 1365, 31121, 16853, 21778, 18, 3536, 309, 3142, 18, 16941, 480, 315, 41, 3500, 3575, 6365, 6877, 1002, 2068, 16, 3142, 18, 16941, 13826, 273, 4590, 18, 7097, 67, 8238, 1229, 63, 22170, 18, 3239, 67, 869, 67, 529, 63, 22818, 13563, 20985, 273, 288, 315, 44, 21, 6877, 1509, 18, 2053, 16387, 950, 28983, 12, 9812, 18, 76, 67, 10244, 67, 957, 16, 3142, 18, 76, 2 ]
self.hboxlayout67.addWidget(self.ok_btn) self.gridlayout.addLayout(self.hboxlayout67,1,0,1,1)
self.hboxlayout65.addWidget(self.ok_btn) self.gridlayout.addLayout(self.hboxlayout65,1,0,1,1)
def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,917,661).size()).expandedTo(UserPrefsDialog.minimumSizeHint()))
752b48c67dcf97437d2cb83fa267b09487665da0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/752b48c67dcf97437d2cb83fa267b09487665da0/UserPrefsDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 18, 53, 1225, 12, 23310, 4670, 18, 53, 6120, 12, 20, 16, 20, 16, 29, 4033, 16, 6028, 21, 2934, 1467, 1435, 2934, 17336, 774, 12, 1299, 1386, 2556, 6353, 18, 15903, 1225, 7002, 1435, 3719, 2, 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, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 18, 53, 1225, 12, 23310, 4670, 18, 53, 6120, 12, 20, 16, 20, 16, 29, 4033, 16, 6028, 21, 2934, 1467, 1435, 2934, 17336, 774, 12, 1299, 1386, 2556, 6353, 18, 15903, 1225, 7002, 1435, 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 ]
...<a href=" ...<a href="
...<a href=" ...<a href="
def consume_digest(self): digest = list(self.digest) del self.digest[:] return digest
f0b04506a5c04612b3f8b659e09d5165d893bbef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12308/f0b04506a5c04612b3f8b659e09d5165d893bbef/digest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7865, 67, 10171, 12, 2890, 4672, 5403, 273, 666, 12, 2890, 18, 10171, 13, 1464, 365, 18, 10171, 10531, 65, 327, 5403, 2, 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, 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, 7865, 67, 10171, 12, 2890, 4672, 5403, 273, 666, 12, 2890, 18, 10171, 13, 1464, 365, 18, 10171, 10531, 65, 327, 5403, 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 ]
archive_test_name = '%s/%s-actual%s' % (self._options.archive_name, test_basename, suffix)
archive_test_name = 'layout-test-results/%s-actual%s' % (test_basename, suffix)
def _ExtractAndAddNewBaselines(self, archive_file): """Extract new baselines from archive and add them to SVN repository.
a8cca2e7f89f106d5b2cdf9f818191a14c4afb8b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/a8cca2e7f89f106d5b2cdf9f818191a14c4afb8b/rebaseline.py
[ 1, 8585, 326, 22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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4976, 1876, 986, 1908, 11494, 14567, 12, 2890, 16, 5052, 67, 768, 4672, 3536, 4976, 394, 2580, 14567, 628, 5052, 471, 527, 2182, 358, 29537, 50, 3352, 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 ]
error ("Expected to find proper channel creation, but error found:");
error ("Expected to find proper channel creation, but error found:")
def test_04 (): # call to initialize a context ctx = vortex.Ctx (); # call to init ctx if not ctx.init (): error ("Failed to init Vortex context"); return False; # call to create a connection conn = vortex.Connection (ctx, host, port); # check connection status after if if not conn.is_ok (): error ("Expected to find proper connection result, but found error. Error code was: " + str(conn.status) + ", message: " + conn.error_msg); return False; # now create a channel channel = conn.open_channel (0, REGRESSION_URI); if not channel: error ("Expected to find proper channel creation, but error found:"); # get first message error = conn.pop_channel_error (); while error: error ("Found error message: " + str (error.code) + ": " + error.msg); # next message error = conn.pop_channel_error (); return False; # check channel installed if conn.num_channels != 2: error ("Expected to find only two channels installed (administrative BEEP channel 0 and test channel) but found: " + conn.num_channels ()); return False; # now close the channel if not channel.close (): error ("Expected to find proper channel close operation, but error found: "); # get first message error = conn.pop_channel_error (); while error: error ("Found error message: " + str (error.code) + ": " + error.msg); # next message error = conn.pop_channel_error (); return False; # check channel installed if conn.num_channels != 1: error ("Expected to find only one channel installed (administrative BEEP channel 0) but found: " + conn.num_channels ()); return False; # now close the connection (already shutted down) conn.close (); ctx.exit () # finish ctx del ctx return True;
44bc361f3b497230e1d601079e2df89085d4b1cd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1306/44bc361f3b497230e1d601079e2df89085d4b1cd/vortex-regression-client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3028, 1832, 30, 468, 745, 358, 4046, 279, 819, 1103, 273, 331, 20873, 18, 6442, 261, 1769, 225, 468, 745, 358, 1208, 1103, 309, 486, 1103, 18, 2738, 1832, 30, 555, 7566, 2925, 358, 1208, 776, 20873, 819, 8863, 327, 1083, 31, 225, 468, 745, 358, 752, 279, 1459, 1487, 273, 331, 20873, 18, 1952, 261, 5900, 16, 1479, 16, 1756, 1769, 225, 468, 866, 1459, 1267, 1839, 309, 309, 486, 1487, 18, 291, 67, 601, 1832, 30, 555, 7566, 6861, 358, 1104, 5338, 1459, 563, 16, 1496, 1392, 555, 18, 1068, 981, 1703, 30, 315, 397, 609, 12, 4646, 18, 2327, 13, 397, 3104, 883, 30, 315, 397, 1487, 18, 1636, 67, 3576, 1769, 327, 1083, 31, 225, 468, 2037, 752, 279, 1904, 1904, 377, 273, 1487, 18, 3190, 67, 4327, 261, 20, 16, 11980, 862, 4475, 67, 3098, 1769, 225, 309, 486, 1904, 30, 555, 7566, 6861, 358, 1104, 5338, 1904, 6710, 16, 1496, 555, 1392, 2773, 13, 468, 336, 1122, 883, 555, 273, 1487, 18, 5120, 67, 4327, 67, 1636, 261, 1769, 1323, 555, 30, 555, 7566, 2043, 555, 883, 30, 315, 397, 609, 261, 1636, 18, 710, 13, 397, 6398, 315, 397, 555, 18, 3576, 1769, 225, 468, 1024, 883, 555, 273, 1487, 18, 5120, 67, 4327, 67, 1636, 261, 1769, 327, 1083, 31, 225, 468, 866, 1904, 5876, 309, 1487, 18, 2107, 67, 9114, 480, 576, 30, 555, 7566, 6861, 358, 1104, 1338, 2795, 5750, 5876, 261, 3666, 3337, 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, 1842, 67, 3028, 1832, 30, 468, 745, 358, 4046, 279, 819, 1103, 273, 331, 20873, 18, 6442, 261, 1769, 225, 468, 745, 358, 1208, 1103, 309, 486, 1103, 18, 2738, 1832, 30, 555, 7566, 2925, 358, 1208, 776, 20873, 819, 8863, 327, 1083, 31, 225, 468, 745, 358, 752, 279, 1459, 1487, 273, 331, 20873, 18, 1952, 261, 5900, 16, 1479, 16, 1756, 1769, 225, 468, 866, 1459, 1267, 1839, 309, 309, 486, 1487, 18, 291, 67, 601, 1832, 30, 555, 7566, 6861, 358, 1104, 5338, 1459, 563, 16, 1496, 1392, 555, 18, 1068, 981, 1703, 30, 315, 397, 609, 12, 4646, 18, 2327, 13, 397, 3104, 883, 30, 315, 397, 1487, 18, 1636, 67, 3576, 1769, 327, 2 ]
def makeBound( self ) :
def makeRandomBound( self ) :
def makeBound( self ) : b1 = V3d( random.random(), random.random(), random.random() ) b2 = V3d( random.random(), random.random(), random.random() ) bound = Box3d( b1 ) bound.extendBy( b2 ) return bound
4ad6372a07364aefd9c635be6abf8692f532b8cb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9042/4ad6372a07364aefd9c635be6abf8692f532b8cb/BoundedKDTree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 8529, 3499, 12, 365, 262, 294, 324, 21, 273, 776, 23, 72, 12, 2744, 18, 9188, 9334, 2744, 18, 9188, 9334, 2744, 18, 9188, 1435, 262, 324, 22, 273, 776, 23, 72, 12, 2744, 18, 9188, 9334, 2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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 8529, 3499, 12, 365, 262, 294, 324, 21, 273, 776, 23, 72, 12, 2744, 18, 9188, 9334, 2744, 18, 9188, 9334, 2744, 18, 9188, 1435, 262, 324, 22, 273, 776, 23, 72, 12, 2744, 18, 9188, 9334, 2744, 18, 9188, 9334, 2744, 18, 9188, 1435, 262, 2489, 273, 8549, 23, 72, 12, 324, 21, 262, 2489, 18, 14313, 858, 12, 324, 22, 262, 225, 327, 2489, 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 ]
items = self.filter(pk_in=pk)
items = self.filter(pk__in=pk)
def update_index(self, pk=None): if pk is not None: if isinstance(pk, (list,tuple)): items = self.filter(pk_in=pk) else: items = self.filter(pk=pk) items[0]._index.all().delete() else: items = self.all() model_type = ContentType.objects.get_for_model(self.model) Index.objects.filter(content_type__pk=model_type.id).delete() IW = {} for item in items: for field, weight in self._fields.items(): for w in set(getattr(item, field).lower().split(' ')): if w and w not in FTS_STOPWORDS[self.language_code]: p = Stemmer(self.language_code) w = p(w) try: iw = IW[w]; except KeyError: iw = IndexWord.objects.get_or_create(word=w)[0] IW[w] = iw i = Index(content_object=item, word=iw) i.save()
4aca2d99d175f9e670328464582c199d146cf07b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11001/4aca2d99d175f9e670328464582c199d146cf07b/simple.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1615, 12, 2890, 16, 2365, 33, 7036, 4672, 309, 2365, 353, 486, 599, 30, 309, 1549, 12, 5465, 16, 261, 1098, 16, 8052, 3719, 30, 1516, 273, 365, 18, 2188, 12, 5465, 972, 267, 33, 5465, 13, 469, 30, 1516, 273, 365, 18, 2188, 12, 5465, 33, 5465, 13, 1516, 63, 20, 65, 6315, 1615, 18, 454, 7675, 3733, 1435, 469, 30, 1516, 273, 365, 18, 454, 1435, 938, 67, 723, 273, 11691, 18, 6911, 18, 588, 67, 1884, 67, 2284, 12, 2890, 18, 2284, 13, 3340, 18, 6911, 18, 2188, 12, 1745, 67, 723, 972, 5465, 33, 2284, 67, 723, 18, 350, 2934, 3733, 1435, 225, 467, 59, 273, 2618, 364, 761, 316, 1516, 30, 364, 652, 16, 3119, 316, 365, 6315, 2821, 18, 3319, 13332, 364, 341, 316, 444, 12, 588, 1747, 12, 1726, 16, 652, 2934, 8167, 7675, 4939, 2668, 296, 3719, 30, 309, 341, 471, 341, 486, 316, 478, 8047, 67, 17513, 23287, 63, 2890, 18, 4923, 67, 710, 14542, 293, 273, 348, 874, 6592, 12, 2890, 18, 4923, 67, 710, 13, 341, 273, 293, 12, 91, 13, 775, 30, 25522, 273, 467, 59, 63, 91, 15533, 1335, 4999, 30, 25522, 273, 3340, 3944, 18, 6911, 18, 588, 67, 280, 67, 2640, 12, 1095, 33, 91, 25146, 20, 65, 467, 59, 63, 91, 65, 273, 25522, 277, 273, 3340, 12, 1745, 67, 1612, 33, 1726, 16, 2076, 33, 22315, 13, 277, 18, 5688, 1435, 2, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1615, 12, 2890, 16, 2365, 33, 7036, 4672, 309, 2365, 353, 486, 599, 30, 309, 1549, 12, 5465, 16, 261, 1098, 16, 8052, 3719, 30, 1516, 273, 365, 18, 2188, 12, 5465, 972, 267, 33, 5465, 13, 469, 30, 1516, 273, 365, 18, 2188, 12, 5465, 33, 5465, 13, 1516, 63, 20, 65, 6315, 1615, 18, 454, 7675, 3733, 1435, 469, 30, 1516, 273, 365, 18, 454, 1435, 938, 67, 723, 273, 11691, 18, 6911, 18, 588, 67, 1884, 67, 2284, 12, 2890, 18, 2284, 13, 3340, 18, 6911, 18, 2188, 12, 1745, 67, 723, 972, 5465, 33, 2284, 67, 723, 18, 350, 2934, 3733, 1435, 225, 467, 59, 273, 2618, 364, 761, 316, 1516, 30, 2 ]
self.thread_loop_queue ((self.sync_stdin, ()))
self.thread_loop_queue ((self.sync_stdin_close, ()))
def thread_loop_init (self): self.select_trigger_log ( 'Press CTRL+C to stop synchronous I/O', 'info' ) self.thread_loop_queue ((self.sync_stdin, ())) return True
7eef55564ab71cf446ae63ad89bf2a261c743f8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/7eef55564ab71cf446ae63ad89bf2a261c743f8d/sync_stdio.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2650, 67, 6498, 67, 2738, 261, 2890, 4672, 365, 18, 4025, 67, 10668, 67, 1330, 261, 296, 11840, 31568, 48, 15, 39, 358, 2132, 12209, 467, 19, 51, 2187, 296, 1376, 11, 262, 365, 18, 5930, 67, 6498, 67, 4000, 14015, 2890, 18, 8389, 67, 21772, 67, 4412, 16, 1832, 3719, 327, 1053, 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, 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, 30, 1652, 2650, 67, 6498, 67, 2738, 261, 2890, 4672, 365, 18, 4025, 67, 10668, 67, 1330, 261, 296, 11840, 31568, 48, 15, 39, 358, 2132, 12209, 467, 19, 51, 2187, 296, 1376, 11, 262, 365, 18, 5930, 67, 6498, 67, 4000, 14015, 2890, 18, 8389, 67, 21772, 67, 4412, 16, 1832, 3719, 327, 1053, 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 ]
return sqrt(px * px + py * py)
return (math.sqrt(px * px + py * py), 0.0)
def get_radius(self, id=None, **kwargs): """ This method returns the radius for a detector pixel in the instrument. The radius = sqrt(x^2 + y^2).
b09a2c26c804baf09139369e68b5e56399eaea1e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/762/b09a2c26c804baf09139369e68b5e56399eaea1e/instrument.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11282, 12, 2890, 16, 612, 33, 7036, 16, 2826, 4333, 4672, 3536, 1220, 707, 1135, 326, 5725, 364, 279, 13826, 4957, 316, 326, 10353, 18, 1021, 5725, 273, 5700, 12, 92, 66, 22, 397, 677, 66, 22, 2934, 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,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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, 336, 67, 11282, 12, 2890, 16, 612, 33, 7036, 16, 2826, 4333, 4672, 3536, 1220, 707, 1135, 326, 5725, 364, 279, 13826, 4957, 316, 326, 10353, 18, 1021, 5725, 273, 5700, 12, 92, 66, 22, 397, 677, 66, 22, 2934, 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 ]
except:
except TypeError:
def span(gens, base_ring=None, check=True, already_echelonized=False): """ Return the $R$-span of gens (a list of vectors) where R = base_ring. EXAMPLES: sage: V = span([[1,2,5], [2,2,2]], QQ); V Vector space of degree 3 and dimension 2 over Rational Field Basis matrix: [ 1 0 -3] [ 0 1 4] sage: span([V.gen(0)], QuadraticField(-7,'a')) Vector space of degree 3 and dimension 1 over Number Field in a with defining polynomial x^2 + 7 Basis matrix: [ 1 0 -3] sage: span([[1,2,3], [2,2,2], [1,2,5]], GF(2)) Vector space of degree 3 and dimension 1 over Finite Field of size 2 Basis matrix: [1 0 1] """ if base_ring is None: R = self.base_ring() else: R = base_ring if not isinstance(R, principal_ideal_domain.PrincipalIdealDomain): raise TypeError, "The base_ring (= %s) must be a principal ideal domain."%R if len(gens) == 0: return FreeModule(R, 0) else: x = gens[0] if isinstance(x,(list,tuple)): try: gens = [ [ R(c) for c in v ] for v in gens ] except: R = R.fraction_field() try: gens = [ [ R(c) for c in v ] for v in gens ] except: raise ValueError, \ "The elements of gens (= %s) must be defined over " + \ "base_ring (= %s) or its field of fractions."%(gens, base_ring) M = FreeModule(R,len(x)) else: M = x.parent() return M.span(gens=gens, base_ring=base_ring, check=check, already_echelonized=already_echelonized)
7f8f223f948e12c9172b086452a98d24651686d8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/7f8f223f948e12c9172b086452a98d24651686d8/free_module.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4548, 12, 23730, 16, 1026, 67, 8022, 33, 7036, 16, 866, 33, 5510, 16, 1818, 67, 8987, 292, 265, 1235, 33, 8381, 4672, 3536, 2000, 326, 271, 54, 8, 17, 3969, 434, 314, 773, 261, 69, 666, 434, 10046, 13, 1625, 534, 273, 1026, 67, 8022, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 776, 273, 4548, 3816, 63, 21, 16, 22, 16, 25, 6487, 306, 22, 16, 22, 16, 22, 65, 6487, 2238, 53, 1769, 776, 5589, 3476, 434, 10782, 890, 471, 4968, 576, 1879, 534, 8371, 2286, 605, 17247, 3148, 30, 306, 404, 225, 374, 300, 23, 65, 306, 374, 225, 404, 225, 1059, 65, 272, 410, 30, 4548, 3816, 58, 18, 4507, 12, 20, 13, 6487, 27258, 20004, 974, 19236, 27, 11189, 69, 26112, 5589, 3476, 434, 10782, 890, 471, 4968, 404, 1879, 3588, 2286, 316, 279, 598, 9364, 16991, 619, 66, 22, 397, 2371, 605, 17247, 3148, 30, 306, 404, 225, 374, 300, 23, 65, 272, 410, 30, 4548, 3816, 63, 21, 16, 22, 16, 23, 6487, 306, 22, 16, 22, 16, 22, 6487, 306, 21, 16, 22, 16, 25, 65, 6487, 611, 42, 12, 22, 3719, 5589, 3476, 434, 10782, 890, 471, 4968, 404, 1879, 9458, 1137, 2286, 434, 963, 576, 605, 17247, 3148, 30, 306, 21, 374, 404, 65, 3536, 309, 1026, 67, 8022, 353, 599, 30, 534, 273, 365, 18, 1969, 67, 8022, 1435, 469, 30, 534, 273, 1026, 67, 8022, 309, 486, 1549, 12, 54, 16, 8897, 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, 4548, 12, 23730, 16, 1026, 67, 8022, 33, 7036, 16, 866, 33, 5510, 16, 1818, 67, 8987, 292, 265, 1235, 33, 8381, 4672, 3536, 2000, 326, 271, 54, 8, 17, 3969, 434, 314, 773, 261, 69, 666, 434, 10046, 13, 1625, 534, 273, 1026, 67, 8022, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 776, 273, 4548, 3816, 63, 21, 16, 22, 16, 25, 6487, 306, 22, 16, 22, 16, 22, 65, 6487, 2238, 53, 1769, 776, 5589, 3476, 434, 10782, 890, 471, 4968, 576, 1879, 534, 8371, 2286, 605, 17247, 3148, 30, 306, 404, 225, 374, 300, 23, 65, 306, 374, 225, 404, 225, 1059, 65, 272, 410, 30, 4548, 3816, 58, 18, 4507, 12, 20, 2 ]
raise NotImplementedError('subclasses must implement this')
return []
def valdoc_links(self): raise NotImplementedError('subclasses must implement this')
017a8cb9d99e3e95b9cce7f876da9039c2e7d303 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/017a8cb9d99e3e95b9cce7f876da9039c2e7d303/apidoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1244, 2434, 67, 7135, 12, 2890, 4672, 1002, 11206, 2668, 1717, 4701, 1297, 2348, 333, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100 ]
self.body += tw.classdef self.body += tw.initdef
self.extractCode(tw)
def generate(self, sdict, alternateWriter):
e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 2890, 16, 272, 1576, 16, 12184, 2289, 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, 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16, 12184, 2289, 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 ]
if job.inputdata._name == 'DQ2Dataset':
if job.inputdata and job.inputdata._name == 'DQ2Dataset':
def prepare(self,app,appsubconfig,appmasterconfig,jobmasterconfig): """prepare the subjob specific configuration"""
6c067c7712a55742b67b8a78becedfcb3c7a6c60 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/6c067c7712a55742b67b8a78becedfcb3c7a6c60/AthenaLCGRTHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 12, 2890, 16, 2910, 16, 11411, 373, 1425, 16, 2910, 7525, 1425, 16, 4688, 7525, 1425, 4672, 3536, 9366, 326, 720, 4688, 2923, 1664, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 12, 2890, 16, 2910, 16, 11411, 373, 1425, 16, 2910, 7525, 1425, 16, 4688, 7525, 1425, 4672, 3536, 9366, 326, 720, 4688, 2923, 1664, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
attachments_dir = os.path.join(self.env_path, 'attachments')
self.attachments_dir = os.path.join(self.env_path, 'attachments')
def setUp(self): self.env_path = os.path.join(tempfile.gettempdir(), 'trac-tempenv') os.mkdir(self.env_path) self.db = InMemoryDatabase() attachments_dir = os.path.join(self.env_path, 'attachments') config = Configuration(None) config.setdefault('attachment', 'max_size', 512) self.env = Mock(config=config, log=logger_factory('test'), get_attachments_dir=lambda: attachments_dir, get_db_cnx=lambda: self.db) self.perm = Mock(assert_permission=lambda x: None, has_permission=lambda x: True)
f6dd111f3138341c34de1877ba14fed73fb04112 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/f6dd111f3138341c34de1877ba14fed73fb04112/attachment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 365, 18, 3074, 67, 803, 273, 1140, 18, 803, 18, 5701, 12, 5814, 768, 18, 588, 5814, 1214, 9334, 296, 313, 1077, 17, 874, 1907, 90, 6134, 1140, 18, 26686, 12, 2890, 18, 3074, 67, 803, 13, 365, 18, 1966, 273, 657, 6031, 4254, 1435, 365, 18, 17828, 67, 1214, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 3074, 67, 803, 16, 296, 17828, 6134, 642, 273, 4659, 12, 7036, 13, 642, 18, 542, 1886, 2668, 11461, 2187, 296, 1896, 67, 1467, 2187, 13908, 13, 365, 18, 3074, 273, 7867, 12, 1425, 33, 1425, 16, 613, 33, 4901, 67, 6848, 2668, 3813, 19899, 336, 67, 17828, 67, 1214, 33, 14661, 30, 10065, 67, 1214, 16, 336, 67, 1966, 67, 10305, 92, 33, 14661, 30, 365, 18, 1966, 13, 365, 18, 12160, 273, 7867, 12, 11231, 67, 9827, 33, 14661, 619, 30, 599, 16, 711, 67, 9827, 33, 14661, 619, 30, 1053, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 365, 18, 3074, 67, 803, 273, 1140, 18, 803, 18, 5701, 12, 5814, 768, 18, 588, 5814, 1214, 9334, 296, 313, 1077, 17, 874, 1907, 90, 6134, 1140, 18, 26686, 12, 2890, 18, 3074, 67, 803, 13, 365, 18, 1966, 273, 657, 6031, 4254, 1435, 365, 18, 17828, 67, 1214, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 3074, 67, 803, 16, 296, 17828, 6134, 642, 273, 4659, 12, 7036, 13, 642, 18, 542, 1886, 2668, 11461, 2187, 296, 1896, 67, 1467, 2187, 13908, 13, 365, 18, 3074, 273, 7867, 12, 1425, 33, 1425, 16, 613, 33, 4901, 67, 6848, 2668, 3813, 19899, 336, 67, 17828, 67, 1214, 33, 14661, 30, 10065, 67, 2 ]
return '\n'.join(ret)
ret = '\n'.join(ret) if type(ret) != types.UnicodeType: return unicode(ret, self.encoding) return ret def __str__(self): """ String representation of the entry. """ return unicode(self).encode(self.encoding)
def __str__(self, wrapwidth=78): """ Common string representation of the POEntry and MOEntry objects. """ if self.obsolete: delflag = '#~ ' else: delflag = '' ret = [] # write the msgctxt if any if self.msgctxt is not None: ret += self._str_field("msgctxt", delflag, "", self.msgctxt) # write the msgid ret += self._str_field("msgid", delflag, "", self.msgid) # write the msgid_plural if any if self.msgid_plural: ret += self._str_field("msgid_plural", delflag, "", self.msgid_plural) if self.msgstr_plural: # write the msgstr_plural if any msgstrs = self.msgstr_plural keys = list(msgstrs) keys.sort() for index in keys: msgstr = msgstrs[index] plural_index = '[%s]' % index ret += self._str_field("msgstr", delflag, plural_index, msgstr) else: # otherwise write the msgstr ret += self._str_field("msgstr", delflag, "", self.msgstr) ret.append('') return '\n'.join(ret)
9a4fa4a287c3f4dd49bcca38b79fd26496cc4071 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9209/9a4fa4a287c3f4dd49bcca38b79fd26496cc4071/polib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 16, 2193, 2819, 33, 8285, 4672, 3536, 5658, 533, 4335, 434, 326, 13803, 1622, 471, 16070, 1622, 2184, 18, 3536, 309, 365, 18, 10992, 19513, 30, 1464, 6420, 273, 2946, 98, 296, 469, 30, 1464, 6420, 273, 875, 325, 273, 5378, 468, 1045, 326, 1234, 20364, 309, 1281, 309, 365, 18, 3576, 20364, 353, 486, 599, 30, 325, 1011, 365, 6315, 701, 67, 1518, 2932, 3576, 20364, 3113, 1464, 6420, 16, 23453, 365, 18, 3576, 20364, 13, 468, 1045, 326, 24389, 325, 1011, 365, 6315, 701, 67, 1518, 2932, 3576, 350, 3113, 1464, 6420, 16, 23453, 365, 18, 3576, 350, 13, 468, 1045, 326, 24389, 67, 15203, 309, 1281, 309, 365, 18, 3576, 350, 67, 15203, 30, 325, 1011, 365, 6315, 701, 67, 1518, 2932, 3576, 350, 67, 15203, 3113, 1464, 6420, 16, 23453, 365, 18, 3576, 350, 67, 15203, 13, 309, 365, 18, 27439, 313, 67, 15203, 30, 468, 1045, 326, 8733, 313, 67, 15203, 309, 1281, 8733, 28007, 273, 365, 18, 27439, 313, 67, 15203, 1311, 273, 666, 12, 27439, 28007, 13, 1311, 18, 3804, 1435, 364, 770, 316, 1311, 30, 8733, 313, 273, 8733, 28007, 63, 1615, 65, 7978, 67, 1615, 273, 21848, 87, 3864, 738, 770, 325, 1011, 365, 6315, 701, 67, 1518, 2932, 27439, 313, 3113, 1464, 6420, 16, 7978, 67, 1615, 16, 8733, 313, 13, 469, 30, 468, 3541, 1045, 326, 8733, 313, 325, 1011, 365, 6315, 701, 67, 1518, 2932, 27439, 313, 3113, 1464, 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, 1001, 701, 972, 12, 2890, 16, 2193, 2819, 33, 8285, 4672, 3536, 5658, 533, 4335, 434, 326, 13803, 1622, 471, 16070, 1622, 2184, 18, 3536, 309, 365, 18, 10992, 19513, 30, 1464, 6420, 273, 2946, 98, 296, 469, 30, 1464, 6420, 273, 875, 325, 273, 5378, 468, 1045, 326, 1234, 20364, 309, 1281, 309, 365, 18, 3576, 20364, 353, 486, 599, 30, 325, 1011, 365, 6315, 701, 67, 1518, 2932, 3576, 20364, 3113, 1464, 6420, 16, 23453, 365, 18, 3576, 20364, 13, 468, 1045, 326, 24389, 325, 1011, 365, 6315, 701, 67, 1518, 2932, 3576, 350, 3113, 1464, 6420, 16, 23453, 365, 18, 3576, 350, 13, 468, 1045, 326, 24389, 67, 15203, 309, 1281, 309, 365, 18, 3576, 2 ]
self.storeName(alias or mod)
if alias: self._resolveDots(name) self.storeName(alias) else: self.storeName(mod)
def visitImport(self, node): self.set_lineno(node) for name, alias in node.names: if VERSION > 1: self.emit('LOAD_CONST', None) self.emit('IMPORT_NAME', name) mod = name.split(".")[0] self.storeName(alias or mod)
dcbf87292da508865ba4a1421cb35577f9787bdd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/dcbf87292da508865ba4a1421cb35577f9787bdd/pycodegen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 5010, 12, 2890, 16, 756, 4672, 365, 18, 542, 67, 17782, 12, 2159, 13, 364, 508, 16, 2308, 316, 756, 18, 1973, 30, 309, 8456, 405, 404, 30, 365, 18, 18356, 2668, 7783, 67, 26411, 2187, 599, 13, 365, 18, 18356, 2668, 20445, 67, 1985, 2187, 508, 13, 681, 273, 508, 18, 4939, 2932, 1199, 25146, 20, 65, 365, 18, 2233, 461, 12, 4930, 578, 681, 13, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 5010, 12, 2890, 16, 756, 4672, 365, 18, 542, 67, 17782, 12, 2159, 13, 364, 508, 16, 2308, 316, 756, 18, 1973, 30, 309, 8456, 405, 404, 30, 365, 18, 18356, 2668, 7783, 67, 26411, 2187, 599, 13, 365, 18, 18356, 2668, 20445, 67, 1985, 2187, 508, 13, 681, 273, 508, 18, 4939, 2932, 1199, 25146, 20, 65, 365, 18, 2233, 461, 12, 4930, 578, 681, 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 ]
return list(set([r['user'] for r in revs
result = list(set([r['user'] for r in revs
def getAuthors(self, title, revision=None): """Return names of non-bot, non-anon users for non-minor changes of given article (before given revsion). @returns: set of principal authors @rtype: set([unicode]) """
bf941eaf746ddabd5d3c54510943c23b7865476d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/bf941eaf746ddabd5d3c54510943c23b7865476d/mwapidb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14191, 1383, 12, 2890, 16, 2077, 16, 6350, 33, 7036, 4672, 3536, 990, 1257, 434, 1661, 17, 4819, 16, 1661, 17, 304, 265, 3677, 364, 1661, 17, 17364, 3478, 434, 864, 7559, 261, 5771, 864, 5588, 87, 285, 2934, 225,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14191, 1383, 12, 2890, 16, 2077, 16, 6350, 33, 7036, 4672, 3536, 990, 1257, 434, 1661, 17, 4819, 16, 1661, 17, 304, 265, 3677, 364, 1661, 17, 17364, 3478, 434, 864, 7559, 261, 5771, 864, 5588, 87, 285, 2934, 225, 632, 6154, 30, 444, 434, 8897, 14494, 632, 86, 723, 30, 444, 3816, 9124, 5717, 3536, 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 ]
(self.chunk_mb, disk, self.memory_mb))
self.chunk_mb, disk, self.memory_mb)
def test_one_disk_chunk(self, disk, chunk): logging.info("testing %d MB files on %s in %d MB memory", (self.chunk_mb, disk, self.memory_mb)) cmd = "%s/disktest -m %d -f %s/testfile.%d -i -S" % \ (self.srcdir, self.chunk_mb, disk, chunk) p = subprocess.Popen(cmd, shell=True) return(p.pid)
1eea256a604f674689fb1ff8191ea88bcf1f13d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/1eea256a604f674689fb1ff8191ea88bcf1f13d3/disktest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 476, 67, 10863, 67, 6551, 12, 2890, 16, 4234, 16, 2441, 4672, 2907, 18, 1376, 2932, 3813, 310, 738, 72, 17897, 1390, 603, 738, 87, 316, 738, 72, 17897, 3778, 3113, 365, 18, 6551, 67, 1627, 16, 4234, 16, 365, 18, 7858, 67, 1627, 13, 1797, 273, 2213, 87, 19, 10863, 3813, 300, 81, 738, 72, 300, 74, 738, 87, 19, 3813, 768, 7866, 72, 300, 77, 300, 55, 6, 738, 521, 261, 2890, 18, 4816, 1214, 16, 365, 18, 6551, 67, 1627, 16, 4234, 16, 2441, 13, 293, 273, 6652, 18, 52, 3190, 12, 4172, 16, 5972, 33, 5510, 13, 327, 12, 84, 18, 6610, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 476, 67, 10863, 67, 6551, 12, 2890, 16, 4234, 16, 2441, 4672, 2907, 18, 1376, 2932, 3813, 310, 738, 72, 17897, 1390, 603, 738, 87, 316, 738, 72, 17897, 3778, 3113, 365, 18, 6551, 67, 1627, 16, 4234, 16, 365, 18, 7858, 67, 1627, 13, 1797, 273, 2213, 87, 19, 10863, 3813, 300, 81, 738, 72, 300, 74, 738, 87, 19, 3813, 768, 7866, 72, 300, 77, 300, 55, 6, 738, 521, 261, 2890, 18, 4816, 1214, 16, 365, 18, 6551, 67, 1627, 16, 4234, 16, 2441, 13, 293, 273, 6652, 18, 52, 3190, 12, 4172, 16, 5972, 33, 5510, 13, 327, 12, 84, 18, 6610, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return unicode(self)
return unicode(self).encode('utf-8')
def __str__(self): return unicode(self)
b3ee66c4985bbd05093af6684622cb40abf9e427 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/b3ee66c4985bbd05093af6684622cb40abf9e427/objects.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 5252, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 5252, 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, -100, -100, -100, -100, -100, -100, -100, -100, -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._name = "The fast crystal for %s2 with shape [%d,%d]"%(type[0],l1,l2)
if int(2*l1)%2 == 0: l1_str = "%d"%l1 l2_str = "%d"%l2 else: assert self.cartanType[0] == 'B' and int(2*l2)%2 == 1 l1_str = "%d/2"%int(2*l1) l2_str = "%d/2"%int(2*l2) self._name = "The fast crystal for %s2 with shape [%s,%s]"%(type[0],l1_str,l2_str)
def __init__(self, type, l1, l2): self.delpat = [] self.gampat = [] if not type[1] == 2: raise NotImplementedError if type[0] == 'A': for b in range(l2,-1,-1): for a in range(l1,l2-1,-1): for c in range(a,b-1,-1): a3 = l1-a a2 = l1+l2-a-b a1 = a-c b1 = max(a3,a2-a1); b2 = a1+a3; b3 = min(a2-a3,a1); self.delpat.append([a1,a2,a3]) self.gampat.append([b1,b2,b3]) elif type[0] == 'B' or type[0] == 'C': if type[0] == 'B': [m1, m2] = [l1+l2, l1-l2] else: [m1, m2] = [l1, l2] for b in range(m2,-1,-1): for a in range(m1,m2-1,-1): for c in range(b,a+1): for d in range(c,-1,-1): a1 = c-d a2 = m1+m2+c-a-2*b a3 = m1+m2-a-b a4 = m1-a b1 = max(a4,2*a3-a2,a2-2*a1) b2 = max(a3, a1+a4, a1+2*a3-a2) b3 = min(a2, 2*a2-2*a3+a4, 2*a1+a4) b4 = min(a1, a2-a3, a3-a4) if type[0] == 'B': self.delpat.append([a1,a2,a3,a4]) self.gampat.append([b1,b2,b3,b4]) else: self.gampat.append([a1,a2,a3,a4]) self.delpat.append([b1,b2,b3,b4]) else: raise NotImplementedError
74b48a2c98d3be610d509fe3f598329e84d5ee20 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/74b48a2c98d3be610d509fe3f598329e84d5ee20/fast_crystal_experiment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 618, 16, 328, 21, 16, 328, 22, 4672, 365, 18, 72, 1992, 270, 273, 5378, 365, 18, 75, 931, 270, 273, 5378, 309, 486, 618, 63, 21, 65, 422, 576, 30, 1002, 11206, 309, 618, 63, 20, 65, 422, 296, 37, 4278, 364, 324, 316, 1048, 12, 80, 22, 16, 17, 21, 16, 17, 21, 4672, 364, 279, 316, 1048, 12, 80, 21, 16, 80, 22, 17, 21, 16, 17, 21, 4672, 364, 276, 316, 1048, 12, 69, 16, 70, 17, 21, 16, 17, 21, 4672, 279, 23, 273, 328, 21, 17, 69, 279, 22, 273, 328, 21, 15, 80, 22, 17, 69, 17, 70, 279, 21, 273, 279, 17, 71, 324, 21, 273, 225, 943, 12, 69, 23, 16, 69, 22, 17, 69, 21, 1769, 324, 22, 273, 279, 21, 15, 69, 23, 31, 324, 23, 273, 1131, 12, 69, 22, 17, 69, 23, 16, 69, 21, 1769, 365, 18, 72, 1992, 270, 18, 6923, 3816, 69, 21, 16, 69, 22, 16, 69, 23, 5717, 365, 18, 75, 931, 270, 18, 6923, 3816, 70, 21, 16, 70, 22, 16, 70, 23, 5717, 1327, 618, 63, 20, 65, 422, 296, 38, 11, 578, 618, 63, 20, 65, 422, 296, 39, 4278, 309, 618, 63, 20, 65, 422, 296, 38, 4278, 306, 81, 21, 16, 312, 22, 65, 273, 306, 80, 21, 15, 80, 22, 16, 328, 21, 17, 80, 22, 65, 469, 30, 306, 81, 21, 16, 312, 22, 65, 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, 1001, 2738, 972, 12, 2890, 16, 618, 16, 328, 21, 16, 328, 22, 4672, 365, 18, 72, 1992, 270, 273, 5378, 365, 18, 75, 931, 270, 273, 5378, 309, 486, 618, 63, 21, 65, 422, 576, 30, 1002, 11206, 309, 618, 63, 20, 65, 422, 296, 37, 4278, 364, 324, 316, 1048, 12, 80, 22, 16, 17, 21, 16, 17, 21, 4672, 364, 279, 316, 1048, 12, 80, 21, 16, 80, 22, 17, 21, 16, 17, 21, 4672, 364, 276, 316, 1048, 12, 69, 16, 70, 17, 21, 16, 17, 21, 4672, 279, 23, 273, 328, 21, 17, 69, 279, 22, 273, 328, 21, 15, 80, 22, 17, 69, 17, 70, 279, 21, 273, 279, 17, 71, 324, 2 ]
self.setMaxlag('60')
if self.maxlag == 5: self.setMaxlag(120)
def setSiteinfo(self): params = {'action':'query', 'meta':'siteinfo', 'siprop':'general|namespaces' } self.setMaxlag('60') req = api.APIRequest(self, params) info = req.query() self.setMaxlag() sidata = info['query']['general'] self.siteinfo = {} for item in sidata: self.siteinfo[item] = sidata[item] nsdata = info['query']['namespaces'] self.namespaces = {} for ns in nsdata: nsinfo = nsdata[ns] self.namespaces[nsinfo['id']] = nsinfo if not 'writeapi' in sidata: print "WARNING: Write-API not enabled, you will not be able to edit" version = re.search("\d\.(\d\d)", self.siteinfo['generator']) if not int(version.group(1)) >= 13: # Will this even work on 13? print "WARNING: Some features may not work on older versions of MediaWiki"
303b1fb30187f94bebd077256d4e1acde33dfb70 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10544/303b1fb30187f94bebd077256d4e1acde33dfb70/wiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 4956, 1376, 12, 2890, 4672, 859, 273, 13666, 1128, 11, 2497, 2271, 2187, 296, 3901, 11, 2497, 4256, 1376, 2187, 296, 28477, 1764, 11, 2497, 12259, 96, 16078, 11, 289, 309, 365, 18, 1896, 22532, 422, 1381, 30, 365, 18, 542, 2747, 22532, 12, 22343, 13, 1111, 273, 1536, 18, 2557, 691, 12, 2890, 16, 859, 13, 1123, 273, 1111, 18, 2271, 1435, 365, 18, 542, 2747, 22532, 1435, 7348, 396, 273, 1123, 3292, 2271, 21712, 12259, 3546, 365, 18, 4256, 1376, 273, 2618, 364, 761, 316, 7348, 396, 30, 365, 18, 4256, 1376, 63, 1726, 65, 273, 7348, 396, 63, 1726, 65, 3153, 892, 273, 1123, 3292, 2271, 21712, 16078, 3546, 365, 18, 16078, 273, 2618, 364, 3153, 316, 3153, 892, 30, 3153, 1376, 273, 3153, 892, 63, 2387, 65, 365, 18, 16078, 63, 2387, 1376, 3292, 350, 3546, 65, 273, 3153, 1376, 309, 486, 296, 2626, 2425, 11, 316, 7348, 396, 30, 1172, 315, 9511, 30, 2598, 17, 2557, 486, 3696, 16, 1846, 903, 486, 506, 7752, 358, 3874, 6, 1177, 273, 283, 18, 3072, 31458, 72, 5834, 4713, 72, 64, 72, 2225, 16, 365, 18, 4256, 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859, 273, 13666, 1128, 11, 2497, 2271, 2187, 296, 3901, 11, 2497, 4256, 1376, 2187, 296, 28477, 1764, 11, 2497, 12259, 96, 16078, 11, 289, 309, 365, 18, 1896, 22532, 422, 1381, 30, 365, 18, 542, 2747, 22532, 12, 22343, 13, 1111, 273, 1536, 18, 2557, 691, 12, 2890, 16, 859, 13, 1123, 273, 1111, 18, 2271, 1435, 365, 18, 542, 2747, 22532, 1435, 7348, 396, 273, 1123, 3292, 2271, 21712, 12259, 3546, 365, 18, 4256, 1376, 273, 2618, 364, 761, 316, 7348, 396, 30, 365, 18, 4256, 1376, 63, 1726, 65, 273, 7348, 396, 63, 1726, 65, 3153, 892, 273, 1123, 3292, 2271, 21712, 16078, 3546, 365, 18, 16078, 273, 2618, 2 ]
s.append('\n') s.append('\n')
s.append('\r\n') s.append('\r\n')
def render(self): h=self._headers s=[]
11b2a67e1419ea80c20f06030a12e4740918dc15 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/11b2a67e1419ea80c20f06030a12e4740918dc15/Client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 4672, 366, 33, 2890, 6315, 2485, 272, 33, 8526, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 4672, 366, 33, 2890, 6315, 2485, 272, 33, 8526, 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 ]
tags, notag_only = self.get_selected_tags()
tags, notag_only = self.intended_tags
def on_color_changed(self, widget): gtkcolor = widget.get_current_color() strcolor = gtk.color_selection_palette_to_string([gtkcolor]) tags, notag_only = self.get_selected_tags() for t in tags: t.set_attribute("color", strcolor) self.task_tv.refresh() self.tags_tv.refresh()
f18a90ed1f96430110b88e448fc2cdc6d6584463 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/f18a90ed1f96430110b88e448fc2cdc6d6584463/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3266, 67, 6703, 12, 2890, 16, 3604, 4672, 22718, 3266, 273, 3604, 18, 588, 67, 2972, 67, 3266, 1435, 609, 3266, 273, 22718, 18, 3266, 67, 10705, 67, 26474, 67, 869, 67, 1080, 3816, 4521, 79, 3266, 5717, 2342, 16, 486, 346, 67, 3700, 273, 365, 18, 474, 3934, 67, 4156, 364, 268, 316, 2342, 30, 268, 18, 542, 67, 4589, 2932, 3266, 3113, 609, 3266, 13, 365, 18, 4146, 67, 24161, 18, 9144, 1435, 365, 18, 4156, 67, 24161, 18, 9144, 1435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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3266, 67, 6703, 12, 2890, 16, 3604, 4672, 22718, 3266, 273, 3604, 18, 588, 67, 2972, 67, 3266, 1435, 609, 3266, 273, 22718, 18, 3266, 67, 10705, 67, 26474, 67, 869, 67, 1080, 3816, 4521, 79, 3266, 5717, 2342, 16, 486, 346, 67, 3700, 273, 365, 18, 474, 3934, 67, 4156, 364, 268, 316, 2342, 30, 268, 18, 542, 67, 4589, 2932, 3266, 3113, 609, 3266, 13, 365, 18, 4146, 67, 24161, 18, 9144, 1435, 365, 18, 4156, 67, 24161, 18, 9144, 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 ]
pager.set_source(lines)
def display_help(self, topic='index', narg=None): if not hasattr(self.ui, 'open_pager'): return
d3ec909839a1b110232d932d0d01a2ed032fae80 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5729/d3ec909839a1b110232d932d0d01a2ed032fae80/actions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 67, 5201, 12, 2890, 16, 3958, 2218, 1615, 2187, 290, 3175, 33, 7036, 4672, 309, 486, 3859, 12, 2890, 18, 4881, 16, 296, 3190, 67, 24081, 11, 4672, 327, 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, 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, 2562, 67, 5201, 12, 2890, 16, 3958, 2218, 1615, 2187, 290, 3175, 33, 7036, 4672, 309, 486, 3859, 12, 2890, 18, 4881, 16, 296, 3190, 67, 24081, 11, 4672, 327, 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 ]
DEBUG(s)
def redraw( self ): """Redraw the screen.""" self.scr.erase() for k, s in enumerate( self.s_hist ): DEBUG(s) if not s: continue self.iy, self.ix = self.scr.getyx() for i in s.split('\x04'): self.echo( i, redraw=False ) if k < len( self.s_hist ) -1: self.scr.addstr( '\n' ) self.iy, self.ix = self.scr.getyx() self.print_line( self.s ) self.scr.refresh() self.statusbar.refresh()
98fd931909afbdb62a662c947572a0fa3d65a4a7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6932/98fd931909afbdb62a662c947572a0fa3d65a4a7/bpython.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16540, 12, 365, 262, 30, 3536, 3715, 1899, 326, 5518, 12123, 365, 18, 24638, 18, 264, 448, 1435, 364, 417, 16, 272, 316, 4241, 12, 365, 18, 87, 67, 11488, 262, 30, 309, 486, 272, 30, 1324, 365, 18, 77, 93, 16, 365, 18, 697, 273, 365, 18, 24638, 18, 588, 93, 92, 1435, 364, 277, 316, 272, 18, 4939, 2668, 64, 92, 3028, 11, 4672, 365, 18, 12946, 12, 277, 16, 16540, 33, 8381, 262, 309, 417, 411, 562, 12, 365, 18, 87, 67, 11488, 262, 300, 21, 30, 365, 18, 24638, 18, 1289, 701, 12, 2337, 82, 11, 262, 365, 18, 77, 93, 16, 365, 18, 697, 273, 365, 18, 24638, 18, 588, 93, 92, 1435, 365, 18, 1188, 67, 1369, 12, 365, 18, 87, 262, 365, 18, 24638, 18, 9144, 1435, 365, 18, 2327, 3215, 18, 9144, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16540, 12, 365, 262, 30, 3536, 3715, 1899, 326, 5518, 12123, 365, 18, 24638, 18, 264, 448, 1435, 364, 417, 16, 272, 316, 4241, 12, 365, 18, 87, 67, 11488, 262, 30, 309, 486, 272, 30, 1324, 365, 18, 77, 93, 16, 365, 18, 697, 273, 365, 18, 24638, 18, 588, 93, 92, 1435, 364, 277, 316, 272, 18, 4939, 2668, 64, 92, 3028, 11, 4672, 365, 18, 12946, 12, 277, 16, 16540, 33, 8381, 262, 309, 417, 411, 562, 12, 365, 18, 87, 67, 11488, 262, 300, 21, 30, 365, 18, 24638, 18, 1289, 701, 12, 2337, 82, 11, 262, 365, 18, 77, 93, 16, 365, 18, 697, 273, 365, 18, 24638, 18, 588, 93, 92, 1435, 2 ]
['group=', 'subclass=', 'subclass-assert='])
['group=', 'subclass=', 'subclass-assert=', 'iface-quark-prefix='])
def types_to_gtypes(types): return [type_to_gtype(t)[1] for t in types]
43f87b16749e4aed1d02061f26d3e4efca865f55 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8150/43f87b16749e4aed1d02061f26d3e4efca865f55/glib-client-gen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1953, 67, 869, 67, 75, 2352, 12, 2352, 4672, 327, 306, 723, 67, 869, 67, 75, 723, 12, 88, 25146, 21, 65, 364, 268, 316, 1953, 65, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1953, 67, 869, 67, 75, 2352, 12, 2352, 4672, 327, 306, 723, 67, 869, 67, 75, 723, 12, 88, 25146, 21, 65, 364, 268, 316, 1953, 65, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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.databasefile, 'profile', self.topography)
self.databasefile, self.topography, 'profile')
def set_database(self, verbose=True): """Create meteorological database Requires - input file - topography - windprofile """ executable = os.path.join(self.utilities_dir, 'SetDbs', 'SetDbs.PUB.exe') logfile = self.basepath + '.SetDbs.log' if verbose: header('Building meteorological database (SetDbs)')
c7ec9d7a361fc0608004df7bff21437c322293dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5868/c7ec9d7a361fc0608004df7bff21437c322293dd/wrapper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 6231, 12, 2890, 16, 3988, 33, 5510, 4672, 3536, 1684, 5100, 73, 280, 18224, 2063, 225, 16412, 300, 810, 585, 300, 1760, 15669, 300, 17064, 5040, 3536, 282, 9070, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 1367, 1961, 67, 1214, 16, 296, 694, 40, 2038, 2187, 296, 694, 40, 2038, 18, 17217, 18, 14880, 6134, 225, 15204, 273, 365, 18, 1969, 803, 397, 2418, 694, 40, 2038, 18, 1330, 11, 225, 309, 3988, 30, 1446, 2668, 16713, 5100, 73, 280, 18224, 2063, 261, 694, 40, 2038, 2506, 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, 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803, 18, 5701, 12, 2890, 18, 1367, 1961, 67, 1214, 16, 296, 694, 40, 2038, 2187, 296, 694, 40, 2038, 18, 17217, 18, 14880, 6134, 225, 15204, 273, 365, 18, 1969, 803, 397, 2418, 694, 40, 2038, 18, 1330, 11, 225, 309, 3988, 30, 1446, 2668, 16713, 5100, 73, 280, 18224, 2063, 261, 694, 40, 2038, 2506, 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 ]
if os.path.exists(key): chooser.set_filename(self.client.get_string(key))
file = self.client.get_string(key) if os.path.exists(file): chooser.set_uri(file)
def setup_chooser(self, key, chooser): """sets up png choosers""" fil = gtk.FileFilter() fil.set_name("PNG Files") fil.add_pattern("*.png") fil.add_pattern("*.PNG") chooser.add_filter(fil) preview = gtk.Image() chooser.set_preview_widget(preview) chooser.connect("update-preview", self.update_preview, preview) try: if os.path.exists(key): chooser.set_filename(self.client.get_string(key)) else: self.client.set_string(BAR_PATTERN_URI, "~") except TypeError: raise "\nKey: "+key+" isn't set.\nRestarting AWN usually solves this issue\n" chooser.connect("selection-changed", self.chooser_changed, key)
260dfb319cbeb03f750cdc46b3e1743c33c7a8aa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8416/260dfb319cbeb03f750cdc46b3e1743c33c7a8aa/awnPreferences.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 2599, 13164, 12, 2890, 16, 498, 16, 5011, 13164, 4672, 3536, 4424, 731, 14476, 24784, 414, 8395, 661, 273, 22718, 18, 29837, 1435, 661, 18, 542, 67, 529, 2932, 23092, 6471, 7923, 661, 18, 1289, 67, 4951, 2932, 11146, 6446, 7923, 661, 18, 1289, 67, 4951, 2932, 11146, 23092, 7923, 5011, 13164, 18, 1289, 67, 2188, 12, 7540, 13, 10143, 273, 22718, 18, 2040, 1435, 5011, 13164, 18, 542, 67, 12102, 67, 6587, 12, 12102, 13, 5011, 13164, 18, 3612, 2932, 2725, 17, 12102, 3113, 365, 18, 2725, 67, 12102, 16, 10143, 13, 775, 30, 585, 273, 365, 18, 2625, 18, 588, 67, 1080, 12, 856, 13, 309, 1140, 18, 803, 18, 1808, 12, 768, 4672, 5011, 13164, 18, 542, 67, 1650, 12, 768, 13, 469, 30, 365, 18, 2625, 18, 542, 67, 1080, 12, 21908, 67, 10831, 67, 3098, 16, 19910, 7923, 1335, 3580, 30, 1002, 1548, 82, 653, 30, 13773, 856, 9078, 5177, 1404, 444, 8403, 82, 15057, 310, 432, 5665, 11234, 3704, 3324, 333, 5672, 64, 82, 6, 5011, 13164, 18, 3612, 2932, 10705, 17, 6703, 3113, 365, 18, 2599, 13164, 67, 6703, 16, 498, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 2599, 13164, 12, 2890, 16, 498, 16, 5011, 13164, 4672, 3536, 4424, 731, 14476, 24784, 414, 8395, 661, 273, 22718, 18, 29837, 1435, 661, 18, 542, 67, 529, 2932, 23092, 6471, 7923, 661, 18, 1289, 67, 4951, 2932, 11146, 6446, 7923, 661, 18, 1289, 67, 4951, 2932, 11146, 23092, 7923, 5011, 13164, 18, 1289, 67, 2188, 12, 7540, 13, 10143, 273, 22718, 18, 2040, 1435, 5011, 13164, 18, 542, 67, 12102, 67, 6587, 12, 12102, 13, 5011, 13164, 18, 3612, 2932, 2725, 17, 12102, 3113, 365, 18, 2725, 67, 12102, 16, 10143, 13, 775, 30, 585, 273, 365, 18, 2625, 18, 588, 67, 1080, 12, 856, 13, 309, 1140, 18, 803, 18, 1808, 12, 768, 4672, 2 ]
image = self(letter)
image = self.image(letter)
def fixed_point(self, letter): r""" Returns the fixed point of ``self`` beginning by the given ``letter``.
504ba7b1455ea380dd159b2aa42179a48a8ef384 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/504ba7b1455ea380dd159b2aa42179a48a8ef384/morphism.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5499, 67, 1153, 12, 2890, 16, 9471, 4672, 436, 8395, 2860, 326, 5499, 1634, 434, 12176, 2890, 10335, 8435, 635,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5499, 67, 1153, 12, 2890, 16, 9471, 4672, 436, 8395, 2860, 326, 5499, 1634, 434, 12176, 2890, 10335, 8435, 635, 326, 864, 12176, 13449, 68, 8338, 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 ]
def __init__(self, master=None):
def __init__(self, master=None, value=None, name=None):
def __init__(self, master=None): """Construct an integer variable.
337487e3b87f887abdb3b47781508c6437cd7e94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/337487e3b87f887abdb3b47781508c6437cd7e94/Tkinter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 33, 7036, 16, 460, 33, 7036, 16, 508, 33, 7036, 4672, 3536, 7249, 392, 3571, 2190, 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 ]
if win32service.__file__.find("_d")>=0:
if os.path.splitext(win32service.__file__)[0].endswith("_d"):
def LocatePythonServiceExe(exeName = None): # Try and find the specified EXE somewhere. If specifically registered, # use it. Otherwise look down sys.path, and the global PATH environment. if exeName is None: if win32service.__file__.find("_d")>=0: exeName = "PythonService_d.exe" else: exeName = "PythonService.exe" # See if it exists as specified if os.path.isfile(exeName): return win32api.GetFullPathName(exeName) baseName = os.path.splitext(os.path.basename(exeName))[0] try: exeName = win32api.RegQueryValue(win32con.HKEY_LOCAL_MACHINE, "Software\\Python\\%s\\%s" % (baseName, sys.winver)) if os.path.isfile(exeName): return exeName raise RuntimeError, "The executable '%s' is registered as the Python " \ "service exe, but it does not exist as specified" \ % exeName except win32api.error: # OK - not there - lets go a-searchin' for path in sys.path: look = os.path.join(path, exeName) if os.path.isfile(look): return win32api.GetFullPathName(look) # Try the global Path. try: return win32api.SearchPath(None, exeName)[0] except win32api.error: msg = "%s is not correctly registered\nPlease locate and run %s, and it will self-register\nThen run this service registration process again." % (exeName, exeName) raise error, msg
488308570bf7b262d7350f993916b31d387b40c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/488308570bf7b262d7350f993916b31d387b40c2/win32serviceutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2851, 340, 15774, 1179, 424, 73, 12, 14880, 461, 273, 599, 4672, 468, 6161, 471, 1104, 326, 1269, 5675, 41, 22234, 18, 225, 971, 21195, 4104, 16, 468, 999, 518, 18, 225, 5272, 2324, 2588, 2589, 18, 803, 16, 471, 326, 2552, 7767, 3330, 18, 309, 15073, 461, 353, 599, 30, 309, 1140, 18, 803, 18, 4939, 408, 12, 8082, 1578, 3278, 16186, 768, 972, 25146, 20, 8009, 5839, 1918, 2932, 67, 72, 6, 4672, 15073, 461, 273, 315, 15774, 1179, 67, 72, 18, 14880, 6, 469, 30, 15073, 461, 273, 315, 15774, 1179, 18, 14880, 6, 468, 2164, 309, 518, 1704, 487, 1269, 309, 1140, 18, 803, 18, 291, 768, 12, 14880, 461, 4672, 327, 5657, 1578, 2425, 18, 967, 24173, 461, 12, 14880, 461, 13, 16162, 273, 1140, 18, 803, 18, 4939, 408, 12, 538, 18, 803, 18, 13909, 12, 14880, 461, 3719, 63, 20, 65, 775, 30, 15073, 461, 273, 5657, 1578, 2425, 18, 1617, 1138, 620, 12, 8082, 1578, 591, 18, 44, 3297, 67, 14922, 67, 5535, 1792, 3740, 16, 315, 21742, 1695, 15774, 1695, 9, 87, 1695, 9, 87, 6, 738, 261, 1969, 461, 16, 2589, 18, 8082, 502, 3719, 309, 1140, 18, 803, 18, 291, 768, 12, 14880, 461, 4672, 327, 15073, 461, 1002, 7265, 16, 315, 1986, 9070, 1995, 87, 11, 353, 4104, 487, 326, 6600, 315, 521, 315, 3278, 15073, 16, 1496, 518, 1552, 486, 1005, 487, 1269, 6, 521, 738, 15073, 461, 1335, 5657, 1578, 2425, 18, 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, 2851, 340, 15774, 1179, 424, 73, 12, 14880, 461, 273, 599, 4672, 468, 6161, 471, 1104, 326, 1269, 5675, 41, 22234, 18, 225, 971, 21195, 4104, 16, 468, 999, 518, 18, 225, 5272, 2324, 2588, 2589, 18, 803, 16, 471, 326, 2552, 7767, 3330, 18, 309, 15073, 461, 353, 599, 30, 309, 1140, 18, 803, 18, 4939, 408, 12, 8082, 1578, 3278, 16186, 768, 972, 25146, 20, 8009, 5839, 1918, 2932, 67, 72, 6, 4672, 15073, 461, 273, 315, 15774, 1179, 67, 72, 18, 14880, 6, 469, 30, 15073, 461, 273, 315, 15774, 1179, 18, 14880, 6, 468, 2164, 309, 518, 1704, 487, 1269, 309, 1140, 18, 803, 18, 291, 768, 12, 14880, 461, 4672, 327, 5657, 1578, 2 ]
if len(user_absroot) == 0: absroot = tempfile.mkdtemp(prefix="abs-" + arch + "-") absroots.append(absroot) print "\nChecking out clean abs tree" for repo in include_paths: print "==>", repo if not os.path.exists(abs_conf_dir + '/supfile.' + repo): print "Cannot find file " + abs_conf_dir + '/supfile.' + repo + ". Aborting..." sys.exit() create_supfile(abs_conf_dir + '/supfile.' + repo, fsup, cvs_tags[arch]) cmd = 'csup -L 0 -r 0 -g -b ' + absroot + ' -c .sup ' + fsup os.system(cmd) else: absroot = user_absroot absroots.append(absroot)
absroot = user_absroot
def print_usage(): print "" print "Usage: check_archlinux [OPTION]" print "" print "Options:" print " --abs-tree=<path> Check specified tree (assumes the abs tree" print " is i686 unless overridden with --arch)" print " --arch=<arch> Use specified arch (e.g. 'x86_64')" print " -g Generate graphical dependency tree(s)" print " -h, --help Show this help and exit" print "" print "Examples:" print "\n Check all arches and do fresh cvs checkouts:" print " check_archlinux" print "\n Check x_86_64 only and do fresh cvs checkout:" print " check_archlinux --arch=x86_64" print "\n Check existing i686 abs tree:" print " check_archlinux --abs-tree=/var/abs" print "\n Check existing x86_64 abs tree and also generate dep tree image:" print " check_archlinux --abs-tree=/var/abs --arch=x86_64 -g" print ""
5cf896673b4b73d6591f52acbcba5a1dfc803f6c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3911/5cf896673b4b73d6591f52acbcba5a1dfc803f6c/check_archlinux.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 9167, 13332, 1172, 1408, 1172, 315, 5357, 30, 866, 67, 991, 20132, 306, 7425, 4279, 1172, 1408, 1172, 315, 1320, 2773, 1172, 315, 225, 1493, 5113, 17, 3413, 27127, 803, 34, 6647, 2073, 1269, 2151, 261, 428, 6411, 326, 2417, 2151, 6, 1172, 315, 17311, 353, 277, 26, 5292, 3308, 11000, 598, 1493, 991, 2225, 1172, 315, 225, 1493, 991, 27127, 991, 34, 9079, 2672, 1269, 6637, 261, 73, 18, 75, 18, 296, 92, 5292, 67, 1105, 23291, 1172, 315, 225, 300, 75, 12900, 6654, 2667, 1706, 4904, 2151, 12, 87, 2225, 1172, 315, 225, 300, 76, 16, 1493, 5201, 5375, 9674, 333, 2809, 471, 2427, 6, 1172, 1408, 1172, 315, 23905, 2773, 1172, 1548, 82, 225, 2073, 777, 6637, 281, 471, 741, 12186, 276, 6904, 13926, 87, 2773, 1172, 315, 565, 866, 67, 991, 20132, 6, 1172, 1548, 82, 225, 2073, 619, 67, 5292, 67, 1105, 1338, 471, 741, 12186, 276, 6904, 13926, 2773, 1172, 315, 565, 866, 67, 991, 20132, 1493, 991, 33, 92, 5292, 67, 1105, 6, 1172, 1548, 82, 225, 2073, 2062, 277, 26, 5292, 2417, 2151, 2773, 1172, 315, 565, 866, 67, 991, 20132, 1493, 5113, 17, 3413, 33, 19, 1401, 19, 5113, 6, 1172, 1548, 82, 225, 2073, 2062, 619, 5292, 67, 1105, 2417, 2151, 471, 2546, 2103, 5993, 2151, 1316, 2773, 1172, 315, 565, 866, 67, 991, 20132, 1493, 5113, 17, 3413, 33, 19, 1401, 19, 5113, 1493, 991, 33, 92, 5292, 67, 1105, 300, 75, 6, 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, 1172, 67, 9167, 13332, 1172, 1408, 1172, 315, 5357, 30, 866, 67, 991, 20132, 306, 7425, 4279, 1172, 1408, 1172, 315, 1320, 2773, 1172, 315, 225, 1493, 5113, 17, 3413, 27127, 803, 34, 6647, 2073, 1269, 2151, 261, 428, 6411, 326, 2417, 2151, 6, 1172, 315, 17311, 353, 277, 26, 5292, 3308, 11000, 598, 1493, 991, 2225, 1172, 315, 225, 1493, 991, 27127, 991, 34, 9079, 2672, 1269, 6637, 261, 73, 18, 75, 18, 296, 92, 5292, 67, 1105, 23291, 1172, 315, 225, 300, 75, 12900, 6654, 2667, 1706, 4904, 2151, 12, 87, 2225, 1172, 315, 225, 300, 76, 16, 1493, 5201, 5375, 9674, 333, 2809, 471, 2427, 6, 1172, 1408, 1172, 315, 23905, 2773, 1172, 1548, 82, 2 ]
if sys.platform.startswith("win"): nl = True else: nl = False content = RunShell(["svn", "cat", filename], universal_newlines=nl)
content = RunShell(["svn", "cat", filename])
def GetBaseFile(self, filename): status = RunShell(["svn", "status", "--ignore-externals", filename]) if not status: StatusUpdate("svn status returned no output for %s" % filename) sys.exit(False) status_lines = status.splitlines() # If file is in a cl, the output will begin with # "\n--- Changelist 'cl_name':\n". See # http://svn.collab.net/repos/svn/trunk/notes/changelist-design.txt if (len(status_lines) == 3 and not status_lines[0] and status_lines[1].startswith("--- Changelist")): status = status_lines[2] else: status = status_lines[0] # If a file is copied its status will be "A +", which signifies # "addition-with-history". See "svn st" for more information. We need to # upload the original file or else diff parsing will fail if the file was # edited. if ((status[0] == "A" and status[3] != "+") or (status[0] == " " and status[1] == "M")): # property changed content = "" elif (status[0] in ("M", "D", "R") or (status[0] == "A" and status[3] == "+")): mimetype = RunShell(["svn", "-rBASE", "propget", "svn:mime-type", filename], silent_ok=True) if mimetype.startswith("application/octet-stream"): content = "" else: # On Windows svn cat gives \r\n, and calling subprocess.Popen turns # them into \r\r\n, so use universal newlines to avoid the extra \r. if sys.platform.startswith("win"): nl = True else: nl = False content = RunShell(["svn", "cat", filename], universal_newlines=nl) keywords = RunShell(["svn", "-rBASE", "propget", "svn:keywords", filename], silent_ok=True) if keywords: content = self._CollapseKeywords(content, keywords) else: StatusUpdate("svn status returned unexpected output: %s" % status) sys.exit(False) return content, status[0:5]
703e95c1aa72e7cdf399933bd7a0267d5b60f5ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/476/703e95c1aa72e7cdf399933bd7a0267d5b60f5ec/upload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 2171, 812, 12, 2890, 16, 1544, 4672, 1267, 273, 1939, 13220, 3816, 6, 31505, 3113, 315, 2327, 3113, 5238, 6185, 17, 338, 798, 1031, 3113, 1544, 5717, 309, 486, 1267, 30, 2685, 1891, 2932, 31505, 1267, 2106, 1158, 876, 364, 738, 87, 6, 738, 1544, 13, 2589, 18, 8593, 12, 8381, 13, 1267, 67, 3548, 273, 1267, 18, 4939, 3548, 1435, 468, 971, 585, 353, 316, 279, 927, 16, 326, 876, 903, 2376, 598, 468, 1548, 82, 6062, 1680, 539, 5449, 296, 830, 67, 529, 4278, 64, 82, 9654, 225, 2164, 468, 1062, 2207, 31505, 18, 1293, 7411, 18, 2758, 19, 15564, 19, 31505, 19, 26133, 19, 12903, 19, 24083, 5449, 17, 16934, 18, 5830, 309, 261, 1897, 12, 2327, 67, 3548, 13, 422, 890, 471, 486, 1267, 67, 3548, 63, 20, 65, 471, 1267, 67, 3548, 63, 21, 8009, 17514, 1918, 2932, 6062, 1680, 539, 5449, 6, 3719, 30, 1267, 273, 1267, 67, 3548, 63, 22, 65, 469, 30, 1267, 273, 1267, 67, 3548, 63, 20, 65, 468, 971, 279, 585, 353, 9268, 2097, 1267, 903, 506, 315, 37, 225, 397, 3113, 1492, 1573, 5032, 468, 315, 1289, 608, 17, 1918, 17, 8189, 9654, 225, 2164, 315, 31505, 384, 6, 364, 1898, 1779, 18, 225, 1660, 1608, 358, 468, 3617, 326, 2282, 585, 578, 469, 3122, 5811, 903, 2321, 309, 326, 585, 1703, 468, 18532, 18, 309, 14015, 2327, 63, 20, 65, 422, 315, 37, 6, 471, 1267, 63, 23, 65, 480, 13773, 7923, 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, 968, 2171, 812, 12, 2890, 16, 1544, 4672, 1267, 273, 1939, 13220, 3816, 6, 31505, 3113, 315, 2327, 3113, 5238, 6185, 17, 338, 798, 1031, 3113, 1544, 5717, 309, 486, 1267, 30, 2685, 1891, 2932, 31505, 1267, 2106, 1158, 876, 364, 738, 87, 6, 738, 1544, 13, 2589, 18, 8593, 12, 8381, 13, 1267, 67, 3548, 273, 1267, 18, 4939, 3548, 1435, 468, 971, 585, 353, 316, 279, 927, 16, 326, 876, 903, 2376, 598, 468, 1548, 82, 6062, 1680, 539, 5449, 296, 830, 67, 529, 4278, 64, 82, 9654, 225, 2164, 468, 1062, 2207, 31505, 18, 1293, 7411, 18, 2758, 19, 15564, 19, 31505, 19, 26133, 19, 12903, 19, 24083, 5449, 17, 16934, 18, 5830, 309, 261, 2 ]
assert a.b == desired
assert_equal(a.b,desired)
def generic_new(self, code, desired): args = ['a'] a = foo() res = inline_tools.inline(code,args) assert a.b == desired
1a2e32f8d57897230b5265290279639d73dda37e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/1a2e32f8d57897230b5265290279639d73dda37e/test_scxx_object.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5210, 67, 2704, 12, 2890, 16, 981, 16, 6049, 4672, 833, 273, 10228, 69, 3546, 279, 273, 8431, 1435, 400, 273, 6370, 67, 6642, 18, 10047, 12, 710, 16, 1968, 13, 1815, 279, 18, 70, 422, 6049, 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,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 12, 710, 16, 1968, 13, 1815, 279, 18, 70, 422, 6049, 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 ]
if attroffs in map and hasattr(object, map[attroffs]): return getattr(object, map[attroffs])
if attroffs in attrmap and hasattr(obj, attrmap[attroffs]): return getattr(obj, attrmap[attroffs])
def _IDC_GetAttr(object, map, attroffs): """ Internal function to generically get object attributes Do not use unless you know what you are doing """ if attroffs in map and hasattr(object, map[attroffs]): return getattr(object, map[attroffs]) else: str = "attribute with offset %d not found, check the offset and report the problem" % attroffs raise KeyError, str
244a3cd02a580c0095170004ec30e922f0d1a8a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6984/244a3cd02a580c0095170004ec30e922f0d1a8a6/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 734, 39, 67, 967, 3843, 12, 1612, 16, 852, 16, 2403, 303, 1403, 87, 4672, 3536, 3186, 445, 358, 5210, 1230, 336, 733, 1677, 2256, 486, 999, 3308, 1846, 5055, 4121, 1846, 854, 9957, 3536, 309, 2403, 303, 1403, 87, 316, 1604, 1458, 471, 3859, 12, 2603, 16, 1604, 1458, 63, 4558, 303, 1403, 87, 65, 4672, 327, 3869, 12, 2603, 16, 1604, 1458, 63, 4558, 303, 1403, 87, 5717, 469, 30, 609, 273, 315, 4589, 598, 1384, 738, 72, 486, 1392, 16, 866, 326, 1384, 471, 2605, 326, 6199, 6, 738, 2403, 303, 1403, 87, 1002, 4999, 16, 609, 282, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 734, 39, 67, 967, 3843, 12, 1612, 16, 852, 16, 2403, 303, 1403, 87, 4672, 3536, 3186, 445, 358, 5210, 1230, 336, 733, 1677, 2256, 486, 999, 3308, 1846, 5055, 4121, 1846, 854, 9957, 3536, 309, 2403, 303, 1403, 87, 316, 1604, 1458, 471, 3859, 12, 2603, 16, 1604, 1458, 63, 4558, 303, 1403, 87, 65, 4672, 327, 3869, 12, 2603, 16, 1604, 1458, 63, 4558, 303, 1403, 87, 5717, 469, 30, 609, 273, 315, 4589, 598, 1384, 738, 72, 486, 1392, 16, 866, 326, 1384, 471, 2605, 326, 6199, 6, 738, 2403, 303, 1403, 87, 1002, 4999, 16, 609, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
eq(value, 'text/plain; charset=us-ascii; boundary="BOUNDARY"')
eq(value, 'text/plain; charset="us-ascii"; boundary="BOUNDARY"')
def test_set_boundary(self): eq = self.assertEqual # This one has no existing boundary parameter, but the Content-Type: # header appears fifth. msg = self._msgobj('msg_01.txt') msg.set_boundary('BOUNDARY') header, value = msg.items()[4] eq(header.lower(), 'content-type') eq(value, 'text/plain; charset=us-ascii; boundary="BOUNDARY"') # This one has a Content-Type: header, with a boundary, stuck in the # middle of its headers. Make sure the order is preserved; it should # be fifth. msg = self._msgobj('msg_04.txt') msg.set_boundary('BOUNDARY') header, value = msg.items()[4] eq(header.lower(), 'content-type') eq(value, 'multipart/mixed; boundary="BOUNDARY"') # And this one has no Content-Type: header at all. msg = self._msgobj('msg_03.txt') self.assertRaises(Errors.HeaderParseError, msg.set_boundary, 'BOUNDARY')
676da9a4c9ee5faa9dfccec6b403d8c9200a1502 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/676da9a4c9ee5faa9dfccec6b403d8c9200a1502/test_email.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 542, 67, 16604, 12, 2890, 4672, 7555, 273, 365, 18, 11231, 5812, 468, 1220, 1245, 711, 1158, 2062, 7679, 1569, 16, 1496, 326, 3697, 17, 559, 30, 468, 1446, 14606, 284, 430, 451, 18, 1234, 273, 365, 6315, 3576, 2603, 2668, 3576, 67, 1611, 18, 5830, 6134, 1234, 18, 542, 67, 16604, 2668, 19318, 6043, 6134, 1446, 16, 460, 273, 1234, 18, 3319, 1435, 63, 24, 65, 7555, 12, 3374, 18, 8167, 9334, 296, 1745, 17, 723, 6134, 7555, 12, 1132, 16, 296, 955, 19, 7446, 31, 4856, 1546, 407, 17, 9184, 14432, 7679, 1546, 19318, 6043, 5187, 13, 468, 1220, 1245, 711, 279, 3697, 17, 559, 30, 1446, 16, 598, 279, 7679, 16, 384, 9031, 316, 326, 468, 7689, 434, 2097, 1607, 18, 225, 4344, 3071, 326, 1353, 353, 21096, 31, 518, 1410, 468, 506, 284, 430, 451, 18, 1234, 273, 365, 6315, 3576, 2603, 2668, 3576, 67, 3028, 18, 5830, 6134, 1234, 18, 542, 67, 16604, 2668, 19318, 6043, 6134, 1446, 16, 460, 273, 1234, 18, 3319, 1435, 63, 24, 65, 7555, 12, 3374, 18, 8167, 9334, 296, 1745, 17, 723, 6134, 7555, 12, 1132, 16, 296, 16404, 19, 19562, 31, 7679, 1546, 19318, 6043, 5187, 13, 468, 7835, 333, 1245, 711, 1158, 3697, 17, 559, 30, 1446, 622, 777, 18, 1234, 273, 365, 6315, 3576, 2603, 2668, 3576, 67, 4630, 18, 5830, 6134, 365, 18, 11231, 12649, 6141, 12, 4229, 18, 1864, 21004, 16, 1234, 18, 542, 67, 16604, 16, 296, 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, 1842, 67, 542, 67, 16604, 12, 2890, 4672, 7555, 273, 365, 18, 11231, 5812, 468, 1220, 1245, 711, 1158, 2062, 7679, 1569, 16, 1496, 326, 3697, 17, 559, 30, 468, 1446, 14606, 284, 430, 451, 18, 1234, 273, 365, 6315, 3576, 2603, 2668, 3576, 67, 1611, 18, 5830, 6134, 1234, 18, 542, 67, 16604, 2668, 19318, 6043, 6134, 1446, 16, 460, 273, 1234, 18, 3319, 1435, 63, 24, 65, 7555, 12, 3374, 18, 8167, 9334, 296, 1745, 17, 723, 6134, 7555, 12, 1132, 16, 296, 955, 19, 7446, 31, 4856, 1546, 407, 17, 9184, 14432, 7679, 1546, 19318, 6043, 5187, 13, 468, 1220, 1245, 711, 279, 3697, 17, 559, 30, 1446, 16, 598, 279, 7679, 16, 384, 9031, 2 ]
"timeout (%g) is %g seconds more than expected (%g)"
"timeout (%g) is more than %g seconds more than expected (%g)"
def testConnectTimeout(self): # Test connect() timeout _timeout = 0.001 self.sock.settimeout(_timeout)
b0cfd0cdef66bf7c97d6b083512723840cdbe799 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b0cfd0cdef66bf7c97d6b083512723840cdbe799/test_timeout.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 5215, 2694, 12, 2890, 4672, 468, 7766, 3077, 1435, 2021, 389, 4538, 273, 374, 18, 11664, 365, 18, 15031, 18, 542, 4538, 24899, 4538, 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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, 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, -100, -100 ]
utils.system('./tiobench.pl --dir %s %s' %(self.dir, self.args))
results = utils.system_output('./tiobench.pl --dir %s %s' % (self.dir, self.args)) logging.info(results) results_path = os.path.join(self.resultsdir, 'raw_output_%s' % self.iteration) utils.open_write_close(results_path, results)
def run_once(self, dir = None, args = None): if not dir: self.dir = self.tmpdir else: self.dir = dir if not args: self.args = '--block=4096 --block=8192 --threads=10 --size=1024 --numruns=2' else: self.args = args
0281f30e0a5f4b3c365c40894b4a55ac417a8522 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12268/0281f30e0a5f4b3c365c40894b4a55ac417a8522/tiobench.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 8243, 12, 2890, 16, 1577, 273, 599, 16, 833, 273, 599, 4672, 309, 486, 1577, 30, 365, 18, 1214, 273, 365, 18, 5645, 1214, 469, 30, 365, 18, 1214, 273, 1577, 309, 486, 833, 30, 365, 18, 1968, 273, 3534, 2629, 33, 24, 5908, 26, 1493, 2629, 33, 28, 15561, 1493, 12495, 33, 2163, 1493, 1467, 33, 2163, 3247, 1493, 2107, 20152, 33, 22, 11, 469, 30, 365, 18, 1968, 273, 833, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 8243, 12, 2890, 16, 1577, 273, 599, 16, 833, 273, 599, 4672, 309, 486, 1577, 30, 365, 18, 1214, 273, 365, 18, 5645, 1214, 469, 30, 365, 18, 1214, 273, 1577, 309, 486, 833, 30, 365, 18, 1968, 273, 3534, 2629, 33, 24, 5908, 26, 1493, 2629, 33, 28, 15561, 1493, 12495, 33, 2163, 1493, 1467, 33, 2163, 3247, 1493, 2107, 20152, 33, 22, 11, 469, 30, 365, 18, 1968, 273, 833, 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 ]
print '>>', str
print 'execute', str
def execute(self, str, args=None, debug=0): if args != None: na = [] for a in args: if a == None: a = 'NULL' elif type(a) == types.StringType: a = "'" + a.replace('\\', '\\\\').replace("'", "\\'") + "'" na.append(a) str = str % tuple(na) if debug: print '>>', str self.__ready = 0 self.__result = [{}] self.__send('Q'+str+'\0') while not self.__ready: self.__read_response() result, self.__result = self.__result[:-1], None return result
c377ab97373e232cd084b33e2b9b2ec584fed096 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1238/c377ab97373e232cd084b33e2b9b2ec584fed096/bpgsql.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 609, 16, 833, 33, 7036, 16, 1198, 33, 20, 4672, 309, 833, 480, 599, 30, 9583, 273, 5378, 364, 279, 316, 833, 30, 309, 279, 422, 599, 30, 279, 273, 296, 8560, 11, 1327, 618, 12, 69, 13, 422, 1953, 18, 780, 559, 30, 279, 273, 5862, 397, 279, 18, 2079, 2668, 1695, 2187, 25215, 2934, 2079, 29823, 3113, 1548, 3730, 7923, 397, 5862, 9583, 18, 6923, 12, 69, 13, 609, 273, 609, 738, 3193, 12, 6582, 13, 225, 309, 1198, 30, 1172, 296, 8837, 2187, 609, 225, 365, 16186, 1672, 273, 374, 365, 16186, 2088, 273, 17936, 365, 16186, 4661, 2668, 53, 11, 15, 701, 6797, 64, 20, 6134, 1323, 486, 365, 16186, 1672, 30, 365, 16186, 896, 67, 2740, 1435, 563, 16, 365, 16186, 2088, 273, 365, 16186, 2088, 10531, 17, 21, 6487, 599, 327, 563, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 609, 16, 833, 33, 7036, 16, 1198, 33, 20, 4672, 309, 833, 480, 599, 30, 9583, 273, 5378, 364, 279, 316, 833, 30, 309, 279, 422, 599, 30, 279, 273, 296, 8560, 11, 1327, 618, 12, 69, 13, 422, 1953, 18, 780, 559, 30, 279, 273, 5862, 397, 279, 18, 2079, 2668, 1695, 2187, 25215, 2934, 2079, 29823, 3113, 1548, 3730, 7923, 397, 5862, 9583, 18, 6923, 12, 69, 13, 609, 273, 609, 738, 3193, 12, 6582, 13, 225, 309, 1198, 30, 1172, 296, 8837, 2187, 609, 225, 365, 16186, 1672, 273, 374, 365, 16186, 2088, 273, 17936, 365, 16186, 4661, 2668, 53, 11, 15, 701, 6797, 64, 20, 6134, 1323, 486, 365, 16186, 2 ]
if self.msrp_session is None and isinstance(error.value, ConnectionDone):
if self.shutting_down and isinstance(error.value, ConnectionDone):
def _handle_incoming(self, chunk=None, error=None): notification_center = NotificationCenter() if error is not None: if self.msrp_session is None and isinstance(error.value, ConnectionDone): return ndata = TimestampedNotificationData(context='reading', failure=error, reason=error.getErrorMessage()) notification_center.post_notification('MediaStreamDidFail', self, ndata) elif chunk is not None: method_handler = getattr(self, '_handle_%s' % chunk.method, None) if method_handler is not None: method_handler(chunk)
d154d9385b7e18fdd16c951eda6ee66f1e5dc5d9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/d154d9385b7e18fdd16c951eda6ee66f1e5dc5d9/msrp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 31033, 12, 2890, 16, 2441, 33, 7036, 16, 555, 33, 7036, 4672, 3851, 67, 5693, 273, 8050, 8449, 1435, 309, 555, 353, 486, 599, 30, 309, 365, 18, 674, 25387, 67, 2378, 471, 1549, 12, 1636, 18, 1132, 16, 4050, 7387, 4672, 327, 290, 892, 273, 8159, 329, 4386, 751, 12, 2472, 2218, 21803, 2187, 5166, 33, 1636, 16, 3971, 33, 1636, 18, 588, 14935, 10756, 3851, 67, 5693, 18, 2767, 67, 9927, 2668, 5419, 1228, 18250, 3754, 2187, 365, 16, 290, 892, 13, 1327, 2441, 353, 486, 599, 30, 707, 67, 4176, 273, 3869, 12, 2890, 16, 2070, 4110, 10185, 87, 11, 738, 2441, 18, 2039, 16, 599, 13, 309, 707, 67, 4176, 353, 486, 599, 30, 707, 67, 4176, 12, 6551, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 31033, 12, 2890, 16, 2441, 33, 7036, 16, 555, 33, 7036, 4672, 3851, 67, 5693, 273, 8050, 8449, 1435, 309, 555, 353, 486, 599, 30, 309, 365, 18, 674, 25387, 67, 2378, 471, 1549, 12, 1636, 18, 1132, 16, 4050, 7387, 4672, 327, 290, 892, 273, 8159, 329, 4386, 751, 12, 2472, 2218, 21803, 2187, 5166, 33, 1636, 16, 3971, 33, 1636, 18, 588, 14935, 10756, 3851, 67, 5693, 18, 2767, 67, 9927, 2668, 5419, 1228, 18250, 3754, 2187, 365, 16, 290, 892, 13, 1327, 2441, 353, 486, 599, 30, 707, 67, 4176, 273, 3869, 12, 2890, 16, 2070, 4110, 10185, 87, 11, 738, 2441, 18, 2039, 16, 599, 13, 309, 707, 67, 4176, 353, 2 ]
n = re.compile(regex, re.UNICODE|re.M)
n = re.compile(regex, re.UNICODE|re.DOTALL)
def report_image(self, image_to_report, rep_page = None, com = None, rep_text = None, addings = True, regex = None): """ Function to report the files in the report page when needed. """ if rep_page == None: rep_page = self.rep_page if com == None: com = self.com if rep_text == None: rep_text = self.rep_text another_page = wikipedia.Page(self.site, rep_page) if regex == None: regex = image_to_report try: text_get = another_page.get() except wikipedia.NoPage: text_get = '' except wikipedia.IsRedirectPage: text_get = another_page.getRedirectTarget().get() if len(text_get) >= self.logFulNumber: raise LogIsFull(u"The log page (%s) is full! Please delete the old files reported." % another_page.title()) pos = 0 # The talk page includes "_" between the two names, in this way i replace them to " " n = re.compile(regex, re.UNICODE|re.M) y = n.search(text_get, pos) if y == None: # Adding the log if addings: rep_text = rep_text % image_to_report # Adding the name of the image in the report if not done already another_page.put(text_get + rep_text, comment = com, minorEdit = False) wikipedia.output(u"...Reported...") reported = True else: pos = y.end() wikipedia.output(u"%s is already in the report page." % image_to_report) reported = False return reported
f45f17b2da5bfc90ecd37d48bcac310c9da2dcdf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/f45f17b2da5bfc90ecd37d48bcac310c9da2dcdf/checkimages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 67, 2730, 12, 2890, 16, 1316, 67, 869, 67, 6006, 16, 2071, 67, 2433, 273, 599, 16, 532, 273, 599, 16, 2071, 67, 955, 273, 599, 16, 527, 899, 273, 1053, 16, 3936, 273, 599, 4672, 3536, 4284, 358, 2605, 326, 1390, 316, 326, 2605, 1363, 1347, 3577, 18, 3536, 309, 2071, 67, 2433, 422, 599, 30, 2071, 67, 2433, 273, 365, 18, 14462, 67, 2433, 309, 532, 422, 599, 30, 532, 273, 365, 18, 832, 309, 2071, 67, 955, 422, 599, 30, 2071, 67, 955, 273, 365, 18, 14462, 67, 955, 4042, 67, 2433, 273, 21137, 18, 1964, 12, 2890, 18, 4256, 16, 2071, 67, 2433, 13, 309, 3936, 422, 599, 30, 3936, 273, 1316, 67, 869, 67, 6006, 775, 30, 977, 67, 588, 273, 4042, 67, 2433, 18, 588, 1435, 1335, 21137, 18, 2279, 1964, 30, 977, 67, 588, 273, 875, 1335, 21137, 18, 2520, 5961, 1964, 30, 977, 67, 588, 273, 4042, 67, 2433, 18, 588, 5961, 2326, 7675, 588, 1435, 309, 562, 12, 955, 67, 588, 13, 1545, 365, 18, 1330, 23747, 1854, 30, 1002, 1827, 2520, 5080, 12, 89, 6, 1986, 613, 1363, 6142, 87, 13, 353, 1983, 5, 7801, 1430, 326, 1592, 1390, 14010, 1199, 738, 4042, 67, 2433, 18, 2649, 10756, 949, 273, 374, 468, 1021, 26591, 1363, 6104, 8802, 3086, 326, 2795, 1257, 16, 316, 333, 4031, 277, 1453, 2182, 358, 315, 315, 290, 273, 283, 18, 11100, 12, 7584, 16, 283, 18, 26642, 96, 266, 18, 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, 2605, 67, 2730, 12, 2890, 16, 1316, 67, 869, 67, 6006, 16, 2071, 67, 2433, 273, 599, 16, 532, 273, 599, 16, 2071, 67, 955, 273, 599, 16, 527, 899, 273, 1053, 16, 3936, 273, 599, 4672, 3536, 4284, 358, 2605, 326, 1390, 316, 326, 2605, 1363, 1347, 3577, 18, 3536, 309, 2071, 67, 2433, 422, 599, 30, 2071, 67, 2433, 273, 365, 18, 14462, 67, 2433, 309, 532, 422, 599, 30, 532, 273, 365, 18, 832, 309, 2071, 67, 955, 422, 599, 30, 2071, 67, 955, 273, 365, 18, 14462, 67, 955, 4042, 67, 2433, 273, 21137, 18, 1964, 12, 2890, 18, 4256, 16, 2071, 67, 2433, 13, 309, 3936, 422, 599, 30, 3936, 273, 1316, 67, 2 ]
'square-root elementwise.',
'square-root elementwise. For real x, the domain is restricted to x>=0.',
def __init__(self, nin, nout, identity, docstring, *type_descriptions): self.nin = nin self.nout = nout if identity is None: identity = None_ self.identity = identity self.docstring = docstring self.type_descriptions = [] for td in type_descriptions: self.type_descriptions.extend(td) for td in self.type_descriptions: td.finish_signature(self.nin, self.nout)
c523feaac9020b55e33d90e6bd4e68f0ec77ffcd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/c523feaac9020b55e33d90e6bd4e68f0ec77ffcd/generate_umath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 290, 267, 16, 290, 659, 16, 4215, 16, 14525, 16, 380, 723, 67, 30288, 4672, 365, 18, 82, 267, 273, 290, 267, 365, 18, 82, 659, 273, 290, 659, 309, 4215, 353, 599, 30, 4215, 273, 599, 67, 365, 18, 10781, 273, 4215, 365, 18, 24675, 273, 14525, 365, 18, 723, 67, 30288, 273, 5378, 364, 6655, 316, 618, 67, 30288, 30, 365, 18, 723, 67, 30288, 18, 14313, 12, 4465, 13, 364, 6655, 316, 365, 18, 723, 67, 30288, 30, 6655, 18, 13749, 67, 8195, 12, 2890, 18, 82, 267, 16, 365, 18, 82, 659, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 290, 267, 16, 290, 659, 16, 4215, 16, 14525, 16, 380, 723, 67, 30288, 4672, 365, 18, 82, 267, 273, 290, 267, 365, 18, 82, 659, 273, 290, 659, 309, 4215, 353, 599, 30, 4215, 273, 599, 67, 365, 18, 10781, 273, 4215, 365, 18, 24675, 273, 14525, 365, 18, 723, 67, 30288, 273, 5378, 364, 6655, 316, 618, 67, 30288, 30, 365, 18, 723, 67, 30288, 18, 14313, 12, 4465, 13, 364, 6655, 316, 365, 18, 723, 67, 30288, 30, 6655, 18, 13749, 67, 8195, 12, 2890, 18, 82, 267, 16, 365, 18, 82, 659, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
confirmMainThread()
def actual_init(self, filename): confirmMainThread() self.playbin = gst.element_factory_make('playbin') self.videosink = gst.element_factory_make("fakesink", "videosink") self.playbin.set_property("video-sink", self.videosink) self.audiosink = gst.element_factory_make("fakesink", "audiosink") self.playbin.set_property("audio-sink", self.audiosink)
dad4fc88a54f5edbc781a136e2721baad72ddafc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/dad4fc88a54f5edbc781a136e2721baad72ddafc/gstreamerrenderer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3214, 67, 2738, 12, 2890, 16, 1544, 4672, 365, 18, 1601, 4757, 273, 314, 334, 18, 2956, 67, 6848, 67, 6540, 2668, 1601, 4757, 6134, 365, 18, 6768, 538, 754, 273, 314, 334, 18, 2956, 67, 6848, 67, 6540, 2932, 507, 79, 281, 754, 3113, 315, 6768, 538, 754, 7923, 365, 18, 1601, 4757, 18, 542, 67, 4468, 2932, 9115, 17, 17074, 3113, 365, 18, 6768, 538, 754, 13, 365, 18, 24901, 7441, 754, 273, 314, 334, 18, 2956, 67, 6848, 67, 6540, 2932, 507, 79, 281, 754, 3113, 315, 24901, 7441, 754, 7923, 365, 18, 1601, 4757, 18, 542, 67, 4468, 2932, 11509, 17, 17074, 3113, 365, 18, 24901, 7441, 754, 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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3113, 315, 6768, 538, 754, 7923, 365, 18, 1601, 4757, 18, 542, 67, 4468, 2932, 9115, 17, 17074, 3113, 365, 18, 6768, 538, 754, 13, 365, 18, 24901, 7441, 754, 273, 314, 334, 18, 2956, 67, 6848, 67, 6540, 2932, 507, 79, 281, 754, 3113, 315, 24901, 7441, 754, 7923, 365, 18, 1601, 4757, 18, 542, 67, 4468, 2932, 11509, 17, 17074, 3113, 365, 18, 24901, 7441, 754, 13, 2, -100, -100, -100, -100, -100 ]
def getTargetLabel(self, version): return self.branchMap[version.branch()].trailingLabel()
def shouldClone(self, troveTup, sourceName=None): if troveTup[0].endswith(':source') and self.cloneSources: return True if self.fullRecurse: return True return self._matchesPrimaryTrove(troveTup, sourceName)
48090a0a611c5a2a32181ce3ce6d2db11fdc4a5e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/48090a0a611c5a2a32181ce3ce6d2db11fdc4a5e/clone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1410, 10930, 12, 2890, 16, 23432, 537, 56, 416, 16, 28337, 33, 7036, 4672, 309, 23432, 537, 56, 416, 63, 20, 8009, 5839, 1918, 2668, 30, 3168, 6134, 471, 365, 18, 14056, 8628, 30, 327, 1053, 309, 365, 18, 2854, 426, 17682, 30, 327, 1053, 327, 365, 6315, 8436, 6793, 56, 303, 537, 12, 88, 303, 537, 56, 416, 16, 28337, 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,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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1410, 10930, 12, 2890, 16, 23432, 537, 56, 416, 16, 28337, 33, 7036, 4672, 309, 23432, 537, 56, 416, 63, 20, 8009, 5839, 1918, 2668, 30, 3168, 6134, 471, 365, 18, 14056, 8628, 30, 327, 1053, 309, 365, 18, 2854, 426, 17682, 30, 327, 1053, 327, 365, 6315, 8436, 6793, 56, 303, 537, 12, 88, 303, 537, 56, 416, 16, 28337, 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 ]
mbuild: $(INIT_TARGET) gen_libs $(PCH_TARGET) $(CODA_TARGET)
mbuild: $(INIT_TARGET) $(BC_TARGET) gen_libs $(PCH_TARGET) $(CODA_TARGET)
def GetRemoveDirectoryCommand(self, DirList): return [self._RD_TEMPLATE_[self._FileType] % {'dir':Dir} for Dir in DirList]
c8cd1f15c424e7cb1dd077c48daa85d40c163c2c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/914/c8cd1f15c424e7cb1dd077c48daa85d40c163c2c/GenMake.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 3288, 2853, 2189, 12, 2890, 16, 8446, 682, 4672, 327, 306, 2890, 6315, 20403, 67, 12205, 67, 63, 2890, 6315, 28941, 65, 738, 13666, 1214, 4278, 1621, 97, 364, 8446, 316, 8446, 682, 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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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, 968, 3288, 2853, 2189, 12, 2890, 16, 8446, 682, 4672, 327, 306, 2890, 6315, 20403, 67, 12205, 67, 63, 2890, 6315, 28941, 65, 738, 13666, 1214, 4278, 1621, 97, 364, 8446, 316, 8446, 682, 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 ]
if html.var("show"):
if html.has_var("show") or html.has_var("filled_in"):
def column_selection(title, var_prefix, maxnum, data, order=False):
d9482b3072e84bbef323078dfe1ccbe7bf8d0f6f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/d9482b3072e84bbef323078dfe1ccbe7bf8d0f6f/experimental.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1057, 67, 10705, 12, 2649, 16, 569, 67, 3239, 16, 943, 2107, 16, 501, 16, 1353, 33, 8381, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1057, 67, 10705, 12, 2649, 16, 569, 67, 3239, 16, 943, 2107, 16, 501, 16, 1353, 33, 8381, 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 ]
self.__UndoOneChar() self.__GetOneChar()
if not self.__UndoOneChar(): break else: self.__GetOneChar()
def __UndoToken(self): self.__UndoOneChar() while self.__CurrentChar().isspace(): self.__UndoOneChar() while not str(self.__CurrentChar()).isspace() and self.__CurrentChar() not in ('=', '|', ','): self.__UndoOneChar() self.__GetOneChar()
679c80194292a2adbbf61916ae493e9d69e25b1e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/679c80194292a2adbbf61916ae493e9d69e25b1e/FdfParser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31224, 1345, 12, 2890, 4672, 365, 16186, 31224, 3335, 2156, 1435, 1323, 365, 16186, 3935, 2156, 7675, 1054, 909, 13332, 365, 16186, 31224, 3335, 2156, 1435, 1323, 486, 609, 12, 2890, 16186, 3935, 2156, 1435, 2934, 1054, 909, 1435, 471, 365, 16186, 3935, 2156, 1435, 486, 316, 7707, 33, 2187, 6699, 2187, 3316, 4672, 309, 486, 365, 16186, 31224, 3335, 2156, 13332, 898, 469, 30, 365, 16186, 967, 3335, 2156, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 31224, 1345, 12, 2890, 4672, 365, 16186, 31224, 3335, 2156, 1435, 1323, 365, 16186, 3935, 2156, 7675, 1054, 909, 13332, 365, 16186, 31224, 3335, 2156, 1435, 1323, 486, 609, 12, 2890, 16186, 3935, 2156, 1435, 2934, 1054, 909, 1435, 471, 365, 16186, 3935, 2156, 1435, 486, 316, 7707, 33, 2187, 6699, 2187, 3316, 4672, 309, 486, 365, 16186, 31224, 3335, 2156, 13332, 898, 469, 30, 365, 16186, 967, 3335, 2156, 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 ]
if summary == 'Custom Checklist Items':
if sumLow == 'custom checklist items':
def add_entry(self, summary, item=None, display=None, desc=None, resolution=None, output=None, resList=None, outputList=None): '''Adds new items to the checklist. Arguments: summary -- Summary of problem (also its key.) Keyword arguments: item -- entry is an item rather than a category. (default True) display -- display the entry in output review. (default True) desc -- long description about how to determine if the item has passed or failed the test. (default None) resolution -- state that the entry is in. (default Needs-Reviewing) output -- output string for the entry. (default None) resList -- list of valid resolutions. (default Needs-Reviewing, Pass, Fail, Non-Blocker, Not-Applicable) outputList -- dict of output strings for each resList item. (default None for each resolution in resList)
a1db0482484c662c6516c280ce4b8ea1901ecce4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2414/a1db0482484c662c6516c280ce4b8ea1901ecce4/checklist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 4099, 12, 2890, 16, 4916, 16, 761, 33, 7036, 16, 2562, 33, 7036, 16, 3044, 33, 7036, 16, 7861, 33, 7036, 16, 876, 33, 7036, 16, 400, 682, 33, 7036, 16, 876, 682, 33, 7036, 4672, 9163, 3655, 394, 1516, 358, 326, 866, 1098, 18, 225, 13599, 30, 4916, 1493, 17967, 434, 6199, 261, 31144, 2097, 498, 12998, 225, 18317, 1775, 30, 761, 1493, 1241, 353, 392, 761, 9178, 2353, 279, 3150, 18, 261, 1886, 1053, 13, 2562, 1493, 2562, 326, 1241, 316, 876, 10725, 18, 261, 1886, 1053, 13, 3044, 1493, 1525, 2477, 2973, 3661, 358, 4199, 309, 326, 761, 711, 2275, 578, 2535, 326, 1842, 18, 261, 1886, 599, 13, 7861, 1493, 919, 716, 326, 1241, 353, 316, 18, 261, 1886, 29164, 17, 9159, 310, 13, 876, 1493, 876, 533, 364, 326, 1241, 18, 261, 1886, 599, 13, 400, 682, 1493, 666, 434, 923, 1565, 6170, 18, 261, 1886, 29164, 17, 9159, 310, 16, 10311, 16, 8911, 16, 3858, 17, 1768, 264, 16, 2288, 17, 27873, 13, 876, 682, 1493, 2065, 434, 876, 2064, 364, 1517, 400, 682, 761, 18, 261, 1886, 599, 364, 1517, 7861, 316, 400, 682, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0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876, 33, 7036, 16, 400, 682, 33, 7036, 16, 876, 682, 33, 7036, 4672, 9163, 3655, 394, 1516, 358, 326, 866, 1098, 18, 225, 13599, 30, 4916, 1493, 17967, 434, 6199, 261, 31144, 2097, 498, 12998, 225, 18317, 1775, 30, 761, 1493, 1241, 353, 392, 761, 9178, 2353, 279, 3150, 18, 261, 1886, 1053, 13, 2562, 1493, 2562, 326, 1241, 316, 876, 10725, 18, 261, 1886, 1053, 13, 3044, 1493, 1525, 2477, 2973, 3661, 358, 4199, 309, 326, 761, 711, 2275, 578, 2535, 326, 1842, 18, 261, 1886, 599, 13, 7861, 1493, 919, 716, 2 ]
prod_name = vals['type'] + str(' Product ') + site_id.name
prod_name = vals['type'] + str(' Product ') + (site_id and site_id.name or '')
def write(self, cr, uid, ids, vals, *args, **kwargs): site_id = self.pool.get('cci_mission.embassy_folder_line').browse(cr, uid, ids)[0].folder_id.site_id if vals.has_key('type'): prod_name = vals['type'] + str(' Product ') + site_id.name cr.execute('select id from product_template where name='"'%s'"''%str(prod_name)) prod=cr.fetchone() if prod: product_id=prod[0] prod_info = self.pool.get('product.product').browse(cr, uid,product_id) account = prod_info.product_tmpl_id.property_account_income.id if not account: account = prod_info.categ_id.property_account_income_categ.id vals['account_id']=account vals['product_id']=product_id return super(osv.osv,self).write( cr, uid, ids,vals, *args, **kwargs)
8c88839b4a5bb4332ba26a22fd038186b99a5c93 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/8c88839b4a5bb4332ba26a22fd038186b99a5c93/cci_mission.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 5773, 16, 380, 1968, 16, 2826, 4333, 4672, 2834, 67, 350, 273, 365, 18, 6011, 18, 588, 2668, 952, 77, 67, 3951, 18, 351, 70, 428, 93, 67, 5609, 67, 1369, 16063, 25731, 12, 3353, 16, 4555, 16, 3258, 25146, 20, 8009, 5609, 67, 350, 18, 4256, 67, 350, 309, 5773, 18, 5332, 67, 856, 2668, 723, 11, 4672, 10791, 67, 529, 273, 5773, 3292, 723, 3546, 397, 609, 2668, 8094, 8624, 397, 261, 4256, 67, 350, 471, 2834, 67, 350, 18, 529, 578, 28707, 4422, 18, 8837, 2668, 4025, 612, 628, 3017, 67, 3202, 1625, 508, 2218, 5187, 9, 87, 4970, 6309, 9, 701, 12, 17672, 67, 529, 3719, 10791, 33, 3353, 18, 5754, 476, 1435, 309, 10791, 30, 3017, 67, 350, 33, 17672, 63, 20, 65, 10791, 67, 1376, 273, 365, 18, 6011, 18, 588, 2668, 5896, 18, 5896, 16063, 25731, 12, 3353, 16, 4555, 16, 5896, 67, 350, 13, 2236, 273, 225, 10791, 67, 1376, 18, 5896, 67, 24717, 67, 350, 18, 4468, 67, 4631, 67, 267, 5624, 18, 350, 309, 486, 2236, 30, 2236, 273, 10791, 67, 1376, 18, 71, 1287, 67, 350, 18, 4468, 67, 4631, 67, 267, 5624, 67, 71, 1287, 18, 350, 5773, 3292, 4631, 67, 350, 3546, 33, 4631, 5773, 3292, 5896, 67, 350, 3546, 33, 5896, 67, 350, 327, 2240, 12, 538, 90, 18, 538, 90, 16, 2890, 2934, 2626, 12, 4422, 16, 4555, 16, 3258, 16, 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, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 5773, 16, 380, 1968, 16, 2826, 4333, 4672, 2834, 67, 350, 273, 365, 18, 6011, 18, 588, 2668, 952, 77, 67, 3951, 18, 351, 70, 428, 93, 67, 5609, 67, 1369, 16063, 25731, 12, 3353, 16, 4555, 16, 3258, 25146, 20, 8009, 5609, 67, 350, 18, 4256, 67, 350, 309, 5773, 18, 5332, 67, 856, 2668, 723, 11, 4672, 10791, 67, 529, 273, 5773, 3292, 723, 3546, 397, 609, 2668, 8094, 8624, 397, 261, 4256, 67, 350, 471, 2834, 67, 350, 18, 529, 578, 28707, 4422, 18, 8837, 2668, 4025, 612, 628, 3017, 67, 3202, 1625, 508, 2218, 5187, 9, 87, 4970, 6309, 9, 701, 12, 17672, 67, 2 ]
stanza.get_error().serialize()))
err.get_message()))
def vcard_error(self,stanza): self.error(u"vCard query error from %s: %s" % (stanza.get_from(), stanza.get_error().serialize()))
52b975fd9233fb936a346038704b4dd1ed7be136 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12768/52b975fd9233fb936a346038704b4dd1ed7be136/vcard.py
[ 1, 8585, 326, 22398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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29760, 67, 1636, 12, 2890, 16, 541, 11939, 4672, 365, 18, 1636, 12, 89, 6, 90, 6415, 843, 555, 628, 738, 87, 30, 738, 87, 6, 738, 261, 541, 11939, 18, 588, 67, 2080, 9334, 21650, 18, 588, 67, 1636, 7675, 6288, 1435, 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, -100 ]
def parse(self, filename):
def parse(self):
def parse(self, filename): # Get basic shapefile configuration. fp = open(filename, 'rb')
0c0642e5fc82b201526f4a6ecac2e32406114d3a /local1/tlutelli/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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, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 4672, 468, 968, 5337, 2179, 768, 1664, 18, 4253, 273, 1696, 12, 3459, 16, 296, 6731, 6134, 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 ]
if self._sessionCookie:
if not force and self._sessionCookie:
def _authenticate(self): ''' Return an authenticated session cookie. ''' if self._sessionCookie: return self._sessionCookie
6b5bee58529db07c3438fd6beac4fa94676f3abc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9952/6b5bee58529db07c3438fd6beac4fa94676f3abc/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 22035, 12, 2890, 4672, 9163, 2000, 392, 9370, 1339, 3878, 18, 9163, 309, 486, 2944, 471, 365, 6315, 3184, 6151, 30, 327, 365, 6315, 3184, 6151, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 22035, 12, 2890, 4672, 9163, 2000, 392, 9370, 1339, 3878, 18, 9163, 309, 486, 2944, 471, 365, 6315, 3184, 6151, 30, 327, 365, 6315, 3184, 6151, 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 ]
lifetime_h = cfg.cookie_lifetime[userobj and userobj.valid] cookie_lifetime = int(float(lifetime_h) * 3600)
cookie_lifetime = _get_session_lifetime(request, userobj)
def finalize(self, request, session): if request.user.auth_method == 'setuid': userobj = request._setuid_real_user setuid = request.user.id else: userobj = request.user setuid = None logging.debug("finalize userobj = %r, setuid = %r" % (userobj, setuid)) cfg = request.cfg cookie_path = cfg.cookie_path or request.script_root or '/' if userobj and userobj.valid: session['user.id'] = userobj.id session['user.auth_method'] = userobj.auth_method session['user.auth_attribs'] = userobj.auth_attribs if setuid: session['setuid'] = setuid elif 'setuid' in session: del session['setuid'] logging.debug("after auth: storing valid user into session: %r" % userobj.name) else: logging.debug("after auth: user is invalid") if 'user.id' in session: logging.debug("after auth: destroying session: %r" % session) self.destroy_session(request, session) logging.debug("after auth: deleting session cookie!") request.delete_cookie(self.cookie_name, path=cookie_path, domain=cfg.cookie_domain)
be06d178937cf8b04a0340cc44c0414c12d7ac92 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/be06d178937cf8b04a0340cc44c0414c12d7ac92/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12409, 12, 2890, 16, 590, 16, 1339, 4672, 309, 590, 18, 1355, 18, 1944, 67, 2039, 422, 296, 542, 1911, 4278, 729, 2603, 273, 590, 6315, 542, 1911, 67, 7688, 67, 1355, 444, 1911, 273, 590, 18, 1355, 18, 350, 469, 30, 729, 2603, 273, 590, 18, 1355, 444, 1911, 273, 599, 2907, 18, 4148, 2932, 30343, 729, 2603, 273, 738, 86, 16, 444, 1911, 273, 738, 86, 6, 738, 261, 1355, 2603, 16, 444, 1911, 3719, 2776, 273, 590, 18, 7066, 3878, 67, 803, 273, 2776, 18, 8417, 67, 803, 578, 590, 18, 4263, 67, 3085, 578, 2023, 309, 729, 2603, 471, 729, 2603, 18, 877, 30, 1339, 3292, 1355, 18, 350, 3546, 273, 729, 2603, 18, 350, 1339, 3292, 1355, 18, 1944, 67, 2039, 3546, 273, 729, 2603, 18, 1944, 67, 2039, 1339, 3292, 1355, 18, 1944, 67, 19617, 3546, 273, 729, 2603, 18, 1944, 67, 19617, 309, 444, 1911, 30, 1339, 3292, 542, 1911, 3546, 273, 444, 1911, 1327, 296, 542, 1911, 11, 316, 1339, 30, 1464, 1339, 3292, 542, 1911, 3546, 2907, 18, 4148, 2932, 5205, 1357, 30, 15729, 923, 729, 1368, 1339, 30, 738, 86, 6, 738, 729, 2603, 18, 529, 13, 469, 30, 2907, 18, 4148, 2932, 5205, 1357, 30, 729, 353, 2057, 7923, 309, 296, 1355, 18, 350, 11, 316, 1339, 30, 2907, 18, 4148, 2932, 5205, 1357, 30, 5546, 310, 1339, 30, 738, 86, 6, 738, 1339, 13, 365, 18, 11662, 67, 3184, 12, 2293, 16, 1339, 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, 12409, 12, 2890, 16, 590, 16, 1339, 4672, 309, 590, 18, 1355, 18, 1944, 67, 2039, 422, 296, 542, 1911, 4278, 729, 2603, 273, 590, 6315, 542, 1911, 67, 7688, 67, 1355, 444, 1911, 273, 590, 18, 1355, 18, 350, 469, 30, 729, 2603, 273, 590, 18, 1355, 444, 1911, 273, 599, 2907, 18, 4148, 2932, 30343, 729, 2603, 273, 738, 86, 16, 444, 1911, 273, 738, 86, 6, 738, 261, 1355, 2603, 16, 444, 1911, 3719, 2776, 273, 590, 18, 7066, 3878, 67, 803, 273, 2776, 18, 8417, 67, 803, 578, 590, 18, 4263, 67, 3085, 578, 2023, 309, 729, 2603, 471, 729, 2603, 18, 877, 30, 1339, 3292, 1355, 18, 350, 3546, 273, 729, 2603, 18, 2 ]
@QtCore.pyqtSignature("on_spinColorsFrom_valueChanged(int)") def on_spinColorsFrom_valueChanfed(self, newValue): currentToValue = self.ui.spinColorsTo.value() maxToValue = self.ui.spinColorsTo.maximum() if newValue >= currentToValue: if currentToValue < maxToValue: self.ui.spinColorsTo.setValue( newValue+1 ) else: self.ui.spinColorsFrom.setValue( newValue-1 )
@QtCore.pyqtSignature("on_spinColorsFrom_editingFinished()") def on_spinColorsFrom_editingFinished(self): fromValue = self.ui.spinColorsFrom.value() toValue = self.ui.spinColorsTo.value() maxToValue = self.ui.spinColorsTo.maximum() if fromValue >= toValue: if toValue < maxToValue: self.ui.spinColorsTo.setValue( fromValue+1 ) else: self.ui.spinColorsFrom.setValue( fromValue-1 )
def on_radioDayRange_toggled(self, checked): if checked: # Enable Range self.ui.lblColorsFrom.setEnabled(True) self.ui.lblColorsTo.setEnabled(True) self.ui.spinColorsFrom.setEnabled(True) self.ui.spinColorsTo.setEnabled(True) else: # Disable Range self.ui.lblColorsFrom.setEnabled(False) self.ui.lblColorsTo.setEnabled(False) self.ui.spinColorsFrom.setEnabled(False) self.ui.spinColorsTo.setEnabled(False)
3412163d9219f64f5a2efaafd136b167fdabd5b7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/765/3412163d9219f64f5a2efaafd136b167fdabd5b7/NextShowsConfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 17006, 4245, 2655, 67, 88, 23972, 1259, 12, 2890, 16, 5950, 4672, 309, 5950, 30, 468, 9677, 8086, 365, 18, 4881, 18, 31885, 12570, 1265, 18, 542, 1526, 12, 5510, 13, 365, 18, 4881, 18, 31885, 12570, 774, 18, 542, 1526, 12, 5510, 13, 365, 18, 4881, 18, 22876, 12570, 1265, 18, 542, 1526, 12, 5510, 13, 365, 18, 4881, 18, 22876, 12570, 774, 18, 542, 1526, 12, 5510, 13, 469, 30, 468, 10639, 8086, 365, 18, 4881, 18, 31885, 12570, 1265, 18, 542, 1526, 12, 8381, 13, 365, 18, 4881, 18, 31885, 12570, 774, 18, 542, 1526, 12, 8381, 13, 365, 18, 4881, 18, 22876, 12570, 1265, 18, 542, 1526, 12, 8381, 13, 365, 18, 4881, 18, 22876, 12570, 774, 18, 542, 1526, 12, 8381, 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, 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31885, 12570, 1265, 18, 542, 1526, 12, 5510, 13, 365, 18, 4881, 18, 31885, 12570, 774, 18, 542, 1526, 12, 5510, 13, 365, 18, 4881, 18, 22876, 12570, 1265, 18, 542, 1526, 12, 5510, 13, 365, 18, 4881, 18, 22876, 12570, 774, 18, 542, 1526, 12, 5510, 13, 469, 30, 468, 10639, 8086, 365, 18, 4881, 18, 31885, 12570, 1265, 18, 542, 1526, 12, 8381, 13, 365, 18, 4881, 18, 31885, 12570, 774, 18, 542, 1526, 12, 8381, 13, 365, 18, 4881, 18, 22876, 12570, 1265, 18, 542, 1526, 12, 8381, 13, 365, 18, 2 ]
for i in self.info:
info = self.get_supervisor().getAllProcessInfo() for i in info:
def completionmatches(self,text,line,flag=0): groups=[] programs=[] groupwiseprograms={} for i in self.info: programs.append(i['name']) if i['group'] not in groups: groups.append(i['group']) groupwiseprograms[i['group']]=[] groupwiseprograms[i['group']].append(i['name']) total=[] for i in groups: if i in programs: total.append(i+' ') else: for n in groupwiseprograms[i]: total.append(i+':'+n+' ') if flag: # add/remove require only the group name return [i+' ' for i in groups if i.startswith(text)] if len(line.split()) == 1: return total else: current=line.split()[-1] if line.endswith(' ') and len(line.split()) > 1: results=[i for i in total if i.startswith(text)] return results if ':' in current: g=current.split(':')[0] results = [i+' ' for i in groupwiseprograms[g] if i.startswith(text)] return results results = [i for i in total if i.startswith(text)] return results
a880d1656cb12a1da9a61e1a0e4e89cbafc0d8ba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13620/a880d1656cb12a1da9a61e1a0e4e89cbafc0d8ba/supervisorctl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8364, 8436, 12, 2890, 16, 955, 16, 1369, 16, 6420, 33, 20, 4672, 3252, 33, 8526, 25038, 33, 8526, 1041, 2460, 12890, 87, 12938, 1123, 273, 365, 18, 588, 67, 9565, 10227, 7675, 588, 1595, 2227, 966, 1435, 364, 277, 316, 1123, 30, 25038, 18, 6923, 12, 77, 3292, 529, 19486, 309, 277, 3292, 1655, 3546, 486, 316, 3252, 30, 3252, 18, 6923, 12, 77, 3292, 1655, 19486, 1041, 2460, 12890, 87, 63, 77, 3292, 1655, 3546, 65, 33, 8526, 1041, 2460, 12890, 87, 63, 77, 3292, 1655, 3546, 8009, 6923, 12, 77, 3292, 529, 19486, 2078, 33, 8526, 364, 277, 316, 3252, 30, 309, 277, 316, 25038, 30, 2078, 18, 6923, 12, 77, 6797, 8624, 469, 30, 364, 290, 316, 1041, 2460, 12890, 87, 63, 77, 14542, 2078, 18, 6923, 12, 77, 6797, 2497, 15, 82, 6797, 8624, 309, 2982, 30, 468, 527, 19, 4479, 2583, 1338, 326, 1041, 508, 327, 306, 77, 6797, 296, 364, 277, 316, 3252, 309, 277, 18, 17514, 1918, 12, 955, 25887, 309, 562, 12, 1369, 18, 4939, 10756, 422, 404, 30, 327, 2078, 469, 30, 783, 33, 1369, 18, 4939, 1435, 18919, 21, 65, 309, 980, 18, 5839, 1918, 2668, 8624, 471, 562, 12, 1369, 18, 4939, 10756, 405, 404, 30, 1686, 22850, 77, 364, 277, 316, 2078, 309, 277, 18, 17514, 1918, 12, 955, 25887, 327, 1686, 309, 3921, 316, 783, 30, 314, 33, 2972, 18, 4939, 2668, 2497, 25146, 20, 65, 1686, 273, 306, 77, 6797, 296, 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, 8364, 8436, 12, 2890, 16, 955, 16, 1369, 16, 6420, 33, 20, 4672, 3252, 33, 8526, 25038, 33, 8526, 1041, 2460, 12890, 87, 12938, 1123, 273, 365, 18, 588, 67, 9565, 10227, 7675, 588, 1595, 2227, 966, 1435, 364, 277, 316, 1123, 30, 25038, 18, 6923, 12, 77, 3292, 529, 19486, 309, 277, 3292, 1655, 3546, 486, 316, 3252, 30, 3252, 18, 6923, 12, 77, 3292, 1655, 19486, 1041, 2460, 12890, 87, 63, 77, 3292, 1655, 3546, 65, 33, 8526, 1041, 2460, 12890, 87, 63, 77, 3292, 1655, 3546, 8009, 6923, 12, 77, 3292, 529, 19486, 2078, 33, 8526, 364, 277, 316, 3252, 30, 309, 277, 316, 25038, 30, 2078, 18, 6923, 12, 77, 6797, 8624, 469, 30, 2 ]
print "</font><br>"
print "<br>"
def printFooter(): global slides print "</DIV>" if (slides == 0): print "<hr><font size=1>" print copyright print "</font><br>" print inputfile + "&nbsp&nbsp " + strftime("%Y/%m/%d %H:%M",localtime(time())) print "</BODY></HTML>"
7af5c2bb8f0372438a2b397a27fa3bf97585fc33 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6154/7af5c2bb8f0372438a2b397a27fa3bf97585fc33/otl2html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 13787, 13332, 2552, 30119, 1172, 6823, 31901, 2984, 309, 261, 2069, 4369, 422, 374, 4672, 1172, 3532, 7256, 4438, 5776, 963, 33, 21, 2984, 1172, 22245, 1172, 3532, 2848, 2984, 1172, 810, 768, 397, 7830, 10600, 10, 10600, 315, 397, 10405, 27188, 61, 5258, 81, 5258, 72, 738, 44, 5319, 49, 3113, 3729, 957, 12, 957, 1435, 3719, 1172, 6823, 16691, 4695, 4870, 2984, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 13787, 13332, 2552, 30119, 1172, 6823, 31901, 2984, 309, 261, 2069, 4369, 422, 374, 4672, 1172, 3532, 7256, 4438, 5776, 963, 33, 21, 2984, 1172, 22245, 1172, 3532, 2848, 2984, 1172, 810, 768, 397, 7830, 10600, 10, 10600, 315, 397, 10405, 27188, 61, 5258, 81, 5258, 72, 738, 44, 5319, 49, 3113, 3729, 957, 12, 957, 1435, 3719, 1172, 6823, 16691, 4695, 4870, 2984, 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 ]
if len(args) == 1: _help(args[0])
if len(args) == 1: _help(args.pop())
def _parse_args(): """ Process the command line arguments; return a dictionary containing the relevant info. @return: A dictionary mapping from configuration parameters to values. If a parameter is specified on the command line, then that value is used; otherwise, a default value is used. Currently, the following configuration parameters are set: C{target}; C{modules}; C{verbosity}; C{prj_name}; C{check}; C{show_private}; and C{check_all}. @rtype: C{None} """ # Default values. argvals = {'target':'html', 'modules':[], 'verbosity':0, 'prj_name':'', 'check':0, 'show_private':0, 'check_all':0, 'show_imports':0} # Get the args (backwards, since we will pop them) args = sys.argv[1:] args.reverse() while args: arg = args.pop() if arg[:1] == '-': if arg in ('-o', '--output', '--target'): try: argvals['target'] = args.pop() except: _usage() elif arg in ('-n', '--name'): try: argvals['prj_name'] = args.pop() except: _usage() elif arg in ('-u', '--url'): try: argvals['prj_url'] = args.pop() except: _usage() elif arg in ('-V', '--version'): _version() elif arg in ('-v', '--verbose'): argvals['verbosity'] += 1 elif arg in ('-q', '--quiet'): argvals['verbosity'] -= 3 elif re.match('^-v+$', arg): argvals['verbosity'] += len(arg)-1 elif arg in ('--help', '-?', '--usage', '-h'): if len(args) == 1: _help(args[0]) elif len(args) == 0: _usage(0) else: _usage() elif arg in ('--check',): argvals['check'] = 1 elif arg in ('--show-imports', '--show_imports'): argvals['show_imports'] = 1 elif arg in ('-p',): argvals['show_private'] = 1 elif arg in ('-a', '-check_all'): argvals['check_all'] = 1 elif arg in ('--css', '-c'): argvals['css'] = args.pop() if argvals['css'] == 'help': _csshelp() else: _usage() else: argvals['modules'].append(arg) # This can prevent trouble sometimes when importing things. sys.argv[:] = ['(imported)'] if argvals['modules'] == []: _usage() return argvals
45b494b393ab6ef9de3c2677601959c2f035edb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/45b494b393ab6ef9de3c2677601959c2f035edb8/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 67, 1968, 13332, 3536, 4389, 326, 1296, 980, 1775, 31, 327, 279, 3880, 4191, 326, 9368, 1123, 18, 225, 632, 2463, 30, 432, 3880, 2874, 628, 1664, 1472, 358, 924, 18, 225, 971, 279, 1569, 353, 1269, 603, 326, 1296, 980, 16, 1508, 716, 460, 353, 1399, 31, 3541, 16, 279, 805, 460, 353, 1399, 18, 15212, 16, 326, 3751, 1664, 1472, 854, 444, 30, 385, 95, 3299, 20451, 385, 95, 6400, 20451, 385, 95, 16629, 8807, 20451, 385, 95, 683, 78, 67, 529, 20451, 385, 95, 1893, 20451, 385, 95, 4500, 67, 1152, 20451, 471, 385, 95, 1893, 67, 454, 5496, 632, 86, 723, 30, 385, 95, 7036, 97, 3536, 468, 2989, 924, 18, 1501, 4524, 273, 13666, 3299, 11, 2497, 2620, 2187, 296, 6400, 4278, 63, 6487, 296, 16629, 8807, 4278, 20, 16, 296, 683, 78, 67, 529, 11, 2497, 2187, 296, 1893, 4278, 20, 16, 296, 4500, 67, 1152, 4278, 20, 16, 296, 1893, 67, 454, 4278, 20, 16, 296, 4500, 67, 21350, 4278, 20, 97, 225, 468, 968, 326, 833, 261, 823, 6397, 16, 3241, 732, 903, 1843, 2182, 13, 833, 273, 2589, 18, 19485, 63, 21, 26894, 833, 18, 9845, 1435, 225, 1323, 833, 30, 1501, 273, 833, 18, 5120, 1435, 309, 1501, 10531, 21, 65, 422, 4014, 30, 309, 1501, 316, 7707, 17, 83, 2187, 3534, 2844, 2187, 3534, 3299, 11, 4672, 775, 30, 1501, 4524, 3292, 3299, 3546, 273, 833, 18, 5120, 1435, 1335, 30, 389, 9167, 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, 2670, 67, 1968, 13332, 3536, 4389, 326, 1296, 980, 1775, 31, 327, 279, 3880, 4191, 326, 9368, 1123, 18, 225, 632, 2463, 30, 432, 3880, 2874, 628, 1664, 1472, 358, 924, 18, 225, 971, 279, 1569, 353, 1269, 603, 326, 1296, 980, 16, 1508, 716, 460, 353, 1399, 31, 3541, 16, 279, 805, 460, 353, 1399, 18, 15212, 16, 326, 3751, 1664, 1472, 854, 444, 30, 385, 95, 3299, 20451, 385, 95, 6400, 20451, 385, 95, 16629, 8807, 20451, 385, 95, 683, 78, 67, 529, 20451, 385, 95, 1893, 20451, 385, 95, 4500, 67, 1152, 20451, 471, 385, 95, 1893, 67, 454, 5496, 632, 86, 723, 30, 385, 95, 7036, 97, 3536, 468, 2989, 924, 18, 1501, 2 ]
newType = "boolean"
newType = "Boolean"
def fromFunction(func, assignType, name, alternative, old=[]): # # open comment ############################################################## s = "/**\n" # # description ############################################################## oldDesc = getAttrib(old, "description") if attribHas(oldDesc, "text"): newText = oldDesc["text"] else: newText = "TODOC" s += splitText(newText, False) s += " *\n" # # add @type ############################################################## if assignType != None: s += " * @type %s\n" % assignType else: s += " * @type unknown TODOC\n" # # add @abstract ############################################################## oldAbstract = getAttrib(old, "abstract") first = func.getChild("body").getChild("block").getFirstChild(False, True) abstract = first and first.type == "throw" if abstract: if attribHas(oldAbstract, "text"): newText = oldDesc["text"] else: newText = "" s += " * @abstract%s" % splitText(newText) if not s.endswith("\n"): s += "\n" elif oldAbstract: print " * Removing old @abstract for %s" % name # # add @param ############################################################## params = func.getChild("params") if params.hasChildren(): for child in params.children: if child.type == "variable": newName = child.getChild("identifier").get("name") newType = newTypeText = nameToType(newName) newDefault = "" newText = nameToDescription(newName) oldParam = getParam(old, newName) # Get type and text from old content if oldParam: if attribHas(oldParam, "type"): newTypeText = parseType(oldParam["type"]) if attribHas(oldParam, "defaultValue"): newDefault = " ? %s" % oldParam["defaultValue"] if attribHas(oldParam, "text"): newText = oldParam["text"].strip() s += " * @param %s {%s%s}%s" % (newName, newTypeText, newDefault, splitText(newText)) if not s.endswith("\n"): s += "\n" # # add @return ############################################################## if name != "construct": oldReturn = getAttrib(old, "return") newType = "void" newText = "" # Get type and text from old content if oldReturn: if attribHas(oldReturn, "type"): newType = parseType(oldReturn["type"]) if attribHas(oldReturn, "text"): newText = oldReturn["text"].strip() # Try to autodetect the type if newType == "void": returns = getReturns(func.getChild("body"), []) if len(returns) > 0: newType = " | ".join(returns) elif name != None and name.startswith("is") and name[3].isupper(): newType = "boolean" # Add documentation hint in non void cases if newType != "void" and newText == "": newText = "TODOC" s += " * @return {%s}%s" % (newType, splitText(newText)) if not s.endswith("\n"): s += "\n" # # add @throws ############################################################## oldThrows = getAttrib(old, "throws") if hasThrows(func): if oldThrows and attribHas(oldThrows, "text"): newText = oldThrows["text"] elif abstract: newText = "the abstract function warning." else: newText = "TODOC" s += " * @throws%s" % splitText(newText) if not s.endswith("\n"): s += "\n" elif oldThrows: print " * Removing old @throw attribute in comment for %s" % name # # other @attributes ############################################################## for attrib in old: cat = attrib["category"] if cat in [ "see", "author", "deprecated", "exception", "since", "version", "abstract", "overridden" ]: s += " * @%s" % cat if attribHas(attrib, "text"): s += splitText(attrib["text"]) if not s.endswith("\n"): s += "\n" elif not cat in [ "description", "type", "abstract", "param", "return", "throws" ]: print " * Found unallowed attribute %s in comment for %s (function)" % (cat, name) # # close comment ############################################################## s += " */" return s
77305a357b8c84745c500b9efc9155020d76c5fd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/77305a357b8c84745c500b9efc9155020d76c5fd/comment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 2083, 12, 644, 16, 2683, 559, 16, 508, 16, 10355, 16, 1592, 33, 8526, 4672, 468, 468, 1696, 2879, 19709, 5516, 26487, 7, 272, 273, 2206, 636, 64, 82, 6, 282, 468, 468, 2477, 19709, 5516, 26487, 7, 1592, 4217, 273, 336, 12399, 12, 1673, 16, 315, 3384, 7923, 225, 309, 5885, 5582, 12, 1673, 4217, 16, 315, 955, 6, 4672, 394, 1528, 273, 1592, 4217, 9614, 955, 11929, 469, 30, 394, 1528, 273, 315, 6241, 39, 6, 225, 272, 1011, 1416, 1528, 12, 2704, 1528, 16, 1083, 13, 272, 1011, 315, 380, 64, 82, 6, 377, 468, 468, 527, 632, 723, 19709, 5516, 26487, 7, 309, 2683, 559, 480, 599, 30, 272, 1011, 315, 380, 632, 723, 738, 87, 64, 82, 6, 738, 2683, 559, 469, 30, 272, 1011, 315, 380, 632, 723, 5917, 2660, 39, 64, 82, 6, 377, 468, 468, 527, 632, 17801, 19709, 5516, 26487, 7, 1592, 7469, 273, 336, 12399, 12, 1673, 16, 315, 17801, 7923, 225, 1122, 273, 1326, 18, 588, 1763, 2932, 3432, 20387, 588, 1763, 2932, 2629, 20387, 588, 3759, 1763, 12, 8381, 16, 1053, 13, 8770, 273, 1122, 471, 1122, 18, 723, 422, 315, 12849, 6, 225, 309, 8770, 30, 309, 5885, 5582, 12, 1673, 7469, 16, 315, 955, 6, 4672, 394, 1528, 273, 1592, 4217, 9614, 955, 11929, 469, 30, 394, 1528, 273, 1408, 225, 272, 1011, 315, 380, 632, 17801, 9, 87, 6, 738, 1416, 1528, 12, 2704, 1528, 13, 225, 309, 486, 272, 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, 628, 2083, 12, 644, 16, 2683, 559, 16, 508, 16, 10355, 16, 1592, 33, 8526, 4672, 468, 468, 1696, 2879, 19709, 5516, 26487, 7, 272, 273, 2206, 636, 64, 82, 6, 282, 468, 468, 2477, 19709, 5516, 26487, 7, 1592, 4217, 273, 336, 12399, 12, 1673, 16, 315, 3384, 7923, 225, 309, 5885, 5582, 12, 1673, 4217, 16, 315, 955, 6, 4672, 394, 1528, 273, 1592, 4217, 9614, 955, 11929, 469, 30, 394, 1528, 273, 315, 6241, 39, 6, 225, 272, 1011, 1416, 1528, 12, 2704, 1528, 16, 1083, 13, 272, 1011, 315, 380, 64, 82, 6, 377, 468, 468, 527, 632, 723, 19709, 5516, 26487, 7, 309, 2683, 559, 480, 599, 30, 272, 1011, 315, 380, 632, 2 ]
%s+(\.%s+)* @ %s+(\.%s*)* %s
%(emailc)s+(\.%(emailc)s+)* @ %(emailc)s+(\.%(emailc)s*)* %(urilast)s
def parse(self, text, lineno, memo, parent): """ Return 2 lists: nodes (text and inline elements), and system_messages.
9fe47ec4311156cad473d8ed8bf0dba5fd73c14e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/9fe47ec4311156cad473d8ed8bf0dba5fd73c14e/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 977, 16, 7586, 16, 11063, 16, 982, 4672, 3536, 2000, 576, 6035, 30, 2199, 261, 955, 471, 6370, 2186, 3631, 471, 2619, 67, 6833, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 977, 16, 7586, 16, 11063, 16, 982, 4672, 3536, 2000, 576, 6035, 30, 2199, 261, 955, 471, 6370, 2186, 3631, 471, 2619, 67, 6833, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 pdflatex:
if engine == "pdflatex" or engine == "xelatex":
def _run_latex_(filename, debug=False, density=150, pdflatex=None, png=False, do_in_background=False): """ This runs LaTeX on the TeX file "filename.tex". It produces files "filename.dvi" (or "filename.pdf"` if ``pdflatex`` is ``True``) and if ``png`` is True, "filename.png". If ``png`` is True and dvipng can't convert the dvi file to png (because of postscript specials or other issues), then dvips is called, and the PS file is converted to a png file. INPUT: - ``filename`` - string: file to process, including full path - ``debug`` - bool (optional, default False): whether to print verbose debugging output - ``density`` - integer (optional, default 150): how big output image is. - ``pdflatex`` - bool (optional, default False): whether to use pdflatex. - ``png`` - bool (optional, default False): whether to produce a png file. - ``do_in_background`` - bool (optional, default False): whether to run in the background. OUTPUT: string, which could be a string starting with 'Error' (if there was a problem), or it could be 'pdf' or 'dvi'. If ``pdflatex`` is False, then a dvi file is created, but if there appear to be problems with it (because of PS special commands, for example), then a pdf file is created instead. The function returns 'dvi' or 'pdf' to indicate which type of file is created. (Detecting problems requires that dvipng be installed; if it is not, then the dvi file is not checked for problems and 'dvi' is returned.) If ``pdflatex`` is True and there are no errors, then 'pdf' is returned. .. warning:: If ``png`` is True, then when using latex (the default), you must have 'dvipng' (or 'dvips' and 'convert') installed on your operating system, or this command won't work. When using pdflatex, you must have 'convert' installed. EXAMPLES:: sage: from sage.misc.latex import _run_latex_, _latex_file_ sage: file = os.path.join(SAGE_TMP, "temp.tex") sage: O = open(file, 'w') sage: O.write(_latex_file_([ZZ[x], RR])); O.close() sage: _run_latex_(file) # random - depends on whether latex is installed 'dvi' """ if pdflatex is None: pdflatex = _Latex_prefs._option["pdflatex"] if not pdflatex and not have_latex(): print "Error: LaTeX does not seem to be installed. Download it from" print "ctan.org and try again." return "Error" if pdflatex and not have_pdflatex(): print "Error: PDFLaTeX does not seem to be installed. Download it from" print "ctan.org and try again." return "Error" # if png output + latex, check to see if dvipng or convert is installed. if png: if not pdflatex and not (have_dvipng() or have_convert()): print "" print "Error: neither dvipng nor convert (from the ImageMagick suite)" print "appear to be installed. Displaying LaTeX or PDFLaTeX output" print "requires at least one of these programs, so please install" print "and try again." print "" print "Go to http://sourceforge.net/projects/dvipng/ and" print "http://www.imagemagick.org to download these programs." return "Error" # if png output + pdflatex, check to see if convert is installed. elif pdflatex and not have_convert(): print "" print "Error: convert (from the ImageMagick suite) does not" print "appear to be installed. Displaying PDFLaTeX output" print "requires this program, so please install and try again." print "" print "Go to http://www.imagemagick.org to download it." return "Error" # check_validity: check to see if the dvi file is okay by trying # to convert to a png file. if this fails, return_suffix will be # set to "pdf". return_suffix is the return value for this # function. # # thus if not png output, check validity of dvi output if dvipng # or convert is installed. else: check_validity = have_dvipng() # set up filenames, other strings: base, filename = os.path.split(filename) filename = os.path.splitext(filename)[0] # get rid of extension if len(filename.split()) > 1: raise ValueError, "filename must contain no spaces" if not debug: redirect=' 2>/dev/null 1>/dev/null ' else: redirect='' if do_in_background: background = ' &' else: background = '' if pdflatex: command = "pdflatex" # 'suffix' is used in the string 'convert' ... suffix = "pdf" return_suffix = "pdf" else: command = "latex" suffix = "ps" return_suffix = "dvi" # Define the commands to be used: lt = 'cd "%s"&& sage-native-execute %s \\\\nonstopmode \\\\input{%s.tex} %s'%(base, command, filename, redirect) # dvipng is run with the 'picky' option: this means that if # there are warnings, no png file is created. dvipng = 'cd "%s"&& sage-native-execute dvipng --picky -q -T tight -D %s %s.dvi -o %s.png'%(base, density, filename, filename) dvips = 'sage-native-execute dvips %s.dvi %s'%(filename, redirect) ps2pdf = 'sage-native-execute ps2pdf %s.ps %s'%(filename, redirect) # We seem to need a larger size when using convert compared to # when using dvipng: density = int(1.4 * density / 1.3) convert = 'sage-native-execute convert -density %sx%s -trim %s.%s %s.png %s '%\ (density,density, filename, suffix, filename, redirect) e = 1 # it is possible to get through the following commands # without running a program, so in that case we force error if pdflatex: if png: cmd = ' && '.join([lt, convert]) else: cmd = lt if debug: print cmd e = os.system(cmd + ' ' + redirect + background) else: # latex, not pdflatex if (png or check_validity): if have_dvipng(): cmd = ' && '.join([lt, dvipng]) if debug: print cmd e = os.system(cmd + ' ' + redirect) dvipng_error = not os.path.exists(base + '/' + filename + '.png') # If there is no png file, then either the latex # process failed or dvipng failed. Assume that dvipng # failed, and try running dvips and convert. (If the # latex process failed, then dvips and convert will # fail also, so we'll still catch the error.) if dvipng_error: if png: if have_convert(): cmd = ' && '.join(['cd "%s"'%(base,), dvips, convert]) if debug: print "'dvipng' failed; trying 'convert' instead..." print cmd e = os.system(cmd + ' ' + redirect + background) else: print "Error: 'dvipng' failed and 'convert' is not installed." return "Error: dvipng failed." else: # not png, i.e., check_validity return_suffix = "pdf" cmd = ' && '.join(['cd "%s"'%(base,), dvips, ps2pdf]) if debug: print "bad dvi file; running dvips and ps2pdf instead..." print cmd e = os.system(cmd) if e: # error running dvips and/or ps2pdf command = "pdflatex" lt = 'cd "%s"&& sage-native-execute %s \\\\nonstopmode \\\\input{%s.tex} %s'%(base, command, filename, redirect) if debug: print "error running dvips and ps2pdf; trying pdflatex instead..." print cmd e = os.system(cmd + background) else: # don't have dvipng, so must have convert. run latex, dvips, convert. cmd = ' && '.join([lt, dvips, convert]) if debug: print cmd e = os.system(cmd + ' ' + redirect + background) if e: print "An error occurred." try: print open(base + '/' + filename + '.log').read() except IOError: pass return "Error latexing slide." return return_suffix
f861246ed3920cddfa7558f769e8b83392788530 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/f861246ed3920cddfa7558f769e8b83392788530/latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2681, 67, 26264, 67, 12, 3459, 16, 1198, 33, 8381, 16, 12142, 33, 23014, 16, 8169, 26264, 33, 7036, 16, 14476, 33, 8381, 16, 741, 67, 267, 67, 9342, 33, 8381, 4672, 3536, 1220, 7597, 21072, 21575, 60, 603, 326, 28602, 60, 585, 315, 3459, 18, 21763, 9654, 225, 2597, 15505, 1390, 315, 3459, 18, 72, 522, 6, 261, 280, 315, 3459, 18, 7699, 8366, 309, 12176, 7699, 26264, 10335, 353, 12176, 5510, 10335, 13, 471, 309, 12176, 6446, 10335, 353, 1053, 16, 315, 3459, 18, 6446, 9654, 225, 971, 12176, 6446, 10335, 353, 1053, 471, 302, 522, 6446, 848, 1404, 1765, 326, 302, 522, 585, 358, 14476, 261, 26274, 434, 1603, 4263, 4582, 87, 578, 1308, 8296, 3631, 1508, 302, 522, 1121, 353, 2566, 16, 471, 326, 26320, 585, 353, 5970, 358, 279, 14476, 585, 18, 225, 12943, 30, 225, 300, 225, 12176, 3459, 10335, 300, 533, 30, 585, 358, 1207, 16, 6508, 1983, 589, 225, 300, 225, 12176, 4148, 10335, 300, 1426, 261, 10444, 16, 805, 1083, 4672, 2856, 358, 1172, 3988, 10450, 876, 225, 300, 225, 12176, 18781, 10335, 300, 3571, 261, 10444, 16, 805, 18478, 4672, 3661, 5446, 876, 1316, 353, 18, 225, 300, 225, 12176, 7699, 26264, 10335, 300, 1426, 261, 10444, 16, 805, 1083, 4672, 2856, 358, 999, 8169, 26264, 18, 225, 300, 225, 12176, 6446, 10335, 300, 1426, 261, 10444, 16, 805, 1083, 4672, 2856, 358, 11402, 279, 14476, 585, 18, 225, 300, 225, 12176, 2896, 67, 267, 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, 2681, 67, 26264, 67, 12, 3459, 16, 1198, 33, 8381, 16, 12142, 33, 23014, 16, 8169, 26264, 33, 7036, 16, 14476, 33, 8381, 16, 741, 67, 267, 67, 9342, 33, 8381, 4672, 3536, 1220, 7597, 21072, 21575, 60, 603, 326, 28602, 60, 585, 315, 3459, 18, 21763, 9654, 225, 2597, 15505, 1390, 315, 3459, 18, 72, 522, 6, 261, 280, 315, 3459, 18, 7699, 8366, 309, 12176, 7699, 26264, 10335, 353, 12176, 5510, 10335, 13, 471, 309, 12176, 6446, 10335, 353, 1053, 16, 315, 3459, 18, 6446, 9654, 225, 971, 12176, 6446, 10335, 353, 1053, 471, 302, 522, 6446, 848, 1404, 1765, 326, 302, 522, 585, 358, 14476, 261, 26274, 434, 1603, 4263, 4582, 87, 578, 1308, 2 ]
pin = os.popen('%s %s' %(provides, f))
pin = os.popen("%s '%s'" %(provides, f))
def unpackSources(self, builddir):
57ec1d46035ab999c53077cba6d1998411116c8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/57ec1d46035ab999c53077cba6d1998411116c8c/recipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6167, 8628, 12, 2890, 16, 25666, 330, 449, 481, 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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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, 6167, 8628, 12, 2890, 16, 25666, 330, 449, 481, 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 ]
if (self._ContainWebSocketTest(test_files)): self._websocket_server.Start()
def _InstantiateTestShellThreads(self, test_shell_binary, test_files): """Instantitates and starts the TestShellThread(s).
c2dd890e4234509148ededf07c457383ec53046a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/c2dd890e4234509148ededf07c457383ec53046a/run_webkit_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 22438, 4709, 13220, 13233, 12, 2890, 16, 1842, 67, 10304, 67, 8578, 16, 1842, 67, 2354, 4672, 3536, 10675, 305, 815, 471, 2542, 326, 7766, 13220, 3830, 12, 87, 2934, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 22438, 4709, 13220, 13233, 12, 2890, 16, 1842, 67, 10304, 67, 8578, 16, 1842, 67, 2354, 4672, 3536, 10675, 305, 815, 471, 2542, 326, 7766, 13220, 3830, 12, 87, 2934, 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 ]
'<li><a href=".+?" title=".+?">(?P<title>.+?)</a></li>')
'<li><a href="[^\"]+?" title=".+?">(?P<title>.+?)</a></li>')
def usingPages(self): """Yield Pages on which the image is displayed.""" titleList = re.search('(?s)<h2 id="filelinks">.+?</ul>', self.getImagePageHtml()).group() lineR = re.compile( '<li><a href=".+?" title=".+?">(?P<title>.+?)</a></li>') for match in lineR.finditer(titleList): try: yield Page(self.site(), match.group('title')) except InvalidTitle: output( u"Image description page %s contains invalid reference to [[%s]]." % (self.title(), match.group('title')))
647982ef07d6fc37b2f41a3ba5ae98d7467d5410 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/647982ef07d6fc37b2f41a3ba5ae98d7467d5410/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1450, 5716, 12, 2890, 4672, 3536, 16348, 22648, 603, 1492, 326, 1316, 353, 10453, 12123, 2077, 682, 273, 283, 18, 3072, 2668, 3680, 87, 13, 32, 76, 22, 612, 1546, 7540, 27269, 87, 6441, 15591, 35, 1757, 332, 1870, 16, 365, 18, 588, 2040, 1964, 4353, 1435, 2934, 1655, 1435, 980, 54, 273, 283, 18, 11100, 12, 2368, 549, 4438, 69, 3897, 1546, 5969, 2412, 3737, 7225, 2077, 1546, 15591, 35, 6441, 3680, 52, 32, 2649, 34, 15591, 8535, 1757, 69, 4695, 549, 1870, 13, 225, 364, 845, 316, 980, 54, 18, 4720, 2165, 12, 2649, 682, 4672, 775, 30, 2824, 3460, 12, 2890, 18, 4256, 9334, 845, 18, 1655, 2668, 2649, 26112, 1335, 1962, 4247, 30, 876, 12, 582, 6, 2040, 2477, 1363, 738, 87, 1914, 2057, 2114, 358, 12167, 9, 87, 13563, 1199, 738, 261, 2890, 18, 2649, 9334, 845, 18, 1655, 2668, 2649, 11, 20349, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1450, 5716, 12, 2890, 4672, 3536, 16348, 22648, 603, 1492, 326, 1316, 353, 10453, 12123, 2077, 682, 273, 283, 18, 3072, 2668, 3680, 87, 13, 32, 76, 22, 612, 1546, 7540, 27269, 87, 6441, 15591, 35, 1757, 332, 1870, 16, 365, 18, 588, 2040, 1964, 4353, 1435, 2934, 1655, 1435, 980, 54, 273, 283, 18, 11100, 12, 2368, 549, 4438, 69, 3897, 1546, 5969, 2412, 3737, 7225, 2077, 1546, 15591, 35, 6441, 3680, 52, 32, 2649, 34, 15591, 8535, 1757, 69, 4695, 549, 1870, 13, 225, 364, 845, 316, 980, 54, 18, 4720, 2165, 12, 2649, 682, 4672, 775, 30, 2824, 3460, 12, 2890, 18, 4256, 9334, 845, 18, 1655, 2668, 2649, 26112, 1335, 1962, 4247, 30, 876, 2 ]
return '%s(fpointer=0x%x, finalise=%d)' % (self.__class__.__name__, self._fpointer, self._finalise)
if self._fpointer is None: return '%s(fpointer=None, finalise=%d)' % (self.__class__.__name__, self._finalise) else: return '%s(fpointer=0x%x, finalise=%d)' % (self.__class__.__name__, self._fpointer, self._finalise)
def __repr__(self): return '%s(fpointer=0x%x, finalise=%d)' % (self.__class__.__name__, self._fpointer, self._finalise)
5df60c8041314d116fa9683b7643ceff0810d75f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/5df60c8041314d116fa9683b7643ceff0810d75f/oo_fortran.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 1995, 87, 12, 7944, 2480, 33, 20, 92, 9, 92, 16, 727, 784, 5095, 72, 2506, 738, 261, 2890, 16186, 1106, 972, 16186, 529, 972, 16, 365, 6315, 7944, 2480, 16, 365, 6315, 6385, 784, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12715, 972, 12, 2890, 4672, 327, 1995, 87, 12, 7944, 2480, 33, 20, 92, 9, 92, 16, 727, 784, 5095, 72, 2506, 738, 261, 2890, 16186, 1106, 972, 16186, 529, 972, 16, 365, 6315, 7944, 2480, 16, 365, 6315, 6385, 784, 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 ]
if _check_build_dir(ret, "win32", source_root_name, "build/temp.win32-%s" % sys.winver):
if _check_build_dir(ret, "win32", source_root_name, "build/temp.win32-%s/Release" % sys.winver):
def _get_build_dirs(source_root_name): ret = {} if _check_build_dir(ret, "win32", source_root_name, "build/temp.win32-%s" % sys.winver): pass elif _check_build_dir(ret, "win32", source_root_name, "win32/build"): pass # todo: add com etc maybe? return ret
a9409a7edf86df0a8c94daf9520725bfbb946a5f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1361/a9409a7edf86df0a8c94daf9520725bfbb946a5f/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 3510, 67, 8291, 12, 3168, 67, 3085, 67, 529, 4672, 325, 273, 2618, 309, 389, 1893, 67, 3510, 67, 1214, 12, 1349, 16, 315, 8082, 1578, 3113, 1084, 67, 3085, 67, 529, 16, 315, 3510, 19, 5814, 18, 8082, 1578, 6456, 87, 19, 7391, 6, 738, 2589, 18, 8082, 502, 4672, 1342, 1327, 389, 1893, 67, 3510, 67, 1214, 12, 1349, 16, 315, 8082, 1578, 3113, 1084, 67, 3085, 67, 529, 16, 315, 8082, 1578, 19, 3510, 6, 4672, 1342, 468, 10621, 30, 527, 532, 5527, 6944, 35, 327, 325, 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,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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 3510, 67, 8291, 12, 3168, 67, 3085, 67, 529, 4672, 325, 273, 2618, 309, 389, 1893, 67, 3510, 67, 1214, 12, 1349, 16, 315, 8082, 1578, 3113, 1084, 67, 3085, 67, 529, 16, 315, 3510, 19, 5814, 18, 8082, 1578, 6456, 87, 19, 7391, 6, 738, 2589, 18, 8082, 502, 4672, 1342, 1327, 389, 1893, 67, 3510, 67, 1214, 12, 1349, 16, 315, 8082, 1578, 3113, 1084, 67, 3085, 67, 529, 16, 315, 8082, 1578, 19, 3510, 6, 4672, 1342, 468, 10621, 30, 527, 532, 5527, 6944, 35, 327, 325, 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 ]
add_tag(tags, metadata, "artist", "ArtistName") add_tag(tags, metadata, "album", "AlbumTitle") add_tag(tags, metadata, "title", "TrackName") add_tag(tags, metadata, "tracknumber", "TrackNumber")
if extension == '.m4a': add_tag(tags, metadata, "\xa9ART", "ArtistName") add_tag(tags, metadata, "\xa9alb", "AlbumTitle") add_tag(tags, metadata, "\xa9nam", "TrackName") add_tag(tags, metadata, "trkn", "TrackNumber") else: add_tag(tags, metadata, "artist", "ArtistName") add_tag(tags, metadata, "album", "AlbumTitle") add_tag(tags, metadata, "title", "TrackName") add_tag(tags, metadata, "tracknumber", "TrackNumber")
def add_tag(tags, metadata, read_name, write_name): if read_name in tags: tag = tags.tags[read_name] tag = tag[0] metadata.write("%s\n" % write_name) metadata.write("%s\n" % tag)
f3d8d2a6cd7c6ee339fd6fd0b0c9d1e55a9f9de5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13015/f3d8d2a6cd7c6ee339fd6fd0b0c9d1e55a9f9de5/get_metadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2692, 12, 4156, 16, 1982, 16, 855, 67, 529, 16, 1045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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2692, 12, 4156, 16, 1982, 16, 855, 67, 529, 16, 1045, 67, 529, 4672, 309, 855, 67, 529, 316, 2342, 30, 1047, 273, 2342, 18, 4156, 63, 896, 67, 529, 65, 1047, 273, 1047, 63, 20, 65, 1982, 18, 2626, 27188, 87, 64, 82, 6, 738, 1045, 67, 529, 13, 1982, 18, 2626, 27188, 87, 64, 82, 6, 738, 1047, 13, 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 ]
expected_text="</html>"))
expected_text="</html>"))
def test_twpc_username_arg(self): """testutils - test_web_page_content() and username arguments""" # should login as admin without password: self.assertEqual([], test_web_page_content(weburl, username="admin", expected_text="</html>")) # should not login as admin with password: errmsgs = test_web_page_content(weburl, username="admin", password="foo", expected_text="</html>") if errmsgs[0].find("ERROR: Cannot login as admin, test skipped.") > -1: pass else: self.fail("Should not be able to login as admin with foo password.") return
cb40db67bfc5eb0a89016ecb3e591e03d4c76e91 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/cb40db67bfc5eb0a89016ecb3e591e03d4c76e91/testutils_regression_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 11246, 2436, 67, 5053, 67, 3175, 12, 2890, 4672, 3536, 3813, 5471, 300, 1842, 67, 4875, 67, 2433, 67, 1745, 1435, 471, 2718, 1775, 8395, 468, 1410, 3925, 487, 3981, 2887, 2201, 30, 365, 18, 11231, 5812, 3816, 6487, 1842, 67, 4875, 67, 2433, 67, 1745, 12, 4875, 718, 16, 2718, 1546, 3666, 3113, 2665, 67, 955, 1546, 1757, 2620, 2984, 3719, 468, 1410, 486, 3925, 487, 3981, 598, 2201, 30, 393, 27439, 273, 1842, 67, 4875, 67, 2433, 67, 1745, 12, 4875, 718, 16, 2718, 1546, 3666, 3113, 2201, 1546, 11351, 3113, 2665, 67, 955, 1546, 1757, 2620, 2984, 13, 309, 393, 27439, 63, 20, 8009, 4720, 2932, 3589, 30, 14143, 3925, 487, 3981, 16, 1842, 9700, 1199, 13, 405, 300, 21, 30, 1342, 469, 30, 365, 18, 6870, 2932, 14309, 486, 506, 7752, 358, 3925, 487, 3981, 598, 8431, 2201, 1199, 13, 327, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 11246, 2436, 67, 5053, 67, 3175, 12, 2890, 4672, 3536, 3813, 5471, 300, 1842, 67, 4875, 67, 2433, 67, 1745, 1435, 471, 2718, 1775, 8395, 468, 1410, 3925, 487, 3981, 2887, 2201, 30, 365, 18, 11231, 5812, 3816, 6487, 1842, 67, 4875, 67, 2433, 67, 1745, 12, 4875, 718, 16, 2718, 1546, 3666, 3113, 2665, 67, 955, 1546, 1757, 2620, 2984, 3719, 468, 1410, 486, 3925, 487, 3981, 598, 2201, 30, 393, 27439, 273, 1842, 67, 4875, 67, 2433, 67, 1745, 12, 4875, 718, 16, 2718, 1546, 3666, 3113, 2201, 1546, 11351, 3113, 2665, 67, 955, 1546, 1757, 2620, 2984, 13, 309, 393, 27439, 63, 20, 8009, 4720, 2932, 3589, 30, 14143, 3925, 487, 3981, 16, 2 ]
format = decompose_file(format)[2]
format = decompose_file(fullpath)[2]
def add_new_file(self, fullpath, doctype="Main", docname=None, never_fail=False, description=None, comment=None, format=None): """Adds a new file with the following policy: if the docname is not set it is retrieved from the name of the file. If bibdoc with the given docname doesn't exist, it is created and the file is added to it. It it exist but it doesn't contain the format that is being added, the new format is added. If the format already exists then if never_fail is True a new bibdoc is created with a similar name but with a progressive number as a suffix and the file is added to it. The elaborated bibdoc is returned. """ if docname is None: docname = decompose_file(fullpath)[1] if format is None: format = decompose_file(format)[2] docname = normalize_docname(docname) try: bibdoc = self.get_bibdoc(docname) except InvenioWebSubmitFileError: # bibdoc doesn't already exists! bibdoc = self.add_bibdoc(doctype, docname, False) bibdoc.add_file_new_version(fullpath, description=description, comment=comment, format=format) else: try: bibdoc.add_file_new_format(fullpath, description=description, comment=comment, format=format) except InvenioWebSubmitFileError, e: # Format already exist! if never_fail: bibdoc = self.add_bibdoc(doctype, docname, True) bibdoc.add_file_new_version(fullpath, description=description, comment=comment, format=format) else: raise e return bibdoc
147856eadb240c281c737b46d059f8d84354d697 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/147856eadb240c281c737b46d059f8d84354d697/bibdocfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2704, 67, 768, 12, 2890, 16, 15170, 16, 24909, 1546, 6376, 3113, 997, 529, 33, 7036, 16, 5903, 67, 6870, 33, 8381, 16, 2477, 33, 7036, 16, 2879, 33, 7036, 16, 740, 33, 7036, 4672, 3536, 3655, 279, 394, 585, 598, 326, 3751, 3329, 30, 309, 326, 997, 529, 353, 486, 444, 518, 353, 10295, 628, 326, 508, 434, 326, 585, 18, 971, 25581, 2434, 598, 326, 864, 997, 529, 3302, 1404, 1005, 16, 518, 353, 2522, 471, 326, 585, 353, 3096, 358, 518, 18, 2597, 518, 1005, 1496, 518, 3302, 1404, 912, 326, 740, 716, 353, 3832, 3096, 16, 326, 394, 740, 353, 3096, 18, 971, 326, 740, 1818, 1704, 1508, 309, 5903, 67, 6870, 353, 1053, 279, 394, 25581, 2434, 353, 2522, 598, 279, 7281, 508, 1496, 598, 279, 4007, 688, 1300, 487, 279, 3758, 471, 326, 585, 353, 3096, 358, 518, 18, 1021, 415, 378, 280, 690, 25581, 2434, 353, 2106, 18, 3536, 309, 997, 529, 353, 599, 30, 997, 529, 273, 24476, 67, 768, 12, 2854, 803, 25146, 21, 65, 309, 740, 353, 599, 30, 740, 273, 24476, 67, 768, 12, 2854, 803, 25146, 22, 65, 997, 529, 273, 3883, 67, 2434, 529, 12, 2434, 529, 13, 775, 30, 25581, 2434, 273, 365, 18, 588, 67, 70, 495, 2434, 12, 2434, 529, 13, 1335, 657, 3995, 1594, 4079, 11620, 812, 668, 30, 468, 25581, 2434, 3302, 1404, 1818, 1704, 5, 25581, 2434, 273, 365, 18, 1289, 67, 70, 495, 2434, 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, 527, 67, 2704, 67, 768, 12, 2890, 16, 15170, 16, 24909, 1546, 6376, 3113, 997, 529, 33, 7036, 16, 5903, 67, 6870, 33, 8381, 16, 2477, 33, 7036, 16, 2879, 33, 7036, 16, 740, 33, 7036, 4672, 3536, 3655, 279, 394, 585, 598, 326, 3751, 3329, 30, 309, 326, 997, 529, 353, 486, 444, 518, 353, 10295, 628, 326, 508, 434, 326, 585, 18, 971, 25581, 2434, 598, 326, 864, 997, 529, 3302, 1404, 1005, 16, 518, 353, 2522, 471, 326, 585, 353, 3096, 358, 518, 18, 2597, 518, 1005, 1496, 518, 3302, 1404, 912, 326, 740, 716, 353, 3832, 3096, 16, 326, 394, 740, 353, 3096, 18, 971, 326, 740, 1818, 1704, 1508, 309, 5903, 67, 6870, 2 ]
netloc = params = query = fragment = ''
netloc = query = fragment = ''
def urlparse(url, scheme = '', allow_fragments = 1): """Parse a URL into 6 components: <scheme>://<netloc>/<path>;<params>?<query>#<fragment> Return a 6-tuple: (scheme, netloc, path, params, query, fragment). Note that we don't break the components up in smaller bits (e.g. netloc is a single string) and we don't expand % escapes.""" key = url, scheme, allow_fragments cached = _parse_cache.get(key, None) if cached: return cached if len(_parse_cache) >= MAX_CACHE_SIZE: # avoid runaway growth clear_cache() netloc = params = query = fragment = '' i = url.find(':') if i > 0: if url[:i] == 'http': # optimize the common case scheme = url[:i].lower() url = url[i+1:] if url[:2] == '//': i = url.find('/', 2) if i < 0: i = len(url) netloc = url[2:i] url = url[i:] if allow_fragments: i = url.rfind('#') if i >= 0: fragment = url[i+1:] url = url[:i] i = url.find('?') if i >= 0: query = url[i+1:] url = url[:i] i = url.find(';') if i >= 0: params = url[i+1:] url = url[:i] tuple = scheme, netloc, url, params, query, fragment _parse_cache[key] = tuple return tuple for c in url[:i]: if c not in scheme_chars: break else: scheme, url = url[:i].lower(), url[i+1:] if scheme in uses_netloc: if url[:2] == '//': i = url.find('/', 2) if i < 0: i = len(url) netloc, url = url[2:i], url[i:] if allow_fragments and scheme in uses_fragment: i = url.rfind('#') if i >= 0: url, fragment = url[:i], url[i+1:] if scheme in uses_query: i = url.find('?') if i >= 0: url, query = url[:i], url[i+1:] if scheme in uses_params: i = url.find(';') if i >= 0: url, params = url[:i], url[i+1:] tuple = scheme, netloc, url, params, query, fragment _parse_cache[key] = tuple return tuple
25350d7d3dc12d7365aaee887c8eb007dd4b7826 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/25350d7d3dc12d7365aaee887c8eb007dd4b7826/urlparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15185, 12, 718, 16, 4355, 273, 10226, 1699, 67, 29528, 273, 404, 4672, 3536, 3201, 279, 1976, 1368, 1666, 4085, 30, 411, 9068, 34, 2207, 32, 2758, 1829, 16893, 32, 803, 34, 31, 32, 2010, 34, 35, 32, 2271, 34, 7, 32, 11956, 34, 2000, 279, 1666, 17, 8052, 30, 261, 9068, 16, 17345, 16, 589, 16, 859, 16, 843, 16, 5481, 2934, 3609, 716, 732, 2727, 1404, 898, 326, 4085, 731, 316, 10648, 4125, 261, 73, 18, 75, 18, 17345, 353, 279, 2202, 533, 13, 471, 732, 2727, 1404, 4542, 738, 23802, 12123, 498, 273, 880, 16, 4355, 16, 1699, 67, 29528, 3472, 273, 389, 2670, 67, 2493, 18, 588, 12, 856, 16, 599, 13, 309, 3472, 30, 327, 3472, 309, 562, 24899, 2670, 67, 2493, 13, 1545, 4552, 67, 8495, 67, 4574, 30, 468, 4543, 1086, 26718, 13334, 451, 2424, 67, 2493, 1435, 17345, 273, 843, 273, 5481, 273, 875, 277, 273, 880, 18, 4720, 2668, 2497, 13, 309, 277, 405, 374, 30, 309, 880, 10531, 77, 65, 422, 296, 2505, 4278, 468, 10979, 326, 2975, 648, 4355, 273, 880, 10531, 77, 8009, 8167, 1435, 880, 273, 880, 63, 77, 15, 21, 26894, 309, 880, 10531, 22, 65, 422, 12084, 4278, 277, 273, 880, 18, 4720, 2668, 19, 2187, 576, 13, 309, 277, 411, 374, 30, 277, 273, 562, 12, 718, 13, 17345, 273, 880, 63, 22, 30, 77, 65, 880, 273, 880, 63, 77, 26894, 309, 1699, 67, 29528, 30, 277, 273, 880, 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, 15185, 12, 718, 16, 4355, 273, 10226, 1699, 67, 29528, 273, 404, 4672, 3536, 3201, 279, 1976, 1368, 1666, 4085, 30, 411, 9068, 34, 2207, 32, 2758, 1829, 16893, 32, 803, 34, 31, 32, 2010, 34, 35, 32, 2271, 34, 7, 32, 11956, 34, 2000, 279, 1666, 17, 8052, 30, 261, 9068, 16, 17345, 16, 589, 16, 859, 16, 843, 16, 5481, 2934, 3609, 716, 732, 2727, 1404, 898, 326, 4085, 731, 316, 10648, 4125, 261, 73, 18, 75, 18, 17345, 353, 279, 2202, 533, 13, 471, 732, 2727, 1404, 4542, 738, 23802, 12123, 498, 273, 880, 16, 4355, 16, 1699, 67, 29528, 3472, 273, 389, 2670, 67, 2493, 18, 588, 12, 856, 16, 599, 13, 309, 3472, 2 ]
return result
self._attachedHooks = None if results == (True, True): return True else: if results == (False, False): return False
def detachHooks(self): """Detaches / removes callbacks from the map's hooks. Returns True if successful, False if already detached.""" result = self.nodeOverlay.detachHooks() and \ self.edgeOverlay.detachHooks() if result: for h in self._attachedHooks: h.disconnect() return result
f5646ba2e97d09010f52d1aef7d2c80ad99e53d4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/f5646ba2e97d09010f52d1aef7d2c80ad99e53d4/mapdisplay.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10199, 13620, 12, 2890, 4672, 3536, 17650, 281, 342, 7157, 6689, 628, 326, 852, 1807, 9153, 18, 2860, 1053, 309, 6873, 16, 1083, 309, 1818, 22037, 12123, 563, 273, 365, 18, 2159, 11627, 18, 8238, 497, 13620, 1435, 471, 521, 365, 18, 7126, 11627, 18, 8238, 497, 13620, 1435, 309, 563, 30, 364, 366, 316, 365, 6315, 24157, 13620, 30, 366, 18, 20177, 1435, 327, 563, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10199, 13620, 12, 2890, 4672, 3536, 17650, 281, 342, 7157, 6689, 628, 326, 852, 1807, 9153, 18, 2860, 1053, 309, 6873, 16, 1083, 309, 1818, 22037, 12123, 563, 273, 365, 18, 2159, 11627, 18, 8238, 497, 13620, 1435, 471, 521, 365, 18, 7126, 11627, 18, 8238, 497, 13620, 1435, 309, 563, 30, 364, 366, 316, 365, 6315, 24157, 13620, 30, 366, 18, 20177, 1435, 327, 563, 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 ]
items += [ menu.MenuItem("play chapter %s" % c, play_movie,
items += [ menu.MenuItem("play chapter %s" % c, chapter_selection,
def chapter_selection_menu(arg=None, menuw=None): items = [] for c in range(1, arg.available_chapters+1): items += [ menu.MenuItem("play chapter %s" % c, play_movie, (arg, ' -chapter %s' % c)) ] moviemenu = menu.Menu('CHAPTER MENU', items) menuw.pushmenu(moviemenu)
e6fd3cb2c0d12112f6fb0c3addb030ab80daf2be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/e6fd3cb2c0d12112f6fb0c3addb030ab80daf2be/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23580, 67, 10705, 67, 5414, 12, 3175, 33, 7036, 16, 3824, 91, 33, 7036, 4672, 1516, 273, 5378, 364, 276, 316, 1048, 12, 21, 16, 1501, 18, 5699, 67, 343, 1657, 414, 15, 21, 4672, 1516, 1011, 306, 3824, 18, 12958, 2932, 1601, 23580, 738, 87, 6, 738, 276, 16, 23580, 67, 10705, 16, 261, 3175, 16, 296, 300, 31254, 738, 87, 11, 738, 276, 3719, 308, 7344, 522, 351, 2104, 273, 3824, 18, 4599, 2668, 1792, 37, 1856, 654, 490, 1157, 57, 2187, 1516, 13, 3824, 91, 18, 6206, 5414, 12, 8683, 522, 351, 2104, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 23580, 67, 10705, 67, 5414, 12, 3175, 33, 7036, 16, 3824, 91, 33, 7036, 4672, 1516, 273, 5378, 364, 276, 316, 1048, 12, 21, 16, 1501, 18, 5699, 67, 343, 1657, 414, 15, 21, 4672, 1516, 1011, 306, 3824, 18, 12958, 2932, 1601, 23580, 738, 87, 6, 738, 276, 16, 23580, 67, 10705, 16, 261, 3175, 16, 296, 300, 31254, 738, 87, 11, 738, 276, 3719, 308, 7344, 522, 351, 2104, 273, 3824, 18, 4599, 2668, 1792, 37, 1856, 654, 490, 1157, 57, 2187, 1516, 13, 3824, 91, 18, 6206, 5414, 12, 8683, 522, 351, 2104, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def checksums(self, files): """Run checksums for a set of output files, and append to the list."""
def checksum(self, filename): """Run checksum for an output file, and append to the list."""
def checksums(self, files): """Run checksums for a set of output files, and append to the list.""" output = file(self.publicPath("md5sums.txt"), "a") for filename in files: self.saveChecksum(filename, output) output.close()
40a23c5e6ea079738b9c939453207d50ac224e26 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9870/40a23c5e6ea079738b9c939453207d50ac224e26/worker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6697, 12, 2890, 16, 1544, 4672, 3536, 1997, 6697, 364, 392, 876, 585, 16, 471, 714, 358, 326, 666, 12123, 876, 273, 585, 12, 2890, 18, 482, 743, 2932, 1264, 25, 1364, 87, 18, 5830, 6, 3631, 315, 69, 7923, 364, 1544, 316, 1390, 30, 365, 18, 5688, 10723, 12, 3459, 16, 876, 13, 876, 18, 4412, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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, 1544, 4672, 3536, 1997, 6697, 364, 392, 876, 585, 16, 471, 714, 358, 326, 666, 12123, 876, 273, 585, 12, 2890, 18, 482, 743, 2932, 1264, 25, 1364, 87, 18, 5830, 6, 3631, 315, 69, 7923, 364, 1544, 316, 1390, 30, 365, 18, 5688, 10723, 12, 3459, 16, 876, 13, 876, 18, 4412, 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, -100 ]
imap_srv = imaplib.IMAP4(imap_server)
imap_username = getpass.getuser() if options.pwfile: imap_password = open(options.pwfile).read().rstrip() else: imap_password = getpass.getpass() imap_server, imap_folder = imap_str.split('/', 1) if mailbox_name[:5] == 'imaps': vprint("Using SSL") imap_srv = imaplib.IMAP4_SSL(imap_server) else: imap_srv = imaplib.IMAP4(imap_server)
def _archive_imap(mailbox_name, final_archive_name): """Archive an imap mailbox - used by archive_mailbox()""" assert(mailbox_name) assert(final_archive_name) import imaplib import cStringIO archive = None stats = Stats(mailbox_name, final_archive_name) imap_str = mailbox_name[7:] filter = build_imap_filter() vprint("imap filter: '%s'" % filter) try: imap_username, imap_str = imap_str.split(':', 1) imap_password, imap_str = imap_str.split('@', 1) imap_server, imap_folder = imap_str.split('/', 1) except: unexpected_error("you must provide a properly formatted \ IMAP connection string") imap_srv = imaplib.IMAP4(imap_server) vprint("connected to server %s" % imap_server) result, response = imap_srv.login(imap_username, imap_password) if result != 'OK': unexpected_error("authentication failure") vprint("logged in to server as %s" % imap_username) result, response = imap_srv.select(imap_folder) if result != 'OK': unexpected_error("cannot select imap folder") vprint("selected imap folder %s" % imap_folder) result, response = imap_srv.search(None, filter) if result != 'OK': unexpected_error("imap search failed") message_list_str = response[0] message_list = response[0].split() vprint("%d messages found matching filter" % len(message_list)) for msg_id in message_list: result, response = imap_srv.fetch(msg_id, '(RFC822 FLAGS)') if result != 'OK': unexpected_error("Failed to fetch message") msg_str = response[0][1] msg_flags = imaplib.ParseFlags(response[1]) msg = rfc822.Message(cStringIO.StringIO(msg_str)) add_status_headers_imap(msg, msg_flags) vprint("processing message '%s'" % msg.get('Message-ID')) if options.warn_duplicates: cache.warn_if_dupe(msg) if not options.dry_run: if not archive: archive = ArchiveMbox(final_archive_name) archive.write(msg) stats.another_archived() if not options.dry_run: if archive: archive.close() archive.finalise() vprint("Deleting messages") imap_srv.store(string.join(message_list, ','), '+FLAGS.SILENT', '\\Deleted') imap_srv.close() imap_srv.logout()
a91b2064cb7acf9c488e02a0c5e1e8c3dfe38787 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1746/a91b2064cb7acf9c488e02a0c5e1e8c3dfe38787/archivemail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10686, 67, 12161, 12, 4408, 2147, 67, 529, 16, 727, 67, 10686, 67, 529, 4672, 3536, 7465, 392, 20226, 14187, 300, 1399, 635, 5052, 67, 4408, 2147, 1435, 8395, 1815, 12, 4408, 2147, 67, 529, 13, 1815, 12, 6385, 67, 10686, 67, 529, 13, 1930, 709, 69, 6673, 1930, 276, 780, 4294, 225, 5052, 273, 599, 3177, 273, 11486, 12, 4408, 2147, 67, 529, 16, 727, 67, 10686, 67, 529, 13, 20226, 67, 701, 273, 14187, 67, 529, 63, 27, 26894, 1034, 273, 1361, 67, 12161, 67, 2188, 1435, 331, 1188, 2932, 12161, 1034, 30, 1995, 87, 4970, 738, 1034, 13, 775, 30, 20226, 67, 5053, 16, 20226, 67, 701, 273, 20226, 67, 701, 18, 4939, 2668, 30, 2187, 404, 13, 20226, 67, 3664, 16, 20226, 67, 701, 273, 20226, 67, 701, 18, 4939, 2668, 36, 2187, 404, 13, 20226, 67, 3567, 16, 20226, 67, 5609, 273, 20226, 67, 701, 18, 4939, 2668, 19, 2187, 404, 13, 1335, 30, 9733, 67, 1636, 2932, 19940, 1297, 5615, 279, 8214, 4955, 521, 6246, 2203, 1459, 533, 7923, 20226, 67, 5053, 273, 31889, 18, 588, 1355, 1435, 309, 702, 18, 14921, 768, 30, 20226, 67, 3664, 273, 1696, 12, 2116, 18, 14921, 768, 2934, 896, 7675, 86, 6406, 1435, 469, 30, 20226, 67, 3664, 273, 31889, 18, 588, 5466, 1435, 20226, 67, 3567, 16, 20226, 67, 5609, 273, 20226, 67, 701, 18, 4939, 2668, 19, 2187, 404, 13, 225, 309, 14187, 67, 529, 10531, 25, 65, 422, 296, 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, 10686, 67, 12161, 12, 4408, 2147, 67, 529, 16, 727, 67, 10686, 67, 529, 4672, 3536, 7465, 392, 20226, 14187, 300, 1399, 635, 5052, 67, 4408, 2147, 1435, 8395, 1815, 12, 4408, 2147, 67, 529, 13, 1815, 12, 6385, 67, 10686, 67, 529, 13, 1930, 709, 69, 6673, 1930, 276, 780, 4294, 225, 5052, 273, 599, 3177, 273, 11486, 12, 4408, 2147, 67, 529, 16, 727, 67, 10686, 67, 529, 13, 20226, 67, 701, 273, 14187, 67, 529, 63, 27, 26894, 1034, 273, 1361, 67, 12161, 67, 2188, 1435, 331, 1188, 2932, 12161, 1034, 30, 1995, 87, 4970, 738, 1034, 13, 775, 30, 20226, 67, 5053, 16, 20226, 67, 701, 273, 20226, 67, 701, 18, 4939, 2668, 2 ]
if s[0:1] in ' \t\n':
if s[0:1] in ' \t\n':
def format_article(self, article): # called from add_article # TBD: Why do the HTML formatting here and keep it in the # pipermail database? It makes more sense to do the html # formatting as the article is being written as html and toss # the data after it has been written to the archive file.
3af39c5f05e82fd415c7f13441692ce1fa61bab9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/3af39c5f05e82fd415c7f13441692ce1fa61bab9/HyperArch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 67, 11480, 12, 2890, 16, 7559, 4672, 468, 2566, 628, 527, 67, 11480, 468, 399, 18096, 30, 3497, 93, 741, 326, 3982, 10407, 2674, 471, 3455, 518, 316, 326, 468, 4790, 457, 4408, 2063, 35, 225, 2597, 7297, 1898, 12764, 358, 741, 326, 1729, 468, 10407, 487, 326, 7559, 353, 3832, 5941, 487, 1729, 471, 358, 1049, 468, 326, 501, 1839, 518, 711, 2118, 5941, 358, 326, 5052, 585, 18, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 67, 11480, 12, 2890, 16, 7559, 4672, 468, 2566, 628, 527, 67, 11480, 468, 399, 18096, 30, 3497, 93, 741, 326, 3982, 10407, 2674, 471, 3455, 518, 316, 326, 468, 4790, 457, 4408, 2063, 35, 225, 2597, 7297, 1898, 12764, 358, 741, 326, 1729, 468, 10407, 487, 326, 7559, 353, 3832, 5941, 487, 1729, 471, 358, 1049, 468, 326, 501, 1839, 518, 711, 2118, 5941, 358, 326, 5052, 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 ]
sage: g=graphs.PetersenGraph()
sage: g = graphs.PetersenGraph()
def canonical_label(self, partition=None, certify=False, verbosity=0, edge_labels=False): """ Returns the canonical label with respect to the partition. If no partition is given, uses the unit partition. INPUT: - ``partition`` - if given, the canonical label with respect to this partition will be computed. The default is the unit partition. - ``certify`` - if True, a dictionary mapping from the (di)graph to its canonical label will be given. - ``verbosity`` - gets passed to nice: prints helpful output. - ``edge_labels`` - default False, otherwise allows only permutations respecting edge labels. EXAMPLES:: sage: D = graphs.DodecahedralGraph() sage: E = D.canonical_label(); E Dodecahedron: Graph on 20 vertices sage: D.canonical_label(certify=True) (Dodecahedron: Graph on 20 vertices, {0: 0, 1: 19, 2: 16, 3: 15, 4: 9, 5: 1, 6: 10, 7: 8, 8: 14, 9: 12, 10: 17, 11: 11, 12: 5, 13: 6, 14: 2, 15: 4, 16: 3, 17: 7, 18: 13, 19: 18}) sage: D.is_isomorphic(E) True Multigraphs:: sage: G = Graph(multiedges=True,sparse=True) sage: G.add_edge((0,1)) sage: G.add_edge((0,1)) sage: G.add_edge((0,1)) sage: G.canonical_label() Multi-graph on 2 vertices sage: Graph('A?', implementation='c_graph').canonical_label() Graph on 2 vertices
ed981e55ab1e450a7a93415d1a6c2e8a67d3eaa9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/ed981e55ab1e450a7a93415d1a6c2e8a67d3eaa9/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7378, 67, 1925, 12, 2890, 16, 3590, 33, 7036, 16, 3320, 1164, 33, 8381, 16, 11561, 33, 20, 16, 3591, 67, 5336, 33, 8381, 4672, 3536, 2860, 326, 7378, 1433, 598, 8762, 358, 326, 3590, 18, 971, 1158, 3590, 353, 864, 16, 4692, 326, 2836, 3590, 18, 225, 12943, 30, 282, 300, 225, 12176, 10534, 10335, 300, 309, 864, 16, 326, 7378, 1433, 598, 8762, 358, 333, 3590, 903, 506, 8470, 18, 1021, 805, 353, 326, 2836, 3590, 18, 225, 300, 225, 12176, 7593, 1164, 10335, 300, 309, 1053, 16, 279, 3880, 2874, 628, 326, 261, 3211, 13, 4660, 358, 2097, 7378, 1433, 903, 506, 864, 18, 225, 300, 225, 12176, 16629, 8807, 10335, 300, 5571, 2275, 358, 13752, 30, 14971, 28063, 876, 18, 225, 300, 225, 12176, 7126, 67, 5336, 10335, 300, 805, 1083, 16, 3541, 5360, 1338, 26468, 8762, 310, 3591, 3249, 18, 282, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 463, 273, 19422, 18, 40, 390, 5353, 28351, 4137, 1435, 272, 410, 30, 512, 273, 463, 18, 18288, 67, 1925, 5621, 512, 463, 390, 5353, 18550, 1949, 30, 5601, 603, 4200, 6928, 272, 410, 30, 463, 18, 18288, 67, 1925, 12, 7593, 1164, 33, 5510, 13, 261, 40, 390, 5353, 18550, 1949, 30, 5601, 603, 4200, 6928, 16, 288, 20, 30, 374, 16, 404, 30, 5342, 16, 576, 30, 2872, 16, 890, 30, 4711, 16, 1059, 30, 2468, 16, 1381, 30, 404, 16, 1666, 30, 1728, 16, 2371, 30, 1725, 16, 1725, 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, 7378, 67, 1925, 12, 2890, 16, 3590, 33, 7036, 16, 3320, 1164, 33, 8381, 16, 11561, 33, 20, 16, 3591, 67, 5336, 33, 8381, 4672, 3536, 2860, 326, 7378, 1433, 598, 8762, 358, 326, 3590, 18, 971, 1158, 3590, 353, 864, 16, 4692, 326, 2836, 3590, 18, 225, 12943, 30, 282, 300, 225, 12176, 10534, 10335, 300, 309, 864, 16, 326, 7378, 1433, 598, 8762, 358, 333, 3590, 903, 506, 8470, 18, 1021, 805, 353, 326, 2836, 3590, 18, 225, 300, 225, 12176, 7593, 1164, 10335, 300, 309, 1053, 16, 279, 3880, 2874, 628, 326, 261, 3211, 13, 4660, 358, 2097, 7378, 1433, 903, 506, 864, 18, 225, 300, 225, 12176, 16629, 8807, 10335, 300, 5571, 2275, 358, 2 ]
self.body.append('\n.br\n')
self.body.append('\n')
def depart_line(self, node): self.body.append('\n.br\n')
0c70e9d508694a8c78001ed892d01ad239f0e0ed /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5620/0c70e9d508694a8c78001ed892d01ad239f0e0ed/manpage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 1369, 12, 2890, 16, 756, 4672, 365, 18, 3432, 18, 6923, 2668, 64, 82, 18, 2848, 64, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 1369, 12, 2890, 16, 756, 4672, 365, 18, 3432, 18, 6923, 2668, 64, 82, 18, 2848, 64, 82, 6134, 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 ]
if avg:
if avg and bin[avg]:
def query_bins(self): """ Runs the query to calculate the bins and their relevent data """ # local vars x = self.x x1 = self.x1 y = self.y y1 = self.y1 xbin = self.xbin ybin = self.ybin
14d8c94f7bb9d43d75700554aa657f624ba9e9e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6163/14d8c94f7bb9d43d75700554aa657f624ba9e9e6/ConfDistFuncs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 67, 11862, 12, 2890, 4672, 3536, 1939, 87, 326, 843, 358, 4604, 326, 8963, 471, 3675, 6707, 616, 501, 3536, 468, 1191, 4153, 619, 273, 365, 18, 92, 619, 21, 273, 365, 18, 92, 21, 677, 273, 365, 18, 93, 677, 21, 273, 365, 18, 93, 21, 619, 4757, 273, 365, 18, 92, 4757, 677, 4757, 273, 365, 18, 93, 4757, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 67, 11862, 12, 2890, 4672, 3536, 1939, 87, 326, 843, 358, 4604, 326, 8963, 471, 3675, 6707, 616, 501, 3536, 468, 1191, 4153, 619, 273, 365, 18, 92, 619, 21, 273, 365, 18, 92, 21, 677, 273, 365, 18, 93, 677, 21, 273, 365, 18, 93, 21, 619, 4757, 273, 365, 18, 92, 4757, 677, 4757, 273, 365, 18, 93, 4757, 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 ]
resDict = {'Failed':failed,'Successful':successful} return S_OK(resDict) def __putFile(self,src_file,dest_url,sourceSize):
resDict = {'Failed':failed, 'Successful':successful} return S_OK( resDict ) def __putFile( self, src_file, dest_url, sourceSize ):
def putFile(self,path,sourceSize=0): res = self.checkArgumentFormat(path) if not res['OK']: return res urls = res['Value'] failed = {} successful = {} for dest_url,src_file in urls.items(): # Create destination directory res = self.__executeOperation(os.path.dirname(dest_url),'createDirectory') if not res['OK']: failed[dest_url] = res['Message'] else: res = self.__putFile(src_file,dest_url,sourceSize) if res['OK']: successful[dest_url] = res['Value'] else: failed[dest_url] = res['Message'] resDict = {'Failed':failed,'Successful':successful} return S_OK(resDict)
70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 812, 12, 2890, 16, 803, 16, 3168, 1225, 33, 20, 4672, 400, 273, 365, 18, 1893, 1379, 1630, 12, 803, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, 400, 6903, 273, 400, 3292, 620, 3546, 2535, 273, 2618, 6873, 273, 2618, 364, 1570, 67, 718, 16, 4816, 67, 768, 316, 6903, 18, 3319, 13332, 468, 1788, 2929, 1867, 400, 273, 365, 16186, 8837, 2988, 12, 538, 18, 803, 18, 12287, 12, 10488, 67, 718, 3631, 11, 2640, 2853, 6134, 309, 486, 400, 3292, 3141, 3546, 30, 2535, 63, 10488, 67, 718, 65, 273, 400, 3292, 1079, 3546, 469, 30, 400, 273, 365, 16186, 458, 812, 12, 4816, 67, 768, 16, 10488, 67, 718, 16, 3168, 1225, 13, 309, 400, 3292, 3141, 3546, 30, 6873, 63, 10488, 67, 718, 65, 273, 400, 3292, 620, 3546, 469, 30, 2535, 63, 10488, 67, 718, 65, 273, 400, 3292, 1079, 3546, 400, 5014, 273, 13666, 2925, 4278, 7307, 11189, 14277, 4278, 18418, 97, 327, 348, 67, 3141, 12, 455, 5014, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 812, 12, 2890, 16, 803, 16, 3168, 1225, 33, 20, 4672, 400, 273, 365, 18, 1893, 1379, 1630, 12, 803, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, 400, 6903, 273, 400, 3292, 620, 3546, 2535, 273, 2618, 6873, 273, 2618, 364, 1570, 67, 718, 16, 4816, 67, 768, 316, 6903, 18, 3319, 13332, 468, 1788, 2929, 1867, 400, 273, 365, 16186, 8837, 2988, 12, 538, 18, 803, 18, 12287, 12, 10488, 67, 718, 3631, 11, 2640, 2853, 6134, 309, 486, 400, 3292, 3141, 3546, 30, 2535, 63, 10488, 67, 718, 65, 273, 400, 3292, 1079, 3546, 469, 30, 400, 273, 365, 16186, 458, 812, 12, 4816, 67, 768, 16, 10488, 67, 718, 16, 3168, 1225, 2 ]
descr='test short profiles commands'
descr='''test short profiles commands'''
def test_short_syntax(): uname = 'user_test' gname = 'group_test' pname = 'profil_test' ScenarioTest([ ADD + [ 'user', uname, '-v' ], GET + [ 'user', uname ], ADD + [ 'group', gname, '-v' ], GET + [ 'group', gname ], ADD + [ 'user', uname, gname, '-v' ], GET + [ 'user', uname, '-l' ], ADD + [ 'group', '%s2' % gname, '-v' ], GET + [ 'group', '%s2' % gname ], ADD + [ 'group', '%s3,%s4' % (gname, gname), '-v' ], # should fail (already present) GET + [ 'group', '%s3,%s4' % (gname, gname) ], # should add user2 & user3 ADD + [ 'user', '%s2,%s3' % (uname, uname), '-v' ], GET + [ 'user', '%s2,%s3' % (uname, uname) ], # add 2 users in 3 groups each ADD + [ 'user', '%s2,%s3' % (uname, uname), '%s2,%s3,%s4' % (gname,gname,gname), '-v' ], GET + [ 'user', '%s2,%s3' % (uname, uname), '-l' ], # should add ONLY ONE user in a group and bypass empty one ADD + [ 'user', ',%s' % uname, ',%s2' % gname, '-v' ], # idem ADD + [ 'user', '%s,' % uname, '%s3,' % gname, '-v' ], GET + [ 'user', uname, '-l' ], # should delete only one user and bypass empty one DEL + [ 'user', ',%s' % uname, '-v'], # should fail (already deleted) DEL + [ 'user', '%s,' % uname, '-v'], # IDEM DEL + [ 'user', uname, '-v'], # delete 2 users at same time DEL + [ 'user', '%s2,%s3' % (uname, uname), '-v'], # delete groups, one, then two, then one (bypassing empty) DEL + [ 'group', gname, '-v'], DEL + [ 'group', '%s2,%s3' % (gname, gname), '-v'], DEL + [ 'group', ',%s4' % gname, '-v'], DEL + [ 'group', '%s4,' % gname, '-v'], DEL + [ 'group', '%s4' % gname, '-v'], ], descr='test short users/groups commands' ).Run() ScenarioTest([ ADD + [ 'group', gname, '-v' ], #should fail (the group is not a system group) ADD + [ 'privilege', gname, '-v' ], GET + [ 'privileges' ], ADD + [ 'group', '%ssys' % gname, '--system', '-v' ], ADD + [ 'privilege', '%ssys' % gname, '-v' ], GET + [ 'privileges' ], DEL + [ 'privilege', '%ssys' % gname ], GET + [ 'privileges' ], DEL + [ 'group', gname ], DEL + [ 'group', '%ssys' % gname ], ], descr='test short privileges commands' ).Run() ScenarioTest([ ADD + [ 'group', gname, '--system', '-v' ], ADD + [ 'group', '%s2' % gname, '-v' ], ADD + [ 'group', '%s3' % gname, '-v' ], # should fail (not a system group) ADD + [ 'profile', pname, '--group=%s2' % gname, '--force-existing' ], GET + [ 'profiles' ], # should be OK ADD + [ 'profile', pname, '--group=%s' % gname, '--force-existing' ], GET + [ 'profiles' ], MOD + [ 'profile', pname, '--add-groups=%s2,%s3' % (gname,gname) ], GET + [ 'profiles' ], MOD + [ 'profile', pname, '--del-groups=%s2,%s3' % (gname,gname) ], GET + [ 'profiles' ], DEL + [ 'profile', pname ], DEL + [ 'group', '%s2' % gname, '-v' ], DEL + [ 'group', '%s3' % gname, '-v' ], GET + [ 'profiles' ], ], descr='test short profiles commands' ).Run() ScenarioTest([ ADD + [ 'group', gname, '-v' ], ADD + [ 'group', '%s2' % gname, '-v' ], CHK + [ 'group', gname, '--auto-no', '-vv' ], CHK + [ 'group', gname, '--auto-yes', '-vv' ], CHK + [ 'group', gname, '-vb' ], CHK + [ 'group', '%s,%s2' % (gname,gname), '--auto-no', '-vv' ], CHK + [ 'group', '%s,%s2' % (gname,gname), '--auto-yes', '-vv' ], CHK + [ 'group', '%s,%s2' % (gname,gname), '-vb' ], DEL + [ 'group', '%s,%s2' % (gname,gname), '-v' ], CHK + [ 'config','--auto-no', '-vvae' ], CHK + [ 'config','--auto-yes', '-vvae' ], CHK + [ 'config','--batch', '-vvae' ], ADD + [ 'user', uname, '-v' ], CHK + [ 'user', uname, '--auto-no', '-v' ], CHK + [ 'user', uname, '--auto-yes', '-v' ], CHK + [ 'user', uname, '-vb' ], DEL + [ 'user', uname, '-v' ], ], descr='test short chk commands' ).Run() """ # extended check on user not implemented yet CHK + [ 'user', '%s,%s2' % (uname,uname), '--auto-no', '-vve' ], CHK + [ 'user', '%s,%s2' % (uname,uname), '--auto-yes', '-vve' ], CHK + [ 'user', '%s,%s2' % (uname,uname), '--batch', '-vve' ], DEL + [ 'user', '%s,%s2' % (uname,uname), '-v' ], # check on profile not implemented yet ADD + [ 'profile', '%s,%s2' % (pname,pname), '-v' ], CHK + [ 'profile', pname, '--auto-no', '-vve' ], CHK + [ 'profile', pname, '--auto-yes', '-vve' ], CHK + [ 'profile', pname, '--batch', '-vve' ], CHK + [ 'profile', '%s,%s2' % (pname,pname), '--auto-no', '-vve' ], CHK + [ 'profile', '%s,%s2' % (pname,pname), '--auto-yes', '-vve' ], CHK + [ 'profile', '%s,%s2' % (pname,pname), '--batch', '-vve' ], DEL + [ 'profile', '%s,%s2' % (pname,pname), '-v' ], """
38a496a61795ec7fb8b2f6589579ac75d0b90d9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/38a496a61795ec7fb8b2f6589579ac75d0b90d9d/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6620, 67, 14308, 13332, 31444, 273, 296, 1355, 67, 3813, 11, 314, 529, 273, 296, 1655, 67, 3813, 11, 19952, 273, 296, 685, 7540, 67, 3813, 11, 225, 2850, 7754, 4709, 3816, 11689, 397, 306, 296, 1355, 2187, 31444, 16, 2400, 90, 11, 308, 16, 4978, 397, 306, 296, 1355, 2187, 31444, 308, 16, 11689, 397, 306, 296, 1655, 2187, 314, 529, 16, 2400, 90, 11, 308, 16, 4978, 397, 306, 296, 1655, 2187, 314, 529, 308, 16, 11689, 397, 306, 296, 1355, 2187, 31444, 16, 314, 529, 16, 2400, 90, 11, 308, 16, 4978, 397, 306, 296, 1355, 2187, 31444, 16, 2400, 80, 11, 308, 16, 11689, 397, 306, 296, 1655, 2187, 1995, 87, 22, 11, 738, 314, 529, 16, 2400, 90, 11, 308, 16, 4978, 397, 306, 296, 1655, 2187, 1995, 87, 22, 11, 738, 314, 529, 308, 16, 11689, 397, 306, 296, 1655, 2187, 1995, 87, 23, 15529, 87, 24, 11, 738, 261, 75, 529, 16, 314, 529, 3631, 2400, 90, 11, 308, 16, 468, 1410, 2321, 261, 17583, 3430, 13, 4978, 397, 306, 296, 1655, 2187, 1995, 87, 23, 15529, 87, 24, 11, 738, 261, 75, 529, 16, 314, 529, 13, 308, 16, 468, 1410, 527, 729, 22, 473, 729, 23, 11689, 397, 306, 296, 1355, 2187, 1995, 87, 22, 15529, 87, 23, 11, 738, 261, 318, 339, 16, 31444, 3631, 2400, 90, 11, 308, 16, 4978, 397, 306, 296, 1355, 2187, 1995, 87, 22, 15529, 87, 23, 11, 738, 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, 1842, 67, 6620, 67, 14308, 13332, 31444, 273, 296, 1355, 67, 3813, 11, 314, 529, 273, 296, 1655, 67, 3813, 11, 19952, 273, 296, 685, 7540, 67, 3813, 11, 225, 2850, 7754, 4709, 3816, 11689, 397, 306, 296, 1355, 2187, 31444, 16, 2400, 90, 11, 308, 16, 4978, 397, 306, 296, 1355, 2187, 31444, 308, 16, 11689, 397, 306, 296, 1655, 2187, 314, 529, 16, 2400, 90, 11, 308, 16, 4978, 397, 306, 296, 1655, 2187, 314, 529, 308, 16, 11689, 397, 306, 296, 1355, 2187, 31444, 16, 314, 529, 16, 2400, 90, 11, 308, 16, 4978, 397, 306, 296, 1355, 2187, 31444, 16, 2400, 80, 11, 308, 16, 11689, 397, 306, 296, 1655, 2187, 1995, 87, 22, 2 ]
buf = ['', '']
buf = [b'', b'']
def process_rawq(self): """Transfer from raw queue to cooked queue.
a69ff7792116218bfddc90e5e2776d431495b39b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/a69ff7792116218bfddc90e5e2776d431495b39b/telnetlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 1899, 85, 12, 2890, 4672, 3536, 5912, 628, 1831, 2389, 358, 15860, 329, 2389, 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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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, 1207, 67, 1899, 85, 12, 2890, 4672, 3536, 5912, 628, 1831, 2389, 358, 15860, 329, 2389, 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 ]
path = path to stderr file
path = path to stderr file.
def set_stderr_file(self, path): """ Set the file to which Condor directs the stderr of the job. path = path to stderr file """ self.__err_file = path
43adc4d722e280c921ddb7c38f99393e57936591 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/43adc4d722e280c921ddb7c38f99393e57936591/pipeline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 11241, 67, 768, 12, 2890, 16, 589, 4672, 3536, 1000, 326, 585, 358, 1492, 735, 72, 280, 2657, 87, 326, 4514, 434, 326, 1719, 18, 589, 273, 589, 358, 4514, 585, 18, 3536, 365, 16186, 370, 67, 768, 273, 589, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 11241, 67, 768, 12, 2890, 16, 589, 4672, 3536, 1000, 326, 585, 358, 1492, 735, 72, 280, 2657, 87, 326, 4514, 434, 326, 1719, 18, 589, 273, 589, 358, 4514, 585, 18, 3536, 365, 16186, 370, 67, 768, 273, 589, 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 ]
self.cursor.execute("CREATE INDEX " + index_name + " " \ "ON " + self.table_name + " (" + column_name + ")")
self.cursor.execute('CREATE INDEX "' + index_name + '" ' \ 'ON "' + self.table_name + '" ("' + column_name + '")')
def index_action(self, column_name, action='add'): index_name = "%s_%s_index" % (self.table_name, column_name)
4da5cd211bd2177e823c79d4d55af658e6f50478 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/4da5cd211bd2177e823c79d4d55af658e6f50478/sql_db.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 67, 1128, 12, 2890, 16, 1057, 67, 529, 16, 1301, 2218, 1289, 11, 4672, 770, 67, 529, 273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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 67, 1128, 12, 2890, 16, 1057, 67, 529, 16, 1301, 2218, 1289, 11, 4672, 770, 67, 529, 273, 2213, 87, 10185, 87, 67, 1615, 6, 738, 261, 2890, 18, 2121, 67, 529, 16, 1057, 67, 529, 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 ]
self.assertEquals(sms_partials[i].get_length(), partials[i].get_length())
assert sms_partials[i].get_length() == partials[i].get_length()
def test_partial_tracking(self): """test_partial_tracking Compare pysms Partials with SMS partials.""" audio, sampling_rate = self.get_audio() pysms.sms_init() snd_header = pysms.SMS_SndHeader() # Try to open the input file to fill snd_header if(pysms.sms_openSF(self.input_file, snd_header)): raise NameError("error opening sound file: " + pysms.sms_errorString()) analysis_params = self.pysms_analysis_params(sampling_rate) if pysms.sms_initAnalysis(analysis_params, snd_header) != 0: raise Exception("Error allocating memory for analysis_params") analysis_params.iSizeSound = self.num_samples sms_header = pysms.SMS_Header() pysms.sms_fillHeader(sms_header, analysis_params, "pysms")
f0576d53f10832adb8a491f85ec86d2219a621bf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10871/f0576d53f10832adb8a491f85ec86d2219a621bf/sms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 11601, 67, 6440, 12, 2890, 4672, 3536, 3813, 67, 11601, 67, 6440, 11051, 21027, 959, 19060, 87, 598, 21297, 20040, 12123, 7447, 16, 11558, 67, 5141, 273, 365, 18, 588, 67, 11509, 1435, 21027, 959, 18, 20984, 67, 2738, 1435, 31158, 67, 3374, 273, 21027, 959, 18, 29533, 67, 55, 4880, 1864, 1435, 468, 6161, 358, 1696, 326, 810, 585, 358, 3636, 31158, 67, 3374, 309, 12, 84, 1900, 959, 18, 20984, 67, 3190, 22395, 12, 2890, 18, 2630, 67, 768, 16, 31158, 67, 3374, 3719, 30, 1002, 25473, 2932, 1636, 10890, 14190, 585, 30, 315, 397, 21027, 959, 18, 20984, 67, 1636, 780, 10756, 6285, 67, 2010, 273, 365, 18, 84, 1900, 959, 67, 12746, 67, 2010, 12, 23002, 67, 5141, 13, 309, 21027, 959, 18, 20984, 67, 2738, 9418, 12, 12746, 67, 2010, 16, 31158, 67, 3374, 13, 480, 374, 30, 1002, 1185, 2932, 668, 4767, 1776, 3778, 364, 6285, 67, 2010, 7923, 6285, 67, 2010, 18, 77, 1225, 24331, 273, 365, 18, 2107, 67, 7319, 16188, 67, 3374, 273, 21027, 959, 18, 29533, 67, 1864, 1435, 21027, 959, 18, 20984, 67, 5935, 1864, 12, 20984, 67, 3374, 16, 6285, 67, 2010, 16, 315, 84, 1900, 959, 7923, 2, 0, 0, 0, 0, 0, 0, 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273, 365, 18, 588, 67, 11509, 1435, 21027, 959, 18, 20984, 67, 2738, 1435, 31158, 67, 3374, 273, 21027, 959, 18, 29533, 67, 55, 4880, 1864, 1435, 468, 6161, 358, 1696, 326, 810, 585, 358, 3636, 31158, 67, 3374, 309, 12, 84, 1900, 959, 18, 20984, 67, 3190, 22395, 12, 2890, 18, 2630, 67, 768, 16, 31158, 67, 3374, 3719, 30, 1002, 25473, 2932, 1636, 10890, 14190, 585, 30, 315, 397, 21027, 959, 18, 20984, 67, 1636, 780, 10756, 6285, 67, 2010, 273, 365, 18, 84, 1900, 959, 67, 12746, 2 ]
logdir = "."
def main(argv = None): import getopt if argv is None: argv = sys.argv try: opts, prog_argv = getopt.getopt(argv[1:], "tcrRf:d:msC:", ["help", "version", "trace", "count", "report", "no-report", "file=", "logdir=", "missing", "ignore-module=", "ignore-dir=", "coverdir="]) except getopt.error, msg: print >> sys.stderr, "%s: %s" % (sys.argv[0], msg) print >> sys.stderr, "Try `%s --help' for more information" \ % sys.argv[0] sys.exit(1) trace = 0 count = 0 report = 0 no_report = 0 counts_file = None logdir = "." missing = 0 ignore_modules = [] ignore_dirs = [] coverdir = None summary = 0 for opt, val in opts: if opt == "--help": usage(sys.stdout) sys.exit(0) if opt == "--version": sys.stdout.write("trace 2.0\n") sys.exit(0) if opt == "-t" or opt == "--trace": trace = 1 continue if opt == "-c" or opt == "--count": count = 1 continue if opt == "-r" or opt == "--report": report = 1 continue if opt == "-R" or opt == "--no-report": no_report = 1 continue if opt == "-f" or opt == "--file": counts_file = val continue if opt == "-d" or opt == "--logdir": logdir = val continue if opt == "-m" or opt == "--missing": missing = 1 continue if opt == "-C" or opt == "--coverdir": coverdir = val continue if opt == "-s" or opt == "--summary": summary = 1 continue if opt == "--ignore-module": ignore_modules.append(val) continue if opt == "--ignore-dir": for s in string.split(val, os.pathsep): s = os.path.expandvars(s) # should I also call expanduser? (after all, could use $HOME) s = string.replace(s, "$prefix", os.path.join(sys.prefix, "lib", "python" + sys.version[:3])) s = string.replace(s, "$exec_prefix", os.path.join(sys.exec_prefix, "lib", "python" + sys.version[:3])) s = os.path.normpath(s) ignore_dirs.append(s) continue assert 0, "Should never get here" if len(prog_argv) == 0: _err_exit("missing name of file to run") if count + trace + report > 1: _err_exit("can only specify one of --trace, --count or --report") if count + trace + report == 0: _err_exit("must specify one of --trace, --count or --report") if report and counts_file is None: _err_exit("--report requires a --file") if report and no_report: _err_exit("cannot specify both --report and --no-report") if logdir is not None: # warn if the directory doesn't exist, but keep on going # (is this the correct behaviour?) if not os.path.isdir(logdir): sys.stderr.write( "trace: WARNING, --logdir directory %s is not available\n" % `logdir`) sys.argv = prog_argv progname = prog_argv[0] if eval(sys.version[:3])>1.3: sys.path[0] = os.path.split(progname)[0] # ??? # everything is ready ignore = Ignore(ignore_modules, ignore_dirs) if trace: t = Trace(ignore) try: run(t.trace, 'execfile(' + `progname` + ')') except IOError, err: _err_exit("Cannot run file %s because: %s" % \ (`sys.argv[0]`, err)) elif count: t = Coverage(ignore) try: run(t.trace, 'execfile(' + `progname` + ')') except IOError, err: _err_exit("Cannot run file %s because: %s" % \ (`sys.argv[0]`, err)) except SystemExit: pass results = t.results() # Add another lookup from the program's file name to its import name # This give the right results, but I'm not sure why ... results.modules[progname] = os.path.splitext(progname)[0] if counts_file: # add in archived data, if available try: old_counts, old_modules = marshal.load(open(counts_file, 'rb')) except IOError: pass else: results.update(CoverageResults(old_counts, old_modules)) if not no_report: create_results_log(results, logdir, missing, summary=summary, coverdir=coverdir) if counts_file: try: marshal.dump( (results.counts, results.modules), open(counts_file, 'wb')) except IOError, err: _err_exit("Cannot save counts file %s because: %s" % \ (`counts_file`, err)) elif report: old_counts, old_modules = marshal.load(open(counts_file, 'rb')) results = CoverageResults(old_counts, old_modules) create_results_log(results, logdir, missing, summary=summary, coverdir=coverdir) else: assert 0, "Should never get here"
a30eacf45815c14b480972c5097677fac83ed4c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a30eacf45815c14b480972c5097677fac83ed4c0/trace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 273, 599, 4672, 1930, 336, 3838, 225, 309, 5261, 353, 599, 30, 5261, 273, 2589, 18, 19485, 775, 30, 1500, 16, 11243, 67, 19485, 273, 336, 3838, 18, 588, 3838, 12, 19485, 63, 21, 30, 6487, 315, 88, 3353, 54, 74, 30, 72, 30, 959, 39, 2773, 16, 8247, 5201, 3113, 315, 1589, 3113, 315, 5129, 3113, 315, 1883, 3113, 315, 6006, 3113, 315, 2135, 17, 6006, 3113, 315, 768, 1546, 16, 315, 1330, 1214, 1546, 16, 315, 7337, 3113, 315, 6185, 17, 2978, 1546, 16, 315, 6185, 17, 1214, 1546, 16, 315, 3165, 1214, 1546, 5717, 225, 1335, 336, 3838, 18, 1636, 16, 1234, 30, 1172, 1671, 2589, 18, 11241, 16, 2213, 87, 30, 738, 87, 6, 738, 261, 9499, 18, 19485, 63, 20, 6487, 1234, 13, 1172, 1671, 2589, 18, 11241, 16, 315, 7833, 12430, 87, 1493, 5201, 11, 364, 1898, 1779, 6, 521, 738, 2589, 18, 19485, 63, 20, 65, 2589, 18, 8593, 12, 21, 13, 225, 2606, 273, 374, 1056, 273, 374, 2605, 273, 374, 1158, 67, 6006, 273, 374, 6880, 67, 768, 273, 599, 3315, 273, 374, 2305, 67, 6400, 273, 5378, 2305, 67, 8291, 273, 5378, 5590, 1214, 273, 599, 4916, 273, 374, 225, 364, 2153, 16, 1244, 316, 1500, 30, 309, 2153, 422, 5238, 5201, 6877, 4084, 12, 9499, 18, 10283, 13, 2589, 18, 8593, 12, 20, 13, 225, 309, 2153, 422, 5238, 1589, 6877, 2589, 18, 10283, 18, 2626, 2932, 5129, 576, 18, 20, 64, 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, 19485, 273, 599, 4672, 1930, 336, 3838, 225, 309, 5261, 353, 599, 30, 5261, 273, 2589, 18, 19485, 775, 30, 1500, 16, 11243, 67, 19485, 273, 336, 3838, 18, 588, 3838, 12, 19485, 63, 21, 30, 6487, 315, 88, 3353, 54, 74, 30, 72, 30, 959, 39, 2773, 16, 8247, 5201, 3113, 315, 1589, 3113, 315, 5129, 3113, 315, 1883, 3113, 315, 6006, 3113, 315, 2135, 17, 6006, 3113, 315, 768, 1546, 16, 315, 1330, 1214, 1546, 16, 315, 7337, 3113, 315, 6185, 17, 2978, 1546, 16, 315, 6185, 17, 1214, 1546, 16, 315, 3165, 1214, 1546, 5717, 225, 1335, 336, 3838, 18, 1636, 16, 1234, 30, 1172, 1671, 2589, 18, 11241, 16, 2213, 87, 30, 2 ]
except Queue.Empty:
except Empty:
def poll(self, block=False): """Process any new results in the queue.""" while True: # still results pending? if not self.workRequests: raise NoResultsPending # are there still workers to process remaining requests? elif block and not self.workers: raise NoWorkersAvailable try: # get back next results request, result = self._results_queue.get(block=block) # has an exception occured? if request.exception and request.exc_callback: request.exc_callback(request, result) # hand results to callback, if any if request.callback and not \ (request.exception and request.exc_callback): request.callback(request, result) del self.workRequests[request.requestID] except Queue.Empty: break
a904eff6151e41d734f1ac916587d62d5b099aa2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13948/a904eff6151e41d734f1ac916587d62d5b099aa2/threadpool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7672, 12, 2890, 16, 1203, 33, 8381, 4672, 3536, 2227, 1281, 394, 1686, 316, 326, 2389, 12123, 1323, 1053, 30, 468, 4859, 1686, 4634, 35, 309, 486, 365, 18, 1252, 6421, 30, 1002, 2631, 3447, 8579, 468, 854, 1915, 4859, 9798, 358, 1207, 4463, 3285, 35, 1327, 1203, 471, 486, 365, 18, 15625, 30, 1002, 2631, 15252, 5268, 775, 30, 468, 336, 1473, 1024, 1686, 590, 16, 563, 273, 365, 6315, 4717, 67, 4000, 18, 588, 12, 2629, 33, 2629, 13, 468, 711, 392, 1520, 16206, 35, 309, 590, 18, 4064, 471, 590, 18, 10075, 67, 3394, 30, 590, 18, 10075, 67, 3394, 12, 2293, 16, 563, 13, 468, 948, 1686, 358, 1348, 16, 309, 1281, 309, 590, 18, 3394, 471, 486, 521, 261, 2293, 18, 4064, 471, 590, 18, 10075, 67, 3394, 4672, 590, 18, 3394, 12, 2293, 16, 563, 13, 1464, 365, 18, 1252, 6421, 63, 2293, 18, 2293, 734, 65, 1335, 8953, 30, 898, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 30, 1652, 7672, 12, 2890, 16, 1203, 33, 8381, 4672, 3536, 2227, 1281, 394, 1686, 316, 326, 2389, 12123, 1323, 1053, 30, 468, 4859, 1686, 4634, 35, 309, 486, 365, 18, 1252, 6421, 30, 1002, 2631, 3447, 8579, 468, 854, 1915, 4859, 9798, 358, 1207, 4463, 3285, 35, 1327, 1203, 471, 486, 365, 18, 15625, 30, 1002, 2631, 15252, 5268, 775, 30, 468, 336, 1473, 1024, 1686, 590, 16, 563, 273, 365, 6315, 4717, 67, 4000, 18, 588, 12, 2629, 33, 2629, 13, 468, 711, 392, 1520, 16206, 35, 309, 590, 18, 4064, 471, 590, 18, 10075, 67, 3394, 30, 590, 18, 10075, 67, 3394, 12, 2293, 16, 563, 13, 468, 948, 1686, 358, 1348, 16, 309, 1281, 309, 590, 2 ]