rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
def errcheck(result, func, arguments): if result < 0: errno = ctypes.get_errno() raise OSError(errno, os.strerror(errno)) return result libc = ctypes.CDLL(ctypes.util.find_library("c"), use_errno=True) libc.inotify_init.argtypes = [] libc.inotify_init.errcheck = errcheck libc.inotify_init1.argtypes = [ctypes.c_int]...
def errcheck(result, func, arguments): if result < 0: errno = ctypes.get_errno() raise OSError(errno, os.strerror(errno)) return result
cd4adef5bbe7c15f648d858e0fd291f85642892b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13731/cd4adef5bbe7c15f648d858e0fd291f85642892b/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 393, 1893, 12, 2088, 16, 1326, 16, 1775, 4672, 309, 563, 411, 374, 30, 8402, 273, 6983, 18, 588, 67, 19088, 1435, 1002, 10002, 12, 19088, 16, 1140, 18, 701, 1636, 12, 19088, 3719, 225,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 393, 1893, 12, 2088, 16, 1326, 16, 1775, 4672, 309, 563, 411, 374, 30, 8402, 273, 6983, 18, 588, 67, 19088, 1435, 1002, 10002, 12, 19088, 16, 1140, 18, 701, 1636, 12, 19088, 3719, 225,...
tf.close()
tf.close()
def createPackedInputSandbox(sandbox_files,inws,name): """Put all sandbox_files into tarball called name and write it into to the input workspace. This function is called by Ganga client at the submission time. Arguments: 'sandbox_files': a list of File or FileBuffer objects. 'inws': a InputFileWorkspace object Return:...
3975c813beb1813bd20f0bfbca2b9570fe12bca8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/3975c813beb1813bd20f0bfbca2b9570fe12bca8/Sandbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 4420, 329, 1210, 17881, 12, 27004, 67, 2354, 16, 267, 4749, 16, 529, 4672, 3536, 6426, 777, 15202, 67, 2354, 1368, 29441, 2566, 508, 471, 1045, 518, 1368, 358, 326, 810, 6003, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 4420, 329, 1210, 17881, 12, 27004, 67, 2354, 16, 267, 4749, 16, 529, 4672, 3536, 6426, 777, 15202, 67, 2354, 1368, 29441, 2566, 508, 471, 1045, 518, 1368, 358, 326, 810, 6003, 18, ...
if not f in self.cexecuted:
if not self.cexecuted.has_key(f):
def canonicalize_filenames(self): for filename, lineno in self.c.keys(): if filename == '<string>': # Can't do anything useful with exec'd strings, so skip them. continue f = self.canonical_filename(filename) if not f in self.cexecuted: self.cexecuted[f] = {} self.cexecuted[f][lineno] = 1 self.c = {}
6554c74cd9574cf89b8acd0a0333651afacbfa8e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/6554c74cd9574cf89b8acd0a0333651afacbfa8e/coverage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25839, 67, 19875, 12, 2890, 4672, 364, 1544, 16, 7586, 316, 365, 18, 71, 18, 2452, 13332, 309, 1544, 422, 2368, 1080, 1870, 30, 468, 4480, 1404, 741, 6967, 5301, 598, 1196, 14271, 2064, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25839, 67, 19875, 12, 2890, 4672, 364, 1544, 16, 7586, 316, 365, 18, 71, 18, 2452, 13332, 309, 1544, 422, 2368, 1080, 1870, 30, 468, 4480, 1404, 741, 6967, 5301, 598, 1196, 14271, 2064, ...
Return the quartic twist of this curve by D.
Return the quartic twist of this curve by D, which must be nonzero.
def quartic_twist(self, D): """ Return the quartic twist of this curve by D.
317b135e24525174c25bb62d554be485f9c82093 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/317b135e24525174c25bb62d554be485f9c82093/ell_generic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 719, 485, 335, 67, 11246, 376, 12, 2890, 16, 463, 4672, 3536, 2000, 326, 719, 485, 335, 2339, 376, 434, 333, 8882, 635, 463, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 719, 485, 335, 67, 11246, 376, 12, 2890, 16, 463, 4672, 3536, 2000, 326, 719, 485, 335, 2339, 376, 434, 333, 8882, 635, 463, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if isinstance(property_uri, (list, tuple, QuerySet)): result_prop_uri = property_uri
if isinstance(property_uri, (list, tuple, QuerySet)): result_prop_uri = property_uri
def get_property_uris(self, prop, rdfMeta=None): if not rdfMeta: rdfMeta = self.rdfMeta() rdfprops = rdfMeta[prop] # -- get the value of this property dbval = getattr(self, rdfprops["property"]) if "property" in rdfprops else getattr(self, prop) # --- if this is a relation type of property if hasattr(dbval, 'all') and ...
d6c797f4a2089543ac6cb76bfb9c014053f177e3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11435/d6c797f4a2089543ac6cb76bfb9c014053f177e3/rdf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4468, 67, 23510, 12, 2890, 16, 2270, 16, 9160, 2781, 33, 7036, 4672, 309, 486, 9160, 2781, 30, 9160, 2781, 273, 365, 18, 19299, 2781, 1435, 9160, 9693, 273, 9160, 2781, 63, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4468, 67, 23510, 12, 2890, 16, 2270, 16, 9160, 2781, 33, 7036, 4672, 309, 486, 9160, 2781, 30, 9160, 2781, 273, 365, 18, 19299, 2781, 1435, 9160, 9693, 273, 9160, 2781, 63, 59...
op.add_option('-d', '--debug', dest='debug', action='store_true',
op.add_option('-g', '--debug', dest='debug', action='store_true',
def run_tests(tests, test_dir, lib_dir): pb = None if not OPTIONS.hide_progress and not OPTIONS.show_cmd: try: from progressbar import ProgressBar pb = ProgressBar('', len(tests), 13) except ImportError: pass failures = [] complete = False doing = 'before starting' try: for i, test in enumerate(tests): doing = 'on %s'...
7bf18187bf331c61553e8ba72d890bd5fd4cc385 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/7bf18187bf331c61553e8ba72d890bd5fd4cc385/trace-test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 16341, 12, 16341, 16, 1842, 67, 1214, 16, 2561, 67, 1214, 4672, 6386, 273, 599, 309, 486, 16726, 18, 11248, 67, 8298, 471, 486, 16726, 18, 4500, 67, 4172, 30, 775, 30, 628, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 16341, 12, 16341, 16, 1842, 67, 1214, 16, 2561, 67, 1214, 4672, 6386, 273, 599, 309, 486, 16726, 18, 11248, 67, 8298, 471, 486, 16726, 18, 4500, 67, 4172, 30, 775, 30, 628, ...
if pkg["name"] != name:
if rpm["name"] != name:
def checkDeps(rpms): # Add all packages in. resolver = RpmResolver() for pkg in rpms: resolver.addPkg(pkg) # Check for obsoletes. for name in resolver.obsoletes_list.deps.keys(): for (flag, version, rpm) in resolver.obsoletes_list.deps[name]: for pkg in searchDep(name, flag, version, resolver.mydeps.get(name, [])): if ...
1fec9a43376b6b9bfe41360a3ad6f07af8f8af71 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/1fec9a43376b6b9bfe41360a3ad6f07af8f8af71/oldpyrpm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 14430, 12, 13832, 959, 4672, 468, 1436, 777, 5907, 316, 18, 5039, 273, 534, 7755, 4301, 1435, 364, 3475, 316, 8715, 959, 30, 5039, 18, 1289, 11264, 12, 10657, 13, 468, 2073, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14430, 12, 13832, 959, 4672, 468, 1436, 777, 5907, 316, 18, 5039, 273, 534, 7755, 4301, 1435, 364, 3475, 316, 8715, 959, 30, 5039, 18, 1289, 11264, 12, 10657, 13, 468, 2073, 364, ...
if hasattr( left, "radius" ):
if hasattr(left, "radius"):
def __call__( self, left, right ): """pygame.sprite.collide_circle_radio(ratio)(left, right): return bool collision detection between two sprites, using scaled circles.
d9760f3e4782abb02dd98080337626eefdad67ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1298/d9760f3e4782abb02dd98080337626eefdad67ee/sprite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 365, 16, 2002, 16, 2145, 262, 30, 3536, 2074, 13957, 18, 1752, 796, 18, 1293, 8130, 67, 18970, 67, 17006, 12, 9847, 21433, 4482, 16, 2145, 4672, 327, 1426, 17740, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 365, 16, 2002, 16, 2145, 262, 30, 3536, 2074, 13957, 18, 1752, 796, 18, 1293, 8130, 67, 18970, 67, 17006, 12, 9847, 21433, 4482, 16, 2145, 4672, 327, 1426, 17740, ...
if v:
print v if v is not None:
def get_all_keys(self, headers=None, **params): """ A lower-level method for listing contents of a bucket. This closely models the actual S3 API and requires you to manually handle the paging of results. For a higher-level method that handles the details of paging for you, you can use the list method. @type maxkeys:...
ab75072a7d8b8462fc6ae179a49f86427823f303 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1098/ab75072a7d8b8462fc6ae179a49f86427823f303/bucket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 454, 67, 2452, 12, 2890, 16, 1607, 33, 7036, 16, 2826, 2010, 4672, 3536, 432, 2612, 17, 2815, 707, 364, 11591, 2939, 434, 279, 2783, 18, 225, 1220, 1219, 1786, 93, 3679, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 454, 67, 2452, 12, 2890, 16, 1607, 33, 7036, 16, 2826, 2010, 4672, 3536, 432, 2612, 17, 2815, 707, 364, 11591, 2939, 434, 279, 2783, 18, 225, 1220, 1219, 1786, 93, 3679, 326, ...
transport = Transport()
if type == "https": transport = SafeTransport() else: transport = Transport()
def __init__(self, uri, transport=None): # establish a "logical" server connection
80ead46c3b0b9513bc116e8fe08faa2f91145a91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/80ead46c3b0b9513bc116e8fe08faa2f91145a91/xmlrpclib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2003, 16, 4736, 33, 7036, 4672, 468, 18312, 279, 315, 20300, 6, 1438, 1459, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2003, 16, 4736, 33, 7036, 4672, 468, 18312, 279, 315, 20300, 6, 1438, 1459, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
log.msg("Downloading %s\n" % (PackageName) )
log.msg("Downloading %s.%s\n" % (PackageName, LINE_OVERWRITE_FULL) )
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_k...
f9cf927078f9b55d9b348831720ac6187f897284 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12499/f9cf927078f9b55d9b348831720ac6187f897284/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, 180...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 180...
'now': datetime.datetime.now().isoformat(' '),
'now': datetime.datetime.now().isoformat(' ')[0:-7] + '+0000',
def write_infos(self, modules): import release self.buffer.write("# Translation of %(project)s.\n" \ "# This file contains the translation of the following modules:\n" \ "%(modules)s" \ "#\n" \ "msgid \"\"\n" \ "msgstr \"\"\n" \ '''"Project-Id-Version: %(project)s %(version)s\\n"\n''' \ '''"Report-Msgid-Bugs-To: %(bugm...
c3cea6e6c2e847862ef84de55d56dd5fa5610e3b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/c3cea6e6c2e847862ef84de55d56dd5fa5610e3b/translate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 18227, 12, 2890, 16, 4381, 4672, 1930, 3992, 365, 18, 4106, 18, 2626, 2932, 7, 17427, 434, 8975, 4406, 13, 87, 8403, 82, 6, 521, 6619, 1220, 585, 1914, 326, 4794, 434, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 18227, 12, 2890, 16, 4381, 4672, 1930, 3992, 365, 18, 4106, 18, 2626, 2932, 7, 17427, 434, 8975, 4406, 13, 87, 8403, 82, 6, 521, 6619, 1220, 585, 1914, 326, 4794, 434, 326, ...
@param address: any address in the breakpoint range
@param ea: any address in the breakpoint range
def SetBptCnd(ea, cnd): """ Set breakpoint condition @param address: any address in the breakpoint range @param cnd: breakpoint condition @return: success """ bpt = idaapi.bpt_t() if not idaapi.get_bpt(ea, bpt): return False bpt.condition = cnd return idaapi.update_bpt(bpt)
e44bdcd4de27699ae0ecbd6c9dc2f42ebbbc110e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3410/e44bdcd4de27699ae0ecbd6c9dc2f42ebbbc110e/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 38, 337, 39, 4880, 12, 24852, 16, 276, 4880, 4672, 3536, 1000, 18820, 2269, 225, 632, 891, 24164, 30, 1281, 1758, 316, 326, 18820, 1048, 632, 891, 276, 4880, 30, 18820, 2269, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1000, 38, 337, 39, 4880, 12, 24852, 16, 276, 4880, 4672, 3536, 1000, 18820, 2269, 225, 632, 891, 24164, 30, 1281, 1758, 316, 326, 18820, 1048, 632, 891, 276, 4880, 30, 18820, 2269, 225, ...
:returns: :class:`celery.result.AsyncResult`.
:returns :class:`celery.result.AsyncResult`:
def delay_task(task_name, *args, **kwargs): """Delay a task for execution by the ``celery`` daemon. :param task_name: the name of a task registered in the task registry. :param \*args: positional arguments to pass on to the task. :param \*\*kwargs: keyword arguments to pass on to the task. :raises celery.exceptions.N...
d789a8f203274d33dba847c85f5b19a934ff74df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2024/d789a8f203274d33dba847c85f5b19a934ff74df/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4624, 67, 4146, 12, 4146, 67, 529, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 6763, 279, 1562, 364, 4588, 635, 326, 12176, 2183, 627, 10335, 8131, 18, 225, 294, 891, 1562, 67, 529, 30,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4624, 67, 4146, 12, 4146, 67, 529, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 6763, 279, 1562, 364, 4588, 635, 326, 12176, 2183, 627, 10335, 8131, 18, 225, 294, 891, 1562, 67, 529, 30,...
return _('Factors of %d') % ( self.level_multiple[self.curlevel-1] ) def setLevel(self, n): self.curlevel = n
return _('Factors of %d') % ( self.level_multiple[self.cur_sublevel-1] ) def setLevel(self, level, sublevel): self.curlevel = level self.cur_sublevel = sublevel
def getTitle(self): return _('Factors of %d') % ( self.level_multiple[self.curlevel-1] )
af34e64d38be11ba68a4418286816d4e15a20114 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/af34e64d38be11ba68a4418286816d4e15a20114/gnumch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10786, 12, 2890, 4672, 327, 389, 2668, 23535, 434, 738, 72, 6134, 738, 261, 365, 18, 2815, 67, 9622, 63, 2890, 18, 1397, 2815, 17, 21, 65, 262, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10786, 12, 2890, 4672, 327, 389, 2668, 23535, 434, 738, 72, 6134, 738, 261, 365, 18, 2815, 67, 9622, 63, 2890, 18, 1397, 2815, 17, 21, 65, 262, 2, -100, -100, -100, -100, -100, -100, ...
'onclick="toggle(\'%s\'); return false;">-</a>\\2' %
'onclick="return toggle(\'%s\');">-</a>\\2' %
def mark_def(self, s, name): replacement = ('<a name="%s"></a><div id="%s-def">\\1' '<a class="py-toggle" href="#" id="%s-toggle" ' 'onclick="toggle(\'%s\'); return false;">-</a>\\2' % (name, name, name, name)) return re.sub('(.*) (<span class="py-line">.*)\Z', replacement, s)
cd4d6e5fbca5f698866ebe3598f5c2ca592983e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/cd4d6e5fbca5f698866ebe3598f5c2ca592983e0/html_colorize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2267, 67, 536, 12, 2890, 16, 272, 16, 508, 4672, 6060, 273, 7707, 32, 69, 508, 11613, 87, 13762, 69, 4438, 2892, 612, 11613, 87, 17, 536, 6441, 1695, 21, 11, 2368, 69, 667, 1546, 207...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 536, 12, 2890, 16, 272, 16, 508, 4672, 6060, 273, 7707, 32, 69, 508, 11613, 87, 13762, 69, 4438, 2892, 612, 11613, 87, 17, 536, 6441, 1695, 21, 11, 2368, 69, 667, 1546, 207...
sender, conn = sender
def _pongHandler(sender, id=node.id, host=node.host, port=node.port, table=self.table): sender, conn = sender if id != 20 * ' ' and id != sender['id'].data: # whoah, got response from different peer than we were expecting pass else: sender['host'] = host sender['port'] = port n = Node().initWithDict(sender) table.inser...
30d0bd614dd718bb2c3fd331b3c1fd56786a02aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/665/30d0bd614dd718bb2c3fd331b3c1fd56786a02aa/khashmir.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 500, 75, 1503, 12, 15330, 16, 612, 33, 2159, 18, 350, 16, 1479, 33, 2159, 18, 2564, 16, 1756, 33, 2159, 18, 655, 16, 1014, 33, 2890, 18, 2121, 4672, 309, 612, 480, 4200, 380, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 500, 75, 1503, 12, 15330, 16, 612, 33, 2159, 18, 350, 16, 1479, 33, 2159, 18, 2564, 16, 1756, 33, 2159, 18, 655, 16, 1014, 33, 2890, 18, 2121, 4672, 309, 612, 480, 4200, 380, ...
ttfont = self.setupFont(font, fontsize * scale_bias)
ttfont = self.setupFont(font, fontsize)
def truetypeText(self, xy, string, **kwargs): scale_bias = 4 fill = kwargs.get('fill') font = kwargs.get('font') fontsize = kwargs.get('fontsize', 11)
b648335863326a7794f99ca7f1c81399a501eb5e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/81/b648335863326a7794f99ca7f1c81399a501eb5e/DiagramDraw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 433, 89, 5872, 1528, 12, 2890, 16, 7668, 16, 533, 16, 2826, 4333, 4672, 3159, 67, 13931, 273, 1059, 3636, 273, 1205, 18, 588, 2668, 5935, 6134, 3512, 273, 1205, 18, 588, 2668, 5776, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 433, 89, 5872, 1528, 12, 2890, 16, 7668, 16, 533, 16, 2826, 4333, 4672, 3159, 67, 13931, 273, 1059, 3636, 273, 1205, 18, 588, 2668, 5935, 6134, 3512, 273, 1205, 18, 588, 2668, 5776, 61...
msg = 'No Candidate Sites in Mask'
msg = 'No Candidate Sites in Mask'
def checkJob(self,job): """This method controls the checking of the job. """ self.log.verbose('Job %s will be processed' % (job)) #First check whether the job has an input data requirement result = self.jobDB.getInputData(job) if not result['OK']: self.log.warn('Failed to get input data from JobDB for %s' % (job)) self...
6a41e53ca0e8385ad60a7fc3b43a5923a12510f3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/6a41e53ca0e8385ad60a7fc3b43a5923a12510f3/JobSchedulingAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 2278, 12, 2890, 16, 4688, 4672, 3536, 2503, 707, 11022, 326, 6728, 434, 326, 1719, 18, 3536, 365, 18, 1330, 18, 11369, 2668, 2278, 738, 87, 903, 506, 5204, 11, 738, 261, 4688, 371...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2278, 12, 2890, 16, 4688, 4672, 3536, 2503, 707, 11022, 326, 6728, 434, 326, 1719, 18, 3536, 365, 18, 1330, 18, 11369, 2668, 2278, 738, 87, 903, 506, 5204, 11, 738, 261, 4688, 371...
self.roomsmodel.append([room, users, users])
self.roomsmodel.append([room, users, 0])
def SetRoomList(self, msg): if self.autojoin: self.autojoin = 0 if self.joinedrooms.keys(): list = self.joinedrooms.keys() else: list = self.frame.np.config.sections["server"]["autojoin"]
bd22d9a79d709d993463602575ff87e47daaa60e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/bd22d9a79d709d993463602575ff87e47daaa60e/chatrooms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 13646, 682, 12, 2890, 16, 1234, 4672, 225, 309, 365, 18, 6079, 5701, 30, 365, 18, 6079, 5701, 273, 374, 309, 365, 18, 5701, 329, 13924, 87, 18, 2452, 13332, 666, 273, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 13646, 682, 12, 2890, 16, 1234, 4672, 225, 309, 365, 18, 6079, 5701, 30, 365, 18, 6079, 5701, 273, 374, 309, 365, 18, 5701, 329, 13924, 87, 18, 2452, 13332, 666, 273, 365, 18, ...
Individual.__getattr__ = ind_getInfo2
Individual.__getattr__ = Individual.info
def ind_getInfo3(self, field): if field == 'this': return self.__dict__['this'] else: return self.info(field)
11ebaaa64ca7a29581921643e7054787bddf7835 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/11ebaaa64ca7a29581921643e7054787bddf7835/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1547, 67, 588, 966, 23, 12, 2890, 16, 652, 4672, 309, 652, 422, 296, 2211, 4278, 327, 365, 16186, 1576, 972, 3292, 2211, 3546, 469, 30, 327, 365, 18, 1376, 12, 1518, 13, 225, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1547, 67, 588, 966, 23, 12, 2890, 16, 652, 4672, 309, 652, 422, 296, 2211, 4278, 327, 365, 16186, 1576, 972, 3292, 2211, 3546, 469, 30, 327, 365, 18, 1376, 12, 1518, 13, 225, 2, -100...
value = theDuration.strftime (self.durationFormat)
if theDuration is not None: value = self.formattedDuration (theDuration, '') else: value = 'hh:mm'
def loadAttributeIntoWidget(self, item, widget): """" Update the widget display based on the value in the attribute. """ try: theDuration = item.duration except AttributeError: value = '?' else: value = theDuration.strftime (self.durationFormat) widget.SetValue (value)
3f9d10450d98d9f910b82730307316ba3d4cf615 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/3f9d10450d98d9f910b82730307316ba3d4cf615/Detail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 1499, 5952, 4609, 12, 2890, 16, 761, 16, 3604, 4672, 3536, 6, 2315, 326, 3604, 2562, 2511, 603, 326, 460, 316, 326, 1566, 18, 3536, 775, 30, 326, 5326, 273, 761, 18, 8760, 1335, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 1499, 5952, 4609, 12, 2890, 16, 761, 16, 3604, 4672, 3536, 6, 2315, 326, 3604, 2562, 2511, 603, 326, 460, 316, 326, 1566, 18, 3536, 775, 30, 326, 5326, 273, 761, 18, 8760, 1335, ...
if t._checked == True: return if not t: raise BoardCoordOutOfRangeExcepton, "Tile coordinate (%d,%d) out of bounds"%(x,y)
if not t: return if t._checked: return
def reveal(self,player,x,y, list=[]): if list==[]: first=True else: first=False t = self.get_tile(x,y) if t._checked == True: return if not t: raise BoardCoordOutOfRangeExcepton, "Tile coordinate (%d,%d) out of bounds"%(x,y) t._checked = True if t.uncovered == 0: t.uncovered = player list.append(t) if t.adjacency==0: f...
76b80045ff8fc568b5b27e58828689805a12f2d7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14104/76b80045ff8fc568b5b27e58828689805a12f2d7/game.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 24293, 12, 2890, 16, 14872, 16, 92, 16, 93, 16, 666, 33, 8526, 4672, 309, 666, 631, 8526, 30, 1122, 33, 5510, 469, 30, 1122, 33, 8381, 268, 273, 365, 18, 588, 67, 15368, 12, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 283, 24293, 12, 2890, 16, 14872, 16, 92, 16, 93, 16, 666, 33, 8526, 4672, 309, 666, 631, 8526, 30, 1122, 33, 5510, 469, 30, 1122, 33, 8381, 268, 273, 365, 18, 588, 67, 15368, 12, 9...
iter = model.get_iter_root() while iter:
__iter = model.get_iter_root() while __iter:
def get_selected_operations(self): """Return a list of the IDs of the selected operations in the tree view""" r = [] model = self.tree_store.get_model() iter = model.get_iter_root() while iter: #print "debug: get_selected_operations: iter id = '%s', value='%s'" % (model[iter][2], model[iter][1]) if True == model[iter][...
9d492cae068d04dccea7b824cceed2984729452a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7853/9d492cae068d04dccea7b824cceed2984729452a/GUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8109, 67, 17542, 12, 2890, 4672, 3536, 990, 279, 666, 434, 326, 7115, 434, 326, 3170, 5295, 316, 326, 2151, 1476, 8395, 436, 273, 5378, 938, 273, 365, 18, 3413, 67, 2233, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8109, 67, 17542, 12, 2890, 4672, 3536, 990, 279, 666, 434, 326, 7115, 434, 326, 3170, 5295, 316, 326, 2151, 1476, 8395, 436, 273, 5378, 938, 273, 365, 18, 3413, 67, 2233, 18, ...
96889010407L 96889010407
96889010407
def cardinality(self): r""" Returns the number of words of length n from alphabet.
dcebd36667c37501e3ed85d2815782c98473a1c8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/dcebd36667c37501e3ed85d2815782c98473a1c8/words.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14379, 12, 2890, 4672, 436, 8395, 2860, 326, 1300, 434, 4511, 434, 769, 290, 628, 10877, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14379, 12, 2890, 4672, 436, 8395, 2860, 326, 1300, 434, 4511, 434, 769, 290, 628, 10877, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def archive_db(): print "STATUS: archiving old database" archive_db = "psql template1 postgres -qc " \ " 'ALTER DATABASE %s RENAME TO %s;';" \ " createdb -U postgres %s > /dev/null; " % \ (database, archived_database, database)
def archive_db(database, archived_database): print "Status: archiving old database" archive_db = " dropdb -U postgres %s; > /dev/null 2>&1" \ " psql template1 postgres -qc " \ " 'ALTER DATABASE %s RENAME TO %s;';" \ " createdb -U postgres %s > /dev/null; " % \ (archived_database, database, archived_database, database)...
def archive_db(): print "STATUS: archiving old database" archive_db = "psql template1 postgres -qc " \ " 'ALTER DATABASE %s RENAME TO %s;';" \ " createdb -U postgres %s > /dev/null; " % \ (database, archived_database, database) exit_status = os.system(archive_db) if exit_status: print "ERROR: unable to archive databas...
af98851618b632afb0a950644c796b7c633ace40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/af98851618b632afb0a950644c796b7c633ace40/upgrade-db.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5052, 67, 1966, 12, 6231, 16, 23276, 67, 6231, 4672, 225, 1172, 315, 1482, 30, 6637, 9288, 1592, 2063, 6, 5052, 67, 1966, 273, 315, 3640, 1966, 300, 57, 1603, 14107, 738, 87, 31, 405, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5052, 67, 1966, 12, 6231, 16, 23276, 67, 6231, 4672, 225, 1172, 315, 1482, 30, 6637, 9288, 1592, 2063, 6, 5052, 67, 1966, 273, 315, 3640, 1966, 300, 57, 1603, 14107, 738, 87, 31, 405, ...
return cmp(map(int, a.split('.')), map(int, b.split('.')))
aa = a.split('.') bb = b.split('.') for index in range(min(len(aa), len(bb))): result = cmp(int(aa[index]), int(bb[index])) if result != 0: return result return 0
def CompareVersions(a, b): if (a.find('.') < 0) or (b.find('.') < 0): return -1 return cmp(map(int, a.split('.')), map(int, b.split('.')))
1331841a3d5d1a886c5e30836daef2c3d23ecce2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14747/1331841a3d5d1a886c5e30836daef2c3d23ecce2/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11051, 5940, 12, 69, 16, 324, 4672, 309, 261, 69, 18, 4720, 2668, 1093, 13, 411, 374, 13, 578, 261, 70, 18, 4720, 2668, 1093, 13, 411, 374, 4672, 327, 300, 21, 540, 12391, 273, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11051, 5940, 12, 69, 16, 324, 4672, 309, 261, 69, 18, 4720, 2668, 1093, 13, 411, 374, 13, 578, 261, 70, 18, 4720, 2668, 1093, 13, 411, 374, 4672, 327, 300, 21, 540, 12391, 273, 279, ...
conn.settimeout(5)
conn.settimeout(10)
def _recv(self): data = '' conn = socket.socket(socket.AF_INET, socket.SOCK_STREAM) conn.connect(self.__addr) conn.settimeout(5) conn.send('++read' + self.__term) while data.find(self.__term) < 0: data += conn.recv(1024) conn.close() return data[:data.find(self.__term)]
c9fb5cb45e19096da2005d67889aea2b141a7f0e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14654/c9fb5cb45e19096da2005d67889aea2b141a7f0e/synth_agent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 18334, 12, 2890, 4672, 501, 273, 875, 1487, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13, 1487, 18, 3612, 12, 2890, 16186, 4793, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 18334, 12, 2890, 4672, 501, 273, 875, 1487, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13, 1487, 18, 3612, 12, 2890, 16186, 4793, 13,...
lex = shlex.shlex(StringIO(s))
lex = shlex.shlex(io.StringIO(s))
def oldSplit(self, s): ret = [] lex = shlex.shlex(StringIO(s)) tok = lex.get_token() while tok: ret.append(tok) tok = lex.get_token() return ret
826980d93aa913cc6fc217b1207fb7d5fd98aad3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/826980d93aa913cc6fc217b1207fb7d5fd98aad3/test_shlex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1592, 5521, 12, 2890, 16, 272, 4672, 325, 273, 5378, 5275, 273, 27180, 18, 674, 4149, 12, 1594, 18, 780, 4294, 12, 87, 3719, 946, 273, 5275, 18, 588, 67, 2316, 1435, 1323, 946, 30, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1592, 5521, 12, 2890, 16, 272, 4672, 325, 273, 5378, 5275, 273, 27180, 18, 674, 4149, 12, 1594, 18, 780, 4294, 12, 87, 3719, 946, 273, 5275, 18, 588, 67, 2316, 1435, 1323, 946, 30, 3...
self.__p = int(parent.residue_characteristic())
self.__p = integer.Integer(parent.residue_characteristic())
def __init__(self, parent, x, big_oh=infinity, ordp=None, construct=False): r""" INPUT: parent -- a p-adic field. x -- anything that can be coerced to a p-adic number. big_oh -- is such that, e.g. 3^(-1) + 1 + 2 * 3 + (3^2) has big_oh equal to 2. """ field_element.FieldElement.__init__(self, parent) if construct: self....
2524dc6cf63145fc327980456b747492a7ca7be7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/2524dc6cf63145fc327980456b747492a7ca7be7/padic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 619, 16, 5446, 67, 16699, 33, 267, 7850, 16, 4642, 84, 33, 7036, 16, 4872, 33, 8381, 4672, 436, 8395, 12943, 30, 982, 1493, 279, 293, 17, 2033...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 619, 16, 5446, 67, 16699, 33, 267, 7850, 16, 4642, 84, 33, 7036, 16, 4872, 33, 8381, 4672, 436, 8395, 12943, 30, 982, 1493, 279, 293, 17, 2033...
def retry_command(cmd, retries, timeout, sleeptime):
def retry_command(cmd, retries, timeout, sleeptime, stdout_regexp=None, stderr_regexp=None, fail_if_match=False):
def retry_command(cmd, retries, timeout, sleeptime): # Which iteration we're on i = 0 # Current return code rc = False while True: i += 1 rc = run_with_timeout(cmd, timeout) if rc: break if retries > 0 and i >= retries: log.info("Number of retries exceeded maximum (%i), giving up.", retries) break if sleeptime: l...
c43e77b901baa29ea327693e697bb61fd7622486 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6206/c43e77b901baa29ea327693e697bb61fd7622486/retry.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3300, 67, 3076, 12, 4172, 16, 9453, 16, 2021, 16, 272, 11182, 10650, 16, 3909, 67, 17745, 33, 7036, 16, 4514, 67, 17745, 33, 7036, 16, 2321, 67, 430, 67, 1916, 33, 8381, 4672, 468, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3300, 67, 3076, 12, 4172, 16, 9453, 16, 2021, 16, 272, 11182, 10650, 16, 3909, 67, 17745, 33, 7036, 16, 4514, 67, 17745, 33, 7036, 16, 2321, 67, 430, 67, 1916, 33, 8381, 4672, 468, 2...
return t + data[9] - time.timezone
return t - data[9] - time.timezone
def mktime_tz(data): """Turn a 10-tuple as returned by parsedate_tz() into a UTC timestamp. Minor glitch: this first interprets the first 8 elements as a local time and then compensates for the timezone difference; this may yield a slight error around daylight savings time switch dates. Not enough to worry about for ...
9aa8e8179b2162a324553202bc68d6aa11f490ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9aa8e8179b2162a324553202bc68d6aa11f490ac/rfc822.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21977, 67, 12994, 12, 892, 4672, 3536, 15858, 279, 1728, 17, 8052, 487, 2106, 635, 1109, 712, 67, 12994, 1435, 1368, 279, 9951, 2858, 18, 225, 29007, 5118, 1437, 30, 333, 1122, 10634, 87...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21977, 67, 12994, 12, 892, 4672, 3536, 15858, 279, 1728, 17, 8052, 487, 2106, 635, 1109, 712, 67, 12994, 1435, 1368, 279, 9951, 2858, 18, 225, 29007, 5118, 1437, 30, 333, 1122, 10634, 87...
self.colorkey(1)
if self["key_green"].getBoolean(): self.colorkey(1)
def keyGreen(self): self.colorkey(1)
71dcc2c21cb3488861444e6f4e82a25b77df70ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/71dcc2c21cb3488861444e6f4e82a25b77df70ed/AudioSelection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 498, 21453, 12, 2890, 4672, 365, 18, 1293, 778, 402, 12, 21, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 498, 21453, 12, 2890, 4672, 365, 18, 1293, 778, 402, 12, 21, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
sage: latex(r(2))
sage: latex(r(2))
def _latex_(self): r""" Return LaTeX representation of this R object.
42a77e19371576e2f0fa4a64916832f43f940a8c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/42a77e19371576e2f0fa4a64916832f43f940a8c/r.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 26264, 67, 12, 2890, 4672, 436, 8395, 2000, 21072, 21575, 60, 4335, 434, 333, 534, 733, 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, ...
[ 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 26264, 67, 12, 2890, 4672, 436, 8395, 2000, 21072, 21575, 60, 4335, 434, 333, 534, 733, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if krawly == m.j or m.i == 0:
if krawlj == m.j or m.i == 0:
def movebaddy(enemy): "Tactical movement for the bad guys." next = coord(); look = coord() irun = False # This should probably be just (game.quadrant in game.state.kcmdr) + (game.state.kscmdr==game.quadrant) if game.skill >= SKILL_EXPERT: nbaddys = (((game.quadrant in game.state.kcmdr)*2 + (game.state.kscmdr==game.quad...
9166a6df132fa18c32881b2019e1fcc41716a3ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/9166a6df132fa18c32881b2019e1fcc41716a3ab/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 70, 31934, 12, 275, 351, 93, 4672, 315, 56, 621, 1706, 26017, 364, 326, 5570, 3058, 1900, 1199, 1024, 273, 2745, 5621, 2324, 273, 2745, 1435, 277, 2681, 273, 1083, 468, 1220, 1410,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 70, 31934, 12, 275, 351, 93, 4672, 315, 56, 621, 1706, 26017, 364, 326, 5570, 3058, 1900, 1199, 1024, 273, 2745, 5621, 2324, 273, 2745, 1435, 277, 2681, 273, 1083, 468, 1220, 1410,...
plugin_api.AddToolbarItem(self.tb_button)
plugin_api.add_toolbar_item(self.button)
def activate(self, plugin_api): self.menu_item = gtk.MenuItem("Start task in Hamster") self.menu_item.connect('activate', self.browser_cb, plugin_api) self.tb_button=gtk.ToolButton() self.tb_button.set_label("Start") self.tb_button.set_icon_name('hamster-applet') self.tb_button.set_tooltip_text("Start a new activity i...
7172602e6dde54005cdbf7139d595e8248bd20d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/7172602e6dde54005cdbf7139d595e8248bd20d0/hamster.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10235, 12, 2890, 16, 1909, 67, 2425, 4672, 365, 18, 5414, 67, 1726, 273, 22718, 18, 12958, 2932, 1685, 1562, 316, 670, 301, 8190, 7923, 365, 18, 5414, 67, 1726, 18, 3612, 2668, 10014, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10235, 12, 2890, 16, 1909, 67, 2425, 4672, 365, 18, 5414, 67, 1726, 273, 22718, 18, 12958, 2932, 1685, 1562, 316, 670, 301, 8190, 7923, 365, 18, 5414, 67, 1726, 18, 3612, 2668, 10014, ...
if country.adminarea_set.filter(active=True).filter(Q(name=data.capitalize())|Q(abbrev=data.upper())).count() != 1:
if country.adminarea_set.filter(active=True).filter(Q(name=data)|Q(abbrev=data)|Q(name=data.capitalize())|Q(abbrev=data.upper())).count() != 1:
def clean_state(self): data = self.cleaned_data.get('state') if self._local_only: country = self._default_country else: country = self.fields['country'].clean(self.data['country']) if country.adminarea_set.filter(active=True).count() > 0: if not data or data == selection and not self._billing_data_optional: raise forms...
ee4e1486c68d9e1c6870b61b5e55c294fb67e2aa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13656/ee4e1486c68d9e1c6870b61b5e55c294fb67e2aa/forms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 67, 2019, 12, 2890, 4672, 501, 273, 365, 18, 6200, 329, 67, 892, 18, 588, 2668, 2019, 6134, 309, 365, 6315, 3729, 67, 3700, 30, 5251, 273, 365, 6315, 1886, 67, 9082, 469, 30, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 67, 2019, 12, 2890, 4672, 501, 273, 365, 18, 6200, 329, 67, 892, 18, 588, 2668, 2019, 6134, 309, 365, 6315, 3729, 67, 3700, 30, 5251, 273, 365, 6315, 1886, 67, 9082, 469, 30, 5...
{'summary': 'Yo &eacute;'}]}
{ 'title': 'Yo &eacute;', 'summary': 'Yo &eacute;' }]}
def test_blog_entries(self, mock_feedparser_parse): mock_feedparser_parse.return_value = { 'entries': [ {'summary': 'Yo &eacute;'}]} entries = mysite.customs.feed._blog_entries() self.assertEqual(entries[0]['unicode_text'], u'Yo \xe9')
f50ea125e2e5610b3ed4d02dbf938f738eeffad7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11976/f50ea125e2e5610b3ed4d02dbf938f738eeffad7/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 11439, 67, 8219, 12, 2890, 16, 5416, 67, 7848, 4288, 67, 2670, 4672, 5416, 67, 7848, 4288, 67, 2670, 18, 2463, 67, 1132, 273, 288, 296, 8219, 4278, 306, 288, 296, 2649, 4278,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 11439, 67, 8219, 12, 2890, 16, 5416, 67, 7848, 4288, 67, 2670, 4672, 5416, 67, 7848, 4288, 67, 2670, 18, 2463, 67, 1132, 273, 288, 296, 8219, 4278, 306, 288, 296, 2649, 4278,...
for x in ipath: cmd = cmd + ' -I"' + dotdots + x + '"'
for x in ipath: cmd = cmd + ' -I' + dotdots + x
def Interrogate(ipath=0, opts=0, outd=0, outc=0, src=0, module=0, library=0, files=0): if ((ipath==0)|(opts==0)|(outd==0)|(outc==0)|(src==0)|(module==0)|(library==0)|(files==0)): sys.exit("syntax error in Interrogate directive") ALLIN.append(outd) ipath = [PREFIX+"/tmp"] + ipath + [PREFIX+"/include"] outd = PREFIX+"/pa...
e743cb25c4127c99b6bf2de385cf618b18e32531 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/e743cb25c4127c99b6bf2de385cf618b18e32531/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5294, 15283, 12, 625, 421, 33, 20, 16, 1500, 33, 20, 16, 596, 72, 33, 20, 16, 596, 71, 33, 20, 16, 1705, 33, 20, 16, 1605, 33, 20, 16, 5313, 33, 20, 16, 1390, 33, 20, 4672, 309...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5294, 15283, 12, 625, 421, 33, 20, 16, 1500, 33, 20, 16, 596, 72, 33, 20, 16, 596, 71, 33, 20, 16, 1705, 33, 20, 16, 1605, 33, 20, 16, 5313, 33, 20, 16, 1390, 33, 20, 4672, 309...
self._write(self.write_term_index, directory, 'term-index.html', indices)
self._write(self.write_link_index, directory, 'term-index.html', indices, 'Term Definition Index', 'term-index.html', 'term')
def write(self, directory=None): """ Write the documentation to the given directory.
5c410b5b6e25df3bdbc6da266f7773518165cb02 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/5c410b5b6e25df3bdbc6da266f7773518165cb02/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1867, 33, 7036, 4672, 3536, 2598, 326, 7323, 358, 326, 864, 1867, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1867, 33, 7036, 4672, 3536, 2598, 326, 7323, 358, 326, 864, 1867, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.model["card"] = zdc.ObjectView(card)
self.model["card"] = [zdc.ObjectView(card)]
def act_confirm(self): import zebra, zdc #@TODO: make a .fromDict or .consult for zdc.RecordObjects # for now, we'll assume this is okay, since the classes have # already validated everything in here: bill = zikebase.Contact(); bill._data = self.billData ship = zikebase.Contact(); ship._data = self.shipData card = zike...
8f9da0ecdf1f4ffe43c7c8552ad5e88ade81637e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/8f9da0ecdf1f4ffe43c7c8552ad5e88ade81637e/checkout.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1328, 67, 10927, 12, 2890, 4672, 1930, 26637, 15397, 16, 998, 7201, 468, 36, 6241, 30, 1221, 279, 263, 2080, 5014, 578, 263, 8559, 406, 364, 998, 7201, 18, 2115, 4710, 468, 364, 2037, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1328, 67, 10927, 12, 2890, 4672, 1930, 26637, 15397, 16, 998, 7201, 468, 36, 6241, 30, 1221, 279, 263, 2080, 5014, 578, 263, 8559, 406, 364, 998, 7201, 18, 2115, 4710, 468, 364, 2037, ...
class DocstringTestCase(unittest.TestCase):
class DocstringTestCase(SecureTestCase):
def getModuleObjects(folder, rootName, typ): "Get a list of all function objects defined *somewhere* in a package." folders = [folder] + subFoldersOfFolder(folder) objects = [] for f in folders: sys.path.insert(0, f) os.chdir(f) pattern = os.path.join('*.py') prefix = f[string.find(f, rootName):] prefix = string.repl...
b5a2e28469e8eb9f8edf3d66ca5ecf2c5f7f3905 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/b5a2e28469e8eb9f8edf3d66ca5ecf2c5f7f3905/test_docstrings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11251, 4710, 12, 5609, 16, 1365, 461, 16, 3815, 4672, 315, 967, 279, 666, 434, 777, 445, 2184, 2553, 380, 87, 362, 359, 14852, 14, 316, 279, 2181, 1199, 225, 9907, 273, 306, 5609, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11251, 4710, 12, 5609, 16, 1365, 461, 16, 3815, 4672, 315, 967, 279, 666, 434, 777, 445, 2184, 2553, 380, 87, 362, 359, 14852, 14, 316, 279, 2181, 1199, 225, 9907, 273, 306, 5609, 65, ...
FakeProxyHandler.digest_auth_handler.set_qop("auth")
self.digest_auth_handler.set_qop("auth")
def test_proxy_with_bad_password_raises_httperror(self): self._digest_auth_handler.add_password(self.REALM, self.URL, self.USER, self.PASSWD+"bad") FakeProxyHandler.digest_auth_handler.set_qop("auth") self.assertRaises(urllib2.HTTPError, self.opener.open, self.URL)
f03c42f0ab4b4fc0705e2717a89af1254820fed3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/f03c42f0ab4b4fc0705e2717a89af1254820fed3/test_urllib2_localnet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5656, 67, 1918, 67, 8759, 67, 3664, 67, 354, 6141, 67, 2505, 1636, 12, 2890, 4672, 365, 6315, 10171, 67, 1944, 67, 4176, 18, 1289, 67, 3664, 12, 2890, 18, 31052, 49, 16, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5656, 67, 1918, 67, 8759, 67, 3664, 67, 354, 6141, 67, 2505, 1636, 12, 2890, 4672, 365, 6315, 10171, 67, 1944, 67, 4176, 18, 1289, 67, 3664, 12, 2890, 18, 31052, 49, 16, 36...
def test_chainHandling(self): """PDBModel chain handling and writing test"""
def test_chainBreaks(self): """PDBModel chain break handling and writing test"""
def test_chainHandling(self): """PDBModel chain handling and writing test""" self.m4 = B.PDBModel( T.testRoot()+'/com/1BGS_original.pdb') self.assertEqual( self.m4.lenChains(), 9 ) self.assertEqual( self.m4.lenChains( breaks=1 ), 138 ) self.m4.writePdb( self.fout_pdb, ter=2 )
d1c3d5f9c43c1af7d5e068db8407753d7aed3a40 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/d1c3d5f9c43c1af7d5e068db8407753d7aed3a40/PDBModel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5639, 26806, 12, 2890, 4672, 3536, 52, 2290, 1488, 2687, 898, 5057, 471, 7410, 1842, 8395, 365, 18, 81, 24, 273, 605, 18, 52, 2290, 1488, 12, 399, 18, 3813, 2375, 1435, 6797,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5639, 26806, 12, 2890, 4672, 3536, 52, 2290, 1488, 2687, 898, 5057, 471, 7410, 1842, 8395, 365, 18, 81, 24, 273, 605, 18, 52, 2290, 1488, 12, 399, 18, 3813, 2375, 1435, 6797,...
if self._sampleNum < 60*60:
if self._memSampleNum < 60*60:
def _nextMemSample(self): curUsage = self._getValue() self._usage.append(curUsage) maxUsage = self._maxUsage[-1] if curUsage>maxUsage: maxUsage = curUsage lastMaxChangeTime = time.time() self._textNode1.text = ("Last increase in maximum: " +time.strftime("%H:%M:%S", time.localtime(lastMaxChangeTime))) self._maxUsage.ap...
5db631b9081e9af0ba5615613d6fbe26fed5b363 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7300/5db631b9081e9af0ba5615613d6fbe26fed5b363/AVGAppStarter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4285, 3545, 8504, 12, 2890, 4672, 662, 5357, 273, 365, 6315, 24805, 1435, 365, 6315, 9167, 18, 6923, 12, 1397, 5357, 13, 943, 5357, 273, 365, 6315, 1896, 5357, 18919, 21, 65, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4285, 3545, 8504, 12, 2890, 4672, 662, 5357, 273, 365, 6315, 24805, 1435, 365, 6315, 9167, 18, 6923, 12, 1397, 5357, 13, 943, 5357, 273, 365, 6315, 1896, 5357, 18919, 21, 65, 309, ...
if po.arch != installed_pkg.arch and (isMultiLibArch(po.arch) or isMultiLibArch(installed_pkg.arch)):
if (po.arch != installed_pkg.arch and (rpmUtils.arch.isMultiLibArch(po.arch) or rpmUtils.arch.isMultiLibArch(installed_pkg.arch))):
def installLocal(self, pkg, po=None, updateonly=False): """ handles installs/updates of rpms provided on the filesystem in a local dir (ie: not from a repo)
ec1fb3b9c8487a021e86a34d3a3b0d580a5ac49e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5445/ec1fb3b9c8487a021e86a34d3a3b0d580a5ac49e/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 2042, 12, 2890, 16, 3475, 16, 8275, 33, 7036, 16, 1089, 3700, 33, 8381, 4672, 3536, 7372, 31011, 19, 14703, 434, 8715, 959, 2112, 603, 326, 6496, 316, 279, 1191, 1577, 261, 1385, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 2042, 12, 2890, 16, 3475, 16, 8275, 33, 7036, 16, 1089, 3700, 33, 8381, 4672, 3536, 7372, 31011, 19, 14703, 434, 8715, 959, 2112, 603, 326, 6496, 316, 279, 1191, 1577, 261, 1385, ...
debug(" domain %s is in user block-list", cookie.domain)
_debug(" domain %s is in user block-list", cookie.domain)
def set_ok_domain(self, cookie, request): if self.is_blocked(cookie.domain): debug(" domain %s is in user block-list", cookie.domain) return False if self.is_not_allowed(cookie.domain): debug(" domain %s is not in user allow-list", cookie.domain) return False if cookie.domain_specified: req_host, erhn = eff_request...
feb0a3bdbccc7b45bc8b960aa4c3434838b52d05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/feb0a3bdbccc7b45bc8b960aa4c3434838b52d05/cookielib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 601, 67, 4308, 12, 2890, 16, 3878, 16, 590, 4672, 309, 365, 18, 291, 67, 23156, 12, 8417, 18, 4308, 4672, 389, 4148, 2932, 282, 2461, 738, 87, 353, 316, 729, 1203, 17, 1098,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 601, 67, 4308, 12, 2890, 16, 3878, 16, 590, 4672, 309, 365, 18, 291, 67, 23156, 12, 8417, 18, 4308, 4672, 389, 4148, 2932, 282, 2461, 738, 87, 353, 316, 729, 1203, 17, 1098,...
print "str: %s" % self.description
if self.verbose: print "str: %s" % self.description
def unserializeExtra(self,data): print "found %d extra bytes." % len(data)
5ec5c46b0b6b12f6dd38c8d54dc0815bac382b0e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8136/5ec5c46b0b6b12f6dd38c8d54dc0815bac382b0e/pyemf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10954, 7800, 12, 2890, 16, 892, 4672, 1172, 315, 7015, 738, 72, 2870, 1731, 1199, 738, 562, 12, 892, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10954, 7800, 12, 2890, 16, 892, 4672, 1172, 315, 7015, 738, 72, 2870, 1731, 1199, 738, 562, 12, 892, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
musicianship.play_instrument( char, instrument, result )
skills.musicianship.play_instrument( char, instrument, result )
def response( char, args, target ): if not char.socket.hastag( 'peacemaking_instrument' ): return 0 # you can only target chars if not target.char: return 1 instrument = wolfpack.finditem( char.socket.gettag( 'peacemaking_instrument' ) ) if not instrument: return 0 if skills.skilltable[ PEACEMAKING ][ skills.UNHIDE ] ...
ad2fb5c1af41304c615892963957d7cff3e3439e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/ad2fb5c1af41304c615892963957d7cff3e3439e/peacemaking.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 766, 12, 1149, 16, 833, 16, 1018, 262, 30, 309, 486, 1149, 18, 7814, 18, 76, 689, 346, 12, 296, 347, 623, 19718, 67, 22818, 11, 262, 30, 327, 374, 468, 1846, 848, 1338, 1018, 5230, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1149, 16, 833, 16, 1018, 262, 30, 309, 486, 1149, 18, 7814, 18, 76, 689, 346, 12, 296, 347, 623, 19718, 67, 22818, 11, 262, 30, 327, 374, 468, 1846, 848, 1338, 1018, 5230, ...
pbuffer(True,define_buffer)
pbufferStr(define_buffer + "\n")
def parseSource(sfile, vars_dict): i = 0; #line counter in_v_comment = False; #Flag for lines inside a verilog comment block in_p_block = False; #Flag for lines inside a preprocessor block #Run through the file character by character using a DFA state = DEFAULT # State variable err_...
bc7caa6020ce9c0d3efd9e0dbbc8e121c4373dda /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3352/bc7caa6020ce9c0d3efd9e0dbbc8e121c4373dda/preprocessor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1830, 12, 87, 768, 16, 4153, 67, 1576, 4672, 225, 277, 273, 374, 31, 5375, 468, 1369, 3895, 316, 67, 90, 67, 3469, 273, 1083, 31, 282, 468, 4678, 364, 2362, 4832, 279, 1924, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1830, 12, 87, 768, 16, 4153, 67, 1576, 4672, 225, 277, 273, 374, 31, 5375, 468, 1369, 3895, 316, 67, 90, 67, 3469, 273, 1083, 31, 282, 468, 4678, 364, 2362, 4832, 279, 1924, 21...
if op1.sign == -1: result.sign = -1
if op1.sign == 1: result.sign = 1
def __add__(self, other, context=None): """Returns self + other.
ce77754a7a9856b4ea3aec633c8021212c8039a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ce77754a7a9856b4ea3aec633c8021212c8039a7/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 972, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 1356, 365, 397, 1308, 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,...
[ 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 972, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 1356, 365, 397, 1308, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
description= "Create a "+name, category = "PGL Object Generator", nodemodule = "objectgenerator", nodeclass = name+'Node', **kargs)
description= "Create a "+name, category = "PGL Object Generator", nodemodule = "objectgenerator", nodeclass = name+'Node', **kargs)
def generate_factory(name, **kargs): return Factory( name= name, description= "Create a "+name, category = "PGL Object Generator", nodemodule = "objectgenerator", nodeclass = name+'Node', **kargs)
2a6da979b8a59c13d5a15249a32414ef9a1f6adb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/799/2a6da979b8a59c13d5a15249a32414ef9a1f6adb/__wralea__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 6848, 12, 529, 16, 2826, 79, 1968, 4672, 327, 7822, 12, 508, 33, 508, 16, 2477, 33, 315, 1684, 279, 13773, 529, 16, 3150, 273, 315, 52, 11261, 1033, 10159, 3113, 756, 2978, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 6848, 12, 529, 16, 2826, 79, 1968, 4672, 327, 7822, 12, 508, 33, 508, 16, 2477, 33, 315, 1684, 279, 13773, 529, 16, 3150, 273, 315, 52, 11261, 1033, 10159, 3113, 756, 2978, ...
except AttributeError: fp_size = None
def do_grep(self, fp): """ Do a full grep.
73b5557e048342a519cecab38c11b31b4cc2dac6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10903/73b5557e048342a519cecab38c11b31b4cc2dac6/grin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 11556, 84, 12, 2890, 16, 4253, 4672, 3536, 2256, 279, 1983, 23366, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 11556, 84, 12, 2890, 16, 4253, 4672, 3536, 2256, 279, 1983, 23366, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
info = document.toxml(encoding='utf-16') obj.info = info
obj.info = document
def create_elem(): elem = document.createElement(self.tag_name) parent = document.getElementsByTagName(self.parent)[0] parent.appendChild(elem) return elem
5cbe331c0791d5ce5030fc48987fd5072a9a9db7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/5cbe331c0791d5ce5030fc48987fd5072a9a9db7/meta.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 10037, 13332, 3659, 273, 1668, 18, 2640, 1046, 12, 2890, 18, 2692, 67, 529, 13, 982, 273, 1668, 18, 588, 3471, 10401, 12, 2890, 18, 2938, 25146, 20, 65, 982, 18, 6923, 1763, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 67, 10037, 13332, 3659, 273, 1668, 18, 2640, 1046, 12, 2890, 18, 2692, 67, 529, 13, 982, 273, 1668, 18, 588, 3471, 10401, 12, 2890, 18, 2938, 25146, 20, 65, 982, 18, 6923, 1763, ...
self.indiType = self.data and self.methods.get(self.data.domain[self.selectedAttr].name, (0, ""))[0] or 0
if self.data: attr = self.data.domain[self.selectedAttr] self.indiType, value = self.methods.get(attr.name, False) or (-1, "") if self.indiType >= 0: if attr.varType == orange.VarTypes.Discrete: self.indiValueCtrl.setCurrentItem(value) else: self.indiValueCtrl.setText(value)
def setIndiType(self): self.indiType = self.data and self.methods.get(self.data.domain[self.selectedAttr].name, (0, ""))[0] or 0
5a20988f1aa69f170b9d5db9340463971696fdfe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/5a20988f1aa69f170b9d5db9340463971696fdfe/OWImpute.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 382, 3211, 559, 12, 2890, 4672, 309, 365, 18, 892, 30, 1604, 273, 365, 18, 892, 18, 4308, 63, 2890, 18, 8109, 3843, 65, 365, 18, 728, 77, 559, 16, 460, 273, 365, 18, 5163, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 382, 3211, 559, 12, 2890, 4672, 309, 365, 18, 892, 30, 1604, 273, 365, 18, 892, 18, 4308, 63, 2890, 18, 8109, 3843, 65, 365, 18, 728, 77, 559, 16, 460, 273, 365, 18, 5163, 18,...
else
else:
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 568) else quickfix.StringField.__init__(self, 568, 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, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1381, 9470, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1381, 9470, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738...
info = None
def createFields(self): # This stupid shit gets the LSB, not the MSB... self.info("Note info: 0x%02X" % self.stream.readBits(self.absolute_address, 8, LITTLE_ENDIAN)) yield RealBit(self, "is_extended") info = None if self["is_extended"].value: info = NoteInfo(self, "info") yield info if info["has_note"].value: yield En...
c99931bfecc0c1d1ea8ca2bff60774c9102dc066 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/c99931bfecc0c1d1ea8ca2bff60774c9102dc066/xm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2314, 12, 2890, 4672, 468, 1220, 384, 416, 350, 699, 305, 5571, 326, 511, 14541, 16, 486, 326, 9238, 38, 2777, 365, 18, 1376, 2932, 8067, 1123, 30, 374, 92, 9, 3103, 60, 6, 738,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2314, 12, 2890, 4672, 468, 1220, 384, 416, 350, 699, 305, 5571, 326, 511, 14541, 16, 486, 326, 9238, 38, 2777, 365, 18, 1376, 2932, 8067, 1123, 30, 374, 92, 9, 3103, 60, 6, 738,...
str='No MIB info for %s (distant parent %s)' % (oid, mibNode)
str='No MIB info for %s (closest parent %s)' % (oid, mibNode.name)
def oidToInstanceName(mibView, oid): oid, label, suffix = mibView.getNodeNameByOid(tuple(oid)) modName, symName, __suffix = mibView.getNodeLocation(oid) mibNode, = mibView.mibBuilder.importSymbols( modName, symName ) if hasattr(mibNode, 'getColumnInitializer'): # table column __modName, __symName, __s = mibView.getNode...
d1a4bbb6950ea6d7df3f385cc62df9731e497a70 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/587/d1a4bbb6950ea6d7df3f385cc62df9731e497a70/mibvar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7764, 774, 22520, 12, 81, 495, 1767, 16, 7764, 4672, 7764, 16, 1433, 16, 3758, 273, 312, 495, 1767, 18, 588, 18948, 858, 19105, 12, 8052, 12, 839, 3719, 681, 461, 16, 5382, 461, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7764, 774, 22520, 12, 81, 495, 1767, 16, 7764, 4672, 7764, 16, 1433, 16, 3758, 273, 312, 495, 1767, 18, 588, 18948, 858, 19105, 12, 8052, 12, 839, 3719, 681, 461, 16, 5382, 461, 16, ...
self.add_row(path[0])
self.add_row(os.path.join(defs.HOME_THEME_DIR, path[0]))
def extract_file(self, fname): tar = tarfile.open(fname, "r:gz") filelist = tar.getmembers() theme_found = False thumb_found = False for f in filelist: path = os.path.split(f.name) if path[1] == self.AWN_CONFIG: theme_found = True if path[1] == self.AWN_THUMB: thumb_found = True if theme_found and thumb_found: if hasat...
fbbad571f1ee3b50f3b4afce97428d348e7cce32 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8416/fbbad571f1ee3b50f3b4afce97428d348e7cce32/awnTheme.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 768, 12, 2890, 16, 5299, 4672, 8232, 273, 25857, 18, 3190, 12, 12749, 16, 315, 86, 30, 9764, 7923, 26204, 273, 8232, 18, 588, 7640, 1435, 5006, 67, 7015, 273, 1083, 11156, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 768, 12, 2890, 16, 5299, 4672, 8232, 273, 25857, 18, 3190, 12, 12749, 16, 315, 86, 30, 9764, 7923, 26204, 273, 8232, 18, 588, 7640, 1435, 5006, 67, 7015, 273, 1083, 11156, 67...
nic = InstanceCatalog.InstanceCatalog()
nic = InstanceCatalog()
def makeCatalogFromQuery(self, result): if os.environ.has_key("CATALOG_DESCRIPTION_PATH"): catalogDescriptionPath = os.environ["CATALOG_DESCRIPTION_PATH"] else: raise Exception("Environment variable CATALOG_DESCRIPTION_PATH not set to location of the catalog description files") nic = InstanceCatalog.InstanceCatalog() n...
11976c942f9ebf4a51cb090a8c8fcb77b4828536 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/91/11976c942f9ebf4a51cb090a8c8fcb77b4828536/queryDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 9769, 1265, 1138, 12, 2890, 16, 563, 4672, 309, 1140, 18, 28684, 18, 5332, 67, 856, 2932, 14130, 18683, 67, 15911, 67, 4211, 6, 4672, 6222, 3291, 743, 273, 1140, 18, 28684, 9614, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1221, 9769, 1265, 1138, 12, 2890, 16, 563, 4672, 309, 1140, 18, 28684, 18, 5332, 67, 856, 2932, 14130, 18683, 67, 15911, 67, 4211, 6, 4672, 6222, 3291, 743, 273, 1140, 18, 28684, 9614, ...
assert allclose(struve(v, z), value, atol=err), (v, z)
assert_tol_equal(struve(v, z), value, rtol=0, atol=err), (v, z)
def test_vs_series(self): """Check Struve function versus its power series""" for v in [-20, -10, -7.99, -3.4, -1, 0, 1, 3.4, 12.49, 16]: for z in [1, 10, 19, 21, 30]: value, err = self._series(v, z) assert allclose(struve(v, z), value, atol=err), (v, z)
9bfb2390def95a96da5a56f3a02a6b962e87c293 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12971/9bfb2390def95a96da5a56f3a02a6b962e87c293/test_basic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6904, 67, 10222, 12, 2890, 4672, 3536, 1564, 3978, 89, 537, 445, 14690, 407, 2097, 7212, 4166, 8395, 364, 331, 316, 23059, 3462, 16, 300, 2163, 16, 300, 27, 18, 2733, 16, 300...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6904, 67, 10222, 12, 2890, 4672, 3536, 1564, 3978, 89, 537, 445, 14690, 407, 2097, 7212, 4166, 8395, 364, 331, 316, 23059, 3462, 16, 300, 2163, 16, 300, 27, 18, 2733, 16, 300...
self.app = app
self.rootapp = rootapp self.apps = apps
def __init__(self, app): trace("ISAPISimpleHandler.__init__") self.app = app
742beb9f59a980a41b87dc069bb870643ade7d03 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4963/742beb9f59a980a41b87dc069bb870643ade7d03/isapi_wsgi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 595, 4672, 2606, 2932, 5127, 2557, 5784, 1503, 16186, 2738, 972, 7923, 365, 18, 2910, 273, 595, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 595, 4672, 2606, 2932, 5127, 2557, 5784, 1503, 16186, 2738, 972, 7923, 365, 18, 2910, 273, 595, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
src_piece = self.locs[src]
src_piece = self[src]
def move(self, sym, src, dst, options): """a (parsed) move is: (piece, src, dst, options), where dict options may contain the following keys: promote (None, R, Q, B, N), capture (True, False), hybrid, i.e. 'going to hybrid' (True, False), check (None, check, mate). all keys except 'promote' may be ignored""" src_piece...
3776bd3cb848913021c849d965c97d087e6dc8c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5164/3776bd3cb848913021c849d965c97d087e6dc8c1/board.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 12, 2890, 16, 5382, 16, 1705, 16, 3046, 16, 702, 4672, 3536, 69, 261, 10817, 13, 3635, 353, 30, 261, 30100, 16, 1705, 16, 3046, 16, 702, 3631, 1625, 2065, 702, 2026, 912, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 12, 2890, 16, 5382, 16, 1705, 16, 3046, 16, 702, 4672, 3536, 69, 261, 10817, 13, 3635, 353, 30, 261, 30100, 16, 1705, 16, 3046, 16, 702, 3631, 1625, 2065, 702, 2026, 912, 326, ...
def haselement(self,mycat,mypkg,ename): "boolean -- is the specified cat/pkg listed in this package's elements file?" mycmp=mycat+"/"+mypkg for x in self.getelements(ename): if x == mycmp: return 1 return 0 def hasprovide(self,mycat,mypkg): return self.haselement(mycat,mypkg,"PROVIDE") def getprovides(self): "get a l...
def isregular(self): "Is this a regular package (does it have a CATEGORY file? A dblink can be virtual *and* regular)" return os.path.exists(self.dbdir+"/CATEGORY")
def haselement(self,mycat,mypkg,ename): "boolean -- is the specified cat/pkg listed in this package's elements file?" mycmp=mycat+"/"+mypkg for x in self.getelements(ename): if x == mycmp: return 1 return 0
e2aa1d10ca9e8b9fc4c5050206871cfb8f47522d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2807/e2aa1d10ca9e8b9fc4c5050206871cfb8f47522d/portage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 2956, 12, 2890, 16, 4811, 2574, 16, 81, 879, 14931, 16, 1069, 4672, 315, 6494, 1493, 353, 326, 1269, 6573, 19, 10657, 12889, 316, 333, 2181, 1807, 2186, 585, 7225, 3399, 9625, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 711, 2956, 12, 2890, 16, 4811, 2574, 16, 81, 879, 14931, 16, 1069, 4672, 315, 6494, 1493, 353, 326, 1269, 6573, 19, 10657, 12889, 316, 333, 2181, 1807, 2186, 585, 7225, 3399, 9625, 33, ...
self.out.write("void %s::SendContents(Bridge* b)\n" % classname)
self.out.write("void %s::SendContents(Bridge* b) const\n" % classname)
def sendcontents_im(self, obj, statics): classname = classize(obj.attr['id'].value) self.out.write("void %s::SendContents(Bridge* b)\n" % classname) self.out.write("{\n") for attr in statics: self.out.write(' Send%s(b);\n' % classize(attr.name)) parent = obj.attr['parents'].value[0] self.out.write(" %s::SendConte...
9735567828cceff0576f75d0dc23ff6b13b4f601 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12931/9735567828cceff0576f75d0dc23ff6b13b4f601/gen_cc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 3980, 67, 381, 12, 2890, 16, 1081, 16, 760, 87, 4672, 7479, 273, 667, 554, 12, 2603, 18, 1747, 3292, 350, 29489, 1132, 13, 365, 18, 659, 18, 2626, 2932, 6459, 738, 87, 2866, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1366, 3980, 67, 381, 12, 2890, 16, 1081, 16, 760, 87, 4672, 7479, 273, 667, 554, 12, 2603, 18, 1747, 3292, 350, 29489, 1132, 13, 365, 18, 659, 18, 2626, 2932, 6459, 738, 87, 2866, 38...
resp, subs = s.xhdr('subject', first + '-' + last)
resp, subs = s.xhdr('subject', '{0}-{1}'.format(first, last))
def quit(self): """Process a QUIT command and close the socket. Returns: - resp: server response if successful"""
eb96c4e975fd746fcc8b85f47c3592472b8d6b15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/eb96c4e975fd746fcc8b85f47c3592472b8d6b15/nntplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9706, 12, 2890, 4672, 3536, 2227, 279, 10110, 1285, 1296, 471, 1746, 326, 2987, 18, 225, 2860, 30, 300, 1718, 30, 1438, 766, 309, 6873, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9706, 12, 2890, 4672, 3536, 2227, 279, 10110, 1285, 1296, 471, 1746, 326, 2987, 18, 225, 2860, 30, 300, 1718, 30, 1438, 766, 309, 6873, 8395, 2, -100, -100, -100, -100, -100, -100, -100,...
self._write_namespace(namespace, shlib)
self._write_namespace(namespace, shlibs)
def _write_repository(self, namespace, shlib, includes=set()): attrs = [ ('version', '1.0'), ('xmlns', 'http://www.gtk.org/introspection/core/1.0'), ('xmlns:c', 'http://www.gtk.org/introspection/c/1.0'), ('xmlns:glib', 'http://www.gtk.org/introspection/glib/1.0'), ] with self.tagcontext('repository', attrs): for includ...
9045f204f1f911867c2dae885904f13f83b9ddab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2770/9045f204f1f911867c2dae885904f13f83b9ddab/girwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 9071, 12, 2890, 16, 1981, 16, 699, 2941, 16, 6104, 33, 542, 1435, 4672, 3422, 273, 306, 7707, 1589, 2187, 296, 21, 18, 20, 19899, 7707, 16741, 2187, 296, 2505, 2207, 559...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 9071, 12, 2890, 16, 1981, 16, 699, 2941, 16, 6104, 33, 542, 1435, 4672, 3422, 273, 306, 7707, 1589, 2187, 296, 21, 18, 20, 19899, 7707, 16741, 2187, 296, 2505, 2207, 559...
def __add__(self, s): """ Returns the sum of two streams. EXAMPLES:: sage: from sage.combinat.species.stream import Stream sage: s = Stream(ZZ) sage: ss = s + s sage: [ss[i] for i in range(10)] [0, 2, -2, 4, -4, 6, -6, 8, -8, 10] """ if not isinstance(s, Stream_class): raise TypeError, "s must be a Stream" return Str...
def __add__(self, s): """ Returns the sum of two streams.
ebfc2d1b32c8b0153b7c6921bae684dee1185427 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/ebfc2d1b32c8b0153b7c6921bae684dee1185427/stream.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 972, 12, 2890, 16, 272, 4672, 3536, 2860, 326, 2142, 434, 2795, 8205, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 972, 12, 2890, 16, 272, 4672, 3536, 2860, 326, 2142, 434, 2795, 8205, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
autocomplete="off" onkeypress="upArrow(this, event)"><br>
autocomplete="off"><br>
def make_repost_button(environ): url = request.construct_url(environ) if environ['REQUEST_METHOD'] == 'GET': return ('<button onclick="window.location.href=%r">' 'Re-GET Page</button><br>' % url) else: # @@: I'd like to reconstruct this, but I can't because # the POST body is probably lost at this point, and # I can't ...
b236391d16e3eae856284a48117e19a19e9b54f1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12946/b236391d16e3eae856284a48117e19a19e9b54f1/evalexception.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 266, 2767, 67, 5391, 12, 28684, 4672, 880, 273, 590, 18, 10062, 67, 718, 12, 28684, 13, 309, 5473, 3292, 5519, 67, 5327, 3546, 422, 296, 3264, 4278, 327, 7707, 32, 5391, 2232...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1221, 67, 266, 2767, 67, 5391, 12, 28684, 4672, 880, 273, 590, 18, 10062, 67, 718, 12, 28684, 13, 309, 5473, 3292, 5519, 67, 5327, 3546, 422, 296, 3264, 4278, 327, 7707, 32, 5391, 2232...
self.session.gotoLocation()
self.view.send.gotoLocation()
def on_location_editing_done(self, location): self.session.gotoLocation()
4fadf73203be069e1abb0745e50de808e949d82c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9377/4fadf73203be069e1abb0745e50de808e949d82c/gnomoire.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3562, 67, 4619, 310, 67, 8734, 12, 2890, 16, 2117, 4672, 365, 18, 3184, 18, 75, 6302, 2735, 1435, 2, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3562, 67, 4619, 310, 67, 8734, 12, 2890, 16, 2117, 4672, 365, 18, 3184, 18, 75, 6302, 2735, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
self.fps = nsteps / (end_time - start_time + .001 )
duration = min(1.5, time.time() - start_time + .001) self.fps = nsteps / duration
def animateView(self, q2, s2, p2, z2, animate=True): "Animate current view to quat (viewpoint) q2, scale s2, pov p2, and zoom factor z2" # Check User Preference "General | Standard Views: Animate" if not animate or not env.prefs[animateStandardViews_prefs_key]: self.quat = Q(q2) self.pov = V(p2[0], p2[1], p2[2]) self....
5fb22f777c91adb971bce1f786163070dfd13fc4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/5fb22f777c91adb971bce1f786163070dfd13fc4/GLPane.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14671, 1767, 12, 2890, 16, 1043, 22, 16, 272, 22, 16, 293, 22, 16, 998, 22, 16, 14671, 33, 5510, 4672, 315, 979, 4988, 783, 1476, 358, 25847, 261, 1945, 1153, 13, 1043, 22, 16, 3159,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14671, 1767, 12, 2890, 16, 1043, 22, 16, 272, 22, 16, 293, 22, 16, 998, 22, 16, 14671, 33, 5510, 4672, 315, 979, 4988, 783, 1476, 358, 25847, 261, 1945, 1153, 13, 1043, 22, 16, 3159,...
for key in request.session['shares'].iterkeys(): try: session_key = "S:%s if share_connectors.has_key(session_key): share_connectors.get(session_key).seppuku() del share_connectors[session_key] except: logger.error(traceback.format_exc())
try: for key in request.session['shares'].iterkeys(): try: session_key = "S:%s if share_connectors.has_key(session_key): share_connectors.get(session_key).seppuku() del share_connectors[session_key] except: logger.error(traceback.format_exc()) except KeyError: pass
def logout(request, **kwargs): conn = None try: conn = kwargs["conn"] except: logger.error(traceback.format_exc()) return handlerInternalError("Connection is not available. Please contact your administrator.") for key in request.session['shares'].iterkeys(): try: session_key = "S:%s#%s#%s" % (request.session.session_k...
ad77f06d874b17f64116bf1142bc099dabd5d3da /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/ad77f06d874b17f64116bf1142bc099dabd5d3da/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12735, 12, 2293, 16, 2826, 4333, 4672, 1487, 273, 599, 775, 30, 1487, 273, 1205, 9614, 4646, 11929, 1335, 30, 1194, 18, 1636, 12, 21696, 18, 2139, 67, 10075, 10756, 327, 1838, 20980, 293...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12735, 12, 2293, 16, 2826, 4333, 4672, 1487, 273, 599, 775, 30, 1487, 273, 1205, 9614, 4646, 11929, 1335, 30, 1194, 18, 1636, 12, 21696, 18, 2139, 67, 10075, 10756, 327, 1838, 20980, 293...
if not self.abort: self.parent.gauge1.SetValue(0.0) self.parent.thisvideo.append(self.parent.videos[self.parent.converting]) self.filename=REGEX_FILE_CLEANUP_FILENAME.sub('',self.parent.meta[self.parent.videos[self.parent.converting]]['name']) self.profile=int(self.parent.meta[self.parent.videos[self.parent.converting]...
self.parent.gauge1.SetValue(0.0) self.parent.thisvideo.append(self.parent.videos[self.parent.converting]) self.filename=REGEX_FILE_CLEANUP_FILENAME.sub('',self.parent.meta[self.parent.videos[self.parent.converting]]['name']) self.profile=int(self.parent.meta[self.parent.videos[self.parent.converting]]['profile']) self....
def run(self): self.abort=False if True:#for self.uri in self.uris: self.uri=self.uris[0] if not self.abort: self.parent.gauge1.SetValue(0.0) self.parent.thisvideo.append(self.parent.videos[self.parent.converting]) self.filename=REGEX_FILE_CLEANUP_FILENAME.sub('',self.parent.meta[self.parent.videos[self.parent.converti...
7ad6098b40f1a39c4d76402fede5772f656b7b13 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/7ad6098b40f1a39c4d76402fede5772f656b7b13/DamnVid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 365, 18, 18623, 33, 8381, 309, 1053, 27363, 1884, 365, 18, 1650, 316, 365, 18, 23510, 30, 365, 18, 1650, 33, 2890, 18, 23510, 63, 20, 65, 365, 18, 2938, 18, 75,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 365, 18, 18623, 33, 8381, 309, 1053, 27363, 1884, 365, 18, 1650, 316, 365, 18, 23510, 30, 365, 18, 1650, 33, 2890, 18, 23510, 63, 20, 65, 365, 18, 2938, 18, 75,...
self.parser.openElements.pop()
if self.parser.openElements[-1] == name: self.parser.openElements.pop() else: self.parser.parseError()
def endTagTitleStyleScript(self, name): self.parser.openElements.pop()
9968d62be9415e0f0c75be992d56b7adab3b89d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4487/9968d62be9415e0f0c75be992d56b7adab3b89d3/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 4247, 2885, 3651, 12, 2890, 16, 508, 4672, 309, 365, 18, 4288, 18, 3190, 3471, 18919, 21, 65, 422, 508, 30, 365, 18, 4288, 18, 3190, 3471, 18, 5120, 1435, 469, 30, 365, 18, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29765, 4247, 2885, 3651, 12, 2890, 16, 508, 4672, 309, 365, 18, 4288, 18, 3190, 3471, 18919, 21, 65, 422, 508, 30, 365, 18, 4288, 18, 3190, 3471, 18, 5120, 1435, 469, 30, 365, 18, 42...
def eval(self, *args, **kwds):
def eval(self, code, globals=None, locals=None, synchronize=True, *args, **kwds):
def eval(self, *args, **kwds): """ Evaluates a command inside the R interpreter and returns the output as a string. EXAMPLES: sage: r.eval('1+1') '[1] 2'
27b9dddb1083d54aec9102ed84a9441f2f76eb42 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/27b9dddb1083d54aec9102ed84a9441f2f76eb42/r.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5302, 12, 2890, 16, 981, 16, 10941, 33, 7036, 16, 8985, 33, 7036, 16, 16978, 33, 5510, 16, 380, 1968, 16, 2826, 25577, 4672, 3536, 10271, 815, 279, 1296, 4832, 326, 534, 16048, 471, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5302, 12, 2890, 16, 981, 16, 10941, 33, 7036, 16, 8985, 33, 7036, 16, 16978, 33, 5510, 16, 380, 1968, 16, 2826, 25577, 4672, 3536, 10271, 815, 279, 1296, 4832, 326, 534, 16048, 471, 11...
HandlerAPI.DeliverToList(self, msg, newdata=msgdata)
HandlerAPI.DeliverToList(self, msg, msgdata)
def __handlepost(self, record, value, comment): # For backwards compatibility with pre 2.0beta3 if len(record) == 5: ptime, sender, subject, reason, filename = record msgdata = {} else: # New format of record ptime, sender, subject, reason, filename, msgdata = record path = os.path.join(mm_cfg.DATA_DIR, filename) rejec...
18950fcd77ad9afe6dbee3c2be29fd019aabcd9a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/18950fcd77ad9afe6dbee3c2be29fd019aabcd9a/ListAdmin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4110, 2767, 12, 2890, 16, 1409, 16, 460, 16, 2879, 4672, 468, 2457, 12727, 8926, 598, 675, 576, 18, 20, 5758, 23, 309, 562, 12, 3366, 13, 422, 1381, 30, 293, 957, 16, 5793, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4110, 2767, 12, 2890, 16, 1409, 16, 460, 16, 2879, 4672, 468, 2457, 12727, 8926, 598, 675, 576, 18, 20, 5758, 23, 309, 562, 12, 3366, 13, 422, 1381, 30, 293, 957, 16, 5793, 16,...
tc = 1.0/max(abs(vals.real)) T = arange(0,8*tc,8*tc / float(N))
tc = 1.0/max(abs(real(vals))) T = arange(0,10*tc,10*tc / float(N))
def impulse(system, X0=None, T=None, N=None): if isinstance(system, lti): sys = system else: sys = lti(*system) if X0 is None: B = sys.B else: B = sys.B + X0 if N is None: N = 100 if T is None: vals = linalg.eigvals(sys.A) tc = 1.0/max(abs(vals.real)) T = arange(0,8*tc,8*tc / float(N)) h = zeros(T.shape, sys.A.typecode...
268e9b5bffbd8a297de272073e03dd07dffaa5bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/268e9b5bffbd8a297de272073e03dd07dffaa5bc/ltisys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1646, 24667, 12, 4299, 16, 1139, 20, 33, 7036, 16, 399, 33, 7036, 16, 423, 33, 7036, 4672, 309, 1549, 12, 4299, 16, 20197, 4672, 2589, 273, 2619, 469, 30, 2589, 273, 20197, 30857, 4299...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1646, 24667, 12, 4299, 16, 1139, 20, 33, 7036, 16, 399, 33, 7036, 16, 423, 33, 7036, 4672, 309, 1549, 12, 4299, 16, 20197, 4672, 2589, 273, 2619, 469, 30, 2589, 273, 20197, 30857, 4299...
if type_datum is UnicodeType:
type_datum = type(datum) if type_datum == UnicodeType:
def SearchableText(self): """All fields marked as 'searchable' are concatenated together here for indexing purpose""" data = [] charset = self.getCharset() for field in self.Schema().fields(): if not field.searchable: continue method = field.getAccessor(self) try: datum = method(mimetype="text/plain") except TypeError...
f0ae295d4e54409254bff207c9403071e6554fe7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/f0ae295d4e54409254bff207c9403071e6554fe7/BaseObject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5167, 429, 1528, 12, 2890, 4672, 3536, 1595, 1466, 9350, 487, 296, 3072, 429, 11, 854, 22080, 9475, 2674, 364, 14403, 13115, 8395, 501, 273, 5378, 4856, 273, 365, 18, 588, 9652, 1435, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5167, 429, 1528, 12, 2890, 4672, 3536, 1595, 1466, 9350, 487, 296, 3072, 429, 11, 854, 22080, 9475, 2674, 364, 14403, 13115, 8395, 501, 273, 5378, 4856, 273, 365, 18, 588, 9652, 1435, 36...
except EOFError: typ, dat = None, [None]
except: typ, dat = 'NO', ['%s: %s' % sys.exc_info()[:2]]
def logout(self): """Shutdown connection to server.
30d7469fec69eeeae9057b22a126d4a00278147c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/30d7469fec69eeeae9057b22a126d4a00278147c/imaplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12735, 12, 2890, 4672, 3536, 10961, 1459, 358, 1438, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12735, 12, 2890, 4672, 3536, 10961, 1459, 358, 1438, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
class TopVirusesDetected(reports.Graph):
class TopWebVirusesDetected(reports.Graph):
def get_plot(self, end_date, report_days, host=None, user=None, email=None): ed = DateFromMx(end_date) one_week = DateFromMx(end_date - mx.DateTime.DateTimeDelta(report_days))
105b5e27bf63d007da247194879b178db12c5076 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/87/105b5e27bf63d007da247194879b178db12c5076/untangle_base_virus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4032, 12, 2890, 16, 679, 67, 712, 16, 2605, 67, 9810, 16, 1479, 33, 7036, 16, 729, 33, 7036, 16, 2699, 33, 7036, 4672, 1675, 273, 2167, 1265, 49, 92, 12, 409, 67, 712, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4032, 12, 2890, 16, 679, 67, 712, 16, 2605, 67, 9810, 16, 1479, 33, 7036, 16, 729, 33, 7036, 16, 2699, 33, 7036, 4672, 1675, 273, 2167, 1265, 49, 92, 12, 409, 67, 712, 13,...
"Could not find example root directory. Do you have the " \
"Could not find example root directory. Do you have the" \
def test_get_test_path(): assert os.path.isdir(get_example_path('')), \ "Could not find example root directory. Do you have the " \ + " whole repository structure checked out?"
51cce200bcae1cb17e93d25a05a967a88116f114 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/51cce200bcae1cb17e93d25a05a967a88116f114/jmitest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 67, 3813, 67, 803, 13332, 1815, 1140, 18, 803, 18, 291, 1214, 12, 588, 67, 8236, 67, 803, 2668, 6134, 3631, 521, 315, 4445, 486, 1104, 3454, 1365, 1867, 18, 2256, 1846, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 67, 3813, 67, 803, 13332, 1815, 1140, 18, 803, 18, 291, 1214, 12, 588, 67, 8236, 67, 803, 2668, 6134, 3631, 521, 315, 4445, 486, 1104, 3454, 1365, 1867, 18, 2256, 1846, ...
guess = self.add(bank, 077777 & ~bugger)
guess = self._add(bank, 077777 & ~bugger)
def __init__(self, context): self.context = context # Assembler context. self.objectCode = {}
17f6f0cbe742001a56ee33de28087b87c16288b2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/17f6f0cbe742001a56ee33de28087b87c16288b2/binary.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 819, 4672, 365, 18, 2472, 273, 819, 2868, 468, 2970, 5747, 749, 819, 18, 365, 18, 1612, 1085, 273, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 819, 4672, 365, 18, 2472, 273, 819, 2868, 468, 2970, 5747, 749, 819, 18, 365, 18, 1612, 1085, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -10...
(cSuccess, cResult), (sSuccess, sResult) = util.deferredResult(d) self.failIf(cSuccess) self.failIf(sSuccess) errors = log.flushErrors(SSL.Error)
def afterLost(((cSuccess, cResult), (sSuccess, sResult))): self.failIf(cSuccess) self.failIf(sSuccess) return d.addCallback(afterLost)
def testRefusedAnonymousClientConnection(self): onServerLost = defer.Deferred() onClientLost = defer.Deferred() self.loopback(sslverify.OpenSSLCertificateOptions(privateKey=self.sKey, certificate=self.sCert, verify=True, caCerts=[self.sCert], requireCertificate=True), sslverify.OpenSSLCertificateOptions(requireCertific...
6305a011c61d2e3075143d6d1aac62b453e35f67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8962/6305a011c61d2e3075143d6d1aac62b453e35f67/test_sslverify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1957, 3668, 18792, 1227, 1952, 12, 2890, 4672, 603, 2081, 19024, 273, 2220, 18, 16886, 1435, 603, 1227, 19024, 273, 2220, 18, 16886, 1435, 365, 18, 6498, 823, 12, 8157, 8705, 18, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1957, 3668, 18792, 1227, 1952, 12, 2890, 4672, 603, 2081, 19024, 273, 2220, 18, 16886, 1435, 603, 1227, 19024, 273, 2220, 18, 16886, 1435, 365, 18, 6498, 823, 12, 8157, 8705, 18, 3...
return html2unicode(s, language = incode)
return unicodeName(s, language = incode)
def interwikiFormat(links, incode): """Create a suitable string to start a wikipedia page consisting of interwikilinks given as a dictionary of code:pagename in the argument. """ s = [] ar = links.keys() ar.sort() if mylang in config.interwiki_englishfirst: if 'en' in ar: del ar[ar.index('en')] ar[:0]=['en'] for code i...
b62f0c7652f84c145d97d46d58d9c2d64f35ee08 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/b62f0c7652f84c145d97d46d58d9c2d64f35ee08/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1554, 13044, 1630, 12, 7135, 16, 316, 710, 4672, 3536, 1684, 279, 10631, 533, 358, 787, 279, 21137, 1363, 23570, 434, 1554, 11999, 330, 754, 87, 864, 487, 279, 3880, 434, 981, 30, 9095, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1554, 13044, 1630, 12, 7135, 16, 316, 710, 4672, 3536, 1684, 279, 10631, 533, 358, 787, 279, 21137, 1363, 23570, 434, 1554, 11999, 330, 754, 87, 864, 487, 279, 3880, 434, 981, 30, 9095, ...
sync_open = sync_open sync_read = sync_read sync_close = sync_close
def producer_stalled (self): return not ( self.async_closed or len (self.async_buffers) > 0 )
d682bff8b8919db3c121c9b1fc5bed856eb8f68b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/d682bff8b8919db3c121c9b1fc5bed856eb8f68b/synchronized.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12608, 67, 334, 4502, 261, 2890, 4672, 327, 486, 261, 365, 18, 3810, 67, 12204, 578, 562, 261, 2890, 18, 3810, 67, 28101, 13, 405, 374, 262, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12608, 67, 334, 4502, 261, 2890, 4672, 327, 486, 261, 365, 18, 3810, 67, 12204, 578, 562, 261, 2890, 18, 3810, 67, 28101, 13, 405, 374, 262, 225, 2, -100, -100, -100, -100, -100, -100,...
def unicode_internal_decode( unistr,errors='strict'): """None """ if type(unistr) == unicode: return unistr,len(unistr) else: return unicode(unistr),len(unistr)
def utf_16_be_encode( obj,errors='strict'): """None """ res = PyUnicode_EncodeUTF16(obj,len(obj),errors,'big') res = ''.join(res) return res, len(res)
43ce23feb40aadc6a6a9c31d19c968e0351f9245 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/43ce23feb40aadc6a6a9c31d19c968e0351f9245/inprogress__codecs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7718, 67, 2313, 67, 2196, 67, 3015, 12, 1081, 16, 4324, 2218, 13948, 11, 4672, 3536, 7036, 3536, 400, 273, 4707, 16532, 67, 5509, 5159, 2313, 12, 2603, 16, 1897, 12, 2603, 3631, 4324, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7718, 67, 2313, 67, 2196, 67, 3015, 12, 1081, 16, 4324, 2218, 13948, 11, 4672, 3536, 7036, 3536, 400, 273, 4707, 16532, 67, 5509, 5159, 2313, 12, 2603, 16, 1897, 12, 2603, 3631, 4324, ...
dir.Append(Function(VideoItem(PlayVideo,video.text,thumb=R(ICON),art=R(ART)),link = video.get("href")))
dir.Append(Function(VideoItem(PlayVideo,video.text),link = video.get("href")))
def ParseSearchResults(sender, query=None): dir = MediaContainer(viewGroup="InfoList") results = HTML.ElementFromURL('http://www.khanacademy.org/search?page_search_query='+query).xpath("//section[@class='videos']//dt/a") if results == []: return MessageContainer('No Results','No video file could be found for the fol...
f4c8dcb66d81d6ad90a3b46a428caddbc823b2dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14350/f4c8dcb66d81d6ad90a3b46a428caddbc823b2dd/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2884, 2979, 3447, 12, 15330, 16, 843, 33, 7036, 4672, 225, 1577, 273, 6128, 2170, 12, 1945, 1114, 1546, 17914, 7923, 225, 1686, 273, 3982, 18, 1046, 1265, 1785, 2668, 2505, 2207, 5591, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2884, 2979, 3447, 12, 15330, 16, 843, 33, 7036, 4672, 225, 1577, 273, 6128, 2170, 12, 1945, 1114, 1546, 17914, 7923, 225, 1686, 273, 3982, 18, 1046, 1265, 1785, 2668, 2505, 2207, 5591, 1...
def __init__(self, out=None):
def __init__(self, out=None, encoding="iso-8859-1"):
def __init__(self, out=None): if out is None: import sys out = sys.stdout handler.ContentHandler.__init__(self) self._out = out
d2e8ed58c83ecc5390d6cf99651b791350b04e61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/d2e8ed58c83ecc5390d6cf99651b791350b04e61/saxutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 596, 33, 7036, 16, 2688, 1546, 9699, 17, 17258, 17, 21, 6, 4672, 309, 596, 353, 599, 30, 1930, 2589, 596, 273, 2589, 18, 10283, 1838, 18, 1350, 1503, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 596, 33, 7036, 16, 2688, 1546, 9699, 17, 17258, 17, 21, 6, 4672, 309, 596, 353, 599, 30, 1930, 2589, 596, 273, 2589, 18, 10283, 1838, 18, 1350, 1503, 1...
output(u'Image deleted before getting the Hash. Skipping...')
output(u'File deleted before getting the Hash. Skipping...')
def getHash(self): """ Function that return the Hash of an image in oder to understand if two Images are the same or not. """ if self.exists(): params = { 'action' :'query', 'titles' :self.title(), 'prop' :'imageinfo', 'iiprop' :'sha1', } # First of all we need the Hash that identify an image data = query...
b4e6dbf405f65d45e84baeb5508d02d04da189c0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/b4e6dbf405f65d45e84baeb5508d02d04da189c0/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16075, 12, 2890, 4672, 3536, 4284, 716, 327, 326, 2474, 434, 392, 1316, 316, 320, 765, 358, 22413, 309, 2795, 23022, 854, 326, 1967, 578, 486, 18, 3536, 309, 365, 18, 1808, 13332, 859, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16075, 12, 2890, 4672, 3536, 4284, 716, 327, 326, 2474, 434, 392, 1316, 316, 320, 765, 358, 22413, 309, 2795, 23022, 854, 326, 1967, 578, 486, 18, 3536, 309, 365, 18, 1808, 13332, 859, ...
if dep1[0] == 'T' or dep1[0:2] == 'IT': return depUpdateRules[dep2][dep1] return depUpdateRules[dep1][dep2]
dep1_required = isRequiredDep(dep1) dep1_direct = isDirectDep(dep1) dep1_lib = isLibDep(dep1) dep2_required = isRequiredDep(dep2) dep2_direct = isDirectDep(dep2) dep2_lib = isLibDep(dep2) selectedDep = False if dep1 == dep2: newDep = dep1 selectedDep = True if not selectedDep: if dep1_required and not dep2_requ...
def updatePackageDep(dep1, dep2): if dep1[0] == 'T' or dep1[0:2] == 'IT': return depUpdateRules[dep2][dep1] return depUpdateRules[dep1][dep2]
14ce9fd4920947e5f8b1813e1f49ee4adffd7eaf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1130/14ce9fd4920947e5f8b1813e1f49ee4adffd7eaf/TrilinosDependencies.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 2261, 16316, 12, 15037, 21, 16, 5993, 22, 4672, 565, 5993, 21, 67, 4718, 273, 14967, 16316, 12, 15037, 21, 13, 5993, 21, 67, 7205, 273, 353, 5368, 16316, 12, 15037, 21, 13, 5993,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 2261, 16316, 12, 15037, 21, 16, 5993, 22, 4672, 565, 5993, 21, 67, 4718, 273, 14967, 16316, 12, 15037, 21, 13, 5993, 21, 67, 7205, 273, 353, 5368, 16316, 12, 15037, 21, 13, 5993,...
interncolumns = ("process_id", "coinc_def_id", "time_slide_id")
interncolumns = ("process_id", "coinc_def_id", "time_slide_id", "instruments")
def __init__(self, **kwargs): for name, value in kwargs.items(): setattr(self, name, value)
000180bdcfe2998f4dda83d9ae557ed3d6f0b3aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3589/000180bdcfe2998f4dda83d9ae557ed3d6f0b3aa/lsctables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 4333, 4672, 364, 508, 16, 460, 316, 1205, 18, 3319, 13332, 9241, 12, 2890, 16, 508, 16, 460, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 4333, 4672, 364, 508, 16, 460, 316, 1205, 18, 3319, 13332, 9241, 12, 2890, 16, 508, 16, 460, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
database doesn't exist).
database doesn't exist). defaults to 0.
def newdb(request): """Create a new database. Accepts POST requests only. If the database already exists: - if overwrite is 1, replaces the database completely with a new one (deleting all the contents). - otherwise, returns an error. Supported parameters: - `db_name`: contains the name of the database. - `fields`:...
3260c6ea689f17a1576be97ccd98b27460457131 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9909/3260c6ea689f17a1576be97ccd98b27460457131/search.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 1966, 12, 2293, 4672, 3536, 1684, 279, 394, 2063, 18, 225, 27158, 5485, 3285, 1338, 18, 225, 971, 326, 2063, 1818, 1704, 30, 300, 309, 6156, 353, 404, 16, 12878, 326, 2063, 14416, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 1966, 12, 2293, 4672, 3536, 1684, 279, 394, 2063, 18, 225, 27158, 5485, 3285, 1338, 18, 225, 971, 326, 2063, 1818, 1704, 30, 300, 309, 6156, 353, 404, 16, 12878, 326, 2063, 14416, ...
if __debug__: onScreenDebug.render()
onScreenDebug.render()
def igLoop(self, state): if __debug__: # We render the watch variables for the onScreenDebug as soon # as we reasonably can before the renderFrame(). onScreenDebug.render()
f86c6e322c7a566a9780a7fa8a58bfb11a1e2b39 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/f86c6e322c7a566a9780a7fa8a58bfb11a1e2b39/ShowBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18158, 6452, 12, 2890, 16, 919, 4672, 309, 1001, 4148, 972, 30, 468, 1660, 1743, 326, 4267, 3152, 364, 326, 603, 7956, 2829, 487, 17136, 468, 487, 732, 3971, 6906, 848, 1865, 326, 1743, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18158, 6452, 12, 2890, 16, 919, 4672, 309, 1001, 4148, 972, 30, 468, 1660, 1743, 326, 4267, 3152, 364, 326, 603, 7956, 2829, 487, 17136, 468, 487, 732, 3971, 6906, 848, 1865, 326, 1743, ...
def _posHprBroadcast(self, task=DummyTask):
def _posHprBroadcast(self, task=None):
def _posHprBroadcast(self, task=DummyTask): # TODO: we explicitly stagger the initial task timing in # startPosHprBroadcast; we should at least make an effort to keep # this task accurately aligned with its period and starting time. self.d_broadcastPosHpr() task.setDelay(self.__broadcastPeriod) return Task.again
c1f013a2c877e639a2da7ee3915e0a8cf22af867 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7242/c1f013a2c877e639a2da7ee3915e0a8cf22af867/DistributedSmoothNodeBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 917, 44, 683, 15926, 12, 2890, 16, 1562, 33, 7036, 4672, 468, 2660, 30, 732, 8122, 384, 7594, 326, 2172, 1562, 15538, 316, 468, 16013, 44, 683, 15926, 31, 732, 1410, 622, 4520, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 917, 44, 683, 15926, 12, 2890, 16, 1562, 33, 7036, 4672, 468, 2660, 30, 732, 8122, 384, 7594, 326, 2172, 1562, 15538, 316, 468, 16013, 44, 683, 15926, 31, 732, 1410, 622, 4520, 12...
column.set_sort_column_id(next_column)
if sort_name is not None: column.set_sort_column_id(next_column+1) else: column.set_sort_column_id(next_column)
def new( self): if not hasattr( self, 'callback'): self.callback = None
d04c533b5d76014416b59855c0d2055d4c8f86c1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12778/d04c533b5d76014416b59855c0d2055d4c8f86c1/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 12, 365, 4672, 309, 486, 3859, 12, 365, 16, 296, 3394, 11, 4672, 365, 18, 3394, 273, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 12, 365, 4672, 309, 486, 3859, 12, 365, 16, 296, 3394, 11, 4672, 365, 18, 3394, 273, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
with io.open(support.TESTFN, self.write_mode, buffering=0) as raw:
with self.open(support.TESTFN, self.write_mode, buffering=0) as raw:
def test_threads(self): try: # Write out many bytes from many threads and test they were # all flushed. N = 1000 contents = bytes(range(256)) * N sizes = cycle([1, 19]) n = 0 queue = deque() while n < len(contents): size = next(sizes) queue.append(contents[n:n+size]) n += size del contents # We use a real file object b...
540d576d7a9562b3f2b22d53da6ef10922fb5986 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/540d576d7a9562b3f2b22d53da6ef10922fb5986/test_io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 12495, 12, 2890, 4672, 775, 30, 468, 2598, 596, 4906, 1731, 628, 4906, 7403, 471, 1842, 2898, 4591, 468, 777, 22604, 18, 423, 273, 4336, 2939, 273, 1731, 12, 3676, 12, 5034, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 12495, 12, 2890, 4672, 775, 30, 468, 2598, 596, 4906, 1731, 628, 4906, 7403, 471, 1842, 2898, 4591, 468, 777, 22604, 18, 423, 273, 4336, 2939, 273, 1731, 12, 3676, 12, 5034, ...
else: moveOffset = scale * self.assy.o.right moveOffset += scale * self.assy.o.down
else: moveOffset = initial_offset_for_other_pastables moveOffset += scale * self.assy.o.right moveOffset += scale * self.assy.o.down self._initial_paste_offset_for_other_pastables = moveOffset
of def filterChunks
8b748f35206882452325a1386b28bfd7edbaaa4f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/8b748f35206882452325a1386b28bfd7edbaaa4f/ops_copy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 434, 1652, 1034, 14975, 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, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 434, 1652, 1034, 14975, 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, ...
self.eventprocessor.logMessage(_("Queued upload request: %s") % str(vars(msg)), 5)
self.eventprocessor.logMessage(_("Queued upload request: User %s, %s") % (user, str(vars(msg))), 5)
def QueueUpload(self, msg): """ Peer remotely(?) queued a download (upload here) """ user = None for i in self.peerconns: if i.conn is msg.conn.conn: user = i.username if user is None: return addr = msg.conn.addr[0] if not self.fileIsQueued(user, msg.file): friend = user in [i[0] for i in self.eventprocessor.userlist.u...
e9ab064556a6a654dda329fc639c9e7883afe3e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8738/e9ab064556a6a654dda329fc639c9e7883afe3e8/transfers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7530, 4777, 12, 2890, 16, 1234, 4672, 3536, 10669, 26693, 2357, 3680, 13, 12234, 279, 4224, 261, 6327, 2674, 13, 3536, 729, 273, 599, 364, 277, 316, 365, 18, 12210, 591, 2387, 30, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7530, 4777, 12, 2890, 16, 1234, 4672, 3536, 10669, 26693, 2357, 3680, 13, 12234, 279, 4224, 261, 6327, 2674, 13, 3536, 729, 273, 599, 364, 277, 316, 365, 18, 12210, 591, 2387, 30, 309, ...
if not bober_is_good: if first_warning: print "*WARNING*: bober's implementation is broken on this platform or this size of n." first_warning=False
def number_of_partitions(n,k=None, algorithm='default'): r""" Returns the size of partitions_list(n,k). INPUT: n -- an integer k -- (default: None); if specified, instead returns the cardinality of the set of all (unordered) partitions of the positive integer n into sums with k summands. algorithm -- (default: 'defaul...
f0f9a1fa3f7057ce6c279f53361876ef7f50795f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/f0f9a1fa3f7057ce6c279f53361876ef7f50795f/combinat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1300, 67, 792, 67, 21275, 12, 82, 16, 79, 33, 7036, 16, 4886, 2218, 1886, 11, 4672, 436, 8395, 2860, 326, 963, 434, 10060, 67, 1098, 12, 82, 16, 79, 2934, 225, 12943, 30, 290, 1493, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1300, 67, 792, 67, 21275, 12, 82, 16, 79, 33, 7036, 16, 4886, 2218, 1886, 11, 4672, 436, 8395, 2860, 326, 963, 434, 10060, 67, 1098, 12, 82, 16, 79, 2934, 225, 12943, 30, 290, 1493, ...
sage: G.derived_series()
sage: G.derived_series()
def derived_series(self): """ Return the derived series of this group as a list of permutation groups.
1658b04d4cf7d534376d011a40bb52f192eac894 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/1658b04d4cf7d534376d011a40bb52f192eac894/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10379, 67, 10222, 12, 2890, 4672, 3536, 2000, 326, 10379, 4166, 434, 333, 1041, 487, 279, 666, 434, 17440, 3252, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10379, 67, 10222, 12, 2890, 4672, 3536, 2000, 326, 10379, 4166, 434, 333, 1041, 487, 279, 666, 434, 17440, 3252, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...