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
if not os.path.exists(currDir):
if not pathExists(currDir):
def __init__(self, session): self.skin = picmain.skin Screen.__init__(self, session)
79de1c2ae4ba012707b99336dc4ce9e74734c6f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/79de1c2ae4ba012707b99336dc4ce9e74734c6f9/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1339, 4672, 365, 18, 7771, 267, 273, 19189, 5254, 18, 7771, 267, 10146, 16186, 2738, 972, 12, 2890, 16, 1339, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1339, 4672, 365, 18, 7771, 267, 273, 19189, 5254, 18, 7771, 267, 10146, 16186, 2738, 972, 12, 2890, 16, 1339, 13, 2, -100, -100, -100, -100, -100, -100, ...
val1 = sets.Set(filter(lambda x: x >= 0, T1.row(r))) val2 = sets.Set(filter(lambda x: x >= 0, T2.row(r)))
val1 = set(filter(lambda x: x >= 0, T1.row(r))) val2 = set(filter(lambda x: x >= 0, T2.row(r)))
def is_row_and_col_balanced(T1, T2): """ Partial latin squares T1 and T2 are balanced if the symbols appearing in row r of T1 are the same as the symbols appearing in row r of T2, for each r, and if the same condition holds on columns. EXAMPLES:: sage: from sage.combinat.matrices.latin import * sage: T1 = matrix([[0,1,-1,-1], [-1,-1,-1,-1], [-1,-1,-1,-1], [-1,-1,-1,-1]]) sage: T2 = matrix([[0,1,-1,-1], [-1,-1,-1,-1], [-1,-1,-1,-1], [-1,-1,-1,-1]]) sage: is_row_and_col_balanced(T1, T2) True sage: T2 = matrix([[0,3,-1,-1], [-1,-1,-1,-1], [-1,-1,-1,-1], [-1,-1,-1,-1]]) sage: is_row_and_col_balanced(T1, T2) False """ for r in range(T1.nrows()): val1 = sets.Set(filter(lambda x: x >= 0, T1.row(r))) val2 = sets.Set(filter(lambda x: x >= 0, T2.row(r))) if val1 != val2: return False for c in range(T1.ncols()): val1 = sets.Set(filter(lambda x: x >= 0, T1.column(c))) val2 = sets.Set(filter(lambda x: x >= 0, T2.column(c))) if val1 != val2: return False return True
cdbfddc2038b267cb2226dc1cde7059676ecb7ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/cdbfddc2038b267cb2226dc1cde7059676ecb7ea/latin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 492, 67, 464, 67, 1293, 67, 12296, 72, 12, 56, 21, 16, 399, 22, 4672, 3536, 19060, 30486, 31206, 399, 21, 471, 399, 22, 854, 11013, 72, 309, 326, 7963, 7226, 5968, 316, 1027...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 353, 67, 492, 67, 464, 67, 1293, 67, 12296, 72, 12, 56, 21, 16, 399, 22, 4672, 3536, 19060, 30486, 31206, 399, 21, 471, 399, 22, 854, 11013, 72, 309, 326, 7963, 7226, 5968, 316, 1027...
setupnames = ['setup_egg.py', 'setupegg.py', 'setup.py']
setupnames = ['setupegg.py', 'setup_egg.py', 'setup.py']
def sdist_to_bdist_egg(self, sdist_path, delete=False): """Take an sdist and replace it with a bdist_egg""" self.logger.info("Converting sdist %s to a bdist_egg" % sdist_path) tmpdir = tempfile.mkdtemp() cdir = os.getcwd() try: # unpack the sdist if sdist_path.endswith('.tar.gz') or sdist_path.endswith('.tar'): tarf = tarfile.open(sdist_path) tarf.extractall(path=tmpdir) elif sdist_path.endswith('.zip'): zfile = zipfile.ZipFile(sdist_path, 'r') zfile.extractall(tmpdir) else: raise RuntimeError("Don't know how to unpack file %s" % sdist_path) os.chdir(tmpdir) dirs = os.listdir(tmpdir) if len(dirs) == 1: os.chdir(dirs[0]) setupnames = ['setup_egg.py', 'setupegg.py', 'setup.py'] for name in setupnames: if os.path.isfile(name): setup = name break else: setup = None if not setup: raise RuntimeError("Can't find setup.py file in %s" % os.getcwd()) try: check_call([sys.executable, 'setup.py', 'bdist_egg', '-d', '%s' % os.path.dirname(sdist_path)], env=os.environ) except: # may not support bdist_egg, so try just bdist check_call([sys.executable, 'setup.py', 'bdist', '-d', '%s' % os.path.dirname(sdist_path)], env=os.environ) if delete: os.remove(sdist_path) finally: shutil.rmtree(tmpdir) os.chdir(cdir)
29318b9ed65ecfd2aef74a91df7699560257e6ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12610/29318b9ed65ecfd2aef74a91df7699560257e6ad/bundler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 4413, 67, 869, 67, 70, 4413, 67, 23171, 12, 2890, 16, 272, 4413, 67, 803, 16, 1430, 33, 8381, 4672, 3536, 13391, 392, 272, 4413, 471, 1453, 518, 598, 279, 324, 4413, 67, 23171, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 272, 4413, 67, 869, 67, 70, 4413, 67, 23171, 12, 2890, 16, 272, 4413, 67, 803, 16, 1430, 33, 8381, 4672, 3536, 13391, 392, 272, 4413, 471, 1453, 518, 598, 279, 324, 4413, 67, 23171, ...
return idaapi.get_numbered_type_name(idaapi.cvar.idati, ordinal)
return idaapi.idc_get_local_type_name(ordinal)
def GetLocalTypeName(ordinal): """ Retrieve a local type name @param ordinal: slot number (1...NumberOfLocalTypes) returns: local type name or None """ return idaapi.get_numbered_type_name(idaapi.cvar.idati, ordinal)
b97846eeae8f84836b5eb69af7f8306e2e48aaf4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4773/b97846eeae8f84836b5eb69af7f8306e2e48aaf4/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 2042, 7947, 12, 517, 1490, 4672, 3536, 10708, 279, 1191, 618, 508, 225, 632, 891, 12675, 30, 225, 4694, 1300, 261, 21, 2777, 9226, 2042, 2016, 13, 225, 1135, 30, 1191, 618, 508, 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, 968, 2042, 7947, 12, 517, 1490, 4672, 3536, 10708, 279, 1191, 618, 508, 225, 632, 891, 12675, 30, 225, 4694, 1300, 261, 21, 2777, 9226, 2042, 2016, 13, 225, 1135, 30, 1191, 618, 508, 5...
did = "removed"
def HandleBouncingAddress(self, addr, msg): """Disable or remove addr according to bounce_action setting.""" if self.automatic_bounce_action == 0: return elif self.automatic_bounce_action == 1: # Only send if call works ok. (succeeded, send) = self.DisableBouncingAddress(addr) did = "disabled" elif self.automatic_bounce_action == 2: (succeeded, send) = self.DisableBouncingAddress(addr) did = "disabled" # Never send. send = 0 elif self.automatic_bounce_action == 3: (succeeded, send) = self.RemoveBouncingAddress(addr) # Always send. send = 1 did = "removed" if send: if succeeded != 1: negative=_("not ") else: negative="" recipient = self.GetAdminEmail() if addr in self.owner + [recipient]: # Whoops! This is a bounce of a bounce notice - do not # perpetuate the bounce loop! Log it prominently and be # satisfied with that. syslog("error", "%s: Bounce recipient loop" " encountered!\n\t%s\n\tBad admin recipient: %s" % (self.internal_name(), "(Ie, bounce notification addr, itself, bounces.)", addr)) return import mimetools boundary = mimetools.choose_boundary() # report about success but = '' if succeeded <> 1: but = 'BUT: %s' % succeeded # disabled? if did == 'disabled' and succeeded == 1: reenable = Utils.maketext( 'reenable.txt', {'admin_url': self.GetScriptURL('admin', absolute=1), }, lang=self.preferred_language) else: reenable = '' # the mail message text text = Utils.maketext( 'bounce.txt', {'boundary' : boundary, 'listname' : self.real_name, 'addr' : addr, 'negative' : negative, 'did' : did, 'but' : but, 'reenable' : reenable, 'owneraddr': mm_cfg.MAILMAN_OWNER, }, lang=self.preferred_language) # add this here so it doesn't get wrapped/filled # FIXME text = text + '\n\n--' + boundary + \ '\nContent-type: text/plain; charset=' + Utils.GetCharSet()
ddb4d86d1b32100ca8fe220c020da7ceda7a02c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/ddb4d86d1b32100ca8fe220c020da7ceda7a02c9/Bouncer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5004, 38, 465, 2822, 1887, 12, 2890, 16, 3091, 16, 1234, 4672, 3536, 11879, 578, 1206, 3091, 4888, 358, 324, 8386, 67, 1128, 3637, 12123, 309, 365, 18, 5854, 4941, 67, 70, 8386, 67, 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, 5004, 38, 465, 2822, 1887, 12, 2890, 16, 3091, 16, 1234, 4672, 3536, 11879, 578, 1206, 3091, 4888, 358, 324, 8386, 67, 1128, 3637, 12123, 309, 365, 18, 5854, 4941, 67, 70, 8386, 67, 11...
avatar = FTPAnonymousShell() avatar.tld = self.tld
if self.tld is None: raise TLDNotSetInRealmError("you must set FTPRealm's tld to a non-None value before creating avatars!!!") avatar = FTPAnonymousShell(user=self.user, tld=self.tld)
def requestAvatar(self, avatarId, mind, *interfaces): if IFTPShell in interfaces: avatar = FTPAnonymousShell() avatar.tld = self.tld avatar.clientwd = self.clientwd avatar.user = self.user avatar.logout = self.logout return IFTPShell, avatar, avatar.logout raise NotImplementedError("Only IFTPShell interface is supported by this realm")
d3bc655e6ddf82a32d5fc4548b7cba73e13ad2c6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/d3bc655e6ddf82a32d5fc4548b7cba73e13ad2c6/ftp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 23999, 12, 2890, 16, 16910, 548, 16, 22838, 16, 380, 15898, 4672, 309, 467, 17104, 13220, 316, 7349, 30, 309, 365, 18, 88, 1236, 353, 599, 30, 1002, 399, 12069, 1248, 694, 382, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 23999, 12, 2890, 16, 16910, 548, 16, 22838, 16, 380, 15898, 4672, 309, 467, 17104, 13220, 316, 7349, 30, 309, 365, 18, 88, 1236, 353, 599, 30, 1002, 399, 12069, 1248, 694, 382, 22...
return systemId
return systemId
def resolveEntity(self, publicId, systemId):
84da8aa7e2f1bdaf8692dbfd9981430c84278038 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/84da8aa7e2f1bdaf8692dbfd9981430c84278038/handler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 1943, 12, 2890, 16, 1071, 548, 16, 30083, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 1943, 12, 2890, 16, 1071, 548, 16, 30083, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.CharField.__init__(self, 695) else quickfix.CharField.__init__(self, 695, 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, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 2156, 974, 16186, 2738, 972, 12, 2890, 16, 1666, 8778, 13, 469, 9549, 904, 18, 2156, 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, 0, 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, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 2156, 974, 16186, 2738, 972, 12, 2890, 16, 1666, 8778, 13, 469, 9549, 904, 18, 2156, 974, 16186, 2738, ...
if vnc_config.get('vncunused', 0):
if int(vnc_config.get('vncunused', 1)) != 0:
def parseDeviceModelArgs(self, vmConfig): ret = ["-domain-name", str(self.vm.info['name_label'])]
0394b408092450475bc1a8ae47894de9d3089440 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6195/0394b408092450475bc1a8ae47894de9d3089440/image.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 3654, 1488, 2615, 12, 2890, 16, 4268, 809, 4672, 325, 273, 8247, 17, 4308, 17, 529, 3113, 609, 12, 2890, 18, 3489, 18, 1376, 3292, 529, 67, 1925, 19486, 65, 2, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 3654, 1488, 2615, 12, 2890, 16, 4268, 809, 4672, 325, 273, 8247, 17, 4308, 17, 529, 3113, 609, 12, 2890, 18, 3489, 18, 1376, 3292, 529, 67, 1925, 19486, 65, 2, -100, -100, -100, ...
label.set_text (new)
label.set_text (self.GetLabelText (new))
def HandleGrabberChanged (grabber, key, mods, label, selector): new = gtk.accelerator_name (key, mods) label.set_text (new) mods = "" for mod in self.mods: if "<%s>" % mod in new or "%s_L" % mod in new \ or "%s_R" % mod in new: mods += "%s|" % mod mods.rstrip ("|") selector.current = mods
379f4f075cd54f1f4d0627ce7fd1b86ab7786706 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1272/379f4f075cd54f1f4d0627ce7fd1b86ab7786706/Settings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5004, 14571, 23709, 5033, 261, 2752, 23709, 16, 498, 16, 15546, 16, 1433, 16, 3451, 4672, 394, 273, 22718, 18, 30737, 7385, 67, 529, 261, 856, 16, 15546, 13, 1433, 18, 542, 67, 955, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5004, 14571, 23709, 5033, 261, 2752, 23709, 16, 498, 16, 15546, 16, 1433, 16, 3451, 4672, 394, 273, 22718, 18, 30737, 7385, 67, 529, 261, 856, 16, 15546, 13, 1433, 18, 542, 67, 955, 26...
if mycontext['maxlag'] > 4:
if mycontext['maxlag'] > 2:
def check_and_exit(): if mycontext['maxlag'] > 4: print "TCP packets lag too long in the buffer: ", mycontext['maxlag'] if mycontext['maxlag'] == 0: print "TCP packets were not received or had 0 lag" exitall()
8a08d7e4395befd31dafe0fe61aaf23545dbdffb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7272/8a08d7e4395befd31dafe0fe61aaf23545dbdffb/ut_repytests_testtcpbuffersize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 464, 67, 8593, 13332, 309, 3399, 2472, 3292, 1896, 22532, 3546, 405, 576, 30, 1172, 315, 13891, 12640, 17241, 4885, 1525, 316, 326, 1613, 30, 3104, 3399, 2472, 3292, 1896, 22532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 464, 67, 8593, 13332, 309, 3399, 2472, 3292, 1896, 22532, 3546, 405, 576, 30, 1172, 315, 13891, 12640, 17241, 4885, 1525, 316, 326, 1613, 30, 3104, 3399, 2472, 3292, 1896, 22532, ...
print "will print"
def show(self,id,result): dbh = DB.DBO(self.case) dbh.execute("select * from %s where %s=%r", (self.table,self.key,id))
0c5ce9515e1fa33a0bbf79ef9793e8ca7c2eff1a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5568/0c5ce9515e1fa33a0bbf79ef9793e8ca7c2eff1a/TableObj.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 12, 2890, 16, 350, 16, 2088, 4672, 1319, 76, 273, 2383, 18, 2290, 51, 12, 2890, 18, 3593, 13, 1319, 76, 18, 8837, 2932, 4025, 380, 628, 738, 87, 1625, 738, 87, 5095, 86, 3113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 12, 2890, 16, 350, 16, 2088, 4672, 1319, 76, 273, 2383, 18, 2290, 51, 12, 2890, 18, 3593, 13, 1319, 76, 18, 8837, 2932, 4025, 380, 628, 738, 87, 1625, 738, 87, 5095, 86, 3113, ...
WinExt_win32com('shell', libraries='shell32', pch_header="shell_pch.h")
WinExt_win32com('shell', libraries='shell32', pch_header="shell_pch.h"), WinExt_win32com('taskscheduler', libraries='mstask'),
def finalize_options(self): if self.install_dir is None: installobj = self.distribution.get_command_obj('install') self.install_dir = installobj.install_lib print 'Installing data files to %s' % self.install_dir install_data.finalize_options(self)
31649c346e7a9797da55da2d1598abfc8e71a942 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/31649c346e7a9797da55da2d1598abfc8e71a942/setup_win32all.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12409, 67, 2116, 12, 2890, 4672, 309, 365, 18, 5425, 67, 1214, 353, 599, 30, 1804, 287, 383, 441, 273, 365, 18, 16279, 18, 588, 67, 3076, 67, 2603, 2668, 5425, 6134, 365, 18, 5425, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12409, 67, 2116, 12, 2890, 4672, 309, 365, 18, 5425, 67, 1214, 353, 599, 30, 1804, 287, 383, 441, 273, 365, 18, 16279, 18, 588, 67, 3076, 67, 2603, 2668, 5425, 6134, 365, 18, 5425, 6...
b.pack(side = TOP)
b.pack(side=TOP)
def build_tools(self): tframe = self.tframe canvas = self.canvas fr=TFrame(tframe, style='FlatFrame', borderwidth=12) fr.pack(side = TOP, fill = X) label = TLabel(fr, style='FlatLabel') label.pack(side = TOP, fill = X) label = TLabel(tframe, style='HLine') label.pack(side = TOP, fill = X)
5bd05aab08ecc99debb8be46af1003105e4183ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3123/5bd05aab08ecc99debb8be46af1003105e4183ab/mainwindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 6642, 12, 2890, 4672, 3253, 1474, 273, 365, 18, 88, 3789, 5953, 273, 365, 18, 15424, 225, 3812, 33, 56, 3219, 12, 88, 3789, 16, 2154, 2218, 16384, 3219, 2187, 5795, 2819, 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, 1361, 67, 6642, 12, 2890, 4672, 3253, 1474, 273, 365, 18, 88, 3789, 5953, 273, 365, 18, 15424, 225, 3812, 33, 56, 3219, 12, 88, 3789, 16, 2154, 2218, 16384, 3219, 2187, 5795, 2819, 33,...
cache.write(line)
cache.write(line)
def _fetch(self,wikiname,type,urls): catcmd = 'cat %s' num=0 for url in urls: sys.stderr.write("Fetching %s\n" % url) try: archive, headers = urllib.urlretrieve(url, None, progress) #archive, headers = urllib.urlretrieve(url, None)
0aa4c954afa6e07b78032744ebf7cae50b24d7e0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11119/0aa4c954afa6e07b78032744ebf7cae50b24d7e0/metaparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5754, 12, 2890, 16, 11999, 267, 339, 16, 723, 16, 10518, 4672, 6573, 4172, 273, 296, 2574, 738, 87, 11, 818, 33, 20, 364, 880, 316, 6903, 30, 2589, 18, 11241, 18, 2626, 2932, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5754, 12, 2890, 16, 11999, 267, 339, 16, 723, 16, 10518, 4672, 6573, 4172, 273, 296, 2574, 738, 87, 11, 818, 33, 20, 364, 880, 316, 6903, 30, 2589, 18, 11241, 18, 2626, 2932, 30...
p.closure_index = None
p.closure_index = -1
def _fixup_param_closure(self, parent, param): for p in parent.parameters: if p is not param and p.closure_index == param.closure_index: p.closure_index = None
2f7066d7ba462641e1c5b6bc8d5fc5ee850ca87f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2770/2f7066d7ba462641e1c5b6bc8d5fc5ee850ca87f/annotationparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 904, 416, 67, 891, 67, 20823, 12, 2890, 16, 982, 16, 579, 4672, 364, 293, 316, 982, 18, 3977, 30, 309, 293, 353, 486, 579, 471, 293, 18, 20823, 67, 1615, 422, 579, 18, 20823, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 904, 416, 67, 891, 67, 20823, 12, 2890, 16, 982, 16, 579, 4672, 364, 293, 316, 982, 18, 3977, 30, 309, 293, 353, 486, 579, 471, 293, 18, 20823, 67, 1615, 422, 579, 18, 20823, ...
self._canvas.setFillOverprint(value)
self._canvas.setStrokeOverprint(value)
def applyStateChanges(self, delta, newState): """This takes a set of states, and outputs the PDF operators needed to set those properties""" for key, value in delta.items(): if key == 'transform': self._canvas.transform(value[0], value[1], value[2], value[3], value[4], value[5]) elif key == 'strokeColor': #this has different semantics in PDF to SVG; #we always have a color, and either do or do #not apply it; in SVG one can have a 'None' color if value is None: self._stroke = 0 else: self._stroke = 1 self._canvas.setStrokeColor(value) elif key == 'strokeWidth': self._canvas.setLineWidth(value) elif key == 'strokeLineCap': #0,1,2 self._canvas.setLineCap(value) elif key == 'strokeLineJoin': self._canvas.setLineJoin(value)
bb8bf8a067ec904d43810c6f21c97506c8a481ae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3878/bb8bf8a067ec904d43810c6f21c97506c8a481ae/renderPDF.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 1119, 7173, 12, 2890, 16, 3622, 16, 15907, 4672, 3536, 2503, 5530, 279, 444, 434, 5493, 16, 471, 6729, 326, 12667, 12213, 3577, 358, 444, 5348, 1790, 8395, 364, 498, 16, 460, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2230, 1119, 7173, 12, 2890, 16, 3622, 16, 15907, 4672, 3536, 2503, 5530, 279, 444, 434, 5493, 16, 471, 6729, 326, 12667, 12213, 3577, 358, 444, 5348, 1790, 8395, 364, 498, 16, 460, 316, ...
print dir(subsubsub)
print fixdir(dir(subsubsub))
def runtest(hier, code): root = tempfile.mktemp() mkhier(root, hier) savepath = sys.path[:] codefile = tempfile.mktemp() f = open(codefile, "w") f.write(code) f.close() try: sys.path.insert(0, root) if verbose: print "sys.path =", sys.path try: execfile(codefile, globals(), {}) except: traceback.print_exc(file=sys.stdout) finally: sys.path[:] = savepath try: cleanout(root) except (os.error, IOError): pass os.remove(codefile)
49b5eaaee495b23d0fd97c60191161945b017aa3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/49b5eaaee495b23d0fd97c60191161945b017aa3/test_pkg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3813, 12, 76, 2453, 16, 981, 4672, 1365, 273, 13275, 18, 24816, 5814, 1435, 5028, 76, 2453, 12, 3085, 16, 366, 2453, 13, 1923, 803, 273, 2589, 18, 803, 10531, 65, 981, 768, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3813, 12, 76, 2453, 16, 981, 4672, 1365, 273, 13275, 18, 24816, 5814, 1435, 5028, 76, 2453, 12, 3085, 16, 366, 2453, 13, 1923, 803, 273, 2589, 18, 803, 10531, 65, 981, 768, 273, ...
else
else:
def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 632) else quickfix.DoubleField.__init__(self, 632, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 1666, 1578, 13, 469, 30, 9549, 904, 18, 5265, 974, 16186, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 1666, 1578, 13, 469, 30, 9549, 904, 18, 5265, 974, 16186, 27...
Unfortunaely (TODO) -- $p$-new submodules aren't yet implemented: sage: m.new_submodule(3)
Unfortunately (TODO) -- $p$-new submodules aren't yet implemented: sage.: m.new_submodule(3)
def new_submodule(self, p=None): """ Return the new or $p$-new submodule of this ambient module.
03c232c334d76bcf8c9d98a398960d9bc9f86d4b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/03c232c334d76bcf8c9d98a398960d9bc9f86d4b/ambient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 1717, 2978, 12, 2890, 16, 293, 33, 7036, 4672, 3536, 2000, 326, 394, 578, 271, 84, 8, 17, 2704, 27314, 434, 333, 13232, 1979, 1605, 18, 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, 394, 67, 1717, 2978, 12, 2890, 16, 293, 33, 7036, 4672, 3536, 2000, 326, 394, 578, 271, 84, 8, 17, 2704, 27314, 434, 333, 13232, 1979, 1605, 18, 2, -100, -100, -100, -100, -100, -100, ...
class ZopeHTMLSourceView(EditorStyledTextCtrl, ZopeHTMLStyledTextCtrlMix, DebuggingViewSTCMix):
class ZopeHTMLSourceView(EditorStyledTextCtrl, ZopeHTMLStyledTextCtrlMix):
def __init__(self, wId): BaseHTMLStyledTextCtrlMix.__init__(self, wId)
8f062166f02d8fd820168e6bc9a1c89a4acc688b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8f062166f02d8fd820168e6bc9a1c89a4acc688b/ZopeViews.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 341, 548, 4672, 3360, 4870, 24273, 1259, 1528, 12418, 21294, 16186, 2738, 972, 12, 2890, 16, 341, 548, 13, 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, 0, 0, 0, 0, 0, 0, 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, 341, 548, 4672, 3360, 4870, 24273, 1259, 1528, 12418, 21294, 16186, 2738, 972, 12, 2890, 16, 341, 548, 13, 2, -100, -100, -100, -100, -100, -100, -100, -10...
journal = cgi.escape(journal) volume = cgi.escape(volume) year = cgi.escape(year) number = cgi.escape(number) pages = cgi.escape(pages)
def format(bfo): """ Displays inline publication information with html link to ejournal (when available). """ out = '' publication_info = bfo.field('909C4') if publication_info == "": return "" journal_source = publication_info.get('p') journal = bfo.kb('ejournals', journal_source) volume = publication_info.get('v') year = publication_info.get('y') number = publication_info.get('n') pages = publication_info.get('c') if journal != '' and volume is not None: journal = cgi.escape(journal) volume = cgi.escape(volume) year = cgi.escape(year) number = cgi.escape(number) pages = cgi.escape(pages) out += '<a href="http://weblib.cern.ch/cgi-bin/ejournals?publication=' out += quote(journal_source) out += '&amp;volume=' + volume out += '&amp;year=' + year out += '&amp;page=' page = pages.split('-')# get first page from range if len(page) > 0: out += page[0] out += '">%(journal)s :%(volume)s %(year)s %(page)s</a>' % {'journal': journal, 'volume': volume, 'year': year, 'page': pages} else: out += journal_source + ': ' if volume is not None: out += volume if year is not None: out += ' (' + year + ') ' if number is not None: out += 'no. ' + number + ', ' if pages is not None: out += 'pp. ' + pages return out
a25288d6d6f1d36dd04c351690c52746d51af2f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2763/a25288d6d6f1d36dd04c351690c52746d51af2f9/bfe_publi_info.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 12, 70, 617, 4672, 3536, 9311, 87, 6370, 20574, 1779, 598, 1729, 1692, 358, 425, 22644, 261, 13723, 2319, 2934, 3536, 282, 596, 273, 875, 225, 20574, 67, 1376, 273, 324, 617, 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, 740, 12, 70, 617, 4672, 3536, 9311, 87, 6370, 20574, 1779, 598, 1729, 1692, 358, 425, 22644, 261, 13723, 2319, 2934, 3536, 282, 596, 273, 875, 225, 20574, 67, 1376, 273, 324, 617, 18, ...
from distutils.fancy_getopt import longopt_xlate print msg + ":" for opt in self.user_options: opt_name = opt[0] if opt_name[-1] == "=": opt_name = opt_name[0:-1] opt_name = string.translate (opt_name, longopt_xlate) val = getattr (self, opt_name) print " %s: %s" % (opt_name, val)
if DEBUG: from distutils.fancy_getopt import longopt_xlate print msg + ":" for opt in self.user_options: opt_name = opt[0] if opt_name[-1] == "=": opt_name = opt_name[0:-1] opt_name = string.translate (opt_name, longopt_xlate) val = getattr (self, opt_name) print " %s: %s" % (opt_name, val)
def dump_dirs (self, msg): from distutils.fancy_getopt import longopt_xlate print msg + ":" for opt in self.user_options: opt_name = opt[0] if opt_name[-1] == "=": opt_name = opt_name[0:-1] opt_name = string.translate (opt_name, longopt_xlate) val = getattr (self, opt_name) print " %s: %s" % (opt_name, val)
fbb04c448c31a653930039f61cf726ab16d93469 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/fbb04c448c31a653930039f61cf726ab16d93469/install.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 67, 8291, 261, 2890, 16, 1234, 4672, 628, 2411, 5471, 18, 74, 12514, 67, 588, 3838, 1930, 1525, 3838, 67, 18402, 340, 1172, 1234, 397, 6153, 364, 2153, 316, 365, 18, 1355, 67, 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, 4657, 67, 8291, 261, 2890, 16, 1234, 4672, 628, 2411, 5471, 18, 74, 12514, 67, 588, 3838, 1930, 1525, 3838, 67, 18402, 340, 1172, 1234, 397, 6153, 364, 2153, 316, 365, 18, 1355, 67, 21...
nr_cpus = int(os.popen2('sysctl -n hw.ncpu')[1].read())
if have_subprocess: pipe = subprocess.Popen('sysctl -n hw.ncpu', shell=True, stdout=subprocess.PIPE).stdout nr_cpus = int(pipe.read()) else: nr_cpus = int(os.popen2('sysctl -n hw.ncpu')[1].read())
def ncpus(): 'Detects number of CPUs' if plat['OS'] in ('linux','posix'): if os.sysconf_names.has_key("SC_NPROCESSORS_ONLN"): nr_cpus = os.sysconf("SC_NPROCESSORS_ONLN") if type(nr_cpus) is int: if nr_cpus > 0: return nr_cpus elif plat['OS'] == 'darwin': nr_cpus = int(os.popen2('sysctl -n hw.ncpu')[1].read()) if nr_cpus > 0: return nr_cpus return 2 # default number of processors
655741430f079009b8cf201bab2162deebf9aa13 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3143/655741430f079009b8cf201bab2162deebf9aa13/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 290, 20696, 13332, 296, 12081, 87, 1300, 434, 5181, 3477, 11, 309, 29838, 3292, 4618, 3546, 316, 7707, 20132, 17023, 24463, 11, 4672, 309, 1140, 18, 9499, 3923, 67, 1973, 18, 5332, 67, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 290, 20696, 13332, 296, 12081, 87, 1300, 434, 5181, 3477, 11, 309, 29838, 3292, 4618, 3546, 316, 7707, 20132, 17023, 24463, 11, 4672, 309, 1140, 18, 9499, 3923, 67, 1973, 18, 5332, 67, 8...
def decode(file, data): log.msg("Loading %s..." % (file,))
def decode(filename, data): log.msg("Loading %s..." % (filename,))
def decode(file, data): log.msg("Loading %s..." % (file,)) sys.modules['__main__'] = EverythingEphemeral() application = loads(data) sys.modules['__main__'] = mainMod styles.doUpgrade() return application
15e77a304626240b4754f427c0791b5a5f0b6c38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/15e77a304626240b4754f427c0791b5a5f0b6c38/twistd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 3459, 16, 501, 4672, 613, 18, 3576, 2932, 10515, 738, 87, 7070, 738, 261, 3459, 16, 3719, 2589, 18, 6400, 3292, 972, 5254, 972, 3546, 273, 26553, 30061, 1435, 2521, 273, 6277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2495, 12, 3459, 16, 501, 4672, 613, 18, 3576, 2932, 10515, 738, 87, 7070, 738, 261, 3459, 16, 3719, 2589, 18, 6400, 3292, 972, 5254, 972, 3546, 273, 26553, 30061, 1435, 2521, 273, 6277, ...
if s1[-2:] == "\r\n": s1 = s1[:-2] + "\n" sys.stdout.write(s1)
sys.stdout.write(s1.replace("\r\n", "\n"))
def debug(msg): pass
ab22460c39470c834db3ce194cbd15e9d8d57747 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/ab22460c39470c834db3ce194cbd15e9d8d57747/test_pty.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 12, 3576, 4672, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 12, 3576, 4672, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
query = UserData.all() query.filter('user =', user) user_data = query.get() if user_data is None: user_data = UserData( user=user, last_login=datetime.datetime.now(), proficient_exercises=[], suggested_exercises=[], assigned_exercises=[], need_to_reassess=True, points=0, ) user_data.put()
user_data = UserData.get_or_insert_for(user)
def get(self): user = users.get_current_user() if user: query = UserData.all() query.filter('user =', user) user_data = query.get()
b7f57926752c18d5bb2bb3ca4fbcb8250e7a6276 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12010/b7f57926752c18d5bb2bb3ca4fbcb8250e7a6276/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 4672, 729, 273, 3677, 18, 588, 67, 2972, 67, 1355, 1435, 309, 729, 30, 843, 273, 31109, 18, 454, 1435, 843, 18, 2188, 2668, 1355, 273, 2187, 729, 13, 729, 67, 892, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 12, 2890, 4672, 729, 273, 3677, 18, 588, 67, 2972, 67, 1355, 1435, 309, 729, 30, 843, 273, 31109, 18, 454, 1435, 843, 18, 2188, 2668, 1355, 273, 2187, 729, 13, 729, 67, 892, 273...
self.workflowConfigurator = self.createConfigurator(self.runid, self.wfPolicy,
self._workflowConfigurator = self.createConfigurator(self.runid, self.wfPolicy,
def configure(self, provSetup=None, workflowVerbosity=None): self.logger.log(Log.DEBUG, "WorkflowManager:configure") if self.workflowConfigurator: self.logger.log(Log.INFO-1, "production has already been configured.") return # lock this branch of code try: self._locked.acquire()
ab3feb9bac934c58bc056d5413c83f73e2efae96 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6549/ab3feb9bac934c58bc056d5413c83f73e2efae96/WorkflowManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5068, 12, 2890, 16, 17197, 7365, 33, 7036, 16, 6095, 30594, 33, 7036, 4672, 365, 18, 4901, 18, 1330, 12, 1343, 18, 9394, 16, 315, 8484, 1318, 30, 14895, 7923, 309, 365, 18, 13815, 1718...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5068, 12, 2890, 16, 17197, 7365, 33, 7036, 16, 6095, 30594, 33, 7036, 4672, 365, 18, 4901, 18, 1330, 12, 1343, 18, 9394, 16, 315, 8484, 1318, 30, 14895, 7923, 309, 365, 18, 13815, 1718...
point_distance):
point_distance, options):
def hexagonal_close_packing_sampling(crystal_symmetry, symmetry_flags, point_distance): cb_op_work = crystal_symmetry.change_of_basis_op_to_reference_setting() point_group_type = crystal_symmetry.space_group().point_group_type() add_cb_op = {"2": "z,x,y", "m": "y,z,x"}.get(point_group_type, None) if (add_cb_op is not None): cb_op_work = sgtbx.change_of_basis_op(add_cb_op) * cb_op_work work_symmetry = crystal_symmetry.change_basis(cb_op_work) search_symmetry = sgtbx.search_symmetry( flags=symmetry_flags, space_group_type=work_symmetry.space_group_info().type(), seminvariant=work_symmetry.space_group_info().structure_seminvariant()) assert search_symmetry.continuous_shifts_are_principal() expanded_symmetry = crystal.symmetry( unit_cell=work_symmetry.unit_cell(), space_group=search_symmetry.group()) rational_asu = expanded_symmetry.space_group_info().direct_space_asu() rational_asu.add_planes( normal_directions=search_symmetry.continuous_shifts(), both_directions=0001) work_sites_frac = hcp_fill_box( unit_cell=expanded_symmetry.unit_cell(), point_distance=point_distance, rational_asu=rational_asu, continuous_shift_flags=search_symmetry.continuous_shift_flags()) rt = cb_op_work.c_inv().as_double_array() sites_frac = rt[:9] * work_sites_frac sites_frac += rt[9:] return crystal_symmetry.unit_cell().orthogonalization_matrix() * sites_frac
da9cd37ebaff485fe1725b6c4c3cf1b79565c741 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/da9cd37ebaff485fe1725b6c4c3cf1b79565c741/close_packing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3827, 346, 9528, 67, 4412, 67, 2920, 310, 67, 23002, 12, 3353, 31365, 67, 8117, 18042, 16, 26144, 67, 7133, 16, 1634, 67, 8969, 16, 702, 4672, 2875, 67, 556, 67, 1252, 273, 4422, 31365...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3827, 346, 9528, 67, 4412, 67, 2920, 310, 67, 23002, 12, 3353, 31365, 67, 8117, 18042, 16, 26144, 67, 7133, 16, 1634, 67, 8969, 16, 702, 4672, 2875, 67, 556, 67, 1252, 273, 4422, 31365...
callable()
ret = callable()
def assertCommErrorCode(self, code, callable): from disco.error import CommError try: callable() except CommError, e: self.assertEquals(code, e.code)
b6754a2c5e8b8ceb01cf478d55fd1e6e7c3163b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/373/b6754a2c5e8b8ceb01cf478d55fd1e6e7c3163b3/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 12136, 12012, 12, 2890, 16, 981, 16, 4140, 4672, 628, 1015, 2894, 18, 1636, 1930, 16854, 668, 775, 30, 325, 273, 4140, 1435, 1335, 16854, 668, 16, 425, 30, 365, 18, 11231, 8867, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1815, 12136, 12012, 12, 2890, 16, 981, 16, 4140, 4672, 628, 1015, 2894, 18, 1636, 1930, 16854, 668, 775, 30, 325, 273, 4140, 1435, 1335, 16854, 668, 16, 425, 30, 365, 18, 11231, 8867, ...
if not wikipedia.getSite().nocapitalize:
if wikipedia.getSite().nocapitalize: old = self.old else:
def run(self): # regular expression to find the original template. # {{msg:vfd}} does the same thing as {{msg:Vfd}}, so both will be found. # The new syntax, {{vfd}}, will also be found. # The group 'parameters' will either match the parameters, or an # empty string if there are none. if not wikipedia.getSite().nocapitalize: old = '[' + self.old[0].upper() + self.old[0].lower() + ']' + self.old[1:] else: old = self.old old = re.sub('[_ ]', '[_ ]', old) templateR=re.compile(r'\{\{([mM][sS][gG]:)?' + old + '(?P<parameters>\|[^}]+|)}}') replacements = [] if self.remove: replacements.append((templateR, '')) elif self.resolve: replacements.append((templateR, '{{subst:' + self.old + '\g<parameters>}}')) else: replacements.append((templateR, '{{' + self.new + '\g<parameters>}}')) replaceBot = replace.ReplaceRobot(self.generator, replacements) replaceBot.run()
df1c4b20c08053f360a6f225e5e88a060b3540f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/df1c4b20c08053f360a6f225e5e88a060b3540f7/template.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 468, 6736, 2652, 358, 1104, 326, 2282, 1542, 18, 468, 10179, 3576, 30, 90, 8313, 9090, 1552, 326, 1967, 7757, 487, 10179, 3576, 30, 58, 8313, 15866, 1427, 3937, 903...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 468, 6736, 2652, 358, 1104, 326, 2282, 1542, 18, 468, 10179, 3576, 30, 90, 8313, 9090, 1552, 326, 1967, 7757, 487, 10179, 3576, 30, 58, 8313, 15866, 1427, 3937, 903...
title = bs.title.string.split(" - ")[0] if not title: return
title = " - ".join(bs.title.string.split(" - ")[:-1])
def _handle_iltasanomat(url): """*iltasanomat.fi*uutinen.asp*""" bs = getUrl(url).getBS() if not bs: return title = bs.title.string.split(" - ")[0] if not title: return return title
68eb6d73491d218e8fe9dbb9441117356a6e1e4f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14781/68eb6d73491d218e8fe9dbb9441117356a6e1e4f/module_urltitle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 4526, 345, 304, 362, 270, 12, 718, 4672, 3536, 14, 4526, 345, 304, 362, 270, 18, 22056, 14, 89, 322, 267, 275, 18, 28264, 14, 8395, 7081, 273, 8928, 12, 718, 2934, 588...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 4526, 345, 304, 362, 270, 12, 718, 4672, 3536, 14, 4526, 345, 304, 362, 270, 18, 22056, 14, 89, 322, 267, 275, 18, 28264, 14, 8395, 7081, 273, 8928, 12, 718, 2934, 588...
filters = self.build_geo_filters(path=path, meta_types=meta_types,
filters1 = self.build_geo_filters(path=path, meta_types=meta_types,
def search_geo_clusters(self, meta_types=None, lat_min=None, lat_max=None, lon_min=None, lon_max=None, zoom_level=None, path='', geo_types=None, query='', approved=True, lat_center=None, lon_center=None, landscape_type=[], administrative_level=[], languages=None): """ Returns all the clusters that match the specified criteria. """ if zoom_level is None: zoom_level = 0 if lat_min is None or lat_min == '': lat_min = -90. if lat_max is None or lat_max == '': lat_max = 90. if lon_min is None or lon_min == '': lon_min = -180. if lon_max is None or lon_max == '': lon_max = 180. if lat_center is None or lat_center == '': lat_center = 0. if lon_center is None or lon_center == '': lon_center = 0. zoom_level = int(zoom_level) lat_min, lat_max = float(lat_min), float(lat_max) lon_min, lon_max = float(lon_min), float(lon_max) lat_center, lon_center = float(lat_center), float(lon_center)
02aa5efb4054ae6ee0d7425f004d619f77e60f16 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/02aa5efb4054ae6ee0d7425f004d619f77e60f16/GeoMapTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 12376, 67, 16806, 12, 2890, 16, 2191, 67, 2352, 33, 7036, 16, 2516, 67, 1154, 33, 7036, 16, 2516, 67, 1896, 33, 7036, 16, 4281, 67, 1154, 33, 7036, 16, 4281, 67, 1896, 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, 1623, 67, 12376, 67, 16806, 12, 2890, 16, 2191, 67, 2352, 33, 7036, 16, 2516, 67, 1154, 33, 7036, 16, 2516, 67, 1896, 33, 7036, 16, 4281, 67, 1154, 33, 7036, 16, 4281, 67, 1896, 33, ...
val['base_amount'] = val['base'] * tax['base_sign'] val['tax_amount'] = val['amount'] * tax['tax_sign']
val['base_amount'] = cur_obj.compute(cr, uid, inv.currency_id.id, company_currency, val['base'] * tax['base_sign'], context={'date': inv.date_invoice or time.strftime('%Y-%m-%d')}, round=False) val['tax_amount'] = cur_obj.compute(cr, uid, inv.currency_id.id, company_currency, val['amount'] * tax['tax_sign'], context={'date': inv.date_invoice or time.strftime('%Y-%m-%d')}, round=False)
def compute(self, cr, uid, invoice_id, context=None): inv = self.pool.get('account.invoice').browse(cr, uid, invoice_id) line_ids = map(lambda x: x.id, inv.invoice_line)
b1ae71ce0f96a94068f57063f3b05526b62b5bcb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/b1ae71ce0f96a94068f57063f3b05526b62b5bcb/invoice_tax_incl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 12, 2890, 16, 4422, 16, 4555, 16, 9179, 67, 350, 16, 819, 33, 7036, 4672, 2198, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 16119, 16063, 25731, 12, 3353, 16, 4555, 16, 9179, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 12, 2890, 16, 4422, 16, 4555, 16, 9179, 67, 350, 16, 819, 33, 7036, 4672, 2198, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 16119, 16063, 25731, 12, 3353, 16, 4555, 16, 9179, ...
self["key_yellow"].setText("")
self["key_yellow"].setText(" ")
def updateState(self): if self.timer[0] is not None: green_text = self["key_green"].getText() if self.timer[0].disabled and green_text != _("Enable"): self["actions"].actions.update({"green":self.toggleTimer1}) self["key_green"].setText(_("Enable")) self["key_green"].instance.invalidate() elif self.timer[0].isRunning() and green_text != "": del self["actions"].actions["green"] self["key_green"].setText("") self["key_green"].instance.invalidate() elif not self.timer[0].disabled and green_text != _("Disable"): self["actions"].actions.update({"green":self.toggleTimer1}) self["key_green"].setText(_("Disable")) self["key_green"].instance.invalidate() if len(self.timer) > 1: x = self["list"].getSelectedIndex() if self.timer[x] is not None: blue_text = self["key_blue"].getText() if self.timer[x].disabled and blue_text != _("Enable"): self["actions"].actions.update({"blue":self.toggleTimer2}) self["key_blue"].setText(_("Enable")) self["key_blue"].instance.invalidate() elif self.timer[x].isRunning() and blue_text != "": del self["actions"].actions["blue"] self["key_blue"].setText("") self["key_blue"].instance.invalidate() elif not self.timer[x].disabled and blue_text != _("Disable"): self["actions"].actions.update({"blue":self.toggleTimer2}) self["key_blue"].setText(_("Disable")) self["key_blue"].instance.invalidate() else:
5421ff9c24b05aaa57cdbcf50eedba0edc714cb8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/5421ff9c24b05aaa57cdbcf50eedba0edc714cb8/TimerEdit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 1119, 12, 2890, 4672, 309, 365, 18, 12542, 63, 20, 65, 353, 486, 599, 30, 10004, 67, 955, 273, 365, 9614, 856, 67, 11571, 6, 8009, 588, 1528, 1435, 309, 365, 18, 12542, 63, 20,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1119, 12, 2890, 4672, 309, 365, 18, 12542, 63, 20, 65, 353, 486, 599, 30, 10004, 67, 955, 273, 365, 9614, 856, 67, 11571, 6, 8009, 588, 1528, 1435, 309, 365, 18, 12542, 63, 20,...
this = apply(_quickfix.new_BenchmarkPriceType, args)
this = _quickfix.new_BenchmarkPriceType(*args)
def __init__(self, *args): this = apply(_quickfix.new_BenchmarkPriceType, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 30672, 5147, 559, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 30672, 5147, 559, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, ...
def parsestr(self, text): return self.parse(StringIO(text))
def parsestr(self, text, headersonly=0): return self.parse(StringIO(text), headersonly=headersonly)
def parsestr(self, text): return self.parse(StringIO(text))
15964324c25f03947e37cd91303e6b24912bebaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/15964324c25f03947e37cd91303e6b24912bebaf/Parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8940, 313, 12, 2890, 16, 977, 4672, 327, 365, 18, 2670, 12, 780, 4294, 12, 955, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 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, 8940, 313, 12, 2890, 16, 977, 4672, 327, 365, 18, 2670, 12, 780, 4294, 12, 955, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
makedirs(head, mode)
try: makedirs(head, mode) except OSError, e: if e.errno != EEXIST: raise
def makedirs(name, mode=0777): """makedirs(path [, mode=0777]) Super-mkdir; create a leaf directory and all intermediate ones. Works like mkdir, except that any intermediate path segment (not just the rightmost) will be created if it does not exist. This is recursive. """ head, tail = path.split(name) if not tail: head, tail = path.split(head) if head and tail and not path.exists(head): makedirs(head, mode) if tail == curdir: # xxx/newdir/. exists if xxx/newdir exists return mkdir(name, mode)
41dc061fee2ec9e78e44fe78c06d1179a0d764e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/41dc061fee2ec9e78e44fe78c06d1179a0d764e6/os.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12151, 12, 529, 16, 1965, 33, 20, 14509, 4672, 3536, 81, 9477, 10539, 12, 803, 306, 16, 1965, 33, 20, 14509, 5717, 225, 14845, 17, 26686, 31, 752, 279, 7839, 1867, 471, 777, 12110, 594...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12151, 12, 529, 16, 1965, 33, 20, 14509, 4672, 3536, 81, 9477, 10539, 12, 803, 306, 16, 1965, 33, 20, 14509, 5717, 225, 14845, 17, 26686, 31, 752, 279, 7839, 1867, 471, 777, 12110, 594...
self.Bind( wx.EVT_BUTTON, self.OnTestResizeBoundsButton, btn )
self.Bind( wx.EVT_BUTTON, self.OnButtonTestResizeBounds, btn )
def __init__( self, parent, log ): wx.Panel.__init__( self, parent, -1, style=wx.NO_FULL_REPAINT_ON_RESIZE ) self.log = log
6d021842b3ffdeb8b9c605b4f0ac48e94294bf83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/6d021842b3ffdeb8b9c605b4f0ac48e94294bf83/ColumnHeader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 982, 16, 613, 262, 30, 7075, 18, 5537, 16186, 2738, 972, 12, 365, 16, 982, 16, 300, 21, 16, 2154, 33, 27226, 18, 3417, 67, 18111, 67, 862, 4066, 3217, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 982, 16, 613, 262, 30, 7075, 18, 5537, 16186, 2738, 972, 12, 365, 16, 982, 16, 300, 21, 16, 2154, 33, 27226, 18, 3417, 67, 18111, 67, 862, 4066, 3217, ...
if bootCode:
if version == "build":
def packageUrisToJS(packages): # Translate URI data to JavaScript allUris = [] for packageId, package in enumerate(packages): packageUris = [] for fileId in package:
f6109300a0b30f21f4b185d7f9d00da2c39d5bd2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/f6109300a0b30f21f4b185d7f9d00da2c39d5bd2/CodeGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2181, 23900, 774, 6479, 12, 10308, 4672, 468, 16820, 3699, 501, 358, 11905, 225, 777, 23900, 273, 5378, 364, 2181, 548, 16, 2181, 316, 4241, 12, 10308, 4672, 2181, 23900, 273, 5378, 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, 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, 2181, 23900, 774, 6479, 12, 10308, 4672, 468, 16820, 3699, 501, 358, 11905, 225, 777, 23900, 273, 5378, 364, 2181, 548, 16, 2181, 316, 4241, 12, 10308, 4672, 2181, 23900, 273, 5378, 364, ...
res = GetRegistryKey(key, "MAYA_INSTALL_LOCATION") if (res != 0): res = res.replace("\\", "/").rstrip("/") SDK[res] = ver
for dev in ["Alias|Wavefront","Alias","Autodesk"]: fullkey="SOFTWARE\\"+dev+"\\Maya\\"+key+"\\Setup\\InstallPath" res = GetRegistryKey(fullkey, "MAYA_INSTALL_LOCATION") if (res != 0): res = res.replace("\\", "/").rstrip("/") SDK[res] = ver
def SdkLocateMaya(): if (sys.platform != "win32"): return for (ver,key) in MAYAVERSIONINFO: if (PkgSkip(ver)==0): if (SDK.has_key(ver)==0): ddir = "sdks/"+ver.lower().replace("x","") if (os.path.isdir(ddir)): SDK[ver] = ddir else: res = GetRegistryKey(key, "MAYA_INSTALL_LOCATION") if (res != 0): res = res.replace("\\", "/").rstrip("/") SDK[res] = ver
66193a3f6218d596a40509d4b381a543b3f295c8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/66193a3f6218d596a40509d4b381a543b3f295c8/makepandacore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3426, 1333, 340, 49, 528, 69, 13332, 309, 261, 9499, 18, 9898, 480, 315, 8082, 1578, 6, 4672, 327, 364, 261, 502, 16, 856, 13, 316, 490, 5255, 37, 5757, 5923, 30, 309, 261, 11264, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3426, 1333, 340, 49, 528, 69, 13332, 309, 261, 9499, 18, 9898, 480, 315, 8082, 1578, 6, 4672, 327, 364, 261, 502, 16, 856, 13, 316, 490, 5255, 37, 5757, 5923, 30, 309, 261, 11264, 63...
self._config_data.cluster["volume_group_name"] = vg_name
self._config_data.cluster.volume_group_name = vg_name
def SetVGName(self, vg_name): """Set the volume group name.
2d4011cd2b16ce77c395793bb50a6ccbbc040988 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/2d4011cd2b16ce77c395793bb50a6ccbbc040988/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 9266, 461, 12, 2890, 16, 19524, 67, 529, 4672, 3536, 694, 326, 3940, 1041, 508, 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, 1000, 9266, 461, 12, 2890, 16, 19524, 67, 529, 4672, 3536, 694, 326, 3940, 1041, 508, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if app_fprime: gfkp1 = apply(approx_fprime,(xkp1,f,epsilon)+args) func_calls = func_calls + gc + len(x0) + 1 else: gfkp1 = apply(fprime,(xkp1,)+args) grad_calls = grad_calls + gc + 1
if gfkp1 is None: if app_fprime: gfkp1 = apply(approx_fprime,(xkp1,f,epsilon)+args) func_calls = func_calls + len(x0) + 1 else: gfkp1 = apply(fprime,(xkp1,)+args) grad_calls = grad_calls + 1
def fmin_bfgs(f, x0, fprime=None, args=(), avegtol=1e-5, epsilon=1.49e-8, maxiter=None, full_output=0, disp=1, retall=0): """Minimize a function using the BFGS algorithm. Description: Optimize the function, f, whose gradient is given by fprime using the quasi-Newton method of Broyden, Fletcher, Goldfarb, and Shanno (BFGS) See Wright, and Nocedal 'Numerical Optimization', 1999, pg. 198. Inputs: f -- the Python function or method to be minimized. x0 -- the initial guess for the minimizer. fprime -- a function to compute the gradient of f. args -- extra arguments to f and fprime. avegtol -- minimum average value of gradient for stopping epsilon -- if fprime is approximated use this value for the step size (can be scalar or vector) Outputs: (xopt, {fopt, func_calls, grad_calls, warnflag}, <allvecs>) xopt -- the minimizer of f. fopt -- the value of f(xopt). func_calls -- the number of function_calls. grad_calls -- the number of gradient calls. warnflag -- an integer warning flag: 1 : 'Maximum number of iterations exceeded.' 2 : 'Gradient and/or function calls not changing' allvecs -- a list of all iterates (only returned if retall==1) Additional Inputs: avegtol -- the minimum occurs when fprime(xopt)==0. This specifies how close to zero the average magnitude of fprime(xopt) needs to be. maxiter -- the maximum number of iterations. full_output -- if non-zero then return fopt, func_calls, grad_calls, and warnflag in addition to xopt. disp -- print convergence message if non-zero. retall -- return a list of results at each iteration if non-zero """ app_fprime = 0 if fprime is None: app_fprime = 1 x0 = asarray(x0) if maxiter is None: maxiter = len(x0)*200 func_calls = 0 grad_calls = 0 k = 0 N = len(x0) gtol = N*avegtol I = MLab.eye(N) Hk = I if app_fprime: gfk = apply(approx_fprime,(x0,f,epsilon)+args) myfprime = (approx_fprime,epsilon) func_calls = func_calls + len(x0) + 1 else: gfk = apply(fprime,(x0,)+args) myfprime = fprime grad_calls = grad_calls + 1 xk = x0 if retall: allvecs = [x0] sk = [2*gtol] warnflag = 0 old_fval = f(x0,*args) old_old_fval = old_fval + 5000 func_calls += 1 while (Num.add.reduce(abs(gfk)) > gtol) and (k < maxiter): pk = -Num.dot(Hk,gfk) alpha_k, fc, gc, old_fval, old_old_fval = \ line_search(f,myfprime,xk,pk,gfk,old_fval,old_old_fval,args=args) func_calls = func_calls + fc xkp1 = xk + alpha_k * pk if retall: allvecs.append(xkp1) sk = xkp1 - xk xk = xkp1 if app_fprime: gfkp1 = apply(approx_fprime,(xkp1,f,epsilon)+args) func_calls = func_calls + gc + len(x0) + 1 else: gfkp1 = apply(fprime,(xkp1,)+args) grad_calls = grad_calls + gc + 1 yk = gfkp1 - gfk k = k + 1 try: rhok = 1 / Num.dot(yk,sk) except ZeroDivisionError: warnflag = 2 break A1 = I - sk[:,Num.NewAxis] * yk[Num.NewAxis,:] * rhok A2 = I - yk[:,Num.NewAxis] * sk[Num.NewAxis,:] * rhok Hk = Num.dot(A1,Num.dot(Hk,A2)) + rhok * sk[:,Num.NewAxis] \ * sk[Num.NewAxis,:] gfk = gfkp1 if disp or full_output: fval = old_fval if warnflag == 2: if disp: print "Warning: Desired error not necessarily achieved due to precision loss" print " Current function value: %f" % fval print " Iterations: %d" % k print " Function evaluations: %d" % func_calls print " Gradient evaluations: %d" % grad_calls elif k >= maxiter: warnflag = 1 if disp: print "Warning: Maximum number of iterations has been exceeded" print " Current function value: %f" % fval print " Iterations: %d" % k print " Function evaluations: %d" % func_calls print " Gradient evaluations: %d" % grad_calls else: if disp: print "Optimization terminated successfully." print " Current function value: %f" % fval print " Iterations: %d" % k print " Function evaluations: %d" % func_calls print " Gradient evaluations: %d" % grad_calls if full_output: retlist = xk, fval, func_calls, grad_calls, warnflag if retall: retlist += (allvecs,) else: retlist = xk if retall: retlist = (xk, allvecs) return retlist
18d62e07c7b0b8dd2d3680a3b704bd36ff6ae89b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/18d62e07c7b0b8dd2d3680a3b704bd36ff6ae89b/optimize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 1154, 67, 17156, 564, 12, 74, 16, 619, 20, 16, 284, 16382, 33, 7036, 16, 833, 33, 9334, 279, 537, 75, 3490, 33, 21, 73, 17, 25, 16, 12263, 33, 21, 18, 7616, 73, 17, 28, 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, 284, 1154, 67, 17156, 564, 12, 74, 16, 619, 20, 16, 284, 16382, 33, 7036, 16, 833, 33, 9334, 279, 537, 75, 3490, 33, 21, 73, 17, 25, 16, 12263, 33, 21, 18, 7616, 73, 17, 28, 16, ...
break
if imul_arg1 == reg or imul_arg2 == reg: break
def _visit_gcroot_marker(self, line=None): # two possible patterns: # 1. mov reg, DWORD PTR _always_one_ # imul target, reg # 2. mov reg, DWORD PTR _always_one_ # imul reg, target assert self.lines[self.currentlineno].startswith("\tmov\t") mov = self.r_binaryinsn.match(self.lines[self.currentlineno]) assert re.match("DWORD PTR .+_always_one_", mov.group("source")) reg = mov.group("target")
9eb37ec1ea15fa69baa61310468962a8bd6c8cf3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/9eb37ec1ea15fa69baa61310468962a8bd6c8cf3/trackgcroot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11658, 67, 13241, 3085, 67, 11145, 12, 2890, 16, 980, 33, 7036, 4672, 468, 2795, 3323, 6884, 30, 468, 404, 18, 5730, 960, 16, 463, 7952, 453, 4349, 389, 17737, 67, 476, 67, 468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11658, 67, 13241, 3085, 67, 11145, 12, 2890, 16, 980, 33, 7036, 4672, 468, 2795, 3323, 6884, 30, 468, 404, 18, 5730, 960, 16, 463, 7952, 453, 4349, 389, 17737, 67, 476, 67, 468, ...
'version_major': build_config.version_major(), 'version_minor': build_config.version_minor(), 'version_patch': build_config.version_patch(), 'version': build_config.version_string(), 'so_version': build_config.soversion_string(),
'version_major': build_config.version_major, 'version_minor': build_config.version_minor, 'version_patch': build_config.version_patch, 'version': build_config.version_string, 'so_version': build_config.soversion_string,
def prefix_with_build_dir(path): if options.with_build_dir != None: return os.path.join(options.with_build_dir, path) return path
7370ffecb4f6a9250a55822f2327e973727bfa62 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9556/7370ffecb4f6a9250a55822f2327e973727bfa62/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1633, 67, 1918, 67, 3510, 67, 1214, 12, 803, 4672, 309, 702, 18, 1918, 67, 3510, 67, 1214, 480, 599, 30, 327, 1140, 18, 803, 18, 5701, 12, 2116, 18, 1918, 67, 3510, 67, 1214, 16, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1633, 67, 1918, 67, 3510, 67, 1214, 12, 803, 4672, 309, 702, 18, 1918, 67, 3510, 67, 1214, 480, 599, 30, 327, 1140, 18, 803, 18, 5701, 12, 2116, 18, 1918, 67, 3510, 67, 1214, 16, 5...
from htmlentitydefs import entitydefs
from htmlentitydefs import name2codepoint
def validate(self): if not self.rfc822_re.match(self.value): self.log(InvalidRFC2822Date({"parent":self.parent.name, "element":self.name, "value":self.value})) else: self.log(ValidRFC2822Date({"parent":self.parent.name, "element":self.name, "value":self.value}))
53e9ac24b99b512adbe72db896880cf6c8955563 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5012/53e9ac24b99b512adbe72db896880cf6c8955563/validators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 12, 2890, 4672, 309, 486, 365, 18, 16784, 24532, 67, 266, 18, 1916, 12, 2890, 18, 1132, 4672, 365, 18, 1330, 12, 1941, 17926, 6030, 3787, 1626, 12590, 6, 2938, 6877, 2890, 18, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1954, 12, 2890, 4672, 309, 486, 365, 18, 16784, 24532, 67, 266, 18, 1916, 12, 2890, 18, 1132, 4672, 365, 18, 1330, 12, 1941, 17926, 6030, 3787, 1626, 12590, 6, 2938, 6877, 2890, 18, 29...
tests.append(BasicUDPTest)
tests.extend([ BasicUDPTest, UDPTimeoutTest ])
def test_main(): tests = [ GeneralModuleTests, BasicTCPTest ] if sys.platform != 'mac': tests.append(BasicUDPTest) tests.extend([ NonBlockingTCPTests, FileObjectClassTestCase, UnbufferedFileObjectClassTestCase, LineBufferedFileObjectClassTestCase, SmallBufferedFileObjectClassTestCase ]) test_support.run_unittest(*tests)
11a35f545b39ebd09171869f9987dabd85f03254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/11a35f545b39ebd09171869f9987dabd85f03254/test_socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 7434, 273, 306, 9544, 3120, 14650, 16, 7651, 15988, 1856, 395, 308, 309, 2589, 18, 9898, 480, 296, 5821, 4278, 7434, 18, 14313, 3816, 7651, 12587, 1856, 395, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 7434, 273, 306, 9544, 3120, 14650, 16, 7651, 15988, 1856, 395, 308, 309, 2589, 18, 9898, 480, 296, 5821, 4278, 7434, 18, 14313, 3816, 7651, 12587, 1856, 395, 16, 1...
remote_uri = self._inv.remote_uri
def accept_proposal(self, password): """Accept a proposal of stream(s) being added. Moves the object from the PROPOSED state to the ESTABLISHED state.""" with self._lock: if self.state != "PROPOSED": raise RuntimeError("This method can only be called while in the PROPOSED state") remote_sdp = self._inv.get_offered_remote_sdp() audio_rtp = None msrp_chat = None for media in remote_sdp.media: if self.audio_transport is None and media.media == "audio" and media.port != 0 and audio_rtp is None: audio_rtp = RTPTransport(**self.rtp_options) elif self.chat_transport is None and media.media == "message" and media.port != 0 and msrp_chat is None: if self.msrp_options.use_relay_incoming: local_uri = self._inv.local_uri remote_uri = self._inv.remote_uri msrp_relay = MSRPRelaySettings(local_uri.host, local_uri.user, password, self.msrp_options.relay_host, self.msrp_options.relay_port, self.msrp_options.relay_use_tls) else: msrp_relay = None msrp_chat = MSRPChat(local_uri, self._inv.remote_uri, False, msrp_relay) media_initializer = MediaTransportInitializer(self, self._accept_proposal_continue, self._accept_proposal_fail, audio_rtp, msrp_chat) self.chat_transport = msrp_chat
74b96e26d5c412627890c7c35f416013636ab81e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/74b96e26d5c412627890c7c35f416013636ab81e/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2791, 67, 685, 8016, 12, 2890, 16, 2201, 4672, 3536, 5933, 279, 14708, 434, 1407, 12, 87, 13, 3832, 3096, 18, 490, 10829, 326, 733, 628, 326, 4629, 2419, 18204, 919, 358, 326, 512, 882...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2791, 67, 685, 8016, 12, 2890, 16, 2201, 4672, 3536, 5933, 279, 14708, 434, 1407, 12, 87, 13, 3832, 3096, 18, 490, 10829, 326, 733, 628, 326, 4629, 2419, 18204, 919, 358, 326, 512, 882...
n.mCost += fromnode.mCost
n.mCost += fromnode.mCost
def _handleNode(self,x,y,fromnode,destx,desty): n = self.getNode(SQ_Location(x,y)) if n is not None: dx = max(x,destx) - min(x,destx) dy = max(y,desty) - min(y,desty) emCost = dx+dy n.mCost += fromnode.mCost n.score = n.mCost+emCost n.parent=fromnode return n
6c6d84c3ad2857d8a0531038f79a0f65cf5df53e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6661/6c6d84c3ad2857d8a0531038f79a0f65cf5df53e/astar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 907, 12, 2890, 16, 92, 16, 93, 16, 2080, 2159, 16, 10488, 92, 16, 10488, 93, 4672, 290, 273, 365, 18, 588, 907, 12, 55, 53, 67, 2735, 12, 92, 16, 93, 3719, 309, 290, 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, 389, 4110, 907, 12, 2890, 16, 92, 16, 93, 16, 2080, 2159, 16, 10488, 92, 16, 10488, 93, 4672, 290, 273, 365, 18, 588, 907, 12, 55, 53, 67, 2735, 12, 92, 16, 93, 3719, 309, 290, 3...
msgobj = self.parsestr(part)
if isdigest: if part[0] == linesep: msgobj = self._class() part = part[1:] else: parthdrs, part = part.split(linesep+linesep, 1) msgobj = self.parsestr(parthdrs, headersonly=1) submsgobj = self.parsestr(part) msgobj.attach(submsgobj) msgobj.set_default_type('message/rfc822') else: msgobj = self.parsestr(part)
def _parsebody(self, container, fp): # Parse the body, but first split the payload on the content-type # boundary if present. boundary = container.get_boundary() isdigest = (container.get_type() == 'multipart/digest') # If there's a boundary, split the payload text into its constituent # parts and parse each separately. Otherwise, just parse the rest of # the body as a single message. Note: any exceptions raised in the # recursive parse need to have their line numbers coerced. if boundary: preamble = epilogue = None # Split into subparts. The first boundary we're looking for won't # have the leading newline since we're at the start of the body # text. separator = '--' + boundary payload = fp.read() start = payload.find(separator) if start < 0: raise Errors.BoundaryError( "Couldn't find starting boundary: %s" % boundary) if start > 0: # there's some pre-MIME boundary preamble preamble = payload[0:start] # Find out what kind of line endings we're using start += len(separator) cre = re.compile('\r\n|\r|\n') mo = cre.search(payload, start) if mo: start += len(mo.group(0)) * (1 + isdigest) # We create a compiled regexp first because we need to be able to # specify the start position, and the module function doesn't # support this signature. :( cre = re.compile('(?P<sep>\r\n|\r|\n)' + re.escape(separator) + '--') mo = cre.search(payload, start) if not mo: raise Errors.BoundaryError( "Couldn't find terminating boundary: %s" % boundary) terminator = mo.start() linesep = mo.group('sep') if mo.end() < len(payload): # there's some post-MIME boundary epilogue epilogue = payload[mo.end():] # We split the textual payload on the boundary separator, which # includes the trailing newline. If the container is a # multipart/digest then the subparts are by default message/rfc822 # instead of text/plain. In that case, they'll have an extra # newline before the headers to distinguish the message's headers # from the subpart headers. separator += linesep * (1 + isdigest) parts = payload[start:terminator].split(linesep + separator) for part in parts: msgobj = self.parsestr(part) container.preamble = preamble container.epilogue = epilogue container.attach(msgobj) elif container.get_main_type() == 'multipart': # Very bad. A message is a multipart with no boundary! raise Errors.BoundaryError( 'multipart message with no defined boundary') elif container.get_type() == 'message/delivery-status': # This special kind of type contains blocks of headers separated # by a blank line. We'll represent each header block as a # separate Message object blocks = [] while 1: blockmsg = self._class() self._parseheaders(blockmsg, fp) if not len(blockmsg): # No more header blocks left break blocks.append(blockmsg) container.set_payload(blocks) elif container.get_main_type() == 'message': # Create a container for the payload, but watch out for there not # being any headers left try: msg = self.parse(fp) except Errors.HeaderParseError: msg = self._class() self._parsebody(msg, fp) container.attach(msg) else: container.set_payload(fp.read())
3f1ae9b34469c4a9c9ea69dfeb77feedc8a53ac5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3f1ae9b34469c4a9c9ea69dfeb77feedc8a53ac5/Parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 3432, 12, 2890, 16, 1478, 16, 4253, 4672, 468, 2884, 326, 1417, 16, 1496, 1122, 1416, 326, 2385, 603, 326, 913, 17, 723, 468, 7679, 309, 3430, 18, 7679, 273, 1478, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 3432, 12, 2890, 16, 1478, 16, 4253, 4672, 468, 2884, 326, 1417, 16, 1496, 1122, 1416, 326, 2385, 603, 326, 913, 17, 723, 468, 7679, 309, 3430, 18, 7679, 273, 1478, 18, 588, ...
tests = [TestMiscellaneous, TestEnUSNumberFormatting, TestCNumberFormatting]
tests = [ TestMiscellaneous, TestEnUSNumberFormatting, TestCNumberFormatting ]
def test_main(): tests = [TestMiscellaneous, TestEnUSNumberFormatting, TestCNumberFormatting] # TestSkipped can't be raised inside unittests, handle it manually instead try: get_enUS_locale() except TestSkipped as e: print "Some tests will be disabled: %s" % e else: tests += [TestNumberFormatting, TestStringMethods] run_unittest(*tests)
557585ca0aae9718995ae4720977751a3626c78b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/557585ca0aae9718995ae4720977751a3626c78b/test_locale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 7434, 273, 306, 7766, 11729, 3855, 15522, 16, 7766, 664, 3378, 1854, 23974, 16, 7766, 39, 1854, 23974, 308, 468, 7766, 16425, 848, 1404, 506, 11531, 4832, 2836, 1634...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5254, 13332, 7434, 273, 306, 7766, 11729, 3855, 15522, 16, 7766, 664, 3378, 1854, 23974, 16, 7766, 39, 1854, 23974, 308, 468, 7766, 16425, 848, 1404, 506, 11531, 4832, 2836, 1634...
use_statcache -- Do not stat() each file directly: go through the statcache module for more efficiency.
use_statcache -- obsolete argument.
def cmp(f1, f2, shallow=1, use_statcache=0): """Compare two files. Arguments: f1 -- First file name f2 -- Second file name shallow -- Just check stat signature (do not read the files). defaults to 1. use_statcache -- Do not stat() each file directly: go through the statcache module for more efficiency. Return value: True if the files are the same, False otherwise. This function uses a cache for past comparisons and the results, with a cache invalidation mechanism relying on stale signatures. Of course, if 'use_statcache' is true, this mechanism is defeated, and the cache will never grow stale. """ if use_statcache: stat_function = statcache.stat else: stat_function = os.stat s1 = _sig(stat_function(f1)) s2 = _sig(stat_function(f2)) if s1[0] != stat.S_IFREG or s2[0] != stat.S_IFREG: return False if shallow and s1 == s2: return True if s1[1] != s2[1]: return False result = _cache.get((f1, f2)) if result and (s1, s2) == result[:2]: return result[2] outcome = _do_cmp(f1, f2) _cache[f1, f2] = s1, s2, outcome return outcome
a7087d0f5a4e57594c0ede8137bd2e4abdbd916f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a7087d0f5a4e57594c0ede8137bd2e4abdbd916f/filecmp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9411, 12, 74, 21, 16, 284, 22, 16, 18501, 33, 21, 16, 999, 67, 5642, 2493, 33, 20, 4672, 3536, 8583, 2795, 1390, 18, 225, 13599, 30, 225, 284, 21, 1493, 5783, 585, 508, 225, 284, 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, 9411, 12, 74, 21, 16, 284, 22, 16, 18501, 33, 21, 16, 999, 67, 5642, 2493, 33, 20, 4672, 3536, 8583, 2795, 1390, 18, 225, 13599, 30, 225, 284, 21, 1493, 5783, 585, 508, 225, 284, 2...
height as the master) bordermode="inside" or "outside" - whether to take border width of master widget into account """ for k in ['in_']: if k in kw: kw[k[:-1]] = kw[k] del kw[k]
height as the master) bordermode="inside" or "outside" - whether to take border width of master widget into account """
def place_configure(self, cnf={}, **kw): """Place a widget in the parent widget. Use as options: in=master - master relative to which the widget is placed. x=amount - locate anchor of this widget at position x of master y=amount - locate anchor of this widget at position y of master relx=amount - locate anchor of this widget between 0.0 and 1.0 relative to width of master (1.0 is right edge) rely=amount - locate anchor of this widget between 0.0 and 1.0 relative to height of master (1.0 is bottom edge) anchor=NSEW (or subset) - position anchor according to given direction width=amount - width of this widget in pixel height=amount - height of this widget in pixel relwidth=amount - width of this widget between 0.0 and 1.0 relative to width of master (1.0 is the same width as the master) relheight=amount - height of this widget between 0.0 and 1.0 relative to height of master (1.0 is the same height as the master) bordermode="inside" or "outside" - whether to take border width of master widget into account """ for k in ['in_']: if k in kw: kw[k[:-1]] = kw[k] del kw[k] self.tk.call( ('place', 'configure', self._w) + self._options(cnf, kw))
5b912a16970b62a46efa1c90b9e5e7b0acaf60d5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/5b912a16970b62a46efa1c90b9e5e7b0acaf60d5/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3166, 67, 14895, 12, 2890, 16, 23118, 28793, 2826, 9987, 4672, 3536, 6029, 279, 3604, 316, 326, 982, 3604, 18, 2672, 487, 702, 30, 316, 33, 7525, 300, 4171, 3632, 358, 1492, 326, 3604, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3166, 67, 14895, 12, 2890, 16, 23118, 28793, 2826, 9987, 4672, 3536, 6029, 279, 3604, 316, 326, 982, 3604, 18, 2672, 487, 702, 30, 316, 33, 7525, 300, 4171, 3632, 358, 1492, 326, 3604, ...
@staticmethod def calculateTiles( points, zoom = 10 ):
@staticmethod def calculateTiles( bounds, zoom = 10 ):
def getTileURL( xtile, ytile, zoom ): return '/'.join( [tileserver, str(zoom), str(xtile), str(ytile)] ) + '.png'
2b0ae4793cca6985c2bb04f17293a2fac4b6ab13 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3985/2b0ae4793cca6985c2bb04f17293a2fac4b6ab13/gpx2png.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24738, 1785, 12, 619, 15368, 16, 677, 15368, 16, 7182, 262, 30, 327, 2023, 18, 5701, 12, 306, 28366, 12330, 16, 609, 12, 14932, 3631, 609, 12, 15239, 398, 3631, 609, 12, 93, 15368, 258...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24738, 1785, 12, 619, 15368, 16, 677, 15368, 16, 7182, 262, 30, 327, 2023, 18, 5701, 12, 306, 28366, 12330, 16, 609, 12, 14932, 3631, 609, 12, 15239, 398, 3631, 609, 12, 93, 15368, 258...
self.active = False
self.isConnected = False
def _shutdown(self): if self.active: self.amqpSession.incoming("rdest").stop() if self.session.console != None: self.amqpSession.incoming("tdest").stop() self.amqpSession.close() self.active = False else: raise Exception("Broker already disconnected")
37e775a6ad926a53362cdd8bc0a5083eb6cfa230 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/197/37e775a6ad926a53362cdd8bc0a5083eb6cfa230/qmfconsole.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 15132, 12, 2890, 4672, 309, 365, 18, 3535, 30, 365, 18, 301, 14166, 2157, 18, 31033, 2932, 86, 10488, 20387, 5681, 1435, 309, 365, 18, 3184, 18, 8698, 480, 599, 30, 365, 18, 301, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15132, 12, 2890, 4672, 309, 365, 18, 3535, 30, 365, 18, 301, 14166, 2157, 18, 31033, 2932, 86, 10488, 20387, 5681, 1435, 309, 365, 18, 3184, 18, 8698, 480, 599, 30, 365, 18, 301, ...
doc_url = self.REQUEST['URLPATH1']
doc_url = "/".join(self.aq_parent.getPhysicalPath())
def render(self, element, lang=None, image_support=False, extra_options={}): """Return the HTML necessary to run the TinyMCE. Parameters: `element` `id` of HTML element that editor will is attached to. `lang` **Not used** `image_support` **No longer used** In order to disable images. Use extra_options, see below. `extra_options` Extra options you can pass to tinyMCE editor. See `config.ini` for further reference. You can pass any option from there to override default one. `extra_options['config_template']` Loads one of the defined templates from `config.ini`. Default is 'tinymce'. Also you can use 'tinymce_noimage' to disable image insertion. """ doc_url = self.REQUEST['URLPATH1'] if extra_options.has_key('config_template'): template = extra_options['config_template'] cfg = loadConfig(template) else: cfg = copy.copy(configuration) cfg.update({ 'select_image_url' : '%s/select_image?document=%s' \ % (self.absolute_url(), doc_url), 'edit_image_url' : '%s/prepare_image?mode=edit&document=%s' % (self.absolute_url(), doc_url), 'link_popup_url' : '%s/select_link' % self.absolute_url(), 'element_id': element, 'script_url' : '%s/tinymce/jscripts/tiny_mce/tiny_mce.js' \ % self.absolute_url(), }) cfg.update(extra_options) return "<script type=\"text/javascript\">\
48b83fddcd7bb554cd9f88d49063a95ab20800e1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3287/48b83fddcd7bb554cd9f88d49063a95ab20800e1/EditorTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 930, 16, 3303, 33, 7036, 16, 1316, 67, 13261, 33, 8381, 16, 2870, 67, 2116, 12938, 4672, 3536, 990, 326, 3982, 4573, 358, 1086, 326, 399, 11652, 49, 1441, 18, 7012,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1743, 12, 2890, 16, 930, 16, 3303, 33, 7036, 16, 1316, 67, 13261, 33, 8381, 16, 2870, 67, 2116, 12938, 4672, 3536, 990, 326, 3982, 4573, 358, 1086, 326, 399, 11652, 49, 1441, 18, 7012,...
again = meth(ts, tzinfo=off42)
again = meth(ts, tz=off42)
def test_tzinfo_fromtimestamp(self): import time meth = self.theclass.fromtimestamp ts = time.time() # Ensure it doesn't require tzinfo (i.e., that this doesn't blow up). base = meth(ts) # Try with and without naming the keyword. off42 = FixedOffset(42, "42") another = meth(ts, off42) again = meth(ts, tzinfo=off42) self.failUnless(another.tzinfo is again.tzinfo) self.assertEqual(another.utcoffset(), timedelta(minutes=42)) # Bad argument with and w/o naming the keyword. self.assertRaises(TypeError, meth, ts, 16) self.assertRaises(TypeError, meth, ts, tzinfo=16) # Bad keyword name. self.assertRaises(TypeError, meth, ts, tinfo=off42) # Too many args. self.assertRaises(TypeError, meth, ts, off42, off42) # Too few args. self.assertRaises(TypeError, meth)
2a44a8d3320ee7bcf5d718b5bdac550c6d34db4c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/2a44a8d3320ee7bcf5d718b5bdac550c6d34db4c/test_datetime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 12994, 1376, 67, 2080, 5508, 12, 2890, 4672, 1930, 813, 7917, 273, 365, 18, 451, 557, 459, 18, 2080, 5508, 3742, 273, 813, 18, 957, 1435, 468, 7693, 518, 3302, 1404, 2583, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12994, 1376, 67, 2080, 5508, 12, 2890, 4672, 1930, 813, 7917, 273, 365, 18, 451, 557, 459, 18, 2080, 5508, 3742, 273, 813, 18, 957, 1435, 468, 7693, 518, 3302, 1404, 2583, 15...
/.../RunChandler... --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --catsPerfLog=.../test_profile/time.log --scriptFile=tools/QATestScripts/Performance/PerfLargeDataResizeCalendar.py --restore=.../test_profile/__repository__.001
/.../RunChandler... --catch=tests --profileDir=test_profile --parcelPath=tools/QATestScripts/DataFiles --catsPerfLog=test_profile/time.log --scriptFile=tools/QATestScripts/Performance/PerfLargeDataResizeCalendar.py --restore=test_profile/__repository__.001
def main(options): """ >>> options = parseOptions() >>> options.dryrun = True >>> options.verbose = True >>> main(options) False Try and run a test that does not exist >>> options.single = 'TestFoo.py' >>> main(options) Test(s) not found False Try different single tests single unit test: >>> options.single = 'TestCrypto' >>> main(options) /.../RunPython... application/tests/TestCrypto.py -v - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + False unit test and functional test: >>> options.single = 'TestCrypto,TestSharing' >>> main(options) /.../RunChandler --create --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --chandlerTests=TestSharing -D2 -M0 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + /.../RunPython application/tests/TestCrypto.py -v - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + False unit, functional and two perf tests, one of which is a startup test: >>> options.single = 'TestCrypto,TestSharing,PerfImportCalendar,startup_large' >>> main(options) /.../RunChandler --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --catsPerfLog=.../test_profile/time.log --scriptFile=tools/QATestScripts/Performance/PerfImportCalendar.py --create PerfImportCalendar.py | 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + /.../RunChandler --create --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --chandlerTests=TestSharing -D2 -M0 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + /.../RunPython application/tests/TestCrypto.py -v - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + Creating repository for startup time tests /.../RunChandler... --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --scriptFile=tools/QATestScripts/Performance/quit.py --restore=.../test_profile/__repository__.001 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + Startup_with_large_calendar /usr/bin/time --format=%e -o .../test_profile/time.log .../RunChandler... --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --scriptFile=tools/QATestScripts/Performance/end.py 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + ... False Try and specify an invalid mode >>> options.single = '' >>> options.mode = 'foo' >>> main(options) foo removed from mode list False Run unit tests with --dryrun >>> options.mode = None >>> options.unit = True >>> main(options) /.../RunPython... .../tests/TestReferenceAttributes.py -v ... /.../RunPython... .../projects/Chandler-EVDBPlugin/setup.py test -v ... False Run unitSuite with --dryrun >>> options.mode = None >>> options.unit = False >>> options.unitSuite = True >>> main(options) /.../RunPython... tools/run_tests.py -v application i18n osaf repository - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + False Run functional tests with --dryrun >>> options.unit = False >>> options.unitSuite = False >>> options.funcSuite = True >>> main(options) /.../RunChandler... --create --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --scriptFile=tools/cats/Functional/FunctionalTestSuite.py -D2 -M0 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + False Run functional tests each in its on process >>> options.funcSuite = False >>> options.func = True >>> main(options) /.../RunChandler... --create --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --chandlerTests=TestCreateAccounts -D2 -M0 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + ... False Run performance tests with --dryrun >>> options.func = False >>> options.perf = True >>> options.profile = False >>> main(options) /.../RunChandler... --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --catsPerfLog=.../test_profile/time.log --scriptFile=tools/QATestScripts/Performance/PerfImportCalendar.py --create PerfImportCalendar.py | 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + ... /.../RunChandler... --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --catsPerfLog=.../test_profile/time.log --scriptFile=tools/QATestScripts/Performance/PerfLargeDataResizeCalendar.py --restore=.../test_profile/__repository__.001 PerfLargeDataResizeCalendar.py | 0.00 ... Creating repository for startup time tests /.../RunChandler... --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --scriptFile=tools/QATestScripts/Performance/quit.py --create - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + Startup /usr/bin/time --format=%e -o .../test_profile/time.log .../RunChandler... --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --scriptFile=tools/QATestScripts/Performance/end.py 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + ... False """ checkOptions(options) if options.mode is None: options.modes = modes = ['release', 'debug'] # silently clear any missing modes if default list is specified for mode in modes: if not os.path.isdir(os.path.join(options.chandlerBin, mode)): options.modes.remove(mode) else: options.mode = options.mode.strip().lower() options.modes = [ options.mode ] # complain about any missing modes if mode was explicitly stated if not os.path.isdir(os.path.join(options.chandlerBin, options.mode)): options.modes.remove(options.mode) log('%s removed from mode list' % options.mode) failed = False try: # Empty the log file so that we won't be confused by old results later f = open(os.path.join(options.profileDir, 'chandler.log'), 'w') f.close() except IOError: pass # Remove old perf log files (we leave the the latest) for f in glob.glob(os.path.join(options.profileDir, '*.log.*')): try: os.remove(f) except OSError: pass if options.single: failed = runSingles(options) else: if options.unit: failed = runUnitTests(options) if not failed or options.noStop: if runPluginTests(options): failed = True if options.unitSuite and (not failed or options.noStop): if runUnitSuite(options): failed = True if options.funcSuite and (not failed or options.noStop): if runFuncTest(options): failed = True if options.func and (not failed or options.noStop): if runFuncTestsSingly(options): failed = True if options.recorded and (not failed or options.noStop): if runRecordedScripts(options): failed = True if options.perf and (not failed or options.noStop): if runPerfTests(options): failed = True if len(failedTests) > 0: log('+-' * 32) log('The following tests failed:') log('\n'.join(failedTests)) log('') return failed
58706c198c72ae85bd163dd339d4081bdd26b7be /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/58706c198c72ae85bd163dd339d4081bdd26b7be/rt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 4672, 3536, 4080, 702, 273, 1109, 1320, 1435, 4080, 702, 18, 25011, 2681, 225, 273, 1053, 4080, 702, 18, 11369, 273, 1053, 4080, 2774, 12, 2116, 13, 1083, 225, 6161, 471,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 4672, 3536, 4080, 702, 273, 1109, 1320, 1435, 4080, 702, 18, 25011, 2681, 225, 273, 1053, 4080, 702, 18, 11369, 273, 1053, 4080, 2774, 12, 2116, 13, 1083, 225, 6161, 471,...
self.program = program
return program
def program(percept): state = interpret_input(percept) rule = rule_match(state, rules) action = rule.action return action
612bb0a1ea26afcd5519fa87593eb8d9e538dbb4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/16/612bb0a1ea26afcd5519fa87593eb8d9e538dbb4/agents.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5402, 12, 457, 956, 4672, 919, 273, 10634, 67, 2630, 12, 457, 956, 13, 1720, 273, 1720, 67, 1916, 12, 2019, 16, 2931, 13, 1301, 273, 1720, 18, 1128, 327, 1301, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5402, 12, 457, 956, 4672, 919, 273, 10634, 67, 2630, 12, 457, 956, 13, 1720, 273, 1720, 67, 1916, 12, 2019, 16, 2931, 13, 1301, 273, 1720, 18, 1128, 327, 1301, 2, -100, -100, -100, -...
if follower.distanceto(char) < 18: stopfight(follower) follower.guarding = None follower.goto(target.pos) follower.sound(SND_ATTACK)
go_target(char, [follower.serial, 0], target)
def go_target(char, arguments, target): (pet, all) = arguments if all: for follower in char.followers: if follower.distanceto(char) < 18: stopfight(follower) follower.guarding = None follower.goto(target.pos) follower.sound(SND_ATTACK) else: pet = wolfpack.findchar(pet) if pet and pet.owner == char and pet.distanceto(char) < 18: stopfight(pet) pet.guarding = None pet.goto(target.pos) pet.sound(SND_ATTACK)
8f1390ce3798402952112127c0c8ea19f64db214 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/8f1390ce3798402952112127c0c8ea19f64db214/pets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1960, 67, 3299, 12, 3001, 16, 1775, 16, 1018, 4672, 261, 6951, 16, 777, 13, 273, 1775, 309, 777, 30, 364, 2805, 264, 316, 1149, 18, 14641, 414, 30, 1960, 67, 3299, 12, 3001, 16, 306,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1960, 67, 3299, 12, 3001, 16, 1775, 16, 1018, 4672, 261, 6951, 16, 777, 13, 273, 1775, 309, 777, 30, 364, 2805, 264, 316, 1149, 18, 14641, 414, 30, 1960, 67, 3299, 12, 3001, 16, 306,...
data = self.sendCMD(['cd ' + rootdir, 'ls', 'quit'], sleep=1)
data = self.sendCMD(['cd ' + rootdir, 'ls'])
def listFiles(self, rootdir): if (self.dirExists(rootdir) == False): return [] data = self.sendCMD(['cd ' + rootdir, 'ls', 'quit'], sleep=1) if (data == None): return None retVal = self.stripPrompt(data) return retVal.split('\n')
02223128cd056cb013609966605554a83eff291d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/02223128cd056cb013609966605554a83eff291d/devicemanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17852, 12, 2890, 16, 1365, 1214, 4672, 309, 261, 2890, 18, 1214, 4002, 12, 3085, 1214, 13, 422, 1083, 4672, 327, 5378, 501, 273, 365, 18, 4661, 19473, 12, 3292, 4315, 296, 397, 1365, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17852, 12, 2890, 16, 1365, 1214, 4672, 309, 261, 2890, 18, 1214, 4002, 12, 3085, 1214, 13, 422, 1083, 4672, 327, 5378, 501, 273, 365, 18, 4661, 19473, 12, 3292, 4315, 296, 397, 1365, 1...
x = 20 + col*120
x = 20 + col*d
def test(): D = Drawing(450,650) for row in range(5): y = 530 - row*120 if row == 0: for col in range(3): x = 20 + col*120 g = Grid0() g.x = x g.y = y g.useRects = 0 g.useLines = 1 if col == 0: pass elif col == 1: g.delta0 = 10 elif col == 2: g.orientation = 'horizontal' g.demo() D.add(g) elif row == 1: for col in range(3): x = 20 + col*120 g = Grid0() g.y = y g.x = x if col == 0: pass elif col == 1: g.delta0 = 10 elif col == 2: g.orientation = 'horizontal' g.demo() D.add(g) elif row == 2: for col in range(3): x = 20 + col*120 g = Grid0() g.x = x g.y = y g.useLines = 1 g.useRects = 1 if col == 0: pass elif col == 1: g.delta0 = 10 elif col == 2: g.orientation = 'horizontal' g.demo() D.add(g) elif row == 3: for col in range(3): x = 20 + col*120 sr = ShadedRect0() sr.x = x sr.y = y sr.fillColorStart = colors.Color(0, 0, 0) sr.fillColorEnd = colors.Color(1, 1, 1) if col == 0: sr.numShades = 5 elif col == 1: sr.numShades = 2 elif col == 2: sr.numShades = 1 sr.demo() D.add(sr) elif row == 4: for col in range(3): x = 20 + col*120 sr = ShadedRect0() sr.x = x sr.y = y sr.fillColorStart = colors.red sr.fillColorEnd = colors.blue sr.orientation = 'horizontal' if col == 0: sr.numShades = 10 elif col == 1: sr.numShades = 20 elif col == 2: sr.numShades = 50 sr.demo() D.add(sr) renderPDF.drawToFile(D, 'grids.pdf', 'grids.py') print 'wrote file: grids.pdf'
7085104ce6ab4adbb19ecef99f88fe6823d23ca2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/7085104ce6ab4adbb19ecef99f88fe6823d23ca2/grids.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 13332, 463, 273, 10184, 310, 12, 24, 3361, 16, 26, 3361, 13, 225, 364, 1027, 316, 1048, 12, 25, 4672, 677, 273, 1381, 5082, 300, 1027, 14, 22343, 309, 1027, 422, 374, 30, 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, 1842, 13332, 463, 273, 10184, 310, 12, 24, 3361, 16, 26, 3361, 13, 225, 364, 1027, 316, 1048, 12, 25, 4672, 677, 273, 1381, 5082, 300, 1027, 14, 22343, 309, 1027, 422, 374, 30, 364, ...
if method in ('unlink'):
elif method in ('unlink'):
def log_fct(self, db, uid, object, method, fct_src, *args): """ Logging function: This function is performs logging oprations according to method @param db: the current database @param uid: the current user’s ID for security checks, @param object: Object who's values are being changed @param method: method to log: create, read, write, unlink @param fct_src: execute method of Object proxy @return: Returns result as per method of Object proxy """ logged_uids = [] pool = pooler.get_pool(db) cr = pooler.get_db(db).cursor() obj_ids = pool.get('ir.model').search(cr, uid, [('model', '=', object)]) model_object = pool.get('ir.model').browse(cr, uid, obj_ids)[0] if method in ('create'): res_id = fct_src(db, uid, object, method, *args) cr.commit() new_value = pool.get(model_object.model).read(cr, uid, [res_id], args[0].keys())[0] if 'id' in new_value: del new_value['id'] if not logged_uids or uid in logged_uids: resource_name = pool.get(model_object.model).name_get(cr, uid, [res_id]) resource_name = resource_name and resource_name[0][1] or '' vals = { "method": method, "object_id": model_object.id, "user_id": uid, "res_id": res_id, "name": resource_name } id = pool.get('audittrail.log').create(cr, uid, vals) lines = [] for field in new_value: if new_value[field]: line = { 'name': field, 'new_value': new_value[field], 'new_value_text': self.get_value_text(cr, uid, field, new_value[field], model_object) } lines.append(line) self.create_log_line(cr, uid, id, model_object, lines) cr.commit() cr.close() return res_id
db704adb67985bd6eaad8c1dd3c5eac480aaa2ec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/db704adb67985bd6eaad8c1dd3c5eac480aaa2ec/audittrail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 67, 74, 299, 12, 2890, 16, 1319, 16, 4555, 16, 733, 16, 707, 16, 28478, 67, 4816, 16, 380, 1968, 4672, 3536, 10253, 445, 30, 1220, 445, 353, 11199, 2907, 320, 683, 1012, 4888, 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, 613, 67, 74, 299, 12, 2890, 16, 1319, 16, 4555, 16, 733, 16, 707, 16, 28478, 67, 4816, 16, 380, 1968, 4672, 3536, 10253, 445, 30, 1220, 445, 353, 11199, 2907, 320, 683, 1012, 4888, 3...
altSelect = self.doc.selection
storeDoc = globalref.mainWin.doc self.doc = copy.deepcopy(storeDoc) globalref.docRef = self.doc
def updateMultiWinTree(self): """Update the tree and restore tree select and open nodes when multiple windows show the same file""" altSelect = self.doc.selection if self.duplicateSelect: self.doc.selection = self.duplicateSelect self.duplicateWin = False self.updateViews() self.duplicateWin = True self.doc.selection = altSelect
3dfa55d776787f3f041ae5c3cb98ee3b2610f5bc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3087/3dfa55d776787f3f041ae5c3cb98ee3b2610f5bc/treemainwin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 5002, 18049, 2471, 12, 2890, 4672, 3536, 1891, 326, 2151, 471, 5217, 2151, 2027, 471, 1696, 2199, 1347, 3229, 9965, 2405, 326, 1967, 585, 8395, 1707, 1759, 273, 2552, 1734, 18, 5254,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5002, 18049, 2471, 12, 2890, 4672, 3536, 1891, 326, 2151, 471, 5217, 2151, 2027, 471, 1696, 2199, 1347, 3229, 9965, 2405, 326, 1967, 585, 8395, 1707, 1759, 273, 2552, 1734, 18, 5254,...
protect_file = os.path.join(self.__patch_dir, 'protected')
protect_file = os.path.join(self.__series_dir, 'protected')
def protect(self): protect_file = os.path.join(self.__patch_dir, 'protected') if not os.path.isfile(protect_file): create_empty_file(protect_file)
02ac3ad2d474c60c1cdcb6b45451c1077b735ca0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12366/02ac3ad2d474c60c1cdcb6b45451c1077b735ca0/stack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17151, 12, 2890, 4672, 17151, 67, 768, 273, 1140, 18, 803, 18, 5701, 12, 2890, 16186, 10222, 67, 1214, 16, 296, 1117, 6134, 309, 486, 1140, 18, 803, 18, 291, 768, 12, 11815, 386, 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, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17151, 12, 2890, 4672, 17151, 67, 768, 273, 1140, 18, 803, 18, 5701, 12, 2890, 16186, 10222, 67, 1214, 16, 296, 1117, 6134, 309, 486, 1140, 18, 803, 18, 291, 768, 12, 11815, 386, 67, ...
print "Resource description:" for k,v in resourceDict.items(): print k.rjust(20),v
print "Resource description:" for k, v in resourceDict.items(): print k.rjust( 20 ), v
def selectJob(self, resourceDescription): """ Main job selection function to find the highest priority job matching the resource capacity """
059c4744ef6766e0575a5cd4d6f09d892a66a7df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/059c4744ef6766e0575a5cd4d6f09d892a66a7df/MatcherHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 2278, 12, 2890, 16, 1058, 3291, 4672, 3536, 12740, 1719, 4421, 445, 358, 1104, 326, 9742, 4394, 1719, 3607, 326, 1058, 7519, 3536, 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, 0, 0, 0, 0, 0, 0, 0, 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, 2027, 2278, 12, 2890, 16, 1058, 3291, 4672, 3536, 12740, 1719, 4421, 445, 358, 1104, 326, 9742, 4394, 1719, 3607, 326, 1058, 7519, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
<form name="display_ill_form" action="%s" method="get">
""" out += """ <form name="display_ill_form" action="%s" method="%s"> """ % (form_url, method) out += """
def tmpl_register_ill_article_request_step1(self, infos, admin=True, ln=CFG_SITE_LANG): """ @param infos: informations @type infos: list """
648f0875a183c65548d6b2535cea8cf25a2a9827 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/648f0875a183c65548d6b2535cea8cf25a2a9827/bibcirculation_templates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 4861, 67, 737, 67, 11480, 67, 2293, 67, 4119, 21, 12, 2890, 16, 10626, 16, 3981, 33, 5510, 16, 7211, 33, 19727, 67, 20609, 67, 10571, 4672, 3536, 632, 891, 10626, 30, 26978,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10720, 67, 4861, 67, 737, 67, 11480, 67, 2293, 67, 4119, 21, 12, 2890, 16, 10626, 16, 3981, 33, 5510, 16, 7211, 33, 19727, 67, 20609, 67, 10571, 4672, 3536, 632, 891, 10626, 30, 26978,...
r.setOption( "gl:mode", StringData( "deferred" ) ) r.setOption( "gl:searchPath:shader", StringData( os.path.dirname( __file__ ) + "/shaders" ) ) r.worldBegin() r.shader( "surface", "rgbColor", { "red" : FloatData( 1 ), "green" : FloatData( 0 ), "blue" : FloatData( 0 ) } ) r.concatTransform( M44f.createTranslated( V3f( 0, 0, -5 ) ) )
r.setOption( "gl:mode", StringData( "immediate" ) ) r.setOption( "gl:searchPath:shader", StringData( os.path.dirname( __file__ ) + "/shaders" ) ) r.display( os.path.dirname( __file__ ) + "/output/testPrimVars.tif", "tiff", "rgba", {} ) r.worldBegin() r.shader( "surface", "rgbColor", {} ) r.concatTransform( M44f.createTranslated( V3f( 0, 0, 5 ) ) )
def testPrimVars( self ) : r = Renderer() r.setOption( "gl:mode", StringData( "deferred" ) ) r.setOption( "gl:searchPath:shader", StringData( os.path.dirname( __file__ ) + "/shaders" ) ) r.worldBegin() #w = SceneViewer( "scene", r.scene() ) r.shader( "surface", "rgbColor", { "red" : FloatData( 1 ), "green" : FloatData( 0 ), "blue" : FloatData( 0 ) } ) r.concatTransform( M44f.createTranslated( V3f( 0, 0, -5 ) ) ) r.attributeBegin()
686f08c6e1e459dbc1884fe646a6bd99017df827 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9042/686f08c6e1e459dbc1884fe646a6bd99017df827/Renderer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2050, 381, 5555, 12, 365, 262, 294, 225, 436, 273, 17589, 1435, 436, 18, 542, 1895, 12, 315, 7043, 30, 3188, 3113, 514, 751, 12, 315, 26622, 6, 262, 262, 436, 18, 542, 1895, 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, 1842, 2050, 381, 5555, 12, 365, 262, 294, 225, 436, 273, 17589, 1435, 436, 18, 542, 1895, 12, 315, 7043, 30, 3188, 3113, 514, 751, 12, 315, 26622, 6, 262, 262, 436, 18, 542, 1895, 12...
if status.lower() == 'open': if owner != '': status = 'assigned' else: status = 'new'
def addTicket(self, time, changetime, component, severity, priority, owner, reporter, cc, version, milestone, status, resolution, summary, description, keywords): c = self.db().cursor() if status.lower() == 'open': if owner != '': status = 'assigned' else: status = 'new'
c5dcfdcbc56f3ce4c50bebf6511e29a385448c48 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/c5dcfdcbc56f3ce4c50bebf6511e29a385448c48/bugzilla2trac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 13614, 12, 2890, 16, 813, 16, 9435, 2374, 16, 1794, 16, 11426, 16, 4394, 16, 3410, 16, 11528, 16, 4946, 16, 1177, 16, 28664, 16, 1267, 16, 7861, 16, 4916, 16, 2477, 16, 7093, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 13614, 12, 2890, 16, 813, 16, 9435, 2374, 16, 1794, 16, 11426, 16, 4394, 16, 3410, 16, 11528, 16, 4946, 16, 1177, 16, 28664, 16, 1267, 16, 7861, 16, 4916, 16, 2477, 16, 7093, 46...
def _fitstart(self, x): from distributions import skew return (4 / skew(x)**2,)
def _fitstart(self, data): a = 4 / _skew(data)**2 return super(gamma_gen, self)._fitstart(data, args=(a,))
def _fitstart(self, x): from distributions import skew return (4 / skew(x)**2,)
88a7ea108ecaeaec7e8948124d936a657292d533 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12971/88a7ea108ecaeaec7e8948124d936a657292d533/distributions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7216, 1937, 12, 2890, 16, 619, 4672, 628, 23296, 1930, 20001, 327, 261, 24, 342, 20001, 12, 92, 13, 636, 22, 16, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 7216, 1937, 12, 2890, 16, 619, 4672, 628, 23296, 1930, 20001, 327, 261, 24, 342, 20001, 12, 92, 13, 636, 22, 16, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
clusterTop.setPos(self.offsetX, clusterTop.y()) clusterLeft.setPos(clusterLeft.x(), self.offsetY)
clusterTop.setPos(self.offsetX + self.CellWidth/2.0/self.Merge, clusterTop.y()) clusterLeft.setPos(clusterLeft.x(), self.offsetY + self.CellHeight/2.0/self.Merge)
def drawDistanceMap(self): """renders distance map object on canvas""" if not self.matrix: return self.clearScene()
82590f7ee3f57926cdeae289078286911746fe6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/82590f7ee3f57926cdeae289078286911746fe6e/OWDistanceMap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 7200, 863, 12, 2890, 4672, 3536, 1187, 6794, 3888, 852, 733, 603, 5953, 8395, 225, 309, 486, 365, 18, 5667, 30, 327, 225, 365, 18, 8507, 14370, 1435, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 3724, 7200, 863, 12, 2890, 4672, 3536, 1187, 6794, 3888, 852, 733, 603, 5953, 8395, 225, 309, 486, 365, 18, 5667, 30, 327, 225, 365, 18, 8507, 14370, 1435, 2, -100, -100, -100, -100, -...
element = _encode(element)
def simpleElement(self, element, value=None): if value: element = _encode(element) value = _encode(value) self.writeln("<%s>%s</%s>" % (element, value, element)) else: self.writeln("<%s/>" % element)
10263d6e6b14fb55bca63735f2508ee8e269526c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/10263d6e6b14fb55bca63735f2508ee8e269526c/plistlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4143, 1046, 12, 2890, 16, 930, 16, 460, 33, 7036, 4672, 309, 460, 30, 460, 273, 389, 3015, 12, 1132, 13, 365, 18, 5363, 292, 82, 2932, 32, 9, 87, 9822, 87, 1757, 9, 87, 2984, 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, 4143, 1046, 12, 2890, 16, 930, 16, 460, 33, 7036, 4672, 309, 460, 30, 460, 273, 389, 3015, 12, 1132, 13, 365, 18, 5363, 292, 82, 2932, 32, 9, 87, 9822, 87, 1757, 9, 87, 2984, 738, ...
"""Return a packed binary string representing a UDP header."""
"""Return a packed binary string representing a UDP header. Keyword arguments: sport -- source port (uint16) dport -- destination port (uint16) ulen -- length (UDP_HDR_LEN + payload) (uint16) """
def udp_pack_hdr(sport=0, dport=0, ulen=UDP_HDR_LEN): """Return a packed binary string representing a UDP header.""" return struct.pack("!HHHH", sport, dport, ulen, 0)
989c10ed982826a83078634e617e06ce8fc5b6f8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4694/989c10ed982826a83078634e617e06ce8fc5b6f8/dnet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16673, 67, 2920, 67, 16587, 12, 87, 655, 33, 20, 16, 302, 655, 33, 20, 16, 7493, 275, 33, 20352, 67, 44, 6331, 67, 13017, 4672, 3536, 990, 279, 12456, 3112, 533, 5123, 279, 16230, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16673, 67, 2920, 67, 16587, 12, 87, 655, 33, 20, 16, 302, 655, 33, 20, 16, 7493, 275, 33, 20352, 67, 44, 6331, 67, 13017, 4672, 3536, 990, 279, 12456, 3112, 533, 5123, 279, 16230, 14...
return str(base_url(url.lower()))
return base_url(url.lower()).encode('utf8')
def by_url_key(cls, url): return str(base_url(url.lower()))
9f1e4968f24ebd88d448857ef7c22048731d693a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6723/9f1e4968f24ebd88d448857ef7c22048731d693a/link.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 635, 67, 718, 67, 856, 12, 6429, 16, 880, 4672, 327, 609, 12, 1969, 67, 718, 12, 718, 18, 8167, 1435, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 635, 67, 718, 67, 856, 12, 6429, 16, 880, 4672, 327, 609, 12, 1969, 67, 718, 12, 718, 18, 8167, 1435, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
except self.ReferenceTimeParseError:
except ReferenceTimeParseError:
def getDefaultCoordinateDelta(self,dimname,coords): # Only operate on 1D coordinates if coords.ndim>1: return NetCDFStore.getDefaultCoordinateDelta(self,dimname,coords)
d595d0017e779a5b06214ee30e710e5635deab41 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/381/d595d0017e779a5b06214ee30e710e5635deab41/data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4829, 13503, 9242, 12, 2890, 16, 3509, 529, 16, 9076, 4672, 468, 5098, 20829, 603, 404, 40, 5513, 309, 6074, 18, 82, 3509, 34, 21, 30, 327, 8503, 39, 4577, 2257, 18, 588, 1868, 13503, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4829, 13503, 9242, 12, 2890, 16, 3509, 529, 16, 9076, 4672, 468, 5098, 20829, 603, 404, 40, 5513, 309, 6074, 18, 82, 3509, 34, 21, 30, 327, 8503, 39, 4577, 2257, 18, 588, 1868, 13503, ...
@param id: structure type ID
@param sid: structure type ID
def SetMemberType(id, member_offset, flag, typeid, nitems): """ Change structure member type @param id: structure type ID @param member_offset: offset of the member @param flag: new type of the member. Should be one of FF_BYTE..FF_PACKREAL (see above) combined with FF_DATA @param typeid: structure id if 'flag' == FF_STRU Denotes type of the member is the member itself is a structure. Otherwise should be -1. if isOff0(flag) then typeid specifies the offset base. if isASCII(flag) then typeid specifies the string type (ASCSTR_...). @param nitems: number of items in the member @return: !=0 - ok. """ struc = idaapi.get_struc(id) assert struct, "get_struc() failed" ti = _IDC_PrepareStrucMemberTypeinfo(flag, typeid) return idaapi.set_member_type(struc, member_offset, flag, ti, nitems)
76aa24fecdace41c9fc827e500b95cfdf5053272 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4773/76aa24fecdace41c9fc827e500b95cfdf5053272/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 4419, 559, 12, 350, 16, 3140, 67, 3348, 16, 2982, 16, 618, 350, 16, 290, 3319, 4672, 3536, 7576, 3695, 3140, 618, 225, 632, 891, 7348, 30, 3695, 618, 1599, 632, 891, 3140, 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, 1000, 4419, 559, 12, 350, 16, 3140, 67, 3348, 16, 2982, 16, 618, 350, 16, 290, 3319, 4672, 3536, 7576, 3695, 3140, 618, 225, 632, 891, 7348, 30, 3695, 618, 1599, 632, 891, 3140, 67, ...
search = [re.compile(fnmatch.translate("\s+".join(x.split()))[:-1], re.I) for x in shlex.split(self._searchentry.get_text())]
search = [] for tok in shlex.split(self._searchentry.get_text()): tok = fnmatch.translate(tok)[:-1].replace(r"\ ", " ") tok = r"\s+".join(tok.split()) search.append(re.compile(tok))
def refreshPackages(self): if not self._ctrl: return
828c8d108288755bc8d0f1b52a7b1e9318561e38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/828c8d108288755bc8d0f1b52a7b1e9318561e38/interactive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 11425, 12, 2890, 4672, 309, 486, 365, 6315, 16277, 30, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 11425, 12, 2890, 4672, 309, 486, 365, 6315, 16277, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if self.irc_connection == None:
if self.irc_connection != None: self.irc_connection.privmsg(self.bridge.irc_room, message) elif self.xmpp_c == None:
def sayOnIRC(self, message): if self.protocol == 'irc': raise Exception('[Internal Error] "'+self.nickname+'" comes from IRC') try: if self.irc_connection == None: self.bridge.irc_connection.privmsg(self.bridge.irc_room, '<'+self.nickname+'> '+message) else: self.irc_connection.privmsg(self.bridge.irc_room, message) except EncodingException: self.bridge.say('[Warning] "'+self.nickname+'" is sending messages using an unknown encoding')
d96bf24efa4ff6b4c74a1fdc2610fadf512c84fe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9915/d96bf24efa4ff6b4c74a1fdc2610fadf512c84fe/participant.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12532, 1398, 30240, 12, 2890, 16, 883, 4672, 309, 365, 18, 8373, 422, 296, 481, 71, 4278, 1002, 1185, 2668, 63, 3061, 1068, 65, 2491, 15, 2890, 18, 17091, 529, 15, 4970, 14535, 628, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12532, 1398, 30240, 12, 2890, 16, 883, 4672, 309, 365, 18, 8373, 422, 296, 481, 71, 4278, 1002, 1185, 2668, 63, 3061, 1068, 65, 2491, 15, 2890, 18, 17091, 529, 15, 4970, 14535, 628, 46...
self.relatedFiles[type].append(BibDoc(bibdocid=bibdocid))
try: cur_doc = BibDoc(bibdocid=bibdocid) except StandardError: pass else: self.relatedFiles[type].append(cur_doc)
def BuildRelatedFileList(self): res = run_sql("select ln.id_bibdoc2,ln.type,bibdoc.status from " "bibdoc_bibdoc as ln,bibdoc where id=ln.id_bibdoc2 and " "ln.id_bibdoc1=%s", (self.id,)) for row in res: bibdocid = row[0] type = row[1] if row[2] == "": status = 0 else: status = int(row[2]) if status & 1 == 0: if not self.relatedFiles.has_key(type): self.relatedFiles[type] = [] self.relatedFiles[type].append(BibDoc(bibdocid=bibdocid))
5f6d6ac058ffa2c4c0d23b7aaff83799e8442d7f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/5f6d6ac058ffa2c4c0d23b7aaff83799e8442d7f/file.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3998, 8017, 26098, 12, 2890, 4672, 400, 273, 1086, 67, 4669, 2932, 4025, 7211, 18, 350, 67, 70, 495, 2434, 22, 16, 2370, 18, 723, 16, 70, 495, 2434, 18, 2327, 628, 315, 315, 70, 495,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3998, 8017, 26098, 12, 2890, 4672, 400, 273, 1086, 67, 4669, 2932, 4025, 7211, 18, 350, 67, 70, 495, 2434, 22, 16, 2370, 18, 723, 16, 70, 495, 2434, 18, 2327, 628, 315, 315, 70, 495,...
headers = _header_parser.parse(fp)
headers = mimetools.Message(fp)
def parse_multipart(fp, pdict): """Parse multipart input. Arguments: fp : input file pdict: dictionary containing other parameters of content-type header Returns a dictionary just like parse_qs(): keys are the field names, each value is a list of values for that field. This is easy to use but not much good if you are expecting megabytes to be uploaded -- in that case, use the FieldStorage class instead which is much more flexible. Note that content-type is the raw, unparsed contents of the content-type header. XXX This does not parse nested multipart parts -- use FieldStorage for that. XXX This should really be subsumed by FieldStorage altogether -- no point in having two implementations of the same parsing algorithm. """ boundary = "" if 'boundary' in pdict: boundary = pdict['boundary'] if not valid_boundary(boundary): raise ValueError, ('Invalid boundary in multipart form: %r' % (boundary,)) nextpart = "--" + boundary lastpart = "--" + boundary + "--" partdict = {} terminator = "" while terminator != lastpart: bytes = -1 data = None if terminator: # At start of next part. Read headers first. headers = _header_parser.parse(fp) clength = headers.getheader('content-length') if clength: try: bytes = int(clength) except ValueError: pass if bytes > 0: if maxlen and bytes > maxlen: raise ValueError, 'Maximum content length exceeded' data = fp.read(bytes) else: data = "" # Read lines until end of part. lines = [] while 1: line = fp.readline() if not line: terminator = lastpart # End outer loop break if line[:2] == "--": terminator = line.strip() if terminator in (nextpart, lastpart): break lines.append(line) # Done with part. if data is None: continue if bytes < 0: if lines: # Strip final line terminator line = lines[-1] if line[-2:] == "\r\n": line = line[:-2] elif line[-1:] == "\n": line = line[:-1] lines[-1] = line data = "".join(lines) line = headers['content-disposition'] if not line: continue key, params = parse_header(line) if key != 'form-data': continue if 'name' in params: name = params['name'] else: continue if name in partdict: partdict[name].append(data) else: partdict[name] = [data] return partdict
3a703b60593e2bc2ddde232eaad365e4c126ff42 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3a703b60593e2bc2ddde232eaad365e4c126ff42/cgi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 16404, 12, 7944, 16, 293, 1576, 4672, 3536, 3201, 10263, 810, 18, 225, 13599, 30, 4253, 282, 294, 810, 585, 293, 1576, 30, 3880, 4191, 1308, 1472, 434, 913, 17, 723, 1446, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 16404, 12, 7944, 16, 293, 1576, 4672, 3536, 3201, 10263, 810, 18, 225, 13599, 30, 4253, 282, 294, 810, 585, 293, 1576, 30, 3880, 4191, 1308, 1472, 434, 913, 17, 723, 1446, 22...
context['itemizedcosttotal'] = invoice.cost()
try: context['itemizedcosttotal'] = invoice.cost() except EmptyTransactionException: context['itemizedcosttotal'] = 0
def startpay_cybersource(self, request, tl, one, two, module, extra, prog): # Force users to pay for non-optional stuffs user = ESPUser(request.user) invoice = Document.get_invoice(user, prog.anchor, LineItemType.objects.filter(anchor=prog.anchor), dont_duplicate=True)
7d64aebef6853fbe07cc9572d02be34f6f460c18 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12041/7d64aebef6853fbe07cc9572d02be34f6f460c18/creditcardmodule_cybersource.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 10239, 67, 2431, 2210, 552, 12, 2890, 16, 590, 16, 8332, 16, 1245, 16, 2795, 16, 1605, 16, 2870, 16, 11243, 4672, 468, 11889, 3677, 358, 8843, 364, 1661, 17, 10444, 384, 696, 2556...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 10239, 67, 2431, 2210, 552, 12, 2890, 16, 590, 16, 8332, 16, 1245, 16, 2795, 16, 1605, 16, 2870, 16, 11243, 4672, 468, 11889, 3677, 358, 8843, 364, 1661, 17, 10444, 384, 696, 2556...
return self._setFileParameter(fileID,'GID',group,connection=connection) def _setFileMode(self,fileID,mode,connection=False): connection = self._getConnection(connection)
return self._setFileParameter( fileID, 'GID', group, connection = connection ) def _setFileMode( self, fileID, mode, connection = False ): connection = self._getConnection( connection )
def _setFileGroup(self,fileID,group,connection=False): connection = self._getConnection(connection) """ Set the file group """ if type(group) in StringTypes: result = self.db.ugManager.findGroup(group) if not result['OK']: return result group = result['Value'] return self._setFileParameter(fileID,'GID',group,connection=connection)
26c5008a7adbc1c761e2409bed59b7710e5f2c74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/26c5008a7adbc1c761e2409bed59b7710e5f2c74/FileManagerBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 812, 1114, 12, 2890, 16, 768, 734, 16, 1655, 16, 4071, 33, 8381, 4672, 1459, 273, 365, 6315, 588, 1952, 12, 4071, 13, 3536, 1000, 326, 585, 1041, 3536, 309, 618, 12, 1655, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 542, 812, 1114, 12, 2890, 16, 768, 734, 16, 1655, 16, 4071, 33, 8381, 4672, 1459, 273, 365, 6315, 588, 1952, 12, 4071, 13, 3536, 1000, 326, 585, 1041, 3536, 309, 618, 12, 1655, ...
del norm_path, add_path, remove_path, ROBOTDIR, PARENTDIR, PYPATH
del _find_in_syspath_normalized, _normpath, add_path, remove_path, ROBOTDIR, PARENTDIR, PYPATH
def remove_path(path): path = norm_path(path) while path in sys.path: sys.path.remove(path)
94bbe917c2c4dfd733d4240e01d56a21b2abe07a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/94bbe917c2c4dfd733d4240e01d56a21b2abe07a/pythonpathsetter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 803, 12, 803, 4672, 589, 273, 4651, 67, 803, 12, 803, 13, 1323, 589, 316, 2589, 18, 803, 30, 2589, 18, 803, 18, 4479, 12, 803, 13, 282, 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 803, 12, 803, 4672, 589, 273, 4651, 67, 803, 12, 803, 13, 1323, 589, 316, 2589, 18, 803, 30, 2589, 18, 803, 18, 4479, 12, 803, 13, 282, 2, -100, -100, -100, -100, -100, -...
self.parser.setFeature(xml.sax.handler.feature_namespaces,1)
self.parser.setFeature(xml.sax.handler.feature_namespaces, 1)
def reset(self): self.pulldom = PullDOM() # This content handler relies on namespace support self.parser.setFeature(xml.sax.handler.feature_namespaces,1) self.parser.setContentHandler(self.pulldom)
500fca110f005eb10fd581019263b28b27fed1ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/500fca110f005eb10fd581019263b28b27fed1ca/pulldom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 12, 2890, 4672, 365, 18, 13469, 9859, 273, 14899, 8168, 1435, 468, 1220, 913, 1838, 14719, 281, 603, 1981, 2865, 365, 18, 4288, 18, 542, 4595, 12, 2902, 18, 87, 651, 18, 4176, 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, 2715, 12, 2890, 4672, 365, 18, 13469, 9859, 273, 14899, 8168, 1435, 468, 1220, 913, 1838, 14719, 281, 603, 1981, 2865, 365, 18, 4288, 18, 542, 4595, 12, 2902, 18, 87, 651, 18, 4176, 18...
releaseToTinderboxBuilds=True, **kwargs):
releaseToTinderboxBuilds=True, tinderboxBuildsDir=None, dependToDated=True, **kwargs):
def __init__(self, objdir, username, milestone, platform, remoteHost, remoteBasePath, group=None, chmodMode=755, sshKey=None, releaseToDated=True, releaseToLatest=True, releaseToTinderboxBuilds=True, **kwargs): """ @type objdir: string @param objdir: The obj directory used for the build. This is needed to find the packages in the source tree.
9685e8a6c3c8ae97e7b3586b544f981214692639 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13067/9685e8a6c3c8ae97e7b3586b544f981214692639/transfer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1081, 1214, 16, 2718, 16, 28664, 16, 4072, 16, 2632, 2594, 16, 2632, 15912, 16, 1041, 33, 7036, 16, 13413, 2309, 33, 21761, 16, 7056, 653, 33, 7036, 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, 2738, 972, 12, 2890, 16, 1081, 1214, 16, 2718, 16, 28664, 16, 4072, 16, 2632, 2594, 16, 2632, 15912, 16, 1041, 33, 7036, 16, 13413, 2309, 33, 21761, 16, 7056, 653, 33, 7036, 16, ...
if arch not in self.systems: self.build_systems(arch)
self.build_systems(arch)
def __init__(self): """Class constructor
de1a02ab556454eb3fce74ee371bbc77a5159ea5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/de1a02ab556454eb3fce74ee371bbc77a5159ea5/britney.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 3536, 797, 3885, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 3536, 797, 3885, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
hechas=[] while 2==2: log=pageText(URL).decode('utf-8', 'replace') parsed=parselog(log)
hechas = list() def report(leng, rep_page, username, com): another_page = wikipedia.Page(leng, rep_page) if another_page.exists(): text_get = another_page.get() else: text_get = '' pos = 0 regex = talk.replace('_', ' ') + username n = re.compile(regex, re.UNICODE) y = n.search(text_get, pos) if y == None: rep_text = rep(username) another_page.put(text_get + rep_text, comment = com, minorEdit = True) print "...Reported..." else: pos = y.end() print "The user is already in the report page." while 1: URL = "http://%s/w/index.php?title=Speciale:Log&type=newusers&user=&page=&limit=%d" % (wikipedia.getSite().hostname(), limit) log = pageText(URL).decode('utf-8', 'replace') print "I'm going to load the new users...\n" parsed = parselog(log)
def parselog(raw): users=[] ##On a new line below you need to add the user talk namespace name of the wiki ##For Dutch Wikimedia, for example, tabla=raw.split('class="new" title="Overleg gebruiker:') ##For Wikimedia Commons, for example, tabla=raw.split('class="new" title="User talk:') tabla.remove(tabla[0]) for cerca in tabla: username=cerca.split('"')[0] if username not in done: done.append(username) UN=wikipedia.Page(welcomesite, username) ##On a new line below you need to add the user talk namespace name of the wiki ##For Dutch Wikimedia, for example, UNT=wikipedia.Page(welcomesite, 'Overleg gebruiker:'+username) ##For Wikimedia Commons, for example, UNT=wikipedia.Page(welcomesite, 'User talk:'+username) ##On a new line below you need to add the user talk namespace name of the wiki ##For Dutch Wikimedia, for example, contribs=pageText('http://nl.wikipedia.org/wiki/Speciaal:Contributions/'+UN.urlname()).decode('utf-8', 'replace') ##For Wikimedia Commons, for example, contribs=pageText('http://commons.wikimedia.org/wiki/Special:Contributions/'+UN.urlname()).decode('utf-8', 'replace') contribnum=contribs.count('<li>') #This is not an accurate count, it just counts the first #50 contributions if contribnum != 0: users.append([username, contribnum]) return users
dcc2ff24e2f997a7bd09888682822e754b7d38e6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/dcc2ff24e2f997a7bd09888682822e754b7d38e6/welcome.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 779, 1786, 717, 12, 1899, 4672, 3677, 33, 8526, 7541, 1398, 279, 394, 980, 5712, 1846, 1608, 358, 527, 326, 729, 26591, 1981, 508, 434, 326, 9050, 7541, 1290, 463, 322, 343, 678, 1766, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 779, 1786, 717, 12, 1899, 4672, 3677, 33, 8526, 7541, 1398, 279, 394, 980, 5712, 1846, 1608, 358, 527, 326, 729, 26591, 1981, 508, 434, 326, 9050, 7541, 1290, 463, 322, 343, 678, 1766, ...
for k in self.__cllbcks.get(signal_name,[]):
for k in self.__cllbcks.get(signal_name, {}).copy():
def __emit(self, signal_name, tid,path=None,state_id=None,neworder=None,): for k in self.__cllbcks.get(signal_name,[]): f = self.__cllbcks[signal_name][k] if neworder: f(tid,path,neworder,state_id) elif state_id: f(tid,path,state_id) else: f(tid,path) if signal_name.endswith('-inview'): self.emit(signal_name, tid,path) elif signal_name.endswith('-reordered'): self.emit(signal_name,tid,path,neworder) else: self.emit(signal_name, tid)
def3a694e857728f29d6aa1cadc7060cf9bd3bac /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/def3a694e857728f29d6aa1cadc7060cf9bd3bac/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 18356, 12, 2890, 16, 4277, 67, 529, 16, 11594, 16, 803, 33, 7036, 16, 2019, 67, 350, 33, 7036, 16, 2704, 1019, 33, 7036, 16, 4672, 364, 417, 316, 365, 16186, 830, 20404, 363, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18356, 12, 2890, 16, 4277, 67, 529, 16, 11594, 16, 803, 33, 7036, 16, 2019, 67, 350, 33, 7036, 16, 2704, 1019, 33, 7036, 16, 4672, 364, 417, 316, 365, 16186, 830, 20404, 363, 8...
if self._short_opts or self._long_opts: return "/".join(self._short_opts + self._long_opts) else: raise RuntimeError, "short_opts and long_opts both empty!"
return "/".join(self._short_opts + self._long_opts)
def __str__ (self): if self._short_opts or self._long_opts: return "/".join(self._short_opts + self._long_opts) else: raise RuntimeError, "short_opts and long_opts both empty!"
1cf7c99a16b690081fdc82dd118fe22a109df2e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1cf7c99a16b690081fdc82dd118fe22a109df2e0/optparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 261, 2890, 4672, 309, 365, 6315, 6620, 67, 4952, 578, 365, 6315, 5748, 67, 4952, 30, 327, 4016, 18, 5701, 12, 2890, 6315, 6620, 67, 4952, 397, 365, 6315, 5748, 67, 4952...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 701, 972, 261, 2890, 4672, 309, 365, 6315, 6620, 67, 4952, 578, 365, 6315, 5748, 67, 4952, 30, 327, 4016, 18, 5701, 12, 2890, 6315, 6620, 67, 4952, 397, 365, 6315, 5748, 67, 4952...
a, b, c = mosflm_a_matrix_to_real_space(0.99187, 'mC', matrix) print math.sqrt(dot(a, a)) print math.sqrt(dot(b, b)) print math.sqrt(dot(c, c)) if __name__ == '__main_old__': matrix = ''' -0.00417059 -0.00089426 -0.01139821 -0.00084328 -0.01388561 0.01379631 -0.00121258 0.01273236 0.01424531 -0.099 0.451 -0.013 -0.94263428 -0.04741397 -0.33044314 -0.19059871 -0.73622239 0.64934635 -0.27406719 0.67507666 0.68495023 228.0796 52.5895 44.1177 90.0000 100.6078 90.0000 -0.0985 0.4512 -0.0134'''
def mosflm_a_matrix_to_real_space(wavelength, lattice, matrix): '''Given a Mosflm A matrix and the associated spacegroup (think of this Bravais lattice (which will be converted to a spacegroup for the benefit of the CCTBX program lattice_symmetry) return the real space primative crystal lattice vectors in the xia2 reference frame. This reference frame corresponds to that defined for imgCIF.''' # convert the lattice to a spacegroup - not needed, see below # spacegroup_number = lattice_to_spacegroup(lattice) # spacegroup = Syminfo.spacegroup_name_to_number(spacegroup_number) # get the a, u, matrices and the unit cell cell, a, u = parse_matrix(matrix) # use iotbx.latice_symmetry to obtain the reindexing operator to # a primative triclinic lattice - this should not be specific to # using iotbx - othercell should be optionally supported too... ls = _Othercell() ls.set_cell(cell) ls.set_lattice(lattice) # ls.set_spacegroup(spacegroup) # cell, reindex = ls.generate_primative_reindex() ls.generate() cell = ls.get_cell('aP') reindex = ls.get_reindex_op('aP') reindex_matrix = symop_to_mat(reindex) # scale the a matrix a = matscl(a, 1.0 / wavelength) # convert to real space (invert) and apply this reindex operator to the a # matrix to get the primative real space triclinic cell axes real_a = matmul(reindex_matrix, transpose(invert(a))) # convert these to the xia2 reference frame a, b, c = mat2vec(real_a) ax = mosflm_to_xia2(a) bx = mosflm_to_xia2(b) cx = mosflm_to_xia2(c) # FIXME in here add check that the unit cell lengths are within 1% of # the correct value - if they are not, raise an exception as the wavelength # provided is probably wrong... la = math.sqrt(dot(ax, ax)) lb = math.sqrt(dot(bx, bx)) lc = math.sqrt(dot(cx, cx)) if math.fabs(la - cell[0]) / cell[0] > 0.01: raise RuntimeError, 'cell check failed (wavelength != %f)' % \ wavelength if math.fabs(lb - cell[1]) / cell[1] > 0.01: raise RuntimeError, 'cell check failed (wavelength != %f)' % \ wavelength if math.fabs(lc - cell[2]) / cell[2] > 0.01: raise RuntimeError, 'cell check failed (wavelength != %f)' % \ wavelength # return these vectors return ax, bx, cx
83ade42172d71662fab08c5b5b525e56add7c43b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3290/83ade42172d71662fab08c5b5b525e56add7c43b/MatrixExpert.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 538, 2242, 81, 67, 69, 67, 5667, 67, 869, 67, 7688, 67, 2981, 12, 91, 16775, 16, 16690, 16, 3148, 4672, 9163, 6083, 279, 490, 538, 2242, 81, 432, 3148, 471, 326, 3627, 3476, 165...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 312, 538, 2242, 81, 67, 69, 67, 5667, 67, 869, 67, 7688, 67, 2981, 12, 91, 16775, 16, 16690, 16, 3148, 4672, 9163, 6083, 279, 490, 538, 2242, 81, 432, 3148, 471, 326, 3627, 3476, 165...
except:
except ValueError, e:
def parseRange(text): # FIXME: should cope with '1-', '-443' and even '-' articles = string.split(text, '-') if len(articles) == 1: try: a = int(articles[0]) return a, a except: return None, None elif len(articles) == 2: try: if len(articles[0]): l = int(articles[0]) else: l = None if len(articles[1]): h = int(articles[1]) else: h = None except: return None, None return l, h
cffa1380b9b6ebe6dce04e9a3f44627d50fb1fcb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/cffa1380b9b6ebe6dce04e9a3f44627d50fb1fcb/nntp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 2655, 12, 955, 4672, 468, 9852, 30, 1410, 276, 1306, 598, 296, 21, 17, 2187, 2400, 6334, 23, 11, 471, 5456, 4014, 15828, 273, 533, 18, 4939, 12, 955, 16, 4014, 13, 309, 562, 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, 1109, 2655, 12, 955, 4672, 468, 9852, 30, 1410, 276, 1306, 598, 296, 21, 17, 2187, 2400, 6334, 23, 11, 471, 5456, 4014, 15828, 273, 533, 18, 4939, 12, 955, 16, 4014, 13, 309, 562, 12...
node2.top().y - span.y / 2) shaft.lineTo(node2.top().x, node2.top().y - span.y / 2)
node2.top().y - span.y / 2 + span.y / 8) shaft.lineTo(node2.top().x, node2.top().y - span.y / 2 + span.y / 8)
def shaft(self): span = XY(self.metrix.spanWidth, self.metrix.spanHeight) dir = self.direction()
a722c5bf49bd08716c90e6d48d06fe3a1ef611bb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/81/a722c5bf49bd08716c90e6d48d06fe3a1ef611bb/DiagramMetrix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6056, 1222, 12, 2890, 4672, 4548, 273, 18774, 12, 2890, 18, 10578, 1932, 18, 3969, 2384, 16, 365, 18, 10578, 1932, 18, 3969, 2686, 13, 1577, 273, 365, 18, 9855, 1435, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6056, 1222, 12, 2890, 4672, 4548, 273, 18774, 12, 2890, 18, 10578, 1932, 18, 3969, 2384, 16, 365, 18, 10578, 1932, 18, 3969, 2686, 13, 1577, 273, 365, 18, 9855, 1435, 2, -100, -100, -1...
if len(stack) == 0:
if len(stack) == 1:
def repl(x): return "test(%s, %s, %s)" % (x.group(1), x.group(2), expr.sub(repl, x.group(3)))
24e27d5fb89a4f58179045858131edd9848c0c9c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/24e27d5fb89a4f58179045858131edd9848c0c9c/gettext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6831, 12, 92, 4672, 327, 315, 3813, 9275, 87, 16, 738, 87, 16, 738, 87, 2225, 738, 261, 92, 18, 1655, 12, 21, 3631, 619, 18, 1655, 12, 22, 3631, 3065, 18, 1717, 12, 26745, 16, 619,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6831, 12, 92, 4672, 327, 315, 3813, 9275, 87, 16, 738, 87, 16, 738, 87, 2225, 738, 261, 92, 18, 1655, 12, 21, 3631, 619, 18, 1655, 12, 22, 3631, 3065, 18, 1717, 12, 26745, 16, 619,...
print 'Creating',target
log.info('Creating %s', target)
def generate_f2py_py(build_dir): f2py_exe = 'f2py'+os.path.basename(sys.executable)[6:] if f2py_exe[-4:]=='.exe': f2py_exe = f2py_exe[:-4] + '.py' if 'bdist_wininst' in sys.argv and f2py_exe[-3:] != '.py': f2py_exe = f2py_exe + '.py' target = os.path.join(build_dir,f2py_exe) if newer(__file__,target): print 'Creating',target f = open(target,'w') f.write('''\
bfb1633766b1e6b1c72de094aa565c6e6ec0db80 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/bfb1633766b1e6b1c72de094aa565c6e6ec0db80/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 74, 22, 2074, 67, 2074, 12, 3510, 67, 1214, 4672, 284, 22, 2074, 67, 14880, 273, 296, 74, 22, 2074, 11, 15, 538, 18, 803, 18, 13909, 12, 9499, 18, 17751, 25146, 26, 26894, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2103, 67, 74, 22, 2074, 67, 2074, 12, 3510, 67, 1214, 4672, 284, 22, 2074, 67, 14880, 273, 296, 74, 22, 2074, 11, 15, 538, 18, 803, 18, 13909, 12, 9499, 18, 17751, 25146, 26, 26894, ...
sage: G = Graph(sparse=True)
sage: G = Graph(sparse=True, weighted=True)
def weighted_adjacency_matrix(self, sparse=True, boundary_first=False): """ Returns the weighted adjacency matrix of the graph. Each vertex is represented by its position in the list returned by the vertices() function. EXAMPLES: sage: G = Graph(sparse=True) sage: G.add_edges([(0,1,1),(1,2,2),(0,2,3),(0,3,4)]) sage: M = G.weighted_adjacency_matrix(); M [0 1 3 4] [1 0 2 0] [3 2 0 0] [4 0 0 0] sage: H = Graph(data=M, format='weighted_adjacency_matrix', sparse=True) sage: H == G True
c0a876d9191e3b16c1b1f56434a99fdad95026ef /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/c0a876d9191e3b16c1b1f56434a99fdad95026ef/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13747, 67, 13829, 1077, 2075, 67, 5667, 12, 2890, 16, 9387, 33, 5510, 16, 7679, 67, 3645, 33, 8381, 4672, 3536, 2860, 326, 13747, 25220, 3148, 434, 326, 2667, 18, 8315, 5253, 353, 10584,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13747, 67, 13829, 1077, 2075, 67, 5667, 12, 2890, 16, 9387, 33, 5510, 16, 7679, 67, 3645, 33, 8381, 4672, 3536, 2860, 326, 13747, 25220, 3148, 434, 326, 2667, 18, 8315, 5253, 353, 10584,...
oscmd("bison -y -d -obuilt/tmp/"+src+".c -p "+pre+" "+src)
oscmd("bison -y -d -obuilt/tmp/"+ifile+".c -p "+pre+" "+src)
def CompileBisonLINUXA(pre, dsth, dstc, wobj, ipath, opts, src): ifile = os.path.basename(src) oscmd("bison -y -d -obuilt/tmp/"+src+".c -p "+pre+" "+src) CopyFile(dstc, "built/tmp/"+ifile+".c") CopyFile(dsth, "built/tmp/"+ifile+".h") CompileCxxLINUXA(wobj,dstc,ipath,opts)
d638312b66d707ef9c99f51a9cd2412e36ee70f1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/d638312b66d707ef9c99f51a9cd2412e36ee70f1/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16143, 38, 4530, 20663, 57, 17269, 12, 1484, 16, 3046, 76, 16, 3046, 71, 16, 341, 2603, 16, 277, 803, 16, 1500, 16, 1705, 4672, 309, 398, 273, 1140, 18, 803, 18, 13909, 12, 4816, 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, 16143, 38, 4530, 20663, 57, 17269, 12, 1484, 16, 3046, 76, 16, 3046, 71, 16, 341, 2603, 16, 277, 803, 16, 1500, 16, 1705, 4672, 309, 398, 273, 1140, 18, 803, 18, 13909, 12, 4816, 13,...
res = commands.getoutput("pushd %s; rpm2cpio %s |cpio -imud; popd" % (docsdir, os.path.join(self.topdir, self.config.get('default', 'product_path'), pkg))) log.info("Result from rpm2cpio: %s" % res)
extraargs = [os.path.join(self.topdir, self.config.get('default', 'product_path'), pkg)] p1 = subprocess.Popen(rpm2cpio + extraargs, cwd=docsdir, stdout=PIPE) p2 = subprocess.Popen(cpio, cwd=docsdir, stdin=p1.stdout)
def doGetRelnotes(self): """Get extra files from packages in the tree to put in the topdir of the tree."""
4e8d70bf9fa3bbca0112014aab29f696ee748b84 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8489/4e8d70bf9fa3bbca0112014aab29f696ee748b84/pungi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23611, 1971, 12903, 12, 2890, 4672, 3536, 967, 2870, 1390, 628, 5907, 316, 326, 2151, 358, 1378, 316, 326, 1760, 1214, 434, 326, 2151, 12123, 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, 0, 0, 0, 0, 0, 0, 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, 23611, 1971, 12903, 12, 2890, 4672, 3536, 967, 2870, 1390, 628, 5907, 316, 326, 2151, 358, 1378, 316, 326, 1760, 1214, 434, 326, 2151, 12123, 2, -100, -100, -100, -100, -100, -100, -100, ...
def haralickConstraint(z, i, x, y, t): if i.g2(x, y) < t: return False gx, gy = i.dx(x, y), i.dy(x, y) return (gx**3 * i.dx3(x, y) + \ 3*gx**2 * gy * i.dxxy(x, y) + \ 3*gx * gy**2 * i.dxyy(x, y) + \ gy**3 * i.dy3(x, y) < 0) def laplaceConstraint(z, i, x, y, t): if i.g2(x, y) < t: return False gx, gy = -z.dx(x, y), -z.dy(x, y) return (gx**3 * i.dx3(x, y) + \ 3*gx**2 * gy * i.dxxy(x, y) + \ 3*gx * gy**2 * i.dxyy(x, y) + \ gy**3 * i.dy3(x, y) < 0) def splineConstraint(z, i, x, y, t): if i(x,y) < t: return False gx, gy, gxx, gxy, gyy = z.dx(x,y), z.dy(x,y), i.dxx(x,y), i.dxy(x,y), i.dyy(x,y) return gx**2 * gxx + 2*gx*gy*gxy + gy**2 * gyy <= 0.0 class ZeroEdges: """zero crossings of an image, its oriented second derivative, the Laplacian, or the height ridge by splines""" def __init__(self, image, method = "haralick"): """method should be one of: 'direct', 'haralick', 'laplace', or 'splineridge'""" s = vigra.SplineImageView5(image) self.i = s z = vigra.GrayImage(image.size()) if method is "direct": z = image elif method is "haralick": for x,y in image.size(): z[x,y] = s.dx(x,y)**2 * s.dxx(x,y) + \ 2*s.dx(x,y)*s.dy(x,y)*s.dxy(x,y) + \ s.dy(x,y)**2 * s.dyy(x,y) elif method is "laplace": for x,y in image.size(): z[x,y] = s.dxx(x,y) + s.dyy(x,y) else: for x,y in image.size(): gx, gy, gxx, gxy, gyy = s.dx(x,y), s.dy(x,y), s.dxx(x,y), s.dxy(x,y), s.dyy(x,y) z[x,y] = gx*gy*(gyy - gxx) + gxy*(gx**2 - gy**2) self.z = vigra.SplineImageView3(z) self.regions = vigra.transformImage(z, '\l x: x > 0? 1: x<0? -1: 0') self.m = method def _addFacetIntersection(self, facetX, facetY, point): facetIndex = facetX + 10000*facetY if self.facets.has_key(facetIndex): self.facets[facetIndex].append(point) else: self.facets[facetIndex] = [point] def points(self, useConstraint = True, t = 1e-7): result = [] self.facets = {} if not useConstraint: def checkConstraint(z, i, xx, yy, t): return True elif self.m == "haralick": checkConstraint = haralickConstraint elif self.m in "laplace": checkConstraint = laplaceConstraint else: checkConstraint = splineConstraint for x, y in self.i.size() - Size2D(1, 1): c = self.z.coefficients(x, y) xPoly = [c[k,0] for k in range(4)] yPoly = [c[0,k] for k in range(4)] for k in polynomialRealRoots(xPoly): if k < 0.0 or k >= 1.0: continue p = (x + k, y) if not checkConstraint(self.z, self.i, p[0], p[1], t): continue result.append(p) self._addFacetIntersection(x, y, p) self._addFacetIntersection(x, y-1, p) for k in polynomialRealRoots(yPoly): if k < 0.0 or k >= 1.0: continue p = (x, y + k) if not checkConstraint(self.z, self.i, p[0], p[1], t): continue result.append(p) self._addFacetIntersection(x, y, p) self._addFacetIntersection(x-1, y, p) return result def edges(self, useConstraint = True, t = 1e-7): try: f = self.facets except: self.points(useConstraint, t) f = self.facets e = [] for k in f.values(): if len(k) == 1: continue elif len(k) == 2: e.append(k) else: xx = reduce(lambda x,y: x+y[0], k, 0.0) / len(k) yy = reduce(lambda x,y: x+y[1], k, 0.0) / len(k) for kk in k: e.append([(xx,yy),kk]) return e from operator import setitem def distinct(l): d = {} map(setitem, (d,)*len(l), l, []) return d.keys() def levelEdgesMap(edges, imageSize): assert len(edges[0]) >= 2 and len(edges[0][0]) == 2, \ "mapFromZeroEdges() expects output of ZeroEdges.edges() as parameter!" nodePositions = [ep[0] for ep in edges] nodePositions.extend([ep[1] for ep in edges]) nodePositions = distinct(nodePositions) nodePositions.insert(0, None) edgeTriples = [(nodePositions.index(ep[0]), nodePositions.index(ep[1]), [Vector2(*ep[0]), Vector2(*ep[1])]) for ep in edges] edgeTriples.insert(0, None) nodePositions = [np and Vector2(*np) for np in nodePositions] result = Map(nodePositions, edgeTriples, imageSize, performEdgeSplits = False) removeCruft(result, 2) return result
def followContour(siv, geomap, nodeLabel, h): pos = geomap.node(nodeLabel).position() x = round(pos[0]) y = round(pos[1]) poly = [pos] while True: npos, _ = predictorCorrectorStep(siv, pos, h, 1e-6) if not npos: return poly nx = int(npos[0]) ny = int(npos[1]) if nx != x or ny != y: # determine grid intersection diff = npos - pos if nx != x: intersectionX = round(npos[0]) intersectionY = pos[1]+(intersectionX-pos[0])*diff[1]/diff[0] else: intersectionY = round(npos[1]) intersectionX = pos[0]+(intersectionY-pos[1])*diff[0]/diff[1] intersection = Vector2(intersectionX, intersectionY) # connect to crossed Node node = geomap.nearestNode(intersection, 0.01) if node and node.label() == nodeLabel: # and len(poly) < 2: print "coming from node %d to %d, ignoring crossing, poly len: %d" \ % (nodeLabel, node.label(), len(poly)) pass elif node: poly.append(node.position()) print "added", geomap.addEdge(nodeLabel, node.label(), poly) if not node.degree() % 2: return poly = [node.position()] nodeLabel = node.label() else: sys.stderr.write("WARNING: level contour crossing grid at %s without intersection Node!\n" % repr(intersection)) x = nx y = ny poly.append(npos) pos = npos
06f56e130542a1c91cca5aded8b43db966347318 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/06f56e130542a1c91cca5aded8b43db966347318/levelcontours.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2805, 660, 477, 12, 87, 427, 16, 7364, 438, 16, 756, 2224, 16, 366, 4672, 949, 273, 7364, 438, 18, 2159, 12, 2159, 2224, 2934, 3276, 1435, 619, 273, 3643, 12, 917, 63, 20, 5717, 677,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2805, 660, 477, 12, 87, 427, 16, 7364, 438, 16, 756, 2224, 16, 366, 4672, 949, 273, 7364, 438, 18, 2159, 12, 2159, 2224, 2934, 3276, 1435, 619, 273, 3643, 12, 917, 63, 20, 5717, 677,...
outfile_path = package
outfile_path = list (package)
def build_module (self, module, module_file, package):
4258e786196ec9ba5005ca7bb37cde23cf56bf21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4258e786196ec9ba5005ca7bb37cde23cf56bf21/build_py.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 2978, 261, 2890, 16, 1605, 16, 1605, 67, 768, 16, 2181, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 2978, 261, 2890, 16, 1605, 16, 1605, 67, 768, 16, 2181, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
log_info("Termination requested!")
opde.log_info("Termination requested!")
def exitRequest(msg):
67a5c7d976de50d9c3d7b9e0e0107685f7dfe168 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7559/67a5c7d976de50d9c3d7b9e0e0107685f7dfe168/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2427, 691, 12, 3576, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2427, 691, 12, 3576, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...