rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
sequencelengths
256
256
attention_mask
sequencelengths
256
256
labels
sequencelengths
128
128
log.success("%s done.\n" % (file) ) if zip_bool:
log.success("\r%s done.%s\n" % (PackageName, " "* 40) ) if ArgumentOptions.zip_it:
def run(request, response, func=find_first_match): '''Get items from the request Queue, process them with func(), put the results along with the Thread's name into the response Queue. Stop running when item is None.''' while 1: tuple_item_key = request.get() if tuple_item_key is None: break (key, item) = tuple_item_key (url, file, download_size, checksum) = stripper(item) PackageName = file.split("_")[0] thread_name = threading.currentThread().getName() if key == 'Update': #INFO: We pass None as a filename here because we don't want to do a tree search of # update files. Update files are changed daily and there is no point in doing a search of # them in the cache_dir response.put(func(cache_dir, None) ) #INFO: exit_status here would be False because for updates there's no need to do a # find_first_match # This is more with the above statement where None is passed as the filename exit_status = response.get() if exit_status == False: log.msg("Downloading %s\n" % (file) ) if FetcherInstance.download_from_web(url, file, download_path) == True: log.success("%s done.\n" % (file) ) if zip_bool: if FetcherInstance.compress_the_file(ArgumentOptions.zip_update_file, file) != True: log.err("Couldn't archive %s to file %s.\n" % (file, ArgumentOptions.zip_update_file) ) sys.exit(1) os.unlink(os.path.join(download_path, file) ) else: errlist.append(file) elif key == 'Upgrade': response.put(func(cache_dir, file) ) #INFO: find_first_match() returns False of a file name with absolute path full_file_path = response.get() if full_file_path != False: if ArgumentOptions.disable_md5check is False: if FetcherInstance.md5_check(full_file_path, checksum) is True: if zip_bool: if FetcherInstance.compress_the_file(ArgumentOptions.zip_upgrade_file, full_file_path) is True: log.success("%s copied from local cache directory %s\n" % (PackageName, cache_dir) ) else: try: shutil.copy(full_file_path, download_path) log.success("%s copied from local cache directory %s\n" % (PackageName, cache_dir) ) except shutil.Error: log.verbose("%s already available in %s. Skipping copy!!!\n\n" % (file, download_path) ) else: log.verbose("%s MD5 checksum mismatch. Skipping file.\n" % (file) ) log.msg("Downloading %s - %d KB\n" % (PackageName, download_size/1024) ) if FetcherInstance.download_from_web(url, file, download_path) == True: log.success("%s done.\n" % (PackageName) ) if ArgumentOptions.cache_dir: try: shutil.copy(file, cache_dir) log.verbose("%s copied to local cache directory %s\n" % (file, ArgumentOptions.cache_dir) ) except shutil.Error: log.verbose("Couldn't copy %s to %s\n\n" % (file, ArgumentOptions.cache_dir) ) if ArgumentOptions.zip_it: if FetcherInstance.compress_the_file(ArgumentOptions.zip_upgrade_file, file) != True: log.err("Couldn't archive %s to file %s\n" % (file, ArgumentOptions.zip_upgrade_file) ) sys.exit(1) os.unlink(os.path.join(download_path, file) ) else: #INFO: If md5check is disabled, just copy it. try: shutil.copy(full_file_path, download_path) log.success("%s copied from local cache directory %s\n" % (file, cache_dir) ) except shutil.Error: log.verbose("%s already available in dest_dir. Skipping copy!!!\n\n" % (file) ) else: log.verbose("%s not available in local cache %s.\n" % (file, ArgumentOptions.cache_dir) ) log.msg("Downloading %s - %d KB\n" % (PackageName, download_size/1024) ) if FetcherInstance.download_from_web(url, file, download_path) == True: if ArgumentOptions.disable_md5check is False: if FetcherInstance.md5_check(full_file_path, checksum) is True: if ArgumentOptions.cache_dir: try: shutil.copy(file, ArgumentOptions.cache_dir) log.verbose("%s copied to local cache directory %s\n" % (file, ArgumentOptions.cache_dir) ) except shutil.Error: log.verbose("%s already available in %s. Skipping copy!!!\n\n" % (file, ArgumentOptions.cache_dir) ) if zip_bool: if FetcherInstance.compress_the_file(ArgumentOptions.zip_upgrade_file, file) != True: log.err("Couldn't archive %s to file %s\n" % (file, ArgumentOptions.zip_upgrade_file) ) sys.exit(1) log.verbose("%s added to archive %s\n" % (file, ArgumentOptions.zip_upgrade_file) ) os.unlink(os.path.join(download_path, file) ) if zip_bool: if FetcherInstance.compress_the_file(ArgumentOptions.zip_upgrade_file, file) != True: log.err("Couldn't archive %s to file %s\n" % (file, ArgumentOptions.zip_upgrade_file) ) sys.exit(1) log.verbose("%s added to archive %s\n" % (file, ArgumentOptions.zip_upgrade_file) ) os.unlink(os.path.join(download_path, file) ) log.success("\n%s done.\n" % (PackageName) ) else: #log.err("Couldn't find %s\n" % (PackageName) ) errlist.append(PackageName)
dc571040cf87102fdc4b4b1660de813cb7fb298e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12499/dc571040cf87102fdc4b4b1660de813cb7fb298e/pypt_core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2293, 16, 766, 16, 1326, 33, 4720, 67, 3645, 67, 1916, 4672, 9163, 967, 1516, 628, 326, 590, 7530, 16, 1207, 2182, 598, 1326, 9334, 1378, 326, 1686, 7563, 598, 326, 4884, 1807, 508, 1368, 326, 766, 7530, 18, 225, 5131, 3549, 1347, 761, 353, 599, 1093, 6309, 225, 1323, 404, 30, 3193, 67, 1726, 67, 856, 273, 590, 18, 588, 1435, 309, 3193, 67, 1726, 67, 856, 353, 599, 30, 898, 261, 856, 16, 761, 13, 273, 3193, 67, 1726, 67, 856, 261, 718, 16, 585, 16, 4224, 67, 1467, 16, 6697, 13, 273, 2569, 457, 12, 1726, 13, 7508, 461, 273, 585, 18, 4939, 2932, 67, 7923, 63, 20, 65, 2650, 67, 529, 273, 17254, 18, 2972, 3830, 7675, 17994, 1435, 225, 309, 498, 422, 296, 1891, 4278, 225, 468, 5923, 30, 1660, 1342, 599, 487, 279, 1544, 2674, 2724, 732, 2727, 1404, 2545, 358, 741, 279, 2151, 1623, 434, 468, 1089, 1390, 18, 2315, 1390, 854, 3550, 18872, 471, 1915, 353, 1158, 1634, 316, 9957, 279, 1623, 434, 468, 2182, 316, 326, 1247, 67, 1214, 766, 18, 458, 12, 644, 12, 2493, 67, 1214, 16, 599, 13, 262, 225, 468, 5923, 30, 2427, 67, 2327, 2674, 4102, 506, 1083, 2724, 364, 4533, 1915, 1807, 1158, 1608, 358, 741, 279, 468, 1104, 67, 3645, 67, 1916, 468, 1220, 353, 1898, 598, 326, 5721, 3021, 1625, 599, 353, 2275, 487, 326, 1544, 2427, 67, 2327, 273, 766, 18, 588, 1435, 225, 309, 2427, 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, 1086, 12, 2293, 16, 766, 16, 1326, 33, 4720, 67, 3645, 67, 1916, 4672, 9163, 967, 1516, 628, 326, 590, 7530, 16, 1207, 2182, 598, 1326, 9334, 1378, 326, 1686, 7563, 598, 326, 4884, 1807, 508, 1368, 326, 766, 7530, 18, 225, 5131, 3549, 1347, 761, 353, 599, 1093, 6309, 225, 1323, 404, 30, 3193, 67, 1726, 67, 856, 273, 590, 18, 588, 1435, 309, 3193, 67, 1726, 67, 856, 353, 599, 30, 898, 261, 856, 16, 761, 13, 273, 3193, 67, 1726, 67, 856, 261, 718, 16, 585, 16, 4224, 67, 1467, 16, 6697, 13, 273, 2569, 457, 12, 1726, 13, 7508, 461, 273, 585, 18, 4939, 2932, 67, 7923, 63, 20, 65, 2650, 67, 529, 273, 2 ]
filename = get_remote_file(url, verbose=True)
filename = tmp_filename()+".sws"
def render(self, ctx): url = ctx.args['urlField'][0].strip() dir = '' # we will delete the directory below if it is used if url != '': # downloading a file from the internet filename = get_remote_file(url, verbose=True) else: # uploading a file from the user's computer dir = tmp_dir() filename = ctx.files['fileField'][0][0] # Make tmp file in SAGE temp directory filename = '%s/%s'%(dir, filename) f = file(filename,'wb') # Then download to that file. f.write(ctx.files['fileField'][0][2].read()) # TODO: Server blocking issues (?!) f.close()
63bff0af61658cb5c245d9f61e2a2178f58417cb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/63bff0af61658cb5c245d9f61e2a2178f58417cb/twist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 4672, 880, 273, 1103, 18, 1968, 3292, 718, 974, 3546, 63, 20, 8009, 6406, 1435, 1577, 273, 875, 225, 468, 732, 903, 1430, 326, 1867, 5712, 309, 518, 353, 1399, 309, 880, 480, 875, 30, 468, 23742, 279, 585, 628, 326, 24264, 1544, 273, 1853, 67, 3459, 1435, 9078, 18, 87, 4749, 6, 469, 30, 468, 25306, 279, 585, 628, 326, 729, 1807, 26579, 1577, 273, 1853, 67, 1214, 1435, 1544, 273, 1103, 18, 2354, 3292, 768, 974, 3546, 63, 20, 6362, 20, 65, 468, 4344, 1853, 585, 316, 348, 2833, 1906, 1867, 1544, 273, 1995, 87, 5258, 87, 11, 17105, 1214, 16, 1544, 13, 284, 273, 585, 12, 3459, 11189, 9464, 6134, 468, 9697, 4224, 358, 716, 585, 18, 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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, 1743, 12, 2890, 16, 1103, 4672, 880, 273, 1103, 18, 1968, 3292, 718, 974, 3546, 63, 20, 8009, 6406, 1435, 1577, 273, 875, 225, 468, 732, 903, 1430, 326, 1867, 5712, 309, 518, 353, 1399, 309, 880, 480, 875, 30, 468, 23742, 279, 585, 628, 326, 24264, 1544, 273, 1853, 67, 3459, 1435, 9078, 18, 87, 4749, 6, 469, 30, 468, 25306, 279, 585, 628, 326, 729, 1807, 26579, 1577, 273, 1853, 67, 1214, 1435, 1544, 273, 1103, 18, 2354, 3292, 768, 974, 3546, 63, 20, 6362, 20, 65, 468, 4344, 1853, 585, 316, 348, 2833, 1906, 1867, 1544, 273, 1995, 87, 5258, 87, 11, 17105, 1214, 16, 1544, 13, 284, 273, 585, 12, 3459, 11189, 9464, 6134, 2 ]
print "found", `title[start:m.end()]`
def clean_title(title): title = raisebox_rx.sub("", title) title = hackscore_rx.sub(r"\\_", title) pos = 0 while 1: m = title_rx.search(title, pos) if m: start = m.start() print "found", `title[start:m.end()]` if title[start:start+15] != "\\textunderscore": title = title[:start] + title[m.end():] pos = start + 1 else: break title = string.translate(title, title_trans, "{}") print `title` return title
db2a519298dc57ed84206491005cbb28496428a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/db2a519298dc57ed84206491005cbb28496428a8/toc2bkm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 67, 2649, 12, 2649, 4672, 2077, 273, 1002, 2147, 67, 20122, 18, 1717, 2932, 3113, 2077, 13, 2077, 273, 11769, 6355, 67, 20122, 18, 1717, 12, 86, 6, 1695, 67, 3113, 2077, 13, 949, 273, 374, 1323, 404, 30, 312, 273, 2077, 67, 20122, 18, 3072, 12, 2649, 16, 949, 13, 309, 312, 30, 787, 273, 312, 18, 1937, 1435, 309, 2077, 63, 1937, 30, 1937, 15, 3600, 65, 480, 8422, 955, 26843, 3644, 6877, 2077, 273, 2077, 10531, 1937, 65, 397, 2077, 63, 81, 18, 409, 13332, 65, 949, 273, 787, 397, 404, 469, 30, 898, 2077, 273, 533, 18, 13929, 12, 2649, 16, 2077, 67, 2338, 16, 13034, 13, 1172, 1375, 2649, 68, 327, 2077, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 67, 2649, 12, 2649, 4672, 2077, 273, 1002, 2147, 67, 20122, 18, 1717, 2932, 3113, 2077, 13, 2077, 273, 11769, 6355, 67, 20122, 18, 1717, 12, 86, 6, 1695, 67, 3113, 2077, 13, 949, 273, 374, 1323, 404, 30, 312, 273, 2077, 67, 20122, 18, 3072, 12, 2649, 16, 949, 13, 309, 312, 30, 787, 273, 312, 18, 1937, 1435, 309, 2077, 63, 1937, 30, 1937, 15, 3600, 65, 480, 8422, 955, 26843, 3644, 6877, 2077, 273, 2077, 10531, 1937, 65, 397, 2077, 63, 81, 18, 409, 13332, 65, 949, 273, 787, 397, 404, 469, 30, 898, 2077, 273, 533, 18, 13929, 12, 2649, 16, 2077, 67, 2338, 16, 13034, 13, 1172, 1375, 2649, 68, 327, 2077, 2 ]
except Exception, e: logging.info( traceback.format_exc() ) pass
except BossLiteError, err: msg = "Cannot get information for task %s, BOSS error: %s" % \ (taskSpecId, str(err)) logging.error(msg)
def killTask(self, taskSpecId): """
816c7c30814438d8c9489740376256b3aef8ff85 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8887/816c7c30814438d8c9489740376256b3aef8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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 2174, 12, 2890, 16, 1562, 1990, 548, 4672, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
import linecache
def formatwarning(message, category, filename, lineno): """Function to format a warning the standard way.""" import linecache s = "%s:%s: %s: %s\n" % (filename, lineno, category.__name__, message) line = linecache.getline(filename, lineno).strip() if line: s = s + " " + line + "\n" return s
a43fd0c8996eec2bdd0ec59edc252cb4f4ff4436 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a43fd0c8996eec2bdd0ec59edc252cb4f4ff4436/warnings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 8551, 12, 2150, 16, 3150, 16, 1544, 16, 7586, 4672, 3536, 2083, 358, 740, 279, 3436, 326, 4529, 4031, 12123, 272, 273, 225, 2213, 87, 5319, 87, 30, 738, 87, 30, 738, 87, 64, 82, 6, 738, 261, 3459, 16, 7586, 16, 3150, 16186, 529, 972, 16, 883, 13, 980, 273, 4739, 557, 807, 18, 588, 1369, 12, 3459, 16, 7586, 2934, 6406, 1435, 309, 980, 30, 272, 273, 272, 397, 315, 225, 315, 397, 980, 397, 1548, 82, 6, 327, 272, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 8551, 12, 2150, 16, 3150, 16, 1544, 16, 7586, 4672, 3536, 2083, 358, 740, 279, 3436, 326, 4529, 4031, 12123, 272, 273, 225, 2213, 87, 5319, 87, 30, 738, 87, 30, 738, 87, 64, 82, 6, 738, 261, 3459, 16, 7586, 16, 3150, 16186, 529, 972, 16, 883, 13, 980, 273, 4739, 557, 807, 18, 588, 1369, 12, 3459, 16, 7586, 2934, 6406, 1435, 309, 980, 30, 272, 273, 272, 397, 315, 225, 315, 397, 980, 397, 1548, 82, 6, 327, 272, 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 ]
if obj and revision is None and self.__cache: self.__cache.set( obj.cache_key, obj )
if obj and cache: cache.set( obj.cache_key, obj )
def load( self, Object_type, object_id, revision = None ): """ Load the object corresponding to the given object id from the database and return it, or None if the object_id is unknown. If a revision is provided, a specific revision of the object will be loaded.
2d554551204aafdd7c364a25e684b058fd134fb0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6754/2d554551204aafdd7c364a25e684b058fd134fb0/Database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 12, 365, 16, 1033, 67, 723, 16, 733, 67, 350, 16, 6350, 273, 599, 262, 30, 3536, 4444, 326, 733, 4656, 358, 326, 864, 733, 612, 628, 326, 2063, 471, 327, 518, 16, 578, 599, 309, 326, 733, 67, 350, 353, 5917, 18, 971, 279, 6350, 353, 2112, 16, 279, 2923, 6350, 434, 326, 733, 903, 506, 4203, 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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 279, 6350, 353, 2112, 16, 279, 2923, 6350, 434, 326, 733, 903, 506, 4203, 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 ]
radii[n_points - 2], 2)
radii[n_points - 2])
def writecone(color, pos1, pos2, rad1, rad2): file.write("cone {\n") file.write(" " + povpoint(chunk.base_to_abs(pos1))) file.write(", %g\n" % (rad1)) file.write(" " + povpoint(chunk.base_to_abs(pos2))) file.write(", %g\n" % (rad2)) file.write(" pigment {color <%g %g %g>}\n" % (color[0], color[1], color[2])) file.write("}\n")
7bbcf0a037c1cbe3fc5c09a92f7b9046a289a033 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/7bbcf0a037c1cbe3fc5c09a92f7b9046a289a033/DnaCylinderChunks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2518, 557, 476, 12, 3266, 16, 949, 21, 16, 949, 22, 16, 6719, 21, 16, 6719, 22, 4672, 585, 18, 2626, 2932, 71, 476, 18890, 82, 7923, 585, 18, 2626, 2932, 225, 315, 397, 293, 1527, 1153, 12, 6551, 18, 1969, 67, 869, 67, 5113, 12, 917, 21, 20349, 585, 18, 2626, 2932, 16, 738, 75, 64, 82, 6, 738, 261, 6012, 21, 3719, 585, 18, 2626, 2932, 225, 315, 397, 293, 1527, 1153, 12, 6551, 18, 1969, 67, 869, 67, 5113, 12, 917, 22, 20349, 585, 18, 2626, 2932, 16, 738, 75, 64, 82, 6, 738, 261, 6012, 22, 3719, 585, 18, 2626, 2932, 225, 293, 360, 475, 288, 3266, 23930, 75, 738, 75, 738, 75, 34, 6280, 82, 6, 738, 261, 3266, 63, 20, 6487, 2036, 63, 21, 6487, 2036, 63, 22, 22643, 585, 18, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2518, 557, 476, 12, 3266, 16, 949, 21, 16, 949, 22, 16, 6719, 21, 16, 6719, 22, 4672, 585, 18, 2626, 2932, 71, 476, 18890, 82, 7923, 585, 18, 2626, 2932, 225, 315, 397, 293, 1527, 1153, 12, 6551, 18, 1969, 67, 869, 67, 5113, 12, 917, 21, 20349, 585, 18, 2626, 2932, 16, 738, 75, 64, 82, 6, 738, 261, 6012, 21, 3719, 585, 18, 2626, 2932, 225, 315, 397, 293, 1527, 1153, 12, 6551, 18, 1969, 67, 869, 67, 5113, 12, 917, 22, 20349, 585, 18, 2626, 2932, 16, 738, 75, 64, 82, 6, 738, 261, 6012, 22, 3719, 585, 18, 2626, 2932, 225, 293, 360, 475, 288, 3266, 23930, 75, 738, 75, 738, 75, 34, 2 ]
run_unittest(AutoFileTests, OtherFileTests)
run_unittest(AutoFileTests, OtherFileTests, StdoutTests)
def test_main(): # Historically, these tests have been sloppy about removing TESTFN. # So get rid of it no matter what. try: run_unittest(AutoFileTests, OtherFileTests) finally: if os.path.exists(TESTFN): os.unlink(TESTFN)
e911c5653cebff4ffa8cf8211517924b3933bff5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/e911c5653cebff4ffa8cf8211517924b3933bff5/test_file.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 468, 13244, 280, 6478, 16, 4259, 7434, 1240, 2118, 30748, 2074, 2973, 9427, 22130, 19793, 18, 468, 6155, 336, 10911, 434, 518, 1158, 15177, 4121, 18, 775, 30, 1086, 67, 4873, 3813, 12, 4965, 812, 14650, 16, 4673, 812, 14650, 16, 13973, 14650, 13, 3095, 30, 309, 1140, 18, 803, 18, 1808, 12, 16961, 19793, 4672, 1140, 18, 318, 1232, 12, 16961, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 468, 13244, 280, 6478, 16, 4259, 7434, 1240, 2118, 30748, 2074, 2973, 9427, 22130, 19793, 18, 468, 6155, 336, 10911, 434, 518, 1158, 15177, 4121, 18, 775, 30, 1086, 67, 4873, 3813, 12, 4965, 812, 14650, 16, 4673, 812, 14650, 16, 13973, 14650, 13, 3095, 30, 309, 1140, 18, 803, 18, 1808, 12, 16961, 19793, 4672, 1140, 18, 318, 1232, 12, 16961, 19793, 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 ]
def _monthly_finder(locs, freqstr, aslocator):
def _monthly_finder(vmin, vmax, freqstr, aslocator):
def _monthly_finder(locs, freqstr, aslocator): if freqstr != 'M': raise ValueError("unexpected frequency") periodsperyear = 12 locs = N.asarray(locs) (vmin, vmax) = locs[[0,-1]] (vmin, vmax) = (int(vmin), int(vmax+1)) span = vmax - vmin + 1 #............................................ dates = N.arange(vmin, vmax+1) format = N.empty(span, dtype="|S8") format.flat = '' year_start = (dates % 12 == 1).nonzero()[0] #............................................ if span <= 1.15 * periodsperyear: if aslocator: major = dates[year_start] minor = dates else: format[:] = '%b' format[year_start] = '%b\n%Y' if not year_start.size: if dates.size > 1: idx = 1 else: idx = 0 format[idx] = '%b\n%Y' #........................ elif span <= 2.5 * periodsperyear: if aslocator: major = dates[year_start] minor = dates else: quarter_start = (dates % 3 == 1).nonzero() format[quarter_start] = '%b' format[year_start] = '%b\n%Y' #....................... elif span <= 4 * periodsperyear: if aslocator: major = dates[year_start] minor = dates else: jan_or_jul = (dates % 12 == 1) | (dates % 12 == 7) format[jan_or_jul] = '%b' format[year_start] = '%b\n%Y' #........................ elif span <= 11 * periodsperyear: if aslocator: quarter_start = (dates % 3 == 1).nonzero() major = dates[year_start] minor = dates[quarter_start] else: format[year_start] = '%Y' #......................... else: nyears = span/periodsperyear (min_anndef, maj_anndef) = _get_default_annual_spacing(nyears) years = dates[year_start]//12 + 1 major_idx = year_start[(years % maj_anndef == 0)] if aslocator: major = dates[major_idx] minor = dates[year_start[(years % min_anndef == 0)]] else: format[major_idx] = '%Y' #........................ if aslocator: return minor, major else: formatted = (format != '') return dict([(d,f) for (d,f) in zip(dates[formatted],format[formatted])])
7a3c507a500aec86f9240f3a0e8437c36eeb7238 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/7a3c507a500aec86f9240f3a0e8437c36eeb7238/mpl_timeseries_pgm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7496, 715, 67, 15356, 12, 90, 1154, 16, 17831, 16, 7684, 701, 16, 487, 20048, 4672, 309, 7684, 701, 480, 296, 49, 4278, 1002, 2068, 2932, 21248, 8670, 7923, 12777, 457, 6874, 273, 2593, 26357, 273, 423, 18, 345, 1126, 12, 24323, 13, 261, 90, 1154, 16, 17831, 13, 273, 26357, 31128, 20, 16, 17, 21, 13563, 261, 90, 1154, 16, 17831, 13, 273, 261, 474, 12, 90, 1154, 3631, 509, 12, 90, 1896, 15, 21, 3719, 4548, 273, 17831, 300, 17501, 397, 404, 468, 18509, 18509, 10879, 6265, 7811, 273, 423, 18, 297, 726, 12, 90, 1154, 16, 17831, 15, 21, 13, 740, 273, 423, 18, 5531, 12, 3969, 16, 3182, 1546, 96, 55, 28, 7923, 740, 18, 15401, 273, 875, 3286, 67, 1937, 273, 261, 9683, 738, 2593, 422, 404, 2934, 26449, 1435, 63, 20, 65, 468, 18509, 18509, 10879, 6265, 309, 4548, 1648, 404, 18, 3600, 380, 12777, 457, 6874, 30, 309, 487, 20048, 30, 7888, 273, 7811, 63, 6874, 67, 1937, 65, 8439, 273, 7811, 469, 30, 740, 10531, 65, 273, 1995, 70, 11, 740, 63, 6874, 67, 1937, 65, 273, 1995, 70, 64, 82, 9, 61, 11, 225, 309, 486, 3286, 67, 1937, 18, 1467, 30, 309, 7811, 18, 1467, 405, 404, 30, 2067, 273, 404, 469, 30, 2067, 273, 374, 740, 63, 3465, 65, 273, 1995, 70, 64, 82, 9, 61, 11, 468, 18509, 10879, 1327, 4548, 1648, 576, 18, 25, 380, 12777, 457, 6874, 30, 309, 487, 20048, 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, 7496, 715, 67, 15356, 12, 90, 1154, 16, 17831, 16, 7684, 701, 16, 487, 20048, 4672, 309, 7684, 701, 480, 296, 49, 4278, 1002, 2068, 2932, 21248, 8670, 7923, 12777, 457, 6874, 273, 2593, 26357, 273, 423, 18, 345, 1126, 12, 24323, 13, 261, 90, 1154, 16, 17831, 13, 273, 26357, 31128, 20, 16, 17, 21, 13563, 261, 90, 1154, 16, 17831, 13, 273, 261, 474, 12, 90, 1154, 3631, 509, 12, 90, 1896, 15, 21, 3719, 4548, 273, 17831, 300, 17501, 397, 404, 468, 18509, 18509, 10879, 6265, 7811, 273, 423, 18, 297, 726, 12, 90, 1154, 16, 17831, 15, 21, 13, 740, 273, 423, 18, 5531, 12, 3969, 16, 3182, 1546, 96, 55, 28, 7923, 2 ]
token = self.token() token = self.parseBlock(token); elif token[1] == ',': self.comment = None self.index.add(self.name, self.filename, static,
token = self.token() token = self.parseBlock(token); elif token[1] == ',': self.comment = None self.index_add(self.name, self.filename, static,
def parseGlobal(self, token): static = 0 if token[1] == 'extern': token = self.token() if token == None: return token if token[0] == 'string': if token[1] == 'C': token = self.token() if token == None:
c7d1398e49a7858195b4b8e0b9832ded1fb9f169 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3857/c7d1398e49a7858195b4b8e0b9832ded1fb9f169/apibuild.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 5160, 12, 2890, 16, 1147, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 5160, 12, 2890, 16, 1147, 4672, 760, 273, 374, 309, 1147, 63, 21, 65, 422, 296, 338, 798, 4278, 1147, 273, 365, 18, 2316, 1435, 309, 1147, 422, 599, 30, 327, 1147, 309, 1147, 63, 20, 65, 422, 296, 1080, 4278, 309, 1147, 63, 21, 65, 422, 296, 39, 4278, 1147, 273, 365, 18, 2316, 1435, 309, 1147, 422, 599, 30, 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 ]
raise ParseError, ("%s:%s: expected <hostglob> <user> " "<password> for configuration value %s" % (file, self.lineno, key))
raise ParseError("expected <hostglob> <user> [<password>]")
def parseString(self, str): val = str.split() if len(val) < 2 or len(val) > 3: raise ParseError, ("%s:%s: expected <hostglob> <user> " "<password> for configuration value %s" % (file, self.lineno, key)) elif len(val) == 2: return (val[0], val[1], None) else: return tuple(val)
43b7cc14c033a62aa6644488d21dd6d1c7ca95fa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/43b7cc14c033a62aa6644488d21dd6d1c7ca95fa/conarycfg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23659, 12, 2890, 16, 609, 4672, 1244, 273, 609, 18, 4939, 1435, 309, 562, 12, 1125, 13, 411, 576, 578, 562, 12, 1125, 13, 405, 890, 30, 1002, 17372, 2932, 3825, 411, 2564, 10581, 34, 411, 1355, 34, 306, 32, 3664, 34, 4279, 13, 1327, 562, 12, 1125, 13, 422, 576, 30, 327, 261, 1125, 63, 20, 6487, 1244, 63, 21, 6487, 599, 13, 469, 30, 327, 3193, 12, 1125, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23659, 12, 2890, 16, 609, 4672, 1244, 273, 609, 18, 4939, 1435, 309, 562, 12, 1125, 13, 411, 576, 578, 562, 12, 1125, 13, 405, 890, 30, 1002, 17372, 2932, 3825, 411, 2564, 10581, 34, 411, 1355, 34, 306, 32, 3664, 34, 4279, 13, 1327, 562, 12, 1125, 13, 422, 576, 30, 327, 261, 1125, 63, 20, 6487, 1244, 63, 21, 6487, 599, 13, 469, 30, 327, 3193, 12, 1125, 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 ]
writeFile = file(writeFileName, 'w')
try: writeFile = file(writeFileName, 'w') except IOError, ioe: if ioe.errno == errno.EACCES: raise unittest.SkipTest( "No permission to add things to twisted.plugins") else: raise
def _testDetectFilesChanged(self): writeFileName = sibpath(plugins.__file__, 'pluginextra.py') writeFile = file(writeFileName, 'w') try: writeFile.write(begintest) writeFile.flush() plgs = list(plugin.getPlugIns(plugin.ITestPlugin)) # Sanity check self.assertEquals( len(plgs), 2, "Unexpected plugins found: %r" % ( [p.__name__ for p in plgs]))
b2b7cf44f8ba0e340da4babcd1d3a5e9d2196fe0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/b2b7cf44f8ba0e340da4babcd1d3a5e9d2196fe0/test_plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3813, 12081, 2697, 5033, 12, 2890, 4672, 1045, 4771, 273, 12092, 803, 12, 8057, 16186, 768, 972, 16, 296, 4094, 7763, 18, 2074, 6134, 775, 30, 13286, 273, 585, 12, 2626, 4771, 16, 296, 91, 6134, 1335, 8340, 16, 10847, 30, 309, 10847, 18, 19088, 422, 8402, 18, 41, 31110, 55, 30, 1002, 2836, 3813, 18, 6368, 4709, 12, 315, 2279, 4132, 358, 527, 9198, 358, 2339, 25444, 18, 8057, 7923, 469, 30, 1002, 775, 30, 13286, 18, 2626, 12, 70, 1332, 474, 395, 13, 13286, 18, 11330, 1435, 886, 564, 273, 666, 12, 4094, 18, 588, 1749, 637, 5048, 12, 4094, 18, 1285, 395, 3773, 3719, 468, 23123, 866, 365, 18, 11231, 8867, 12, 562, 12, 412, 564, 3631, 576, 16, 315, 7762, 4799, 1392, 30, 738, 86, 6, 738, 261, 306, 84, 16186, 529, 972, 364, 293, 316, 886, 564, 22643, 2, 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, 389, 3813, 12081, 2697, 5033, 12, 2890, 4672, 1045, 4771, 273, 12092, 803, 12, 8057, 16186, 768, 972, 16, 296, 4094, 7763, 18, 2074, 6134, 775, 30, 13286, 273, 585, 12, 2626, 4771, 16, 296, 91, 6134, 1335, 8340, 16, 10847, 30, 309, 10847, 18, 19088, 422, 8402, 18, 41, 31110, 55, 30, 1002, 2836, 3813, 18, 6368, 4709, 12, 315, 2279, 4132, 358, 527, 9198, 358, 2339, 25444, 18, 8057, 7923, 469, 30, 1002, 775, 30, 13286, 18, 2626, 12, 70, 1332, 474, 395, 13, 13286, 18, 11330, 1435, 886, 564, 273, 666, 12, 4094, 18, 588, 1749, 637, 5048, 12, 4094, 18, 1285, 395, 3773, 3719, 468, 23123, 866, 365, 18, 11231, 8867, 12, 562, 12, 2 ]
def createTrashFolder(self):
def createTrashFolder():
def createTrashFolder(self): trash = getTrashFolder() if not os.path.isdir(trash): os.mkdir(trash) return trash
fee0b3ec71008a4dfa0fc91173f3d18b5710db80 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/fee0b3ec71008a4dfa0fc91173f3d18b5710db80/Trashcan.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 29420, 3899, 13332, 20703, 273, 336, 29420, 3899, 1435, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 28665, 4672, 1140, 18, 26686, 12, 28665, 13, 327, 20703, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 29420, 3899, 13332, 20703, 273, 336, 29420, 3899, 1435, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 28665, 4672, 1140, 18, 26686, 12, 28665, 13, 327, 20703, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for root, dirs, files in os.walk(sample_path):
for root, dirs, files in sorted_walk(sample_path):
def write_zip(self): """ Writes a zip file containing all of the files in this Sample's dir.""" sample_path = os.path.realpath(os.path.dirname(self._manifest_path)) sample_dirname = os.path.basename(sample_path) sample_parentpath = os.path.dirname(sample_path)
22fdd46b51c43359ef4db95e499148a85ce371e2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/22fdd46b51c43359ef4db95e499148a85ce371e2/directory.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 4450, 12, 2890, 4672, 3536, 30053, 279, 3144, 585, 4191, 777, 434, 326, 1390, 316, 333, 11474, 1807, 1577, 12123, 3296, 67, 803, 273, 1140, 18, 803, 18, 7688, 803, 12, 538, 18, 803, 18, 12287, 12, 2890, 6315, 14357, 67, 803, 3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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 4450, 12, 2890, 4672, 3536, 30053, 279, 3144, 585, 4191, 777, 434, 326, 1390, 316, 333, 11474, 1807, 1577, 12123, 3296, 67, 803, 273, 1140, 18, 803, 18, 7688, 803, 12, 538, 18, 803, 18, 12287, 12, 2890, 6315, 14357, 67, 803, 3719, 3296, 67, 12287, 273, 1140, 18, 803, 18, 13909, 12, 6358, 67, 803, 13, 3296, 67, 2938, 803, 273, 1140, 18, 803, 18, 12287, 12, 6358, 67, 803, 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 ]
dbg('ConfigBase::get_item: %s:%s' % (profile, key))
def get_item(self, key, profile='default', plugin=None): """Look up a configuration item""" dbg('ConfigBase::get_item: %s:%s' % (profile, key)) if self.global_config.has_key(key): dbg('ConfigBase::get_item: found in globals: %s' % self.global_config[key]) return(self.global_config[key]) elif self.profiles[profile].has_key(key): dbg('ConfigBase::get_item: found in profile %s (%s)' % ( profile, self.profiles[profile][key])) return(self.profiles[profile][key]) elif key == 'keybindings': return(self.keybindings) elif plugin is not None and self.plugins[plugin].has_key(key): dbg('ConfigBase::get_item: found in plugin %s (%s)' % ( plugin, self.plugins[plugin][key])) return(self.plugins[plugin][key]) else: raise KeyError('ConfigBase::get_item: unknown key %s' % key)
14f2522a889c698e69c190644c3738bd4b08154e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6502/14f2522a889c698e69c190644c3738bd4b08154e/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1726, 12, 2890, 16, 498, 16, 3042, 2218, 1886, 2187, 1909, 33, 7036, 4672, 3536, 9794, 731, 279, 1664, 761, 8395, 309, 365, 18, 6347, 67, 1425, 18, 5332, 67, 856, 12, 856, 4672, 28966, 2668, 809, 2171, 2866, 588, 67, 1726, 30, 1392, 316, 10941, 30, 738, 87, 11, 738, 365, 18, 6347, 67, 1425, 63, 856, 5717, 327, 12, 2890, 18, 6347, 67, 1425, 63, 856, 5717, 1327, 365, 18, 18314, 63, 5040, 8009, 5332, 67, 856, 12, 856, 4672, 28966, 2668, 809, 2171, 2866, 588, 67, 1726, 30, 1392, 316, 3042, 738, 87, 6142, 87, 2506, 738, 261, 3042, 16, 365, 18, 18314, 63, 5040, 6362, 856, 22643, 327, 12, 2890, 18, 18314, 63, 5040, 6362, 856, 5717, 1327, 498, 422, 296, 856, 15863, 4278, 327, 12, 2890, 18, 856, 15863, 13, 1327, 1909, 353, 486, 599, 471, 365, 18, 8057, 63, 4094, 8009, 5332, 67, 856, 12, 856, 4672, 28966, 2668, 809, 2171, 2866, 588, 67, 1726, 30, 1392, 316, 1909, 738, 87, 6142, 87, 2506, 738, 261, 1909, 16, 365, 18, 8057, 63, 4094, 6362, 856, 22643, 327, 12, 2890, 18, 8057, 63, 4094, 6362, 856, 5717, 469, 30, 1002, 4999, 2668, 809, 2171, 2866, 588, 67, 1726, 30, 5917, 498, 738, 87, 11, 738, 498, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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1392, 316, 10941, 30, 738, 87, 11, 738, 365, 18, 6347, 67, 1425, 63, 856, 5717, 327, 12, 2890, 18, 6347, 67, 1425, 63, 856, 5717, 1327, 365, 18, 18314, 63, 5040, 8009, 5332, 67, 856, 12, 856, 4672, 28966, 2668, 809, 2171, 2866, 588, 67, 1726, 30, 1392, 316, 3042, 738, 87, 6142, 87, 2506, 738, 261, 3042, 16, 365, 18, 18314, 63, 5040, 6362, 856, 22643, 327, 12, 2890, 18, 18314, 2 ]
for parent, addon_key in plugins.Hook('chandler.domain.inherit_from').query(ob):
for parent, child_key in plugins.Hook('chandler.domain.inherit_from').query(ob):
def __class_call__(cls, ob, *data): parent = None # look for a parent to inherit from for parent, addon_key in plugins.Hook('chandler.domain.inherit_from').query(ob): if parent is not None: # use parent's dict to store inherited AddOns a = parent.__dict__ break else: # normal AddOn behavior a = addons.addons_for(ob) addon_key = cls.addon_key(*data) try: return a[addon_key] except KeyError: ob = a.setdefault(addon_key, super(addons.AddOn, cls).__class_call__(ob, *data)) if parent is not None: ob._init_inheritance(parent) return ob
1f8b1337e3e45871f37588ca0257057cf473cff6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12987/1f8b1337e3e45871f37588ca0257057cf473cff6/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1106, 67, 1991, 972, 12, 6429, 16, 3768, 16, 380, 892, 4672, 982, 273, 599, 468, 2324, 364, 279, 982, 358, 6811, 628, 364, 982, 16, 1151, 67, 856, 316, 4799, 18, 5394, 2668, 343, 464, 749, 18, 4308, 18, 6018, 67, 2080, 16063, 2271, 12, 947, 4672, 309, 982, 353, 486, 599, 30, 468, 999, 982, 1807, 2065, 358, 1707, 12078, 30399, 87, 279, 273, 982, 16186, 1576, 972, 898, 469, 30, 468, 2212, 30399, 6885, 279, 273, 31439, 18, 1289, 7008, 67, 1884, 12, 947, 13, 15466, 67, 856, 273, 2028, 18, 24390, 67, 856, 30857, 892, 13, 775, 30, 327, 279, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1106, 67, 1991, 972, 12, 6429, 16, 3768, 16, 380, 892, 4672, 982, 273, 599, 468, 2324, 364, 279, 982, 358, 6811, 628, 364, 982, 16, 1151, 67, 856, 316, 4799, 18, 5394, 2668, 343, 464, 749, 18, 4308, 18, 6018, 67, 2080, 16063, 2271, 12, 947, 4672, 309, 982, 353, 486, 599, 30, 468, 999, 982, 1807, 2065, 358, 1707, 12078, 30399, 87, 279, 273, 982, 16186, 1576, 972, 898, 469, 30, 468, 2212, 30399, 6885, 279, 273, 31439, 18, 1289, 7008, 67, 1884, 12, 947, 13, 15466, 67, 856, 273, 2028, 18, 24390, 67, 856, 30857, 892, 13, 775, 30, 327, 279, 63, 24390, 67, 856, 65, 1335, 4999, 30, 3768, 273, 279, 18, 542, 2 ]
controlOptions=dict(formatter=PostscriptStemSnapFormatter.alloc().init())
conversionFromUFO=infoListFromUFO, conversionToUFO=postscriptStemSnapToUFO,
def openTypeOS2WeightClassToUFO(value): return value + 1
137338eb4051b7c398326eb572215f6342492c38 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8848/137338eb4051b7c398326eb572215f6342492c38/fontInfoView.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 559, 4618, 22, 6544, 797, 774, 57, 3313, 12, 1132, 4672, 327, 460, 397, 404, 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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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, 1696, 559, 4618, 22, 6544, 797, 774, 57, 3313, 12, 1132, 4672, 327, 460, 397, 404, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if hasattr(excClass,'__name__'): excName = excClass.__name__
if hasattr(exception, '__name__'): excName = exception.__name__
def assertRaisesMessage(self, exception, callable, message, *args, **kwargs): """An extension of assertRaises, which also checks the exception message. We need this because we rely on exception messages when redirecting. """ try: callable(*args, **kwargs) except exception, msg: self.assertEqual(str(msg), message) else: if hasattr(excClass,'__name__'): excName = excClass.__name__ else: excName = str(excClass) raise self.failureException, excName
615ded3cb3db77c1ec25db75234fa0bd24d2e052 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/615ded3cb3db77c1ec25db75234fa0bd24d2e052/test_actions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 12649, 6141, 1079, 12, 2890, 16, 1520, 16, 4140, 16, 883, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 979, 2710, 434, 1815, 12649, 6141, 16, 1492, 2546, 4271, 326, 1520, 883, 18, 1660, 1608, 333, 2724, 732, 21187, 603, 1520, 2743, 1347, 3136, 310, 18, 3536, 775, 30, 4140, 30857, 1968, 16, 2826, 4333, 13, 1335, 1520, 16, 1234, 30, 365, 18, 11231, 5812, 12, 701, 12, 3576, 3631, 883, 13, 469, 30, 309, 3859, 12, 4064, 16, 4940, 529, 7250, 4672, 3533, 461, 273, 1520, 16186, 529, 972, 469, 30, 3533, 461, 273, 609, 12, 10075, 797, 13, 1002, 365, 18, 12251, 503, 16, 3533, 461, 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, 1815, 12649, 6141, 1079, 12, 2890, 16, 1520, 16, 4140, 16, 883, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 979, 2710, 434, 1815, 12649, 6141, 16, 1492, 2546, 4271, 326, 1520, 883, 18, 1660, 1608, 333, 2724, 732, 21187, 603, 1520, 2743, 1347, 3136, 310, 18, 3536, 775, 30, 4140, 30857, 1968, 16, 2826, 4333, 13, 1335, 1520, 16, 1234, 30, 365, 18, 11231, 5812, 12, 701, 12, 3576, 3631, 883, 13, 469, 30, 309, 3859, 12, 4064, 16, 4940, 529, 7250, 4672, 3533, 461, 273, 1520, 16186, 529, 972, 469, 30, 3533, 461, 273, 609, 12, 10075, 797, 13, 1002, 365, 18, 12251, 503, 16, 3533, 461, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
('stereo_view_mode', 'int', stereoViewMode_prefs_key, 0),
('stereo_view_mode', 'int', stereoViewMode_prefs_key, 1),
def getDefaultWorkingDirectory(): """ Get the default Working Directory. @return: The default working directory, which is platform dependent: - Windows: $HOME\My Documents - MacOS and Linux: $HOME If the default working directory doesn't exist, return ".". @rtype: string """ wd = "" if sys.platform == 'win32': # Windows # e.g. "C:\Documents and Settings\Mark\My Documents" wd = os.path.normpath(os.path.expanduser("~/My Documents")) # Check <wd> since some Windows OSes (i.e. Win95) may not have "~\My Documents". if not os.path.isdir(wd): wd = os.path.normpath(os.path.expanduser("~")) else: # Linux and MacOS # e.g. "/usr/mark" wd = os.path.normpath(os.path.expanduser("~")) if os.path.isdir(wd): return wd else: print "getDefaultWorkingDirectory(): default working directory [", \ wd , "] does not exist. Setting default working directory to [.]" return "."
345dbe5ed97e74210dd53d3511925969f18940d4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/345dbe5ed97e74210dd53d3511925969f18940d4/prefs_constants.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4829, 14836, 2853, 13332, 3536, 968, 326, 805, 22732, 8930, 18, 225, 632, 2463, 30, 1021, 805, 5960, 1867, 16, 1492, 353, 4072, 10460, 30, 300, 8202, 30, 271, 14209, 64, 12062, 4319, 87, 300, 13217, 4618, 471, 13318, 30, 271, 14209, 971, 326, 805, 5960, 1867, 3302, 1404, 1005, 16, 327, 4585, 18, 632, 86, 723, 30, 533, 3536, 14452, 273, 1408, 309, 2589, 18, 9898, 422, 296, 8082, 1578, 4278, 468, 8202, 468, 425, 18, 75, 18, 315, 39, 5581, 12922, 471, 8709, 64, 3882, 64, 12062, 4319, 87, 6, 14452, 273, 1140, 18, 803, 18, 7959, 803, 12, 538, 18, 803, 18, 12320, 1355, 2932, 98, 19, 12062, 4319, 87, 6, 3719, 468, 2073, 411, 3623, 34, 3241, 2690, 8202, 5932, 281, 261, 77, 18, 73, 18, 21628, 8778, 13, 2026, 486, 1240, 19910, 64, 12062, 4319, 87, 9654, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 3623, 4672, 14452, 273, 1140, 18, 803, 18, 7959, 803, 12, 538, 18, 803, 18, 12320, 1355, 2932, 98, 6, 3719, 469, 30, 468, 13318, 471, 13217, 4618, 468, 425, 18, 75, 18, 2206, 13640, 19, 3355, 6, 14452, 273, 1140, 18, 803, 18, 7959, 803, 12, 538, 18, 803, 18, 12320, 1355, 2932, 98, 6, 3719, 309, 1140, 18, 803, 18, 291, 1214, 12, 3623, 4672, 327, 14452, 469, 30, 1172, 315, 588, 1868, 14836, 2853, 13332, 805, 5960, 1867, 306, 3113, 521, 14452, 269, 9850, 1552, 486, 1005, 18, 13274, 805, 5960, 1867, 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, 4829, 14836, 2853, 13332, 3536, 968, 326, 805, 22732, 8930, 18, 225, 632, 2463, 30, 1021, 805, 5960, 1867, 16, 1492, 353, 4072, 10460, 30, 300, 8202, 30, 271, 14209, 64, 12062, 4319, 87, 300, 13217, 4618, 471, 13318, 30, 271, 14209, 971, 326, 805, 5960, 1867, 3302, 1404, 1005, 16, 327, 4585, 18, 632, 86, 723, 30, 533, 3536, 14452, 273, 1408, 309, 2589, 18, 9898, 422, 296, 8082, 1578, 4278, 468, 8202, 468, 425, 18, 75, 18, 315, 39, 5581, 12922, 471, 8709, 64, 3882, 64, 12062, 4319, 87, 6, 14452, 273, 1140, 18, 803, 18, 7959, 803, 12, 538, 18, 803, 18, 12320, 1355, 2932, 98, 19, 12062, 4319, 87, 6, 3719, 468, 2073, 411, 2 ]
1/(y + 1) - (2/(y + 1)^2) + 1/(y + 1)^3
1/(y + 1) - 2/(y + 1)^2 + 1/(y + 1)^3
def partial_fraction(self, var=None): """ Return the partial fraction expansion of self with respect to the given variable.
c01bc61bd25d9363f0356f86672ff77562a9b5da /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c01bc61bd25d9363f0356f86672ff77562a9b5da/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4702, 67, 16744, 12, 2890, 16, 569, 33, 7036, 4672, 3536, 2000, 326, 4702, 8330, 17965, 434, 365, 598, 8762, 358, 326, 864, 2190, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4702, 67, 16744, 12, 2890, 16, 569, 33, 7036, 4672, 3536, 2000, 326, 4702, 8330, 17965, 434, 365, 598, 8762, 358, 326, 864, 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 ]
representation (default=False, `\mathbb{F}_2` only)
representation (default: ``False``, `\mathbb{F}_2` only)
def SR(n=1, r=1, c=1, e=4, star=False, **kwargs): r""" Return a small scale variant of the AES polynomial system constructor subject to the following conditions: INPUT: - ``n`` - the number of rounds (default: 1) - ``r`` - the number of rows in the state array (default: 1) - ``c`` - the number of columns in the state array (default: 1) - ``e`` - the exponent of the finite extension field (default: 4) - ``star`` - determines if SR\* or SR should be constructed (default: ``False``) - ``aes_mode`` - as the SR key schedule specification differs slightly from the AES key schedule, this parameter controls which schedule to use (default: ``True``) - ``gf2`` - generate polynomial systems over `\mathbb{F}_2` rather than over `\mathbb{F}_{2^e}` (default: ``False``) - ``polybori`` - use the ``BooleanPolynomialRing`` as polynomial representation (default=False, `\mathbb{F}_2` only) - ``order`` - a string to specify the term ordering of the variables - ``postfix`` - a string which is appended after the variable name (default: '') - ``allow_zero_inversions`` - a boolean to control whether zero inversions raise an exception (default: ``False``) - ``correct_only`` - only include correct inversion polynomials (default: ``False``, `\mathbb{F}_2` only) - ``biaffine_only`` - only include bilinear and biaffine inversion polynomials (default: ``True``, `\mathbb{F}_2` only) EXAMPLES:: sage: sr = mq.SR(1, 1, 1, 4) sage: ShiftRows = sr.shift_rows_matrix() sage: MixColumns = sr.mix_columns_matrix() sage: Lin = sr.lin_matrix() sage: M = MixColumns * ShiftRows * Lin sage: print sr.hex_str_matrix(M) 5 1 C 5 2 2 1 F A 4 4 1 1 8 3 3 :: sage: sr = mq.SR(1, 2, 1, 4) sage: ShiftRows = sr.shift_rows_matrix() sage: MixColumns = sr.mix_columns_matrix() sage: Lin = sr.lin_matrix() sage: M = MixColumns * ShiftRows * Lin sage: print sr.hex_str_matrix(M) F 3 7 F A 2 B A A A 5 6 8 8 4 9 7 8 8 2 D C C 3 4 6 C C 5 E F F A 2 B A F 3 7 F 8 8 4 9 A A 5 6 D C C 3 7 8 8 2 5 E F F 4 6 C C :: sage: sr = mq.SR(1, 2, 2, 4) sage: ShiftRows = sr.shift_rows_matrix() sage: MixColumns = sr.mix_columns_matrix() sage: Lin = sr.lin_matrix() sage: M = MixColumns * ShiftRows * Lin sage: print sr.hex_str_matrix(M) F 3 7 F 0 0 0 0 0 0 0 0 A 2 B A A A 5 6 0 0 0 0 0 0 0 0 8 8 4 9 7 8 8 2 0 0 0 0 0 0 0 0 D C C 3 4 6 C C 0 0 0 0 0 0 0 0 5 E F F A 2 B A 0 0 0 0 0 0 0 0 F 3 7 F 8 8 4 9 0 0 0 0 0 0 0 0 A A 5 6 D C C 3 0 0 0 0 0 0 0 0 7 8 8 2 5 E F F 0 0 0 0 0 0 0 0 4 6 C C 0 0 0 0 A 2 B A F 3 7 F 0 0 0 0 0 0 0 0 8 8 4 9 A A 5 6 0 0 0 0 0 0 0 0 D C C 3 7 8 8 2 0 0 0 0 0 0 0 0 5 E F F 4 6 C C 0 0 0 0 0 0 0 0 F 3 7 F A 2 B A 0 0 0 0 0 0 0 0 A A 5 6 8 8 4 9 0 0 0 0 0 0 0 0 7 8 8 2 D C C 3 0 0 0 0 0 0 0 0 4 6 C C 5 E F F 0 0 0 0 """ if not kwargs.get("gf2", False): return SR_gf2n(n, r, c, e, star, **kwargs) else: return SR_gf2(n, r, c, e, star, **kwargs)
e9de4dc45b78ee371d827176c047af2a011b3044 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/e9de4dc45b78ee371d827176c047af2a011b3044/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19145, 12, 82, 33, 21, 16, 436, 33, 21, 16, 276, 33, 21, 16, 425, 33, 24, 16, 10443, 33, 8381, 16, 2826, 4333, 4672, 436, 8395, 2000, 279, 5264, 3159, 5437, 434, 326, 15986, 16991, 2619, 3885, 3221, 358, 326, 3751, 4636, 30, 225, 12943, 30, 225, 300, 225, 12176, 82, 10335, 300, 326, 1300, 434, 21196, 261, 1886, 30, 404, 13, 300, 225, 12176, 86, 10335, 300, 326, 1300, 434, 2595, 316, 326, 919, 526, 261, 1886, 30, 404, 13, 300, 225, 12176, 71, 10335, 300, 326, 1300, 434, 2168, 316, 326, 919, 526, 261, 1886, 30, 404, 13, 300, 225, 12176, 73, 10335, 300, 326, 9100, 434, 326, 25922, 2710, 652, 261, 1886, 30, 1059, 13, 300, 225, 12176, 10983, 10335, 300, 12949, 309, 19145, 64, 14, 578, 19145, 1410, 506, 15688, 261, 1886, 30, 12176, 8381, 10335, 13, 300, 12176, 22335, 67, 3188, 10335, 300, 487, 326, 19145, 498, 4788, 7490, 21944, 21980, 628, 326, 15986, 498, 4788, 16, 333, 1569, 11022, 1492, 4788, 358, 999, 261, 1886, 30, 12176, 5510, 10335, 13, 300, 12176, 75, 74, 22, 10335, 300, 2103, 16991, 14908, 1879, 1375, 64, 15949, 9897, 95, 42, 9044, 22, 68, 9178, 2353, 1879, 1375, 64, 15949, 9897, 95, 42, 26197, 22, 66, 73, 11760, 261, 1886, 30, 12176, 8381, 10335, 13, 300, 12176, 16353, 70, 280, 77, 10335, 300, 999, 326, 12176, 5507, 5850, 13602, 10369, 10335, 487, 16991, 4335, 261, 1886, 30, 12176, 8381, 68, 9191, 1375, 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, 19145, 12, 82, 33, 21, 16, 436, 33, 21, 16, 276, 33, 21, 16, 425, 33, 24, 16, 10443, 33, 8381, 16, 2826, 4333, 4672, 436, 8395, 2000, 279, 5264, 3159, 5437, 434, 326, 15986, 16991, 2619, 3885, 3221, 358, 326, 3751, 4636, 30, 225, 12943, 30, 225, 300, 225, 12176, 82, 10335, 300, 326, 1300, 434, 21196, 261, 1886, 30, 404, 13, 300, 225, 12176, 86, 10335, 300, 326, 1300, 434, 2595, 316, 326, 919, 526, 261, 1886, 30, 404, 13, 300, 225, 12176, 71, 10335, 300, 326, 1300, 434, 2168, 316, 326, 919, 526, 261, 1886, 30, 404, 13, 300, 225, 12176, 73, 10335, 300, 326, 9100, 434, 326, 25922, 2710, 652, 261, 1886, 30, 1059, 2 ]
l,r=outer_set(mleft,mright,l,r) return l,r
l,c,r=outer_set(mleft,mright,l,c,r) return l,c,r
def get_filechanges(repo,revision,parents,mleft): """Given some repository and revision, find all changed/deleted files.""" l,r=[],[] for p in parents: if p<0: continue mright=repo.changectx(p).manifest() dleft=mleft.keys() dleft.sort() dright=mright.keys() dright.sort() l,r=outer_set(mleft,mright,l,r) return l,r
c002051c82e22ca816afd1475885fc38e92693ad /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12824/c002051c82e22ca816afd1475885fc38e92693ad/hg2git.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 768, 6329, 12, 7422, 16, 13057, 16, 12606, 16, 81, 4482, 4672, 3536, 6083, 2690, 3352, 471, 6350, 16, 1104, 777, 3550, 19, 8600, 1390, 12123, 328, 16, 86, 22850, 6487, 8526, 364, 293, 316, 6298, 30, 309, 293, 32, 20, 30, 1324, 312, 4083, 33, 7422, 18, 24083, 386, 92, 12, 84, 2934, 14357, 1435, 302, 4482, 33, 81, 4482, 18, 2452, 1435, 302, 4482, 18, 3804, 1435, 302, 4083, 33, 81, 4083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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 768, 6329, 12, 7422, 16, 13057, 16, 12606, 16, 81, 4482, 4672, 3536, 6083, 2690, 3352, 471, 6350, 16, 1104, 777, 3550, 19, 8600, 1390, 12123, 328, 16, 86, 22850, 6487, 8526, 364, 293, 316, 6298, 30, 309, 293, 32, 20, 30, 1324, 312, 4083, 33, 7422, 18, 24083, 386, 92, 12, 84, 2934, 14357, 1435, 302, 4482, 33, 81, 4482, 18, 2452, 1435, 302, 4482, 18, 3804, 1435, 302, 4083, 33, 81, 4083, 18, 2452, 1435, 302, 4083, 18, 3804, 1435, 328, 16, 71, 16, 86, 33, 14068, 67, 542, 12, 81, 4482, 16, 81, 4083, 16, 80, 16, 71, 16, 86, 13, 327, 328, 16, 71, 16, 86, 225, 2, -100, -100, -100, -100, -100 ]
old_text = old_version.field_dict[field_name] new_text = new_version.field_dict[field_name]
old_text = old_version.field_dict[field_name] or "" new_text = new_version.field_dict[field_name] or ""
def generate_diffs(old_version, new_version, field_name): """Generates a diff array for the named field between the two versions.""" # Extract the text from the versions. old_text = old_version.field_dict[field_name] new_text = new_version.field_dict[field_name] # Generate the patch. diffs = dmp.diff_main(old_text, new_text) return diffs
792b1053624c6c77ae751adb5fe717087780c781 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11809/792b1053624c6c77ae751adb5fe717087780c781/helpers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 11593, 2556, 12, 1673, 67, 1589, 16, 394, 67, 1589, 16, 652, 67, 529, 4672, 3536, 6653, 279, 3122, 526, 364, 326, 4141, 652, 3086, 326, 2795, 5244, 12123, 468, 8152, 326, 977, 628, 326, 5244, 18, 1592, 67, 955, 273, 1592, 67, 1589, 18, 1518, 67, 1576, 63, 1518, 67, 529, 65, 578, 1408, 394, 67, 955, 273, 394, 67, 1589, 18, 1518, 67, 1576, 63, 1518, 67, 529, 65, 578, 1408, 468, 6654, 326, 4729, 18, 15250, 273, 302, 1291, 18, 5413, 67, 5254, 12, 1673, 67, 955, 16, 394, 67, 955, 13, 327, 15250, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 11593, 2556, 12, 1673, 67, 1589, 16, 394, 67, 1589, 16, 652, 67, 529, 4672, 3536, 6653, 279, 3122, 526, 364, 326, 4141, 652, 3086, 326, 2795, 5244, 12123, 468, 8152, 326, 977, 628, 326, 5244, 18, 1592, 67, 955, 273, 1592, 67, 1589, 18, 1518, 67, 1576, 63, 1518, 67, 529, 65, 578, 1408, 394, 67, 955, 273, 394, 67, 1589, 18, 1518, 67, 1576, 63, 1518, 67, 529, 65, 578, 1408, 468, 6654, 326, 4729, 18, 15250, 273, 302, 1291, 18, 5413, 67, 5254, 12, 1673, 67, 955, 16, 394, 67, 955, 13, 327, 15250, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"Could not match expected result row %s!" % rows2[0]
"Could not match expected result row %s!" % (rows2[0],)
def _compare(cols, rows1, rows2, idx2, i=0, blankMap={}): # Finished? if i >= len(rows1): if len(rows2) == 0: return True, "Ok" else: return False, \ "Could not match expected result row %s!" % rows2[0] # Get row to match row1 = rows1[i] # Search match failmsg = None for j, row2 in enumerate(rows2): # Match all variables curBlankMap = blankMap.copy() match = True blankNodes = False for var in cols: if uri.isBlank(row1[var]) and uri.isBlank(row2[var]): blankNodes = True if curBlankMap.get(row1[var]) == None: curBlankMap[row1[var]] = row2[var] continue elif curBlankMap[row1[var]] == row2[var]: continue else: match = False break elif _get(row1, var) != _get(row2, var): match = False break if not match: continue # Index mismatch? if j < len(idx2) and idx2[j] != i+1: failmsg = "Matching expected result row %s has wrong " \ "index (%d != %d)!" % (unicode(row1), idx2[j], i+1) continue # Recursively match rows2_ = rows2[:j] + rows2[j+1:] idx2_ = idx2[:j] + idx2[j+1:] result, failmsg = _compare(cols, rows1, rows2_, idx2_, i+1, curBlankMap) if result: return True, "Ok" # If there are no blank nodes, no other row can match if not blankNodes: return False, failmsg # Generate error message if failmsg == None: failmsg = "Could not match result row %s!" % unicode(row1) # No match => backtrack return False, failmsg
f5b80d5cddbe0e39ca23906e2800a457daade99e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5223/f5b80d5cddbe0e39ca23906e2800a457daade99e/result.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9877, 12, 6842, 16, 2595, 21, 16, 2595, 22, 16, 2067, 22, 16, 277, 33, 20, 16, 7052, 863, 12938, 4672, 225, 468, 29745, 35, 309, 277, 1545, 562, 12, 3870, 21, 4672, 309, 562, 12, 3870, 22, 13, 422, 374, 30, 327, 1053, 16, 315, 8809, 6, 469, 30, 327, 1083, 16, 521, 315, 4445, 486, 845, 2665, 563, 1027, 738, 87, 4442, 738, 261, 3870, 22, 63, 20, 6487, 13, 225, 468, 968, 1027, 358, 845, 1027, 21, 273, 2595, 21, 63, 77, 65, 225, 468, 5167, 845, 2321, 3576, 273, 599, 364, 525, 16, 1027, 22, 316, 4241, 12, 3870, 22, 4672, 225, 468, 4639, 777, 3152, 662, 7796, 863, 273, 7052, 863, 18, 3530, 1435, 845, 273, 1053, 7052, 3205, 273, 1083, 364, 569, 316, 5347, 30, 309, 2003, 18, 291, 7796, 12, 492, 21, 63, 1401, 5717, 471, 2003, 18, 291, 7796, 12, 492, 22, 63, 1401, 65, 4672, 7052, 3205, 273, 1053, 309, 662, 7796, 863, 18, 588, 12, 492, 21, 63, 1401, 5717, 422, 599, 30, 662, 7796, 863, 63, 492, 21, 63, 1401, 13563, 273, 1027, 22, 63, 1401, 65, 1324, 1327, 662, 7796, 863, 63, 492, 21, 63, 1401, 13563, 422, 1027, 22, 63, 1401, 14542, 1324, 469, 30, 845, 273, 1083, 898, 1327, 389, 588, 12, 492, 21, 16, 569, 13, 480, 389, 588, 12, 492, 22, 16, 569, 4672, 845, 273, 1083, 898, 225, 309, 486, 845, 30, 1324, 225, 468, 3340, 13484, 35, 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, 9877, 12, 6842, 16, 2595, 21, 16, 2595, 22, 16, 2067, 22, 16, 277, 33, 20, 16, 7052, 863, 12938, 4672, 225, 468, 29745, 35, 309, 277, 1545, 562, 12, 3870, 21, 4672, 309, 562, 12, 3870, 22, 13, 422, 374, 30, 327, 1053, 16, 315, 8809, 6, 469, 30, 327, 1083, 16, 521, 315, 4445, 486, 845, 2665, 563, 1027, 738, 87, 4442, 738, 261, 3870, 22, 63, 20, 6487, 13, 225, 468, 968, 1027, 358, 845, 1027, 21, 273, 2595, 21, 63, 77, 65, 225, 468, 5167, 845, 2321, 3576, 273, 599, 364, 525, 16, 1027, 22, 316, 4241, 12, 3870, 22, 4672, 225, 468, 4639, 777, 3152, 662, 7796, 863, 273, 7052, 863, 18, 2 ]
raise VersionWriteError(
raise VersionControlError(
def commit(*args, **kw): raise VersionWriteError( 'Old versions of objects cannot be modified.' )
aee081d4b24b0f41a7b04f4d6338f91a97a287df /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9588/aee081d4b24b0f41a7b04f4d6338f91a97a287df/Utility.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3294, 30857, 1968, 16, 2826, 9987, 4672, 1002, 4049, 3367, 668, 12, 296, 7617, 5244, 434, 2184, 2780, 506, 4358, 1093, 262, 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,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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, 3294, 30857, 1968, 16, 2826, 9987, 4672, 1002, 4049, 3367, 668, 12, 296, 7617, 5244, 434, 2184, 2780, 506, 4358, 1093, 262, 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 ]
reg = re.escape(part[:-1]) + '(' + re.escape(part[-1]) + rest + ')?'
reg = re.escape(part[:-1]) + '(' + re.escape(part[-1]) + rest reg += ')?'
def buildnextreg(self, path, clist): """Recursively build our regexp given a path, and a controller list. Returns the regular expression string, and two booleans that can be ignored as they're only used internally by buildnextreg """ if path: part = path[0] else: part = '' reg = '' # noreqs will remember whether the remainder has either a string match, or a non-defaulted # regexp match on a key, allblank remembers if the rest could possible be completely empty (rest, noreqs, allblank) = ('', True, True) if len(path[1:]) > 0: self.prior = part (rest, noreqs, allblank) = self.buildnextreg(path[1:], clist) if isinstance(part, dict) and part['type'] == ':': var = part['name'] partreg = '' # First we plug in the proper part matcher if self.reqs.has_key(var): partreg = '(?P<' + var + '>' + self.reqs[var] + ')' elif var == 'controller': partreg = '(?P<' + var + '>' + '|'.join(map(re.escape, clist)) + ')' elif self.prior == '/': partreg = '(?P<' + var + '>[^/]+?)' else: partreg = '(?P<' + var + '>[^%s]+?)' % ''.join(self.done_chars) if self.reqs.has_key(var): noreqs = False if not self.defaults.has_key(var): allblank = False noreqs = False # Now we determine if its optional, or required. This changes depending on what is in # the rest of the match. If noreqs is true, then its possible the entire thing is optional # as there's no reqs or string matches. if noreqs: # The rest is optional, but now we have an optional with a regexp. Wrap to ensure that if we match # anything, we match our regexp first. It's still possible we could be completely blank as we have # a default if self.reqs.has_key(var) and self.defaults.has_key(var): reg = '(' + partreg + rest + ')?' # Or we have a regexp match with no default, so now being completely blank form here on out isn't # possible elif self.reqs.has_key(var): allblank = False reg = partreg + rest # If the character before this is a special char, it has to be followed by this elif self.defaults.has_key(var) and self.prior in (',', ';', '.'): reg = partreg + rest # Or we have a default with no regexp, don't touch the allblank elif self.defaults.has_key(var): reg = partreg + '?' + rest # Or we have a key with no default, and no reqs. Not possible to be all blank from here else: allblank = False reg = partreg + rest # In this case, we have something dangling that might need to be matched else: # If they can all be blank, and we have a default here, we know its # safe to make everything from here optional. Since something else in # the chain does have req's though, we have to make the partreg here # required to continue matching if allblank and self.defaults.has_key(var): reg = '(' + partreg + rest + ')?' # Same as before, but they can't all be blank, so we have to require it all to ensure # our matches line up right else: reg = partreg + rest elif isinstance(part, dict) and part['type'] == '*': var = part['name'] if noreqs: if self.defaults.has_key(var): reg = '(?P<' + var + '>.*)' + rest else: reg = '(?P<' + var + '>.*)' + rest allblank = False noreqs = False else: if allblank and self.defaults.has_key(var): reg = '(?P<' + var + '>.*)' + rest elif self.defaults.has_key(var): reg = '(?P<' + var + '>.*)' + rest else: allblank = False noreqs = False reg = '(?P<' + var + '>.*)' + rest elif part and part[-1] in self.done_chars: if allblank: reg = re.escape(part[:-1]) + '(' + re.escape(part[-1]) + rest + ')?' else: allblank = False reg = re.escape(part) + rest # We have a normal string here, this is a req, and it prevents us from being all blank else: noreqs = False allblank = False reg = re.escape(part) + rest return (reg, noreqs, allblank)
52ae2d9eaabbf5ff009086347bb090d7048fa505 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12081/52ae2d9eaabbf5ff009086347bb090d7048fa505/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4285, 1574, 12, 2890, 16, 589, 16, 927, 376, 4672, 3536, 12474, 1361, 3134, 7195, 864, 279, 589, 16, 471, 279, 2596, 666, 18, 225, 2860, 326, 6736, 2652, 533, 16, 471, 2795, 31050, 716, 848, 506, 5455, 487, 2898, 4565, 1338, 1399, 12963, 635, 1361, 4285, 1574, 225, 3536, 309, 589, 30, 1087, 273, 589, 63, 20, 65, 469, 30, 1087, 273, 875, 960, 273, 875, 225, 468, 290, 479, 12926, 903, 11586, 2856, 326, 10022, 711, 3344, 279, 533, 845, 16, 578, 279, 1661, 17, 1886, 329, 468, 7195, 845, 603, 279, 498, 16, 777, 12111, 849, 351, 2210, 309, 326, 3127, 3377, 3323, 506, 14416, 1008, 261, 8792, 16, 290, 479, 12926, 16, 777, 12111, 13, 273, 7707, 2187, 1053, 16, 1053, 13, 309, 562, 12, 803, 63, 21, 30, 5717, 405, 374, 30, 365, 18, 17927, 273, 1087, 261, 8792, 16, 290, 479, 12926, 16, 777, 12111, 13, 273, 365, 18, 3510, 4285, 1574, 12, 803, 63, 21, 30, 6487, 927, 376, 13, 225, 309, 1549, 12, 2680, 16, 2065, 13, 471, 1087, 3292, 723, 3546, 422, 3921, 30, 569, 273, 1087, 3292, 529, 3546, 1087, 1574, 273, 875, 225, 468, 5783, 732, 15852, 316, 326, 5338, 1087, 4546, 309, 365, 18, 25782, 18, 5332, 67, 856, 12, 1401, 4672, 1087, 1574, 273, 28006, 52, 32, 11, 397, 569, 397, 7481, 397, 365, 18, 25782, 63, 1401, 65, 397, 5777, 1327, 569, 422, 296, 5723, 4278, 1087, 1574, 273, 28006, 52, 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, 1361, 4285, 1574, 12, 2890, 16, 589, 16, 927, 376, 4672, 3536, 12474, 1361, 3134, 7195, 864, 279, 589, 16, 471, 279, 2596, 666, 18, 225, 2860, 326, 6736, 2652, 533, 16, 471, 2795, 31050, 716, 848, 506, 5455, 487, 2898, 4565, 1338, 1399, 12963, 635, 1361, 4285, 1574, 225, 3536, 309, 589, 30, 1087, 273, 589, 63, 20, 65, 469, 30, 1087, 273, 875, 960, 273, 875, 225, 468, 290, 479, 12926, 903, 11586, 2856, 326, 10022, 711, 3344, 279, 533, 845, 16, 578, 279, 1661, 17, 1886, 329, 468, 7195, 845, 603, 279, 498, 16, 777, 12111, 849, 351, 2210, 309, 326, 3127, 3377, 3323, 506, 14416, 1008, 261, 8792, 16, 290, 479, 12926, 16, 777, 2 ]
If both ``anchor`` and ``query`` are specified, the anchor element will always follow the query element,
If both ``_anchor`` and ``_query`` are specified, the anchor element will always follow the query element,
def route_url(route_name, request, *elements, **kw): """Generates a fully qualified URL for a named BFG route. Use the route's ``name`` as the first positional argument. Use a request object as the second positional argument. Additional positional arguments are appended to the URL as path segments after it is generated. Use keyword arguments to supply values which match any dynamic path elements in the route definition. Raises a KeyError exception if the URL cannot be generated for any reason (not enough arguments, for example). For example, if you've defined a route named "foobar" with the path ``:foo/:bar/*traverse``:: route_url('foobar', request, foo='1') => <KeyError exception> route_url('foobar', request, foo='1', bar='2') => <KeyError exception> route_url('foobar', request, foo='1', bar='2', 'traverse=('a','b')) => http://e.com/1/2/a/b route_url('foobar', request, foo='1', bar='2', 'traverse=('/a/b')) => http://e.com/1/2/a/b Values replacing ``:segment`` arguments can be passed as strings or Unicode objects. They will be encoded to UTF-8 and URL-quoted before being placed into the generated URL. Values replacing ``*remainder`` arguments can be passed as strings *or* tuples of Unicode/string values. If a tuple is passed as a ``*remainder`` replacement value, its values are URL-quoted and encoded to UTF-8. The resulting strings are joined with slashes and rendered into the URL. If a string is passed as a ``*remainder`` replacement value, it is tacked on to the URL untouched. If a keyword argument ``_query`` is present, it will used to compose a query string that will be tacked on to the end of the URL. The value of ``query`` must be a sequence of two-tuples *or* a data structure with an ``.items()`` method that returns a sequence of two-tuples (presumably a dictionary). This data structure will be turned into a query string per the documentation of ``repoze.url.urlencode`` function. After the query data is turned into a query string, a leading ``?`` is prepended, and the the resulting string is appended to the generated URL. .. note:: Python data structures that are passed as ``_query`` which are sequences or dictionaries are turned into a string under the same rules as when run through urllib.urlencode with the ``doseq`` argument equal to ``True``. This means that sequences can be passed as values, and a k=v pair will be placed into the query string for each value. If a keyword argument ``_anchor`` is present, its string representation will be used as a named anchor in the generated URL (e.g. if ``anchor`` is passed as ``foo`` and the model URL is ``http://example.com/model/url``, the resulting generated URL will be ``http://example.com/model/url#foo``). .. note:: If ``_anchor`` is passed as a string, it should be UTF-8 encoded. If ``anchor`` is passed as a Unicode object, it will be converted to UTF-8 before being appended to the URL. The anchor value is not quoted in any way before being appended to the generated URL. If both ``anchor`` and ``query`` are specified, the anchor element will always follow the query element, e.g. ``http://example.com?foo=1#bar``. This function raises a ``KeyError`` if the URL cannot be generated due to missing replacement names. Extra replacement names are ignored. """ mapper = getUtility(IRoutesMapper) path = mapper.generate(route_name, kw) # raises KeyError if generate fails anchor = '' qs = '' if '_query' in kw: qs = '?' + urlencode(kw['_query'], doseq=True) if '_anchor' in kw: anchor = kw['_anchor'] if isinstance(anchor, unicode): anchor = anchor.encode('utf-8') anchor = '#' + anchor if elements: suffix = _join_elements(elements) if not path.endswith('/'): suffix = '/' + suffix else: suffix = '' return request.application_url + path + suffix + qs + anchor
7a65f92404692a28929716a5e56a21d61670e868 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14321/7a65f92404692a28929716a5e56a21d61670e868/url.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1946, 67, 718, 12, 5547, 67, 529, 16, 590, 16, 380, 6274, 16, 2826, 9987, 4672, 3536, 6653, 279, 7418, 9348, 1976, 364, 279, 4141, 605, 42, 43, 1946, 18, 225, 2672, 326, 1946, 1807, 12176, 529, 10335, 487, 326, 1122, 16780, 1237, 18, 225, 2672, 279, 590, 733, 487, 326, 2205, 16780, 1237, 18, 225, 15119, 16780, 1775, 854, 12317, 358, 326, 1976, 487, 589, 5155, 1839, 518, 353, 4374, 18, 225, 2672, 4932, 1775, 358, 14467, 924, 1492, 845, 1281, 5976, 589, 2186, 316, 326, 1946, 2379, 18, 225, 20497, 279, 4999, 1520, 309, 326, 1976, 2780, 506, 4374, 364, 1281, 3971, 261, 902, 7304, 1775, 16, 364, 3454, 2934, 225, 2457, 3454, 16, 309, 1846, 8081, 2553, 279, 1946, 4141, 315, 617, 947, 297, 6, 598, 326, 589, 12176, 30, 11351, 16880, 3215, 20308, 2033, 2476, 10335, 2866, 225, 1946, 67, 718, 2668, 617, 947, 297, 2187, 590, 16, 8431, 2218, 21, 6134, 1850, 516, 411, 653, 668, 1520, 34, 1946, 67, 718, 2668, 617, 947, 297, 2187, 590, 16, 8431, 2218, 21, 2187, 4653, 2218, 22, 6134, 516, 411, 653, 668, 1520, 34, 1946, 67, 718, 2668, 617, 947, 297, 2187, 590, 16, 8431, 2218, 21, 2187, 4653, 2218, 22, 2187, 296, 2033, 2476, 33, 2668, 69, 17023, 70, 26112, 7734, 516, 225, 1062, 2207, 73, 18, 832, 19, 21, 19, 22, 19, 69, 19, 70, 1946, 67, 718, 2668, 617, 947, 297, 2187, 590, 16, 8431, 2218, 21, 2187, 4653, 2218, 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, 1946, 67, 718, 12, 5547, 67, 529, 16, 590, 16, 380, 6274, 16, 2826, 9987, 4672, 3536, 6653, 279, 7418, 9348, 1976, 364, 279, 4141, 605, 42, 43, 1946, 18, 225, 2672, 326, 1946, 1807, 12176, 529, 10335, 487, 326, 1122, 16780, 1237, 18, 225, 2672, 279, 590, 733, 487, 326, 2205, 16780, 1237, 18, 225, 15119, 16780, 1775, 854, 12317, 358, 326, 1976, 487, 589, 5155, 1839, 518, 353, 4374, 18, 225, 2672, 4932, 1775, 358, 14467, 924, 1492, 845, 1281, 5976, 589, 2186, 316, 326, 1946, 2379, 18, 225, 20497, 279, 4999, 1520, 309, 326, 1976, 2780, 506, 4374, 364, 1281, 3971, 261, 902, 7304, 1775, 16, 364, 3454, 2934, 225, 2457, 3454, 16, 309, 1846, 2 ]
def __call__(self, x):
def __call__(self, *args, **kwargs): """ Call self as a function. Since self is a constant function, this just returns self. EXAMPLES: sage: pi(2,3,4) pi sage: pi(pi) pi """
def __call__(self, x): return self
2a839b3d50866729418f3c87713bc3adb8f65bac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2a839b3d50866729418f3c87713bc3adb8f65bac/constants.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 3049, 365, 487, 279, 445, 18, 225, 7897, 365, 353, 279, 5381, 445, 16, 333, 2537, 1135, 365, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 4790, 12, 22, 16, 23, 16, 24, 13, 4790, 272, 410, 30, 4790, 12, 7259, 13, 4790, 3536, 327, 365, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 3049, 365, 487, 279, 445, 18, 225, 7897, 365, 353, 279, 5381, 445, 16, 333, 2537, 1135, 365, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 4790, 12, 22, 16, 23, 16, 24, 13, 4790, 272, 410, 30, 4790, 12, 7259, 13, 4790, 3536, 327, 365, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.sleeping = True
def auth_failed(msg="Authentication failed."): if not self._closed: self.attempted_logins += 1 if self.attempted_logins >= self.max_login_attempts: msg = "530 " + msg + " Disconnecting." self.respond(msg) self.log(msg) self.close_when_done() else: self.respond("530 " + msg) self.log(msg) self.sleeping = False
788a0071ab45a8367ccf5fe97d060b43da1dd666 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/788a0071ab45a8367ccf5fe97d060b43da1dd666/ftpserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1357, 67, 7307, 12, 3576, 1546, 6492, 2535, 1199, 4672, 309, 486, 365, 6315, 12204, 30, 365, 18, 11764, 329, 67, 1330, 2679, 1011, 404, 309, 365, 18, 11764, 329, 67, 1330, 2679, 1545, 365, 18, 1896, 67, 5819, 67, 14359, 30, 1234, 273, 315, 25, 5082, 315, 397, 1234, 397, 315, 23957, 310, 1199, 365, 18, 17863, 12, 3576, 13, 365, 18, 1330, 12, 3576, 13, 365, 18, 4412, 67, 13723, 67, 8734, 1435, 469, 30, 365, 18, 17863, 2932, 25, 5082, 315, 397, 1234, 13, 365, 18, 1330, 12, 3576, 13, 365, 18, 19607, 310, 273, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1357, 67, 7307, 12, 3576, 1546, 6492, 2535, 1199, 4672, 309, 486, 365, 6315, 12204, 30, 365, 18, 11764, 329, 67, 1330, 2679, 1011, 404, 309, 365, 18, 11764, 329, 67, 1330, 2679, 1545, 365, 18, 1896, 67, 5819, 67, 14359, 30, 1234, 273, 315, 25, 5082, 315, 397, 1234, 397, 315, 23957, 310, 1199, 365, 18, 17863, 12, 3576, 13, 365, 18, 1330, 12, 3576, 13, 365, 18, 4412, 67, 13723, 67, 8734, 1435, 469, 30, 365, 18, 17863, 2932, 25, 5082, 315, 397, 1234, 13, 365, 18, 1330, 12, 3576, 13, 365, 18, 19607, 310, 273, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
preOps = [
postOps = [
def drawFrame(r, dim=None, **kwargs): '''Draw a frame around subplot dim. Parameter r is defined in the rpy module and is used for calling R functions. Parameter dim is the dimension index. Other parameters are ignored. ''' r.axis(1) r.axis(2) r.grid() r.mtext({0:'A', 1:'B', 2:'C', 3:'D'}[dim], adj=1)
505ded08bbab01d6828bb201d31e079f6d9e3b55 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/505ded08bbab01d6828bb201d31e079f6d9e3b55/userGuide.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 3219, 12, 86, 16, 2464, 33, 7036, 16, 2826, 4333, 4672, 9163, 6493, 279, 2623, 6740, 19826, 2464, 18, 5498, 436, 353, 2553, 316, 326, 436, 2074, 1605, 471, 353, 1399, 364, 4440, 534, 4186, 18, 5498, 2464, 353, 326, 4968, 770, 18, 4673, 1472, 854, 5455, 18, 9163, 436, 18, 4890, 12, 21, 13, 436, 18, 4890, 12, 22, 13, 436, 18, 5222, 1435, 436, 18, 81, 955, 12590, 20, 2497, 37, 2187, 404, 2497, 38, 2187, 576, 2497, 39, 2187, 890, 2497, 40, 11, 20294, 3509, 6487, 8307, 33, 21, 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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672, 9163, 6493, 279, 2623, 6740, 19826, 2464, 18, 5498, 436, 353, 2553, 316, 326, 436, 2074, 1605, 471, 353, 1399, 364, 4440, 534, 4186, 18, 5498, 2464, 353, 326, 4968, 770, 18, 4673, 1472, 854, 5455, 18, 9163, 436, 18, 4890, 12, 21, 13, 436, 18, 4890, 12, 22, 13, 436, 18, 5222, 1435, 436, 18, 81, 955, 12590, 20, 2497, 37, 2187, 404, 2497, 38, 2187, 576, 2497, 39, 2187, 890, 2497, 40, 11, 20294, 3509, 6487, 8307, 33, 21, 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 ]
self.debug_flags.append(DBG_CLIENT)
self.debug_flags.append(self.DBG)
def __init__(self,server,debug=['always', 'nodebuilder']): self.disconnect_handlers=[] self.Namespace='jabber:client' self.Server=server self._DEBUG=Debug.Debug(debug) self.DEBUG=self._DEBUG.Show self.debug_flags=Debug.debug_flags self.debug_flags.append(DBG_CLIENT) self._owner=self self._registered_name=None
4a0dc64c62f94f1d1cd8b5cb92c2b58deabd4bfb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7194/4a0dc64c62f94f1d1cd8b5cb92c2b58deabd4bfb/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3567, 16, 4148, 33, 3292, 17737, 2187, 296, 2159, 9574, 3546, 4672, 365, 18, 20177, 67, 11046, 33, 8526, 365, 18, 3402, 2218, 78, 378, 744, 30, 2625, 11, 365, 18, 2081, 33, 3567, 365, 6315, 9394, 33, 2829, 18, 2829, 12, 4148, 13, 365, 18, 9394, 33, 2890, 6315, 9394, 18, 5706, 365, 18, 4148, 67, 7133, 33, 2829, 18, 4148, 67, 7133, 365, 18, 4148, 67, 7133, 18, 6923, 12, 2890, 18, 2290, 43, 13, 365, 6315, 8443, 33, 2890, 365, 6315, 14327, 67, 529, 33, 7036, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3567, 16, 4148, 33, 3292, 17737, 2187, 296, 2159, 9574, 3546, 4672, 365, 18, 20177, 67, 11046, 33, 8526, 365, 18, 3402, 2218, 78, 378, 744, 30, 2625, 11, 365, 18, 2081, 33, 3567, 365, 6315, 9394, 33, 2829, 18, 2829, 12, 4148, 13, 365, 18, 9394, 33, 2890, 6315, 9394, 18, 5706, 365, 18, 4148, 67, 7133, 33, 2829, 18, 4148, 67, 7133, 365, 18, 4148, 67, 7133, 18, 6923, 12, 2890, 18, 2290, 43, 13, 365, 6315, 8443, 33, 2890, 365, 6315, 14327, 67, 529, 33, 7036, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
prefix = '%s/' % self.id
prefix = '%s/' % self.id[1:]
def load_from_s3(self, bucket, prefix=None): """ Load messages previously saved to S3. """ n = 0 if prefix: prefix = '%s/' % prefix else: prefix = '%s/' % self.id rs = bucket.list(prefix=prefix) for key in rs: n += 1 m = self.new_message(key.get_contents_as_string()) self.write(m) return n
e328a6c80e428fb73e5f4eb2a2cda442445e70a1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/e328a6c80e428fb73e5f4eb2a2cda442445e70a1/queue.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 2080, 67, 87, 23, 12, 2890, 16, 2783, 16, 1633, 33, 7036, 4672, 3536, 4444, 2743, 7243, 5198, 358, 348, 23, 18, 3536, 290, 273, 374, 309, 1633, 30, 1633, 273, 1995, 87, 2473, 738, 1633, 469, 30, 1633, 273, 1995, 87, 2473, 738, 365, 18, 350, 63, 21, 26894, 3597, 273, 2783, 18, 1098, 12, 3239, 33, 3239, 13, 364, 498, 316, 3597, 30, 290, 1011, 404, 312, 273, 365, 18, 2704, 67, 2150, 12, 856, 18, 588, 67, 3980, 67, 345, 67, 1080, 10756, 365, 18, 2626, 12, 81, 13, 327, 290, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 2080, 67, 87, 23, 12, 2890, 16, 2783, 16, 1633, 33, 7036, 4672, 3536, 4444, 2743, 7243, 5198, 358, 348, 23, 18, 3536, 290, 273, 374, 309, 1633, 30, 1633, 273, 1995, 87, 2473, 738, 1633, 469, 30, 1633, 273, 1995, 87, 2473, 738, 365, 18, 350, 63, 21, 26894, 3597, 273, 2783, 18, 1098, 12, 3239, 33, 3239, 13, 364, 498, 316, 3597, 30, 290, 1011, 404, 312, 273, 365, 18, 2704, 67, 2150, 12, 856, 18, 588, 67, 3980, 67, 345, 67, 1080, 10756, 365, 18, 2626, 12, 81, 13, 327, 290, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
raise ValueError("At most 625 can be requested (%d requested)." %
raise ValueError("At most 625 bytes can be requested (%d requested)." %
def __call__(self, num_bytes): if num_bytes > 625: raise ValueError("At most 625 can be requested (%d requested)." % (num_bytes))
560e613d1c6a4f937e7e2feb273a6eeb729519f3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6416/560e613d1c6a4f937e7e2feb273a6eeb729519f3/hash_drbg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 818, 67, 3890, 4672, 309, 818, 67, 3890, 405, 1666, 2947, 30, 1002, 2068, 2932, 861, 4486, 1666, 2947, 1731, 848, 506, 3764, 6142, 72, 3764, 14944, 738, 261, 2107, 67, 3890, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 818, 67, 3890, 4672, 309, 818, 67, 3890, 405, 1666, 2947, 30, 1002, 2068, 2932, 861, 4486, 1666, 2947, 1731, 848, 506, 3764, 6142, 72, 3764, 14944, 738, 261, 2107, 67, 3890, 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, -100, -100, -100, -100, -100 ]
elif wnck.WINDOW_STATE_MINIMIZED & changed_mask:
elif state_minimized & changed_mask:
def window_state_changed(self, window,changed_mask, new_state): if wnck.WINDOW_STATE_MINIMIZED & changed_mask & new_state: if self.locked: self.window_button_icon.set_from_pixbuf(self.icon_locked) else: self.window_button_icon.set_from_pixbuf(self.icon_transp) self.groupbutton.minimized_windows_count+=1 self.groupbutton.update_state() self.update_label_state() elif wnck.WINDOW_STATE_MINIMIZED & changed_mask: self.window_button_icon.set_from_pixbuf(self.icon) self.groupbutton.minimized_windows_count-=1 if self.locked: self.locked = False self.groupbutton.locked_windows_count -= 1 self.groupbutton.update_state() self.update_label_state()
990c46c563644e67c24067e5fbfb2d9dadc8e0cc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7075/990c46c563644e67c24067e5fbfb2d9dadc8e0cc/dockbarx.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2742, 67, 2019, 67, 6703, 12, 2890, 16, 2742, 16, 6703, 67, 4455, 16, 394, 67, 2019, 4672, 309, 341, 82, 363, 18, 23407, 67, 7998, 67, 6236, 3445, 24131, 473, 3550, 67, 4455, 473, 394, 67, 2019, 30, 309, 365, 18, 15091, 30, 365, 18, 5668, 67, 5391, 67, 3950, 18, 542, 67, 2080, 67, 14861, 4385, 12, 2890, 18, 3950, 67, 15091, 13, 469, 30, 365, 18, 5668, 67, 5391, 67, 3950, 18, 542, 67, 2080, 67, 14861, 4385, 12, 2890, 18, 3950, 67, 2338, 84, 13, 365, 18, 1655, 5391, 18, 1154, 381, 1235, 67, 13226, 67, 1883, 15, 33, 21, 365, 18, 1655, 5391, 18, 2725, 67, 2019, 1435, 365, 18, 2725, 67, 1925, 67, 2019, 1435, 1327, 919, 67, 1154, 381, 1235, 473, 3550, 67, 4455, 30, 365, 18, 5668, 67, 5391, 67, 3950, 18, 542, 67, 2080, 67, 14861, 4385, 12, 2890, 18, 3950, 13, 365, 18, 1655, 5391, 18, 1154, 381, 1235, 67, 13226, 67, 1883, 17, 33, 21, 309, 365, 18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0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2742, 67, 2019, 67, 6703, 12, 2890, 16, 2742, 16, 6703, 67, 4455, 16, 394, 67, 2019, 4672, 309, 341, 82, 363, 18, 23407, 67, 7998, 67, 6236, 3445, 24131, 473, 3550, 67, 4455, 473, 394, 67, 2019, 30, 309, 365, 18, 15091, 30, 365, 18, 5668, 67, 5391, 67, 3950, 18, 542, 67, 2080, 67, 14861, 4385, 12, 2890, 18, 3950, 67, 15091, 13, 469, 30, 365, 18, 5668, 67, 5391, 67, 3950, 18, 542, 67, 2080, 67, 14861, 4385, 12, 2890, 18, 3950, 67, 2338, 84, 13, 365, 18, 1655, 5391, 18, 1154, 381, 1235, 67, 13226, 67, 1883, 15, 33, 21, 365, 18, 1655, 5391, 18, 2725, 67, 2019, 1435, 365, 18, 2725, 67, 1925, 2 ]
SpecializedSetup<%(name)s, 0>();
SpecializedSetup<%(name)s, 0>(false);
def WriteServiceUnitTest(self, func, file): """Overrriden from TypeHandler.""" valid_test = """
c09b66fa6c9b1cbe85cad7ac28eacb107f5b988d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/c09b66fa6c9b1cbe85cad7ac28eacb107f5b988d/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 1179, 2802, 4709, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 923, 67, 3813, 273, 3536, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 1179, 2802, 4709, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 923, 67, 3813, 273, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
lambda x, master=master, changedFlag=changedFlag, callback=callback: x and getdeepattr(master, changedFlag, True) and callback())
lambda x, master=master, changedFlag=changedFlag, callback=callback: x and getdeepattr(master, changedFlag, default=True) and callback())
def setStopper(master, sendButton, stopCheckbox, changedFlag, callback): stopCheckbox.disables.append((-1, sendButton)) sendButton.setDisabled(stopCheckbox.isChecked()) master.connect(stopCheckbox, SIGNAL("toggled(bool)"), lambda x, master=master, changedFlag=changedFlag, callback=callback: x and getdeepattr(master, changedFlag, True) and callback())
67eb2e47aefc2a45734cf11d9fde925d9fe0bcac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/67eb2e47aefc2a45734cf11d9fde925d9fe0bcac/OWGUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 4947, 457, 12, 7525, 16, 1366, 3616, 16, 2132, 21272, 16, 3550, 4678, 16, 1348, 4672, 2132, 21272, 18, 2251, 1538, 18, 6923, 12443, 17, 21, 16, 1366, 3616, 3719, 1366, 3616, 18, 542, 8853, 12, 5681, 21272, 18, 291, 11454, 10756, 4171, 18, 3612, 12, 5681, 21272, 16, 12057, 1013, 2932, 88, 23972, 1259, 12, 6430, 2225, 3631, 3195, 619, 16, 4171, 33, 7525, 16, 3550, 4678, 33, 6703, 4678, 16, 1348, 33, 3394, 30, 619, 471, 336, 16589, 1747, 12, 7525, 16, 3550, 4678, 16, 805, 33, 5510, 13, 471, 1348, 10756, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 4947, 457, 12, 7525, 16, 1366, 3616, 16, 2132, 21272, 16, 3550, 4678, 16, 1348, 4672, 2132, 21272, 18, 2251, 1538, 18, 6923, 12443, 17, 21, 16, 1366, 3616, 3719, 1366, 3616, 18, 542, 8853, 12, 5681, 21272, 18, 291, 11454, 10756, 4171, 18, 3612, 12, 5681, 21272, 16, 12057, 1013, 2932, 88, 23972, 1259, 12, 6430, 2225, 3631, 3195, 619, 16, 4171, 33, 7525, 16, 3550, 4678, 33, 6703, 4678, 16, 1348, 33, 3394, 30, 619, 471, 336, 16589, 1747, 12, 7525, 16, 3550, 4678, 16, 805, 33, 5510, 13, 471, 1348, 10756, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
__builtins__._base_super = _base_super
def __getattribute__(self, name): if name.startswith('_around_super__'): return object.__getattribute__(self, name) sup = self.__sup renames = self.__renames if name in renames: name = renames[name] return getattr(sup, name)
b8cea842407cd03626a4d527439c172e14899848 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9024/b8cea842407cd03626a4d527439c172e14899848/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 4589, 972, 12, 2890, 16, 508, 4672, 309, 508, 18, 17514, 1918, 2668, 67, 12716, 67, 9565, 7250, 4672, 327, 733, 16186, 588, 4589, 972, 12, 2890, 16, 508, 13, 1169, 377, 273, 365, 16186, 2859, 1654, 753, 273, 365, 16186, 1187, 753, 309, 508, 316, 1654, 753, 30, 508, 273, 1654, 753, 63, 529, 65, 327, 3869, 12, 2859, 16, 508, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 4589, 972, 12, 2890, 16, 508, 4672, 309, 508, 18, 17514, 1918, 2668, 67, 12716, 67, 9565, 7250, 4672, 327, 733, 16186, 588, 4589, 972, 12, 2890, 16, 508, 13, 1169, 377, 273, 365, 16186, 2859, 1654, 753, 273, 365, 16186, 1187, 753, 309, 508, 316, 1654, 753, 30, 508, 273, 1654, 753, 63, 529, 65, 327, 3869, 12, 2859, 16, 508, 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 ]
for pd in pdll: union_map = { } for pdm in pd: union_map = self._MapUnion(union_map, pdm) self.append(union_map)
[ self.extend(_pd) for _pd in pdll ]
def __fromModelGroup (self, model_group): # Start by collecting the data for each of the particles. pdll = [ _PluralityData(_p) for _p in model_group.particles() ] if (ModelGroup.C_CHOICE == model_group.compositor()): # Plurality for choice is simply any of the pluralities of the particles. for pd in pdll: union_map = { } for pdm in pd: union_map = self._MapUnion(union_map, pdm) self.append(union_map) elif ((ModelGroup.C_SEQUENCE == model_group.compositor()) or (ModelGroup.C_ALL == model_group.compositor())): # Sequence means all of them, in all their glory. All is treated # the same way. Essentially this is a pointwise OR of the # pluralities of the particles. if 0 < len(pdll): new_pd = pdll.pop() for pd in pdll: assert 0 < len(pd) assert 0 < len(new_pd) stage_pd = [ ] for pdm1 in new_pd: for pdm2 in pd: stage_pd.append(self._MapUnion(pdm1, pdm2)) new_pd = stage_pd self.extend(new_pd) else: raise pyxb.LogicError('Unrecognized compositor value %s' % (model_group.compositor(),))
9753ac9b33520d9a13f831252522d4c2749e8041 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/9753ac9b33520d9a13f831252522d4c2749e8041/structures.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2080, 1488, 1114, 261, 2890, 16, 938, 67, 1655, 4672, 468, 3603, 635, 30160, 326, 501, 364, 1517, 434, 326, 28312, 18, 4863, 2906, 273, 306, 389, 12968, 560, 751, 24899, 84, 13, 364, 389, 84, 316, 938, 67, 1655, 18, 2680, 8383, 1435, 308, 309, 261, 1488, 1114, 18, 39, 67, 22213, 11774, 422, 938, 67, 1655, 18, 832, 1724, 280, 1435, 4672, 468, 12309, 560, 364, 6023, 353, 8616, 1281, 434, 326, 7978, 1961, 434, 326, 28312, 18, 306, 365, 18, 14313, 24899, 22353, 13, 364, 389, 22353, 316, 4863, 2906, 308, 1327, 14015, 1488, 1114, 18, 39, 67, 25330, 422, 938, 67, 1655, 18, 832, 1724, 280, 10756, 578, 261, 1488, 1114, 18, 39, 67, 4685, 422, 938, 67, 1655, 18, 832, 1724, 280, 1435, 3719, 30, 468, 8370, 4696, 777, 434, 2182, 16, 316, 777, 3675, 5118, 630, 18, 225, 4826, 353, 13974, 468, 326, 1967, 4031, 18, 225, 512, 1049, 11220, 333, 353, 279, 1634, 2460, 4869, 434, 326, 468, 7978, 1961, 434, 326, 28312, 18, 309, 374, 411, 562, 12, 22353, 2906, 4672, 394, 67, 22353, 273, 4863, 2906, 18, 5120, 1435, 364, 4863, 316, 4863, 2906, 30, 1815, 374, 411, 562, 12, 22353, 13, 1815, 374, 411, 562, 12, 2704, 67, 22353, 13, 6009, 67, 22353, 273, 306, 308, 364, 4863, 81, 21, 316, 394, 67, 22353, 30, 364, 4863, 81, 22, 316, 4863, 30, 6009, 67, 22353, 18, 6923, 12, 2890, 6315, 863, 14325, 12, 84, 10956, 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, 2080, 1488, 1114, 261, 2890, 16, 938, 67, 1655, 4672, 468, 3603, 635, 30160, 326, 501, 364, 1517, 434, 326, 28312, 18, 4863, 2906, 273, 306, 389, 12968, 560, 751, 24899, 84, 13, 364, 389, 84, 316, 938, 67, 1655, 18, 2680, 8383, 1435, 308, 309, 261, 1488, 1114, 18, 39, 67, 22213, 11774, 422, 938, 67, 1655, 18, 832, 1724, 280, 1435, 4672, 468, 12309, 560, 364, 6023, 353, 8616, 1281, 434, 326, 7978, 1961, 434, 326, 28312, 18, 306, 365, 18, 14313, 24899, 22353, 13, 364, 389, 22353, 316, 4863, 2906, 308, 1327, 14015, 1488, 1114, 18, 39, 67, 25330, 422, 938, 67, 1655, 18, 832, 1724, 280, 10756, 578, 261, 1488, 1114, 18, 39, 2 ]
columnNameList = Group( delimitedList( columnName ) )
columnNameList = Group( columnName + ZeroOrMore("," + columnName))
def __init__(self): # define SQL tokens selectStmt = Forward() selectToken = Keyword("select", caseless=True) fromToken = Keyword("from", caseless=True) asToken = Keyword("as", caseless=True) whereToken = Keyword("where", caseless=True) semicolon = Literal(";")
89165e4932516195fffe2ec7d85c0e86b062c916 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6510/89165e4932516195fffe2ec7d85c0e86b062c916/sqlparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 468, 4426, 3063, 2430, 2027, 8952, 273, 17206, 1435, 2027, 1345, 273, 18317, 2932, 4025, 3113, 8697, 12617, 33, 5510, 13, 628, 1345, 282, 273, 18317, 2932, 2080, 3113, 8697, 12617, 33, 5510, 13, 487, 1345, 282, 273, 18317, 2932, 345, 3113, 8697, 12617, 33, 5510, 13, 1625, 1345, 273, 18317, 2932, 6051, 3113, 8697, 12617, 33, 5510, 13, 23682, 273, 14392, 2932, 4868, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 468, 4426, 3063, 2430, 2027, 8952, 273, 17206, 1435, 2027, 1345, 273, 18317, 2932, 4025, 3113, 8697, 12617, 33, 5510, 13, 628, 1345, 282, 273, 18317, 2932, 2080, 3113, 8697, 12617, 33, 5510, 13, 487, 1345, 282, 273, 18317, 2932, 345, 3113, 8697, 12617, 33, 5510, 13, 1625, 1345, 273, 18317, 2932, 6051, 3113, 8697, 12617, 33, 5510, 13, 23682, 273, 14392, 2932, 4868, 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 ]
"""Defines a list of commands associated to a breakpoint Those commands will be executed whenever the breakpoint causes the program to stop execution."""
"""Defines a list of commands associated to a breakpoint. Those commands will be executed whenever the breakpoint causes the program to stop execution."""
def do_commands(self, arg): """Defines a list of commands associated to a breakpoint Those commands will be executed whenever the breakpoint causes the program to stop execution.""" if not arg: bnum = len(bdb.Breakpoint.bpbynumber)-1 else: try: bnum = int(arg) except: print >>self.stdout, "Usage : commands [bnum]\n ...\n end" return self.commands_bnum = bnum self.commands[bnum] = [] self.commands_doprompt[bnum] = True self.commands_silent[bnum] = False prompt_back = self.prompt self.prompt = '(com) ' self.commands_defining = True self.cmdloop() self.commands_defining = False self.prompt = prompt_back
5815220a681a8ce636fc52ffe38cdf10fb658194 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/5815220a681a8ce636fc52ffe38cdf10fb658194/pdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 7847, 12, 2890, 16, 1501, 4672, 3536, 15109, 279, 666, 434, 4364, 3627, 358, 279, 18820, 18, 225, 935, 2584, 4364, 903, 506, 7120, 17334, 326, 18820, 14119, 326, 5402, 358, 2132, 4588, 12123, 309, 486, 1501, 30, 324, 2107, 273, 562, 12, 70, 1966, 18, 20552, 18, 70, 5733, 878, 1226, 24950, 21, 469, 30, 775, 30, 324, 2107, 273, 509, 12, 3175, 13, 1335, 30, 1172, 1671, 2890, 18, 10283, 16, 315, 5357, 294, 4364, 306, 70, 2107, 13944, 82, 3639, 1372, 64, 82, 3639, 679, 6, 327, 365, 18, 7847, 67, 70, 2107, 273, 324, 2107, 365, 18, 7847, 63, 70, 2107, 65, 273, 5378, 365, 18, 7847, 67, 72, 556, 8645, 63, 70, 2107, 65, 273, 1053, 365, 18, 7847, 67, 21862, 63, 70, 2107, 65, 273, 1083, 6866, 67, 823, 273, 365, 18, 13325, 365, 18, 13325, 273, 7747, 832, 13, 296, 365, 18, 7847, 67, 5649, 310, 273, 1053, 365, 18, 4172, 6498, 1435, 365, 18, 7847, 67, 5649, 310, 273, 1083, 365, 18, 13325, 273, 6866, 67, 823, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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18, 225, 935, 2584, 4364, 903, 506, 7120, 17334, 326, 18820, 14119, 326, 5402, 358, 2132, 4588, 12123, 309, 486, 1501, 30, 324, 2107, 273, 562, 12, 70, 1966, 18, 20552, 18, 70, 5733, 878, 1226, 24950, 21, 469, 30, 775, 30, 324, 2107, 273, 509, 12, 3175, 13, 1335, 30, 1172, 1671, 2890, 18, 10283, 16, 315, 5357, 294, 4364, 306, 70, 2107, 13944, 82, 3639, 1372, 64, 82, 3639, 679, 6, 327, 365, 18, 7847, 67, 70, 2107, 273, 324, 2107, 365, 18, 7847, 63, 70, 2107, 65, 273, 5378, 365, 18, 7847, 67, 72, 556, 8645, 63, 2 ]
self.build_dir = self.top_dir + '/build'
self.build_dir = os.path.join(self.top_dir, 'build')
def __init__(self, job, top_directory, base_tree): """Initialize the kernel build environment
d0cbe3ef3e9910ba3893f6cf88408eaf750bec98 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12268/d0cbe3ef3e9910ba3893f6cf88408eaf750bec98/kernel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1719, 16, 1760, 67, 5149, 16, 1026, 67, 3413, 4672, 3536, 7520, 326, 5536, 1361, 3330, 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,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, 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, 1719, 16, 1760, 67, 5149, 16, 1026, 67, 3413, 4672, 3536, 7520, 326, 5536, 1361, 3330, 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 ]
lastNode.parent.childNodes.remove(lastNode)
lastNode.parent.removeChild(lastNode)
def endTagFormatting(self, name): """The much-feared adoption agency algorithm""" # XXX I don't like while True + break... too much # possibility of infinite loops while True: # Step 1 paragraph 1 afeElement = self.parser.elementInActiveFormattingElements(name) if not afeElement or (afeElement in self.parser.openElements and not self.parser.elementInScope(afeElement.name)): self.parser.parseError() return
0124737d8d74ed97bd7de89db35d3433fa2eee2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10463/0124737d8d74ed97bd7de89db35d3433fa2eee2d/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 23974, 12, 2890, 16, 508, 4672, 3536, 1986, 9816, 17, 3030, 2258, 1261, 3482, 1737, 2075, 4886, 8395, 468, 11329, 467, 2727, 1404, 3007, 1323, 1053, 397, 898, 2777, 4885, 9816, 468, 25547, 434, 14853, 14075, 1323, 1053, 30, 468, 8693, 404, 10190, 404, 279, 3030, 1046, 273, 365, 18, 4288, 18, 2956, 382, 3896, 23974, 3471, 12, 529, 13, 309, 486, 279, 3030, 1046, 578, 261, 2513, 1046, 316, 365, 18, 4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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, 29765, 23974, 12, 2890, 16, 508, 4672, 3536, 1986, 9816, 17, 3030, 2258, 1261, 3482, 1737, 2075, 4886, 8395, 468, 11329, 467, 2727, 1404, 3007, 1323, 1053, 397, 898, 2777, 4885, 9816, 468, 25547, 434, 14853, 14075, 1323, 1053, 30, 468, 8693, 404, 10190, 404, 279, 3030, 1046, 273, 365, 18, 4288, 18, 2956, 382, 3896, 23974, 3471, 12, 529, 13, 309, 486, 279, 3030, 1046, 578, 261, 2513, 1046, 316, 365, 18, 4288, 18, 3190, 3471, 471, 486, 365, 18, 4288, 18, 2956, 382, 3876, 12, 2513, 1046, 18, 529, 3719, 30, 365, 18, 4288, 18, 2670, 668, 1435, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
from glue.ligolw import table
def __init__(self, cache, coireVetoMissedCache, opts, deltaTime=20): """ Initialize this class and sets up all the cache files. @param cache: the cache of all files @param coireVetoMissedCache: the cache that contains the COIRE-files of the missed injections @param opts: The 'opts' from the main code @param deltaTime: The time window that is used in the time-series plots (in seconds) """ # must do this within here for unknown reason; error instead from glue.ligolw import table rcParams.update({'text.usetex': False})
8dea7a7ec45aa499dcbc5b1f60f9add6e030dee2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3592/8dea7a7ec45aa499dcbc5b1f60f9add6e030dee2/followup_missed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1247, 16, 1825, 577, 58, 11453, 11729, 730, 1649, 16, 1500, 16, 3622, 950, 33, 3462, 4672, 3536, 9190, 333, 667, 471, 1678, 731, 777, 326, 1247, 1390, 18, 632, 891, 1247, 30, 326, 1247, 434, 777, 1390, 632, 891, 1825, 577, 58, 11453, 11729, 730, 1649, 30, 326, 1247, 716, 1914, 326, 7910, 45, 862, 17, 2354, 434, 326, 25143, 10380, 87, 632, 891, 1500, 30, 1021, 296, 4952, 11, 628, 326, 2774, 981, 632, 891, 3622, 950, 30, 1021, 813, 2742, 716, 353, 1399, 316, 326, 813, 17, 10222, 17931, 261, 267, 3974, 13, 3536, 468, 1297, 741, 333, 3470, 2674, 364, 5917, 3971, 31, 555, 3560, 1310, 1370, 18, 2725, 12590, 11, 955, 18, 407, 278, 338, 4278, 1083, 6792, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1247, 16, 1825, 577, 58, 11453, 11729, 730, 1649, 16, 1500, 16, 3622, 950, 33, 3462, 4672, 3536, 9190, 333, 667, 471, 1678, 731, 777, 326, 1247, 1390, 18, 632, 891, 1247, 30, 326, 1247, 434, 777, 1390, 632, 891, 1825, 577, 58, 11453, 11729, 730, 1649, 30, 326, 1247, 716, 1914, 326, 7910, 45, 862, 17, 2354, 434, 326, 25143, 10380, 87, 632, 891, 1500, 30, 1021, 296, 4952, 11, 628, 326, 2774, 981, 632, 891, 3622, 950, 30, 1021, 813, 2742, 716, 353, 1399, 316, 326, 813, 17, 10222, 17931, 261, 267, 3974, 13, 3536, 468, 1297, 741, 333, 3470, 2674, 364, 5917, 3971, 31, 555, 3560, 1310, 1370, 18, 2 ]
from pprint import pprint pprint(data)
def send_metadata(self): if self.create_user: data = {':action': 'user'} data['name'] = self.username data['password'] = data['email'] = '' data['confirm'] = None while data['password'] != data['confirm']: while not data['password']: data['password'] = getpass('Password: ') while not data['confirm']: data['confirm'] = getpass(' Confirm: ') if data['password'] != data['confirm']: data['password'] = '' data['confirm'] = None print "Password and confirm don't match!" while not data['email']: data['email'] = raw_input('EMail: ') from pprint import pprint pprint(data) code, result = self.post_to_server(data) error_msg = ('Your are now registred, unless the server ' 'admini sets up a email-confirmation system\n' 'In this case check your emails, and follow' 'the intructions') if code != 200: print 'Server response (%s): %s' % (code, result) else: print error_msg return
29bea66a432631dbf4fa4eefd814e2216eacc397 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/29bea66a432631dbf4fa4eefd814e2216eacc397/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 4165, 12, 2890, 4672, 309, 365, 18, 2640, 67, 1355, 30, 501, 273, 288, 4278, 1128, 4278, 296, 1355, 11, 97, 501, 3292, 529, 3546, 273, 365, 18, 5053, 501, 3292, 3664, 3546, 273, 501, 3292, 3652, 3546, 273, 875, 501, 3292, 10927, 3546, 273, 599, 1323, 501, 3292, 3664, 3546, 480, 501, 3292, 10927, 3546, 30, 1323, 486, 501, 3292, 3664, 3546, 30, 501, 3292, 3664, 3546, 273, 31889, 2668, 3913, 30, 8624, 1323, 486, 501, 3292, 10927, 3546, 30, 501, 3292, 10927, 3546, 273, 31889, 2668, 17580, 30, 8624, 309, 501, 3292, 3664, 3546, 480, 501, 3292, 10927, 3546, 30, 501, 3292, 3664, 3546, 273, 875, 501, 3292, 10927, 3546, 273, 599, 1172, 315, 3913, 471, 6932, 2727, 1404, 845, 4442, 1323, 486, 501, 3292, 3652, 3546, 30, 501, 3292, 3652, 3546, 273, 1831, 67, 2630, 2668, 3375, 671, 30, 8624, 981, 16, 563, 273, 365, 18, 2767, 67, 869, 67, 3567, 12, 892, 13, 555, 67, 3576, 273, 7707, 15446, 854, 2037, 960, 376, 1118, 16, 3308, 326, 1438, 296, 296, 3666, 77, 1678, 731, 279, 2699, 17, 22275, 2619, 64, 82, 11, 296, 382, 333, 648, 866, 3433, 14255, 16, 471, 2805, 11, 296, 5787, 28600, 4062, 87, 6134, 309, 981, 480, 4044, 30, 1172, 296, 2081, 766, 6142, 87, 4672, 738, 87, 11, 738, 261, 710, 16, 563, 13, 469, 30, 1172, 555, 67, 3576, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 4165, 12, 2890, 4672, 309, 365, 18, 2640, 67, 1355, 30, 501, 273, 288, 4278, 1128, 4278, 296, 1355, 11, 97, 501, 3292, 529, 3546, 273, 365, 18, 5053, 501, 3292, 3664, 3546, 273, 501, 3292, 3652, 3546, 273, 875, 501, 3292, 10927, 3546, 273, 599, 1323, 501, 3292, 3664, 3546, 480, 501, 3292, 10927, 3546, 30, 1323, 486, 501, 3292, 3664, 3546, 30, 501, 3292, 3664, 3546, 273, 31889, 2668, 3913, 30, 8624, 1323, 486, 501, 3292, 10927, 3546, 30, 501, 3292, 10927, 3546, 273, 31889, 2668, 17580, 30, 8624, 309, 501, 3292, 3664, 3546, 480, 501, 3292, 10927, 3546, 30, 501, 3292, 3664, 3546, 273, 875, 501, 3292, 10927, 3546, 273, 599, 1172, 315, 2 ]
redirKeywords = [u'redirect'] + [self.family.redirect[self.lang]]
redirKeywords = [u'redirect'] + self.family.redirect[self.lang]
def redirectRegex(self): """ Regular expression recognizing redirect pages, with a group on the target title. """ try: redirKeywords = [u'redirect'] + [self.family.redirect[self.lang]] redirKeywordsR = r'(?:' + '|'.join(redirKeywords) + ')' except KeyError: # no localized keyword for redirects redirKeywordsR = r'redirect' # A redirect starts with hash (#), followed by a keyword, then # arbitrary stuff, then a wikilink. The link target ends before # either a | or a ]. return re.compile(r'#' + redirKeywordsR + '.*?\[\[(.*?)(?:\]|\|)', re.IGNORECASE | re.UNICODE | re.DOTALL)
d35edfdea07b2d75e16d3459b580762e432aded1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/d35edfdea07b2d75e16d3459b580762e432aded1/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3136, 6628, 12, 2890, 4672, 3536, 24544, 2652, 14603, 6894, 3136, 4689, 16, 598, 279, 1041, 603, 326, 1018, 2077, 18, 3536, 775, 30, 283, 1214, 14149, 273, 306, 89, 4565, 7205, 3546, 397, 365, 18, 9309, 18, 7590, 63, 2890, 18, 4936, 65, 283, 1214, 14149, 54, 273, 436, 11, 3680, 2497, 397, 8030, 18, 5701, 12, 1118, 481, 14149, 13, 397, 5777, 1335, 4999, 30, 468, 1158, 13596, 4932, 364, 18064, 283, 1214, 14149, 54, 273, 436, 4565, 7205, 11, 468, 432, 3136, 2542, 598, 1651, 23885, 3631, 10860, 635, 279, 4932, 16, 1508, 468, 11078, 10769, 16, 1508, 279, 341, 1766, 330, 754, 18, 1021, 1692, 1018, 3930, 1865, 468, 3344, 279, 571, 578, 279, 308, 18, 327, 283, 18, 11100, 12, 86, 11, 10038, 397, 283, 1214, 14149, 54, 397, 2418, 14, 10936, 7438, 63, 21110, 15599, 65, 8960, 96, 13, 2187, 283, 18, 20118, 13415, 571, 283, 18, 26642, 571, 283, 18, 17591, 4685, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3136, 6628, 12, 2890, 4672, 3536, 24544, 2652, 14603, 6894, 3136, 4689, 16, 598, 279, 1041, 603, 326, 1018, 2077, 18, 3536, 775, 30, 283, 1214, 14149, 273, 306, 89, 4565, 7205, 3546, 397, 365, 18, 9309, 18, 7590, 63, 2890, 18, 4936, 65, 283, 1214, 14149, 54, 273, 436, 11, 3680, 2497, 397, 8030, 18, 5701, 12, 1118, 481, 14149, 13, 397, 5777, 1335, 4999, 30, 468, 1158, 13596, 4932, 364, 18064, 283, 1214, 14149, 54, 273, 436, 4565, 7205, 11, 468, 432, 3136, 2542, 598, 1651, 23885, 3631, 10860, 635, 279, 4932, 16, 1508, 468, 11078, 10769, 16, 1508, 279, 341, 1766, 330, 754, 18, 1021, 1692, 1018, 3930, 1865, 468, 3344, 279, 571, 578, 279, 2 ]
endpoint = RegistrationConsumer()
endpoint = RegistrationConsumer()
def on_registration_complete(self, request): return HttpResponseRedirect('/%s/' % request.user.username)
330f6ef4797a0f826a4d07793cf2c240aadf05b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9909/330f6ef4797a0f826a4d07793cf2c240aadf05b2/openid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 14170, 67, 6226, 12, 2890, 16, 590, 4672, 327, 31780, 2668, 5258, 87, 2473, 738, 590, 18, 1355, 18, 5053, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 14170, 67, 6226, 12, 2890, 16, 590, 4672, 327, 31780, 2668, 5258, 87, 2473, 738, 590, 18, 1355, 18, 5053, 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 ]
def feature_qualifier_name(self, content): if content.find("/") != 0: content = "/%s" % content if self._cur_qualifier is not None: self._cur_feature.qualifiers.append(self._cur_qualifier) self._cur_qualifier = Record.Qualifier() self._cur_qualifier.key = content
def feature_qualifier_name(self, content_list): """Deal with qualifier names We receive a list of keys, since you can have valueless keys such as /pseudo which would be passed in with the next key (since no other tags separate them in the file) """ for content in content_list: if content.find("/") != 0: content = "/%s" % content if self._cur_qualifier is not None: self._cur_feature.qualifiers.append(self._cur_qualifier) self._cur_qualifier = Record.Qualifier() self._cur_qualifier.key = content
def feature_qualifier_name(self, content): # the record parser keeps the /s -- add them if we don't have 'em if content.find("/") != 0: content = "/%s" % content # add on a qualifier if we've got one if self._cur_qualifier is not None: self._cur_feature.qualifiers.append(self._cur_qualifier)
f666e9d1a49cde171afb9a844de23a79dfc20e95 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/f666e9d1a49cde171afb9a844de23a79dfc20e95/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2572, 67, 28157, 67, 529, 12, 2890, 16, 913, 4672, 468, 326, 1409, 2082, 20948, 326, 342, 87, 1493, 527, 2182, 309, 732, 2727, 1404, 1240, 296, 351, 309, 913, 18, 4720, 2932, 4898, 13, 480, 374, 30, 913, 273, 2206, 9, 87, 6, 738, 913, 468, 527, 603, 279, 12327, 309, 732, 8081, 2363, 1245, 309, 365, 6315, 1397, 67, 28157, 353, 486, 599, 30, 365, 6315, 1397, 67, 7238, 18, 3369, 3383, 18, 6923, 12, 2890, 6315, 1397, 67, 28157, 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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0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2572, 67, 28157, 67, 529, 12, 2890, 16, 913, 4672, 468, 326, 1409, 2082, 20948, 326, 342, 87, 1493, 527, 2182, 309, 732, 2727, 1404, 1240, 296, 351, 309, 913, 18, 4720, 2932, 4898, 13, 480, 374, 30, 913, 273, 2206, 9, 87, 6, 738, 913, 468, 527, 603, 279, 12327, 309, 732, 8081, 2363, 1245, 309, 365, 6315, 1397, 67, 28157, 353, 486, 599, 30, 365, 6315, 1397, 67, 7238, 18, 3369, 3383, 18, 6923, 12, 2890, 6315, 1397, 67, 28157, 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 ]
response = simplejson.dumps(json)
response = jsonify(json)
def process_submit(request, unit, type): """ Processes submissions and suggestions and stores them in the database. @return: An object in JSON notation that contains the previous and last units for the unit next to unit C{uid}. """ json = {} cantranslate = check_permission("translate", request) cansuggest = check_permission("suggest", request) if type == 'submission' and not cantranslate or type == 'suggestion' and not cansuggest: raise PermissionDenied(_("You do not have rights to access translation mode.")) translation_project = request.translation_project language = translation_project.language if unit.hasplural(): snplurals = len(unit.source.strings) else: snplurals = None form_class = unit_form_factory(language, snplurals) form = form_class(request.POST, instance=unit) if form.is_valid(): if type == 'submission': if form.instance._target_updated or \ form.instance._translator_comment_updated or \ form.instance._state_updated: form.save() sub = Submission(translation_project=translation_project, submitter=request.profile) sub.save() elif type == 'suggestion': if form.instance._target_updated: #HACKISH: django 1.2 stupidly modifies instance on # model form validation, reload unit from db unit = Unit.objects.get(id=unit.id) sugg = unit.add_suggestion(form.cleaned_data['target_f'], request.profile) if sugg: SuggestionStat.objects.get_or_create(translation_project=translation_project, suggester=request.profile, state='pending', unit=unit.id) rcode = 200 else: # Form failed #FIXME: we should display validation errors here rcode = 400 json["msg"] = _("Failed to process submit.") response = simplejson.dumps(json) return HttpResponse(response, status=rcode, mimetype="application/json")
af8870802a0b16f33536558129447cc14b242231 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11388/af8870802a0b16f33536558129447cc14b242231/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 9297, 12, 2293, 16, 2836, 16, 618, 4672, 3536, 4389, 281, 22071, 471, 17969, 471, 9064, 2182, 316, 326, 2063, 18, 225, 632, 2463, 30, 1922, 733, 316, 1796, 12155, 716, 1914, 326, 2416, 471, 1142, 4971, 364, 326, 2836, 1024, 358, 2836, 385, 95, 1911, 5496, 3536, 1163, 273, 2618, 848, 13929, 273, 866, 67, 9827, 2932, 13929, 3113, 590, 13, 276, 634, 8679, 273, 866, 67, 9827, 2932, 87, 8679, 3113, 590, 13, 309, 618, 422, 296, 12684, 11, 471, 486, 848, 13929, 578, 618, 422, 296, 87, 21166, 11, 471, 486, 276, 634, 8679, 30, 1002, 8509, 10410, 24899, 2932, 6225, 741, 486, 1240, 14989, 358, 2006, 4794, 1965, 1199, 3719, 225, 4794, 67, 4406, 273, 590, 18, 10173, 67, 4406, 2653, 273, 4794, 67, 4406, 18, 4923, 309, 2836, 18, 5332, 15203, 13332, 4556, 412, 17645, 273, 562, 12, 4873, 18, 3168, 18, 10219, 13, 469, 30, 4556, 412, 17645, 273, 599, 646, 67, 1106, 273, 2836, 67, 687, 67, 6848, 12, 4923, 16, 4556, 412, 17645, 13, 646, 273, 646, 67, 1106, 12, 2293, 18, 3798, 16, 791, 33, 4873, 13, 309, 646, 18, 291, 67, 877, 13332, 309, 618, 422, 296, 12684, 4278, 309, 646, 18, 1336, 6315, 3299, 67, 7007, 578, 521, 646, 18, 1336, 6315, 17879, 67, 3469, 67, 7007, 578, 521, 646, 18, 1336, 6315, 2019, 67, 7007, 30, 646, 18, 5688, 1435, 720, 273, 2592, 3951, 12, 10173, 67, 4406, 33, 10173, 67, 4406, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 9297, 12, 2293, 16, 2836, 16, 618, 4672, 3536, 4389, 281, 22071, 471, 17969, 471, 9064, 2182, 316, 326, 2063, 18, 225, 632, 2463, 30, 1922, 733, 316, 1796, 12155, 716, 1914, 326, 2416, 471, 1142, 4971, 364, 326, 2836, 1024, 358, 2836, 385, 95, 1911, 5496, 3536, 1163, 273, 2618, 848, 13929, 273, 866, 67, 9827, 2932, 13929, 3113, 590, 13, 276, 634, 8679, 273, 866, 67, 9827, 2932, 87, 8679, 3113, 590, 13, 309, 618, 422, 296, 12684, 11, 471, 486, 848, 13929, 578, 618, 422, 296, 87, 21166, 11, 471, 486, 276, 634, 8679, 30, 1002, 8509, 10410, 24899, 2932, 6225, 741, 486, 1240, 14989, 358, 2006, 4794, 1965, 1199, 3719, 225, 4794, 2 ]
nqtext = entry.get('qtext')
nqtext = entry.get('qtext', '')
def VerifyConfigFile(self, entry, _): '''Install ConfigFile Entry''' # configfile verify is permissions check + content check permissionStatus = self.VerifyDirectory(entry, _) if entry.get('encoding', 'ascii') == 'base64': tempdata = binascii.a2b_base64(entry.text) elif entry.get('empty', 'false') == 'true': tempdata = '' else: if entry.text == None: self.logger.error("Cannot verify incomplete ConfigFile %s" % (entry.get('name'))) return False tempdata = entry.text
3162939da7bd489a76f0f117923850bc5025355d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11867/3162939da7bd489a76f0f117923850bc5025355d/POSIX.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8553, 13705, 12, 2890, 16, 1241, 16, 389, 4672, 9163, 6410, 31988, 3841, 26418, 468, 642, 768, 3929, 353, 4371, 866, 397, 913, 866, 4132, 1482, 273, 365, 18, 8097, 2853, 12, 4099, 16, 389, 13, 309, 1241, 18, 588, 2668, 5999, 2187, 296, 9184, 6134, 422, 296, 1969, 1105, 4278, 1906, 892, 273, 28222, 18, 69, 22, 70, 67, 1969, 1105, 12, 4099, 18, 955, 13, 1327, 1241, 18, 588, 2668, 5531, 2187, 296, 5743, 6134, 422, 296, 3767, 4278, 1906, 892, 273, 875, 469, 30, 309, 1241, 18, 955, 422, 599, 30, 365, 18, 4901, 18, 1636, 2932, 4515, 3929, 14715, 31988, 738, 87, 6, 738, 261, 4099, 18, 588, 2668, 529, 11, 20349, 327, 1083, 1906, 892, 273, 1241, 18, 955, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8553, 13705, 12, 2890, 16, 1241, 16, 389, 4672, 9163, 6410, 31988, 3841, 26418, 468, 642, 768, 3929, 353, 4371, 866, 397, 913, 866, 4132, 1482, 273, 365, 18, 8097, 2853, 12, 4099, 16, 389, 13, 309, 1241, 18, 588, 2668, 5999, 2187, 296, 9184, 6134, 422, 296, 1969, 1105, 4278, 1906, 892, 273, 28222, 18, 69, 22, 70, 67, 1969, 1105, 12, 4099, 18, 955, 13, 1327, 1241, 18, 588, 2668, 5531, 2187, 296, 5743, 6134, 422, 296, 3767, 4278, 1906, 892, 273, 875, 469, 30, 309, 1241, 18, 955, 422, 599, 30, 365, 18, 4901, 18, 1636, 2932, 4515, 3929, 14715, 31988, 738, 87, 6, 738, 261, 4099, 18, 588, 2668, 529, 11, 20349, 327, 1083, 2 ]
c.set_status(status,donedate=donedate)
if c.get_status() in ["Active"] : c.set_status(status,donedate=donedate)
def set_status(self,status,donedate=None) : old_status = self.status self.can_be_deleted = False if status : self.status = status #If Done, we set the done date if status in ["Done","Dismiss"] : for c in self.get_subtasks() : c.set_status(status,donedate=donedate) #to the specified date (if any) if donedate : self.closed_date = donedate #or to today else : self.closed_date = date.today() #If we mark a task as Active and that some parent are not #Active, we break the parent/child relation #It has no sense to have an active subtask of a done parent. # (old_status check is necessary to avoid false positive a start) elif status in ["Active"] and old_status in ["Done","Dismiss"] : if self.has_parents() : for p_tid in self.get_parents() : par = self.req.get_task(p_tid) if par.is_loaded() and par.get_status != "Active" : print "removing parent" self.remove_parent(p_tid) #We dont mark the children as Active because #They might be already completed after all self.sync()
74fab08bf33071a968ec50517b7d4e5a18665527 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/74fab08bf33071a968ec50517b7d4e5a18665527/task.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 2327, 12, 2890, 16, 2327, 16, 72, 8184, 340, 33, 7036, 13, 294, 1592, 67, 2327, 273, 365, 18, 2327, 365, 18, 4169, 67, 2196, 67, 8600, 273, 1083, 309, 1267, 294, 365, 18, 2327, 273, 1267, 468, 2047, 8677, 16, 732, 444, 326, 2731, 1509, 309, 1267, 316, 8247, 7387, 15937, 1669, 3105, 11929, 294, 364, 276, 316, 365, 18, 588, 67, 1717, 9416, 1435, 294, 309, 276, 18, 588, 67, 2327, 1435, 316, 8247, 3896, 11929, 294, 276, 18, 542, 67, 2327, 12, 2327, 16, 72, 8184, 340, 33, 72, 8184, 340, 13, 468, 869, 326, 1269, 1509, 261, 430, 1281, 13, 309, 2727, 329, 340, 294, 365, 18, 12204, 67, 712, 273, 2727, 329, 340, 468, 280, 358, 10074, 469, 294, 365, 18, 12204, 67, 712, 273, 1509, 18, 30064, 1435, 468, 2047, 732, 2267, 279, 1562, 487, 8857, 471, 716, 2690, 982, 854, 486, 468, 3896, 16, 732, 898, 326, 982, 19, 3624, 2533, 468, 7193, 711, 1158, 12764, 358, 1240, 392, 2695, 720, 4146, 434, 279, 2731, 982, 18, 468, 261, 1673, 67, 2327, 866, 353, 4573, 358, 4543, 629, 6895, 279, 787, 13, 1327, 1267, 316, 8247, 3896, 11929, 471, 1592, 67, 2327, 316, 8247, 7387, 15937, 1669, 3105, 11929, 294, 309, 365, 18, 5332, 67, 12606, 1435, 294, 364, 293, 67, 18081, 316, 365, 18, 588, 67, 12606, 1435, 294, 779, 273, 365, 18, 3658, 18, 588, 67, 4146, 12, 84, 67, 18081, 13, 309, 779, 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, 444, 67, 2327, 12, 2890, 16, 2327, 16, 72, 8184, 340, 33, 7036, 13, 294, 1592, 67, 2327, 273, 365, 18, 2327, 365, 18, 4169, 67, 2196, 67, 8600, 273, 1083, 309, 1267, 294, 365, 18, 2327, 273, 1267, 468, 2047, 8677, 16, 732, 444, 326, 2731, 1509, 309, 1267, 316, 8247, 7387, 15937, 1669, 3105, 11929, 294, 364, 276, 316, 365, 18, 588, 67, 1717, 9416, 1435, 294, 309, 276, 18, 588, 67, 2327, 1435, 316, 8247, 3896, 11929, 294, 276, 18, 542, 67, 2327, 12, 2327, 16, 72, 8184, 340, 33, 72, 8184, 340, 13, 468, 869, 326, 1269, 1509, 261, 430, 1281, 13, 309, 2727, 329, 340, 294, 365, 18, 12204, 67, 712, 273, 2727, 2 ]
s.addIndex('EMA-25', EMA, s, 25)
if EMA: s.addIndex('EMA-25', EMA, s, 25)
def accountData(self, *k): s = Series() s.addIndex('EMA-25', EMA, s, 25) return s
77586db5172791426fe8f5c7ab4b1aaae6746641 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3979/77586db5172791426fe8f5c7ab4b1aaae6746641/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2236, 751, 12, 2890, 16, 380, 79, 4672, 272, 273, 9225, 1435, 309, 512, 5535, 30, 272, 18, 1289, 1016, 2668, 3375, 37, 17, 2947, 2187, 512, 5535, 16, 272, 16, 6969, 13, 327, 272, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2236, 751, 12, 2890, 16, 380, 79, 4672, 272, 273, 9225, 1435, 309, 512, 5535, 30, 272, 18, 1289, 1016, 2668, 3375, 37, 17, 2947, 2187, 512, 5535, 16, 272, 16, 6969, 13, 327, 272, 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 ]
cols.append((" %s/%s" % (repoid, rev), str(cur[rev])))
last_rev = cur[rev] ncols.append((" %s/%s" % (repoid, rev), str(cur[rev]))) if None in cur and (not last_rev or cur[None] != last_rev): cols.append((" %s" % repoid, str(cur[None]))) cols.extend(ncols)
def _append_repos(cols, repo_data): for repoid in sorted(repo_data): cur = repo_data[repoid] if None in cur and len(cur) != 2: cols.append((" %s" % repoid, str(cur[None]))) for rev in sorted(cur): if rev is None: continue cols.append((" %s/%s" % (repoid, rev), str(cur[rev])))
907cc05f2de43078e43714808db3fb09b269a3c5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5445/907cc05f2de43078e43714808db3fb09b269a3c5/yumcommands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6923, 67, 15564, 12, 6842, 16, 3538, 67, 892, 4672, 364, 2071, 839, 316, 3115, 12, 7422, 67, 892, 4672, 662, 273, 3538, 67, 892, 63, 14462, 839, 65, 309, 599, 316, 662, 471, 562, 12, 1397, 13, 480, 576, 30, 5347, 18, 6923, 12, 2932, 565, 738, 87, 6, 738, 2071, 839, 16, 609, 12, 1397, 63, 7036, 65, 20349, 364, 5588, 316, 3115, 12, 1397, 4672, 309, 5588, 353, 599, 30, 1324, 5347, 18, 6923, 12, 2932, 565, 738, 87, 5258, 87, 6, 738, 261, 14462, 839, 16, 5588, 3631, 609, 12, 1397, 63, 9083, 65, 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,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316, 326, 981, 30, 1652, 389, 6923, 67, 15564, 12, 6842, 16, 3538, 67, 892, 4672, 364, 2071, 839, 316, 3115, 12, 7422, 67, 892, 4672, 662, 273, 3538, 67, 892, 63, 14462, 839, 65, 309, 599, 316, 662, 471, 562, 12, 1397, 13, 480, 576, 30, 5347, 18, 6923, 12, 2932, 565, 738, 87, 6, 738, 2071, 839, 16, 609, 12, 1397, 63, 7036, 65, 20349, 364, 5588, 316, 3115, 12, 1397, 4672, 309, 5588, 353, 599, 30, 1324, 5347, 18, 6923, 12, 2932, 565, 738, 87, 5258, 87, 6, 738, 261, 14462, 839, 16, 5588, 3631, 609, 12, 1397, 63, 9083, 65, 20349, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
elif cmdutil.findcmd.func_code.co_argcount == 3:
elif cmdutil.findcmd.func_code.co_argcount == 3:
def findcmd(cmd): return cmdutil.findcmd(self._getUI(), cmd)
58bb0d2746dffe665a361adc67bc15a0ca3728a3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5981/58bb0d2746dffe665a361adc67bc15a0ca3728a3/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 4172, 12, 4172, 4672, 327, 24884, 18, 4720, 4172, 12, 2890, 6315, 588, 5370, 9334, 1797, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 4172, 12, 4172, 4672, 327, 24884, 18, 4720, 4172, 12, 2890, 6315, 588, 5370, 9334, 1797, 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 ]
Z = N.zeros(3, dtype=N.float64);
Z = NP.zeros(3, dtype=NP.float64);
def resize_image(imageG, imageF_mat): """ zoom_image = resize_image(source_image, reference_image[mat]) Fractional resample source_image to reference_imagesize. The resample is implemented with 3D cubic spline. The reference image [mat] is the 4x4 voxel-to-physical conversion matrix. Parameters .......... imageG : {dictionary} imageG is the source image to be resized. it is a dictionary with the data as an ndarray in the ['data'] component. reference_image[mat] : {ndarray} refernce_image is the image whose sampling dimensions the source image is to be remapped to. [mat] refers to the component of the image dictionary, reference_image['mat'] that is the sampling dimensions. Returns ....... zoom_image : {dictionary} Examples ........ >>> import _registration as reg >>> measures, imageF_anat, fmri_series = reg.demo_MRI_coregistration() >>> resampled_fmri = reg.resize_image(fmri_series[10], imageF_anat['mat']) image 10 in the fmri_series is resampled to imageF_anat coordinates """ Z = N.zeros(3, dtype=N.float64); # get the zoom Z[0] = imageG['mat'][0][0] / imageF_mat[0][0] Z[1] = imageG['mat'][1][1] / imageF_mat[1][1] Z[2] = imageG['mat'][2][2] / imageF_mat[2][2] # new volume dimensions (rounded) D = N.zeros(3, dtype=N.int32); D[0] = int(float(imageG['dim'][0])*Z[0]+0.5) D[1] = int(float(imageG['dim'][1])*Z[1]+0.5) D[2] = int(float(imageG['dim'][2])*Z[2]+0.5) M = N.eye(4, dtype=N.float64); # for the test data, set the xyz voxel sizes for fMRI volume M[0][0] = imageG['mat'][0][0]/Z[0] M[1][1] = imageG['mat'][1][1]/Z[1] M[2][2] = imageG['mat'][2][2]/Z[2] image = N.zeros(D[2]*D[1]*D[0], dtype=N.uint8).reshape(D[2], D[0], D[1]) mode = 2 scale = 0 R.register_volume_resample(imageG['data'], image, Z, scale, mode) F = N.zeros(3, dtype=N.float64); zoom_image = {'data' : image, 'mat' : M, 'dim' : D, 'fwhm' : F} return zoom_image
de681f926e982b0212f2f58bf637917926737f89 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/de681f926e982b0212f2f58bf637917926737f89/_registration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7041, 67, 2730, 12, 2730, 43, 16, 1316, 42, 67, 7373, 4672, 3536, 7182, 67, 2730, 273, 7041, 67, 2730, 12, 3168, 67, 2730, 16, 2114, 67, 2730, 63, 7373, 5717, 225, 478, 5738, 287, 19220, 1084, 67, 2730, 358, 2114, 67, 28787, 18, 1021, 19220, 353, 8249, 598, 890, 40, 31247, 22826, 18, 1021, 2114, 1316, 306, 7373, 65, 353, 326, 1059, 92, 24, 22970, 17, 869, 17, 20441, 4105, 3148, 18, 225, 7012, 1372, 6265, 2777, 225, 1316, 43, 294, 288, 15556, 97, 1316, 43, 353, 326, 1084, 1316, 358, 506, 21615, 18, 518, 353, 279, 3880, 598, 326, 501, 487, 392, 8304, 316, 326, 10228, 892, 3546, 1794, 18, 225, 2114, 67, 2730, 63, 7373, 65, 294, 288, 25681, 97, 8884, 82, 311, 67, 2730, 353, 326, 1316, 8272, 11558, 5769, 326, 1084, 1316, 353, 358, 506, 21674, 1845, 358, 18, 306, 7373, 65, 21368, 358, 326, 1794, 434, 326, 1316, 3880, 16, 2114, 67, 2730, 3292, 7373, 3546, 716, 353, 326, 11558, 5769, 18, 225, 2860, 1372, 6265, 7182, 67, 2730, 294, 288, 15556, 97, 225, 19830, 1372, 838, 2777, 225, 4080, 1930, 389, 14170, 487, 960, 4080, 22692, 16, 1316, 42, 67, 304, 270, 16, 10940, 566, 67, 10222, 273, 960, 18, 27928, 67, 49, 2259, 67, 3644, 75, 4218, 1435, 225, 4080, 400, 14814, 67, 25089, 566, 273, 960, 18, 15169, 67, 2730, 12, 25089, 566, 67, 10222, 63, 2163, 6487, 1316, 42, 67, 304, 270, 3292, 7373, 19486, 225, 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, 7041, 67, 2730, 12, 2730, 43, 16, 1316, 42, 67, 7373, 4672, 3536, 7182, 67, 2730, 273, 7041, 67, 2730, 12, 3168, 67, 2730, 16, 2114, 67, 2730, 63, 7373, 5717, 225, 478, 5738, 287, 19220, 1084, 67, 2730, 358, 2114, 67, 28787, 18, 1021, 19220, 353, 8249, 598, 890, 40, 31247, 22826, 18, 1021, 2114, 1316, 306, 7373, 65, 353, 326, 1059, 92, 24, 22970, 17, 869, 17, 20441, 4105, 3148, 18, 225, 7012, 1372, 6265, 2777, 225, 1316, 43, 294, 288, 15556, 97, 1316, 43, 353, 326, 1084, 1316, 358, 506, 21615, 18, 518, 353, 279, 3880, 598, 326, 501, 487, 392, 8304, 316, 326, 10228, 892, 3546, 1794, 18, 225, 2114, 67, 2730, 63, 7373, 2 ]
if self._short_opts or self._long_opts: return "/".join(self._short_opts + self._long_opts) else: raise RuntimeError, "short_opts and long_opts both empty!"
return "/".join(self._short_opts + self._long_opts)
def __str__ (self): if self._short_opts or self._long_opts: return "/".join(self._short_opts + self._long_opts) else: raise RuntimeError, "short_opts and long_opts both empty!"
cdb9ddb9f396d777ecea5b78113fcc9202879129 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/cdb9ddb9f396d777ecea5b78113fcc9202879129/optparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 261, 2890, 4672, 309, 365, 6315, 6620, 67, 4952, 578, 365, 6315, 5748, 67, 4952, 30, 327, 4016, 18, 5701, 12, 2890, 6315, 6620, 67, 4952, 397, 365, 6315, 5748, 67, 4952, 13, 469, 30, 1002, 7265, 16, 315, 6620, 67, 4952, 471, 1525, 67, 4952, 3937, 1008,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 261, 2890, 4672, 309, 365, 6315, 6620, 67, 4952, 578, 365, 6315, 5748, 67, 4952, 30, 327, 4016, 18, 5701, 12, 2890, 6315, 6620, 67, 4952, 397, 365, 6315, 5748, 67, 4952, 13, 469, 30, 1002, 7265, 16, 315, 6620, 67, 4952, 471, 1525, 67, 4952, 3937, 1008, 4442, 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 ]
self.__gens = [self.point(x, check=False) for x in G]
self.__gens = [self.point(x, check=True) for x in G]
def gens(self, verbose=False, rank1_search=10, algorithm='mwrank_shell', only_use_mwrank=True, proof = True): """ Compute and return generators for the Mordell-Weil group E(Q) *modulo* torsion.
3d69e1adac7c2d85786181ac93578b60d62f59bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/3d69e1adac7c2d85786181ac93578b60d62f59bf/ell_rational_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 314, 773, 12, 2890, 16, 3988, 33, 8381, 16, 6171, 21, 67, 3072, 33, 2163, 16, 4886, 2218, 81, 91, 11500, 67, 10304, 2187, 1338, 67, 1202, 67, 81, 91, 11500, 33, 5510, 16, 14601, 273, 1053, 4672, 3536, 8155, 471, 327, 13327, 364, 326, 490, 517, 1165, 17, 3218, 330, 1041, 512, 12, 53, 13, 380, 1711, 26478, 14, 268, 1383, 285, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 314, 773, 12, 2890, 16, 3988, 33, 8381, 16, 6171, 21, 67, 3072, 33, 2163, 16, 4886, 2218, 81, 91, 11500, 67, 10304, 2187, 1338, 67, 1202, 67, 81, 91, 11500, 33, 5510, 16, 14601, 273, 1053, 4672, 3536, 8155, 471, 327, 13327, 364, 326, 490, 517, 1165, 17, 3218, 330, 1041, 512, 12, 53, 13, 380, 1711, 26478, 14, 268, 1383, 285, 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 ]
print "Failure processing at line", node.line print "Failure is", node.astext() raise NotImplementedError('visiting unimplemented node type: %s'
print "=" * 70 print "Failure due to unknown node type" print "-" * 70 print "Failed node is: %r" % node print "Failed line is:", node.line print "Failed text is:", node.astext() print "=" * 70 raise NotImplementedError('unimplemented node type: %s'
def unknown_visit(self, node): print "Failure processing at line", node.line print "Failure is", node.astext() raise NotImplementedError('visiting unimplemented node type: %s' % node.__class__.__name__)
4f3175cae1eee1640728f93c57e26392c3a44d52 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/4f3175cae1eee1640728f93c57e26392c3a44d52/OOwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5917, 67, 11658, 12, 2890, 16, 756, 4672, 1172, 9671, 380, 16647, 1172, 315, 5247, 6541, 358, 5917, 756, 618, 6, 1172, 7514, 380, 16647, 1172, 315, 2925, 756, 353, 30, 738, 86, 6, 738, 756, 1172, 315, 2925, 980, 353, 2773, 16, 756, 18, 1369, 1172, 315, 2925, 977, 353, 2773, 16, 756, 18, 689, 408, 1435, 1172, 9671, 380, 16647, 1002, 11206, 2668, 318, 21099, 756, 618, 30, 738, 87, 11, 738, 756, 16186, 1106, 972, 16186, 529, 972, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5917, 67, 11658, 12, 2890, 16, 756, 4672, 1172, 9671, 380, 16647, 1172, 315, 5247, 6541, 358, 5917, 756, 618, 6, 1172, 7514, 380, 16647, 1172, 315, 2925, 756, 353, 30, 738, 86, 6, 738, 756, 1172, 315, 2925, 980, 353, 2773, 16, 756, 18, 1369, 1172, 315, 2925, 977, 353, 2773, 16, 756, 18, 689, 408, 1435, 1172, 9671, 380, 16647, 1002, 11206, 2668, 318, 21099, 756, 618, 30, 738, 87, 11, 738, 756, 16186, 1106, 972, 16186, 529, 972, 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 ]
print 'type( self.valuesList[i] ) not in self.__validDataValues', type( self.valuesList[i] ) not in self.__validDataValues
print 'type( self.valuesList[i] ) not in self.__validDataValues', str(type( self.valuesList[i] ) not in self.__validDataValues)
def checkValues( self ): """ Check that all values are defined and valid """ errorList = [] for i in range( len( self.valuesList ) ): key = self.fieldsList[i] print 'checkValues',self.fieldsList[i], self.valuesList[i] print 'checkValues', self.valueFieldsList print 'checkValues', self.__validDataValues print 'key in self.valueFieldsList', key in self.valueFieldsList print 'type( self.valuesList[i] )', type( self.valuesList[i] ) print 'type( self.valuesList[i] ) not in self.__validDataValues', type( self.valuesList[i] ) not in self.__validDataValues if self.valuesList[i] == None: errorList.append( "no value for %s" % key ) if key in self.valueFieldsList and type( self.valuesList[i] ) not in self.__validDataValues: errorList.append( "value for key %s is not numerical type" % key ) if errorList: return S_ERROR( "Invalid values: %s" % ", ".join( errorList ) ) if not self.startTime: return S_ERROR( "Start time has not been defined" ) if type( self.startTime ) != Time._dateTimeType: return S_ERROR( "Start time is not a datetime object" ) if not self.endTime: return S_ERROR( "End time has not been defined" ) if type( self.endTime ) != Time._dateTimeType: return S_ERROR( "End time is not a datetime object" ) return S_OK()
e373241bc2b917681e70967cc0edc027612aee2d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/e373241bc2b917681e70967cc0edc027612aee2d/BaseAccountingType.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1972, 12, 365, 262, 30, 3536, 2073, 716, 777, 924, 854, 2553, 471, 923, 3536, 29902, 273, 5378, 364, 277, 316, 1048, 12, 562, 12, 365, 18, 2372, 682, 262, 262, 30, 498, 273, 365, 18, 2821, 682, 63, 77, 65, 1172, 296, 1893, 1972, 2187, 2890, 18, 2821, 682, 63, 77, 6487, 365, 18, 2372, 682, 63, 77, 65, 1172, 296, 1893, 1972, 2187, 365, 18, 1132, 2314, 682, 1172, 296, 1893, 1972, 2187, 365, 16186, 877, 751, 1972, 1172, 296, 856, 316, 365, 18, 1132, 2314, 682, 2187, 498, 316, 365, 18, 1132, 2314, 682, 1172, 296, 723, 12, 365, 18, 2372, 682, 63, 77, 65, 262, 2187, 618, 12, 365, 18, 2372, 682, 63, 77, 65, 262, 1172, 296, 723, 12, 365, 18, 2372, 682, 63, 77, 65, 262, 486, 316, 365, 16186, 877, 751, 1972, 2187, 609, 12, 723, 12, 365, 18, 2372, 682, 63, 77, 65, 262, 486, 316, 365, 16186, 877, 751, 1972, 13, 309, 365, 18, 2372, 682, 63, 77, 65, 422, 599, 30, 29902, 18, 6923, 12, 315, 2135, 460, 364, 738, 87, 6, 738, 498, 262, 309, 498, 316, 365, 18, 1132, 2314, 682, 471, 618, 12, 365, 18, 2372, 682, 63, 77, 65, 262, 486, 316, 365, 16186, 877, 751, 1972, 30, 29902, 18, 6923, 12, 315, 1132, 364, 498, 738, 87, 353, 486, 17409, 618, 6, 738, 498, 262, 309, 29902, 30, 327, 348, 67, 3589, 12, 315, 1941, 924, 30, 738, 87, 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, 866, 1972, 12, 365, 262, 30, 3536, 2073, 716, 777, 924, 854, 2553, 471, 923, 3536, 29902, 273, 5378, 364, 277, 316, 1048, 12, 562, 12, 365, 18, 2372, 682, 262, 262, 30, 498, 273, 365, 18, 2821, 682, 63, 77, 65, 1172, 296, 1893, 1972, 2187, 2890, 18, 2821, 682, 63, 77, 6487, 365, 18, 2372, 682, 63, 77, 65, 1172, 296, 1893, 1972, 2187, 365, 18, 1132, 2314, 682, 1172, 296, 1893, 1972, 2187, 365, 16186, 877, 751, 1972, 1172, 296, 856, 316, 365, 18, 1132, 2314, 682, 2187, 498, 316, 365, 18, 1132, 2314, 682, 1172, 296, 723, 12, 365, 18, 2372, 682, 63, 77, 65, 262, 2187, 618, 12, 365, 18, 2372, 682, 63, 2 ]
self.length = None else: self.length = None
pass
def begin(self): if self.msg is not None: # we've already started reading the response return
cdabc9a69539bbd3fe8391dad741e821d10e8f87 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/cdabc9a69539bbd3fe8391dad741e821d10e8f87/httplib.py
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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2376, 12, 2890, 4672, 309, 365, 18, 3576, 353, 486, 599, 30, 468, 732, 8081, 1818, 5746, 6453, 326, 766, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
this = apply(_quickfix.new_TimeUnit, args)
this = _quickfix.new_TimeUnit(*args)
def __init__(self, *args): this = apply(_quickfix.new_TimeUnit, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 950, 2802, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, 18, 2211, 273, 333, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 950, 2802, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, 18, 2211, 273, 333, 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 ]
'addview' : '%s/+/%s' % (baseUrl, p.addview,),
'addview' : '%s' % p.addview,
def addable_portlets(self): baseUrl = self.__parent__.getAssignmentMappingUrl(self.manager) return [ {'title' : p.title, 'description' : p.description, 'addview' : '%s/+/%s' % (baseUrl, p.addview,), } for p in self.manager.getAddablePortletTypes()]
2bc1d351de14c67b13afa448b276be95bd54f665 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12194/2bc1d351de14c67b13afa448b276be95bd54f665/editmanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 429, 67, 655, 17307, 12, 2890, 4672, 9818, 273, 365, 16186, 2938, 25648, 588, 7729, 3233, 1489, 12, 2890, 18, 4181, 13, 327, 306, 13666, 2649, 11, 294, 293, 18, 2649, 16, 296, 3384, 11, 294, 293, 18, 3384, 16, 296, 1289, 1945, 11, 294, 1995, 87, 11, 738, 293, 18, 1289, 1945, 16, 289, 364, 293, 316, 365, 18, 4181, 18, 588, 986, 429, 18566, 2016, 1435, 65, 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, 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, 293, 18, 1289, 1945, 16, 289, 364, 293, 316, 365, 18, 4181, 18, 588, 986, 429, 18566, 2016, 1435, 65, 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 ]
transferOK = True break
if outFile in result['Value']['Successful']: transferOK = True break else: self.log.error( result['Value']['Failed'][outFile] )
def __retrieveAndUploadFile( self, file, outputDict ): """ Retrieve, Upload, and remove """ fileName = file inputPath = outputDict['InputPath'] inputFCName = outputDict['InputFC'] inBytes = 0 if inputFCName == 'LocalDisk': inFile = file file = os.path.join( inputPath, file ) else: inputFC = FileCatalog( [inputFCName] )
a31e5a9bcbb326ae3244947773584006435deb4c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12038/a31e5a9bcbb326ae3244947773584006435deb4c/OutputDataExecutor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 17466, 1876, 4777, 812, 12, 365, 16, 585, 16, 876, 5014, 262, 30, 3536, 10708, 16, 9414, 16, 471, 1206, 3536, 3968, 273, 585, 810, 743, 273, 876, 5014, 3292, 1210, 743, 3546, 810, 4488, 461, 273, 876, 5014, 3292, 1210, 4488, 3546, 316, 2160, 273, 374, 309, 810, 4488, 461, 422, 296, 2042, 6247, 4278, 316, 812, 273, 585, 585, 273, 1140, 18, 803, 18, 5701, 12, 810, 743, 16, 585, 262, 469, 30, 810, 4488, 273, 1387, 9769, 12, 306, 2630, 4488, 461, 65, 262, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 17466, 1876, 4777, 812, 12, 365, 16, 585, 16, 876, 5014, 262, 30, 3536, 10708, 16, 9414, 16, 471, 1206, 3536, 3968, 273, 585, 810, 743, 273, 876, 5014, 3292, 1210, 743, 3546, 810, 4488, 461, 273, 876, 5014, 3292, 1210, 4488, 3546, 316, 2160, 273, 374, 309, 810, 4488, 461, 422, 296, 2042, 6247, 4278, 316, 812, 273, 585, 585, 273, 1140, 18, 803, 18, 5701, 12, 810, 743, 16, 585, 262, 469, 30, 810, 4488, 273, 1387, 9769, 12, 306, 2630, 4488, 461, 65, 262, 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 ]
security.declareProtected(permissions.View, 'isBinary')
security.declareProtected(CMFCorePermissions.View, 'isBinary')
def getDefault(self, field): """Return the default value of a field. """ field = self.getField(field) return field.getDefault(self)
460696da815e0d1149ab34005370b03bdbb656a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/460696da815e0d1149ab34005370b03bdbb656a6/BaseObject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4829, 12, 2890, 16, 652, 4672, 3536, 990, 326, 805, 460, 434, 279, 652, 18, 3536, 652, 273, 365, 18, 588, 974, 12, 1518, 13, 327, 652, 18, 588, 1868, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4829, 12, 2890, 16, 652, 4672, 3536, 990, 326, 805, 460, 434, 279, 652, 18, 3536, 652, 273, 365, 18, 588, 974, 12, 1518, 13, 327, 652, 18, 588, 1868, 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 ]
['text', 't', 'terse text output'],
['text', 't', 'terse text output (default reporter)'],
def remove(self): if self in log.theLogPublisher.observers: log.removeObserver(self)
589f8d2ed2a40859e027e6ffb1bd79f3e45b6880 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/589f8d2ed2a40859e027e6ffb1bd79f3e45b6880/trial.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 12, 2890, 4672, 309, 365, 316, 613, 18, 5787, 1343, 15960, 18, 12199, 2496, 30, 613, 18, 4479, 11048, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 12, 2890, 4672, 309, 365, 316, 613, 18, 5787, 1343, 15960, 18, 12199, 2496, 30, 613, 18, 4479, 11048, 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 ]
console.warn("%s:
console.warn("%s:
def analyzeClassTree(variantSet):
03acac23db88b53461a31824d12c8fb37d715667 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/03acac23db88b53461a31824d12c8fb37d715667/Class.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12375, 797, 2471, 12, 8688, 694, 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,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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, 12375, 797, 2471, 12, 8688, 694, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def add_default_context (context, filename, lang):
def add_default_context (context, filename, hostname, lang):
def add_default_context (context, filename, lang): """add context variables used by all templates""" # rule macros path, dirs = wc.webgui.get_safe_template_path("macros/rules.html") rulemacros = wc.webgui.templatecache.templates[path] context_add(context, "rulemacros", rulemacros.macros) # standard macros path, dirs = wc.webgui.get_safe_template_path("macros/standard.html") macros = wc.webgui.templatecache.templates[path] context_add(context, "macros", macros.macros) # used by navigation macro add_nav_context(context, filename) # page template name context_add(context, "filename", filename) # base url context_add(context, "baseurl", "http://localhost:%d/" % wc.configuration.config['port']) add_i18n_context(context, lang)
53b93c33d68ac5e26138e799e719ffc04c434bfa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/53b93c33d68ac5e26138e799e719ffc04c434bfa/webconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 1886, 67, 2472, 261, 2472, 16, 1544, 16, 5199, 16, 3303, 4672, 3536, 1289, 819, 3152, 1399, 635, 777, 5539, 8395, 468, 1720, 24302, 589, 16, 7717, 273, 14310, 18, 4875, 20292, 18, 588, 67, 4626, 67, 3202, 67, 803, 2932, 5821, 6973, 19, 7482, 18, 2620, 7923, 1720, 5821, 6973, 273, 14310, 18, 4875, 20292, 18, 3202, 2493, 18, 8502, 63, 803, 65, 819, 67, 1289, 12, 2472, 16, 315, 5345, 5821, 6973, 3113, 1720, 5821, 6973, 18, 5821, 6973, 13, 468, 4529, 24302, 589, 16, 7717, 273, 14310, 18, 4875, 20292, 18, 588, 67, 4626, 67, 3202, 67, 803, 2932, 5821, 6973, 19, 10005, 18, 2620, 7923, 24302, 273, 14310, 18, 4875, 20292, 18, 3202, 2493, 18, 8502, 63, 803, 65, 819, 67, 1289, 12, 2472, 16, 315, 5821, 6973, 3113, 24302, 18, 5821, 6973, 13, 468, 1399, 635, 10394, 11522, 527, 67, 11589, 67, 2472, 12, 2472, 16, 1544, 13, 468, 1363, 1542, 508, 819, 67, 1289, 12, 2472, 16, 315, 3459, 3113, 1544, 13, 468, 1026, 880, 819, 67, 1289, 12, 2472, 16, 315, 1969, 718, 3113, 315, 2505, 2207, 13014, 5319, 72, 4898, 738, 14310, 18, 7025, 18, 1425, 3292, 655, 19486, 527, 67, 77, 2643, 82, 67, 2472, 12, 2472, 16, 3303, 13, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1886, 67, 2472, 261, 2472, 16, 1544, 16, 5199, 16, 3303, 4672, 3536, 1289, 819, 3152, 1399, 635, 777, 5539, 8395, 468, 1720, 24302, 589, 16, 7717, 273, 14310, 18, 4875, 20292, 18, 588, 67, 4626, 67, 3202, 67, 803, 2932, 5821, 6973, 19, 7482, 18, 2620, 7923, 1720, 5821, 6973, 273, 14310, 18, 4875, 20292, 18, 3202, 2493, 18, 8502, 63, 803, 65, 819, 67, 1289, 12, 2472, 16, 315, 5345, 5821, 6973, 3113, 1720, 5821, 6973, 18, 5821, 6973, 13, 468, 4529, 24302, 589, 16, 7717, 273, 14310, 18, 4875, 20292, 18, 588, 67, 4626, 67, 3202, 67, 803, 2932, 5821, 6973, 19, 10005, 18, 2620, 7923, 24302, 273, 14310, 18, 4875, 20292, 18, 2 ]
sys.path = old_syspath raise ToolNotFound(name)
try: mod = __import__('tools.'+name) mod = getattr(mod, name) except ImportError: sys.path = old_syspath raise ToolNotFound(name)
def import_tool(name, import_dir): """ Import a module based on its name from a list of directories. """ old_syspath = sys.path if tool_path not in sys.path: sys.path.insert(0, tool_path) sys.path = import_dir + sys.path sys.path.insert(0, os.path.dirname(__file__)) try: mod = __import__('tools.'+name) mod = getattr(mod, name) except ImportError: sys.path = old_syspath raise ToolNotFound(name) sys.path = old_syspath return mod
c6118951fa4e3b9a7e8d33b2a9b5074cdd427304 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6794/c6118951fa4e3b9a7e8d33b2a9b5074cdd427304/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 6738, 12, 529, 16, 1930, 67, 1214, 4672, 3536, 6164, 279, 1605, 2511, 603, 2097, 508, 628, 279, 666, 434, 6402, 18, 3536, 1592, 67, 9499, 803, 273, 2589, 18, 803, 225, 309, 5226, 67, 803, 486, 316, 2589, 18, 803, 30, 2589, 18, 803, 18, 6387, 12, 20, 16, 5226, 67, 803, 13, 225, 2589, 18, 803, 273, 1930, 67, 1214, 397, 2589, 18, 803, 2589, 18, 803, 18, 6387, 12, 20, 16, 1140, 18, 803, 18, 12287, 12, 972, 768, 972, 3719, 225, 775, 30, 681, 273, 1001, 5666, 972, 2668, 6642, 1093, 15, 529, 13, 681, 273, 3869, 12, 1711, 16, 508, 13, 1335, 11308, 30, 775, 30, 681, 273, 1001, 5666, 972, 2668, 6642, 1093, 15, 529, 13, 681, 273, 3869, 12, 1711, 16, 508, 13, 1335, 11308, 30, 2589, 18, 803, 273, 1592, 67, 9499, 803, 1002, 13288, 2768, 12, 529, 13, 225, 2589, 18, 803, 273, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 6738, 12, 529, 16, 1930, 67, 1214, 4672, 3536, 6164, 279, 1605, 2511, 603, 2097, 508, 628, 279, 666, 434, 6402, 18, 3536, 1592, 67, 9499, 803, 273, 2589, 18, 803, 225, 309, 5226, 67, 803, 486, 316, 2589, 18, 803, 30, 2589, 18, 803, 18, 6387, 12, 20, 16, 5226, 67, 803, 13, 225, 2589, 18, 803, 273, 1930, 67, 1214, 397, 2589, 18, 803, 2589, 18, 803, 18, 6387, 12, 20, 16, 1140, 18, 803, 18, 12287, 12, 972, 768, 972, 3719, 225, 775, 30, 681, 273, 1001, 5666, 972, 2668, 6642, 1093, 15, 529, 13, 681, 273, 3869, 12, 1711, 16, 508, 13, 1335, 11308, 30, 775, 30, 681, 273, 1001, 5666, 972, 2 ]
def compute(self, cr, uid, from_currency_id, to_currency_id, from_amount, round=True, context={}, account=None, account_invert=False):
def compute(self, cr, uid, from_currency_id, to_currency_id, from_amount, round=True, context=None, account=None, account_invert=False): if context is None: context = {}
def compute(self, cr, uid, from_currency_id, to_currency_id, from_amount, round=True, context={}, account=None, account_invert=False): if not from_currency_id: from_currency_id = to_currency_id if not to_currency_id: to_currency_id = from_currency_id xc = self.browse(cr, uid, [from_currency_id,to_currency_id], context=context) from_currency = (xc[0].id == from_currency_id and xc[0]) or xc[1] to_currency = (xc[0].id == to_currency_id and xc[0]) or xc[1] if from_currency['rate'] == 0 or to_currency['rate'] == 0: date = context.get('date', time.strftime('%Y-%m-%d')) if from_currency['rate'] == 0: code = from_currency.code else: code = to_currency.code raise osv.except_osv(_('Error'), _('No rate found \n' \ 'for the currency: %s \n' \ 'at the date: %s') % (code, date)) rate = to_currency.rate/from_currency.rate if account and (account.currency_mode=='average') and account.currency_id: q = self.pool.get('account.move.line')._query_get(cr, uid, context=context) cr.execute('select sum(debit-credit),sum(amount_currency) from account_move_line l ' \ 'where l.currency_id=%s and l.account_id=%s and '+q, (account.currency_id.id,account.id,)) tot1,tot2 = cr.fetchone() if tot2 and not account_invert: rate = float(tot1)/float(tot2) elif tot1 and account_invert: rate = float(tot2)/float(tot1) if to_currency_id==from_currency_id: if round: return self.round(cr, uid, to_currency, from_amount) else: return from_amount else: if round: return self.round(cr, uid, to_currency, from_amount * rate) else: return (from_amount * rate)
237c9091dc9f7becb567ed67ae88fac3e96f5a28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/237c9091dc9f7becb567ed67ae88fac3e96f5a28/res_currency.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 12, 2890, 16, 4422, 16, 4555, 16, 628, 67, 7095, 67, 350, 16, 358, 67, 7095, 67, 350, 16, 628, 67, 8949, 16, 3643, 33, 5510, 16, 819, 33, 7036, 16, 2236, 33, 7036, 16, 2236, 67, 267, 1097, 33, 8381, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 309, 486, 628, 67, 7095, 67, 350, 30, 628, 67, 7095, 67, 350, 273, 358, 67, 7095, 67, 350, 309, 486, 358, 67, 7095, 67, 350, 30, 358, 67, 7095, 67, 350, 273, 628, 67, 7095, 67, 350, 15192, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, 306, 2080, 67, 7095, 67, 350, 16, 869, 67, 7095, 67, 350, 6487, 819, 33, 2472, 13, 628, 67, 7095, 273, 261, 6511, 63, 20, 8009, 350, 422, 628, 67, 7095, 67, 350, 471, 15192, 63, 20, 5717, 578, 15192, 63, 21, 65, 358, 67, 7095, 273, 261, 6511, 63, 20, 8009, 350, 422, 358, 67, 7095, 67, 350, 471, 15192, 63, 20, 5717, 578, 15192, 63, 21, 65, 309, 628, 67, 7095, 3292, 5141, 3546, 422, 374, 578, 358, 67, 7095, 3292, 5141, 3546, 422, 374, 30, 1509, 273, 819, 18, 588, 2668, 712, 2187, 813, 18, 701, 9982, 29909, 61, 6456, 81, 6456, 72, 26112, 309, 628, 67, 7095, 3292, 5141, 3546, 422, 374, 30, 981, 273, 628, 67, 7095, 18, 710, 469, 30, 981, 273, 358, 67, 7095, 18, 710, 1002, 1140, 90, 18, 14137, 67, 538, 90, 24899, 2668, 668, 19899, 389, 2668, 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, 3671, 12, 2890, 16, 4422, 16, 4555, 16, 628, 67, 7095, 67, 350, 16, 358, 67, 7095, 67, 350, 16, 628, 67, 8949, 16, 3643, 33, 5510, 16, 819, 33, 7036, 16, 2236, 33, 7036, 16, 2236, 67, 267, 1097, 33, 8381, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 309, 486, 628, 67, 7095, 67, 350, 30, 628, 67, 7095, 67, 350, 273, 358, 67, 7095, 67, 350, 309, 486, 358, 67, 7095, 67, 350, 30, 358, 67, 7095, 67, 350, 273, 628, 67, 7095, 67, 350, 15192, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, 306, 2080, 67, 7095, 67, 350, 16, 869, 67, 7095, 67, 350, 6487, 819, 33, 2472, 13, 628, 67, 2 ]
self.assert_(ua[0,0,0] == ua2[0,0,0]) self.assert_(ua[-1,-1,-1] == ua2[-1,-1,-1])
self.assert_(ua[0,0,0] != ua2[0,0,0]) self.assert_(ua[-1,-1,-1] != ua2[-1,-1,-1])
def check_valuesMD(self): """Check byteorder of multi-dimensional objects""" ua = array([[[self.ucs_value*self.ulen]*2]*3]*4, dtype='U%s' % self.ulen) ua2 = ua.newbyteorder() self.assert_(ua[0,0,0] == ua2[0,0,0]) self.assert_(ua[-1,-1,-1] == ua2[-1,-1,-1]) ua3 = ua2.newbyteorder() # Arrays must be equal after the round-trip assert_equal(ua, ua3)
9fa5c5a1d36ff690db92fa4b55fc10172f50a1ad /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/9fa5c5a1d36ff690db92fa4b55fc10172f50a1ad/test_unicode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2372, 6188, 12, 2890, 4672, 3536, 1564, 1160, 1019, 434, 3309, 17, 31236, 2184, 8395, 10165, 273, 526, 3816, 31128, 2890, 18, 89, 2143, 67, 1132, 14, 2890, 18, 332, 275, 5772, 22, 5772, 23, 5772, 24, 16, 3182, 2218, 57, 9, 87, 11, 738, 365, 18, 332, 275, 13, 10165, 22, 273, 10165, 18, 2704, 7229, 1019, 1435, 365, 18, 11231, 67, 12, 11886, 63, 20, 16, 20, 16, 20, 65, 480, 10165, 22, 63, 20, 16, 20, 16,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2372, 6188, 12, 2890, 4672, 3536, 1564, 1160, 1019, 434, 3309, 17, 31236, 2184, 8395, 10165, 273, 526, 3816, 31128, 2890, 18, 89, 2143, 67, 1132, 14, 2890, 18, 332, 275, 5772, 22, 5772, 23, 5772, 24, 16, 3182, 2218, 57, 9, 87, 11, 738, 365, 18, 332, 275, 13, 10165, 22, 273, 10165, 18, 2704, 7229, 1019, 1435, 365, 18, 11231, 67, 12, 11886, 63, 20, 16, 20, 16, 20, 65, 480, 10165, 22, 63, 20, 16, 20, 16, 20, 5717, 365, 18, 11231, 67, 12, 11886, 18919, 21, 16, 17, 21, 16, 17, 21, 65, 480, 10165, 22, 18919, 21, 16, 17, 21, 16, 17, 21, 5717, 10165, 23, 273, 10165, 22, 18, 2704, 2 ]
new_price = new_price * to_uom.factor
new_price = new_price * Decimal(str(to_uom.factor))
def compute_price(self, cursor, user, from_uom, price, to_uom=False): """ Convert price for given uom's. from_uom and to_uom should be browse records. """ if not from_uom or not price or not to_uom: return price if from_uom.category.id <> to_uom.category.id: return price if from_uom.factor >= 1.0: new_price = float(price) / from_uom.factor else: new_price = float(price) * from_uom.rate
6864894139ace8c4aeff87ec481618aeddd0c6d1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9285/6864894139ace8c4aeff87ec481618aeddd0c6d1/uom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 67, 8694, 12, 2890, 16, 3347, 16, 729, 16, 628, 67, 89, 362, 16, 6205, 16, 358, 67, 89, 362, 33, 8381, 4672, 3536, 4037, 6205, 364, 864, 582, 362, 1807, 18, 628, 67, 89, 362, 471, 358, 67, 89, 362, 1410, 506, 21670, 3853, 18, 3536, 309, 486, 628, 67, 89, 362, 578, 486, 6205, 578, 486, 358, 67, 89, 362, 30, 327, 6205, 309, 628, 67, 89, 362, 18, 4743, 18, 350, 2813, 358, 67, 89, 362, 18, 4743, 18, 350, 30, 327, 6205, 309, 628, 67, 89, 362, 18, 6812, 1545, 404, 18, 20, 30, 394, 67, 8694, 273, 1431, 12, 8694, 13, 342, 628, 67, 89, 362, 18, 6812, 469, 30, 394, 67, 8694, 273, 1431, 12, 8694, 13, 380, 628, 67, 89, 362, 18, 5141, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 67, 8694, 12, 2890, 16, 3347, 16, 729, 16, 628, 67, 89, 362, 16, 6205, 16, 358, 67, 89, 362, 33, 8381, 4672, 3536, 4037, 6205, 364, 864, 582, 362, 1807, 18, 628, 67, 89, 362, 471, 358, 67, 89, 362, 1410, 506, 21670, 3853, 18, 3536, 309, 486, 628, 67, 89, 362, 578, 486, 6205, 578, 486, 358, 67, 89, 362, 30, 327, 6205, 309, 628, 67, 89, 362, 18, 4743, 18, 350, 2813, 358, 67, 89, 362, 18, 4743, 18, 350, 30, 327, 6205, 309, 628, 67, 89, 362, 18, 6812, 1545, 404, 18, 20, 30, 394, 67, 8694, 273, 1431, 12, 8694, 13, 342, 628, 67, 89, 362, 18, 6812, 469, 30, 394, 67, 2 ]
UpdateNode(admin, node_id, {'hostname': hostname, 'model': model})
UpdateNode(admin, node_id, node_fields)
def unicmp(a, b, encoding = "utf-8"): """ When connected directly to the DB, values are returned as raw 8-bit strings that may need to be decoded (as UTF-8 by default) in order to compare them against expected Python Unicode strings. """ is8bit = re.compile("[\x80-\xff]").search if isinstance(a, str) and is8bit(a): a = unicode(a, encoding) if isinstance(b, str) and is8bit(b): b = unicode(b, encoding) return a == b
f51dbe12c30f8473b083ea86b3dade41e56f4615 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/f51dbe12c30f8473b083ea86b3dade41e56f4615/Test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 335, 1291, 12, 69, 16, 324, 16, 2688, 273, 315, 3158, 17, 28, 6, 4672, 3536, 5203, 5840, 5122, 358, 326, 2383, 16, 924, 854, 2106, 487, 1831, 1725, 17, 3682, 2064, 716, 2026, 1608, 358, 506, 6383, 261, 345, 6380, 17, 28, 635, 805, 13, 316, 1353, 358, 3400, 2182, 5314, 2665, 6600, 9633, 2064, 18, 3536, 225, 353, 28, 3682, 273, 283, 18, 11100, 2932, 7438, 92, 3672, 6943, 5297, 4279, 2934, 3072, 309, 1549, 12, 69, 16, 609, 13, 471, 353, 28, 3682, 12, 69, 4672, 279, 273, 5252, 12, 69, 16, 2688, 13, 309, 1549, 12, 70, 16, 609, 13, 471, 353, 28, 3682, 12, 70, 4672, 324, 273, 5252, 12, 70, 16, 2688, 13, 327, 279, 422, 324, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 335, 1291, 12, 69, 16, 324, 16, 2688, 273, 315, 3158, 17, 28, 6, 4672, 3536, 5203, 5840, 5122, 358, 326, 2383, 16, 924, 854, 2106, 487, 1831, 1725, 17, 3682, 2064, 716, 2026, 1608, 358, 506, 6383, 261, 345, 6380, 17, 28, 635, 805, 13, 316, 1353, 358, 3400, 2182, 5314, 2665, 6600, 9633, 2064, 18, 3536, 225, 353, 28, 3682, 273, 283, 18, 11100, 2932, 7438, 92, 3672, 6943, 5297, 4279, 2934, 3072, 309, 1549, 12, 69, 16, 609, 13, 471, 353, 28, 3682, 12, 69, 4672, 279, 273, 5252, 12, 69, 16, 2688, 13, 309, 1549, 12, 70, 16, 609, 13, 471, 353, 28, 3682, 12, 70, 4672, 324, 273, 5252, 12, 70, 16, 2 ]
if values != None: entry.set_text(values[row]) else: entry.set_text("")
value = values and values[row] or "" entry.set_text(value)
def MatchChanged(widget, match, entry): entry.set_text(match)
3e5b998595c7bc924f12039d8adb4be59a72fbf2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7062/3e5b998595c7bc924f12039d8adb4be59a72fbf2/Settings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4639, 5033, 12, 6587, 16, 845, 16, 1241, 4672, 1241, 18, 542, 67, 955, 12, 1916, 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,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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 ]
[('code', 'like', name + '%')] + args,
[('code', 'like', name + '%')] + (args or []),
def name_search(self, cursor, user, name='', args=None, operator='ilike', context=None, limit=None): if name: ids = self.search(cursor, user, [('code', 'like', name + '%')] + args, limit=limit, context=context) if not ids: ids = self.search(cursor, user, [(self._rec_name, operator, name)] + args, limit=limit, context=context) else: ids = self.search(cursor, user, args, limit=limit, context=context) res = self.name_get(cursor, user, ids, context=context) return res
ccd75033ce2688e4e7b95ce46f257a08b15e5738 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9290/ccd75033ce2688e4e7b95ce46f257a08b15e5738/account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 67, 3072, 12, 2890, 16, 3347, 16, 729, 16, 508, 2218, 2187, 833, 33, 7036, 16, 3726, 2218, 330, 2547, 2187, 819, 33, 7036, 16, 1800, 33, 7036, 4672, 309, 508, 30, 3258, 273, 365, 18, 3072, 12, 9216, 16, 729, 16, 306, 2668, 710, 2187, 296, 5625, 2187, 508, 397, 1995, 6134, 65, 397, 261, 1968, 578, 5378, 3631, 1800, 33, 3595, 16, 819, 33, 2472, 13, 309, 486, 3258, 30, 3258, 273, 365, 18, 3072, 12, 9216, 16, 729, 16, 306, 12, 2890, 6315, 3927, 67, 529, 16, 3726, 16, 508, 25887, 397, 833, 16, 1800, 33, 3595, 16, 819, 33, 2472, 13, 469, 30, 3258, 273, 365, 18, 3072, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 67, 3072, 12, 2890, 16, 3347, 16, 729, 16, 508, 2218, 2187, 833, 33, 7036, 16, 3726, 2218, 330, 2547, 2187, 819, 33, 7036, 16, 1800, 33, 7036, 4672, 309, 508, 30, 3258, 273, 365, 18, 3072, 12, 9216, 16, 729, 16, 306, 2668, 710, 2187, 296, 5625, 2187, 508, 397, 1995, 6134, 65, 397, 261, 1968, 578, 5378, 3631, 1800, 33, 3595, 16, 819, 33, 2472, 13, 309, 486, 3258, 30, 3258, 273, 365, 18, 3072, 12, 9216, 16, 729, 16, 306, 12, 2890, 6315, 3927, 67, 529, 16, 3726, 16, 508, 25887, 397, 833, 16, 1800, 33, 3595, 16, 819, 33, 2472, 13, 469, 30, 3258, 273, 365, 18, 3072, 12, 9216, 16, 729, 16, 2 ]
if not veingem: veingem = createwoodgem( target, pos )
def response( args ): target = args[0] tool = args[1] char = args[2] socket = char.socket pos = target.pos if not socket: return False if socket.hastag('is_lumberjacking') and ( socket.gettag( 'is_lumberjacking' ) > wolfpack.time.currenttime() ): socket.clilocmessage( 500119, "", GRAY ) return False else: socket.deltag('is_lumberjacking') # Player can reach that ? if char.pos.map != pos.map or char.pos.distance( pos ) > chopdistance: # That is too far away socket.clilocmessage( 500446, "", GRAY ) return True #Player also can't lumberjack when riding, polymorphed and dead. if char.itemonlayer( LAYER_MOUNT ): # You can't use this while on a mount! char.socket.clilocmessage( 1049627, "", GRAY ) return False ########## veingem = getvein( socket, pos, target ) # OK, we still don't have a veingem to get our wood, lets create it here. if not veingem: veingem = createwoodgem( target, pos ) if not veingem: veingem = createwoodgem( target, pos ) if not veingem.hastag( 'resname' ) or not veingem.hastag( 'resourcecount' ): return False elif veingem.hastag( 'resname' ): resname = veingem.gettag( 'resname' ) socket.settag( 'is_lumberjacking', int( wolfpack.time.currenttime() + nextchopdelay ) ) hack_logs( char, target, tool, veingem ) return True
51c43553980d27f067d6941661cdfa9a5efc9576 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/51c43553980d27f067d6941661cdfa9a5efc9576/lumberjacking.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 766, 12, 833, 262, 30, 1018, 273, 833, 63, 20, 65, 5226, 273, 833, 63, 21, 65, 1149, 273, 833, 63, 22, 65, 2987, 273, 1149, 18, 7814, 949, 273, 1018, 18, 917, 225, 309, 486, 2987, 30, 327, 1083, 225, 309, 2987, 18, 76, 689, 346, 2668, 291, 67, 80, 1226, 78, 484, 310, 6134, 471, 261, 2987, 18, 588, 2692, 12, 296, 291, 67, 80, 1226, 78, 484, 310, 11, 262, 405, 341, 355, 74, 2920, 18, 957, 18, 2972, 957, 1435, 262, 30, 2987, 18, 830, 330, 504, 2150, 12, 6604, 23635, 16, 23453, 611, 6722, 262, 327, 1083, 469, 30, 2987, 18, 3771, 2692, 2668, 291, 67, 80, 1226, 78, 484, 310, 6134, 225, 468, 19185, 848, 9287, 716, 692, 309, 1149, 18, 917, 18, 1458, 480, 949, 18, 1458, 578, 1149, 18, 917, 18, 8969, 12, 949, 262, 405, 31258, 8969, 30, 468, 12466, 353, 4885, 10247, 10804, 2987, 18, 830, 330, 504, 2150, 12, 6604, 6334, 26, 16, 23453, 611, 6722, 262, 327, 1053, 225, 468, 12148, 2546, 848, 1404, 328, 1226, 78, 484, 1347, 436, 10415, 16, 2952, 2942, 7657, 329, 471, 8363, 18, 309, 1149, 18, 1726, 265, 6363, 12, 25239, 654, 67, 5980, 5321, 262, 30, 468, 4554, 848, 1404, 999, 333, 1323, 603, 279, 5344, 5, 1149, 18, 7814, 18, 830, 330, 504, 2150, 12, 1728, 7616, 26, 5324, 16, 23453, 611, 6722, 262, 327, 1083, 225, 468, 3228, 7, 10489, 310, 351, 273, 336, 537, 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, 766, 12, 833, 262, 30, 1018, 273, 833, 63, 20, 65, 5226, 273, 833, 63, 21, 65, 1149, 273, 833, 63, 22, 65, 2987, 273, 1149, 18, 7814, 949, 273, 1018, 18, 917, 225, 309, 486, 2987, 30, 327, 1083, 225, 309, 2987, 18, 76, 689, 346, 2668, 291, 67, 80, 1226, 78, 484, 310, 6134, 471, 261, 2987, 18, 588, 2692, 12, 296, 291, 67, 80, 1226, 78, 484, 310, 11, 262, 405, 341, 355, 74, 2920, 18, 957, 18, 2972, 957, 1435, 262, 30, 2987, 18, 830, 330, 504, 2150, 12, 6604, 23635, 16, 23453, 611, 6722, 262, 327, 1083, 469, 30, 2987, 18, 3771, 2692, 2668, 291, 67, 80, 1226, 78, 484, 310, 6134, 225, 2 ]
'repository root %s may not be anonymous'
__doc__ = 'repository root %s may not be anonymous'
def __str__(self): return self.__doc__ %(self.getItem().itsPath, self.args[1])
882ec29c58d7c23ddb882075e0f9b8014f465197 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/882ec29c58d7c23ddb882075e0f9b8014f465197/ItemError.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 365, 16186, 2434, 972, 8975, 2890, 18, 588, 1180, 7675, 1282, 743, 16, 365, 18, 1968, 63, 21, 5717, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1282, 743, 16, 365, 18, 1968, 63, 21, 5717, 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 ]
domain="[('company', '=', parent.company)]")
domain="[('company', '=', _parent_invoice.company)]")
def _refund(self, cursor, user, line, context=None): ''' Return values to refund line. ''' res = {}
539479e0405abbee5564053fa837d5346bb3c202 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9267/539479e0405abbee5564053fa837d5346bb3c202/invoice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1734, 1074, 12, 2890, 16, 3347, 16, 729, 16, 980, 16, 819, 33, 7036, 4672, 9163, 2000, 924, 358, 16255, 980, 18, 9163, 400, 273, 2618, 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, 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 326, 22398, 316, 326, 981, 30, 1652, 389, 1734, 1074, 12, 2890, 16, 3347, 16, 729, 16, 980, 16, 819, 33, 7036, 4672, 9163, 2000, 924, 358, 16255, 980, 18, 9163, 400, 273, 2618, 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 ]
""" Test simulation """
"""Test simulation"""
def testFixedSimulation(self): """ Test simulation """ assert self.m.isFixedStartTime(), "Only fixed times supported." assert self.m.isFixedFinalTime(), "Only fixed times supported." T, ys, sens, ignore = solve_using_sundials(self.m, self.m.getFinalTime(), self.m.getStartTime()) p.plot(T, ys) p.title('testFixedSimulation(...) output') #p.show()
733964346bd705d3e3fa78795693f8a99289c936 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/733964346bd705d3e3fa78795693f8a99289c936/shooting.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 7505, 18419, 12, 2890, 4672, 3536, 4709, 14754, 8395, 1815, 365, 18, 81, 18, 291, 7505, 13649, 9334, 315, 3386, 5499, 4124, 3260, 1199, 1815, 365, 18, 81, 18, 291, 7505, 7951, 950, 9334, 315, 3386, 5499, 4124, 3260, 1199, 225, 399, 16, 16036, 16, 15390, 16, 2305, 273, 12439, 67, 9940, 67, 87, 1074, 649, 87, 12, 2890, 18, 81, 16, 365, 18, 81, 18, 588, 7951, 950, 9334, 365, 18, 81, 18, 588, 13649, 10756, 225, 293, 18, 4032, 12, 56, 16, 16036, 13, 293, 18, 2649, 2668, 3813, 7505, 18419, 5825, 13, 876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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 7505, 18419, 12, 2890, 4672, 3536, 4709, 14754, 8395, 1815, 365, 18, 81, 18, 291, 7505, 13649, 9334, 315, 3386, 5499, 4124, 3260, 1199, 1815, 365, 18, 81, 18, 291, 7505, 7951, 950, 9334, 315, 3386, 5499, 4124, 3260, 1199, 225, 399, 16, 16036, 16, 15390, 16, 2305, 273, 12439, 67, 9940, 67, 87, 1074, 649, 87, 12, 2890, 18, 81, 16, 365, 18, 81, 18, 588, 7951, 950, 9334, 365, 18, 81, 18, 588, 13649, 10756, 225, 293, 18, 4032, 12, 56, 16, 16036, 13, 293, 18, 2649, 2668, 3813, 7505, 18419, 5825, 13, 876, 6134, 468, 84, 18, 4500, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'en')
CFG_SITE_LANG)
def test_wash_language(self): """messages - washing single language""" self.assertEqual(messages.wash_language('python'), CFG_SITE_LANG)
aeac88e9e5fa9c2f68b97fe9779d93e4cb4dad31 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/aeac88e9e5fa9c2f68b97fe9779d93e4cb4dad31/messages_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 91, 961, 67, 4923, 12, 2890, 4672, 3536, 6833, 300, 341, 961, 310, 2202, 2653, 8395, 365, 18, 11231, 5812, 12, 6833, 18, 91, 961, 67, 4923, 2668, 8103, 19899, 7577, 67, 20609, 67, 10571, 13, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 91, 961, 67, 4923, 12, 2890, 4672, 3536, 6833, 300, 341, 961, 310, 2202, 2653, 8395, 365, 18, 11231, 5812, 12, 6833, 18, 91, 961, 67, 4923, 2668, 8103, 19899, 7577, 67, 20609, 67, 10571, 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 ]
source_path = self.source_path(name) bytecode_path = self.bytecode_path(name) module.__file__ = source_path if source_path else bytecode_path
try: source_path = self.source_path(name) except ImportError: source_path = None try: bytecode_path = self.bytecode_path(name) except ImportError: bytecode_path = None module.__file__ = source_path or bytecode_path
def load_module(self, module): """Load a module from source or bytecode.""" name = module.__name__ source_path = self.source_path(name) bytecode_path = self.bytecode_path(name) module.__file__ = source_path if source_path else bytecode_path return self._load_module(module)
5e1258e28acaea9a4e67454173ff8e79d9a3facc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/5e1258e28acaea9a4e67454173ff8e79d9a3facc/_bootstrap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 2978, 12, 2890, 16, 1605, 4672, 3536, 2563, 279, 1605, 628, 1084, 578, 22801, 12123, 508, 273, 1605, 16186, 529, 972, 775, 30, 1084, 67, 803, 273, 365, 18, 3168, 67, 803, 12, 529, 13, 1335, 11308, 30, 1084, 67, 803, 273, 599, 775, 30, 22801, 67, 803, 273, 365, 18, 1637, 16651, 67, 803, 12, 529, 13, 1335, 11308, 30, 22801, 67, 803, 273, 599, 225, 1605, 16186, 768, 972, 273, 1084, 67, 803, 578, 22801, 67, 803, 327, 365, 6315, 945, 67, 2978, 12, 2978, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 2978, 12, 2890, 16, 1605, 4672, 3536, 2563, 279, 1605, 628, 1084, 578, 22801, 12123, 508, 273, 1605, 16186, 529, 972, 775, 30, 1084, 67, 803, 273, 365, 18, 3168, 67, 803, 12, 529, 13, 1335, 11308, 30, 1084, 67, 803, 273, 599, 775, 30, 22801, 67, 803, 273, 365, 18, 1637, 16651, 67, 803, 12, 529, 13, 1335, 11308, 30, 22801, 67, 803, 273, 599, 225, 1605, 16186, 768, 972, 273, 1084, 67, 803, 578, 22801, 67, 803, 327, 365, 6315, 945, 67, 2978, 12, 2978, 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 ]
f = mutagen.mp3.MP3(track, ID3=easyid3.EasyID3)
f = mutagen.mp3.MP3(filename, ID3=easyid3.EasyID3)
def _get_track(filename): f = mutagen.File(track) if f is None: raise Exception("%s caused problems." % (track,)) if isinstance(f, mutagen.mp3.MP3): f = mutagen.mp3.MP3(track, ID3=easyid3.EasyID3) return f
6fff878ac1377970c30f0253b06cf694c0eb552e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6447/6fff878ac1377970c30f0253b06cf694c0eb552e/offline-submit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 4101, 12, 3459, 4672, 284, 273, 4318, 346, 275, 18, 812, 12, 4101, 13, 309, 284, 353, 599, 30, 1002, 1185, 27188, 87, 15848, 9688, 1199, 738, 261, 4101, 16, 3719, 309, 1549, 12, 74, 16, 4318, 346, 275, 18, 1291, 23, 18, 4566, 23, 4672, 284, 273, 4318, 346, 275, 18, 1291, 23, 18, 4566, 23, 12, 3459, 16, 1599, 23, 33, 73, 15762, 350, 23, 18, 41, 15762, 734, 23, 13, 327, 284, 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, 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4318, 346, 275, 18, 1291, 23, 18, 4566, 23, 12, 3459, 16, 1599, 23, 33, 73, 15762, 350, 23, 18, 41, 15762, 734, 23, 13, 327, 284, 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 ]
obj.removeChild(obj.children[0])
if self.table_size_calc == 0: obj.removeChild(obj.children[0])
def writeSection(self, obj): lvl = getattr(obj, "level", 4) if self.license_mode: headingStyle = heading_style("license") else: headingStyle = heading_style('section', lvl=lvl+1) if not obj.children: return ''
cc5429af3ccbe9055551fa7d858da75c9f9ec556 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12390/cc5429af3ccbe9055551fa7d858da75c9f9ec556/rlwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 5285, 12, 2890, 16, 1081, 4672, 14864, 273, 3869, 12, 2603, 16, 315, 2815, 3113, 1059, 13, 309, 365, 18, 12687, 67, 3188, 30, 11053, 2885, 273, 11053, 67, 4060, 2932, 12687, 7923, 469, 30, 11053, 2885, 273, 11053, 67, 4060, 2668, 3464, 2187, 14864, 33, 25748, 15, 21, 13, 309, 486, 1081, 18, 5906, 30, 327, 875, 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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 30, 1652, 1045, 5285, 12, 2890, 16, 1081, 4672, 14864, 273, 3869, 12, 2603, 16, 315, 2815, 3113, 1059, 13, 309, 365, 18, 12687, 67, 3188, 30, 11053, 2885, 273, 11053, 67, 4060, 2932, 12687, 7923, 469, 30, 11053, 2885, 273, 11053, 67, 4060, 2668, 3464, 2187, 14864, 33, 25748, 15, 21, 13, 309, 486, 1081, 18, 5906, 30, 327, 875, 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 ]
def fl_get_decoration_sizes(form, top, right, bottom, left): """ fl_get_decoration_sizes(form, top, right, bottom, left) -> size num. """ retval = _fl_get_decoration_sizes(form, top, right, bottom, left)
def fl_get_decoration_sizes(pForm, top, right, bottom, left): """ fl_get_decoration_sizes(pForm, top, right, bottom, left) -> size num. """ retval = _fl_get_decoration_sizes(pForm, top, right, bottom, left)
def fl_get_decoration_sizes(form, top, right, bottom, left): """ fl_get_decoration_sizes(form, top, right, bottom, left) -> size num. """ retval = _fl_get_decoration_sizes(form, top, right, bottom, left) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 588, 67, 11880, 367, 67, 11914, 12, 84, 1204, 16, 1760, 16, 2145, 16, 5469, 16, 2002, 4672, 3536, 1183, 67, 588, 67, 11880, 367, 67, 11914, 12, 84, 1204, 16, 1760, 16, 2145, 16, 5469, 16, 2002, 13, 317, 963, 818, 18, 3536, 225, 5221, 273, 389, 2242, 67, 588, 67, 11880, 367, 67, 11914, 12, 84, 1204, 16, 1760,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 588, 67, 11880, 367, 67, 11914, 12, 84, 1204, 16, 1760, 16, 2145, 16, 5469, 16, 2002, 4672, 3536, 1183, 67, 588, 67, 11880, 367, 67, 11914, 12, 84, 1204, 16, 1760, 16, 2145, 16, 5469, 16, 2002, 13, 317, 963, 818, 18, 3536, 225, 5221, 273, 389, 2242, 67, 588, 67, 11880, 367, 67, 11914, 12, 84, 1204, 16, 1760, 16, 2145, 16, 5469, 16, 2002, 13, 327, 5221, 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 ]
edgeComponent[face.label()] = componentCount
faceComponent[face.label()] = componentCount
def markAlphaShapes(delaunayMap, alpha, beta = 0.0): if not hasattr(delaunayMap, "circumCircles"): print "- reconstructing triangle circumcircles..." delaunayMap.circumCircles = \ delaunay.calculateTriangleCircumcircles(delaunayMap) # store parameters for convenience: delaunayMap.alpha = alpha delaunayMap.beta = beta print "- marking triangles with radii < alpha(%s)..." % (alpha, ) for triangle in delaunayMap.faceIter(skipInfinite = True): triangle.setFlag(ALPHA_MARK, delaunayMap.circumCircles[triangle.label()][0] < alpha) print "- marking edges with empty circle radii < alpha(%s)..." % (alpha, ) for edge in delaunayMap.edgeIter(): assert len(edge) == 2, "markAlphaShapes() expects a delaunay map!" edge.setFlag(ALPHA_MARK, edge.leftFace().flag(ALPHA_MARK) or edge.rightFace().flag(ALPHA_MARK)) if edge.flag(ALPHA_MARK): continue p1 = edge.startNode().position() p2 = edge.endNode().position() midPoint = (p1 + p2)/2 radius = edge.length()/2 edge.setFlag(ALPHA_MARK, radius < alpha) if edge.flag(ALPHA_MARK): empty = True radius2 = math.sq(radius) it = edge.dart().sigmaOrbit(); it.next() for dart in it: if (dart.endNode().position()-midPoint).squaredMagnitude() < radius2: empty = False break it = edge.dart().nextAlpha().sigmaOrbit(); it.next() for dart in it: if (dart.endNode().position()-midPoint).squaredMagnitude() < radius2: empty = False break
cf7a993009c79c13865201b5ea4e5b01eeae13fd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/cf7a993009c79c13865201b5ea4e5b01eeae13fd/alphashapes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2267, 9690, 30080, 12, 3771, 69, 318, 528, 863, 16, 4190, 16, 6796, 273, 374, 18, 20, 4672, 309, 486, 3859, 12, 3771, 69, 318, 528, 863, 16, 315, 11614, 28538, 10887, 9558, 6, 4672, 1172, 3701, 23243, 310, 15002, 29951, 11614, 9558, 7070, 1464, 69, 318, 528, 863, 18, 11614, 28538, 10887, 9558, 273, 521, 1464, 69, 318, 528, 18, 11162, 31506, 10887, 28538, 11614, 9558, 12, 3771, 69, 318, 528, 863, 13, 225, 468, 1707, 1472, 364, 13553, 30, 1464, 69, 318, 528, 863, 18, 5429, 273, 4190, 1464, 69, 318, 528, 863, 18, 5758, 273, 6796, 225, 1172, 3701, 24073, 19959, 598, 28125, 411, 4190, 9275, 87, 13, 7070, 738, 261, 5429, 16, 262, 364, 15002, 316, 1464, 69, 318, 528, 863, 18, 865, 2360, 12, 7457, 382, 9551, 273, 1053, 4672, 15002, 18, 542, 4678, 12, 26313, 67, 12693, 16, 1464, 69, 318, 528, 863, 18, 11614, 28538, 10887, 9558, 63, 16857, 4341, 18, 1925, 1435, 6362, 20, 65, 411, 4190, 13, 225, 1172, 3701, 24073, 5231, 598, 1008, 12470, 28125, 411, 4190, 9275, 87, 13, 7070, 738, 261, 5429, 16, 262, 364, 3591, 316, 1464, 69, 318, 528, 863, 18, 7126, 2360, 13332, 1815, 562, 12, 7126, 13, 422, 576, 16, 315, 3355, 9690, 30080, 1435, 10999, 279, 1464, 69, 318, 528, 852, 4442, 3591, 18, 542, 4678, 12, 26313, 67, 12693, 16, 3591, 18, 4482, 11824, 7675, 6420, 12, 26313, 67, 12693, 13, 578, 3591, 18, 4083, 11824, 7675, 6420, 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, 2267, 9690, 30080, 12, 3771, 69, 318, 528, 863, 16, 4190, 16, 6796, 273, 374, 18, 20, 4672, 309, 486, 3859, 12, 3771, 69, 318, 528, 863, 16, 315, 11614, 28538, 10887, 9558, 6, 4672, 1172, 3701, 23243, 310, 15002, 29951, 11614, 9558, 7070, 1464, 69, 318, 528, 863, 18, 11614, 28538, 10887, 9558, 273, 521, 1464, 69, 318, 528, 18, 11162, 31506, 10887, 28538, 11614, 9558, 12, 3771, 69, 318, 528, 863, 13, 225, 468, 1707, 1472, 364, 13553, 30, 1464, 69, 318, 528, 863, 18, 5429, 273, 4190, 1464, 69, 318, 528, 863, 18, 5758, 273, 6796, 225, 1172, 3701, 24073, 19959, 598, 28125, 411, 4190, 9275, 87, 13, 7070, 738, 261, 5429, 16, 262, 364, 2 ]
size='tiny' else: size='small'
size='\\tiny\n' else: size=''
def _latex_file_(objects, title='SAGE', expert=True, debug=False, \ sep='', tiny=False, math_left='\\[', math_right='\\]', extra_preamble=''): """ Compute a latex file that defines a representation of each object in objects. INPUT: - ``objects`` - list (or object) - ``title`` - string (default: 'Sage'): title for the document - ``expert`` - bool (default: True): mode passed on to xdvi - ``debug`` - bool (default: False): print verbose output - ``sep`` - string (default: ''): separator between math objects - ``tiny`` - bool (default: False): use 'tiny' font. - ``extra_preamble`` - string (default: ''): extra LaTeX commands, inserted before "\\begin{document}" EXAMPLES:: sage: from sage.misc.latex import _latex_file_ sage: _latex_file_(3, title="The number three") '\\documentclass{article}\\usepackage{fullpage}\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage{amsfonts}\\usepackage{graphicx}\\usepackage{pstricks}\\pagestyle{empty}\n\n\n\\begin{document}\n\\begin{center}{\\Large\\bf The number three}\\end{center}\n\\thispagestyle{empty}\n \\small \\vfill\\thispagestyle{empty}\\pagestyle{empty}\n\n \\[ 3 \\]\n\n\\vfill \\end{document}' """ process = True if hasattr(objects, '_latex_'): objects = [objects] if hasattr(objects, '__doc__') and hasattr(objects, 'func_name'): process = False title = "\\begin{verbatim}%s\\end{verbatim}"%objects.func_name objects = [objects.__doc__] if not isinstance(objects, list): objects = [objects] if expert: expert='-expert' else: expert='' if tiny: size='tiny' else: size='small' s = LATEX_HEADER s += '\n%s\n\\begin{document}\n\\begin{center}{\\Large\\bf %s}\\end{center}\n\\thispagestyle{empty}\n \\%s '%( extra_preamble, title, size) #s += "(If something is missing it may be on the next page or there may be errors in the latex. Use view with {\\tt debug=True}.)\\vfill" s += '\\vfill' if process: for i in range(len(objects)): x = objects[i] L = latex(x) if not '\\begin{verbatim}' in L: s += '\\thispagestyle{empty}\\pagestyle{empty}\n\n %s %s %s'%(math_left, latex(x), math_right) else: s += '\\thispagestyle{empty}\\pagestyle{empty}\n\n %s'%latex(x) if i < len(objects)-1: s += '\n\n%s\n\n'%sep else: s += "\n\n".join([str(x) for x in objects]) s += '\n\n\\vfill \\end{document}' if debug: print s return s
b3f5271ce8ebaef2fd699daf15885cb3c8bcf677 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/b3f5271ce8ebaef2fd699daf15885cb3c8bcf677/latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 26264, 67, 768, 67, 12, 6911, 16, 2077, 2218, 55, 2833, 2187, 431, 672, 33, 5510, 16, 1198, 33, 8381, 16, 521, 5478, 2218, 2187, 24405, 33, 8381, 16, 4233, 67, 4482, 2218, 1695, 63, 2187, 4233, 67, 4083, 2218, 1695, 65, 2187, 2870, 67, 84, 793, 7119, 2218, 11, 4672, 3536, 8155, 279, 25079, 585, 716, 11164, 279, 4335, 434, 1517, 733, 316, 2184, 18, 225, 12943, 30, 282, 300, 225, 12176, 6911, 10335, 300, 666, 261, 280, 733, 13, 225, 300, 225, 12176, 2649, 10335, 300, 533, 261, 1886, 30, 296, 55, 410, 11, 4672, 2077, 364, 326, 1668, 225, 300, 225, 12176, 338, 672, 10335, 300, 1426, 261, 1886, 30, 1053, 4672, 1965, 2275, 603, 358, 20009, 522, 225, 300, 225, 12176, 4148, 10335, 300, 1426, 261, 1886, 30, 1083, 4672, 1172, 3988, 876, 225, 300, 225, 12176, 10814, 10335, 300, 533, 261, 1886, 30, 875, 4672, 4182, 3086, 4233, 2184, 225, 300, 225, 12176, 88, 11652, 10335, 300, 1426, 261, 1886, 30, 1083, 4672, 999, 296, 88, 11652, 11, 3512, 18, 225, 300, 225, 12176, 7763, 67, 84, 793, 7119, 10335, 300, 533, 261, 1886, 30, 875, 4672, 2870, 21072, 21575, 60, 4364, 16, 9564, 1865, 8422, 10086, 95, 5457, 1532, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 628, 272, 410, 18, 23667, 18, 26264, 1930, 389, 26264, 67, 768, 67, 272, 410, 30, 389, 26264, 67, 768, 67, 12, 23, 16, 2077, 1546, 1986, 1300, 8925, 7923, 3718, 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, 26264, 67, 768, 67, 12, 6911, 16, 2077, 2218, 55, 2833, 2187, 431, 672, 33, 5510, 16, 1198, 33, 8381, 16, 521, 5478, 2218, 2187, 24405, 33, 8381, 16, 4233, 67, 4482, 2218, 1695, 63, 2187, 4233, 67, 4083, 2218, 1695, 65, 2187, 2870, 67, 84, 793, 7119, 2218, 11, 4672, 3536, 8155, 279, 25079, 585, 716, 11164, 279, 4335, 434, 1517, 733, 316, 2184, 18, 225, 12943, 30, 282, 300, 225, 12176, 6911, 10335, 300, 666, 261, 280, 733, 13, 225, 300, 225, 12176, 2649, 10335, 300, 533, 261, 1886, 30, 296, 55, 410, 11, 4672, 2077, 364, 326, 1668, 225, 300, 225, 12176, 338, 672, 10335, 300, 1426, 261, 1886, 30, 1053, 4672, 1965, 2275, 2 ]
'uk': u'Обговорення Вікіпедія',
'uk': u'Обговорення Вікіпедії',
def __init__(self): family.Family.__init__(self) self.name = 'wikipedia'
808000870a20d801f2032c13ef3f6594821fba1f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/808000870a20d801f2032c13ef3f6594821fba1f/wikipedia_family.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 6755, 18, 9203, 16186, 2738, 972, 12, 2890, 13, 365,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 6755, 18, 9203, 16186, 2738, 972, 12, 2890, 13, 365, 18, 529, 273, 296, 11999, 13744, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
raise repository.PackageMissing(pkgName, version)
raise PackageMissing(pkgName, version)
def getTrove(self, pkgName, version, flavor, pristine = True):
a365cd43920845a9122ecbc3a530b18553b04db4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/a365cd43920845a9122ecbc3a530b18553b04db4/fsrepos.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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3181, 303, 537, 12, 2890, 16, 27288, 16, 1177, 16, 19496, 16, 846, 376, 558, 273, 1053, 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 ]
print 'q mov: ',q_mov print 'qda antes: ',q_des print 'subtotal antes: ',subtot print 'total antes: ',tot print 'avg antes: ',prom
def compute_compra(self, cr, uid, ids, scl_obj, q_mov,tot,prom,q_des): subtot = 0.0 print 'q mov: ',q_mov print 'qda antes: ',q_des print 'subtotal antes: ',subtot print 'total antes: ',tot print 'avg antes: ',prom q_des+=q_mov print 'realizando calculo compra:' subtot = scl_obj.invoice_price_unit*q_mov tot += subtot if q_des > 0: prom = tot/q_des else: prom = 0 print 'subtotal despues: ',subtot print 'total despues: ',tot print 'avg despues: ',prom print 'qda despues:',q_des res = (q_des,subtot,tot,prom) return res
62ca858ba796453e95db5d16001d237fb203c2e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7359/62ca858ba796453e95db5d16001d237fb203c2e9/stock_card.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 67, 2919, 354, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 31648, 67, 2603, 16, 1043, 67, 81, 1527, 16, 3307, 16, 17401, 16, 85, 67, 5489, 4672, 720, 3307, 273, 374, 18, 20, 1377, 1043, 67, 5489, 15, 33, 85, 67, 81, 1527, 1172, 296, 7688, 452, 28630, 3026, 83, 1161, 354, 2497, 720, 3307, 273, 31648, 67, 2603, 18, 16119, 67, 8694, 67, 4873, 14, 85, 67, 81, 1527, 9997, 1011, 720, 3307, 309, 1043, 67, 5489, 405, 374, 30, 3012, 273, 9997, 19, 85, 67, 5489, 469, 30, 3012, 273, 374, 225, 1172, 296, 1717, 4963, 2832, 84, 3610, 30, 2265, 1717, 3307, 1172, 296, 4963, 2832, 84, 3610, 30, 2265, 3307, 1172, 296, 14141, 2832, 84, 3610, 30, 2265, 17401, 1172, 296, 85, 2414, 2832, 84, 3610, 30, 2187, 85, 67, 5489, 400, 273, 261, 85, 67, 5489, 16, 1717, 3307, 16, 3307, 16, 17401, 13, 327, 400, 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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, 85, 67, 5489, 4672, 720, 3307, 273, 374, 18, 20, 1377, 1043, 67, 5489, 15, 33, 85, 67, 81, 1527, 1172, 296, 7688, 452, 28630, 3026, 83, 1161, 354, 2497, 720, 3307, 273, 31648, 67, 2603, 18, 16119, 67, 8694, 67, 4873, 14, 85, 67, 81, 1527, 9997, 1011, 720, 3307, 309, 1043, 67, 5489, 405, 374, 30, 3012, 273, 9997, 19, 85, 67, 5489, 469, 30, 3012, 273, 374, 225, 1172, 296, 1717, 4963, 2832, 84, 3610, 30, 2265, 1717, 3307, 1172, 296, 4963, 2832, 84, 3610, 30, 2265, 3307, 1172, 2 ]
self.address_entry.set_width(80)
def __init__(self): widgetset.HBox.__init__(self)
d3b0827a1fafcc41aa843d17d78e5353f165888f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/d3b0827a1fafcc41aa843d17d78e5353f165888f/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 3604, 542, 18, 44, 3514, 16186, 2738, 972, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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 1001, 2738, 972, 12, 2890, 4672, 3604, 542, 18, 44, 3514, 16186, 2738, 972, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
@checkAuth(write = True, admin = True)
@checkAuth(admin = True)
def editPermForm(self, auth, group, label, trove, writeperm, capped, admin): groups = (x[1] for x in self.repServer.auth.iterGroups()) labels = (x[1] for x in self.repServer.auth.iterLabels()) troves = (x[1] for x in self.repServer.auth.iterItems())
da24c3346d4fa9223ceb3365b4262bfdf7e6ba3c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/da24c3346d4fa9223ceb3365b4262bfdf7e6ba3c/http.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 9123, 1204, 12, 2890, 16, 1357, 16, 1041, 16, 1433, 16, 23432, 537, 16, 1045, 12160, 16, 3523, 1845, 16, 3981, 4672, 3252, 273, 261, 92, 63, 21, 65, 364, 619, 316, 365, 18, 14462, 2081, 18, 1944, 18, 2165, 3621, 10756, 3249, 273, 261, 92, 63, 21, 65, 364, 619, 316, 365, 18, 14462, 2081, 18, 1944, 18, 2165, 5888, 10756, 23432, 3324, 273, 261, 92, 63, 21, 65, 364, 619, 316, 365, 18, 14462, 2081, 18, 1944, 18, 2165, 3126, 10756, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 9123, 1204, 12, 2890, 16, 1357, 16, 1041, 16, 1433, 16, 23432, 537, 16, 1045, 12160, 16, 3523, 1845, 16, 3981, 4672, 3252, 273, 261, 92, 63, 21, 65, 364, 619, 316, 365, 18, 14462, 2081, 18, 1944, 18, 2165, 3621, 10756, 3249, 273, 261, 92, 63, 21, 65, 364, 619, 316, 365, 18, 14462, 2081, 18, 1944, 18, 2165, 5888, 10756, 23432, 3324, 273, 261, 92, 63, 21, 65, 364, 619, 316, 365, 18, 14462, 2081, 18, 1944, 18, 2165, 3126, 10756, 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 ]
cfg.read(useroptions)
cfg.readfp(codecs.open(useroptions, "r", "utf8"))
def setUseroptions(self, useroptions): """ Change variables through a user supplied configuration file return False and exit the script if there are issues with the configuration file values """ if useroptions[0]=='~': useroptions=os.path.expanduser("~")+useroptions[1:] if os.path.isfile(useroptions) == False: sys.stderr.write( "\n! Error: The specified user configuration file (%s) is not a file\n" % useroptions ) sys.exit(1) cfg = ConfigParser.SafeConfigParser() cfg.read(useroptions) for section in cfg.sections(): if section[:5] == 'File ': self.config['config_file'] = section[5:] continue if section == 'variables': # Change variables per user config file for option in cfg.options(section): if option == 'video_file_exts' or option == 'tmdb_genre_filter' or option == 'metadata_exclude_as_update_trigger': tmp_list = (cfg.get(section, option).rstrip()).split(',') for i in range(len(tmp_list)): tmp_list[i] = (tmp_list[i].strip()).lower() self.config[option] = tmp_list continue if option == 'filename_char_filter': for char in cfg.get(section, option): self.config['filename_char_filter']+=char continue if option == 'translate': s_e = (cfg.get(section, option).rstrip()).split(',') if not len(s_e) == 2: continue for index in range(len(s_e)): s_e[index] = s_e[index].strip() self.config['fullname_parse_season_episode_translation'] = {u'slash': u'\\', u'season': s_e[0], u'episode': s_e[1]} continue
3fbe9485470580e3af883e6dc05da0f382e6b158 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13713/3fbe9485470580e3af883e6dc05da0f382e6b158/jamu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14365, 2116, 12, 2890, 16, 729, 2116, 4672, 3536, 565, 7576, 3152, 3059, 279, 729, 4580, 1664, 585, 327, 1083, 471, 2427, 326, 2728, 309, 1915, 854, 8296, 598, 326, 1664, 585, 924, 3536, 309, 729, 2116, 63, 20, 65, 18920, 98, 4278, 729, 2116, 33, 538, 18, 803, 18, 12320, 1355, 2932, 98, 7923, 15, 1355, 2116, 63, 21, 26894, 309, 1140, 18, 803, 18, 291, 768, 12, 1355, 2116, 13, 422, 1083, 30, 2589, 18, 11241, 18, 2626, 12, 1548, 82, 5, 1068, 30, 1021, 1269, 729, 1664, 585, 6142, 87, 13, 353, 486, 279, 585, 64, 82, 6, 738, 729, 2116, 262, 2589, 18, 8593, 12, 21, 13, 2776, 273, 25076, 18, 9890, 809, 2678, 1435, 2776, 18, 896, 7944, 12, 710, 2143, 18, 3190, 12, 1355, 2116, 16, 315, 86, 3113, 315, 3158, 28, 6, 3719, 364, 2442, 316, 2776, 18, 11657, 13332, 309, 2442, 10531, 25, 65, 422, 296, 812, 4290, 365, 18, 1425, 3292, 1425, 67, 768, 3546, 273, 2442, 63, 25, 26894, 1324, 309, 2442, 422, 296, 7528, 4278, 468, 7576, 3152, 1534, 729, 642, 585, 364, 1456, 316, 2776, 18, 2116, 12, 3464, 4672, 309, 1456, 422, 296, 9115, 67, 768, 67, 408, 87, 11, 578, 1456, 422, 296, 88, 27574, 67, 4507, 266, 67, 2188, 11, 578, 1456, 422, 296, 4165, 67, 10157, 67, 345, 67, 2725, 67, 10668, 4278, 1853, 67, 1098, 273, 261, 7066, 18, 588, 12, 3464, 16, 1456, 2934, 86, 6406, 1435, 2934, 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, 14365, 2116, 12, 2890, 16, 729, 2116, 4672, 3536, 565, 7576, 3152, 3059, 279, 729, 4580, 1664, 585, 327, 1083, 471, 2427, 326, 2728, 309, 1915, 854, 8296, 598, 326, 1664, 585, 924, 3536, 309, 729, 2116, 63, 20, 65, 18920, 98, 4278, 729, 2116, 33, 538, 18, 803, 18, 12320, 1355, 2932, 98, 7923, 15, 1355, 2116, 63, 21, 26894, 309, 1140, 18, 803, 18, 291, 768, 12, 1355, 2116, 13, 422, 1083, 30, 2589, 18, 11241, 18, 2626, 12, 1548, 82, 5, 1068, 30, 1021, 1269, 729, 1664, 585, 6142, 87, 13, 353, 486, 279, 585, 64, 82, 6, 738, 729, 2116, 262, 2589, 18, 8593, 12, 21, 13, 2776, 273, 25076, 18, 9890, 809, 2678, 2 ]
else: return len(item.children) > 0
def outlineView_isItemExpandable_(self, view, item): if item is nil: return len(self.model) > 0 else: return len(item.children) > 0
10ebe942bacef2dea768da1d25cb2ee86be8ca84 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/10ebe942bacef2dea768da1d25cb2ee86be8ca84/tablemodel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16363, 1767, 67, 291, 1180, 12271, 429, 67, 12, 2890, 16, 1476, 16, 761, 4672, 309, 761, 353, 515, 30, 327, 562, 12, 2890, 18, 2284, 13, 405, 374, 469, 30, 327, 562, 12, 1726, 18, 5906, 13, 405, 374, 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,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 16363, 1767, 67, 291, 1180, 12271, 429, 67, 12, 2890, 16, 1476, 16, 761, 4672, 309, 761, 353, 515, 30, 327, 562, 12, 2890, 18, 2284, 13, 405, 374, 469, 30, 327, 562, 12, 1726, 18, 5906, 13, 405, 374, 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 ]
node.setAttribute(attr, msgcat[value])
node.setAttribute(attr, unicode(msgcat[value], 'UTF-8'))
def apply_attributes(self, node, msgcat): """handle Zope-style i18n:attributes""" attrnames = node.getAttributeNS(I18NNS, 'attributes').split(' ') for attr in attrnames: value = node.getAttribute(attr) if value and msgcat.has_key(value): node.setAttribute(attr, msgcat[value]) node.removeAttributeNS(I18NNS, 'attributes')
cea975deb8fdc5c579d874e46d092f04a62760f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10193/cea975deb8fdc5c579d874e46d092f04a62760f7/nationalizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 4350, 12, 2890, 16, 756, 16, 1234, 2574, 4672, 3536, 4110, 2285, 1306, 17, 4060, 277, 2643, 82, 30, 4350, 8395, 1604, 1973, 273, 756, 18, 588, 1499, 3156, 12, 45, 2643, 50, 3156, 16, 296, 4350, 16063, 4939, 2668, 8624, 364, 1604, 316, 1604, 1973, 30, 460, 273, 756, 18, 588, 1499, 12, 1747, 13, 309, 460, 471, 1234, 2574, 18, 5332, 67, 856, 12, 1132, 4672, 756, 18, 542, 1499, 12, 1747, 16, 5252, 12, 3576, 2574, 63, 1132, 6487, 296, 5159, 17, 28, 26112, 756, 18, 4479, 1499, 3156,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 4350, 12, 2890, 16, 756, 16, 1234, 2574, 4672, 3536, 4110, 2285, 1306, 17, 4060, 277, 2643, 82, 30, 4350, 8395, 1604, 1973, 273, 756, 18, 588, 1499, 3156, 12, 45, 2643, 50, 3156, 16, 296, 4350, 16063, 4939, 2668, 8624, 364, 1604, 316, 1604, 1973, 30, 460, 273, 756, 18, 588, 1499, 12, 1747, 13, 309, 460, 471, 1234, 2574, 18, 5332, 67, 856, 12, 1132, 4672, 756, 18, 542, 1499, 12, 1747, 16, 5252, 12, 3576, 2574, 63, 1132, 6487, 296, 5159, 17, 28, 26112, 756, 18, 4479, 1499, 3156, 12, 45, 2643, 50, 3156, 16, 296, 4350, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if cc[x,y] == 15:
if cc[x,y] == CONN_ALL4:
def crackEdgeGraph(labelImage, eightConnectedRegions = True, progressHook = None): result = GeoMap(labelImage.size()) cc = crackConnectionImage(labelImage) if eightConnectedRegions: for y in range(1, cc.height()-1): for x in range(1, cc.width()-1): if cc[x,y] == 15: if labelImage[x,y] == labelImage[x-1,y-1]: cc[x,y] += 16 if labelImage[x-1,y] == labelImage[x,y-1]: cc[x,y] += 32 if cc[x,y] == 15+16+32: # crossing regions? if labelImage[x,y-1] > labelImage[x-1,y-1]: cc[x,y] -= 16 else: cc[x,y] -= 32 nodeImage = GrayImage(cc.size()) progressHook = progressHook and progressHook.rangeTicker(cc.height()) for y in range(cc.height()): if progressHook: progressHook() for x in range(cc.width()): nodeConn = int(cc[x, y]) if isNode(nodeConn): startNodeInfo = int(nodeImage[x, y]) if startNodeInfo: startNode = result.node(startNodeInfo >> 4) else: startNode = result.addNode((x - 0.5, y - 0.5)) nodeImage[x, y] = startNodeInfo = startNode.label() << 4 for direction, startConn in enumerate(connections): if nodeConn & startConn and not startNodeInfo & startConn: edge, endPos, endConn = followEdge( cc, (x, y), direction) endNodeInfo = int(nodeImage[endPos]) if not endNodeInfo: endNode = result.addNode((endPos[0] - 0.5, endPos[1] - 0.5)) endNodeInfo = endNode.label() << 4 else: assert not endNodeInfo & endConn, "double connection?" endNode = result.node(endNodeInfo >> 4) edge = result.addEdge(startNode, endNode, edge) startNodeInfo |= startConn if edge.isLoop(): startNodeInfo |= endConn nodeImage[x, y] = startNodeInfo else: nodeImage[x, y] = startNodeInfo nodeImage[endPos] = endNodeInfo | endConn return result
a94194260b0ee2a979b184709c2d70b6c499169d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10394/a94194260b0ee2a979b184709c2d70b6c499169d/crackConvert.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 21580, 6098, 4137, 12, 1925, 2040, 16, 425, 750, 8932, 17344, 273, 1053, 16, 4007, 5394, 273, 599, 4672, 563, 273, 9385, 863, 12, 1925, 2040, 18, 1467, 10756, 225, 4946, 273, 276, 21580, 1952, 2040, 12, 1925, 2040, 13, 225, 309, 425, 750, 8932, 17344, 30, 364, 677, 316, 1048, 12, 21, 16, 4946, 18, 4210, 1435, 17, 21, 4672, 364, 619, 316, 1048, 12, 21, 16, 4946, 18, 2819, 1435, 17, 21, 4672, 309, 4946, 63, 92, 16, 93, 65, 422, 3492, 50, 67, 4685, 24, 30, 309, 1433, 2040, 63, 92, 16, 93, 65, 422, 1433, 2040, 63, 92, 17, 21, 16, 93, 17, 21, 14542, 4946, 63, 92, 16, 93, 65, 1011, 2872, 309, 1433, 2040, 63, 92, 17, 21, 16, 93, 65, 422, 1433, 2040, 63, 92, 16, 93, 17, 21, 14542, 4946, 63, 92, 16, 93, 65, 1011, 3847, 309, 4946, 63, 92, 16, 93, 65, 422, 4711, 15, 2313, 15, 1578, 30, 468, 6828, 310, 10085, 35, 309, 1433, 2040, 63, 92, 16, 93, 17, 21, 65, 405, 1433, 2040, 63, 92, 17, 21, 16, 93, 17, 21, 14542, 4946, 63, 92, 16, 93, 65, 3947, 2872, 469, 30, 4946, 63, 92, 16, 93, 65, 3947, 3847, 225, 756, 2040, 273, 12435, 2040, 12, 952, 18, 1467, 10756, 225, 4007, 5394, 273, 4007, 5394, 471, 4007, 5394, 18, 3676, 18008, 12, 952, 18, 4210, 10756, 225, 364, 677, 316, 1048, 12, 952, 18, 4210, 1435, 4672, 309, 4007, 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, 276, 21580, 6098, 4137, 12, 1925, 2040, 16, 425, 750, 8932, 17344, 273, 1053, 16, 4007, 5394, 273, 599, 4672, 563, 273, 9385, 863, 12, 1925, 2040, 18, 1467, 10756, 225, 4946, 273, 276, 21580, 1952, 2040, 12, 1925, 2040, 13, 225, 309, 425, 750, 8932, 17344, 30, 364, 677, 316, 1048, 12, 21, 16, 4946, 18, 4210, 1435, 17, 21, 4672, 364, 619, 316, 1048, 12, 21, 16, 4946, 18, 2819, 1435, 17, 21, 4672, 309, 4946, 63, 92, 16, 93, 65, 422, 3492, 50, 67, 4685, 24, 30, 309, 1433, 2040, 63, 92, 16, 93, 65, 422, 1433, 2040, 63, 92, 17, 21, 16, 93, 17, 21, 14542, 4946, 63, 92, 16, 93, 65, 1011, 2872, 2 ]
return rope.base.evaluate.eval_location(pymodule, offset) new_code = pymodule.source_code
newoffset = self.commenter.transfered_offset(offset) return rope.base.evaluate.eval_location(pymodule, newoffset)
def new_pyname(): return rope.base.evaluate.eval_location(pymodule, offset)
0b381a74dcc32f76ab9edd868a7d868bb23c152e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8286/0b381a74dcc32f76ab9edd868a7d868bb23c152e/fixsyntax.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 2074, 529, 13332, 327, 721, 347, 18, 1969, 18, 21024, 18, 8622, 67, 3562, 12, 2074, 2978, 16, 1384, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 2074, 529, 13332, 327, 721, 347, 18, 1969, 18, 21024, 18, 8622, 67, 3562, 12, 2074, 2978, 16, 1384, 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 ]
outfile.write("epsilon: %s\n" % material)
outfile.write(("epsilon: %s\n" % material).rjust(32))
def write_neu(self, outfile, bc={}, periodicity=None, description="MeshPy Output"): """Write the mesh out in (an approximation to) Gambit neutral mesh format. outfile is a file-like object opened for writing.
e612e6cba98f1df1a6bc8fc8ec0a96dc35ccf72e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11985/e612e6cba98f1df1a6bc8fc8ec0a96dc35ccf72e/common.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 4644, 89, 12, 2890, 16, 8756, 16, 6533, 28793, 17478, 560, 33, 7036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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 4644, 89, 12, 2890, 16, 8756, 16, 6533, 28793, 17478, 560, 33, 7036, 16, 2477, 1546, 16748, 9413, 3633, 6, 4672, 3536, 3067, 326, 6986, 596, 316, 261, 304, 24769, 358, 13, 611, 2536, 305, 22403, 287, 6986, 740, 18, 225, 8756, 353, 279, 585, 17, 5625, 733, 10191, 364, 7410, 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 ]
context_company=values.get('context_company',False)
context_company=values.get('company',False)
def write(self, cr, uid, ids, values, *args, **argv): if (ids == [uid]): ok = True for k in values.keys(): if k not in ('password','signature','action_id', 'context_lang', 'context_tz'): ok=False if ok: uid = 1 context_company=values.get('context_company',False) if context_company: values.update({'company_id':context_company}) res = super(users, self).write(cr, uid, ids, values, *args, **argv) self.company_get.clear_cache(cr.dbname) # Restart the cache on the company_get method self.pool.get('ir.rule').domain_get.clear_cache(cr.dbname) self.pool.get('ir.model.access').call_cache_clearing_methods(cr) return res
9f57df820d1cf494db875ed671ff85b6596451e1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/9f57df820d1cf494db875ed671ff85b6596451e1/res_user.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 924, 16, 380, 1968, 16, 2826, 19485, 4672, 309, 261, 2232, 422, 306, 1911, 65, 4672, 1529, 273, 1053, 364, 417, 316, 924, 18, 2452, 13332, 309, 417, 486, 316, 7707, 3664, 17023, 8195, 17023, 1128, 67, 350, 2187, 296, 2472, 67, 4936, 2187, 296, 2472, 67, 12994, 11, 4672, 1529, 33, 8381, 309, 1529, 30, 4555, 273, 404, 819, 67, 16840, 33, 2372, 18, 588, 2668, 16840, 2187, 8381, 13, 309, 819, 67, 16840, 30, 924, 18, 2725, 12590, 11, 16840, 67, 350, 4278, 2472, 67, 16840, 6792, 400, 273, 2240, 12, 5577, 16, 365, 2934, 2626, 12, 3353, 16, 4555, 16, 3258, 16, 924, 16, 380, 1968, 16, 2826, 19485, 13, 365, 18, 16840, 67, 588, 18, 8507, 67, 2493, 12, 3353, 18, 20979, 13, 468, 20709, 326, 1247, 603, 326, 9395, 67, 588, 707, 365, 18, 6011, 18, 588, 2668, 481, 18, 5345, 16063, 4308, 67, 588, 18, 8507, 67, 2493, 12, 3353, 18, 20979, 13, 365, 18, 6011, 18, 588, 2668, 481, 18, 2284, 18, 3860, 16063, 1991, 67, 2493, 67, 2131, 5968, 67, 5163, 12, 3353, 13, 327, 400, 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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1128, 67, 350, 2187, 296, 2472, 67, 4936, 2187, 296, 2472, 67, 12994, 11, 4672, 1529, 33, 8381, 309, 1529, 30, 4555, 273, 404, 819, 67, 16840, 33, 2372, 18, 588, 2668, 16840, 2187, 8381, 13, 309, 819, 67, 16840, 30, 924, 18, 2725, 12590, 11, 16840, 67, 350, 4278, 2472, 67, 16840, 6792, 400, 273, 2240, 12, 5577, 16, 365, 2934, 2626, 12, 3353, 16, 4555, 16, 3258, 16, 924, 16, 380, 2 ]
else
else:
def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 189) else quickfix.DoubleField.__init__(self, 189, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 6549, 29, 13, 469, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 6549, 29, 16, 501, 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,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422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 6549, 29, 13, 469, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 6549, 29, 16, 501, 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 ]
return table[(fen,board.color)]
if (fen,board.color) in table: return table[(fen,board.color)] return []
def probeEndGameTable (board): fen = board.asFen().split()[0] + " w - - 0 1" if (fen,board.color) in table: return table[(fen,board.color)] # k4it has all 6-men tables except 5 vs. 1 whites = bitLength(board.friends[WHITE]) blacks = bitLength(board.friends[BLACK]) if whites >= 5 or blacks >= 5 or whites+blacks >= 7: return [] # Request the page f = urllib.urlopen(URL + fen) data = f.read() # Parse for color, move_data in enumerate(data.split("\nNEXTCOLOR\n")): moves = [] for fcord, tcord, promotion, result in expression.findall(move_data): fcord = int(fcord) tcord = int(tcord) if promotion: flag = PROMOTION_FLAGS[int(promotion)] elif RANK(fcord) != RANK(tcord) and FILE(fcord) != FILE(tcord) and \ board.arBoard[fcord] == PAWN and board.arBoard[tcord] == EMPTY: flag = ENPASSANT else: flag = NORMAL_MOVE move = newMove(fcord, tcord, flag) if result == "Draw": state = DRAW steps = 0 else: s, steps = result.split(" in ") steps = int(steps) if result.startswith("Win"): if board.color == WHITE: state = (WHITEWON, int(steps)) else: state = (BLACKWON, int(steps)) elif result.startswith("Lose"): if board.color == WHITE: state = (BLACKWON, int(steps)) else: state = (WHITEWON, int(steps)) moves.append( (move,state,steps) ) if moves: table[(fen,board.color)] = moves else: log.warn("Unable to get egtb data for position: %s.\nData was: %s" % (board.asFen(), repr(data))) return table[(fen,board.color)]
2938467cb07839fd68786e0e9a310306cfd4652c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5339/2938467cb07839fd68786e0e9a310306cfd4652c/egtb_k4it.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10695, 1638, 12496, 1388, 261, 3752, 4672, 225, 284, 275, 273, 11094, 18, 345, 42, 275, 7675, 4939, 1435, 63, 20, 65, 397, 315, 341, 300, 300, 374, 404, 6, 309, 261, 74, 275, 16, 3752, 18, 3266, 13, 316, 1014, 30, 309, 261, 74, 275, 16, 3752, 18, 3266, 13, 316, 1014, 30, 327, 1014, 63, 12, 74, 275, 16, 3752, 18, 3266, 25887, 327, 5378, 225, 468, 417, 24, 305, 711, 777, 1666, 17, 27617, 4606, 1335, 1381, 6195, 18, 404, 600, 2997, 273, 2831, 1782, 12, 3752, 18, 74, 22259, 63, 16861, 5717, 7721, 87, 273, 2831, 1782, 12, 3752, 18, 74, 22259, 63, 14618, 3649, 5717, 309, 600, 2997, 1545, 1381, 578, 7721, 87, 1545, 1381, 578, 600, 2997, 15, 11223, 87, 1545, 2371, 30, 327, 5378, 225, 468, 1567, 326, 1363, 284, 273, 11527, 18, 295, 18589, 12, 1785, 397, 284, 275, 13, 501, 273, 284, 18, 896, 1435, 225, 468, 2884, 364, 2036, 16, 3635, 67, 892, 316, 4241, 12, 892, 18, 4939, 31458, 82, 25539, 10989, 64, 82, 6, 3719, 30, 13934, 273, 5378, 364, 284, 901, 16, 268, 901, 16, 23024, 16, 563, 316, 2652, 18, 4720, 454, 12, 8501, 67, 892, 4672, 284, 901, 273, 509, 12, 74, 901, 13, 268, 901, 273, 509, 12, 88, 901, 13, 225, 309, 23024, 30, 2982, 273, 453, 3942, 1974, 1146, 67, 17836, 63, 474, 12, 17401, 8240, 25887, 1327, 534, 20201, 12, 74, 901, 13, 480, 534, 20201, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10695, 1638, 12496, 1388, 261, 3752, 4672, 225, 284, 275, 273, 11094, 18, 345, 42, 275, 7675, 4939, 1435, 63, 20, 65, 397, 315, 341, 300, 300, 374, 404, 6, 309, 261, 74, 275, 16, 3752, 18, 3266, 13, 316, 1014, 30, 309, 261, 74, 275, 16, 3752, 18, 3266, 13, 316, 1014, 30, 327, 1014, 63, 12, 74, 275, 16, 3752, 18, 3266, 25887, 327, 5378, 225, 468, 417, 24, 305, 711, 777, 1666, 17, 27617, 4606, 1335, 1381, 6195, 18, 404, 600, 2997, 273, 2831, 1782, 12, 3752, 18, 74, 22259, 63, 16861, 5717, 7721, 87, 273, 2831, 1782, 12, 3752, 18, 74, 22259, 63, 14618, 3649, 5717, 309, 600, 2997, 1545, 1381, 578, 7721, 87, 2 ]
ctypes.wintypes.LPVOID, ctypes.wintypes.LPVOID,
LPVOID, LPVOID,
def _errcheck_dword(value,func,args): if value == 0xFFFFFFFF: raise ctypes.WinError() return args
b48424cc33bd65f08cb7677556bae8ea3bd3ba34 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5579/b48424cc33bd65f08cb7677556bae8ea3bd3ba34/watch_win32.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 370, 1893, 67, 72, 1095, 12, 1132, 16, 644, 16, 1968, 4672, 309, 460, 422, 374, 28949, 30, 1002, 6983, 18, 18049, 668, 1435, 327, 833, 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,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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 ]
if len(fitsinId): config = Plugin_fitsin.objects.filter(id = int(fitsinId))[0]
if len(taskId): config = Plugin_fitsin.objects.filter(task__id = int(taskId))[0]
def __getCondorSubmissionFile(self, request, idList): """ Generates a suitable Condor submission for processing images on the cluster.
cfcfcf6404796a43733b6c544e84111ce5cd6ead /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11651/cfcfcf6404796a43733b6c544e84111ce5cd6ead/qualityfitsin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 12441, 280, 17865, 812, 12, 2890, 16, 590, 16, 29174, 4672, 3536, 31902, 279, 10631, 735, 72, 280, 8515, 364, 4929, 4602, 603, 326, 2855, 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, 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, 326, 981, 30, 1652, 1001, 588, 12441, 280, 17865, 812, 12, 2890, 16, 590, 16, 29174, 4672, 3536, 31902, 279, 10631, 735, 72, 280, 8515, 364, 4929, 4602, 603, 326, 2855, 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 ]