rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
pl = 0
def run_single(benchmark, config, time_limit, mem_limit): """\ Runs a single benchmark instance with the given configuration, time limit and memory limit. The output is saved in a file $benchmark.$config.log. Returns a pair (time, outcome) """ pl = 0 cn = configname(config) if "s3_srvr_10_BUG.cil.c" in benchmark: pl = ...
5c16cf5c25c3740c4041c09086ba09a91bdf1fac /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7293/5c16cf5c25c3740c4041c09086ba09a91bdf1fac/run_tests_explicit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 7526, 12, 70, 9737, 16, 642, 16, 813, 67, 3595, 16, 1663, 67, 3595, 4672, 3536, 64, 1939, 87, 279, 2202, 14128, 791, 598, 326, 864, 1664, 16, 813, 1800, 471, 3778, 1800, 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, 1086, 67, 7526, 12, 70, 9737, 16, 642, 16, 813, 67, 3595, 16, 1663, 67, 3595, 4672, 3536, 64, 1939, 87, 279, 2202, 14128, 791, 598, 326, 864, 1664, 16, 813, 1800, 471, 3778, 1800, 18...
"powerup_ball_speed_hit('"+percent+"')")
"powerup_ball_speed_hit("+percent+")")
def powerup_spawn_ball_speed(pixmap, percent): yanoid_map.PowerUp("powerup", pixmap, "powerup_ball_speed_hit('"+percent+"')")
967ecef31734312916ae94306f3b3337065a0a37 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6486/967ecef31734312916ae94306f3b3337065a0a37/powerups.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7212, 416, 67, 1752, 9533, 67, 19067, 67, 13871, 12, 14861, 1458, 16, 5551, 4672, 677, 304, 839, 67, 1458, 18, 13788, 1211, 2932, 12238, 416, 3113, 11871, 1458, 16, 315, 12238, 416, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7212, 416, 67, 1752, 9533, 67, 19067, 67, 13871, 12, 14861, 1458, 16, 5551, 4672, 677, 304, 839, 67, 1458, 18, 13788, 1211, 2932, 12238, 416, 3113, 11871, 1458, 16, 315, 12238, 416, 67, ...
elem = Param({"Name": "%s:param" % name, "Type": type})
elem = Param({u"Name": u"%s:param" % name, u"Type": type})
def new_param(name, type, value, comment = None): """ Construct a LIGO Light Weight XML Param document subtree. """ elem = Param({"Name": "%s:param" % name, "Type": type}) elem.pcdata = value if comment is not None: elem.appendChild(ligolw.Comment()) elem.childNodes[-1].pcdata = comment return elem
dd47e9776f8da20d814e64c2ebf5786c97030df3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3589/dd47e9776f8da20d814e64c2ebf5786c97030df3/param.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 891, 12, 529, 16, 618, 16, 460, 16, 2879, 273, 599, 4672, 3536, 14291, 279, 511, 3047, 51, 15992, 15437, 3167, 3014, 1668, 12773, 18, 3536, 3659, 273, 3014, 12590, 89, 6, 461,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 891, 12, 529, 16, 618, 16, 460, 16, 2879, 273, 599, 4672, 3536, 14291, 279, 511, 3047, 51, 15992, 15437, 3167, 3014, 1668, 12773, 18, 3536, 3659, 273, 3014, 12590, 89, 6, 461,...
vfq.reckon_sequences(vf.name)
vfq.reckon_sequences(vf)
def ExpandToVFQuery(self, vf): """Expand self into full VFQuery, relative to vfolder vf
5d826cf87eabaab894d9b81b3f335fbe09d92619 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3083/5d826cf87eabaab894d9b81b3f335fbe09d92619/vfolder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16429, 774, 58, 42, 1138, 12, 2890, 16, 28902, 4672, 3536, 12271, 365, 1368, 1983, 776, 42, 1138, 16, 3632, 358, 331, 5609, 28902, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 16429, 774, 58, 42, 1138, 12, 2890, 16, 28902, 4672, 3536, 12271, 365, 1368, 1983, 776, 42, 1138, 16, 3632, 358, 331, 5609, 28902, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100...
d=os.path.expanduser(d).replace(DV.my_videos_path,myvids).replace('/',os.sep).replace('\\',os.sep) while d[-1:]==os.sep:
d=os.path.expanduser(d).replace(DV.my_videos_path,myvids).replace('/',DV.sep).replace('\\',DV.sep) while d[-1:]==DV.sep:
def DamnFriendlyDir(d): if DV.os=='mac': myvids=DV.l('Movies') else: myvids=DV.l('My Videos') d=d.replace('?DAMNVID_MY_VIDEOS?',myvids) d=os.path.expanduser(d).replace(DV.my_videos_path,myvids).replace('/',os.sep).replace('\\',os.sep) while d[-1:]==os.sep: d=d[0:-1] return d
18d91d3a382ccc85706a20ab0defe4fb663ef94f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/18d91d3a382ccc85706a20ab0defe4fb663ef94f/DamnVid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 463, 301, 82, 19730, 1621, 12, 72, 4672, 309, 463, 58, 18, 538, 18920, 5821, 4278, 3399, 1246, 87, 33, 30199, 18, 80, 2668, 16727, 29028, 6134, 469, 30, 3399, 1246, 87, 33, 30199, 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, 463, 301, 82, 19730, 1621, 12, 72, 4672, 309, 463, 58, 18, 538, 18920, 5821, 4278, 3399, 1246, 87, 33, 30199, 18, 80, 2668, 16727, 29028, 6134, 469, 30, 3399, 1246, 87, 33, 30199, 18, ...
("firefox " ++ (\"""" + text + "\").findHelpFileOrElse.escapeChar($ )).unixCmd;", silent=True)
("gnome-open " ++ ((\"""" + text + "\").findHelpFile ? \"Help\").escapeChar($ )).unixCmd;", silent=True)
def on_find_help(self, action): doc = self.__window.get_active_document()
dc91e8df0159ba7ef3c42dd3482432d12263cd7b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14712/dc91e8df0159ba7ef3c42dd3482432d12263cd7b/WindowHelper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 4720, 67, 5201, 12, 2890, 16, 1301, 4672, 997, 273, 365, 16186, 5668, 18, 588, 67, 3535, 67, 5457, 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, 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, 603, 67, 4720, 67, 5201, 12, 2890, 16, 1301, 4672, 997, 273, 365, 16186, 5668, 18, 588, 67, 3535, 67, 5457, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
code, modname = compilesuite(suite, major, minor, language, script, fname, basepackage) if modname: suitelist.append((code, modname))
code, suite, fss, modname, precompinfo = precompilesuite(suite, basepackage) if not code: continue allprecompinfo = allprecompinfo + precompinfo suiteinfo = suite, fss, modname suitelist.append((code, modname)) allsuites.append(suiteinfo) for suiteinfo in allsuites: compilesuite(suiteinfo, major, minor, language, scrip...
def compileaete(aete, resinfo, fname): """Generate code for a full aete resource. fname passed for doc purposes""" [version, language, script, suites] = aete major, minor = divmod(version, 256) fss = macfs.FSSpec(fname) creatorsignature, dummy = fss.GetCreatorType() packagename = identify(os.path.basename(fname)) if la...
12b2b76608e7551e3b5ce5c5db98d0b59ff75056 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/12b2b76608e7551e3b5ce5c5db98d0b59ff75056/gensuitemodule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 69, 12865, 12, 69, 12865, 16, 400, 1376, 16, 5299, 4672, 3536, 4625, 981, 364, 279, 1983, 279, 12865, 1058, 18, 5299, 2275, 364, 997, 13694, 8395, 306, 1589, 16, 2653, 16, 2728, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4074, 69, 12865, 12, 69, 12865, 16, 400, 1376, 16, 5299, 4672, 3536, 4625, 981, 364, 279, 1983, 279, 12865, 1058, 18, 5299, 2275, 364, 997, 13694, 8395, 306, 1589, 16, 2653, 16, 2728, ...
if resdict["ioc_response_code"]=="0": self.result = payment.APPROVED self.error = None elif resdict.has_key("ioc_invalid_fields"):
if gotError:
def authorize(self, amount): values = {
be1100edf2024f2f419c8b74f15e2ae7fba742c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/be1100edf2024f2f419c8b74f15e2ae7fba742c0/BankOfAmericaPayment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12229, 12, 2890, 16, 3844, 4672, 924, 273, 288, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12229, 12, 2890, 16, 3844, 4672, 924, 273, 288, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
class CWCmdLineTests(WCmdLineTests):
class CWCmdLineTests(BaseTest, WCmdLineTests):
def test_improper_input(self): # Uses the private _setoption() function to test the parsing # of command-line warning arguments with test_support.catch_warning(self.module): self.assertRaises(self.module._OptionError, self.module._setoption, '1:2:3:4:5:6') self.assertRaises(self.module._OptionError, self.module._setopt...
5561b5a428065a2753637468b90a1bbcdc8ab686 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/5561b5a428065a2753637468b90a1bbcdc8ab686/test_warnings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 381, 22754, 67, 2630, 12, 2890, 4672, 468, 14854, 326, 3238, 389, 542, 3482, 1435, 445, 358, 1842, 326, 5811, 468, 434, 1296, 17, 1369, 3436, 1775, 598, 1842, 67, 13261, 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, 1842, 67, 381, 22754, 67, 2630, 12, 2890, 4672, 468, 14854, 326, 3238, 389, 542, 3482, 1435, 445, 358, 1842, 326, 5811, 468, 434, 1296, 17, 1369, 3436, 1775, 598, 1842, 67, 13261, 18, ...
xk += update
xk = xk + update
def fmin_ncg(f, x0, fprime, fhess_p=None, fhess=None, args=(), avextol=1e-5, epsilon=_epsilon, maxiter=None, full_output=0, disp=1, retall=0, callback=None): """Description: Minimize the function, f, whose gradient is given by fprime using the Newton-CG method. fhess_p must compute the hessian times an arbitrary vect...
6484cd4111bec54cd7ab9f96da12f13b920e927f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/6484cd4111bec54cd7ab9f96da12f13b920e927f/optimize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 1154, 67, 14202, 75, 12, 74, 16, 619, 20, 16, 284, 16382, 16, 7625, 403, 67, 84, 33, 7036, 16, 7625, 403, 33, 7036, 16, 833, 33, 9334, 1712, 408, 355, 33, 21, 73, 17, 25, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 1154, 67, 14202, 75, 12, 74, 16, 619, 20, 16, 284, 16382, 16, 7625, 403, 67, 84, 33, 7036, 16, 7625, 403, 33, 7036, 16, 833, 33, 9334, 1712, 408, 355, 33, 21, 73, 17, 25, 16...
return_to = ''.join([request.getBaseURL(), '?', qstr])
return_to = '%s/%s' % (request.getBaseURL(), request.page.url(request, qstr))
def _handle_add(self): _ = self.request.getText request = self.request
468cca9007e8b454e71e4d780a2503d3dbee35cc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/468cca9007e8b454e71e4d780a2503d3dbee35cc/oid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 1289, 12, 2890, 4672, 389, 273, 365, 18, 2293, 18, 588, 1528, 590, 273, 365, 18, 2293, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 1289, 12, 2890, 4672, 389, 273, 365, 18, 2293, 18, 588, 1528, 590, 273, 365, 18, 2293, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
"expires": str(int(timestamp)) + "000",
"expiry": timestamp,
def setUp(self): self.driver.get("http://localhost:%d/simpleTest.html" % self.webserver.port) timestamp = time.mktime(datetime.datetime.now().timetuple()) + 100 self.COOKIE_A = {"name": "foo", "value": "bar", "expires": str(int(timestamp)) + "000", "domain": "localhost", "path": "/", "secure": False}
d254029ed733aa131e0289401801a06b481f2d63 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/215/d254029ed733aa131e0289401801a06b481f2d63/cookie_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 365, 18, 7407, 18, 588, 2932, 2505, 2207, 13014, 5319, 72, 19, 9647, 4709, 18, 2620, 6, 738, 365, 18, 1814, 2266, 502, 18, 655, 13, 2858, 273, 813, 18, 24816, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24292, 12, 2890, 4672, 365, 18, 7407, 18, 588, 2932, 2505, 2207, 13014, 5319, 72, 19, 9647, 4709, 18, 2620, 6, 738, 365, 18, 1814, 2266, 502, 18, 655, 13, 2858, 273, 813, 18, 24816, ...
seq=self.seq.sequence(arglist[1])
seq=self.seq.sequence(arglist[0]).getvalue()
def setBGFreq(self,arglist=None): "Arguments: A C G T|bgSampleSequence\nBackground nucleotide frequencies. Removes markov background." if (not arglist==None): try: if len(arglist)==4: tot=reduce(lambda x,y:float(x)+float(y),arglist,0.0)*1.0 self.A,self.C,self.G,self.T=map(lambda x:float(x)/tot,arglist) elif len(arglist...
f81b14276d03bad98f4b8ea778f0aaff35dc87c3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11674/f81b14276d03bad98f4b8ea778f0aaff35dc87c3/Interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15268, 43, 14485, 12, 2890, 16, 3175, 1098, 33, 7036, 4672, 315, 4628, 30, 432, 385, 611, 399, 96, 12370, 8504, 4021, 64, 82, 8199, 9244, 23165, 18138, 18, 20284, 2267, 1527, 5412, 1199,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15268, 43, 14485, 12, 2890, 16, 3175, 1098, 33, 7036, 4672, 315, 4628, 30, 432, 385, 611, 399, 96, 12370, 8504, 4021, 64, 82, 8199, 9244, 23165, 18138, 18, 20284, 2267, 1527, 5412, 1199,...
except NameError:
except AttributeError:
def plot2D(self,det,axisX,axisY,start=None,stop=None,logz=False): bin = self.detector[det] try: bin.data except NameError: self.arrayRead(det) sumaxis = [2,1,0] sumaxis.remove(axisX) sumaxis.remove(axisY) low,high = self.__ranges(det,start,stop) subdata = (slice(low[0],high[0]),slice(low[1],high[1]),slice(low[2],high[2...
d785280b5a2acb60771b8b2db31c180e8e66ae71 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/509/d785280b5a2acb60771b8b2db31c180e8e66ae71/flukaplot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 22, 40, 12, 2890, 16, 8238, 16, 4890, 60, 16, 4890, 61, 16, 1937, 33, 7036, 16, 5681, 33, 7036, 16, 1330, 94, 33, 8381, 4672, 4158, 273, 365, 18, 8238, 1229, 63, 8238, 65, 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, 3207, 22, 40, 12, 2890, 16, 8238, 16, 4890, 60, 16, 4890, 61, 16, 1937, 33, 7036, 16, 5681, 33, 7036, 16, 1330, 94, 33, 8381, 4672, 4158, 273, 365, 18, 8238, 1229, 63, 8238, 65, 77...
properties.creator = root.find(QName(NAMESPACES['dc'], 'creator').text).text
creator_node = root.find(QName(NAMESPACES['dc'], 'creator').text) if creator_node: properties.creator = creator_node.text else: properties.creator = ''
def read_properties_core(xml_source): properties = DocumentProperties() root = fromstring(text = xml_source) properties.creator = root.find(QName(NAMESPACES['dc'], 'creator').text).text properties.last_modified_by = root.find(QName(NAMESPACES['cp'], 'lastModifiedBy').text).text properties.created = W3CDTF_to_dateti...
f875c4ffe121db9183858476a12047e6ecb801fc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2023/f875c4ffe121db9183858476a12047e6ecb801fc/workbook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 4738, 67, 3644, 12, 2902, 67, 3168, 4672, 225, 1790, 273, 4319, 2297, 1435, 225, 1365, 273, 21376, 12, 955, 273, 2025, 67, 3168, 13, 225, 11784, 67, 2159, 273, 1365, 18, 4720,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4738, 67, 3644, 12, 2902, 67, 3168, 4672, 225, 1790, 273, 4319, 2297, 1435, 225, 1365, 273, 21376, 12, 955, 273, 2025, 67, 3168, 13, 225, 11784, 67, 2159, 273, 1365, 18, 4720,...
elif isinstance(other, (Q, QAnd)):
elif isinstance(other, (DjangoQ, DjangoQAnd)):
def __or__(self, other): if isinstance(other, QOr): return QOr(*(self.args+other.args)) elif isinstance(other, (Q, QAnd)): return QOr(*(self.args+(other,))) else: raise TypeError, other
ec2feccf6f65a442d209665aabd7b4d403d389ea /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12041/ec2feccf6f65a442d209665aabd7b4d403d389ea/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 280, 972, 12, 2890, 16, 1308, 4672, 309, 1549, 12, 3011, 16, 2238, 1162, 4672, 327, 2238, 1162, 12, 21556, 2890, 18, 1968, 15, 3011, 18, 1968, 3719, 1327, 1549, 12, 3011, 16, 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, 1001, 280, 972, 12, 2890, 16, 1308, 4672, 309, 1549, 12, 3011, 16, 2238, 1162, 4672, 327, 2238, 1162, 12, 21556, 2890, 18, 1968, 15, 3011, 18, 1968, 3719, 1327, 1549, 12, 3011, 16, 261...
if cmd in ('USER', 'PASS', 'HELP', 'QUIT'): method = getattr(self, 'ftp_'+cmd, None) method(arg)
if cmd in self.unauth_cmds: if (cmd == 'STAT') and arg: self.respond("530 Log in with USER and PASS first.") else: method = getattr(self, 'ftp_'+cmd, None) method(arg)
def found_terminator(self): line = ''.join(self.in_buffer).strip() self.in_buffer = [] self.in_buffer_len = 0 cmd = line.split(' ')[0].upper() space = line.find(' ') if space != -1: arg = line[space + 1:] else: arg = ""
42cfb92815cfe91b8e9573da1b07cf8dce19a9ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7236/42cfb92815cfe91b8e9573da1b07cf8dce19a9ff/FTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1392, 67, 9505, 639, 12, 2890, 4672, 980, 273, 875, 18, 5701, 12, 2890, 18, 267, 67, 4106, 2934, 6406, 1435, 365, 18, 267, 67, 4106, 273, 5378, 365, 18, 267, 67, 4106, 67, 1897, 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, 1392, 67, 9505, 639, 12, 2890, 4672, 980, 273, 875, 18, 5701, 12, 2890, 18, 267, 67, 4106, 2934, 6406, 1435, 365, 18, 267, 67, 4106, 273, 5378, 365, 18, 267, 67, 4106, 67, 1897, 273,...
... self.items.append(MockBooking(**kwargs))
... booking_id = str(self.next_id) ... self.next_id += 1 ... self.items[booking_id] = MockBooking(**kwargs) ... return booking_id
... def invokeFactory(self, type, **kwargs):
11b478972152a15fce1de03ba52e6a7774bb2569 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10444/11b478972152a15fce1de03ba52e6a7774bb2569/add.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 377, 1652, 4356, 1733, 12, 2890, 16, 618, 16, 2826, 4333, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 377, 1652, 4356, 1733, 12, 2890, 16, 618, 16, 2826, 4333, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
msg= _('Insertion Failed!')
msg= _('Insertion Failed! ')
fields_def = self.fields_get(cr, uid, context=context)
718d5197b444ac5e0d009232765bbb9c65dced77 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/718d5197b444ac5e0d009232765bbb9c65dced77/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1466, 67, 536, 273, 365, 18, 2821, 67, 588, 12, 3353, 16, 4555, 16, 819, 33, 2472, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 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, 1466, 67, 536, 273, 365, 18, 2821, 67, 588, 12, 3353, 16, 4555, 16, 819, 33, 2472, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.args['command'].append("extra_addons=%s"%(self.args['extra_addons']))
self.args['command'].append("extra-addons=%s"%(self.args['extra_addons']))
def start(self): s = self.build.getSourceStamp() modules = [] for change in s.changes: for f in change.files: module = f.split('/')[0] if module in ('bin','Makefile','man','README','setup.cfg','setup.py','doc','MANIFEST.in','openerp.log','pixmaps','rpminstall_sh.txt','setup.nsi','win32'): continue if module not in modu...
d50b3a46da5e45455734ccac13ed35b99faa11d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12355/d50b3a46da5e45455734ccac13ed35b99faa11d5/buildstep.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 272, 273, 365, 18, 3510, 18, 588, 1830, 8860, 1435, 4381, 273, 5378, 364, 2549, 316, 272, 18, 6329, 30, 364, 284, 316, 2549, 18, 2354, 30, 1605, 273, 284, 18, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 272, 273, 365, 18, 3510, 18, 588, 1830, 8860, 1435, 4381, 273, 5378, 364, 2549, 316, 272, 18, 6329, 30, 364, 284, 316, 2549, 18, 2354, 30, 1605, 273, 284, 18, 49...
LOG('Zope', WARNING, 'no such user as %s in %s' \ % (name, self.absolute_url()))
def validate(self,request,auth='',roles=None): parent=request['PARENTS'][0] e=request.environ if e.has_key('REMOTE_USER'): name=e['REMOTE_USER'] else: for ob in self.getUsers(): domains=ob.getDomains() if domains: if ob.authenticate('', request): if ob.allowed(parent, roles): ob=ob.__of__(self) return ob nobody=self._n...
b524eb8d385b3d37d4c9cdb4f50ab88b14c32c5d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b524eb8d385b3d37d4c9cdb4f50ab88b14c32c5d/User.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 12, 2890, 16, 2293, 16, 1944, 2218, 2187, 7774, 33, 7036, 4672, 982, 33, 2293, 3292, 14943, 55, 3546, 63, 20, 65, 425, 33, 2293, 18, 28684, 309, 425, 18, 5332, 67, 856, 2668, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 12, 2890, 16, 2293, 16, 1944, 2218, 2187, 7774, 33, 7036, 4672, 982, 33, 2293, 3292, 14943, 55, 3546, 63, 20, 65, 425, 33, 2293, 18, 28684, 309, 425, 18, 5332, 67, 856, 2668, 1...
self.sock.send(literal) self.sock.send(CRLF) except socket.error, val:
self.send(literal) self.send(CRLF) except (socket.error, OSError), val:
def _command(self, name, *args):
bd2f753da8c4902fda79f5a41d749758bc9be20a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/bd2f753da8c4902fda79f5a41d749758bc9be20a/imaplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3076, 12, 2890, 16, 508, 16, 380, 1968, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3076, 12, 2890, 16, 508, 16, 380, 1968, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print "Cannot import Config file '",sys.argv[1],"' exiting ...."
print >> sys.stderr, "Cannot import Config file '",sys.argv[1],"' exiting ...."
def main(): # Import the Configuration File into config # Import the Configuration File into config if(len(sys.argv) < 2): print "Insufficient command line arguments " print " Usage is ",sys.argv[0]," <ConfigFile> {Job Number} " print " Exiting ........." sys.exit(1) try: config = __import__(sys.argv[1]); except: pri...
9f242671e9d0d7238a0ede41c485e14209156b6b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/9f242671e9d0d7238a0ede41c485e14209156b6b/multiresamp_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 225, 468, 6164, 326, 4659, 1387, 1368, 642, 468, 6164, 326, 4659, 1387, 1368, 642, 309, 12, 1897, 12, 9499, 18, 19485, 13, 411, 576, 4672, 1172, 315, 5048, 11339, 1296, 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, 2774, 13332, 225, 468, 6164, 326, 4659, 1387, 1368, 642, 468, 6164, 326, 4659, 1387, 1368, 642, 309, 12, 1897, 12, 9499, 18, 19485, 13, 411, 576, 4672, 1172, 315, 5048, 11339, 1296, 980,...
self.__executable = string.strip(cp.get('condor','ligolw_sqlite')) self.__universe = "vanilla" pipeline.CondorDAGJob.__init__(self,self.__universe,self.__executable) self.add_condor_cmd('getenv','True') self.tag_base = tag_base self.add_condor_cmd('environment',"KMP_LIBRARY=serial;MKL_SERIAL=yes") self.set_sub_file(tag...
self.__executable = string.strip(cp.get('condor','bash')) self.ligolw_sqlite = string.strip(cp.get('condor','ligolw_sqlite')) self.__universe = "vanilla" pipeline.CondorDAGJob.__init__(self,self.__universe,self.__executable) self.add_condor_cmd('getenv','True') self.tag_base = tag_base self.add_condor_cmd('environment'...
def __init__(self, cp, tag_base='LIGOLW_SQLITE'): """ """ self.__prog__ = 'ligolw_sqlite' self.__executable = string.strip(cp.get('condor','ligolw_sqlite')) self.__universe = "vanilla" pipeline.CondorDAGJob.__init__(self,self.__universe,self.__executable) self.add_condor_cmd('getenv','True') self.tag_base = tag_base se...
1da6c4e85aaa08b723e95573cc2b7224faaad799 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/1da6c4e85aaa08b723e95573cc2b7224faaad799/highmass_post_process.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3283, 16, 1047, 67, 1969, 2218, 2053, 43, 1741, 59, 67, 3997, 5398, 11, 4672, 3536, 3536, 365, 16186, 14654, 972, 273, 296, 80, 360, 355, 91, 67, 19460, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3283, 16, 1047, 67, 1969, 2218, 2053, 43, 1741, 59, 67, 3997, 5398, 11, 4672, 3536, 3536, 365, 16186, 14654, 972, 273, 296, 80, 360, 355, 91, 67, 19460, ...
color:
color:
def css(color='default'): r""" Return the CSS header used by the SAGE Notebook. INPUT: color -- string or pair of html colors, e.g., 'gmail' 'grey' \code{('#ff0000', '#0000ff')} EXAMPLES: sage: import sage.server.notebook.css as c sage: type(c.css()) <type 'str'> """ s = r"""
ec15087255db7e6728164467adef3d5c69507888 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/ec15087255db7e6728164467adef3d5c69507888/css.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3747, 12, 3266, 2218, 1886, 11, 4672, 436, 8395, 2000, 326, 6765, 1446, 1399, 635, 326, 348, 2833, 3609, 3618, 18, 225, 12943, 30, 2036, 1493, 533, 578, 3082, 434, 1729, 5740, 16, 425, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3747, 12, 3266, 2218, 1886, 11, 4672, 436, 8395, 2000, 326, 6765, 1446, 1399, 635, 326, 348, 2833, 3609, 3618, 18, 225, 12943, 30, 2036, 1493, 533, 578, 3082, 434, 1729, 5740, 16, 425, ...
None, [cty.POINTER(FL_OBJECT), cty.c_int],
None, [cty.POINTER(FL_OBJECT), cty.c_int],
def fl_set_xyplot_inspect(obj, yes): """ fl_set_xyplot_inspect(obj, yes) """ _fl_set_xyplot_inspect(obj, yes)
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 1698, 4032, 67, 12009, 12, 2603, 16, 12465, 4672, 3536, 1183, 67, 542, 67, 1698, 4032, 67, 12009, 12, 2603, 16, 12465, 13, 3536, 225, 389, 2242, 67, 542, 67, 1698, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1183, 67, 542, 67, 1698, 4032, 67, 12009, 12, 2603, 16, 12465, 4672, 3536, 1183, 67, 542, 67, 1698, 4032, 67, 12009, 12, 2603, 16, 12465, 13, 3536, 225, 389, 2242, 67, 542, 67, 1698, ...
("mxTextTools", is_mxTextTools_installed, 1,
("mxTextTools", is_mxTextTools_installed, 0,
def check_dependencies(): """Return whether the installation should continue.""" # There should be some way for the user to tell specify not to # check dependencies. For example, it probably should not if # the user specified "-q". However, I'm not sure where # distutils stores that information. Also, install has a ...
1003c5c78f9f2c63f055894513e54c9d016398c0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7167/1003c5c78f9f2c63f055894513e54c9d016398c0/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 11037, 13332, 3536, 990, 2856, 326, 13193, 1410, 1324, 12123, 468, 6149, 1410, 506, 2690, 4031, 364, 326, 729, 358, 9276, 4800, 486, 358, 468, 866, 5030, 18, 225, 2457, 3454, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 11037, 13332, 3536, 990, 2856, 326, 13193, 1410, 1324, 12123, 468, 6149, 1410, 506, 2690, 4031, 364, 326, 729, 358, 9276, 4800, 486, 358, 468, 866, 5030, 18, 225, 2457, 3454, 16...
self.re = re.compile("Atom\s+\d+\s+has atomic number\s+\d+\s+and mass\s+(?P<mass>\S+)")
self.re = re.compile("Atom\s*\d+\s+has atomic number\s+\d+\s+and mass\s+(?P<mass>\S+)")
def __init__(self, label="masses", condition=None): ThermoChemParser.__init__(self, label, activator=re.compile("Temperature\s+\S+\s+Kelvin.\s+Pressure\s+\S+\s+Atm."), deactivator=re.compile("Molecular mass:\s+\S+\s+amu."), condition=condition ) self.re = re.compile("Atom\s+\d+\s+has atomic number\s+\d+\s+and mass\s+(?...
ad8116c49ae470b33e51806c4bcdefb9c2122f0c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11053/ad8116c49ae470b33e51806c4bcdefb9c2122f0c/file_parsers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1433, 1546, 10424, 281, 3113, 2269, 33, 7036, 4672, 935, 1035, 83, 20200, 2678, 16186, 2738, 972, 12, 2890, 16, 1433, 16, 5981, 639, 33, 266, 18, 11100, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1433, 1546, 10424, 281, 3113, 2269, 33, 7036, 4672, 935, 1035, 83, 20200, 2678, 16186, 2738, 972, 12, 2890, 16, 1433, 16, 5981, 639, 33, 266, 18, 11100, ...
jw.x = int(w.x+xx+0.5) jw.y = int(w.y+yy+0.5) if not VALID_SECTOR(jw.x, jw.y):
jw.i = int(w.i+xx+0.5) jw.j = int(w.j+yy+0.5) if not VALID_SECTOR(jw.i, jw.j):
def torpedo(origin, course, dispersion, number, nburst): "Let a photon torpedo fly" shoved = False ac = course + 0.25*dispersion angle = (15.0-ac)*0.5235988 bullseye = (15.0 - course)*0.5235988 delta = coord(-math.sin(angle), math.cos(angle)) bigger = max(abs(delta.x), abs(delta.y)) delta /= bigger x = origin.x; y = or...
e67cf36a789c4ab1cd905a9a08e91d219395f538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/e67cf36a789c4ab1cd905a9a08e91d219395f538/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8934, 1845, 83, 12, 10012, 16, 4362, 16, 16232, 722, 16, 1300, 16, 4264, 18593, 4672, 315, 24181, 279, 24542, 265, 8934, 1845, 83, 21434, 6, 699, 9952, 273, 1083, 1721, 273, 4362, 397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8934, 1845, 83, 12, 10012, 16, 4362, 16, 16232, 722, 16, 1300, 16, 4264, 18593, 4672, 315, 24181, 279, 24542, 265, 8934, 1845, 83, 21434, 6, 699, 9952, 273, 1083, 1721, 273, 4362, 397, ...
ticket_view = self.new_ticket(summary='test custom fields')
kw = {'custom_fields._priority':'normal', 'custom_fields._category':'helloworld'} ticket_view = self.new_ticket(summary='test custom fields', **kw)
def test_custom_fields(self): spec = """[{"label":"Priority","type":"select","options":"normal urgent critical"}, {"label":"Category","type":"string","options":""}]""" spec = urllib.quote_plus(spec) r = self.app.post('/admin/bugs/set_custom_fields', { 'custom_fields': spec }) ticket_view = self.new_ticket(summary='test...
690ba46a4ad5ce16d65846d6230879c831f5fd10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1036/690ba46a4ad5ce16d65846d6230879c831f5fd10/test_root.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3662, 67, 2821, 12, 2890, 4672, 857, 273, 3536, 63, 16711, 1925, 15563, 8183, 15937, 723, 15563, 4025, 15937, 2116, 15563, 6130, 8896, 75, 319, 11239, 6, 5779, 12528, 1925, 15563...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3662, 67, 2821, 12, 2890, 4672, 857, 273, 3536, 63, 16711, 1925, 15563, 8183, 15937, 723, 15563, 4025, 15937, 2116, 15563, 6130, 8896, 75, 319, 11239, 6, 5779, 12528, 1925, 15563...
self.coupletag('Param',{'Name': 'Duration','Unit': 's'},
self.coupletag('Param',{'Name': 'Duration','Unit': 'Second'},
def writeTimeSeries(self,TimeSeries): # write out the TimeSeries defined in TimeSeries self.opentag('XSIL',{'Type': 'TimeSeries', 'Name': TimeSeries.description})
01e037cebbac5678af7cf64fc66f55054bc432ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11274/01e037cebbac5678af7cf64fc66f55054bc432ab/lisaxml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 28486, 12, 2890, 16, 28486, 4672, 468, 1045, 596, 326, 26084, 2553, 316, 26084, 225, 365, 18, 556, 319, 346, 2668, 60, 2320, 48, 2187, 27828, 559, 4278, 296, 28486, 2187, 296, 461,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 28486, 12, 2890, 16, 28486, 4672, 468, 1045, 596, 326, 26084, 2553, 316, 26084, 225, 365, 18, 556, 319, 346, 2668, 60, 2320, 48, 2187, 27828, 559, 4278, 296, 28486, 2187, 296, 461,...
def getLongFlagDefinition(executableNode):
def getLongFlagDefinition(currentNode):
def getLongFlagDefinition(executableNode): r""" Extract the long flag, and color the text string """ labelNodeList = executableNode.getElementsByTagName("longflag") if labelNodeList.length > 0: labelNode = labelNodeList[0] # Only get the first one return "{0}{1}{2}".format("[<span style=\"color:orange\">--", getTextVa...
bb4c200dee1fedd27e9c4ea11af1fe11302490e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12580/bb4c200dee1fedd27e9c4ea11af1fe11302490e5/SEMToMediaWiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11105, 4678, 1852, 12, 2972, 907, 4672, 436, 8395, 8152, 326, 1525, 2982, 16, 471, 2036, 326, 977, 533, 3536, 1433, 19914, 273, 9070, 907, 18, 588, 3471, 10401, 2932, 5748, 6420, 7923, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11105, 4678, 1852, 12, 2972, 907, 4672, 436, 8395, 8152, 326, 1525, 2982, 16, 471, 2036, 326, 977, 533, 3536, 1433, 19914, 273, 9070, 907, 18, 588, 3471, 10401, 2932, 5748, 6420, 7923, 3...
self.event_handler.on_deleted(DirDeletedEvent(src_path))
self.event_handler.dispatch(DirDeletedEvent(src_path))
def process_IN_DELETE(self, event): src_path = absolute_path(event.pathname) if event.dir: self.event_handler.on_deleted(DirDeletedEvent(src_path)) else: self.event_handler.on_deleted(FileDeletedEvent(src_path))
9f22e4386dce9dfe71c86c825c933e6e5d39ddc1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14346/9f22e4386dce9dfe71c86c825c933e6e5d39ddc1/inotify_observer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 706, 67, 6460, 12, 2890, 16, 871, 4672, 1705, 67, 803, 273, 4967, 67, 803, 12, 2575, 18, 28336, 13, 309, 871, 18, 1214, 30, 365, 18, 2575, 67, 4176, 18, 10739, 12, 1621, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 706, 67, 6460, 12, 2890, 16, 871, 4672, 1705, 67, 803, 273, 4967, 67, 803, 12, 2575, 18, 28336, 13, 309, 871, 18, 1214, 30, 365, 18, 2575, 67, 4176, 18, 10739, 12, 1621, ...
os.symlink(path.join(conf.APP_PATH, "Contents", "Resources", "VirtualBox.app"),
os.symlink(path.join(conf.UFO_DIR, "Mac-Intel", "UFO.app", "Contents", "Resources", "VirtualBox.app"),
def prepare(self): # Ajusting paths if not conf.BIN: conf.BIN = path.join(conf.UFO_DIR, "Mac-Intel", "UFO.app", "Contents", "Resources", "VirtualBox.app", "Contents", "MacOS")
5733ade7836543c9cf03451e2d0aa9a3e5fe5d10 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1208/5733ade7836543c9cf03451e2d0aa9a3e5fe5d10/macbackend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 12, 2890, 4672, 468, 432, 3732, 310, 2953, 309, 486, 2195, 18, 12615, 30, 2195, 18, 12615, 273, 589, 18, 5701, 12, 3923, 18, 57, 3313, 67, 4537, 16, 315, 9990, 17, 27233, 3113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 12, 2890, 4672, 468, 432, 3732, 310, 2953, 309, 486, 2195, 18, 12615, 30, 2195, 18, 12615, 273, 589, 18, 5701, 12, 3923, 18, 57, 3313, 67, 4537, 16, 315, 9990, 17, 27233, 3113, ...
return ZZ(self.__pari_prime.getattr('f'))
return ZZ(self._pari_prime.getattr('f'))
def residue_class_degree(self): r""" Return the residue class degree of this ideal, assuming it is prime and nonzero. Otherwise, raise a ValueError.
e007a9d9dedee1de94c0b698d8a1c5dcf36277c4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/e007a9d9dedee1de94c0b698d8a1c5dcf36277c4/number_field_ideal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14765, 67, 1106, 67, 21361, 12, 2890, 4672, 436, 8395, 2000, 326, 14765, 667, 10782, 434, 333, 23349, 16, 15144, 518, 353, 17014, 471, 16966, 18, 225, 5272, 16, 1002, 279, 2068, 18, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14765, 67, 1106, 67, 21361, 12, 2890, 4672, 436, 8395, 2000, 326, 14765, 667, 10782, 434, 333, 23349, 16, 15144, 518, 353, 17014, 471, 16966, 18, 225, 5272, 16, 1002, 279, 2068, 18, 2, ...
prefix = os.path.join(os.path.expanduser("~"), ".mnemosyne")
prefix = get_basedir()
def expand_path(p, prefix=None): if prefix == None: prefix = os.path.dirname(get_config("path")) if prefix == '': prefix = os.path.join(os.path.expanduser("~"), ".mnemosyne") if ( ( (len(p) > 1) and p[0] == "/") \ or ( (len(p) > 2) and p[1] == ":") ): # Unix or Windows absolute path. return os.path.normpath(p) els...
0d8c56bb59918782b475b7e9b136b044287b40ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1240/0d8c56bb59918782b475b7e9b136b044287b40ec/mnemosyne_core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4542, 67, 803, 12, 84, 16, 1633, 33, 7036, 4672, 225, 309, 1633, 422, 599, 30, 1633, 273, 1140, 18, 803, 18, 12287, 12, 588, 67, 1425, 2932, 803, 6, 3719, 309, 1633, 422, 875, 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, 4542, 67, 803, 12, 84, 16, 1633, 33, 7036, 4672, 225, 309, 1633, 422, 599, 30, 1633, 273, 1140, 18, 803, 18, 12287, 12, 588, 67, 1425, 2932, 803, 6, 3719, 309, 1633, 422, 875, 30, ...
x_pt,y_pt = self.map_data([screen_pt])[0]
if self.orientation == 'h': x_pt,y_pt = self.map_data([screen_pt])[0] else: x_pt,y_pt = self.map_data([(screen_pt[1],screen_pt[0])])[0]
def map_index(self, screen_pt, threshold=2.0, outside_returns_none=True, index_only=False): """ Maps a screen space point to an index into the plot's index arrays. Implements the AbstractPlotRenderer interface. The *index_only* parameter is ignored because the index is intrinsically 2-D. """ x_pt,y_pt = self.map_data(...
cb815790dca199a4c559be9eea4d6b57e5a946db /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13167/cb815790dca199a4c559be9eea4d6b57e5a946db/base_2d_plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 852, 67, 1615, 12, 2890, 16, 5518, 67, 337, 16, 5573, 33, 22, 18, 20, 16, 8220, 67, 6154, 67, 6102, 33, 5510, 16, 770, 67, 3700, 33, 8381, 4672, 3536, 19837, 279, 5518, 3476, 1634, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 852, 67, 1615, 12, 2890, 16, 5518, 67, 337, 16, 5573, 33, 22, 18, 20, 16, 8220, 67, 6154, 67, 6102, 33, 5510, 16, 770, 67, 3700, 33, 8381, 4672, 3536, 19837, 279, 5518, 3476, 1634, ...
The finite abelian group $(O_K/I)^*$.
The finite abelian group `(O_K/I)^*`.
def idealstar(self, flag=1): r""" Returns the finite abelian group $(O_K/I)^*$, where I is the ideal self of the number field K, and $O_K$ is the ring of integers of K.
0eb4070e28a5423ec6b12fc4236fdfa03b4e3060 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/0eb4070e28a5423ec6b12fc4236fdfa03b4e3060/number_field_ideal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23349, 10983, 12, 2890, 16, 2982, 33, 21, 4672, 436, 8395, 2860, 326, 25922, 1223, 292, 2779, 1041, 27488, 51, 67, 47, 19, 45, 13, 66, 26788, 16, 1625, 467, 353, 326, 23349, 365, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23349, 10983, 12, 2890, 16, 2982, 33, 21, 4672, 436, 8395, 2860, 326, 25922, 1223, 292, 2779, 1041, 27488, 51, 67, 47, 19, 45, 13, 66, 26788, 16, 1625, 467, 353, 326, 23349, 365, 434, ...
rep.setParseAction( mustMatchTheseTokens ) expr.addParseAction(copyTokenToRepeater)
rep.setParseAction( mustMatchTheseTokens, callDuringTry=True ) expr.addParseAction(copyTokenToRepeater, callDuringTry=True)
def mustMatchTheseTokens(s,l,t): theseTokens = _flatten(t.asList()) if theseTokens != matchTokens: raise ParseException("",0,"")
fe4553e6ec2935041dca80d29446568e2932ed31 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3693/fe4553e6ec2935041dca80d29446568e2932ed31/pyparsing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1297, 2060, 29690, 5157, 12, 87, 16, 80, 16, 88, 4672, 4259, 5157, 273, 389, 16940, 12, 88, 18, 345, 682, 10756, 309, 225, 4259, 5157, 480, 845, 5157, 30, 1002, 10616, 2932, 3113, 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, 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, 1297, 2060, 29690, 5157, 12, 87, 16, 80, 16, 88, 4672, 4259, 5157, 273, 389, 16940, 12, 88, 18, 345, 682, 10756, 309, 225, 4259, 5157, 480, 845, 5157, 30, 1002, 10616, 2932, 3113, 20, ...
path = self.path
path = self.path.replace('%20',' ')
def get_file(self): """ Examine the request and serve a file based on if the path matches any of the below strings. If the path matches none of the strings, then a '200 File Not Found' error is return. This function could be cleaned up? """ path = self.path if path[-5:] == '.sobj': path = '%s/%s'%(os.path.abspath(not...
6b75f758db390fff36623af908dc455d220b4adf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/6b75f758db390fff36623af908dc455d220b4adf/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 768, 12, 2890, 4672, 3536, 1312, 301, 558, 326, 590, 471, 12175, 279, 585, 2511, 603, 309, 326, 589, 1885, 1281, 434, 326, 5712, 2064, 18, 225, 971, 326, 589, 1885, 6555, 434,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 768, 12, 2890, 4672, 3536, 1312, 301, 558, 326, 590, 471, 12175, 279, 585, 2511, 603, 309, 326, 589, 1885, 1281, 434, 326, 5712, 2064, 18, 225, 971, 326, 589, 1885, 6555, 434,...
r=LazyCat(map(lambda i: i[1], r), len(r))
r=map(lambda i: i[1], r) r=LazyCat(r, reduce(lambda x,y: x+len(y), r, 0))
def searchResults(self, REQUEST=None, used=None, **kw): # Get search arguments: if REQUEST is None and not kw: try: REQUEST=self.REQUEST except AttributeError: pass if kw: if REQUEST: m=MultiMapping() m.push(REQUEST) m.push(kw) kw=m elif REQUEST: kw=REQUEST
10d96c082d81d5cb87c6f012865c259254cbe8f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/10d96c082d81d5cb87c6f012865c259254cbe8f5/Catalog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 3447, 12, 2890, 16, 12492, 33, 7036, 16, 1399, 33, 7036, 16, 2826, 9987, 4672, 225, 468, 968, 1623, 1775, 30, 309, 12492, 353, 599, 471, 486, 5323, 30, 775, 30, 12492, 33, 2890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 3447, 12, 2890, 16, 12492, 33, 7036, 16, 1399, 33, 7036, 16, 2826, 9987, 4672, 225, 468, 968, 1623, 1775, 30, 309, 12492, 353, 599, 471, 486, 5323, 30, 775, 30, 12492, 33, 2890, ...
def get_valueOf_(self): return self.valueOf_ def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
def get_valueOf_(self): return self.valueOf_
9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/9c12e50d449fa27d6f8f3415ece228ae97bb0266/_nexml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1132, 951, 67, 12, 2890, 4672, 327, 365, 18, 1132, 951, 67, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1132, 951, 67, 12, 2890, 4672, 327, 365, 18, 1132, 951, 67, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def import_from_cwd(self, module, imp=import_module):
def import_from_cwd(self, module, imp=None):
def import_from_cwd(self, module, imp=import_module): """Import module, but make sure it finds modules located in the current directory.
bd0d8ecd4ebe7f3bb0fb0a6e30a57bb4744c890f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2024/bd0d8ecd4ebe7f3bb0fb0a6e30a57bb4744c890f/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 2080, 67, 11089, 12, 2890, 16, 1605, 16, 1646, 33, 7036, 4672, 3536, 5010, 1605, 16, 1496, 1221, 3071, 518, 13094, 4381, 13801, 316, 326, 783, 1867, 18, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1930, 67, 2080, 67, 11089, 12, 2890, 16, 1605, 16, 1646, 33, 7036, 4672, 3536, 5010, 1605, 16, 1496, 1221, 3071, 518, 13094, 4381, 13801, 316, 326, 783, 1867, 18, 2, -100, -100, -100, ...
if verbose: print "test client", i
if verbose: print("test client", i)
def run_servers(self, proto, servers, hdlrcls, testfunc): for svrcls in servers: addr = self.pickaddr(proto) if verbose: print "ADDR =", addr print "CLASS =", svrcls t = ServerThread(addr, svrcls, hdlrcls) if verbose: print "server created" t.start() if verbose: print "server running" for i in range(NREQ): t.ready.wait...
c190864e386a020aa922a1f36acf2200f2b77d7b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/c190864e386a020aa922a1f36acf2200f2b77d7b/test_socketserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 14247, 12, 2890, 16, 3760, 16, 7084, 16, 366, 5761, 86, 6429, 16, 1842, 644, 4672, 364, 5893, 86, 6429, 316, 7084, 30, 3091, 273, 365, 18, 11503, 4793, 12, 9393, 13, 309, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 14247, 12, 2890, 16, 3760, 16, 7084, 16, 366, 5761, 86, 6429, 16, 1842, 644, 4672, 364, 5893, 86, 6429, 316, 7084, 30, 3091, 273, 365, 18, 11503, 4793, 12, 9393, 13, 309, 3...
self.assertTrue(all(self.store50.varArray == newStore.varArray)) self.assertTrue(self.store50.varNameDict == newStore.varNameDict)
self.assertTrue(all(self.store.varArray == newStore.varArray)) self.assertTrue(self.store.varNameDict == newStore.varNameDict)
def test_save_load_pickle(self): '''ArrayStore: Test saving and loading pickle files.''' fileName = 'test_datastore.dstore' self.store50.save(fileName) newStore = ArrayStore() newStore.load(fileName) self.assertTrue(all(self.store50.varArray == newStore.varArray)) self.assertTrue(self.store50.varNameDict == newStore.va...
4f7397e773983ae72bd3ffebc2d43ad44a277e2e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2720/4f7397e773983ae72bd3ffebc2d43ad44a277e2e/storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5688, 67, 945, 67, 20847, 12, 2890, 4672, 9163, 1076, 2257, 30, 7766, 12392, 471, 7153, 13379, 1390, 1093, 6309, 3968, 273, 296, 3813, 67, 24522, 18, 72, 2233, 11, 365, 18, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5688, 67, 945, 67, 20847, 12, 2890, 4672, 9163, 1076, 2257, 30, 7766, 12392, 471, 7153, 13379, 1390, 1093, 6309, 3968, 273, 296, 3813, 67, 24522, 18, 72, 2233, 11, 365, 18, 2...
def readmodule_ex(module, path=[]):
def readmodule_ex(module, path=None):
def readmodule_ex(module, path=[]): '''Read a module file and return a dictionary of classes. Search for MODULE in PATH and sys.path, read and parse the module and return a dictionary with one entry for each class found in the module. If INPACKAGE is true, it must be the dotted name of the package in which we are sea...
7d4cac5de777aad61727f6a068b3c392bb76f3e3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/7d4cac5de777aad61727f6a068b3c392bb76f3e3/pyclbr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 2978, 67, 338, 12, 2978, 16, 589, 33, 7036, 4672, 9163, 1994, 279, 1605, 585, 471, 327, 279, 3880, 434, 3318, 18, 225, 5167, 364, 14057, 316, 7767, 471, 2589, 18, 803, 16, 855, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2978, 67, 338, 12, 2978, 16, 589, 33, 7036, 4672, 9163, 1994, 279, 1605, 585, 471, 327, 279, 3880, 434, 3318, 18, 225, 5167, 364, 14057, 316, 7767, 471, 2589, 18, 803, 16, 855, ...
embed_map_html = PageTemplateFile('zpt/map_embed', globals())
_embed_map_html = PageTemplateFile('zpt/map_embed', globals()) def embed_map_html(self, REQUEST): """ embeddable map, for iframe """ if 'map_embed' in self.objectIds(): return self.map_embed(REQUEST) else: return self._embed_map_html(REQUEST)
def _index_template(self): if hasattr(self, 'map_index'): return self._getOb('map_index') for skel_handler in reversed(self.get_all_skel_handlers()): skel_path = skel_handler.skel_path map_index_path = os.path.join(skel_path, 'others', 'map_index.zpt') if os.path.isfile(map_index_path): return PageTemplateFile(map_inde...
b4c0fe11072ba44c6337fca92ea2660cae551118 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/b4c0fe11072ba44c6337fca92ea2660cae551118/GeoMapTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1615, 67, 3202, 12, 2890, 4672, 309, 3859, 12, 2890, 16, 296, 1458, 67, 1615, 11, 4672, 327, 365, 6315, 588, 10516, 2668, 1458, 67, 1615, 6134, 364, 4343, 292, 67, 4176, 316, 9553...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1615, 67, 3202, 12, 2890, 4672, 309, 3859, 12, 2890, 16, 296, 1458, 67, 1615, 11, 4672, 327, 365, 6315, 588, 10516, 2668, 1458, 67, 1615, 6134, 364, 4343, 292, 67, 4176, 316, 9553...
import os root = os.path.splitdrive(os.path.realpath("."))[0] + '\\'
root = os.path.splitdrive(os.path.abspath(path))[0] + '\\'
def get_file_system(path): import os root = os.path.splitdrive(os.path.realpath("."))[0] + '\\' import ctypes kernel32 = ctypes.windll.kernel32 buf = ctypes.create_string_buffer("", 100) if kernel32.GetVolumeInformationA(root, None, 0, None, None, None, buf, len(buf)): return buf.value
ccfdcd0cb25290d6250e4e4e5a55f3ee1bf31087 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/ccfdcd0cb25290d6250e4e4e5a55f3ee1bf31087/test_os.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 768, 67, 4299, 12, 803, 4672, 1365, 273, 1140, 18, 803, 18, 4939, 25431, 12, 538, 18, 803, 18, 5113, 803, 12, 803, 3719, 63, 20, 65, 397, 5282, 1930, 6983, 5536, 1578, 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, 336, 67, 768, 67, 4299, 12, 803, 4672, 1365, 273, 1140, 18, 803, 18, 4939, 25431, 12, 538, 18, 803, 18, 5113, 803, 12, 803, 3719, 63, 20, 65, 397, 5282, 1930, 6983, 5536, 1578, 273, ...
"""Test new"""
def test_new(self): """Test new""" cal = icalendarTable()
4284d14984f2a4b3da93b77281110353f761aa67 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12681/4284d14984f2a4b3da93b77281110353f761aa67/test_ical.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2704, 12, 2890, 4672, 1443, 273, 277, 11650, 1388, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2704, 12, 2890, 4672, 1443, 273, 277, 11650, 1388, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
' width="100%" border="0">\n'
' width="100%%" border="0">\n'
def fixfile(inpath, input_lines, outfile): from email.Utils import parseaddr basename = os.path.basename(inpath) infile = iter(input_lines) # convert plain text pep to minimal XHTML markup print >> outfile, DTD print >> outfile, '<html>' print >> outfile, '<head>' # head header = [] pep = "" title = "" for line in infi...
a99937f8d5487f32da2f7c673ab16873950fc093 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/a99937f8d5487f32da2f7c673ab16873950fc093/pep2html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 768, 12, 267, 803, 16, 810, 67, 3548, 16, 8756, 4672, 628, 2699, 18, 1989, 1930, 1109, 4793, 4882, 273, 1140, 18, 803, 18, 13909, 12, 267, 803, 13, 14568, 273, 1400, 12, 2630, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2917, 768, 12, 267, 803, 16, 810, 67, 3548, 16, 8756, 4672, 628, 2699, 18, 1989, 1930, 1109, 4793, 4882, 273, 1140, 18, 803, 18, 13909, 12, 267, 803, 13, 14568, 273, 1400, 12, 2630, ...
for file in os.listdir(siteconfig.ruleset_dir): pl = __import__(os.path.splitext(file)[0], None, None, [''])
for file in os.listdir(siteconfig.ruleset_dir): pl = __import__(os.path.splitext(file)[0], None, None, [''])
def __init__(self): sys.path.insert(0, siteconfig.ruleset_dir)
6c4d0d1c997d6e6a67b4a3d914aa3799bca4870c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3386/6c4d0d1c997d6e6a67b4a3d914aa3799bca4870c/plugins.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2589, 18, 803, 18, 6387, 12, 20, 16, 10982, 22703, 18, 7482, 278, 67, 1214, 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, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2589, 18, 803, 18, 6387, 12, 20, 16, 10982, 22703, 18, 7482, 278, 67, 1214, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
gtk.accel_map_change_entry('<Guake>/Quit', key, mask, True) ctxbtn = self.guake.get_widget('context_close') ctxbtn.set_accel_path('<Guake>/Quit')
self.accel_group.connect_group(key, mask, gtk.ACCEL_VISIBLE, gtk.main_quit)
def load_accelerators(self): """Reads all gconf paths under /apps/guake/keybindings/local and adds to the main accel_group. """ gets = lambda x:self.client.get_string(LKEY(x)) key, mask = gtk.accelerator_parse(gets('quit')) if key > 0: gtk.accel_map_change_entry('<Guake>/Quit', key, mask, True) ctxbtn = self.guake.get_...
c87d938e304a9095234a1e40819b25d5fd433bef /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11147/c87d938e304a9095234a1e40819b25d5fd433bef/guake.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 8981, 22990, 3062, 12, 2890, 4672, 3536, 7483, 777, 314, 3923, 2953, 3613, 342, 11411, 19, 6891, 911, 19, 856, 15863, 19, 3729, 471, 4831, 358, 326, 2774, 15153, 67, 1655, 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, 1262, 67, 8981, 22990, 3062, 12, 2890, 4672, 3536, 7483, 777, 314, 3923, 2953, 3613, 342, 11411, 19, 6891, 911, 19, 856, 15863, 19, 3729, 471, 4831, 358, 326, 2774, 15153, 67, 1655, 18, ...
dstNow = t[-1] dstAtRollover = time.localtime(newRolloverAt)[-1] if dstNow != dstAtRollover: if not dstNow: newRolloverAt = newRolloverAt - 3600 else: newRolloverAt = newRolloverAt + 3600
if not utc: dstNow = t[-1] dstAtRollover = time.localtime(newRolloverAt)[-1] if dstNow != dstAtRollover: if not dstNow: newRolloverAt = newRolloverAt - 3600 else: newRolloverAt = newRolloverAt + 3600
def __init__(self, filename, when='h', interval=1, backupCount=0, encoding=None, delay=0): BaseRotatingHandler.__init__(self, filename, 'a', encoding, delay) self.when = string.upper(when) self.backupCount = backupCount # Calculate the real rollover interval, which is just the number of # seconds between rollovers. Al...
a12da73c468ca08a15671dc9a69bee3bb745cb4f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/a12da73c468ca08a15671dc9a69bee3bb745cb4f/handlers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 16, 1347, 2218, 76, 2187, 3673, 33, 21, 16, 5114, 1380, 33, 20, 16, 2688, 33, 7036, 16, 4624, 33, 20, 4672, 3360, 8570, 1776, 1503, 16186, 2738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 16, 1347, 2218, 76, 2187, 3673, 33, 21, 16, 5114, 1380, 33, 20, 16, 2688, 33, 7036, 16, 4624, 33, 20, 4672, 3360, 8570, 1776, 1503, 16186, 2738, ...
hints.append("The owner will change to %s" % req.authname)
hints.append(_("The owner will change to %s") % req.authname)
def render_ticket_action_control(self, req, ticket, action): from trac.ticket import model
090fd7fafec0ef4708e2b8b11b5429e8c09a3be6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2831/090fd7fafec0ef4708e2b8b11b5429e8c09a3be6/default_workflow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 16282, 67, 1128, 67, 7098, 12, 2890, 16, 1111, 16, 9322, 16, 1301, 4672, 628, 1284, 71, 18, 16282, 1930, 938, 2, 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, 1743, 67, 16282, 67, 1128, 67, 7098, 12, 2890, 16, 1111, 16, 9322, 16, 1301, 4672, 628, 1284, 71, 18, 16282, 1930, 938, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
image.save("display.png")
image.save("display_"+treefile+".png")
def create_tree_image(size, root, T): scale = root.get_scale(T) xd = scale[1]-scale[0] yd = scale[3]-scale[2] scale = (xd/size[0],scale[0],yd/size[1],scale[2]) points = [[float(i),float(j),1.0, 0] for i in xrange(size[0]) for j in xrange(size[1])] print "Computing display" draw_node(root,points, T, scale) image = Image...
583207f3ef9072f3ba6e5f28b4b0a51ca3f4a5c8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12913/583207f3ef9072f3ba6e5f28b4b0a51ca3f4a5c8/make_display.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3413, 67, 2730, 12, 1467, 16, 1365, 16, 399, 4672, 3159, 273, 1365, 18, 588, 67, 5864, 12, 56, 13, 20009, 273, 3159, 63, 21, 65, 17, 5864, 63, 20, 65, 677, 72, 273, 3159, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3413, 67, 2730, 12, 1467, 16, 1365, 16, 399, 4672, 3159, 273, 1365, 18, 588, 67, 5864, 12, 56, 13, 20009, 273, 3159, 63, 21, 65, 17, 5864, 63, 20, 65, 677, 72, 273, 3159, ...
sage: print B[1, 1]
sage: B[1, 1]
def __getitem__(self, rc): """ If L is a LatinSquare then this method allows us to evaluate L[r, c].
9087d14f978c663baae98e9a365c4a3aa2a6f24c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/9087d14f978c663baae98e9a365c4a3aa2a6f24c/latin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 4519, 4672, 3536, 971, 511, 353, 279, 11134, 267, 22255, 1508, 333, 707, 5360, 584, 358, 5956, 511, 63, 86, 16, 276, 8009, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 4519, 4672, 3536, 971, 511, 353, 279, 11134, 267, 22255, 1508, 333, 707, 5360, 584, 358, 5956, 511, 63, 86, 16, 276, 8009, 2, -100, -100, -100, -100, -1...
if (link.args == [Constant(implicitexc)] and not link.target.exits and hasattr(link.target, 'exc_type')):
if (isinstance(link.exitcase, type(Exception)) and issubclass(link.exitcase, Exception) and link.args == [Constant(implicitexc)] and len(link.target.exits) == 0 and hasattr(link.target, 'exc_type')):
def visit(link): if isinstance(link, Link) and link in link.prevblock.exits: if (link.args == [Constant(implicitexc)] and not link.target.exits and hasattr(link.target, 'exc_type')): lst = list(link.prevblock.exits) lst.remove(link) link.prevblock.exits = tuple(lst)
3980311ad0d6fec94cb5d404e6a8cb0f346bacb5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/3980311ad0d6fec94cb5d404e6a8cb0f346bacb5/simplify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 12, 1232, 4672, 309, 1549, 12, 1232, 16, 4048, 13, 471, 1692, 316, 1692, 18, 10001, 2629, 18, 338, 1282, 30, 309, 261, 291, 1336, 12, 1232, 18, 8593, 3593, 16, 618, 12, 503, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3757, 12, 1232, 4672, 309, 1549, 12, 1232, 16, 4048, 13, 471, 1692, 316, 1692, 18, 10001, 2629, 18, 338, 1282, 30, 309, 261, 291, 1336, 12, 1232, 18, 8593, 3593, 16, 618, 12, 503, 37...
util.execute('bunzip2 %s; gzip -n -9 %s', syspath, syspath[:-4])
util.execute('bunzip2 %s; gzip -n -9 %s' %(syspath, syspath[:-4])
def do(self):
827e5d4e5878ab5e9f4a24a0659bb4594c3e70a3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/827e5d4e5878ab5e9f4a24a0659bb4594c3e70a3/destdirpolicy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 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, 741, 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, -1...
exceptions=exceptions)
opts.app, exceptions=exceptions)
def createLocalization(source, dest, apps = ['browser'], exceptions = {}): ''' Creates a new localization. @type source: string @param source: path to the mozilla sources to use @type dest: string @param dest: path to the localization to create or update @type apps: array of strings @param apps: the applications ...
88bf7be2ef43482cbc062fcbfdc31e3edf58402f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11102/88bf7be2ef43482cbc062fcbfdc31e3edf58402f/l10n.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 19157, 12, 3168, 16, 1570, 16, 8279, 273, 10228, 11213, 17337, 4798, 273, 2618, 4672, 9163, 10210, 279, 394, 17981, 18, 225, 632, 723, 225, 1084, 30, 533, 632, 891, 1084, 30, 589, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19157, 12, 3168, 16, 1570, 16, 8279, 273, 10228, 11213, 17337, 4798, 273, 2618, 4672, 9163, 10210, 279, 394, 17981, 18, 225, 632, 723, 225, 1084, 30, 533, 632, 891, 1084, 30, 589, ...
p = GRun('merge-recursive', base, '--', head1, head2).returns([0, 1])
p = GRun('merge-recursive', base, '--', head1, head2).env( { 'GITHEAD_%s' % base: 'ancestor', 'GITHEAD_%s' % head1: 'current', 'GITHEAD_%s' % head2: 'patched'}).returns([0, 1])
def merge_recursive(base, head1, head2): """Perform a 3-way merge between base, head1 and head2 into the local tree """ refresh_index() p = GRun('merge-recursive', base, '--', head1, head2).returns([0, 1]) output = p.output_lines() if p.exitcode == 0: # No problems return else: # exitcode == 1 # There were conflicts co...
78d1c847f77f3ed482574d75b682f1408cdf2002 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12366/78d1c847f77f3ed482574d75b682f1408cdf2002/git.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2691, 67, 10543, 12, 1969, 16, 910, 21, 16, 910, 22, 4672, 3536, 4990, 279, 890, 17, 1888, 2691, 3086, 1026, 16, 910, 21, 471, 910, 22, 1368, 326, 1191, 2151, 3536, 4460, 67, 1615, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2691, 67, 10543, 12, 1969, 16, 910, 21, 16, 910, 22, 4672, 3536, 4990, 279, 890, 17, 1888, 2691, 3086, 1026, 16, 910, 21, 471, 910, 22, 1368, 326, 1191, 2151, 3536, 4460, 67, 1615, 1...
return dispatch_table[node.symbol](self, node)
return func(self, node)
def dispatch(self, node): if isinstance(node, Nonterminal): if node.symbol not in dispatch_table: if __general_nonterminal_visit: return __general_nonterminal_visit(self, node) else: return dispatch_table[node.symbol](self, node) elif isinstance(node, Symbol): if node.symbol not in dispatch_table: if __general_symbol_v...
4854f3840749b007991aabfab299eb1acf367452 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/4854f3840749b007991aabfab299eb1acf367452/tree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3435, 12, 2890, 16, 756, 4672, 309, 1549, 12, 2159, 16, 3858, 15979, 4672, 309, 756, 18, 7175, 486, 316, 3435, 67, 2121, 30, 309, 1001, 12259, 67, 5836, 15979, 67, 11658, 30, 327, 1001...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3435, 12, 2890, 16, 756, 4672, 309, 1549, 12, 2159, 16, 3858, 15979, 4672, 309, 756, 18, 7175, 486, 316, 3435, 67, 2121, 30, 309, 1001, 12259, 67, 5836, 15979, 67, 11658, 30, 327, 1001...
logo = Image(group.get_logo_filename(), width=logo_height*ratio, height=logo_height)
logo = Image(group.logo.path, width=logo_height*ratio, height=logo_height)
def pdf(request, group, list, is_admin=False): """PDF version of list""" # Get accounts to show if list.accounts.all().count(): accounts = list.accounts.all() else: accounts = group.user_account_set.filter(active=True) # Create response filename = '%s-%s-%s' % (date.today(), group, list) response = HttpResponse(mime...
d8b7c07a81a5df883fbb642e5564414fdb9dc755 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12178/d8b7c07a81a5df883fbb642e5564414fdb9dc755/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8169, 12, 2293, 16, 1041, 16, 666, 16, 353, 67, 3666, 33, 8381, 4672, 3536, 17508, 1177, 434, 666, 8395, 225, 468, 968, 9484, 358, 2405, 309, 666, 18, 13739, 18, 454, 7675, 1883, 13332...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8169, 12, 2293, 16, 1041, 16, 666, 16, 353, 67, 3666, 33, 8381, 4672, 3536, 17508, 1177, 434, 666, 8395, 225, 468, 968, 9484, 358, 2405, 309, 666, 18, 13739, 18, 454, 7675, 1883, 13332...
finally:
finally:
def _install_type_handler(types, dir, desc, application=None, overwrite=True, info=None): """Internal function. Does the work of setting MIME-types or MIME-thumb""" if len(types)<1: return if not application: application=rox.app_dir if application[0]!='/': application=os.path.abspath(application) win=InstallList(app...
24a66272279b24eb5e92a51715818cadf6826225 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4591/24a66272279b24eb5e92a51715818cadf6826225/mime_handler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5425, 67, 723, 67, 4176, 12, 2352, 16, 1577, 16, 3044, 16, 2521, 33, 7036, 16, 6156, 33, 5510, 16, 1123, 33, 7036, 4672, 3536, 3061, 445, 18, 225, 9637, 326, 1440, 434, 3637, 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, 5425, 67, 723, 67, 4176, 12, 2352, 16, 1577, 16, 3044, 16, 2521, 33, 7036, 16, 6156, 33, 5510, 16, 1123, 33, 7036, 4672, 3536, 3061, 445, 18, 225, 9637, 326, 1440, 434, 3637, 13...
def export(self, outfile, level, namespace_='', name_='AAPolymorphicStateSet', namespacedef_=''): showIndent(outfile, level) outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) self.exportAttributes(outfile, level, namespace_, name_='AAPolymorphicStateSet') if self.hasContent_(...
def export(self, outfile, level, namespace_='', name_='AAPolymorphicStateSet', namespacedef_=''): showIndent(outfile, level) outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) self.exportAttributes(outfile, level, namespace_, name_='AAPolymorphicStateSet') if self.hasContent_(...
10f2a4b3101435822c472af9b202a5a0bb496366 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/10f2a4b3101435822c472af9b202a5a0bb496366/_nexml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 12, 2890, 16, 8756, 16, 1801, 16, 1981, 67, 2218, 2187, 508, 67, 2218, 37, 2203, 355, 21976, 1119, 694, 2187, 1981, 536, 67, 2218, 11, 4672, 2405, 7790, 12, 26050, 16, 1801, 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, 3359, 12, 2890, 16, 8756, 16, 1801, 16, 1981, 67, 2218, 2187, 508, 67, 2218, 37, 2203, 355, 21976, 1119, 694, 2187, 1981, 536, 67, 2218, 11, 4672, 2405, 7790, 12, 26050, 16, 1801, 13, ...
successful[path] = True else: failed[path] = res['Message']
gLogger.info("SRM2Storage.createDirectory: Successfully created directory on storage: %s" % url) successful[url] = True else: gLogger.error("SRM2Storage.createDirectory: Failed to create directory on storage.", url) failed[url] = res['Message']
def createDirectory(self,path): """ Make recursively new directory(ies) on the physical storage """ if type(path) == types.StringType: urls = [path] elif type(path) == types.ListType: urls = path else: return S_ERROR("SRM2Storage.createDirectory: Supplied path must be string or list of strings") successful = {} failed ...
0c142939ddc410eebdc2cef5627d4332317e31b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/0c142939ddc410eebdc2cef5627d4332317e31b1/SRM2Storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28430, 12, 2890, 16, 803, 4672, 3536, 4344, 8536, 394, 1867, 12, 606, 13, 603, 326, 11640, 2502, 3536, 309, 618, 12, 803, 13, 422, 1953, 18, 780, 559, 30, 6903, 273, 306, 803, 65, 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, 28430, 12, 2890, 16, 803, 4672, 3536, 4344, 8536, 394, 1867, 12, 606, 13, 603, 326, 11640, 2502, 3536, 309, 618, 12, 803, 13, 422, 1953, 18, 780, 559, 30, 6903, 273, 306, 803, 65, 13...
If specified, `host' is the name of the remote host to which to connect. If specified, `port' specifies the port to which to connect. By default, smtplib.SMTP_PORT is used.
If specified, `host' is the name of the remote host to which to connect. If specified, `port' specifies the port to which to connect. By default, smtplib.SMTP_PORT is used.
def __init__(self, host = '', port = 0): """Initialize a new instance.
a7d9bdfab61551ed16efc55c1b6c37268c2d9832 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a7d9bdfab61551ed16efc55c1b6c37268c2d9832/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1479, 273, 10226, 1756, 273, 374, 4672, 3536, 7520, 279, 394, 791, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1479, 273, 10226, 1756, 273, 374, 4672, 3536, 7520, 279, 394, 791, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.perror[wh] = sqrt(d[wh])
self.perror[wh] = numpy.sqrt(d[wh])
def iterfunct(myfunct, p, iter, fnorm, functkw=None, parinfo=None, quiet=0, dof=None, [iterkw keywords here])
14558c711c4693ee25ced2a48d6eaf300224bc75 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/682/14558c711c4693ee25ced2a48d6eaf300224bc75/mpfit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 74, 6931, 12, 4811, 74, 6931, 16, 293, 16, 1400, 16, 2295, 535, 16, 12882, 9987, 33, 7036, 16, 779, 1376, 33, 7036, 16, 10902, 33, 20, 16, 741, 74, 33, 7036, 16, 306, 2165, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 74, 6931, 12, 4811, 74, 6931, 16, 293, 16, 1400, 16, 2295, 535, 16, 12882, 9987, 33, 7036, 16, 779, 1376, 33, 7036, 16, 10902, 33, 20, 16, 741, 74, 33, 7036, 16, 306, 2165, 9...
12. To calculate the kernel of the ensuing map $\mathbb{Z}^m \to (\mathbb{Z}/24\mathbb{Z})^n$ we lift it arbitrarily to an integer
12. To calculate the kernel of the ensuing map $\ZZ^m \to (\ZZ/24\ZZ)^n$ we lift it arbitrarily to an integer
def basis(self, reduce=True): r""" Produce a basis for the free abelian group of eta-products of level N (under multiplication), attempting to find basis vectors of the smallest possible degree.
1f3a538d6f6f09006ed698b975e492622ef875e5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/1f3a538d6f6f09006ed698b975e492622ef875e5/etaproducts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10853, 12, 2890, 16, 5459, 33, 5510, 4672, 436, 8395, 23278, 279, 10853, 364, 326, 4843, 1223, 292, 2779, 1041, 434, 14251, 17, 18736, 434, 1801, 423, 261, 9341, 23066, 3631, 15600, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10853, 12, 2890, 16, 5459, 33, 5510, 4672, 436, 8395, 23278, 279, 10853, 364, 326, 4843, 1223, 292, 2779, 1041, 434, 14251, 17, 18736, 434, 1801, 423, 261, 9341, 23066, 3631, 15600, 358, ...
profile.runctx('_eventLoop.loop()', globals(), locals(), profile_file + ".event_loop")
profile.runctx('_eventLoop.loop()', globals(), locals(), profile_file + ".event_loop")
def start_loop(): _eventLoop.loop()
188dd78cafac2eb64514bf34f3463877d0d9d7c5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/188dd78cafac2eb64514bf34f3463877d0d9d7c5/eventloop.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 6498, 13332, 389, 2575, 6452, 18, 6498, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 6498, 13332, 389, 2575, 6452, 18, 6498, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
return HttpResponseRedirect(next)
if next is not None: return HttpResponseRedirect(next) if next_page is None: return render(template_name, { 'title': _('Logged out')}, context_instance=RequestContext(request)) return HttpResponseRedirect(next_page or request.path)
def signout(request): """ signout from the website. Remove openid from session and kill it. """ try: del request.session['openid'] except KeyError: pass next = clean_next(request.GET.get('next')) logout(request) return HttpResponseRedirect(next)
dec7f509e90fc7575194049b7df2f7d53957bcbb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5675/dec7f509e90fc7575194049b7df2f7d53957bcbb/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1573, 659, 12, 2293, 4672, 3536, 1573, 659, 628, 326, 12504, 18, 3581, 21629, 628, 1339, 471, 8673, 518, 18, 3536, 775, 30, 1464, 590, 18, 3184, 3292, 20619, 3546, 1335, 4999, 30, 1342, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1573, 659, 12, 2293, 4672, 3536, 1573, 659, 628, 326, 12504, 18, 3581, 21629, 628, 1339, 471, 8673, 518, 18, 3536, 775, 30, 1464, 590, 18, 3184, 3292, 20619, 3546, 1335, 4999, 30, 1342, ...
sys.boa_debugger = self
def __init__(self): Bdb.__init__(self) self.fncache = {}
afdd8943322aff0810c0bc7313207940ce85c161 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/afdd8943322aff0810c0bc7313207940ce85c161/IsolatedDebugger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 605, 1966, 16186, 2738, 972, 12, 2890, 13, 365, 18, 4293, 2493, 273, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 605, 1966, 16186, 2738, 972, 12, 2890, 13, 365, 18, 4293, 2493, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
handler = self.lib.handlers['intArgument'] assert_equals(handler._arg_coercer([self.lib]), [self.lib]) handler = self.lib.handlers['booleanArgument'] assert_equals(handler._arg_coercer([42]), [42])
self._test_coercion(self._handler_named('intArgument'), [self.lib], [self.lib]) self._test_coercion(self._handler_named('booleanArgument'), [42], [42])
def test_arguments_that_are_not_strings_are_not_coerced(self): handler = self.lib.handlers['intArgument'] assert_equals(handler._arg_coercer([self.lib]), [self.lib]) handler = self.lib.handlers['booleanArgument'] assert_equals(handler._arg_coercer([42]), [42])
d798a90e3520a631e948b83c29999ddb51ea1790 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7408/d798a90e3520a631e948b83c29999ddb51ea1790/test_handlers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7099, 67, 19056, 67, 834, 67, 902, 67, 10219, 67, 834, 67, 902, 67, 2894, 2765, 72, 12, 2890, 4672, 1838, 273, 365, 18, 2941, 18, 11046, 3292, 474, 1379, 3546, 1815, 67, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7099, 67, 19056, 67, 834, 67, 902, 67, 10219, 67, 834, 67, 902, 67, 2894, 2765, 72, 12, 2890, 4672, 1838, 273, 365, 18, 2941, 18, 11046, 3292, 474, 1379, 3546, 1815, 67, 14...
self.check_sizeof(class_oldstyle, h + 6*p)
self.check_sizeof(class_oldstyle, size(h + '6P'))
def method(): pass
9cbed723c019f67adc5f76d1f21ed8d14c9df22c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/9cbed723c019f67adc5f76d1f21ed8d14c9df22c/test_sys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 707, 13332, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 707, 13332, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
context._rounding_decision == ALWAYS_ROUND return ans._fix(context)
if context._rounding_decision == ALWAYS_ROUND: return ans._fix(context) return ans
def max(self, other, context=None): """Returns the larger value.
8ba896ad541ea1d2fc9fe67ed0a591eccacd10c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8ba896ad541ea1d2fc9fe67ed0a591eccacd10c5/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 943, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 1356, 326, 10974, 460, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 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, 943, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 1356, 326, 10974, 460, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
unittest.run()
unittest.main()
def additional_tests(): return unittest.TestSuite([ doctest.DocFileSuite('../doc/%s' % os.path.basename(path)) for path in glob(os.path.dirname(__file__) + '/../doc/*.rst') if os.path.split(path)[-1] != 'index.rst' # skips time-dependent doctest in index.rst ])
d596a32e0e39a82f5fda671d8209d46d59c9db5d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10979/d596a32e0e39a82f5fda671d8209d46d59c9db5d/test_rst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3312, 67, 16341, 13332, 327, 2836, 3813, 18, 4709, 13587, 3816, 31263, 395, 18, 1759, 812, 13587, 2668, 6216, 2434, 5258, 87, 11, 738, 1140, 18, 803, 18, 13909, 12, 803, 3719, 364, 589, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3312, 67, 16341, 13332, 327, 2836, 3813, 18, 4709, 13587, 3816, 31263, 395, 18, 1759, 812, 13587, 2668, 6216, 2434, 5258, 87, 11, 738, 1140, 18, 803, 18, 13909, 12, 803, 3719, 364, 589, ...
return 0
return 0
def kill_connection(self): # kills the rssi detection connection if self.sock != None: self.sock.close() self.sock = None return 0 #ret_val if popen used
0ea2b8ccdc98ce67a127bf0bbc959c09c2c356e5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/61/0ea2b8ccdc98ce67a127bf0bbc959c09c2c356e5/proximity.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 67, 4071, 12, 2890, 4672, 468, 8673, 87, 326, 18817, 77, 11649, 1459, 309, 365, 18, 15031, 480, 599, 30, 365, 18, 15031, 18, 4412, 1435, 365, 18, 15031, 273, 599, 327, 374, 468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 67, 4071, 12, 2890, 4672, 468, 8673, 87, 326, 18817, 77, 11649, 1459, 309, 365, 18, 15031, 480, 599, 30, 365, 18, 15031, 18, 4412, 1435, 365, 18, 15031, 273, 599, 327, 374, 468, ...
newText = oldText[:match.end()] + u'\n<references/>\n' + oldText[match.end():]
newText = oldText[:match.end()] + u'\n' + self.referencesText + u'\n' + oldText[match.end():]
def addReferences(self, oldText): """ Tries to add a references tag into an existing section where it fits into. If there is no such section, creates a new section containing the references tag. * Returns : The modified pagetext """
1da16dcf08300caa8e57483dd0807cc98e37958a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/1da16dcf08300caa8e57483dd0807cc98e37958a/noreferences.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 8221, 12, 2890, 16, 1592, 1528, 4672, 3536, 10000, 281, 358, 527, 279, 5351, 1047, 1368, 392, 2062, 2442, 1625, 518, 13351, 1368, 18, 971, 1915, 353, 1158, 4123, 2442, 16, 3414, 279...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 8221, 12, 2890, 16, 1592, 1528, 4672, 3536, 10000, 281, 358, 527, 279, 5351, 1047, 1368, 392, 2062, 2442, 1625, 518, 13351, 1368, 18, 971, 1915, 353, 1158, 4123, 2442, 16, 3414, 279...
dbg("debugserver: done handling")
ddbg("debugserver: done handling")
def handle(self): dbg("debugserver: handling") try: self.socketio = self.request.makefile() sys.stdout = self.socketio sys.stdin = self.socketio
528aaa06b6d1da43df857560969166229ecd0f23 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1032/528aaa06b6d1da43df857560969166229ecd0f23/debugserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 4672, 28966, 2932, 4148, 3567, 30, 5057, 7923, 775, 30, 365, 18, 7814, 1594, 273, 365, 18, 2293, 18, 6540, 768, 1435, 2589, 18, 10283, 273, 365, 18, 7814, 1594, 2589, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 12, 2890, 4672, 28966, 2932, 4148, 3567, 30, 5057, 7923, 775, 30, 365, 18, 7814, 1594, 273, 365, 18, 2293, 18, 6540, 768, 1435, 2589, 18, 10283, 273, 365, 18, 7814, 1594, 2589, 1...
":PlugIns:ctbmodule.CFM68K.",
":PlugIns:ctb.CFM68K.", ":PlugIns:imgmodules.ppc.",
def buildapplet(top, dummy, list): """Create a PPC python applet""" template = mkapplet.findtemplate() for src in list: if src[-3:] != '.py': raise 'Should end in .py', src base = os.path.basename(src) dst = os.path.join(top, base)[:-3] src = os.path.join(top, src) try: os.unlink(dst) except os.error: pass print 'Build...
057971528d37cbb45d80d7d16fdfe890e3bd356e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/057971528d37cbb45d80d7d16fdfe890e3bd356e/fullbuild.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 438, 1469, 12, 3669, 16, 9609, 16, 666, 4672, 3536, 1684, 279, 453, 3513, 5790, 21853, 8395, 1542, 273, 5028, 438, 1469, 18, 4720, 3202, 1435, 364, 1705, 316, 666, 30, 309, 1705, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 438, 1469, 12, 3669, 16, 9609, 16, 666, 4672, 3536, 1684, 279, 453, 3513, 5790, 21853, 8395, 1542, 273, 5028, 438, 1469, 18, 4720, 3202, 1435, 364, 1705, 316, 666, 30, 309, 1705, ...
def _is_some_method(object): return inspect.ismethod(object) or inspect.ismethoddescriptor(object)
def _is_some_method(obj): return inspect.ismethod(obj) or inspect.ismethoddescriptor(obj)
def _is_some_method(object): return inspect.ismethod(object) or inspect.ismethoddescriptor(object)
329f78b99c88d5af01f611c24d7a874c19c04b3c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/329f78b99c88d5af01f611c24d7a874c19c04b3c/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 291, 67, 19068, 67, 2039, 12, 2603, 4672, 327, 5334, 18, 291, 2039, 12, 2603, 13, 578, 5334, 18, 291, 2039, 12628, 12, 2603, 13, 225, 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, 291, 67, 19068, 67, 2039, 12, 2603, 4672, 327, 5334, 18, 291, 2039, 12, 2603, 13, 578, 5334, 18, 291, 2039, 12628, 12, 2603, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, ...
objectstore.context.current = s1
objectstore.registry.set(s1)
def test_update(self): p1 = self.create_person_one() objectstore.flush() objectstore.clear() person = Person.query.select()[0] person.gender = 'F' objectstore.flush() objectstore.clear() self.assertEquals(person.row_version, 2)
a0ed498ff553b90e805eafa8fad85fe3c60fdb37 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1074/a0ed498ff553b90e805eafa8fad85fe3c60fdb37/activemapper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2725, 12, 2890, 4672, 293, 21, 273, 365, 18, 2640, 67, 12479, 67, 476, 1435, 733, 2233, 18, 11330, 1435, 733, 2233, 18, 8507, 1435, 225, 6175, 273, 11573, 18, 2271, 18, 4025,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2725, 12, 2890, 4672, 293, 21, 273, 365, 18, 2640, 67, 12479, 67, 476, 1435, 733, 2233, 18, 11330, 1435, 733, 2233, 18, 8507, 1435, 225, 6175, 273, 11573, 18, 2271, 18, 4025,...
while self.cur[5]:
while self.cur[-1]:
def simulate_cmd_complete(self): get_time = self.get_time t = get_time() - self.t while self.cur[5]: # We *can* cause assertion errors here if # dispatch_trace_return checks for a frame match! a = self.dispatch['return'](self, self.cur[4], t) t = 0 self.t = get_time() - t
85fcd770d85deef3234140c75afc2ecf4781b36e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/85fcd770d85deef3234140c75afc2ecf4781b36e/profile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20089, 67, 4172, 67, 6226, 12, 2890, 4672, 336, 67, 957, 273, 365, 18, 588, 67, 957, 268, 273, 336, 67, 957, 1435, 300, 365, 18, 88, 1323, 365, 18, 1397, 18919, 21, 14542, 468, 1660,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20089, 67, 4172, 67, 6226, 12, 2890, 4672, 336, 67, 957, 273, 365, 18, 588, 67, 957, 268, 273, 336, 67, 957, 1435, 300, 365, 18, 88, 1323, 365, 18, 1397, 18919, 21, 14542, 468, 1660,...
group = request.GET.get('group', None) if group != None:
if group != "":
def dashboard(request, limit=50, template_name='reviews/dashboard.html'): view = request.GET.get('view', 'incoming') if view == 'outgoing': review_requests = \ reviews_db.get_review_requests_from_user(request.user.username, request.user) elif view == 'to-me': review_requests = reviews_db.get_review_requests_to_user_di...
c2e585d8da8ce54424674d49ab92683a8dd44a91 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1600/c2e585d8da8ce54424674d49ab92683a8dd44a91/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11825, 12, 2293, 16, 1800, 33, 3361, 16, 1542, 67, 529, 2218, 266, 7061, 19, 13479, 18, 2620, 11, 4672, 1476, 273, 590, 18, 3264, 18, 588, 2668, 1945, 2187, 296, 31033, 6134, 225, 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, 11825, 12, 2293, 16, 1800, 33, 3361, 16, 1542, 67, 529, 2218, 266, 7061, 19, 13479, 18, 2620, 11, 4672, 1476, 273, 590, 18, 3264, 18, 588, 2668, 1945, 2187, 296, 31033, 6134, 225, 309,...
isEmpty = 0 if not self.required: if type(value) in STRING_TYPES: isEmpty = not value.strip() else: isEmpty = not value if not self.required and isEmpty: pass else: for v in self.validators: res = validation.validate(v, value, instance=instance, errors=errors, field=self, **kwargs) if res != 1: return res
for v in self.validators: res = validation.validate(v, value, instance=instance, errors=errors, field=self, **kwargs) if res != 1: return res
def validate(self, value, instance, errors={}, **kwargs): """ Validate passed-in value using all field validators. Return None if all validations pass; otherwise, return failed result returned by validator """ name = self.getName() if errors and errors.has_key(name): return 1
ea3332a42a4d6a9beb20053df80f05c70464ab21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/ea3332a42a4d6a9beb20053df80f05c70464ab21/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 12, 2890, 16, 460, 16, 791, 16, 1334, 28793, 2826, 4333, 4672, 3536, 3554, 2275, 17, 267, 460, 1450, 777, 652, 11632, 18, 2000, 599, 309, 777, 20808, 1342, 31, 3541, 16, 327, 253...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 12, 2890, 16, 460, 16, 791, 16, 1334, 28793, 2826, 4333, 4672, 3536, 3554, 2275, 17, 267, 460, 1450, 777, 652, 11632, 18, 2000, 599, 309, 777, 20808, 1342, 31, 3541, 16, 327, 253...
descendants.extend(_thread_tree.get(d, []))
descendants.extend(_thread_tree.get(d(), []))
def get_descendants(thread): """ Get a list of all the descendant threads for the given thread. @type thread: L{TrackedThread} instance @param thread: thread to find the descendants of @raise RuntimeError: if the thread is not an instance of TrackedThread @return: list of TrackedThread instances """ if not isinstance(t...
32bf2dc523fd1545a03158c771d9c4feca157397 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/32bf2dc523fd1545a03158c771d9c4feca157397/thread.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 26236, 4388, 12, 5930, 4672, 3536, 968, 279, 666, 434, 777, 326, 17465, 7403, 364, 326, 864, 2650, 18, 632, 723, 2650, 30, 511, 95, 4402, 329, 3830, 97, 791, 632, 891, 2650, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26236, 4388, 12, 5930, 4672, 3536, 968, 279, 666, 434, 777, 326, 17465, 7403, 364, 326, 864, 2650, 18, 632, 723, 2650, 30, 511, 95, 4402, 329, 3830, 97, 791, 632, 891, 2650, ...
fid.write(chr(0))
fid.write(asbytes('\0'))
def __new__(subtype, filename, dtype=uint8, mode='r+', offset=0, shape=None, order='C'): # Import here to minimize 'import numpy' overhead import mmap try: mode = mode_equivalents[mode] except KeyError: if mode not in valid_filemodes: raise ValueError("mode must be one of %s" % \ (valid_filemodes + mode_equivalents.key...
9a079c7c4e8960582fda8902616e5253b3ad2f3a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/9a079c7c4e8960582fda8902616e5253b3ad2f3a/memmap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2704, 972, 12, 21974, 16, 1544, 16, 3182, 33, 11890, 28, 16, 1965, 2218, 86, 15, 2187, 1384, 33, 20, 16, 2179, 33, 7036, 16, 1353, 2218, 39, 11, 4672, 468, 6164, 2674, 358, 189...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2704, 972, 12, 21974, 16, 1544, 16, 3182, 33, 11890, 28, 16, 1965, 2218, 86, 15, 2187, 1384, 33, 20, 16, 2179, 33, 7036, 16, 1353, 2218, 39, 11, 4672, 468, 6164, 2674, 358, 189...
p1.foo[1] = 2
assert hasattr(p1, 'foo') assert p1.getFoo() is p1.foo p1.getFoo()[1] = 2 assert p1.foo[1] == 2 assert p1.foo is not p2.foo assert len(p1.foo) == 1
def __repr__(self): argStr = '' for name in self.getDataNames(): argStr += '%s=%s,' % (name, repr(getSetter(self, name, 'get')())) return '%s(%s)' % (self.__class__.__name__, argStr)
a5502e3b4356f4f45e024207aac488f2123a57b9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/a5502e3b4356f4f45e024207aac488f2123a57b9/PythonUtil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 1501, 1585, 273, 875, 364, 508, 316, 365, 18, 588, 751, 1557, 13332, 1501, 1585, 1011, 1995, 87, 5095, 87, 11189, 738, 261, 529, 16, 8480, 12, 588, 84...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12715, 972, 12, 2890, 4672, 1501, 1585, 273, 875, 364, 508, 316, 365, 18, 588, 751, 1557, 13332, 1501, 1585, 1011, 1995, 87, 5095, 87, 11189, 738, 261, 529, 16, 8480, 12, 588, 84...
with JSContext(Global()) as ctxt:
with JSContext(Global()) as ctxt:
def testRefCount(self): count = sys.getrefcount(None) class Global(JSClass): pass
d76ea3f452d147f051e65b20fdab9b87a8b84413 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2065/d76ea3f452d147f051e65b20fdab9b87a8b84413/PyV8.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1957, 1380, 12, 2890, 4672, 1056, 273, 2589, 18, 588, 1734, 1883, 12, 7036, 13, 225, 667, 8510, 12, 6479, 797, 4672, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1957, 1380, 12, 2890, 4672, 1056, 273, 2589, 18, 588, 1734, 1883, 12, 7036, 13, 225, 667, 8510, 12, 6479, 797, 4672, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
upper bound may be obtained using the function rank_bound().
upper bound may be obtained using the function :meth:`rank_bound()`.
def rank(self): """ Returns the rank of this curve, computed using 2-descent.
c2ebf8bfa15bcdb4318f58bfcf2982e3a69cce87 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/c2ebf8bfa15bcdb4318f58bfcf2982e3a69cce87/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6171, 12, 2890, 4672, 3536, 2860, 326, 6171, 434, 333, 8882, 16, 8470, 1450, 576, 17, 5569, 319, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6171, 12, 2890, 4672, 3536, 2860, 326, 6171, 434, 333, 8882, 16, 8470, 1450, 576, 17, 5569, 319, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
def getCourseFromId(self, id):
def getCourseFromId(self, cid):
def getCourseFromId(self, id): app = getSite() try: return app['courses'][id] except KeyError: self.error = _("No such course.")
4f24e77bd256e8086b919956d744cbeae62ac180 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/4f24e77bd256e8086b919956d744cbeae62ac180/app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1927, 3117, 1265, 548, 12, 2890, 16, 7504, 4672, 595, 273, 11021, 1435, 775, 30, 327, 595, 3292, 15804, 3546, 63, 350, 65, 1335, 4999, 30, 365, 18, 1636, 273, 389, 2932, 2279, 4123, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1927, 3117, 1265, 548, 12, 2890, 16, 7504, 4672, 595, 273, 11021, 1435, 775, 30, 327, 595, 3292, 15804, 3546, 63, 350, 65, 1335, 4999, 30, 365, 18, 1636, 273, 389, 2932, 2279, 4123, 43...
expected_html = expected_html_pattern % (mod_file, mod_file)
expected_html = expected_html_pattern % (mod_file, mod_file, doc_loc)
def test_html_doc(self): result = get_pydoc_html(pydoc_mod) mod_file = inspect.getabsfile(pydoc_mod) expected_html = expected_html_pattern % (mod_file, mod_file) if result != expected_html: print_diffs(expected_html, result) self.fail("outputs are not equal, see diff above")
d73fc87a2bd8c29397cb8e8be32193ff2e74ac95 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/d73fc87a2bd8c29397cb8e8be32193ff2e74ac95/test_pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2620, 67, 2434, 12, 2890, 4672, 563, 273, 336, 67, 2074, 2434, 67, 2620, 12, 2074, 2434, 67, 1711, 13, 681, 67, 768, 273, 5334, 18, 588, 5113, 768, 12, 2074, 2434, 67, 1711...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2620, 67, 2434, 12, 2890, 4672, 563, 273, 336, 67, 2074, 2434, 67, 2620, 12, 2074, 2434, 67, 1711, 13, 681, 67, 768, 273, 5334, 18, 588, 5113, 768, 12, 2074, 2434, 67, 1711...
result.row('\n'.join(sample),bgcolor='lightgray')
[result.row(s,bgcolor='lightgray') for s in sample]
def form(self,query,result): """ This draws the form required to fulfill all the parameters for this report """ result.start_table(hstretch=False) result.const_selector("Simple Field Separator:",'delimiter',delimiters.values(), delimiters.keys()) if not query.has_key('delimiter'): query['delimiter'] = ' '
bff9e7c3b0e8a410e81845809ce56ddd72dc218c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5568/bff9e7c3b0e8a410e81845809ce56ddd72dc218c/Simple.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 646, 12, 2890, 16, 2271, 16, 2088, 4672, 3536, 1220, 30013, 326, 646, 1931, 358, 22290, 777, 326, 1472, 364, 333, 2605, 3536, 563, 18, 1937, 67, 2121, 12, 28928, 20783, 33, 8381, 13, 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, 646, 12, 2890, 16, 2271, 16, 2088, 4672, 3536, 1220, 30013, 326, 646, 1931, 358, 22290, 777, 326, 1472, 364, 333, 2605, 3536, 563, 18, 1937, 67, 2121, 12, 28928, 20783, 33, 8381, 13, 5...
self.fileHasher.update(data[:(PIECE_SIZE - piece_size)]) data = data[(PIECE_SIZE - piece_size):] self.size += PIECE_SIZE - piece_size piece_size = self.size % PIECE_SIZE
self.fileHasher.update(data[:(PIECE_SIZE - self.pieceSize)]) data = data[(PIECE_SIZE - self.pieceSize):] self.size += PIECE_SIZE - self.pieceSize self.pieceSize = 0
def update(self, data): """Add more data to the file hasher.""" if self.result is None: if self.done: raise HashError, "Already done, you can't add more data after calling digest() or verify()" if self.fileHasher is None: raise HashError, "file hasher not initialized" if not self.pieceHasher and self.size + len(data) ...
caa90b0abf3be1ca8b4788bf18d26f9d3858bffd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/665/caa90b0abf3be1ca8b4788bf18d26f9d3858bffd/Hash.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 501, 4672, 3536, 986, 1898, 501, 358, 326, 585, 15764, 12123, 309, 365, 18, 2088, 353, 599, 30, 309, 365, 18, 8734, 30, 1002, 2474, 668, 16, 315, 9430, 2731, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 501, 4672, 3536, 986, 1898, 501, 358, 326, 585, 15764, 12123, 309, 365, 18, 2088, 353, 599, 30, 309, 365, 18, 8734, 30, 1002, 2474, 668, 16, 315, 9430, 2731, 16, ...
write_vals['date']=date_end
write_vals['date'] = date_end
def create(self,cr,uid,vals,context={}): type_id = self.pool.get('dm.campaign.type').search(cr, uid, [('code','=','model')])[0] if context.has_key('campaign_type') and context['campaign_type']=='model': vals['campaign_type_id']=type_id id_camp = super(dm_campaign,self).create(cr,uid,vals,context) data_cam = self.browse...
7ee897432c7e7d5a5c8e889fc429c3c1b66627fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/7ee897432c7e7d5a5c8e889fc429c3c1b66627fd/dm_campaign.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 3353, 16, 1911, 16, 4524, 16, 2472, 12938, 4672, 618, 67, 350, 273, 365, 18, 6011, 18, 588, 2668, 10956, 18, 14608, 18, 723, 16063, 3072, 12, 3353, 16, 4555, 16, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 3353, 16, 1911, 16, 4524, 16, 2472, 12938, 4672, 618, 67, 350, 273, 365, 18, 6011, 18, 588, 2668, 10956, 18, 14608, 18, 723, 16063, 3072, 12, 3353, 16, 4555, 16, 3...
ds.BuildOverviews( overviewlist = [2, 4] )
ds.BuildOverviews( method, overviewlist = [2, 4] )
def mask_and_ovr(order): if gdaltest.have_ng == 0: return 'skip' src_ds = gdal.Open('data/byte.tif') if src_ds is None: gdaltest.post_reason( 'Failed to open test dataset.' ) return 'fail' drv = gdal.GetDriverByName('GTiff') ds = drv.CreateCopy( 'tmp/byte_with_ovr_and_mask.tif', src_ds ) src_ds = None if order == ...
a1e29113b3fa9b8b0a8e8b23a259621ad0ad11df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10289/a1e29113b3fa9b8b0a8e8b23a259621ad0ad11df/mask.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3066, 67, 464, 67, 1527, 86, 12, 1019, 4672, 225, 309, 15551, 2390, 395, 18, 21516, 67, 3368, 422, 374, 30, 327, 296, 7457, 11, 225, 1705, 67, 2377, 273, 15551, 287, 18, 3678, 2668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3066, 67, 464, 67, 1527, 86, 12, 1019, 4672, 225, 309, 15551, 2390, 395, 18, 21516, 67, 3368, 422, 374, 30, 327, 296, 7457, 11, 225, 1705, 67, 2377, 273, 15551, 287, 18, 3678, 2668, ...
""" Should raise AttributeError for unknown method name """
""" Should raise AttributeError for unknown method name. """
def test_raises_error_for_unknown_name(self): """ Should raise AttributeError for unknown method name """ instance = self.test_instance target = 'b0gUs' expect_error = AttributeError self.failUnlessRaises( expect_error, instance._make_signal_handler, target)
33a5bfc655a6417210c5c80d9f942714bf596533 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4939/33a5bfc655a6417210c5c80d9f942714bf596533/test_daemon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 354, 6141, 67, 1636, 67, 1884, 67, 8172, 67, 529, 12, 2890, 4672, 3536, 9363, 1002, 6394, 364, 5917, 707, 508, 18, 3536, 791, 273, 365, 18, 3813, 67, 1336, 1018, 273, 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, 1842, 67, 354, 6141, 67, 1636, 67, 1884, 67, 8172, 67, 529, 12, 2890, 4672, 3536, 9363, 1002, 6394, 364, 5917, 707, 508, 18, 3536, 791, 273, 365, 18, 3813, 67, 1336, 1018, 273, 296, ...
sage: ids = N.primes_of_degree_one_list(10); a
sage: ids = N.primes_of_degree_one_list(10); ids
def next(self): r""" Return a prime of absolute degree one of small prime norm.
eea2c16947368c8c70c31ed0c7f860ce06da7ad3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/eea2c16947368c8c70c31ed0c7f860ce06da7ad3/small_primes_of_degree_one.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 12, 2890, 4672, 436, 8395, 2000, 279, 17014, 434, 4967, 10782, 1245, 434, 5264, 17014, 4651, 18, 2, 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, 1024, 12, 2890, 4672, 436, 8395, 2000, 279, 17014, 434, 4967, 10782, 1245, 434, 5264, 17014, 4651, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
principal_type=Node.ELEMENT_NODE):
principal_type=element):
def new_tst_method(cls, expected, factory, args, node, principal_type=Node.ELEMENT_NODE): ctx = context(node, namespaces=NAMESPACES) compiler = xpathcompiler(ctx) # apply node-test using the default axis, 'child' nodes = iter(node) def test_method(self): node_test = factory(*args) node_filter = node_test.get_filter(com...
51dbf181db245e9f3969e861076722b3be5e5ab9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14078/51dbf181db245e9f3969e861076722b3be5e5ab9/test_nodetests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 88, 334, 67, 2039, 12, 6429, 16, 2665, 16, 3272, 16, 833, 16, 756, 16, 8897, 67, 723, 33, 2956, 4672, 1103, 273, 819, 12, 2159, 16, 7728, 33, 11368, 55, 13, 5274, 273, 674...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 88, 334, 67, 2039, 12, 6429, 16, 2665, 16, 3272, 16, 833, 16, 756, 16, 8897, 67, 723, 33, 2956, 4672, 1103, 273, 819, 12, 2159, 16, 7728, 33, 11368, 55, 13, 5274, 273, 674...
for root in extra_roots: if root[-1] != "/": root = root + "/" c.addroot(root)
for root in extra_roots: if root[-1] != "/": root = root + "/" c.addroot(root, add_to_do = 0)
def main(): checkext = CHECKEXT verbose = VERBOSE maxpage = MAXPAGE roundsize = ROUNDSIZE dumpfile = DUMPFILE restart = 0 norun = 0 try: # Begin SLB 2/24/99: Added -t option here. opts, args = getopt.getopt(sys.argv[1:], 'Rd:m:nqr:t:vx') # End SLB 2/24/99 except getopt.error, msg: sys.stdout = sys.stderr print msg p...
89c9ad8fa8b4bb95895e6c06ddfc6793a05b0c37 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/89c9ad8fa8b4bb95895e6c06ddfc6793a05b0c37/wcnew.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 866, 408, 273, 14565, 4142, 3988, 273, 27857, 943, 2433, 273, 4552, 11219, 3643, 1467, 273, 27048, 4574, 4657, 768, 273, 463, 23942, 3776, 7870, 273, 374, 12517, 318, 273, 374...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 866, 408, 273, 14565, 4142, 3988, 273, 27857, 943, 2433, 273, 4552, 11219, 3643, 1467, 273, 27048, 4574, 4657, 768, 273, 463, 23942, 3776, 7870, 273, 374, 12517, 318, 273, 374...
thread.start_new_thread(audiorecord, (afile, aport, buffer))
thread.start_new_thread(audiorecord, (afile, aport, stop, done))
def initaudio(filename, buffer): import thread, aiff afile = aiff.Aiff().init(filename, 'w') afile.nchannels = AL.MONO afile.sampwidth = AL.SAMPLE_8 params = [AL.INPUT_RATE, 0] al.getparams(AL.DEFAULT_DEVICE, params) print 'audio sampling rate =', params[1] afile.samprate = params[1] c = al.newconfig() c.setchannels(AL...
dd2d726866c36f9ef98e011ae9958f47d4411fed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/dd2d726866c36f9ef98e011ae9958f47d4411fed/Vrec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 11509, 12, 3459, 16, 1613, 4672, 1930, 2650, 16, 279, 3048, 279, 768, 273, 279, 3048, 18, 37, 3048, 7675, 2738, 12, 3459, 16, 296, 91, 6134, 279, 768, 18, 82, 9114, 273, 7981, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 11509, 12, 3459, 16, 1613, 4672, 1930, 2650, 16, 279, 3048, 279, 768, 273, 279, 3048, 18, 37, 3048, 7675, 2738, 12, 3459, 16, 296, 91, 6134, 279, 768, 18, 82, 9114, 273, 7981, ...