rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
if experiment_summ_id in self.zero_lag_ids[experiment_id].values():
if experiment_id in self.zero_lag_ids and experiment_summ_id in self.zero_lag_ids[experiment_id].values():
def add_to_bkg_stats(self, experiment_id, experiment_summ_id, ifos, param_group, stat): """ Adds a stat to bkg_stats and sngl_slide_stats. What stat is added is determined on the command line by the ranking-stat option. """ if experiment_summ_id in self.zero_lag_ids[experiment_id].values(): self.sngl_slide_stats[(exper...
0b6d3201037295b6d1b3819247b26b441a88c768 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/0b6d3201037295b6d1b3819247b26b441a88c768/ligolw_sqlutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 869, 67, 70, 14931, 67, 5296, 12, 2890, 16, 8724, 67, 350, 16, 8724, 67, 1364, 81, 67, 350, 16, 309, 538, 16, 579, 67, 1655, 16, 610, 4672, 3536, 15605, 279, 610, 358, 324...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 869, 67, 70, 14931, 67, 5296, 12, 2890, 16, 8724, 67, 350, 16, 8724, 67, 1364, 81, 67, 350, 16, 309, 538, 16, 579, 67, 1655, 16, 610, 4672, 3536, 15605, 279, 610, 358, 324...
self.platform.clearPlatformSearchPaths()
self.platform.clearAutoLoadRecipes()
def clearPlatformAutoLoadRecipes(self): """ Clear the list of auto load recipes for the platform """ if self.platform is None: return self.platform.clearPlatformSearchPaths() return self
52bc736bccd14f83beab207fb20d38f1485d24dc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7634/52bc736bccd14f83beab207fb20d38f1485d24dc/api1.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2424, 8201, 4965, 2563, 426, 3449, 281, 12, 2890, 4672, 3536, 10121, 326, 666, 434, 3656, 1262, 5863, 281, 364, 326, 4072, 3536, 309, 365, 18, 9898, 353, 599, 30, 327, 365, 18, 9898, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2424, 8201, 4965, 2563, 426, 3449, 281, 12, 2890, 4672, 3536, 10121, 326, 666, 434, 3656, 1262, 5863, 281, 364, 326, 4072, 3536, 309, 365, 18, 9898, 353, 599, 30, 327, 365, 18, 9898, 1...
os.path.unlink(path)
os.unlink(path)
def remove_ipc_socket(path): os = __import__('os') if os.path.exists(path): os.path.unlink(path)
6ece3eb10bf2f37db6ff288b817ce86786ae5591 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/6ece3eb10bf2f37db6ff288b817ce86786ae5591/parallel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 625, 71, 67, 7814, 12, 803, 4672, 1140, 273, 1001, 5666, 972, 2668, 538, 6134, 309, 1140, 18, 803, 18, 1808, 12, 803, 4672, 1140, 18, 318, 1232, 12, 803, 13, 225, 2, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 625, 71, 67, 7814, 12, 803, 4672, 1140, 273, 1001, 5666, 972, 2668, 538, 6134, 309, 1140, 18, 803, 18, 1808, 12, 803, 4672, 1140, 18, 318, 1232, 12, 803, 13, 225, 2, -100, ...
self.timer = VS.GetGameTime()+47 self.practice = 2 if (self.practice==2 and VS.GetGameTime()<self.timer and VS.GetGameTime()>=self.anitime): for index in range (len(self.sequence)): if (VS.GetGameTime()-self.talktime>=self.sequence[index][0] and VS.GetGameTime()-self.talktime<=self.sequence[index][0]+self.sequence[inde...
self.timer = VS.GetGameTime()+52 self.practice = 3 if (self.practice==3 and VS.GetGameTime()<self.timer and VS.GetGameTime()>=self.anitime): for index in range (len(self.sequence)): if (VS.GetGameTime()-self.talktime>=self.sequence[index][0] and VS.GetGameTime()-self.talktime<=self.sequence[index][0]+self.sequence[inde...
def practiceSpec (self): # practice intro if (self.practice==0): #self.jump = universe.getRandomJumppoint() self.jump = unit.getUnitByName('JumpToOldziey') nam = unit.getUnitFullName(self.jump) self.objective = VS.addObjective("Target %s" % nam) self.objectives+=[int(self.objective)] VS.IOmessage (0,"Oswald","Privateer...
66c46e79ea501cbc68b49d8dd0a03a57988f1683 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2883/66c46e79ea501cbc68b49d8dd0a03a57988f1683/quest_tutorial.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27164, 1990, 261, 2890, 4672, 468, 27164, 13079, 309, 261, 2890, 18, 84, 14266, 1812, 631, 20, 4672, 468, 2890, 18, 24574, 273, 29235, 18, 588, 8529, 26743, 1153, 1435, 365, 18, 24574, 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, 27164, 1990, 261, 2890, 4672, 468, 27164, 13079, 309, 261, 2890, 18, 84, 14266, 1812, 631, 20, 4672, 468, 2890, 18, 24574, 273, 29235, 18, 588, 8529, 26743, 1153, 1435, 365, 18, 24574, 2...
if len(include) == 0 and len(explicitInclude) > 0: if len(block) > 0: self._console.error("Blocking is not supported when only explicit includes are defined!"); sys.exit(1) result = [] else: result = self.resolveDependencies(include, block, variants) if len(explicitInclude) > 0 or len(explicitExclude) > 0: self._c...
def resolveDepsSmartCludes(): if len(include) == 0 and len(explicitInclude) > 0: if len(block) > 0: self._console.error("Blocking is not supported when only explicit includes are defined!"); sys.exit(1) result = [] else: result = self.resolveDependencies(include, block, variants) return result def processExplicit...
def getClassList(self, include, block, explicitInclude, explicitExclude, variants): # Resolve intelli include depdendencies if len(include) == 0 and len(explicitInclude) > 0: if len(block) > 0: self._console.error("Blocking is not supported when only explicit includes are defined!"); sys.exit(1)
39021e8f538ea21eaaca166327458f978af29f06 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/39021e8f538ea21eaaca166327458f978af29f06/DependencyLoader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2900, 682, 12, 2890, 16, 2341, 16, 1203, 16, 5515, 8752, 16, 5515, 12689, 16, 12935, 4672, 468, 9910, 509, 292, 549, 2341, 5993, 72, 409, 3209, 309, 562, 12, 6702, 13, 422, 374, 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, 2900, 682, 12, 2890, 16, 2341, 16, 1203, 16, 5515, 8752, 16, 5515, 12689, 16, 12935, 4672, 468, 9910, 509, 292, 549, 2341, 5993, 72, 409, 3209, 309, 562, 12, 6702, 13, 422, 374, 471, ...
rev_item = self.revision
rev = self.revisions[0]["revision"].value
def compare_previous_revision(self, widget, data=None): rev_item = self.revision path_item = self.paths[0] url = self.caller.root_url + path_item self.caller.view_diff_for_path(url, rev_item.value, sidebyside=True)
254cf90c673c32fc3faafcde068598e8de07eeee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/254cf90c673c32fc3faafcde068598e8de07eeee/log.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3400, 67, 11515, 67, 13057, 12, 2890, 16, 3604, 16, 501, 33, 7036, 4672, 5588, 273, 365, 18, 29892, 63, 20, 6362, 6, 13057, 6, 8009, 1132, 589, 67, 1726, 273, 365, 18, 4481, 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, 3400, 67, 11515, 67, 13057, 12, 2890, 16, 3604, 16, 501, 33, 7036, 4672, 5588, 273, 365, 18, 29892, 63, 20, 6362, 6, 13057, 6, 8009, 1132, 589, 67, 1726, 273, 365, 18, 4481, 63, 20, ...
print "\t-d, --download_dir\t\t\tOverride the default download directory"
print "\t-d, --download_dir\t\tOverride the default download directory"
def usage(): print "sofabuddy.py [options]" print 'Example' print '\tsofabuddy.py -d "/media/downloads" -h "192.168.1.1"' print "Options" print "\t-?, --help\t\t\tWill bring up this message" print "\t-d, --download_dir\t\t\tOverride the default download directory" print "\t-h, --host=HOST\t\t\tChoose the ip address of ...
d980e351d61a854ab2f62963548b755646b43fb9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13915/d980e351d61a854ab2f62963548b755646b43fb9/sofabuddy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 315, 87, 792, 12941, 449, 93, 18, 2074, 306, 2116, 4279, 1172, 296, 10908, 11, 1172, 2337, 3428, 792, 12941, 449, 93, 18, 2074, 300, 72, 2206, 5829, 19, 7813, 87, 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, 4084, 13332, 1172, 315, 87, 792, 12941, 449, 93, 18, 2074, 306, 2116, 4279, 1172, 296, 10908, 11, 1172, 2337, 3428, 792, 12941, 449, 93, 18, 2074, 300, 72, 2206, 5829, 19, 7813, 87, 6,...
if "source" in fields and fields["source"] == "freshmeat":
if "source" in fields and fields["source"].value == "freshmeat":
def _getMetadata(self, fields, troveName, branch): branch = self.repServer.thawVersion(branch)
f536a0fb072aa939f48e4c75dfb6a0d1cfaecd08 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/f536a0fb072aa939f48e4c75dfb6a0d1cfaecd08/http.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 2277, 12, 2890, 16, 1466, 16, 23432, 537, 461, 16, 3803, 4672, 3803, 273, 365, 18, 14462, 2081, 18, 451, 2219, 1444, 12, 7500, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 588, 2277, 12, 2890, 16, 1466, 16, 23432, 537, 461, 16, 3803, 4672, 3803, 273, 365, 18, 14462, 2081, 18, 451, 2219, 1444, 12, 7500, 13, 2, -100, -100, -100, -100, -100, -100, -100...
f = self.open(support.TESTFN, "wb") f.write(data) f.close() f = self.open(support.TESTFN, "r", encoding="utf-8") f._CHUNK_SIZE f._CHUNK_SIZE = 2 f.readline() f.tell()
with self.open(support.TESTFN, "wb") as f: f.write(data) with self.open(support.TESTFN, "r", encoding="utf-8") as f: f._CHUNK_SIZE f._CHUNK_SIZE = 2 f.readline() f.tell()
def test_seeking_too(self): # Regression test for a specific bug data = b'\xe0\xbf\xbf\n' f = self.open(support.TESTFN, "wb") f.write(data) f.close() f = self.open(support.TESTFN, "r", encoding="utf-8") f._CHUNK_SIZE # Just test that it exists f._CHUNK_SIZE = 2 f.readline() f.tell()
ebe5d8ae3b43f03a48aa02eb11862d234678a01f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/ebe5d8ae3b43f03a48aa02eb11862d234678a01f/test_io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 16508, 310, 67, 16431, 12, 2890, 4672, 468, 868, 2329, 285, 1842, 364, 279, 2923, 7934, 501, 273, 324, 8314, 6554, 20, 64, 6114, 74, 64, 6114, 74, 64, 82, 11, 284, 273, 365...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16508, 310, 67, 16431, 12, 2890, 4672, 468, 868, 2329, 285, 1842, 364, 279, 2923, 7934, 501, 273, 324, 8314, 6554, 20, 64, 6114, 74, 64, 6114, 74, 64, 82, 11, 284, 273, 365...
BASELINE_SUFFIXES = ['.txt', '.png', '.checksum']
def LogDashedString(text, platform, logging_level=logging.INFO): """Log text message with dashes on both sides.""" msg = '%s: %s' % (text, platform) if len(msg) < 78: dashes = '-' * ((78 - len(msg)) / 2) msg = '%s %s %s' % (dashes, msg, dashes) if logging_level == logging.ERROR: logging.error(msg) elif logging_level ...
bde066cf969da31c2e385b05815f0a7b2fb63cba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/bde066cf969da31c2e385b05815f0a7b2fb63cba/rebaseline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1827, 40, 13912, 780, 12, 955, 16, 4072, 16, 2907, 67, 2815, 33, 11167, 18, 5923, 4672, 3536, 1343, 977, 883, 598, 25523, 603, 3937, 22423, 12123, 225, 1234, 273, 1995, 87, 30, 738, 87...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1827, 40, 13912, 780, 12, 955, 16, 4072, 16, 2907, 67, 2815, 33, 11167, 18, 5923, 4672, 3536, 1343, 977, 883, 598, 25523, 603, 3937, 22423, 12123, 225, 1234, 273, 1995, 87, 30, 738, 87...
verbose = True
logSys.set_loglevel(log4py.LOGLEVEL_VERBOSE)
def createDaemon(): """Detach a process from the controlling terminal and run it in the background as a daemon. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731 """ try: # Fork a child process so the parent can exit. This will return control # to the command line or shell. This is required so that the...
f0a01914acbd661a7ffa92b051597816095159bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12786/f0a01914acbd661a7ffa92b051597816095159bf/fail2ban.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12858, 13332, 3536, 17650, 279, 1207, 628, 326, 3325, 2456, 8651, 471, 1086, 518, 316, 326, 5412, 487, 279, 8131, 18, 225, 1062, 2207, 345, 7449, 18, 11422, 395, 340, 18, 832, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12858, 13332, 3536, 17650, 279, 1207, 628, 326, 3325, 2456, 8651, 471, 1086, 518, 316, 326, 5412, 487, 279, 8131, 18, 225, 1062, 2207, 345, 7449, 18, 11422, 395, 340, 18, 832, 19, ...
def WriteGLES2ImplementationImpl(self, func, file): """Overrriden from TypeHandler.""" pass
def WriteGLES2ImplementationImpl(self, func, file): """Overrriden from TypeHandler.""" pass
b4a937e280d5e05e48c8a7abf6caf1fdf5448b1b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/b4a937e280d5e05e48c8a7abf6caf1fdf5448b1b/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 43, 11386, 22, 13621, 2828, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 1342, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 43, 11386, 22, 13621, 2828, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
gobject.idle_add(self.ParseSettings) return True
gobject.idle_add (self.ParseSettings) return False
def Wait(self): if len(self.PluginList) == 0: return False gobject.idle_add(self.ParseSettings) return True
d41d2649e29df75d37782fcada647667abe8b68b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1272/d41d2649e29df75d37782fcada647667abe8b68b/Utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5838, 12, 2890, 4672, 309, 562, 12, 2890, 18, 3773, 682, 13, 422, 374, 30, 327, 1083, 225, 314, 1612, 18, 20390, 67, 1289, 261, 2890, 18, 3201, 2628, 13, 225, 327, 1083, 225, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5838, 12, 2890, 4672, 309, 562, 12, 2890, 18, 3773, 682, 13, 422, 374, 30, 327, 1083, 225, 314, 1612, 18, 20390, 67, 1289, 261, 2890, 18, 3201, 2628, 13, 225, 327, 1083, 225, 2, -100...
Returns a list of manifestitem names that are updates for
Returns a list of manifestitem names that are updates for
def lookForUpdates(manifestitem, cataloglist, installinfo): """ Looks for updates for a given manifest item that is either installed or scheduled to be installed. This handles not only specific application updates, but also updates that aren't simply later versions of the manifest item. For example, AdobeCameraRaw is a...
5350042f4ddfb098468c8d75b15dfa28757b9321 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6241/5350042f4ddfb098468c8d75b15dfa28757b9321/updatecheck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2324, 1290, 5121, 12, 14357, 1726, 16, 6222, 1098, 16, 3799, 1376, 4672, 3536, 10176, 87, 364, 4533, 364, 279, 864, 5643, 761, 716, 353, 3344, 5876, 578, 9755, 358, 506, 5876, 18, 1220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2324, 1290, 5121, 12, 14357, 1726, 16, 6222, 1098, 16, 3799, 1376, 4672, 3536, 10176, 87, 364, 4533, 364, 279, 864, 5643, 761, 716, 353, 3344, 5876, 578, 9755, 358, 506, 5876, 18, 1220, ...
imgdata = self.rescaleOriginal(value, **kwargs)
data = self.rescaleOriginal(value, **kwargs)
def set(self, instance, value, **kwargs): if not value: return
809657aff1e48a9eb15209837cdae668475834bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/809657aff1e48a9eb15209837cdae668475834bc/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 791, 16, 460, 16, 2826, 4333, 4672, 309, 486, 460, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 791, 16, 460, 16, 2826, 4333, 4672, 309, 486, 460, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def _loadPickle(self,fname):
def _loadPickle(self, fileName):
def _loadPickle(self,fname): '''Load data from a file in pickle format.''' f = open(fname,'rb') newStore = cPickle.load(f) #this should also work for derived classes self.__dict__ = newStore.__dict__ #copy the (all) data attributes f.close()
45268ff49ddb4f963530947d7202a5e0642e2fda /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2720/45268ff49ddb4f963530947d7202a5e0642e2fda/storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 945, 17968, 298, 12, 2890, 16, 3968, 4672, 9163, 2563, 501, 628, 279, 585, 316, 13379, 740, 1093, 6309, 284, 273, 1696, 12, 12749, 11189, 6731, 6134, 394, 2257, 273, 276, 17968, 298...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 945, 17968, 298, 12, 2890, 16, 3968, 4672, 9163, 2563, 501, 628, 279, 585, 316, 13379, 740, 1093, 6309, 284, 273, 1696, 12, 12749, 11189, 6731, 6134, 394, 2257, 273, 276, 17968, 298...
this = apply(_quickfix.new_PriorityIndicator, args)
this = _quickfix.new_PriorityIndicator(*args)
def __init__(self, *args): this = apply(_quickfix.new_PriorityIndicator, 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, 8183, 13140, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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, 8183, 13140, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, ...
method(self)
visitor.dispatch_visit(self, self.__class__.__name__)
def walkabout(self, visitor): """ Perform a tree traversal similarly to `Node.walk()` (which see), except also call ``depart_...`` methods before exiting each node. If there is no ``depart_particular_node`` method for a node of type ``particular_node``, the ``unknown_departure`` method is called.
5f61b1a9b47ca28d544232f9f82b373f45fe9d32 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/5f61b1a9b47ca28d544232f9f82b373f45fe9d32/nodes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5442, 21071, 12, 2890, 16, 8000, 4672, 3536, 11217, 279, 2151, 15940, 7281, 715, 358, 1375, 907, 18, 11348, 20338, 261, 12784, 2621, 3631, 1335, 2546, 745, 12176, 323, 2680, 67, 2777, 1033...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5442, 21071, 12, 2890, 16, 8000, 4672, 3536, 11217, 279, 2151, 15940, 7281, 715, 358, 1375, 907, 18, 11348, 20338, 261, 12784, 2621, 3631, 1335, 2546, 745, 12176, 323, 2680, 67, 2777, 1033...
with closing(self.browser.open_novisit(url, timeout=self.timeout)) as f:
open_func = getattr(self.browser, 'open_novisit', self.browser.open) with closing(open_func(url, timeout=self.timeout)) as f:
def fetch_url(self, url): data = None self.log.debug('Fetching', url) delta = time.time() - self.last_fetch_at if delta < self.delay: time.sleep(delta) if re.search(r'\s+|,', url) is not None: purl = list(urlparse.urlparse(url)) for i in range(2, 6): purl[i] = quote(purl[i]) url = urlparse.urlunparse(purl) try: with c...
611231ea59272ffb671a324fe20df574dbc5eebd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/611231ea59272ffb671a324fe20df574dbc5eebd/simple.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2158, 67, 718, 12, 2890, 16, 880, 4672, 501, 273, 599, 365, 18, 1330, 18, 4148, 2668, 30806, 2187, 880, 13, 3622, 273, 813, 18, 957, 1435, 300, 365, 18, 2722, 67, 5754, 67, 270, 309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2158, 67, 718, 12, 2890, 16, 880, 4672, 501, 273, 599, 365, 18, 1330, 18, 4148, 2668, 30806, 2187, 880, 13, 3622, 273, 813, 18, 957, 1435, 300, 365, 18, 2722, 67, 5754, 67, 270, 309,...
token = self.query.get('token', '')
token = request['query'].get('token', '')
def do_process(self): """Handle the redirect from the OpenID server. """ oidconsumer = self.oidconsumer
3613973e0dba8bc750646a30918b4dc7828ea1b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/3613973e0dba8bc750646a30918b4dc7828ea1b1/open_id.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2567, 12, 2890, 4672, 3536, 3259, 326, 3136, 628, 326, 25781, 1438, 18, 3536, 7764, 13230, 273, 365, 18, 839, 13230, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2567, 12, 2890, 4672, 3536, 3259, 326, 3136, 628, 326, 25781, 1438, 18, 3536, 7764, 13230, 273, 365, 18, 839, 13230, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
args = args[1:]
del args[0]
def get_spig(arg, args): if arg == "pi": return spigot(3, 4, pi_matrix) elif arg == "e": return spigot(0, 2, e_matrix) elif arg == "phi": return spigot(1, 2, phi_matrix) elif arg == "root": if len(args) > 0: radicand = args[0] del args[0] else: sys.stderr.write("input type 'root' requires an argument\n") sys.exit(1) ra...
6925ecc67fae0690ed0577a81909ce96855b6771 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7420/6925ecc67fae0690ed0577a81909ce96855b6771/spigot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1752, 360, 12, 3175, 16, 833, 4672, 309, 1501, 422, 315, 7259, 6877, 327, 1694, 360, 352, 12, 23, 16, 1059, 16, 4790, 67, 5667, 13, 1327, 1501, 422, 315, 73, 6877, 327, 1694...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1752, 360, 12, 3175, 16, 833, 4672, 309, 1501, 422, 315, 7259, 6877, 327, 1694, 360, 352, 12, 23, 16, 1059, 16, 4790, 67, 5667, 13, 1327, 1501, 422, 315, 73, 6877, 327, 1694...
def check_cgc(CGC): if not os.path.exists(CGC): print >>sys.stderr, CGC+' is not found, use --cgc option to specify its'
def check_cgc(cgc_path): if not os.path.exists(cgc_path): print >>sys.stderr, (cgc_path + ' is not found, use --cgc option to specify its')
def check_cgc(CGC): if not os.path.exists(CGC): print >>sys.stderr, CGC+' is not found, use --cgc option to specify its' print >>sys.stderr, 'location. You may need to install nvidia cg toolkit.' sys.exit(1)
2a3a06654561be5d0a871c950e7a791bea57bb75 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/2a3a06654561be5d0a871c950e7a791bea57bb75/convert.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 71, 13241, 12, 71, 13241, 67, 803, 4672, 309, 486, 1140, 18, 803, 18, 1808, 12, 71, 13241, 67, 803, 4672, 1172, 1671, 9499, 18, 11241, 16, 261, 71, 13241, 67, 803, 397, 296,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 71, 13241, 12, 71, 13241, 67, 803, 4672, 309, 486, 1140, 18, 803, 18, 1808, 12, 71, 13241, 67, 803, 4672, 1172, 1671, 9499, 18, 11241, 16, 261, 71, 13241, 67, 803, 397, 296,...
Using `savez` with \\*args, the arrays are saved with default names.
Using `savez` with *args, the arrays are saved with default names.
def savez(file, *args, **kwds): """ Save several arrays into a single, archive file in ``.npz`` format. If arguments are passed in with no keywords, the corresponding variable names, in the .npz file, are 'arr_0', 'arr_1', etc. If keyword arguments are given, the corresponding variable names, in the ``.npz`` file will...
8630830bb05bd13aab0fcd869c8339c1515460de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/8630830bb05bd13aab0fcd869c8339c1515460de/npyio.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 94, 12, 768, 16, 380, 1968, 16, 2826, 25577, 4672, 3536, 7074, 11392, 5352, 1368, 279, 2202, 16, 5052, 585, 316, 1375, 8338, 6782, 94, 10335, 740, 18, 225, 971, 1775, 854, 2275, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1923, 94, 12, 768, 16, 380, 1968, 16, 2826, 25577, 4672, 3536, 7074, 11392, 5352, 1368, 279, 2202, 16, 5052, 585, 316, 1375, 8338, 6782, 94, 10335, 740, 18, 225, 971, 1775, 854, 2275, ...
if skin_name == "No Selection Made":
if skin_name == "No Selection Made":
def get_mobile_skin_name(site, request): """ @return: Mobile theme name for a Plone site object """ properties = site.portal_properties if hasattr(properties, "mobile_properties"): # Plone Mobile quickinstaller has been run # and we have mobile theme specifc files registeed mobile_properties = properties.mobile_prop...
96ab5b60f3acc0d0bb8d77001d241b0fe2136956 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10164/96ab5b60f3acc0d0bb8d77001d241b0fe2136956/monkeypatch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 18386, 67, 7771, 267, 67, 529, 12, 4256, 16, 590, 4672, 3536, 632, 2463, 30, 20428, 5006, 508, 364, 279, 3008, 476, 2834, 733, 3536, 225, 1790, 273, 2834, 18, 24386, 67, 4738,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 18386, 67, 7771, 267, 67, 529, 12, 4256, 16, 590, 4672, 3536, 632, 2463, 30, 20428, 5006, 508, 364, 279, 3008, 476, 2834, 733, 3536, 225, 1790, 273, 2834, 18, 24386, 67, 4738,...
self.disconnect(self._padd_hid) self.disconnect(self._prem_hid)
def _remove_functions(self): self._setup_done = False for name in self._proxy_names: delattr(self, name) self._proxy_names = [] self._ins = None
4b6b08e81d1083e4456ceda350354402e9c578bb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6471/4b6b08e81d1083e4456ceda350354402e9c578bb/insproxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4479, 67, 10722, 12, 2890, 4672, 365, 6315, 8401, 67, 8734, 273, 1083, 364, 508, 316, 365, 6315, 5656, 67, 1973, 30, 1464, 1747, 12, 2890, 16, 508, 13, 365, 6315, 5656, 67, 1973, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 4479, 67, 10722, 12, 2890, 4672, 365, 6315, 8401, 67, 8734, 273, 1083, 364, 508, 316, 365, 6315, 5656, 67, 1973, 30, 1464, 1747, 12, 2890, 16, 508, 13, 365, 6315, 5656, 67, 1973, ...
size = self.footprint//np.nbytes[np.float]
size = self.footprint//np.nbytes[self.dtype]
def setUp(self): UTConversionDataArrayNumPy.setUp(self) size = self.footprint//np.nbytes[np.float] self.shape = (size//3, 3)
88b603ff621e2ad746a5d41f5fd968d468f8b565 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1380/88b603ff621e2ad746a5d41f5fd968d468f8b565/vtk_data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 4732, 6814, 751, 1076, 2578, 9413, 18, 542, 1211, 12, 2890, 13, 963, 273, 365, 18, 10923, 1188, 759, 6782, 18, 82, 3890, 63, 2890, 18, 8972, 65, 365, 18, 4867, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 4732, 6814, 751, 1076, 2578, 9413, 18, 542, 1211, 12, 2890, 13, 963, 273, 365, 18, 10923, 1188, 759, 6782, 18, 82, 3890, 63, 2890, 18, 8972, 65, 365, 18, 4867, ...
if pyfile.package.data["id"] or pid: self.list.packager.pushPackage2Queue(pyfile.package.data["id"] or pid)
def jobFinished(self, pyfile): """manage completing download""" self.lock.acquire()
99aba5bf50874a1040964d69e08111cb2707d3c7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/99aba5bf50874a1040964d69e08111cb2707d3c7/ThreadManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1719, 10577, 12, 2890, 16, 2395, 768, 4672, 3536, 12633, 2302, 310, 4224, 8395, 365, 18, 739, 18, 1077, 1039, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1719, 10577, 12, 2890, 16, 2395, 768, 4672, 3536, 12633, 2302, 310, 4224, 8395, 365, 18, 739, 18, 1077, 1039, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
def _insert(self, something): "Insert some text. We might deprecate this interface!" self.widget.insert(something)
def _append(self, something): "Append some text. We might deprecate this interface!" self.widget.append(something) self.widget.scrollToBottom()
def _insert(self, something): "Insert some text. We might deprecate this interface!" self.widget.insert(something)
c555aeae1edba3b50309a5fcff9df49485b9e013 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/c555aeae1edba3b50309a5fcff9df49485b9e013/HistoryMegawidget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6387, 12, 2890, 16, 5943, 4672, 315, 4600, 2690, 977, 18, 1660, 4825, 443, 29246, 333, 1560, 4442, 365, 18, 6587, 18, 6387, 12, 30289, 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, 389, 6387, 12, 2890, 16, 5943, 4672, 315, 4600, 2690, 977, 18, 1660, 4825, 443, 29246, 333, 1560, 4442, 365, 18, 6587, 18, 6387, 12, 30289, 13, 2, -100, -100, -100, -100, -100, -100, -...
if image.width > self.max_size[0] or \ image.height > self.max_size[1]:
if image.width > self.max_size[0] or image.height > self.max_size[1]:
def set(self, instance, value, **kwargs): # Do we have to delete the image? if value=="DELETE_IMAGE": ObjectField.set(self, instance, None, **kwargs) return
6c49241026527d58ec33dad69b98fdf197a65ae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/6c49241026527d58ec33dad69b98fdf197a65ae4/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 791, 16, 460, 16, 2826, 4333, 4672, 468, 2256, 732, 1240, 358, 1430, 326, 1316, 35, 309, 460, 31713, 6460, 67, 13603, 6877, 1033, 974, 18, 542, 12, 2890, 16, 791, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 12, 2890, 16, 791, 16, 460, 16, 2826, 4333, 4672, 468, 2256, 732, 1240, 358, 1430, 326, 1316, 35, 309, 460, 31713, 6460, 67, 13603, 6877, 1033, 974, 18, 542, 12, 2890, 16, 791, ...
url, body = url.split("?")
url, body = url.split("?") ct = 'application/x-www-form-urlencoded' headers['content-type'] = ct + '; charset=utf-8'
def _httpreq(self, service_path, method='GET', body=None, form=None, headers=None): """ make an http request to the service. form arguments are encoded in the url, even for POST, if a non-form content-type is given for the body. returns a pair (resp, body) resp is the response object and may be different depending o...
04c3782c6ed7da33bdd8b37e8902e5a90648abac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11603/04c3782c6ed7da33bdd8b37e8902e5a90648abac/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2022, 1484, 85, 12, 2890, 16, 1156, 67, 803, 16, 707, 2218, 3264, 2187, 1417, 33, 7036, 16, 646, 33, 7036, 16, 1607, 33, 7036, 4672, 3536, 1221, 392, 1062, 590, 358, 326, 1156, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2022, 1484, 85, 12, 2890, 16, 1156, 67, 803, 16, 707, 2218, 3264, 2187, 1417, 33, 7036, 16, 646, 33, 7036, 16, 1607, 33, 7036, 4672, 3536, 1221, 392, 1062, 590, 358, 326, 1156, ...
"""Remove a lock. Useful if a locking thread failed to unlock. >>> lock = FileLock(_testfile()) >>> lock.acquire() >>> lock2 = FileLock(_testfile()) >>> lock2.is_locked() True >>> lock2.break_lock() >>> lock2.is_locked() False >>> try: ... lock.release() ... except NotLocked: ... pass ... except Exception, e: ......
""" Remove a lock. Useful if a locking thread failed to unlock. """ raise NotImplemented("implement in subclass")
def break_lock(self): """Remove a lock. Useful if a locking thread failed to unlock.
4d7069c0b1e38967a5ca43aa3218600793f56c5b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11515/4d7069c0b1e38967a5ca43aa3218600793f56c5b/lockfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 898, 67, 739, 12, 2890, 4672, 3536, 3288, 279, 2176, 18, 225, 19256, 309, 279, 18887, 2650, 2535, 358, 7186, 18, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 898, 67, 739, 12, 2890, 4672, 3536, 3288, 279, 2176, 18, 225, 19256, 309, 279, 18887, 2650, 2535, 358, 7186, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
print >> sys.stderr, abcs
def dash_R(the_module, test, indirect_test, huntrleaks): # This code is hackish and inelegant, but it seems to do the job. import copy_reg, _abcoll if not hasattr(sys, 'gettotalrefcount'): raise Exception("Tracking reference leaks requires a debug build " "of Python") # Save current values for dash_R_cleanup() to res...
ec76da8827ddb54210f8548f5e098cf10ad67c0d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/ec76da8827ddb54210f8548f5e098cf10ad67c0d/regrtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12558, 67, 54, 12, 5787, 67, 2978, 16, 1842, 16, 16807, 67, 3813, 16, 366, 318, 313, 298, 581, 87, 4672, 468, 1220, 981, 353, 11769, 1468, 471, 316, 13451, 970, 16, 1496, 518, 12001, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12558, 67, 54, 12, 5787, 67, 2978, 16, 1842, 16, 16807, 67, 3813, 16, 366, 318, 313, 298, 581, 87, 4672, 468, 1220, 981, 353, 11769, 1468, 471, 316, 13451, 970, 16, 1496, 518, 12001, ...
sites = Sites(self.api, [site_id_or_abbrev_name], Site.all_fields) if not sites :
sites = Sites(self.api, [site_id_or_login_base]) if not sites:
def call(self, auth, site_id_or_abbrev_name, update_fields):
622cf139ee4c246aea624dd40b56419a640a25b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/622cf139ee4c246aea624dd40b56419a640a25b1/AdmUpdateSite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 12, 2890, 16, 1357, 16, 2834, 67, 350, 67, 280, 67, 378, 27216, 67, 529, 16, 1089, 67, 2821, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 12, 2890, 16, 1357, 16, 2834, 67, 350, 67, 280, 67, 378, 27216, 67, 529, 16, 1089, 67, 2821, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
gMonitor.registerActivity("Iteration", "Agent Loops", "RemovalAgent", "Loops/min", gMonitor.OP_SUM) gMonitor.registerActivity("Execute", "Request Processed", "RemovalAgent", "Requests/min", gMonitor.OP_SUM) gMonitor.registerActivity("Done", ...
gMonitor.registerActivity( "Iteration", "Agent Loops", "RemovalAgent", "Loops/min", gMonitor.OP_SUM ) gMonitor.registerActivity( "Execute", "Request Processed", "RemovalAgent", "Requests/min", gMonitor.OP_SUM ) gMonitor.registerActivity( "Done", "Request Completed", "RemovalAgent", "Requests/min", gMonitor.OP_SUM ) gM...
def initialize(self):
639c184ef75c7730d44d5168750f1731c63bf98b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/639c184ef75c7730d44d5168750f1731c63bf98b/RemovalAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
os.makedirs(foldername, 0700)
if os.path.isdir(foldername): for subdir in ['cur', 'new', 'tmp']: assert not os.path.isdir(os.path.join(foldername, subdir)), \ "Tried to create folder %s but it already had dir %s" %\ (foldername, subdir) else: os.makedirs(foldername, 0700)
def makefolder(self, foldername): # Do the chdir thing so the call to makedirs does not make the # self.root directory (we'd prefer to raise an error in that case), # but will make the (relative) paths underneath it. Need to use # makedirs to support a / separator. if self.getsep() == '/': for invalid in ['new', 'cur'...
29d64f7dbe4bb8297774c01ad823fcd6f523a380 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5335/29d64f7dbe4bb8297774c01ad823fcd6f523a380/Maildir.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 5609, 12, 2890, 16, 3009, 529, 4672, 468, 2256, 326, 14029, 7757, 1427, 326, 745, 358, 12151, 1552, 486, 1221, 326, 468, 365, 18, 3085, 1867, 261, 1814, 14271, 13256, 358, 1002, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 5609, 12, 2890, 16, 3009, 529, 4672, 468, 2256, 326, 14029, 7757, 1427, 326, 745, 358, 12151, 1552, 486, 1221, 326, 468, 365, 18, 3085, 1867, 261, 1814, 14271, 13256, 358, 1002, 39...
clist = [] for aliases, table_e in choice: if aliases[0].startswith(cmd): clist.append(aliases[0]) for a in aliases[1:]: if a.startswith(cmd) and not aliases[0].startswith(a): clist.append(a)
clist = choice.keys()
def find(cmd): """Return (aliases, command table entry) for command string.""" choice = [] debugchoice = [] for e in table.keys(): aliases = e.lstrip("^").split("|") if cmd in aliases: return aliases, table[e] for a in aliases: if a.startswith(cmd): if aliases[0].startswith("debug"): debugchoice.append([aliases, table[...
2f91110ed2b019bb5294f56ed72354c1cd7bf6fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/2f91110ed2b019bb5294f56ed72354c1cd7bf6fb/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 12, 4172, 4672, 3536, 990, 261, 13831, 16, 1296, 1014, 1241, 13, 364, 1296, 533, 12123, 6023, 273, 5378, 1198, 11569, 273, 5378, 364, 425, 316, 1014, 18, 2452, 13332, 6900, 273, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 12, 4172, 4672, 3536, 990, 261, 13831, 16, 1296, 1014, 1241, 13, 364, 1296, 533, 12123, 6023, 273, 5378, 1198, 11569, 273, 5378, 364, 425, 316, 1014, 18, 2452, 13332, 6900, 273, 42...
builds_to_delete.append(build)
self.log.info('Scheduling build of configuration "%s" at ' 'revision [%s] on %r for deletion', config.name, rev, platform.name) builds_to_delete.append(build)
def get_build_for_slave(self, name, properties): """Check whether one of the pending builds can be built by the build slave. :param name: the name of the slave :type name: `basestring` :param properties: the slave configuration :type properties: `dict` :return: the allocated build, or `None` if no build was found :rty...
e2d25a68fff43a3f77eb2cea84a8b1fd1aeeb56d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4547/e2d25a68fff43a3f77eb2cea84a8b1fd1aeeb56d/queue.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3510, 67, 1884, 67, 27352, 12, 2890, 16, 508, 16, 1790, 4672, 3536, 1564, 2856, 1245, 434, 326, 4634, 10736, 848, 506, 6650, 635, 326, 1361, 11735, 18, 225, 294, 891, 508, 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, 336, 67, 3510, 67, 1884, 67, 27352, 12, 2890, 16, 508, 16, 1790, 4672, 3536, 1564, 2856, 1245, 434, 326, 4634, 10736, 848, 506, 6650, 635, 326, 1361, 11735, 18, 225, 294, 891, 508, 30,...
paramList["title"] = obj.getTitle().encode('utf-8')
paramList["title"] = obj.getTitle()
def videoBombExternally(self, item): obj = db.getObjectByID(int(item)) paramList = {} paramList["title"] = obj.getTitle().encode('utf-8') paramList["info_url"] = obj.getLink() paramList["hookup_url"] = obj.getPaymentLink() try: rss_url = obj.getFeed().getURL() if (not rss_url.startswith(u'dtv:')): paramList["rss_url"] ...
4dfe2a61c28f9e027aa86371e5c535aa3d042134 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/4dfe2a61c28f9e027aa86371e5c535aa3d042134/app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6191, 38, 16659, 29764, 1230, 12, 2890, 16, 761, 4672, 1081, 273, 1319, 18, 588, 921, 13331, 12, 474, 12, 1726, 3719, 579, 682, 273, 2618, 579, 682, 9614, 2649, 11929, 273, 1081, 18, 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, 6191, 38, 16659, 29764, 1230, 12, 2890, 16, 761, 4672, 1081, 273, 1319, 18, 588, 921, 13331, 12, 474, 12, 1726, 3719, 579, 682, 273, 2618, 579, 682, 9614, 2649, 11929, 273, 1081, 18, 5...
None,
# typedef void (*lc_callback)(uint32_t, uint32_t, uint32_t, void*);
252469d959d952d07c6c2b796be96c97a8628abc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3138/252469d959d952d07c6c2b796be96c97a8628abc/libconcord.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 618, 536, 918, 261, 14, 17704, 67, 3394, 21433, 11890, 1578, 67, 88, 16, 2254, 1578, 67, 88, 16, 2254, 1578, 67, 88, 16, 918, 14, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 468, 618, 536, 918, 261, 14, 17704, 67, 3394, 21433, 11890, 1578, 67, 88, 16, 2254, 1578, 67, 88, 16, 2254, 1578, 67, 88, 16, 918, 14, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -1...
gl.mapcolor(index, r, g, b)
map.append(index, r, g, b)
def _initcmap(self): if self.format in ('mono', 'grey4') and self.mustunpack: convcolor = conv_grey else: convcolor = choose_conversion(self.format) maxbits = gl.getgdesc(GL.GD_BITS_NORM_SNG_CMODE) if maxbits > 11: maxbits = 11 c0bits = self.c0bits c1bits = self.c1bits c2bits = self.c2bits if c0bits+c1bits+c2bits > max...
b1a5afa1c5e01fd8ca8c53cf97ce4b6d30a13ac8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b1a5afa1c5e01fd8ca8c53cf97ce4b6d30a13ac8/VFile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 22738, 12, 2890, 4672, 309, 365, 18, 2139, 316, 7707, 2586, 83, 2187, 296, 11556, 93, 24, 6134, 471, 365, 18, 11926, 17309, 30, 6292, 3266, 273, 6292, 67, 11556, 93, 469, 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, 2738, 22738, 12, 2890, 4672, 309, 365, 18, 2139, 316, 7707, 2586, 83, 2187, 296, 11556, 93, 24, 6134, 471, 365, 18, 11926, 17309, 30, 6292, 3266, 273, 6292, 67, 11556, 93, 469, 30...
print "Select(\"%s\");" % glyph print "Clear();"
fout.write("Select(\"%s\");\n" % glyph) fout.write("Clear();\n")
def end_font(): global current_glyph_number global current_font_number global count for glyph in toremove: print "Select(\"%s\");" % glyph print "Clear();" if (current_font_number!=0): for glyph in initial_glyphs: print "Select(\"%s\");" % glyph print "Clear();" else: # we suppress empty glyphs for i in range(395-len(i...
da8d78f38ceb134d9ac1ea0c840479a1eadd3f2b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7096/da8d78f38ceb134d9ac1ea0c840479a1eadd3f2b/sqarize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 67, 5776, 13332, 2552, 783, 67, 19426, 67, 2696, 2552, 783, 67, 5776, 67, 2696, 2552, 1056, 364, 9440, 316, 358, 4479, 30, 17382, 18, 2626, 2932, 3391, 23031, 9, 87, 2412, 20472, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 679, 67, 5776, 13332, 2552, 783, 67, 19426, 67, 2696, 2552, 783, 67, 5776, 67, 2696, 2552, 1056, 364, 9440, 316, 358, 4479, 30, 17382, 18, 2626, 2932, 3391, 23031, 9, 87, 2412, 20472, ...
tx.setXPos(offset)
def _justifyDrawParaLineX( tx, offset, line, last=0): if last: #last one, left align tx.setXPos(offset) _putFragLine(tx, line.words) else: tx.setXPos(offset) nSpaces = line.wordCount - 1 if nSpaces: tx.setWordSpace(line.extraSpace / float(nSpaces)) _putFragLine(tx, line.words) tx.setWordSpace(0) else: _putFragLine(tx, ...
8f8ad2094f390b0f1bc05d368540a202a73fdeef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/8f8ad2094f390b0f1bc05d368540a202a73fdeef/paragraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3732, 1164, 6493, 23529, 1670, 60, 12, 2229, 16, 1384, 16, 980, 16, 1142, 33, 20, 4672, 309, 1142, 30, 468, 2722, 1245, 16, 2002, 5689, 389, 458, 19509, 1670, 12, 978, 16, 980, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3732, 1164, 6493, 23529, 1670, 60, 12, 2229, 16, 1384, 16, 980, 16, 1142, 33, 20, 4672, 309, 1142, 30, 468, 2722, 1245, 16, 2002, 5689, 389, 458, 19509, 1670, 12, 978, 16, 980, ...
xy_data_arrays = map(lambda g: [[g(x, y) for x in xsrange(*ranges[0], include_endpoint=True)] for y in xsrange(*ranges[1], include_endpoint=True)], g) xy_data_array = map(lambda *rows: map(lambda *vals: mangle_neg(vals), *rows), *xy_data_arrays)
xy_data_arrays = numpy.asarray([[[func(x, y) for x in xsrange(*ranges[0], include_endpoint=True)] for y in xsrange(*ranges[1], include_endpoint=True)] for func in g],dtype=float) xy_data_array=numpy.abs(xy_data_arrays.prod(axis=0)) neg_indices = (xy_data_arrays<0).all(axis=0) xy_data_array[neg_indices]=-xy_data_array...
def region_plot(f, xrange, yrange, plot_points, incol, outcol, bordercol, borderstyle, borderwidth): r""" ``region_plot`` takes a boolean function of two variables, `f(x,y)` and plots the region where f is True over the specified ``xrange`` and ``yrange`` as demonstrated below. ``region_plot(f, (xmin, xmax), (ymin, ym...
74c5cab11c38d207f9706bcaeba8f6b2cdf5d3b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/74c5cab11c38d207f9706bcaeba8f6b2cdf5d3b7/contour_plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3020, 67, 4032, 12, 74, 16, 12314, 16, 677, 3676, 16, 3207, 67, 4139, 16, 316, 1293, 16, 596, 1293, 16, 5795, 1293, 16, 5795, 4060, 16, 5795, 2819, 4672, 436, 8395, 12176, 6858, 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, 3020, 67, 4032, 12, 74, 16, 12314, 16, 677, 3676, 16, 3207, 67, 4139, 16, 316, 1293, 16, 596, 1293, 16, 5795, 1293, 16, 5795, 4060, 16, 5795, 2819, 4672, 436, 8395, 12176, 6858, 67, ...
'displayName' : cn, 'sn' : cn, 'cn' : cn,
'displayName' : str(cn).encode('utf8'), 'sn' : str(cn).encode('utf8'), 'cn' : str(cn).encode('utf8'),
def newPerson(self, cn, givenName, mail, telephoneNumber, postalAddress): ''' Create a new user ''' dt = datetime.datetime.now() now = '%.2i-%.2i-%.2i %.2i:%.2i:%.2i.%.2i' % (dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second, dt.microsecond) attributes = { 'cn' : cn, 'objectClass' : ('fedoraPerson', 'inetOrgPers...
da01ec3a79104df23a127ceac3e1101be0247b25 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9952/da01ec3a79104df23a127ceac3e1101be0247b25/fasLDAP.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 8346, 12, 2890, 16, 6227, 16, 864, 461, 16, 4791, 16, 268, 6516, 10540, 1854, 16, 30553, 1887, 4672, 9163, 1788, 279, 394, 729, 9163, 3681, 273, 3314, 18, 6585, 18, 3338, 1435, 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, 394, 8346, 12, 2890, 16, 6227, 16, 864, 461, 16, 4791, 16, 268, 6516, 10540, 1854, 16, 30553, 1887, 4672, 9163, 1788, 279, 394, 729, 9163, 3681, 273, 3314, 18, 6585, 18, 3338, 1435, 20...
StudentRegistration.objects.filter(section=self, end_date__gte=now).update(end_date=now)
qs = StudentRegistration.objects.filter(section=self, end_date__gte=now) qs.update(end_date=now) for reg in qs: signals.post_save.send(sender=StudentRegistration, instance=reg)
def clearStudents(self): from esp.program.models import StudentRegistration now = datetime.datetime.now() StudentRegistration.objects.filter(section=self, end_date__gte=now).update(end_date=now)
1af4aef373a2b174dfd7f35cccdcf2f97383915e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12041/1af4aef373a2b174dfd7f35cccdcf2f97383915e/class_.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2424, 19943, 4877, 12, 2890, 4672, 628, 5001, 84, 18, 12890, 18, 7665, 1930, 934, 1100, 319, 7843, 2037, 273, 3314, 18, 6585, 18, 3338, 1435, 934, 1100, 319, 7843, 18, 6911, 18, 2188, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2424, 19943, 4877, 12, 2890, 4672, 628, 5001, 84, 18, 12890, 18, 7665, 1930, 934, 1100, 319, 7843, 2037, 273, 3314, 18, 6585, 18, 3338, 1435, 934, 1100, 319, 7843, 18, 6911, 18, 2188, ...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 858) else quickfix.DoubleField.__init__(self, 858, 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, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 1725, 8204, 13, 469, 9549, 904, 18, 5265, 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, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 1725, 8204, 13, 469, 9549, 904, 18, 5265, 974, 16186, 2738, ...
else:
elif not buddy.startswith('sip:'):
def read_queue(account): global user_quit, lock, queue, xcap_client, service_uri lock.acquire() try: xcap_client = XCAPClient(account.xcap_root, account.id, password=account.password, auth=None) print 'Retrieving current RLS services from %s' % account.xcap_root get_rls_services() if show_xml and rls_services is not No...
733f12f30148651690ccba933e2fbf56485d5b11 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/733f12f30148651690ccba933e2fbf56485d5b11/xcap_rls_services.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 4000, 12, 4631, 4672, 2552, 729, 67, 27176, 16, 2176, 16, 2389, 16, 619, 5909, 67, 2625, 16, 1156, 67, 1650, 2176, 18, 1077, 1039, 1435, 775, 30, 619, 5909, 67, 2625, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 4000, 12, 4631, 4672, 2552, 729, 67, 27176, 16, 2176, 16, 2389, 16, 619, 5909, 67, 2625, 16, 1156, 67, 1650, 2176, 18, 1077, 1039, 1435, 775, 30, 619, 5909, 67, 2625, 273, 1...
sym = ncf.variables['UseSymmetry'][:]
sym = nc.variables['UseSymmetry'][:]
def get_symmetry(self): '''return the type of symmetry used''' nc = netCDF(self.nc,'r') if 'UseSymmetry' in nc.variables: sym = ncf.variables['UseSymmetry'][:] else: sym = None nc.close() return sym
33319abb7a7e499885d15fc2d8f13114bdf95a38 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5572/33319abb7a7e499885d15fc2d8f13114bdf95a38/jacapo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8117, 18042, 12, 2890, 4672, 9163, 2463, 326, 618, 434, 26144, 1399, 26418, 8194, 273, 2901, 39, 4577, 12, 2890, 18, 14202, 11189, 86, 6134, 309, 296, 3727, 11901, 18042, 11, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8117, 18042, 12, 2890, 4672, 9163, 2463, 326, 618, 434, 26144, 1399, 26418, 8194, 273, 2901, 39, 4577, 12, 2890, 18, 14202, 11189, 86, 6134, 309, 296, 3727, 11901, 18042, 11, 31...
for item in page._getContentsAndSupercats(newrecurse, purge):
for item in page._getContentsAndSupercats( newrecurse, purge, cache=cache):
def _getContentsAndSupercats(self, recurse=False, purge=False, startFrom=None, cache=[]): """ Cache results of _parseCategory for a second call.
5afb2f2f9cd7b97e901eba042ad6c30778279e51 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/5afb2f2f9cd7b97e901eba042ad6c30778279e51/catlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 6323, 1876, 8051, 24750, 12, 2890, 16, 11502, 33, 8381, 16, 11668, 33, 8381, 16, 787, 1265, 33, 7036, 16, 1247, 33, 8526, 4672, 3536, 4379, 1686, 434, 389, 2670, 4457, 364, 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, 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, 588, 6323, 1876, 8051, 24750, 12, 2890, 16, 11502, 33, 8381, 16, 11668, 33, 8381, 16, 787, 1265, 33, 7036, 16, 1247, 33, 8526, 4672, 3536, 4379, 1686, 434, 389, 2670, 4457, 364, 2...
tag_('Please review your configuration, ' 'probably starting with %(section)s ' 'in your %(tracini)s.', section = tag.pre('[ticket]', tag.br(), 'workflow = ...'), tracini = tag.tt('trac.ini')))
tag_("Please review your configuration, " "probably starting with %(section)s " "in your %(tracini)s.", section=tag.pre('[ticket]', tag.br(), 'workflow = ...'), tracini=tag.tt('trac.ini')))
def _process_ticket_request(self, req): id = int(req.args.get('id')) version = req.args.get('version', None) if version is not None: try: version = int(version) except ValueError: version = None
8a7505f666e8590328936fd32f0bc362d6e2a6a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/8a7505f666e8590328936fd32f0bc362d6e2a6a0/web_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 67, 16282, 67, 2293, 12, 2890, 16, 1111, 4672, 612, 273, 509, 12, 3658, 18, 1968, 18, 588, 2668, 350, 26112, 1177, 273, 1111, 18, 1968, 18, 588, 2668, 1589, 2187, 599, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 67, 16282, 67, 2293, 12, 2890, 16, 1111, 4672, 612, 273, 509, 12, 3658, 18, 1968, 18, 588, 2668, 350, 26112, 1177, 273, 1111, 18, 1968, 18, 588, 2668, 1589, 2187, 599, 13, ...
recombinator(rate = 0.4, convProb=1, convParam=2, loci=[1,3]) ] )
recombinator(rate = 0.4, convProb=1, convParam=2, loci=[1,3]) ], gen=1 )
def testConversionRate(self): 'Testing to see if we actually convert at this rate ' a1, a2 = 0, 1 pop = population(10000, loci=[3,4]) InitByValue(pop, value=[a1]*7+[a2]*7) simu = simulator(pop, randomMating()) rec = recombinator(rate = 0.4, convProb=1, loci=[1,3], convParam=1) simu.step( [ stat( haploFreq = [[0,1], [1,...
baf037833eb6d8e211103acc78e7dc0ee60aed65 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/401/baf037833eb6d8e211103acc78e7dc0ee60aed65/test_14_recombination.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 6814, 4727, 12, 2890, 4672, 296, 22218, 358, 2621, 309, 732, 6013, 1765, 622, 333, 4993, 296, 279, 21, 16, 279, 22, 273, 374, 16, 404, 1843, 273, 11209, 12, 23899, 16, 1515, 77, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6814, 4727, 12, 2890, 4672, 296, 22218, 358, 2621, 309, 732, 6013, 1765, 622, 333, 4993, 296, 279, 21, 16, 279, 22, 273, 374, 16, 404, 1843, 273, 11209, 12, 23899, 16, 1515, 77, ...
self.env.doc2path(objects[name][0]),
self.env.doc2path(objects[key]),
def add_target_and_index(self, name, sig, signode): if name not in self.state.document.ids: signode['names'].append(name) signode['ids'].append(name) signode['first'] = (not self.names) self.state.document.note_explicit_target(signode)
8848faea55e18663fe95d1b3d8e897863f1a11d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7032/8848faea55e18663fe95d1b3d8e897863f1a11d2/rst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 3299, 67, 464, 67, 1615, 12, 2890, 16, 508, 16, 3553, 16, 1573, 390, 4672, 309, 508, 486, 316, 365, 18, 2019, 18, 5457, 18, 2232, 30, 1573, 390, 3292, 1973, 29489, 6923, 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, 527, 67, 3299, 67, 464, 67, 1615, 12, 2890, 16, 508, 16, 3553, 16, 1573, 390, 4672, 309, 508, 486, 316, 365, 18, 2019, 18, 5457, 18, 2232, 30, 1573, 390, 3292, 1973, 29489, 6923, 12,...
SST, SSR = numpy.sum((y - muY) ** 2), numpy.sum((yEstimated - muY) ** 2) SSE, RSquare = SST-SSR, SSR/SST R = numpy.sqrt(RSquare) RAdjusted = 1 - (1 - RSquare) * (n - 1) / (n - m - 1) F = (SSR / m) / (SST - SSR / (n - m - 1)) df = m - 1 sigmaSquare = SSE / (n-m-1)
self.SST, self.SSR = numpy.sum((y - self.muY) ** 2), numpy.sum((yhat - self.muY) ** 2) self.SSE, self.RSquare = self.SST - self.SSR, self.SSR / self.SST self.R = numpy.sqrt(self.RSquare) self.RAdjusted = 1 - (1 - self.RSquare) * (n - 1) / (n - m - 1) self.F = (self.SSR / m) / (self.SST - self.SSR / (n - m - 1)) self.df...
def __call__(self, data, weight=None): # missing values handling (impute missing) imputer = orange.ImputerConstructor_model() imputer.learnerContinuous = orange.MajorityLearner() imputer.learnerDiscrete = orange.BayesLearner() imputer = imputer(data) data = imputer(data)
2f0d6c2e9c037aae88c832940eb40e18d9619a80 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/2f0d6c2e9c037aae88c832940eb40e18d9619a80/orngRegression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 501, 16, 3119, 33, 7036, 4672, 468, 3315, 924, 5057, 261, 381, 2507, 3315, 13, 709, 458, 264, 273, 578, 726, 18, 1170, 458, 264, 6293, 67, 2284, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1991, 972, 12, 2890, 16, 501, 16, 3119, 33, 7036, 4672, 468, 3315, 924, 5057, 261, 381, 2507, 3315, 13, 709, 458, 264, 273, 578, 726, 18, 1170, 458, 264, 6293, 67, 2284, 1435, ...
if orngDebugging.orngDebuggingEnabled: self.debugFile = open(orngDebugging.orngDebuggingFileName, "wt") sys.excepthook = self.exceptionHandler sys.stderr = self.debugFile
def __init__(self, *args): self.debugFile = None self.verbosity = orngDebugging.orngVerbosity self.stderr = sys.stderr self._seenExceptions = {} #self.stdout = sys.stdout if orngDebugging.orngDebuggingEnabled: self.debugFile = open(orngDebugging.orngDebuggingFileName, "wt") sys.excepthook = self.exceptionHandler sys.st...
c325c998865400045e37c3c3ae2df06746e28713 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2658/c325c998865400045e37c3c3ae2df06746e28713/orngSignalManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 365, 18, 4148, 812, 273, 599, 365, 18, 16629, 8807, 273, 578, 3368, 2829, 1998, 18, 280, 3368, 30594, 365, 18, 11241, 273, 2589, 18, 112...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 380, 1968, 4672, 365, 18, 4148, 812, 273, 599, 365, 18, 16629, 8807, 273, 578, 3368, 2829, 1998, 18, 280, 3368, 30594, 365, 18, 11241, 273, 2589, 18, 112...
if not package.readDescFile():
if not package.readDescFile(doProcessing = False):
def readPackageDescFile(self, descFilename): """ Reads a desc file associated with a particular package, and adds the package to self.packages. Returns the Package object, or None on failure. """
6b0f19f13eaefba82c196a0b6b9074980a4bdbba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/6b0f19f13eaefba82c196a0b6b9074980a4bdbba/PatchMaker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 2261, 4217, 812, 12, 2890, 16, 3044, 5359, 4672, 3536, 29185, 279, 3044, 585, 3627, 598, 279, 6826, 2181, 16, 471, 4831, 326, 2181, 358, 365, 18, 10308, 18, 225, 2860, 326, 7508, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 855, 2261, 4217, 812, 12, 2890, 16, 3044, 5359, 4672, 3536, 29185, 279, 3044, 585, 3627, 598, 279, 6826, 2181, 16, 471, 4831, 326, 2181, 358, 365, 18, 10308, 18, 225, 2860, 326, 7508, ...
"""Coercion from the base ring.
""" Coercion from the base ring.
def _coerce_impl(self, x): """Coercion from the base ring. EXAMPLES: sage: R = WeylCharacterRing(['G',2]) sage: 2 in R True """ if x in self._base_ring: return self.__call__(x) raise TypeError, "no canonical coercion of x"
0a30ee9b10542e4dc66149f6ffe87504cb679b84 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0a30ee9b10542e4dc66149f6ffe87504cb679b84/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2894, 2765, 67, 11299, 12, 2890, 16, 619, 4672, 3536, 7695, 12610, 285, 628, 326, 1026, 9221, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 534, 273, 678, 402, 80, 7069, 10369, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2894, 2765, 67, 11299, 12, 2890, 16, 619, 4672, 3536, 7695, 12610, 285, 628, 326, 1026, 9221, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 534, 273, 678, 402, 80, 7069, 10369, 12...
return self.msg
return self.headers
def info(self): return self.msg
481fa18e5223136b5a882a755e68fec724cbabb7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7001/481fa18e5223136b5a882a755e68fec724cbabb7/keepalive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1123, 12, 2890, 4672, 327, 365, 18, 3576, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1123, 12, 2890, 4672, 327, 365, 18, 3576, 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,...
child = self.endDim()
self.endDim()
def endElement(self, name): if name == AdcData.tagName: child = self.endAdcData() elif name == AdcInterval.tagName: child = self.endAdcInterval() elif name == Array.tagName: child = self.endArray() elif name == Column.tagName: child = self.endColumn() elif name == Comment.tagName: child = self.endComment() elif name ==...
19c70d9d2433f3385423e26af544f557b0c477a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/19c70d9d2433f3385423e26af544f557b0c477a4/ligolw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14840, 12, 2890, 16, 508, 4672, 309, 508, 422, 4052, 71, 751, 18, 2692, 461, 30, 1151, 273, 365, 18, 409, 1871, 71, 751, 1435, 1327, 508, 422, 4052, 71, 4006, 18, 2692, 461, 30, 1151...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14840, 12, 2890, 16, 508, 4672, 309, 508, 422, 4052, 71, 751, 18, 2692, 461, 30, 1151, 273, 365, 18, 409, 1871, 71, 751, 1435, 1327, 508, 422, 4052, 71, 4006, 18, 2692, 461, 30, 1151...
cm=ContentMetadata(elem, top)
cm=ContentMetadata(elem, top, self)
def __init__(self,url,xml): self.version='1.1.0' self.url = url # initialize from saved capability document or access the server reader = WCSCapabilitiesReader(self.version) if xml: self._capabilities = reader.readString(xml) else: self._capabilities = reader.read(self.url) #build metadata objects: #serviceIdentifica...
643f2979a6c0e34743fd82e849861f7a49844533 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11708/643f2979a6c0e34743fd82e849861f7a49844533/wcs110.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 718, 16, 2902, 4672, 365, 18, 1589, 2218, 21, 18, 21, 18, 20, 11, 365, 18, 718, 273, 880, 468, 4046, 628, 5198, 12593, 1668, 578, 2006, 326, 1438, 2949...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 718, 16, 2902, 4672, 365, 18, 1589, 2218, 21, 18, 21, 18, 20, 11, 365, 18, 718, 273, 880, 468, 4046, 628, 5198, 12593, 1668, 578, 2006, 326, 1438, 2949...
if time:
if time:
def servermsg(self, time, what, text): """Output a generic server message.
6676e2400f0ca3479cc06dc09d9e8288ea884518 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9464/6676e2400f0ca3479cc06dc09d9e8288ea884518/irclog2html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1438, 3576, 12, 2890, 16, 813, 16, 4121, 16, 977, 4672, 3536, 1447, 279, 5210, 1438, 883, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1438, 3576, 12, 2890, 16, 813, 16, 4121, 16, 977, 4672, 3536, 1447, 279, 5210, 1438, 883, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
sage: R = RealField() sage: srange(1,5,R('0.5'))
sage: srange(1, 5, 0.5)
def srange(start, end=None, step=1, universe=None, check=True, include_endpoint=False): r""" Return list of numbers \code{a, a+step, ..., a+k*step}, where \code{a+k*step < b} and \code{a+(k+1)*step > b}. This provides one way to iterate over Sage integers as opposed to Python int's. It also allows you to specify step...
285dc9c60fd59b5e65432747859dd76b728bb3b8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/285dc9c60fd59b5e65432747859dd76b728bb3b8/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 3676, 12, 1937, 16, 679, 33, 7036, 16, 2235, 33, 21, 16, 29235, 33, 7036, 16, 866, 33, 5510, 16, 2341, 67, 8003, 33, 8381, 4672, 436, 8395, 2000, 666, 434, 5600, 521, 710, 95, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3676, 12, 1937, 16, 679, 33, 7036, 16, 2235, 33, 21, 16, 29235, 33, 7036, 16, 866, 33, 5510, 16, 2341, 67, 8003, 33, 8381, 4672, 436, 8395, 2000, 666, 434, 5600, 521, 710, 95, ...
self.size = 0
self.size = None
def __init__(self, url, filename, opts): self.fo = None self._hdr_dump = '' self._parsed_hdr = None self.url = url self.scheme = urlparse.urlsplit(self.url)[0] self.filename = filename self.append = False self.reget_time = None self.opts = opts if self.opts.reget == 'check_timestamp': raise NotImplementedError, "check_...
9f899f58eda381b21dacd51897345a836fe7985e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7001/9f899f58eda381b21dacd51897345a836fe7985e/grabber.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 880, 16, 1544, 16, 1500, 4672, 365, 18, 617, 273, 599, 365, 6315, 16587, 67, 8481, 273, 875, 365, 6315, 10817, 67, 16587, 273, 599, 365, 18, 718, 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, 1001, 2738, 972, 12, 2890, 16, 880, 16, 1544, 16, 1500, 4672, 365, 18, 617, 273, 599, 365, 6315, 16587, 67, 8481, 273, 875, 365, 6315, 10817, 67, 16587, 273, 599, 365, 18, 718, 273, ...
self.job_id = blockingCallFromThread(reactor, self._remoteobj.callRemote,
self.job_id = blockingCallFromThread(reactor, self._remoteobj.callRemote,
def rerun(self): """ Resubmits the current job. """ self.job_id = blockingCallFromThread(reactor, self._remoteobj.callRemote, 'submit_job', self._jdict)
bd104c29a9f8bb58b2dceba0091f2773e417e98c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/bd104c29a9f8bb58b2dceba0091f2773e417e98c/dsage_interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 19780, 12, 2890, 4672, 3536, 1124, 373, 22679, 326, 783, 1719, 18, 225, 3536, 365, 18, 4688, 67, 350, 273, 9445, 1477, 1265, 3830, 12, 266, 3362, 16, 365, 6315, 7222, 2603, 18, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 436, 19780, 12, 2890, 4672, 3536, 1124, 373, 22679, 326, 783, 1719, 18, 225, 3536, 365, 18, 4688, 67, 350, 273, 9445, 1477, 1265, 3830, 12, 266, 3362, 16, 365, 6315, 7222, 2603, 18, 19...
args = sys.argv[1:][1] except: args = "" self.console = Console(self, args) elif self.GTK: self.GTK = True self.CONSOLE = False self.icon_theme = gtk.icon_theme_get_default() self.notifier = Notifier(self) if self.specto_gconf.get_entry("always_show_icon") == False: self.notifier_hide = False elif self.specto_gconf.g...
self.watch_db.create(values) except AttributeError, error_fields: self.logger.log(_("Could not create a watch, because it is corrupt."), \ "critical", "specto") if self.GTK: for watch in self.watch_db: self.notifier.add_notifier_entry(watch.id) self.notifier.refresh_all_watches() else: self.console.start_watches()
def __init__(self): self.DEBUG = DEBUG self.util = util
c498cb7e07445e2228d8a6b81133452fed2b59ee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10818/c498cb7e07445e2228d8a6b81133452fed2b59ee/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 9394, 273, 6369, 365, 18, 1367, 273, 1709, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 9394, 273, 6369, 365, 18, 1367, 273, 1709, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if self.y <= 0 or self.y >= GAMEBOY_SCREEN_WIDTH:
if self.y <= 0 or self.y >= SPRITE_SIZE + GAMEBOY_SCREEN_HEIGHT + SPRITE_SIZE:
def hide_check(self): if self.y <= 0 or self.y >= GAMEBOY_SCREEN_WIDTH: self.hidden = True elif self.x <= 0 or self.x >= GAMEBOY_SCREEN_WIDTH+SPRITE_SIZE: self.hidden = True else: self.hidden = False return self.hidden
5c55d5354769a5bee3b7b4f62f1d65751443c8ba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/5c55d5354769a5bee3b7b4f62f1d65751443c8ba/video_sprite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6853, 67, 1893, 12, 2890, 4672, 309, 365, 18, 93, 1648, 374, 225, 578, 365, 18, 93, 1545, 348, 8025, 5398, 67, 4574, 397, 611, 1642, 5315, 61, 67, 27908, 67, 14595, 397, 348, 8025, 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, 6853, 67, 1893, 12, 2890, 4672, 309, 365, 18, 93, 1648, 374, 225, 578, 365, 18, 93, 1545, 348, 8025, 5398, 67, 4574, 397, 611, 1642, 5315, 61, 67, 27908, 67, 14595, 397, 348, 8025, 5...
pkg_info.write('License: %s\n' % self.get_licence() )
pkg_info.write('License: %s\n' % self.get_license() )
def write_pkg_info (self, base_dir): """Write the PKG-INFO file into the release tree. """
0ab51f87fe6dcdfc0be201d34a7ceaba3244a142 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/0ab51f87fe6dcdfc0be201d34a7ceaba3244a142/dist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 10657, 67, 1376, 261, 2890, 16, 1026, 67, 1214, 4672, 3536, 3067, 326, 11327, 43, 17, 5923, 585, 1368, 326, 3992, 2151, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 10657, 67, 1376, 261, 2890, 16, 1026, 67, 1214, 4672, 3536, 3067, 326, 11327, 43, 17, 5923, 585, 1368, 326, 3992, 2151, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, ...
if result and (s1, s2)==result[:2]:
if result and (s1, s2) == result[:2]:
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 valu...
5da8500796861ee5ea784f135a5015a0e5f96631 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/5da8500796861ee5ea784f135a5015a0e5f96631/filecmp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9411, 12, 74, 21, 16, 284, 22, 16, 18501, 33, 21, 16, 1202, 67, 5642, 2493, 33, 20, 4672, 3536, 8583, 2795, 1390, 18, 225, 13599, 30, 225, 284, 21, 1493, 5783, 585, 508, 225, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1202, 67, 5642, 2493, 33, 20, 4672, 3536, 8583, 2795, 1390, 18, 225, 13599, 30, 225, 284, 21, 1493, 5783, 585, 508, 225, 284, ...
if nums[2]>31:
if nums[2]>50:
def getdate(s=""): """Attempt to parse the given string as a date. The format is unknown, but it's assumed that the broken American m/d/y isn't a possibility. It attempts to distinguish between d/m/y and y/m/d using the values, and handles any seperator. if dateorder (global) is 'DMY' or 'YMD', it overrides the last-r...
77dc1cebf1577c1346bade46be0e5544c237788a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8228/77dc1cebf1577c1346bade46be0e5544c237788a/parseing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 712, 12, 87, 1546, 6, 4672, 3536, 7744, 358, 1109, 326, 864, 533, 487, 279, 1509, 18, 1021, 740, 353, 5917, 16, 1496, 518, 1807, 12034, 716, 326, 12933, 3986, 3036, 304, 312, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 712, 12, 87, 1546, 6, 4672, 3536, 7744, 358, 1109, 326, 864, 533, 487, 279, 1509, 18, 1021, 740, 353, 5917, 16, 1496, 518, 1807, 12034, 716, 326, 12933, 3986, 3036, 304, 312, 19, ...
if dosort:
if sort:
def __init__(self, coeffs, breaks, dosort=False): self.coeffs = np.asarray(coeffs) if dosort: self.breaks = np.sort(breaks) else: self.breaks = np.asarray(breaks) self.N = self.coeffs.shape[0]
8bc5f1be89a559ce7e2cf0390ae819158ba045a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/8bc5f1be89a559ce7e2cf0390ae819158ba045a1/interpolate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 16530, 16, 16217, 16, 16153, 499, 33, 8381, 4672, 365, 18, 30463, 273, 1130, 18, 345, 1126, 12, 30463, 13, 309, 1524, 30, 365, 18, 29292, 273, 1130, 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, 1001, 2738, 972, 12, 2890, 16, 16530, 16, 16217, 16, 16153, 499, 33, 8381, 4672, 365, 18, 30463, 273, 1130, 18, 345, 1126, 12, 30463, 13, 309, 1524, 30, 365, 18, 29292, 273, 1130, 18, ...
layout_package.path_utils.LayoutDataDir())
path_utils.LayoutDataDir())
def GetStartHttpdCommand(self, output_dir, apache2=False): """Prepares the config file and output directory to start an httpd server. Returns a list of strings containing the server's command line+args.
d074bcc717295e16e2fc48edd7ec5a4641f7cc39 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/d074bcc717295e16e2fc48edd7ec5a4641f7cc39/platform_utils_win.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1685, 2940, 72, 2189, 12, 2890, 16, 876, 67, 1214, 16, 12291, 22, 33, 8381, 4672, 3536, 18486, 326, 642, 585, 471, 876, 1867, 358, 787, 392, 1062, 72, 1438, 18, 2860, 279, 666, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 968, 1685, 2940, 72, 2189, 12, 2890, 16, 876, 67, 1214, 16, 12291, 22, 33, 8381, 4672, 3536, 18486, 326, 642, 585, 471, 876, 1867, 358, 787, 392, 1062, 72, 1438, 18, 2860, 279, 666, ...
offset=(-localzone/(60*60))
offset=(-localzone/(60*60.0))
def _findLocalTimeZoneName(isDST): if not daylight: # Daylight savings does not occur in this time zone. isDST = 0 try: # Get the name of the current time zone depending # on DST. _localzone = _cache._zmap[tzname[isDST].lower()] except: try: # Generate a GMT-offset zone name. if isDST: localzone = altzone else: localzo...
b39e614bc46d4c5d2133dcbd9c72faf00ecf638f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b39e614bc46d4c5d2133dcbd9c72faf00ecf638f/DateTime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 2042, 16760, 461, 12, 291, 40, 882, 4672, 309, 486, 2548, 5099, 30, 468, 13735, 5099, 4087, 899, 1552, 486, 3334, 316, 333, 813, 4157, 18, 353, 40, 882, 273, 374, 775, 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, 4720, 2042, 16760, 461, 12, 291, 40, 882, 4672, 309, 486, 2548, 5099, 30, 468, 13735, 5099, 4087, 899, 1552, 486, 3334, 316, 333, 813, 4157, 18, 353, 40, 882, 273, 374, 775, 30, ...
GroupsController.configuration.CheckBaseDirs(minimal, batch, auto_answer)
GroupsController.configuration.CheckBaseDirs( minimal, batch, auto_answer)
def CheckGroups(self, groups_to_check = [], minimal=True, batch=False, auto_answer=None, force=False): """Check the groups, the cache. If not system, check the shared dir, the resps/guests, the members symlinks."""
2c25685af98e96114695a04efeb86385220aeb9c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2c25685af98e96114695a04efeb86385220aeb9c/groups.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 3621, 12, 2890, 16, 3252, 67, 869, 67, 1893, 273, 5378, 16, 16745, 33, 5510, 16, 2581, 33, 8381, 16, 3656, 67, 13490, 33, 7036, 16, 2944, 33, 8381, 4672, 3536, 1564, 326, 3252, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2073, 3621, 12, 2890, 16, 3252, 67, 869, 67, 1893, 273, 5378, 16, 16745, 33, 5510, 16, 2581, 33, 8381, 16, 3656, 67, 13490, 33, 7036, 16, 2944, 33, 8381, 4672, 3536, 1564, 326, 3252, ...
(install_prefix, install_prefix, self.bundle_res_dir, files))
(self.prefix, self.prefix, self.bundle_res_dir, files))
def make_app_bundle (self): plist_path = os.path.join (self.bundle_skeleton_dir, 'Contents', 'Info.plist') app_name = 'Unknown.app' plist = None if os.path.exists (plist_path): plist = Plist.fromFile (plist_path) app_name = plist['CFBundleExecutable'] else: print 'Warning: no Contents/Info.plist in .app skeleton'
fa52d2c9f9fecbc9a31107b5fa854ede37eb02bc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14879/fa52d2c9f9fecbc9a31107b5fa854ede37eb02bc/darwinprofile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 2910, 67, 9991, 261, 2890, 4672, 21074, 67, 803, 273, 1140, 18, 803, 18, 5701, 261, 2890, 18, 9991, 67, 7771, 12143, 67, 1214, 16, 296, 6323, 2187, 296, 966, 18, 17842, 6134,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 2910, 67, 9991, 261, 2890, 4672, 21074, 67, 803, 273, 1140, 18, 803, 18, 5701, 261, 2890, 18, 9991, 67, 7771, 12143, 67, 1214, 16, 296, 6323, 2187, 296, 966, 18, 17842, 6134,...
sage: E8(0,0,0,0,0,0,0,1).branch(D7,rule="levi")
sage: E8(0,0,0,0,0,0,0,1).branch(D7,rule="levi")
def branch_weyl_character(chi, R, S, rule="default"): r""" A Branching rule describes the restriction of representations from a Lie group or algebra G to a smaller one. See for example, R. C. King, Branching rules for classical Lie groups using tensor and spinor methods. J. Phys. A 8 (1975), 429-449, Howe, Tan and Will...
7fa05b949ce753ba0d48f2e6f5125e6333b0ed1c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/7fa05b949ce753ba0d48f2e6f5125e6333b0ed1c/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3803, 67, 91, 402, 80, 67, 11560, 12, 24010, 16, 534, 16, 348, 16, 1720, 1546, 1886, 6, 4672, 436, 8395, 432, 15449, 310, 1720, 19605, 326, 9318, 434, 27851, 628, 279, 511, 1385, 1041,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3803, 67, 91, 402, 80, 67, 11560, 12, 24010, 16, 534, 16, 348, 16, 1720, 1546, 1886, 6, 4672, 436, 8395, 432, 15449, 310, 1720, 19605, 326, 9318, 434, 27851, 628, 279, 511, 1385, 1041,...
msg = '%s.%s : ' % (po.name, po.arch)
if self.conf.showdupesfromrepos: msg = '%s : ' % po else: msg = '%s.%s : ' % (po.name, po.arch)
def matchcallback(self, po, values, matchfor=None): msg = '%s.%s : ' % (po.name, po.arch) msg = self._outKeyValFill(msg, po.summary) if matchfor: msg = self.term.sub_bold(msg, matchfor) print msg self.verbose_logger.debug(_('Matched from:')) for item in values: if matchfor: item = self.term.sub_bold(item, matchfor) se...
6fc5187dfc094f14df8696ce418235f545a769b0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5445/6fc5187dfc094f14df8696ce418235f545a769b0/output.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 845, 3394, 12, 2890, 16, 8275, 16, 924, 16, 845, 1884, 33, 7036, 4672, 309, 365, 18, 3923, 18, 4500, 26427, 281, 2080, 15564, 30, 1234, 273, 1995, 87, 294, 296, 738, 8275, 469, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 845, 3394, 12, 2890, 16, 8275, 16, 924, 16, 845, 1884, 33, 7036, 4672, 309, 365, 18, 3923, 18, 4500, 26427, 281, 2080, 15564, 30, 1234, 273, 1995, 87, 294, 296, 738, 8275, 469, 30, 1...
sf = pygame.Surface ((6, 8), 0, 32) sf.fill ((0, 0, 0)) ar = pygame.PixelArray (sf)
for bpp in (8, 16, 24, 32): sf = pygame.Surface ((6, 8), 0, bpp) sf.fill ((0, 0, 0)) ar = pygame.PixelArray (sf)
def test_set_column (self): sf = pygame.Surface ((6, 8), 0, 32) sf.fill ((0, 0, 0)) ar = pygame.PixelArray (sf)
8c52ec7e2d3c922d31ce5b160f9bf0527da94d40 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1298/8c52ec7e2d3c922d31ce5b160f9bf0527da94d40/pixelarray_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 542, 67, 2827, 261, 2890, 4672, 9033, 273, 2395, 13957, 18, 11508, 14015, 26, 16, 1725, 3631, 374, 16, 3847, 13, 9033, 18, 5935, 14015, 20, 16, 374, 16, 374, 3719, 419, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 542, 67, 2827, 261, 2890, 4672, 9033, 273, 2395, 13957, 18, 11508, 14015, 26, 16, 1725, 3631, 374, 16, 3847, 13, 9033, 18, 5935, 14015, 20, 16, 374, 16, 374, 3719, 419, 273, ...
raise ValueError, "invalid header"
raise ValueError("invalid header")
def frombuf(cls, buf): """Construct a TarInfo object from a 512 byte string buffer. """ if len(buf) != BLOCKSIZE: raise ValueError, "truncated header" if buf.count(NUL) == BLOCKSIZE: raise ValueError, "empty header"
e4751e3cdc8c271f24e46a6155f255b6e33da158 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e4751e3cdc8c271f24e46a6155f255b6e33da158/tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 4385, 12, 6429, 16, 1681, 4672, 3536, 7249, 279, 20334, 966, 733, 628, 279, 13908, 1160, 533, 1613, 18, 3536, 309, 562, 12, 4385, 13, 480, 14073, 4574, 30, 1002, 2068, 16, 315, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 4385, 12, 6429, 16, 1681, 4672, 3536, 7249, 279, 20334, 966, 733, 628, 279, 13908, 1160, 533, 1613, 18, 3536, 309, 562, 12, 4385, 13, 480, 14073, 4574, 30, 1002, 2068, 16, 315, 23...
self.is_end, self.min_count, self.max_count)
self.is_end, self.min_count, self.max_count, self.can_begin, self.can_end)
def copy(self): return PrositeTerm(self.letters, self.ignore, self.is_begin, self.is_end, self.min_count, self.max_count)
18dbba155bba07951da5424ebe81cc1b94eea170 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/18dbba155bba07951da5424ebe81cc1b94eea170/Pattern.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 4672, 327, 1186, 4256, 4065, 12, 2890, 18, 26054, 16, 365, 18, 6185, 16, 365, 18, 291, 67, 10086, 16, 365, 18, 291, 67, 409, 16, 365, 18, 1154, 67, 1883, 16, 365, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1610, 12, 2890, 4672, 327, 1186, 4256, 4065, 12, 2890, 18, 26054, 16, 365, 18, 6185, 16, 365, 18, 291, 67, 10086, 16, 365, 18, 291, 67, 409, 16, 365, 18, 1154, 67, 1883, 16, 365, 1...
time.sleep(2)
time.sleep(1)
def main(): # Initialize the update url to just be the ip address of this machine. ip = getmyip() updateurl = 'http://' + ip + ':12345/' if len(sys.argv) == 1: sys.argv.append(updateurl) else: sys.argv[1] = updateurl # Create a temp directory to serve the updates from that we can # automatically clean up when we are ...
4da49d78e02e40c3c977e4c7f053a7fc551aa8b9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/4da49d78e02e40c3c977e4c7f053a7fc551aa8b9/test_updater_local.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 9190, 326, 1089, 880, 358, 2537, 506, 326, 2359, 1758, 434, 333, 5228, 18, 2359, 273, 336, 4811, 625, 1435, 1089, 718, 273, 296, 2505, 8931, 397, 2359, 397, 4290, 2138,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 9190, 326, 1089, 880, 358, 2537, 506, 326, 2359, 1758, 434, 333, 5228, 18, 2359, 273, 336, 4811, 625, 1435, 1089, 718, 273, 296, 2505, 8931, 397, 2359, 397, 4290, 2138,...
(r"(L|@)?'(\\.|\\[0-7]{1,3}|\\x[a-fA-F0-9]{1,2}|[^\\\'\n])'", String.Char),
(r"(L|@)?'(\\.|\\[0-7]{1,3}|\\x[a-fA-F0-9]{1,2}|[^\\\'\n])'", String.Char),
def get_tokens_unprocessed(self, text): scanner = Scanner(text, re.DOTALL | re.MULTILINE | re.IGNORECASE) stack = ['initial'] in_function_block = False in_property_block = False was_dot = False next_token_is_function = False next_token_is_property = False collect_labels = False block_labels = set() brace_balance = [0, ...
1bb15c4cd4c1025badabe70816f63319ba700847 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2885/1bb15c4cd4c1025badabe70816f63319ba700847/compiled.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7860, 67, 318, 11005, 12, 2890, 16, 977, 4672, 7683, 273, 19074, 12, 955, 16, 283, 18, 17591, 4685, 571, 283, 18, 12845, 30690, 571, 283, 18, 20118, 13415, 13, 2110, 273, 1022...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7860, 67, 318, 11005, 12, 2890, 16, 977, 4672, 7683, 273, 19074, 12, 955, 16, 283, 18, 17591, 4685, 571, 283, 18, 12845, 30690, 571, 283, 18, 20118, 13415, 13, 2110, 273, 1022...
'final':lambda: self._parent.parent().getFinalDefault()}
'final':lambda self: self._parent().getFinalDefault()}
def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node)
7e1f86e3e32f88ea95d3dcaa301a21593e338485 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/7e1f86e3e32f88ea95d3dcaa301a21593e338485/XMLSchema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 8832, 12, 2890, 16, 756, 4672, 365, 18, 542, 2498, 12, 2159, 13, 2939, 273, 365, 18, 588, 6323, 12, 2159, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 8832, 12, 2890, 16, 756, 4672, 365, 18, 542, 2498, 12, 2159, 13, 2939, 273, 365, 18, 588, 6323, 12, 2159, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
cases = ("*sort", "\\sort", "/sort", "~sort", "-sort", "!sort") fmt = ("%2s %6s" + " %6s"*len(cases))
cases = ("*sort", "\\sort", "/sort", "~sort", "=sort", "!sort") fmt = ("%2s %7s" + " %6s"*len(cases))
def tabulate(r): """Tabulate sort speed for lists of various sizes. The sizes are 2**i for i in r (the argument, a list). The output displays i, 2**i, and the time to sort arrays of 2**i floating point numbers with the following properties: *sort: random data \sort: descending data /sort: ascending data ~sort: many ...
c74091f4ea1e34382dd3b425d37f010ab91c9d7b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c74091f4ea1e34382dd3b425d37f010ab91c9d7b/sortperf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3246, 6243, 12, 86, 4672, 3536, 5661, 6243, 1524, 8632, 364, 6035, 434, 11191, 8453, 18, 225, 1021, 8453, 854, 576, 636, 77, 364, 277, 316, 436, 261, 5787, 1237, 16, 279, 666, 2934, 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, 3246, 6243, 12, 86, 4672, 3536, 5661, 6243, 1524, 8632, 364, 6035, 434, 11191, 8453, 18, 225, 1021, 8453, 854, 576, 636, 77, 364, 277, 316, 436, 261, 5787, 1237, 16, 279, 666, 2934, 22...
zinfo.flag_bits = 0x08
zinfo.flag_bits = 0x00
def write(self, filename, arcname=None, compress_type=None): """Put the bytes from filename into the archive under the name arcname.""" st = os.stat(filename) mtime = time.localtime(st[8]) date_time = mtime[0:6] # Create ZipInfo instance to store file information if arcname is None: zinfo = ZipInfo(filename, date_time)...
e74bef3dea4e4f414731e66172d3f9679104bbc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e74bef3dea4e4f414731e66172d3f9679104bbc3/zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1544, 16, 8028, 529, 33, 7036, 16, 8099, 67, 723, 33, 7036, 4672, 3536, 6426, 326, 1731, 628, 1544, 1368, 326, 5052, 3613, 326, 508, 8028, 529, 12123, 384, 273, 114...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1544, 16, 8028, 529, 33, 7036, 16, 8099, 67, 723, 33, 7036, 4672, 3536, 6426, 326, 1731, 628, 1544, 1368, 326, 5052, 3613, 326, 508, 8028, 529, 12123, 384, 273, 114...
self.termination_improvement = termination_relative_improvement
self.termination_relative_improvement = termination_relative_improvement
def __init__(self, initial_stepsize = 1.0, delta = 1.0e-6, stepsize_shrink = 0.5, termination_stepsize = 1.0e-30, termination_objective = None, termination_iteration = None, termination_numEvaluations = None, termination_improvement = None, termination_relative_improvement = None, stepsize_max = 1.0e30, rng = None, tra...
4ee76ca21732825495f5906ed69157dcec83e84b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1770/4ee76ca21732825495f5906ed69157dcec83e84b/optim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2172, 67, 4119, 1467, 273, 404, 18, 20, 16, 3622, 273, 404, 18, 20, 73, 17, 26, 16, 2235, 1467, 67, 674, 12334, 273, 374, 18, 25, 16, 19650, 67, 4119...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2172, 67, 4119, 1467, 273, 404, 18, 20, 16, 3622, 273, 404, 18, 20, 73, 17, 26, 16, 2235, 1467, 67, 674, 12334, 273, 374, 18, 25, 16, 19650, 67, 4119...
def __init__(self, command=None, stdout="", stderr="",
def __init__(self, command="", stdout="", stderr="",
def __init__(self, command=None, stdout="", stderr="", exit_status=None, duration=0): self.command = command self.exit_status = exit_status self.stdout = stdout self.stderr = stderr self.duration = duration
6c8d7f088d7001b692314886b880ee05223f89c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/6c8d7f088d7001b692314886b880ee05223f89c1/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1296, 1546, 3113, 3909, 1546, 3113, 4514, 1546, 3113, 2427, 67, 2327, 33, 7036, 16, 3734, 33, 20, 4672, 365, 18, 3076, 273, 1296, 365, 18, 8593, 67, 2327...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1296, 1546, 3113, 3909, 1546, 3113, 4514, 1546, 3113, 2427, 67, 2327, 33, 7036, 16, 3734, 33, 20, 4672, 365, 18, 3076, 273, 1296, 365, 18, 8593, 67, 2327...
class TestCaseTests(TestCase):
class TestCaseTests(unittest.TestCase):
def test_get_json_attr_types(self): self.assertRaises(NotImplementedError, SoftwarePackage.get_json_attr_types)
33350b1918e806e4c10a301b469914de84b03dfb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7382/33350b1918e806e4c10a301b469914de84b03dfb/test_dashboard_bundle_format_1_0.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 67, 1977, 67, 1747, 67, 2352, 12, 2890, 4672, 365, 18, 11231, 12649, 6141, 12, 1248, 8644, 668, 16, 24199, 2261, 18, 588, 67, 1977, 67, 1747, 67, 2352, 13, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 67, 1977, 67, 1747, 67, 2352, 12, 2890, 4672, 365, 18, 11231, 12649, 6141, 12, 1248, 8644, 668, 16, 24199, 2261, 18, 588, 67, 1977, 67, 1747, 67, 2352, 13, 2, -100, -1...
if nickname and 'USE_NICKNAME_DQ2OUTPUTDATASET' in config and config['USE_NICKNAME_DQ2OUTPUTDATASET']:
if nickname and 'USE_NICKNAME_DQ2OUTPUTDATASET' in configDQ2 and configDQ2['USE_NICKNAME_DQ2OUTPUTDATASET']:
def __init__(self): super( AthenaMCInputDatasets, self ).__init__() # Extract username from certificate proxy = GridProxy() username = proxy.identity() if 'ALLOW_MISSING_NICKNAME_DQ2OUTPUTDATASET' in config and config['ALLOW_MISSING_NICKNAME_DQ2OUTPUTDATASET']: nickname = getNickname(allowMissingNickname=True) else: ni...
259bfdd41e7394bacf424bab8d0333e78dc46ffa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/259bfdd41e7394bacf424bab8d0333e78dc46ffa/AthenaMCDatasets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2240, 12, 432, 15991, 69, 20022, 1210, 14305, 2413, 16, 365, 262, 16186, 2738, 972, 1435, 468, 8152, 2718, 628, 4944, 2889, 273, 7145, 3886, 1435, 2718, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4672, 2240, 12, 432, 15991, 69, 20022, 1210, 14305, 2413, 16, 365, 262, 16186, 2738, 972, 1435, 468, 8152, 2718, 628, 4944, 2889, 273, 7145, 3886, 1435, 2718, ...
imagedata = paginetta.getFileVersionHistory() if imagedata == list(): wikipedia.output(u"Seems that %s hasn't the image at all, but there is something in the description..." % self.image) repme = "\n*[[:Image:%s]] seems to have problems ('''no data found in the image''')" self.report_image(self.image, self.rep_page...
params = { 'action' :'query', 'prop' :'imageinfo', 'titles' :self.image_namespace + self.image, } data = query.GetData(params, useAPI = True, encodeTitle = False)
def tag_image(self, put = True): """ Function to add the template in the image and to find out who's the user that has uploaded the image. """ # Defing the image's Page Object p = wikipedia.ImagePage(self.site, 'Image:%s' % self.image) # Get the image's description try: testoa = p.get() except wikipedia.NoPage: wikiped...
c32a9657c984361a1f0ef309792e0888c4e841f9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/c32a9657c984361a1f0ef309792e0888c4e841f9/checkimages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1047, 67, 2730, 12, 2890, 16, 1378, 273, 1053, 4672, 3536, 4284, 358, 527, 326, 1542, 316, 326, 1316, 471, 358, 1104, 596, 10354, 1807, 326, 729, 716, 711, 9140, 326, 1316, 18, 3536, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1047, 67, 2730, 12, 2890, 16, 1378, 273, 1053, 4672, 3536, 4284, 358, 527, 326, 1542, 316, 326, 1316, 471, 358, 1104, 596, 10354, 1807, 326, 729, 716, 711, 9140, 326, 1316, 18, 3536, 4...
'ar': u"بوت صيانة تحويل التصنيف",
'ar': u"بوت صيانة تحويل التصنيف", 'ja': u"移行中のカテゴリのメンテナンス・ボット",
def __init__(self, often): self.cooldown = 6 # days self.often = often # Localization:
98423dd4caad401cb3e6d4efce1e43edb80f8b10 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/98423dd4caad401cb3e6d4efce1e43edb80f8b10/category_redirect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 16337, 4672, 365, 18, 71, 1371, 2378, 273, 1666, 468, 4681, 365, 18, 792, 2253, 273, 16337, 225, 468, 3566, 1588, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 16337, 4672, 365, 18, 71, 1371, 2378, 273, 1666, 468, 4681, 365, 18, 792, 2253, 273, 16337, 225, 468, 3566, 1588, 30, 2, -100, -100, -100, -100, -100, -1...
sql = "UPDATE %s SET %s WHERE id=%s" % (obj_schema.table_name, ', '.join(setters), obj.id) self._execute(sql, values)
if values: sql = "UPDATE %s SET %s WHERE id=%s" % (obj_schema.table_name, ', '.join(setters), obj.id) self._execute(sql, values)
def update_obj(self, obj): """Update a DDBObject on disk."""
aa6e634acc5f7e7e5f9b990a3ddf83aca46bdfcb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/aa6e634acc5f7e7e5f9b990a3ddf83aca46bdfcb/storedatabase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2603, 12, 2890, 16, 1081, 4672, 3536, 1891, 279, 463, 2290, 921, 603, 4234, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2603, 12, 2890, 16, 1081, 4672, 3536, 1891, 279, 463, 2290, 921, 603, 4234, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
vList.append(Violation(self, line.number))
vList.append(Violation(self, line))
def apply(self, lines): vList = [] if (self.getFiletype() in self.getTypeList()): for line in lines: if ( re.search("inline", line.stripped) ): definitionLength = getDefinitionLength(lines, line.number) isTooLong = (definitionLength > 1)
cb6d1c1b9da3a15f55b42e7ffc55f274aee325d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6529/cb6d1c1b9da3a15f55b42e7ffc55f274aee325d2/style.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 12, 2890, 16, 2362, 4672, 331, 682, 273, 5378, 225, 309, 261, 2890, 18, 588, 25579, 5872, 1435, 316, 365, 18, 588, 559, 682, 1435, 4672, 364, 980, 316, 2362, 30, 225, 309, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 16, 2362, 4672, 331, 682, 273, 5378, 225, 309, 261, 2890, 18, 588, 25579, 5872, 1435, 316, 365, 18, 588, 559, 682, 1435, 4672, 364, 980, 316, 2362, 30, 225, 309, 261, ...
result=hlr_utils.copy_som_attr(result,res_descr,obj,o_descr)
result = hlr_utils.copy_som_attr(result, res_descr, obj, o_descr)
def sum_all_spectra(obj,**kwargs): """ This function takes all the SOs in a SOM and sums them together using the summing by weights concept. All of the SOs are assumed to have the same axis scale. Parameters: ---------- -> obj is a SOM in which all of the SOs are to be summed together Returns: ------- <- A SOM contai...
8179af3e8a7df82b7cb8133f15d0deb02bebabd4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/8179af3e8a7df82b7cb8133f15d0deb02bebabd4/hlr_sum_all_spectra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2142, 67, 454, 67, 13234, 354, 12, 2603, 16, 636, 4333, 4672, 3536, 1220, 445, 5530, 777, 326, 7460, 87, 316, 279, 348, 1872, 471, 26608, 2182, 9475, 1450, 326, 2142, 11987, 635, 5376, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2142, 67, 454, 67, 13234, 354, 12, 2603, 16, 636, 4333, 4672, 3536, 1220, 445, 5530, 777, 326, 7460, 87, 316, 279, 348, 1872, 471, 26608, 2182, 9475, 1450, 326, 2142, 11987, 635, 5376, ...
datapoint[1]<self.yframe[1] and datapoint[1]>self.yframe[0]: x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) lastx=self.lastx[aFullPNString] lasty=self.lasty[aFullPNString] if lastx!=None: dx=abs(lastx-x) dy=abs(lasty-y) else: dx=0 dy=0 if dx<2 and dy<2: self.drawpoint_on_plot(aFullPNString...
datapoint[1]<self.yframe[1] and datapoint[1]>self.yframe[0]: x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) lastx=self.lastx[aFullPNString] lasty=self.lasty[aFullPNString] if lastx!=None: dx=abs(lastx-x) dy=abs(lasty-y) else: dx=0 dy=0 if dx<2 and dy<2: self.drawpoint_on_plot(aFullPNString...
def drawpoint(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if datapoint[0]<self.xframe[1] and datapoint[0]>self.xframe[0] and\ datapoint[1]<self.yframe[1] and datapoint[1]>self.yframe[0]: x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) #getlastpoint...
fc7926ed12faa61a63508521517fced9fa88942b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/fc7926ed12faa61a63508521517fced9fa88942b/Plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 1153, 12, 2890, 16, 279, 5080, 15124, 780, 16, 25252, 4672, 468, 588, 25252, 619, 677, 924, 468, 6283, 358, 3207, 5513, 309, 25252, 63, 20, 65, 32, 2890, 18, 92, 3789, 63, 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, 3724, 1153, 12, 2890, 16, 279, 5080, 15124, 780, 16, 25252, 4672, 468, 588, 25252, 619, 677, 924, 468, 6283, 358, 3207, 5513, 309, 25252, 63, 20, 65, 32, 2890, 18, 92, 3789, 63, 21, ...
return sorted(individuals, key=lambda ind : ind.mFitness)[:n]
return sorted(individuals, key=attrgetter("fitness"))[:n]
def selWorst(individuals, n): """Select the *n* worst individuals among the input *individuals*. The list returned contains shallow copies of the input *individuals*. """ return sorted(individuals, key=lambda ind : ind.mFitness)[:n]
6ae146eb7a67965cd060324f44081ab5e647e3e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7315/6ae146eb7a67965cd060324f44081ab5e647e3e0/toolbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 357, 59, 280, 334, 12, 22032, 30910, 16, 290, 4672, 3536, 3391, 326, 380, 82, 14, 22952, 24479, 17200, 326, 810, 380, 22032, 30910, 11146, 1021, 666, 2106, 1914, 18501, 13200, 434, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 357, 59, 280, 334, 12, 22032, 30910, 16, 290, 4672, 3536, 3391, 326, 380, 82, 14, 22952, 24479, 17200, 326, 810, 380, 22032, 30910, 11146, 1021, 666, 2106, 1914, 18501, 13200, 434, 326, ...
def readline(self, size=80): if self.closed: return None buf=m2.bio_gets(self.bio, size) if buf is None: return '' return buf
def readline(self, size=80): if self.closed: return None buf=m2.bio_gets(self.bio, size) if buf is None: return '' return buf
def readline(self, size=80): if self.closed: return None buf=m2.bio_gets(self.bio, size) if buf is None: return '' return buf
52768953b32ebd1acf4ab8995564ff0e0957a506 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/52768953b32ebd1acf4ab8995564ff0e0957a506/BIO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 16, 963, 33, 3672, 4672, 309, 365, 18, 12204, 30, 327, 599, 1681, 33, 81, 22, 18, 21010, 67, 14665, 12, 2890, 18, 21010, 16, 963, 13, 309, 1681, 353, 599, 30, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 16, 963, 33, 3672, 4672, 309, 365, 18, 12204, 30, 327, 599, 1681, 33, 81, 22, 18, 21010, 67, 14665, 12, 2890, 18, 21010, 16, 963, 13, 309, 1681, 353, 599, 30, 327, ...
def handle_expt (self): self.log_info ('unhandled exception', 'warning') def handle_read (self): self.log_info ('unhandled read event', 'warning') def handle_write (self): self.log_info ('unhandled write event', 'warning') def handle_connect (self): self.log_info ('unhandled connect event', 'warning') def handle_ac...
def handle_expt(self): self.log_info('unhandled exception', 'warning') def handle_read(self): self.log_info('unhandled read event', 'warning') def handle_write(self): self.log_info('unhandled write event', 'warning') def handle_connect(self): self.log_info('unhandled connect event', 'warning') def handle_accept(sel...
def handle_expt (self): self.log_info ('unhandled exception', 'warning')
79991224d1b5f3a4ab074ddac83ef59addf853be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/79991224d1b5f3a4ab074ddac83ef59addf853be/asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 338, 337, 261, 2890, 4672, 365, 18, 1330, 67, 1376, 7707, 318, 14387, 1520, 2187, 296, 8551, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 338, 337, 261, 2890, 4672, 365, 18, 1330, 67, 1376, 7707, 318, 14387, 1520, 2187, 296, 8551, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
T_mat = block_diag(identity(k),T_mat) R_mat = np.zeros((p+k,1)) R_mat[k] = 1
R_mat = np.zeros((p,1)) R_mat[0] = 1
def predict(self, n=0): """ If n == 0, returns fitted values.
1152f9644ad3a0236670a8ae49236377dd1b6355 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12658/1152f9644ad3a0236670a8ae49236377dd1b6355/var.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7810, 12, 2890, 16, 290, 33, 20, 4672, 3536, 971, 290, 422, 374, 16, 1135, 31379, 924, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7810, 12, 2890, 16, 290, 33, 20, 4672, 3536, 971, 290, 422, 374, 16, 1135, 31379, 924, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return Graph(parent, conj, selected)
elif inside: yield Graph(parent, conj, selected) inside = False parent = {} conj = {} selected = set()
def _load_graph(gr_file, vocab): parent = {} conj = {} selected = set() for line in open(gr_file): if not (line.startswith('(') and line.endswith(')\n')): raise ValueError(line) label, v_from, v_to = _parse_edge(line[1:-2]) if v_to.rsplit('_')[0] in vocab: selected.add(v_to) if label.startswith('conj'): assert v_to n...
27909ed190534c68f3d1d7fe0ee5cc52be9b90c8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6480/27909ed190534c68f3d1d7fe0ee5cc52be9b90c8/shortest_path.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 945, 67, 4660, 12, 3197, 67, 768, 16, 9623, 4672, 982, 273, 2618, 10550, 273, 2618, 3170, 273, 444, 1435, 364, 980, 316, 1696, 12, 3197, 67, 768, 4672, 309, 486, 261, 1369, 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, 389, 945, 67, 4660, 12, 3197, 67, 768, 16, 9623, 4672, 982, 273, 2618, 10550, 273, 2618, 3170, 273, 444, 1435, 364, 980, 316, 1696, 12, 3197, 67, 768, 4672, 309, 486, 261, 1369, 18, ...
notebook.append_page(vbox, nblabel1)
self.infowindow_notebook.append_page(vbox, nblabel1)
def on_infowindow_show(self, action=None): if self.infowindow_visible: self.infowindow.present() return self.infowindow = gtk.Window(gtk.WINDOW_TOPLEVEL) self.infowindow.set_title(_('Song Info')) self.infowindow.set_size_request(380, -1) self.infowindow.set_default_size(self.infowindow_w, self.infowindow_h) self.infowi...
4de42023b08e6b74e9b9cca5478190e10a1c305c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/4de42023b08e6b74e9b9cca5478190e10a1c305c/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 10625, 543, 1700, 67, 4500, 12, 2890, 16, 1301, 33, 7036, 4672, 309, 365, 18, 10625, 543, 1700, 67, 8613, 30, 365, 18, 10625, 543, 1700, 18, 6706, 1435, 327, 365, 18, 10625, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 603, 67, 10625, 543, 1700, 67, 4500, 12, 2890, 16, 1301, 33, 7036, 4672, 309, 365, 18, 10625, 543, 1700, 67, 8613, 30, 365, 18, 10625, 543, 1700, 18, 6706, 1435, 327, 365, 18, 10625, ...
ctx.set_ciphers("^$:,;?*'dorothyx")
ctx.set_ciphers("xyzzy")
def test_ciphers(self): ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1) ctx.set_ciphers("ALL") ctx.set_ciphers("DEFAULT") with self.assertRaisesRegexp(ssl.SSLError, "No cipher can be selected"): ctx.set_ciphers("^$:,;?*'dorothyx")
61981bdbc7b3ec1df357facc1805f3f1be4f863b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/61981bdbc7b3ec1df357facc1805f3f1be4f863b/test_ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3449, 76, 414, 12, 2890, 4672, 1103, 273, 5832, 18, 6745, 1042, 12, 8157, 18, 16850, 67, 9905, 90, 21, 13, 1103, 18, 542, 67, 3449, 76, 414, 2932, 4685, 7923, 1103, 18, 542...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3449, 76, 414, 12, 2890, 4672, 1103, 273, 5832, 18, 6745, 1042, 12, 8157, 18, 16850, 67, 9905, 90, 21, 13, 1103, 18, 542, 67, 3449, 76, 414, 2932, 4685, 7923, 1103, 18, 542...