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
else
else:
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 16) else quickfix.IntField.__init__(self, 16, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 2872, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 97...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 2872, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 97...
def install_boinc_files(dest_dir, web_only):
def install_boinc_files(dest_dir, install_web_files, install_server_files):
def install_boinc_files(dest_dir, web_only): """Copy files from source dir to project dir. Used by the upgrade script, so don't copy sample files to real name.""" def dir(*dirs): return apply(os.path.join,(dest_dir,)+dirs) create_project_dirs(dest_dir); install_glob(srcdir('html/inc/*.inc'), dir('html/inc/')) instal...
ab69b1c6c7a46446b67facee4727793e741b3c88 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10777/ab69b1c6c7a46446b67facee4727793e741b3c88/setup_project.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 67, 70, 885, 71, 67, 2354, 12, 10488, 67, 1214, 16, 3799, 67, 4875, 67, 2354, 16, 3799, 67, 3567, 67, 2354, 4672, 3536, 2951, 1390, 628, 1084, 1577, 358, 1984, 1577, 18, 10286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 67, 70, 885, 71, 67, 2354, 12, 10488, 67, 1214, 16, 3799, 67, 4875, 67, 2354, 16, 3799, 67, 3567, 67, 2354, 4672, 3536, 2951, 1390, 628, 1084, 1577, 358, 1984, 1577, 18, 10286, ...
patchFile("scripts/postflight.patch-profile", fn) os.chmod(fn, 0755)
patchScript("scripts/postflight.patch-profile", fn)
def main(): # First parse options and check if we can perform our work parseOptions() checkEnvironment() os.environ['MACOSX_DEPLOYMENT_TARGET'] = '10.3' if os.path.exists(WORKDIR): shutil.rmtree(WORKDIR) os.mkdir(WORKDIR) # Then build third-party libraries such as sleepycat DB4. buildLibraries() # Now build python ...
3e5392350477a7c2f5526cec6073c53a33209bbf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/3e5392350477a7c2f5526cec6073c53a33209bbf/build-installer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 5783, 1109, 702, 471, 866, 309, 732, 848, 3073, 3134, 1440, 1109, 1320, 1435, 866, 5494, 1435, 225, 1140, 18, 28684, 3292, 10875, 4618, 60, 67, 1639, 22971, 3212, 67, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 5783, 1109, 702, 471, 866, 309, 732, 848, 3073, 3134, 1440, 1109, 1320, 1435, 866, 5494, 1435, 225, 1140, 18, 28684, 3292, 10875, 4618, 60, 67, 1639, 22971, 3212, 67, 1...
'pass': 'PASS',
'pass': ('ref/pass', ''),
def writedocs(dir, pkgpath='', done=None): """Write out HTML documentation for all modules in a directory tree.""" if done is None: done = {} for file in os.listdir(dir): path = os.path.join(dir, file) if ispackage(path): writedocs(path, pkgpath + file + '.', done) elif os.path.isfile(path): modname = inspect.getmodule...
9fbf287241e4561acb33255cfb71cba124e273ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/9fbf287241e4561acb33255cfb71cba124e273ee/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2518, 329, 22280, 12, 1214, 16, 3475, 803, 2218, 2187, 2731, 33, 7036, 4672, 3536, 3067, 596, 3982, 7323, 364, 777, 4381, 316, 279, 1867, 2151, 12123, 309, 2731, 353, 599, 30, 2731, 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, 2518, 329, 22280, 12, 1214, 16, 3475, 803, 2218, 2187, 2731, 33, 7036, 4672, 3536, 3067, 596, 3982, 7323, 364, 777, 4381, 316, 279, 1867, 2151, 12123, 309, 2731, 353, 599, 30, 2731, 273,...
if not self._splitSubjectAltName(self.host, subjectAltName):
if self._splitSubjectAltName(self.host, subjectAltName): hostValidationPassed = True elif self.useSubjectAltNameOnly:
def __call__(self, peerCert, host=None): if peerCert is None: raise NoCertificate('peer did not return certificate')
fabc11cd7693993f896e1e937cb416099d436850 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10522/fabc11cd7693993f896e1e937cb416099d436850/Checker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 4261, 5461, 16, 1479, 33, 7036, 4672, 309, 4261, 5461, 353, 599, 30, 1002, 2631, 4719, 2668, 12210, 5061, 486, 327, 4944, 6134, 2, 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, 1991, 972, 12, 2890, 16, 4261, 5461, 16, 1479, 33, 7036, 4672, 309, 4261, 5461, 353, 599, 30, 1002, 2631, 4719, 2668, 12210, 5061, 486, 327, 4944, 6134, 2, -100, -100, -100, -100, ...
self.curfunc.add_var(var, ty)
self.curfunc.add_var(var, ty, True)
def begin_function(self, funcname, argvars, argtypes, rettype, static=False, abstract=False): """ funcname --- name of the function argvars --- list of objects passed to load() that represent arguments; should be in order, or () if load() will not be used argtypes --- JvmType for each argument [INCLUDING this] rettype ...
73b1a43cd7b4cc2fcffbe1562f79e9765c59b941 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/73b1a43cd7b4cc2fcffbe1562f79e9765c59b941/generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2376, 67, 915, 12, 2890, 16, 1326, 529, 16, 1501, 4699, 16, 1501, 2352, 16, 325, 723, 16, 760, 33, 8381, 16, 8770, 33, 8381, 4672, 3536, 1326, 529, 9948, 508, 434, 326, 445, 1501, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2376, 67, 915, 12, 2890, 16, 1326, 529, 16, 1501, 4699, 16, 1501, 2352, 16, 325, 723, 16, 760, 33, 8381, 16, 8770, 33, 8381, 4672, 3536, 1326, 529, 9948, 508, 434, 326, 445, 1501, 46...
valid = mm_utils.ValidEmail(val)
valid = Utils.ValidEmail(val)
def GetValidValue(lst, prop, my_type, val, dependant): if my_type == mm_cfg.Radio or my_type == mm_cfg.Toggle: if type(val) <> types.IntType: try: # XXX Security!? val = eval(val) except: pass # Don't know what to do here... return val elif my_type == mm_cfg.String or my_type == mm_cfg.Text: return val elif my_type == ...
3669b0d6a1a8a59d98f6d625cd5fe9423a6cd325 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/3669b0d6a1a8a59d98f6d625cd5fe9423a6cd325/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1556, 620, 12, 16923, 16, 2270, 16, 3399, 67, 723, 16, 1244, 16, 2447, 970, 4672, 309, 3399, 67, 723, 422, 9740, 67, 7066, 18, 19984, 578, 3399, 67, 723, 422, 9740, 67, 7066, 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, 968, 1556, 620, 12, 16923, 16, 2270, 16, 3399, 67, 723, 16, 1244, 16, 2447, 970, 4672, 309, 3399, 67, 723, 422, 9740, 67, 7066, 18, 19984, 578, 3399, 67, 723, 422, 9740, 67, 7066, 18...
<td width="80%%"><input type="text" size=6 name="elrows" value="%(el_rows)s" /></td>
<td width="80%%"><input type="text" size="6" name="elrows" value="%(el_rows)s" /></td>
def tmpl_display_addelementform(self, elname="", elmarccode="", eltype="", elsize="", elrows="", elcols="", elmaxlength="", elval="", elfidesc="", elmodifytext="", elcookie="", elcd="", elmd="", perform_act="elementadd", user_msg="", el_use_tuple="" ): """Display Web form used to add a new element to the database @para...
e760c1fc3e16767c2b47a9e2f94b5484506a8af7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/e760c1fc3e16767c2b47a9e2f94b5484506a8af7/websubmitadmin_templates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 5417, 67, 1289, 2956, 687, 12, 2890, 16, 415, 529, 1546, 3113, 415, 3684, 71, 710, 1546, 3113, 415, 723, 1546, 3113, 415, 1467, 1546, 3113, 415, 3870, 1546, 3113, 415, 6842, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 5417, 67, 1289, 2956, 687, 12, 2890, 16, 415, 529, 1546, 3113, 415, 3684, 71, 710, 1546, 3113, 415, 723, 1546, 3113, 415, 1467, 1546, 3113, 415, 3870, 1546, 3113, 415, 6842, ...
Id: 1
Id: 2
def exercise_modifiers(verbose=0): if (verbose): out = sys.stdout mtz_object = mtz.object() mtz_object.set_title(title="012345678") assert mtz_object.title() == "012345678" mtz_object.set_title(title="012345678", append=True) assert mtz_object.title() == "012345678 012345678" mtz_object.set_title(title="0123456789"*10+...
c3cf0722281a181a283d00bb69ac8271125a2ef3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/c3cf0722281a181a283d00bb69ac8271125a2ef3/tst_ext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24165, 67, 15432, 12, 11369, 33, 20, 4672, 309, 261, 11369, 4672, 596, 273, 2589, 18, 10283, 5874, 94, 67, 1612, 273, 5874, 94, 18, 1612, 1435, 5874, 94, 67, 1612, 18, 542, 67, 2649, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24165, 67, 15432, 12, 11369, 33, 20, 4672, 309, 261, 11369, 4672, 596, 273, 2589, 18, 10283, 5874, 94, 67, 1612, 273, 5874, 94, 18, 1612, 1435, 5874, 94, 67, 1612, 18, 542, 67, 2649, ...
to_filter = __filter_ieee(yval, yerr2)
to_filter = __filter_ieee(str(yval), str(yerr2))
def data_filter(obj, **kwargs): """ This function takes in an object containing data, scans it for bad data and removes that data from the arrays. The criteria is instrument dependent and subfunctions will be written that handle the instrument dependent criteria. This function will operate in a zeroing mode. This means...
868acafada4061edbc99d2a24b6bceb5c263f60d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/763/868acafada4061edbc99d2a24b6bceb5c263f60d/hlr_data_filter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 501, 67, 2188, 12, 2603, 16, 2826, 4333, 4672, 3536, 1220, 445, 5530, 316, 392, 733, 4191, 501, 16, 19676, 518, 364, 5570, 501, 471, 7157, 716, 501, 628, 326, 5352, 18, 1021, 3582, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 501, 67, 2188, 12, 2603, 16, 2826, 4333, 4672, 3536, 1220, 445, 5530, 316, 392, 733, 4191, 501, 16, 19676, 518, 364, 5570, 501, 471, 7157, 716, 501, 628, 326, 5352, 18, 1021, 3582, 353...
marshal.load(file(test_support.TESTFN, "rb"))
new = marshal.load(file(test_support.TESTFN, "rb"))
def test_unicode(self): for s in [u"", u"Andr Previn", u"abc", u" "*10000]: new = marshal.loads(marshal.dumps(s)) self.assertEqual(s, new) self.assertEqual(type(s), type(new)) marshal.dump(s, file(test_support.TESTFN, "wb")) marshal.load(file(test_support.TESTFN, "rb")) self.assertEqual(s, new) self.assertEqual(type(s)...
ed924f5a4a6b7c7df4034e1d4e458ee8287b03ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ed924f5a4a6b7c7df4034e1d4e458ee8287b03ee/test_marshal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9124, 12, 2890, 4672, 364, 272, 316, 306, 89, 6, 3113, 582, 6, 1876, 86, 2962, 21529, 3113, 582, 6, 18947, 3113, 582, 6, 15902, 23899, 14542, 394, 273, 10893, 18, 17135, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9124, 12, 2890, 4672, 364, 272, 316, 306, 89, 6, 3113, 582, 6, 1876, 86, 2962, 21529, 3113, 582, 6, 18947, 3113, 582, 6, 15902, 23899, 14542, 394, 273, 10893, 18, 17135, 12, ...
pass
def getPage(code, name, do_edit = 1, do_quote = 1): """Get the contents of page 'name' from the 'code' language wikipedia Do not use this directly; use the PageLink object instead.""" output(url2unicode("Getting page %s:%s"%(code,name), language = code)) host = family.hostname(code) name = re.sub(' ', '_', name) if not...
a63e36cbe49b87bce6f9781da67fce7fb414d564 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/a63e36cbe49b87bce6f9781da67fce7fb414d564/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8957, 12, 710, 16, 508, 16, 741, 67, 4619, 273, 404, 16, 741, 67, 6889, 273, 404, 4672, 3536, 967, 326, 2939, 434, 1363, 296, 529, 11, 628, 326, 296, 710, 11, 2653, 21137, 2256, 486,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8957, 12, 710, 16, 508, 16, 741, 67, 4619, 273, 404, 16, 741, 67, 6889, 273, 404, 4672, 3536, 967, 326, 2939, 434, 1363, 296, 529, 11, 628, 326, 296, 710, 11, 2653, 21137, 2256, 486,...
def __init__(self, handle): self._commid = handle self._closed = False def getmessage(self): """ <Purpose> Obtains an incoming message that was sent to an IP and port. <Arguments> None. <Exceptions> SocketClosedLocal if UDPServerSocket.close() was called. LocalIPChanged if the local IP address has changed and t...
def __del__(self): # Get the socket lock try: socket_lock = OPEN_SOCKET_INFO[self.identity][0] except KeyError: # Closed, done return
cdc73d35527f2e8ba9aecc2ad1a44f2831f9c68c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7263/cdc73d35527f2e8ba9aecc2ad1a44f2831f9c68c/emulcomm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 972, 12, 2890, 4672, 468, 968, 326, 2987, 2176, 775, 30, 2987, 67, 739, 273, 11919, 67, 25699, 67, 5923, 63, 2890, 18, 10781, 6362, 20, 65, 1335, 4999, 30, 468, 25582, 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, 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, 3771, 972, 12, 2890, 4672, 468, 968, 326, 2987, 2176, 775, 30, 2987, 67, 739, 273, 11919, 67, 25699, 67, 5923, 63, 2890, 18, 10781, 6362, 20, 65, 1335, 4999, 30, 468, 25582, 16, ...
self.langs[lang] = lang+'.wiktionary.org'
self.langs[lang] = '%s.wikibooks.org' % lang
def __init__(self): family.Family.__init__(self) self.name = 'wikibooks' # Known wikibooks languages, given as a dictionary mapping the language code # to the hostname of the site hosting that wiktibooks. For human consumption, # the full name of the language is given behind each line as a comment self.langs = { 'minna...
51d92227827397d1c9051bd461216bcfafcdd108 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/51d92227827397d1c9051bd461216bcfafcdd108/wikibooks_family.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 6755, 18, 9203, 16186, 2738, 972, 12, 2890, 13, 365, 18, 529, 273, 296, 11999, 495, 1184, 87, 11, 468, 30036, 341, 1766, 495, 1184, 87, 8191, 16, 864, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 6755, 18, 9203, 16186, 2738, 972, 12, 2890, 13, 365, 18, 529, 273, 296, 11999, 495, 1184, 87, 11, 468, 30036, 341, 1766, 495, 1184, 87, 8191, 16, 864, ...
self.v = (1.0-self.a)*self.v+self.a*f/npy.sqrt(npy.vdot(f,f)*npy.vdot(self.v,self.v))
self.v = (1.0-self.a)*self.v + self.a*f / npy.sqrt(npy.vdot(f,f)) * npy.sqrt(npy.vdot(self.v,self.v))
def step(self,f):
c1b8c0a3eaf500aec11b5a6d996312833b944a4a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1380/c1b8c0a3eaf500aec11b5a6d996312833b944a4a/fire.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2235, 12, 2890, 16, 74, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2235, 12, 2890, 16, 74, 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,...
(name, user, options["runtime"], marshal.dumps(argv)))
(name, user, marshal.dumps(argv)))
def bibsched_low_level_task_submission(name, user, *argv): """Let special lowlevel enqueuing of a task on the bibsche queue. @param name is the name of the bibtask. It must be a valid executable under CFG_BINDIR. @param user is a string that will appear as the "user" submitting the task. Since task are submitted via AP...
59e2916c2f1eae13a9e6baba21e42d58381074ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/59e2916c2f1eae13a9e6baba21e42d58381074ab/bibtask.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25581, 87, 2049, 67, 821, 67, 2815, 67, 4146, 67, 12684, 12, 529, 16, 729, 16, 380, 19485, 4672, 3536, 24181, 4582, 4587, 2815, 570, 1857, 22370, 434, 279, 1562, 603, 326, 25581, 87, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25581, 87, 2049, 67, 821, 67, 2815, 67, 4146, 67, 12684, 12, 529, 16, 729, 16, 380, 19485, 4672, 3536, 24181, 4582, 4587, 2815, 570, 1857, 22370, 434, 279, 1562, 603, 326, 25581, 87, 1...
times.pop(-1)
if times: times.pop(-1)
def exit_mplayer(): # send bogus edl command so mplayer sends last edl_mark send_command('edl_mark') # send quit and destroy frame send_command('quit') container.frame.destroy() # need a sleep to make sure mplayer gives up its data time.sleep(1) f = open(editlist) c = f.read() f.close() # convert text from opened file ...
c5f7e6b8a9a7745fd9188485d42c7137ae9ae749 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4675/c5f7e6b8a9a7745fd9188485d42c7137ae9ae749/appcontainer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2427, 67, 81, 14872, 13332, 468, 1366, 324, 28774, 1675, 80, 1296, 1427, 312, 14872, 9573, 1142, 1675, 80, 67, 3355, 1366, 67, 3076, 2668, 329, 80, 67, 3355, 6134, 468, 1366, 9706, 471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2427, 67, 81, 14872, 13332, 468, 1366, 324, 28774, 1675, 80, 1296, 1427, 312, 14872, 9573, 1142, 1675, 80, 67, 3355, 1366, 67, 3076, 2668, 329, 80, 67, 3355, 6134, 468, 1366, 9706, 471, ...
declare_opcode_set(op_ret, 0x8B, 2, 0x10)
declare_opcode_set(op_ret, 0x8B, 3, 0x10)
def op_ret(self, *args): """"""
92af643ed01cfa78abdc1df4c1f1030d7e8c8acd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2052/92af643ed01cfa78abdc1df4c1f1030d7e8c8acd/zcpu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1061, 67, 1349, 12, 2890, 16, 380, 1968, 4672, 3536, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1061, 67, 1349, 12, 2890, 16, 380, 1968, 4672, 3536, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if lastservice is not None:
if lastservice.valid():
def preEnterPath(self, refstr): if len(self.servicePathRadio) and self.servicePathRadio[0] != eServiceReference(refstr): pathstr = config.radio.lastroot.value if pathstr is not None and pathstr.find(refstr) == 0: self.restoreRoot() lastservice=eServiceReference(config.radio.lastservice.value) if lastservice is not None...
f61e4ec73535adad77e444b60090f101b2a19b05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/f61e4ec73535adad77e444b60090f101b2a19b05/ChannelSelection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 675, 10237, 743, 12, 2890, 16, 1278, 701, 4672, 309, 562, 12, 2890, 18, 3278, 743, 19984, 13, 471, 365, 18, 3278, 743, 19984, 63, 20, 65, 480, 425, 1179, 2404, 12, 1734, 701, 4672, 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, 675, 10237, 743, 12, 2890, 16, 1278, 701, 4672, 309, 562, 12, 2890, 18, 3278, 743, 19984, 13, 471, 365, 18, 3278, 743, 19984, 63, 20, 65, 480, 425, 1179, 2404, 12, 1734, 701, 4672, 5...
if newnick[:1] == cfg.irc_to_dc_prefix:
if newnick.startswith(cfg.irc_to_dc_prefix):
def handleCmd_NICK(self, prefix, args):
09a8a862ace020ea41f434acf94dc9e7821e230a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4752/09a8a862ace020ea41f434acf94dc9e7821e230a/dtella_bridgeserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 5931, 67, 50, 16656, 12, 2890, 16, 1633, 16, 833, 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...
[ 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, 1640, 5931, 67, 50, 16656, 12, 2890, 16, 1633, 16, 833, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
start = int(arg[7:])
start = arg[7:]
def main(): start = '!' sqlfilename = None for arg in sys.argv[1:]: arg = wikipedia.argHandler(arg, logname = 'weblinkchecker.log') if arg: if arg.startswith('-sql'): if len(arg) == 4: sqlfilename = wikipedia.input(u'Please enter the SQL dump\'s filename: ') else: sqlfilename = arg[5:] source = sqlfilename elif arg.sta...
1226c8baa0d1f92dcd2faee4d66da5f68929f0a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/1226c8baa0d1f92dcd2faee4d66da5f68929f0a0/weblinkchecker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 787, 273, 15502, 1847, 3459, 273, 599, 364, 1501, 316, 2589, 18, 19485, 63, 21, 30, 14542, 1501, 273, 21137, 18, 3175, 1503, 12, 3175, 16, 613, 529, 273, 296, 4875, 1232, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 787, 273, 15502, 1847, 3459, 273, 599, 364, 1501, 316, 2589, 18, 19485, 63, 21, 30, 14542, 1501, 273, 21137, 18, 3175, 1503, 12, 3175, 16, 613, 529, 273, 296, 4875, 1232, ...
subprocess.Popen (["/usr/bin/meld",self.filename, filename])
if os.path.exists ("/usr/bin/meld"): subprocess.Popen (["/usr/bin/meld",self.filename, filename]) else: if not self.meld_hint_displayed: dialog = gtk.MessageDialog(None, 0, gtk.MESSAGE_INFO, gtk.BUTTONS_CLOSE, _("Hint")) dialog.set_title (_("Hint")) dialog.format_secondary_text(_("Installing the optional meld package w...
def on_compare_button_clicked (self, widget): (model, iter) = self.treeview.get_selection ().get_selected () filename = model.get (iter, 1)[0] subprocess.Popen (["/usr/bin/meld",self.filename, filename])
7e67a582cc9490d1f4dd2d3e97ed83ed76cf0da5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11404/7e67a582cc9490d1f4dd2d3e97ed83ed76cf0da5/fileversion.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 9877, 67, 5391, 67, 7475, 329, 261, 2890, 16, 3604, 4672, 261, 2284, 16, 1400, 13, 273, 365, 18, 3413, 1945, 18, 588, 67, 10705, 1832, 18, 588, 67, 8109, 1832, 1544, 273, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 9877, 67, 5391, 67, 7475, 329, 261, 2890, 16, 3604, 4672, 261, 2284, 16, 1400, 13, 273, 365, 18, 3413, 1945, 18, 588, 67, 10705, 1832, 18, 588, 67, 8109, 1832, 1544, 273, 93...
this = apply(_quickfix.new_Nested2PartyRole, args)
this = _quickfix.new_Nested2PartyRole(*args)
def __init__(self, *args): this = apply(_quickfix.new_Nested2PartyRole, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 8649, 22, 17619, 2996, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 8649, 22, 17619, 2996, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, ...
cnt = tickets and len(tickets) or 0
cnt = query.count(req)
def expand_macro(self, formatter, name, content): req = formatter.req query_string = '' argv, kwargs = parse_args(content, strict=False) if len(argv) > 0 and not 'format' in kwargs: # 0.10 compatibility hack kwargs['format'] = argv[0]
d80c64b73e96d241baab2365c5aece6bab90e0cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9317/d80c64b73e96d241baab2365c5aece6bab90e0cf/query.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4542, 67, 26448, 12, 2890, 16, 4453, 16, 508, 16, 913, 4672, 1111, 273, 4453, 18, 3658, 843, 67, 1080, 273, 875, 5261, 16, 1205, 273, 1109, 67, 1968, 12, 1745, 16, 5490, 33, 8381, 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, 4542, 67, 26448, 12, 2890, 16, 4453, 16, 508, 16, 913, 4672, 1111, 273, 4453, 18, 3658, 843, 67, 1080, 273, 875, 5261, 16, 1205, 273, 1109, 67, 1968, 12, 1745, 16, 5490, 33, 8381, 13...
(obj1_type, obj2_type) = get_descr(obj1,obj2)
(obj1_type, obj2_type) = get_descr(obj1, obj2)
def get_length(obj1, obj2=None): """ This function returns the length appropriate for iterating through the objects. Parameters: ---------- -> obj1 is a SOM, SO or tuple -> obj2 (OPTIONAL) is a SOM, SO or tuple Returns: ------- <- The iteration length of the top hierarchy object (SOM > SO or tuple) Exceptions: -----...
a6435d900feb508abf4d721144fae8a406d80ffa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/a6435d900feb508abf4d721144fae8a406d80ffa/hlr_data_helper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2469, 12, 2603, 21, 16, 1081, 22, 33, 7036, 4672, 3536, 1220, 445, 1135, 326, 769, 5505, 364, 13099, 3059, 326, 2184, 18, 225, 7012, 30, 12181, 317, 1081, 21, 353, 279, 348, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2469, 12, 2603, 21, 16, 1081, 22, 33, 7036, 4672, 3536, 1220, 445, 1135, 326, 769, 5505, 364, 13099, 3059, 326, 2184, 18, 225, 7012, 30, 12181, 317, 1081, 21, 353, 279, 348, ...
names are defined in the ``language`` subpackage. """
names are defined in the ``language`` subpackage."""
def role_fn(name, rawtext, text, lineno, inliner): code...
e64280965c21d71c805b865fb3df5d81cfa19095 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/e64280965c21d71c805b865fb3df5d81cfa19095/roles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2478, 67, 4293, 12, 529, 16, 1831, 955, 16, 977, 16, 7586, 16, 316, 7511, 264, 4672, 981, 2777, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2478, 67, 4293, 12, 529, 16, 1831, 955, 16, 977, 16, 7586, 16, 316, 7511, 264, 4672, 981, 2777, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
results[depSet] = [ [] for x in depList.iterDeps() ]
results[depSet] = [ [] for x in depSet.iterDeps() ]
def resolveDependenciesByGroups(self, troveList, depList): results = {} for depSet in depList: results[depSet] = [ [] for x in depList.iterDeps() ] return results
72e2a60700ec8a4560f70c99e676803dfdc081a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/72e2a60700ec8a4560f70c99e676803dfdc081a9/trovesource.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 8053, 858, 3621, 12, 2890, 16, 23432, 537, 682, 16, 5993, 682, 4672, 1686, 273, 2618, 364, 5993, 694, 316, 5993, 682, 30, 1686, 63, 15037, 694, 65, 273, 306, 5378, 364, 619, 316,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 8053, 858, 3621, 12, 2890, 16, 23432, 537, 682, 16, 5993, 682, 4672, 1686, 273, 2618, 364, 5993, 694, 316, 5993, 682, 30, 1686, 63, 15037, 694, 65, 273, 306, 5378, 364, 619, 316,...
self._port = None self._baudrate = None self._bytesize = None self._parity = None self._stopbits = None self._timeout = None self._writeTimeout = None self._xonxoff = None self._rtscts = None self._dsrdtr = None self._interCharTimeout = None
self._port = None self._baudrate = None self._bytesize = None self._parity = None self._stopbits = None self._timeout = None self._writeTimeout = None self._xonxoff = None self._rtscts = None self._dsrdtr = None self._interCharTimeout = None
def __init__(self, port = None, #number of device, numbering starts at #zero. if everything fails, the user #can specify a device string, note #that this isn't portable anymore #port will be opened if one is specified baudrate=9600, #baudrate bytesize=EIGHTBITS, #number of databits parity=PARITY_NO...
0a06dd5133ebccedf57bfd5cad2b2ea3aa21d306 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10955/0a06dd5133ebccedf57bfd5cad2b2ea3aa21d306/serialutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1756, 273, 599, 16, 6647, 468, 2696, 434, 2346, 16, 1300, 310, 2542, 622, 468, 7124, 18, 309, 7756, 6684, 16, 326, 729, 468, 4169, 4800, 279, 2346, 533, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1756, 273, 599, 16, 6647, 468, 2696, 434, 2346, 16, 1300, 310, 2542, 622, 468, 7124, 18, 309, 7756, 6684, 16, 326, 729, 468, 4169, 4800, 279, 2346, 533, ...
sys.stderr.write(_("Can't read --exclude-file: %s") % options.excludefilename)
print >> sys.stderr, _( "Can't read --exclude-file: %s") % options.excludefilename
def main(): global default_keywords try: opts, args = getopt.getopt( sys.argv[1:], 'ad:DEhk:Kno:p:S:Vvw:x:', ['extract-all', 'default-domain', 'escape', 'help', 'keyword=', 'no-default-keywords', 'add-location', 'no-location', 'output=', 'output-dir=', 'style=', 'verbose', 'version', 'width=', 'exclude-file=', 'docstri...
a71c2028394a691b5b30b1e11ceef6c3faefe759 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a71c2028394a691b5b30b1e11ceef6c3faefe759/pygettext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2552, 805, 67, 11771, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 2589, 18, 19485, 63, 21, 30, 6487, 296, 361, 30, 1639, 76, 79, 30, 47, 2135, 30, 84, 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, 2774, 13332, 2552, 805, 67, 11771, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 2589, 18, 19485, 63, 21, 30, 6487, 296, 361, 30, 1639, 76, 79, 30, 47, 2135, 30, 84, 3...
def patchSkeleton(dir, name, namespace): absPath = normalizePath(FRAMEWORK_DIR)
def patchSkeleton(dir, framework_dir, name, namespace, app_type): absPath = normalizePath(framework_dir)
def patchSkeleton(dir, name, namespace): absPath = normalizePath(FRAMEWORK_DIR) if absPath[-1] == "/": absPath = absPath[:-1] if sys.platform == 'cygwin': if re.match( r'^\.{1,2}\/', dir ): relPath = Path.rel_from_to(normalizePath(dir), FRAMEWORK_DIR) elif re.match( r'^/cygdrive\b', dir): relPath = Path.rel_from_to(di...
9147a9ac90c662291742ddbed146c0b86318dbc6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/9147a9ac90c662291742ddbed146c0b86318dbc6/create-application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4729, 28070, 12, 1214, 16, 8257, 67, 1214, 16, 508, 16, 1981, 16, 595, 67, 723, 4672, 24939, 273, 20551, 12, 12303, 67, 1214, 13, 309, 24939, 18919, 21, 65, 422, 4016, 30, 24939, 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, 4729, 28070, 12, 1214, 16, 8257, 67, 1214, 16, 508, 16, 1981, 16, 595, 67, 723, 4672, 24939, 273, 20551, 12, 12303, 67, 1214, 13, 309, 24939, 18919, 21, 65, 422, 4016, 30, 24939, 273, ...
lfns[lfn] = fileDict
lfns[lfn].update(fileDict)
def _addReplicas(self,lfns,connection=False): connection = self._getConnection(connection) successful = {} res = self._findFiles(lfns.keys(),['DirID','FileID','Size'],connection=connection) failed = res['Value']['Failed'] for lfn in failed.keys(): lfns.pop(lfn) lfnFileIDDict = res['Value']['Successful'] for lfn,fileDic...
002cefe7de9e75d0abc411a59c792db325db5166 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/002cefe7de9e75d0abc411a59c792db325db5166/FileManagerBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 17248, 12, 2890, 16, 20850, 2387, 16, 4071, 33, 8381, 4672, 1459, 273, 365, 6315, 588, 1952, 12, 4071, 13, 6873, 273, 2618, 400, 273, 365, 6315, 4720, 2697, 12, 20850, 2387, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1289, 17248, 12, 2890, 16, 20850, 2387, 16, 4071, 33, 8381, 4672, 1459, 273, 365, 6315, 588, 1952, 12, 4071, 13, 6873, 273, 2618, 400, 273, 365, 6315, 4720, 2697, 12, 20850, 2387, ...
def _find_permissions_for_objects_query(self, objects, primary_table, primary_key, bridge_table, foreign_key, alternate_perms_key=None ):
def _find_permissions_for_objects_query(self, objects_list, primary_table, primary_key, bridge_table, foreign_key, alternate_perms_key=None ):
def _find_permissions_for_objects_query(self, objects, primary_table, primary_key, bridge_table, foreign_key, alternate_perms_key=None ): primary_key_name = primary_key.name # Create a list of primary key IDs if objects and (type(objects[0]) is types.DictionaryType or type(objects[0] is sqlalchemy.engine.base.RowProx...
983f035ee8298e626e68d55fd517548f85cd8a29 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7602/983f035ee8298e626e68d55fd517548f85cd8a29/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 67, 9612, 67, 1884, 67, 6911, 67, 2271, 12, 2890, 16, 2184, 67, 1098, 16, 3354, 67, 2121, 16, 3354, 67, 856, 16, 10105, 67, 2121, 16, 5523, 67, 856, 16, 12184, 67, 15969, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 67, 9612, 67, 1884, 67, 6911, 67, 2271, 12, 2890, 16, 2184, 67, 1098, 16, 3354, 67, 2121, 16, 3354, 67, 856, 16, 10105, 67, 2121, 16, 5523, 67, 856, 16, 12184, 67, 15969, ...
file.write(line + "\n")
file.write(line + b'\n')
def getlongresp(self, file=None): """Internal: get a response plus following text from the server. Raise various errors if the response indicates an error."""
933238ad85875df26c18a674f77afc1abaafb88e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/933238ad85875df26c18a674f77afc1abaafb88e/nntplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 5748, 12243, 12, 2890, 16, 585, 33, 7036, 4672, 3536, 3061, 30, 336, 279, 766, 8737, 3751, 977, 628, 326, 1438, 18, 20539, 11191, 1334, 309, 326, 766, 8527, 392, 555, 12123, 2, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5748, 12243, 12, 2890, 16, 585, 33, 7036, 4672, 3536, 3061, 30, 336, 279, 766, 8737, 3751, 977, 628, 326, 1438, 18, 20539, 11191, 1334, 309, 326, 766, 8527, 392, 555, 12123, 2, -1...
return object.__delattr__(self._local.get(), name) def __del__(self): self._local.remove()
try: del self.____local__.get()[name] except KeyError: raise AttributeError(name)
def __delattr__(self, name): return object.__delattr__(self._local.get(), name)
31d72aff4fe27388e7ca3a26b3ee013be961c897 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6753/31d72aff4fe27388e7ca3a26b3ee013be961c897/threading.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 1747, 972, 12, 2890, 16, 508, 4672, 327, 733, 16186, 3771, 1747, 972, 12, 2890, 6315, 3729, 18, 588, 9334, 508, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 3771, 1747, 972, 12, 2890, 16, 508, 4672, 327, 733, 16186, 3771, 1747, 972, 12, 2890, 6315, 3729, 18, 588, 9334, 508, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print container
def get_ancestors(self): """Return trimmed nesting structure indicating this page's ancestors.
64563c67103c6c54c2f23bd3d1ef1aaa28de809e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/64563c67103c6c54c2f23bd3d1ef1aaa28de809e/CMFWikiPage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 304, 11116, 12, 2890, 4672, 3536, 990, 12350, 17174, 3695, 11193, 333, 1363, 1807, 14322, 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, 336, 67, 304, 11116, 12, 2890, 4672, 3536, 990, 12350, 17174, 3695, 11193, 333, 1363, 1807, 14322, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
"@import '/static/monobook.css';</style>")
"@import '/static/common.css';"\ "@import '/static/monobook.css';"\ "@import '/static/styles.css';"\ "@import '/static/shared.css';"\ "</style>")
def send_article(self, title): article_text = self.get_wikitext(title)
ebf8fe65e3a3d9ad9a0c126dcc3d490fbcd106a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6694/ebf8fe65e3a3d9ad9a0c126dcc3d490fbcd106a4/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 11480, 12, 2890, 16, 2077, 4672, 7559, 67, 955, 273, 365, 18, 588, 67, 11999, 305, 408, 12, 2649, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 11480, 12, 2890, 16, 2077, 4672, 7559, 67, 955, 273, 365, 18, 588, 67, 11999, 305, 408, 12, 2649, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
bugs = bugs[start:end]
bugs = bugs[start-1:end]
def fetch_bugs(request): # FIXME: Give bugs some date field language = request.GET.get('language', '') format = request.GET.get('format', None) start = int(request.GET.get('start', 0)) end = int(request.GET.get('end', 10)) bugs = Bug.objects.all() if language: bugs = bugs.filter(project__language=language) #if stat...
ce6eb1085a52192477f50e9471a68be3c55e38f8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11976/ce6eb1085a52192477f50e9471a68be3c55e38f8/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2158, 67, 19381, 12, 2293, 4672, 468, 9852, 30, 22374, 22398, 2690, 1509, 652, 225, 2653, 273, 590, 18, 3264, 18, 588, 2668, 4923, 2187, 28707, 740, 273, 590, 18, 3264, 18, 588, 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, 2158, 67, 19381, 12, 2293, 4672, 468, 9852, 30, 22374, 22398, 2690, 1509, 652, 225, 2653, 273, 590, 18, 3264, 18, 588, 2668, 4923, 2187, 28707, 740, 273, 590, 18, 3264, 18, 588, 2668, ...
version = self.versionTable.getId(versionId)
version = self.versionTable.getBareId(versionId)
def iterFilesInTrove(self, troveName, version, flavor, sortByPath = False, withFiles = False,
ff40598544dc1ec63bd17f3cfe42dc72b9a3dc42 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/ff40598544dc1ec63bd17f3cfe42dc72b9a3dc42/sqldb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 2697, 382, 56, 303, 537, 12, 2890, 16, 23432, 537, 461, 16, 1177, 16, 19496, 16, 14021, 743, 273, 1083, 16, 598, 2697, 273, 1083, 16, 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, 1400, 2697, 382, 56, 303, 537, 12, 2890, 16, 23432, 537, 461, 16, 1177, 16, 19496, 16, 14021, 743, 273, 1083, 16, 598, 2697, 273, 1083, 16, 2, -100, -100, -100, -100, -100, -100, -100,...
def field(self, size = 30):
def field(self, **kwargs):
def field(self, size = 30): ''' Render the property as a field in HTML.
c8c3f4ef5b550e6c5029510af5d3e559c95e1b4b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/c8c3f4ef5b550e6c5029510af5d3e559c95e1b4b/templating.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 652, 12, 2890, 16, 2826, 4333, 4672, 9163, 6987, 326, 1272, 487, 279, 652, 316, 3982, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 652, 12, 2890, 16, 2826, 4333, 4672, 9163, 6987, 326, 1272, 487, 279, 652, 316, 3982, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if self.footer_element is not None: self.current_element.append(self.footer_element)
def depart_document(self, node): if self.footer_element is not None: self.current_element.append(self.footer_element) pass
ca52f6543d8ce974fe6ad6156137838107a842e5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5620/ca52f6543d8ce974fe6ad6156137838107a842e5/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 5457, 12, 2890, 16, 756, 4672, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 26000, 67, 5457, 12, 2890, 16, 756, 4672, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
fi.write(data)
else: data = None
def run_cgi(self): """Execute a CGI script.""" path = self.path dir, rest = self.cgi_info
6fd181e7964ee35b817e3c8b7b605cd2a3193c8c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/6fd181e7964ee35b817e3c8b7b605cd2a3193c8c/CGIHTTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 19062, 12, 2890, 4672, 3536, 5289, 279, 385, 13797, 2728, 12123, 589, 273, 365, 18, 803, 1577, 16, 3127, 273, 365, 18, 19062, 67, 1376, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 19062, 12, 2890, 4672, 3536, 5289, 279, 385, 13797, 2728, 12123, 589, 273, 365, 18, 803, 1577, 16, 3127, 273, 365, 18, 19062, 67, 1376, 2, -100, -100, -100, -100, -100, -100, ...
if demo_storage: storage_snippet_template = demo_storage_template % zeo_storage_template else: storage_snippet_template = zeo_storage_template
storage_snippet_template = zeo_storage_template
def _split(el): el = el.split(None, 1) return len(el) == 2 and el or None
f95276d76c787886b138ee03879678c3d985c7c0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12227/f95276d76c787886b138ee03879678c3d985c7c0/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4939, 12, 292, 4672, 415, 273, 415, 18, 4939, 12, 7036, 16, 404, 13, 327, 562, 12, 292, 13, 422, 576, 471, 415, 578, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4939, 12, 292, 4672, 415, 273, 415, 18, 4939, 12, 7036, 16, 404, 13, 327, 562, 12, 292, 13, 422, 576, 471, 415, 578, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100...
items = remove_list_duplicates(items, False)
(items, i) = remove_list_duplicates(items, [], False)
def browse(self, widget=None, root='/'): # Populates the library list with entries starting at root if not self.conn: return
5702d6d9e3d709a24b93d00b466aeb171fa3d0c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/5702d6d9e3d709a24b93d00b466aeb171fa3d0c9/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21670, 12, 2890, 16, 3604, 33, 7036, 16, 1365, 2218, 2473, 4672, 468, 10264, 17099, 326, 5313, 666, 598, 3222, 5023, 622, 1365, 309, 486, 365, 18, 4646, 30, 327, 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, 21670, 12, 2890, 16, 3604, 33, 7036, 16, 1365, 2218, 2473, 4672, 468, 10264, 17099, 326, 5313, 666, 598, 3222, 5023, 622, 1365, 309, 486, 365, 18, 4646, 30, 327, 2, -100, -100, -100, -...
ff = theano.function([], uu)
ff = theano.function([], uu, mode=mode)
def basictest(f, steps, prefix=""): dt = 0.0 for i in xrange(steps): t0 = time.time() ival = f() dt += time.time() - t0 ival = numpy.asarray(ival) if i == 0: mean = numpy.array(ival, copy=True) else: alpha = 1.0 / (1+i) mean = alpha * ival + (1-alpha)*mean assert ival.min()>0 and ival.max()<1
5f0a153646f4ea9d24dc458b1d1fa19b8dc3dad7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/5f0a153646f4ea9d24dc458b1d1fa19b8dc3dad7/test_rng_mrg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2580, 933, 395, 12, 74, 16, 6075, 16, 1633, 1546, 6, 4672, 3681, 273, 374, 18, 20, 364, 277, 316, 12314, 12, 8986, 4672, 268, 20, 273, 813, 18, 957, 1435, 277, 1125, 273, 284, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2580, 933, 395, 12, 74, 16, 6075, 16, 1633, 1546, 6, 4672, 3681, 273, 374, 18, 20, 364, 277, 316, 12314, 12, 8986, 4672, 268, 20, 273, 813, 18, 957, 1435, 277, 1125, 273, 284, 1435, ...
target_roles = target_roles + ('Authenticated', 'Anonymous')
target_roles += ('Authenticated', 'Anonymous')
def _adjust_participation_mode(self): """Set role privileges according to participation mode."""
bf5f1f4173166b8427ae6d557163320c468d62eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/bf5f1f4173166b8427ae6d557163320c468d62eb/Collector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 13362, 67, 2680, 24629, 367, 67, 3188, 12, 2890, 4672, 3536, 694, 2478, 19583, 4888, 358, 30891, 367, 1965, 12123, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13362, 67, 2680, 24629, 367, 67, 3188, 12, 2890, 4672, 3536, 694, 2478, 19583, 4888, 358, 30891, 367, 1965, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
""" Test cases for detach_process_context function """
""" Test cases for detach_process_context function. """
def test_requests_all_but_excluded_files_to_close(self): """ Should request close of all open files but those excluded """ test_exclude = set([3, 7]) args = dict( exclude = test_exclude, ) expect_file_descriptors = ( fd for fd in reversed(range(self.test_maxfd)) if fd not in test_exclude) expect_mock_output = "...\n" +...
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, 11420, 67, 454, 67, 12885, 67, 24602, 67, 2354, 67, 869, 67, 4412, 12, 2890, 4672, 3536, 9363, 590, 1746, 434, 777, 1696, 1390, 1496, 5348, 8845, 3536, 1842, 67, 10157, 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, 1842, 67, 11420, 67, 454, 67, 12885, 67, 24602, 67, 2354, 67, 869, 67, 4412, 12, 2890, 4672, 3536, 9363, 590, 1746, 434, 777, 1696, 1390, 1496, 5348, 8845, 3536, 1842, 67, 10157, 273, ...
self.add_data_files(generate_svn_version_py())
d = os.path.join(*(self.name.split('.'))) self.add_data_files((d,generate_svn_version_py()))
def rm_file(f=target): try: os.remove(f); print 'removed',f except OSError: pass try: os.remove(f+'c'); print 'removed',f+'c' except OSError: pass
464b5d560efb3ef231605b7da7b9e9d133a1565d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/464b5d560efb3ef231605b7da7b9e9d133a1565d/misc_util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6692, 67, 768, 12, 74, 33, 3299, 4672, 775, 30, 1140, 18, 4479, 12, 74, 1769, 1172, 296, 14923, 2187, 74, 1335, 10002, 30, 1342, 775, 30, 1140, 18, 4479, 12, 74, 6797, 71, 8284, 1172...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6692, 67, 768, 12, 74, 33, 3299, 4672, 775, 30, 1140, 18, 4479, 12, 74, 1769, 1172, 296, 14923, 2187, 74, 1335, 10002, 30, 1342, 775, 30, 1140, 18, 4479, 12, 74, 6797, 71, 8284, 1172...
url = self._get_url(config.get("plugins", "scrobbler_service"))
try: service = config.get("plugins", "scrobbler_service") except config.error: service = sorted(self.services.keys())[0] url = self._get_url(service)
def read_config(self): username = "" password = "" url = "" try: username = config.get("plugins", "scrobbler_username") password = config.get("plugins", "scrobbler_password") url = self._get_url(config.get("plugins", "scrobbler_service")) except: if (not self.need_config and getattr(self, 'PMEnFlag', False)): self.quic...
1ead4f67fd06706d6005c2576425e093afe4f508 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4764/1ead4f67fd06706d6005c2576425e093afe4f508/qlscrobbler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 1425, 12, 2890, 4672, 2718, 273, 1408, 2201, 273, 1408, 880, 273, 1408, 775, 30, 2718, 273, 642, 18, 588, 2932, 8057, 3113, 315, 1017, 303, 9897, 749, 67, 5053, 7923, 2201, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 1425, 12, 2890, 4672, 2718, 273, 1408, 2201, 273, 1408, 880, 273, 1408, 775, 30, 2718, 273, 642, 18, 588, 2932, 8057, 3113, 315, 1017, 303, 9897, 749, 67, 5053, 7923, 2201, 27...
done.acquire()
done.wait(60)
def check_parallel_module_init(self): if imp.lock_held(): # This triggers on, e.g., from test import autotest. raise unittest.SkipTest("can't run when import lock is held")
a62cbf7cce9ac3e105f587c73b41f7b70d91bb3c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/a62cbf7cce9ac3e105f587c73b41f7b70d91bb3c/test_threaded_import.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 18054, 67, 2978, 67, 2738, 12, 2890, 4672, 309, 1646, 18, 739, 67, 76, 488, 13332, 468, 1220, 11752, 603, 16, 425, 18, 75, 12990, 628, 1842, 1930, 2059, 352, 395, 18, 1002, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 18054, 67, 2978, 67, 2738, 12, 2890, 4672, 309, 1646, 18, 739, 67, 76, 488, 13332, 468, 1220, 11752, 603, 16, 425, 18, 75, 12990, 628, 1842, 1930, 2059, 352, 395, 18, 1002, ...
data['email'] = raw_input(' EMail: ')
data['email'] = input(' EMail: ')
def send_metadata(self): ''' Send the metadata to the package index server.
2d1ca2dbabde2ed69e06b50ddb2e87b12958d696 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/2d1ca2dbabde2ed69e06b50ddb2e87b12958d696/register.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 4165, 12, 2890, 4672, 9163, 2479, 326, 1982, 358, 326, 2181, 770, 1438, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 1366, 67, 4165, 12, 2890, 4672, 9163, 2479, 326, 1982, 358, 326, 2181, 770, 1438, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if int(platform.release().split('.')[0]) <= 8:
if int(platform.release().split('.')[0]) < 8:
def checkEnvironment(): """ Check that we're running on a supported system. """ if platform.system() != 'Darwin': fatal("This script should be run on a Mac OS X 10.4 (or later) system") if int(platform.release().split('.')[0]) <= 8: fatal("This script should be run on a Mac OS X 10.4 (or later) system") if not os.pa...
2320ec3dbdc4311e3092a38e86bd757ff56a735e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/2320ec3dbdc4311e3092a38e86bd757ff56a735e/build-installer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 5494, 13332, 3536, 2073, 716, 732, 4565, 3549, 603, 279, 3260, 2619, 18, 3536, 225, 309, 4072, 18, 4299, 1435, 480, 296, 40, 19992, 4278, 10081, 2932, 2503, 2728, 1410, 506, 1086, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 5494, 13332, 3536, 2073, 716, 732, 4565, 3549, 603, 279, 3260, 2619, 18, 3536, 225, 309, 4072, 18, 4299, 1435, 480, 296, 40, 19992, 4278, 10081, 2932, 2503, 2728, 1410, 506, 1086, 6...
message = make_message(MESSAGE_HELLO, self.host, self.port) self.service_api.SendData(peer.id_, message)
if not self.remote_ips.has_key(peer.id_): message = make_message(MESSAGE_HELLO, self.host, self.port) self.service_api.SendData(peer.id_, message) def on_lost_peer(self, peer_id): """tries to connect to new peer""" if self.remote_ips.has_key(peer_id): remote_ip = self.remote_ips[peer_id] if self.remote_ids.has_key(r...
def on_new_peer(self, peer, service): """tries to connect to new peer""" # parse address, remote_ip, port = parse_address(service.address) print "*****", remote_ip, port # set up information in cache self._init_peer(peer.id_, remote_ip) # declare known port to other peer throug service_api message = make_message(MESSAG...
cf33b4c91ed5d02ad93ec4dad579b5289aa82e45 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2522/cf33b4c91ed5d02ad93ec4dad579b5289aa82e45/network.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 2704, 67, 12210, 12, 2890, 16, 4261, 16, 1156, 4672, 3536, 2007, 358, 3077, 358, 394, 4261, 8395, 468, 1109, 1758, 16, 2632, 67, 625, 16, 1756, 273, 1109, 67, 2867, 12, 3278, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 2704, 67, 12210, 12, 2890, 16, 4261, 16, 1156, 4672, 3536, 2007, 358, 3077, 358, 394, 4261, 8395, 468, 1109, 1758, 16, 2632, 67, 625, 16, 1756, 273, 1109, 67, 2867, 12, 3278, ...
reposChangeSetList = [ x[1] for x in
reposChangeSetList = set([ x[1] for x in
# def _updateChangeSet -- body starts here
9e0dd770d282627495e3f3214b59c01aef898cc0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/9e0dd770d282627495e3f3214b59c01aef898cc0/update.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 1652, 389, 2725, 21565, 1493, 1417, 2542, 2674, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 1652, 389, 2725, 21565, 1493, 1417, 2542, 2674, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.type_stats = {'ALCH':{},'AMMO':{},'APPA':{},'ARMO':{},'BOOK':{},'CLOT':{},'INGR':{},'KEYM':{},'LIGH':{},'MISC':{},'SGST':{},'SLGM':{},'WEAP':{}}
self.type_stats = {'ALCH':{},'AMMO':{},'ARMO':{},'BOOK':{},'INGR':{},'KEYM':{},'LIGH':{},'MISC':{},'WEAP':{}}
def __init__(self,types=None,aliases=None): """Initialize.""" #--type_stats[type] = ... #--AMMO: (eid, weight, value, damage, speed, epoints) #--ARMO: (eid, weight, value, health, strength) #--WEAP: (eid, weight, value, health, damage, speed, reach, epoints) self.type_stats = {'ALCH':{},'AMMO':{},'APPA':{},'ARMO':{},'B...
aeca1db1240364fac710811ccc7f19b3a36b644a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/aeca1db1240364fac710811ccc7f19b3a36b644a/bosh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2352, 33, 7036, 16, 13831, 33, 7036, 4672, 3536, 7520, 12123, 468, 413, 723, 67, 5296, 63, 723, 65, 273, 1372, 468, 413, 2192, 5980, 30, 261, 73, 350, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2352, 33, 7036, 16, 13831, 33, 7036, 4672, 3536, 7520, 12123, 468, 413, 723, 67, 5296, 63, 723, 65, 273, 1372, 468, 413, 2192, 5980, 30, 261, 73, 350, ...
for path in (src_dir, os.path.join(dst_dir, os.path.pardir)):
for path in (src_dir, os.path.abspath(os.path.join(dst_dir, os.path.pardir)) ):
def read_data(path): f = open(path) data = f.read() f.close() return data
191301f1d5e08b99dc0400f25ca0c34113b96de3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/191301f1d5e08b99dc0400f25ca0c34113b96de3/test_shutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 892, 12, 803, 4672, 284, 273, 1696, 12, 803, 13, 501, 273, 284, 18, 896, 1435, 284, 18, 4412, 1435, 327, 501, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 892, 12, 803, 4672, 284, 273, 1696, 12, 803, 13, 501, 273, 284, 18, 896, 1435, 284, 18, 4412, 1435, 327, 501, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.cutoverrms_linedit.setText(self.cutoverrms)
self.cutoverrms_linedit.setText(str(self.cutoverrms))
def _setup_general_page(self): ''' Setup widgets to initial (default or defined) values on the General page. ''' connect_checkbox_with_boolean_pref( self.display_compass_checkbox, displayCompass_prefs_key ) connect_checkbox_with_boolean_pref( self.display_compass_labels_checkbox, displayCompassLabels_prefs_key ) connec...
3db5718e715c542b75f357ecd072d347ef13f2cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/3db5718e715c542b75f357ecd072d347ef13f2cf/UserPrefs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8401, 67, 12259, 67, 2433, 12, 2890, 4672, 9163, 10939, 10965, 358, 2172, 261, 1886, 578, 2553, 13, 924, 603, 326, 9544, 1363, 18, 9163, 3077, 67, 12017, 67, 1918, 67, 6494, 67, 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, 389, 8401, 67, 12259, 67, 2433, 12, 2890, 4672, 9163, 10939, 10965, 358, 2172, 261, 1886, 578, 2553, 13, 924, 603, 326, 9544, 1363, 18, 9163, 3077, 67, 12017, 67, 1918, 67, 6494, 67, 2...
def setTheme(self, obj, event, path, *args, **kargs):
def setTheme(self, path, obj, event, *args, **kargs):
def setTheme(self, obj, event, path, *args, **kargs): """ Set the current theme to `path` """ os.system('rm /usr/share/shr-splash/theme') # do we really need THAT? os.system('update-alternatives --install /usr/share/shr-splash/theme shr-splash-theme '+path+' '+str(self.max_prio+1)) self.ThemeNameUpdate()
22f2b1c05bcc7fb4497b8170cc918e67c41d3ab9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11428/22f2b1c05bcc7fb4497b8170cc918e67c41d3ab9/shr_splash.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 8335, 12, 2890, 16, 589, 16, 1081, 16, 871, 16, 380, 1968, 16, 2826, 79, 1968, 4672, 3536, 1000, 326, 783, 5006, 358, 1375, 803, 68, 3536, 1140, 18, 4299, 2668, 8864, 342, 13640, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 8335, 12, 2890, 16, 589, 16, 1081, 16, 871, 16, 380, 1968, 16, 2826, 79, 1968, 4672, 3536, 1000, 326, 783, 5006, 358, 1375, 803, 68, 3536, 1140, 18, 4299, 2668, 8864, 342, 13640, ...
self.old_showwarning(message, category, filename, lineno, file, line)
try: self.old_showwarning(message, category, filename, lineno, file, line) except TypeError: self.old_showwarning(message, category, filename, lineno)
def _showwarning(message, category, filename, lineno, file=None, line=None): self.old_showwarning(message, category, filename, lineno, file, line)
67042ac48ff646db137292bdfc7cbc17f937def3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12871/67042ac48ff646db137292bdfc7cbc17f937def3/log.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4500, 8551, 12, 2150, 16, 3150, 16, 1544, 16, 7586, 16, 585, 33, 7036, 16, 980, 33, 7036, 4672, 365, 18, 1673, 67, 4500, 8551, 12, 2150, 16, 3150, 16, 1544, 16, 7586, 16, 585, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 4500, 8551, 12, 2150, 16, 3150, 16, 1544, 16, 7586, 16, 585, 33, 7036, 16, 980, 33, 7036, 4672, 365, 18, 1673, 67, 4500, 8551, 12, 2150, 16, 3150, 16, 1544, 16, 7586, 16, 585, ...
sizer_3.Add(self.combo_address, 1, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5) sizer_2.Add(sizer_3, 0, wx.EXPAND, 0) sizer_4.Add(self.button_call, 1, wx.ALL, 5) sizer_4.Add(self.button_lookup, 1, wx.ALL|wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 5)
sizer_3.Add(self.combo_address, 1, wx.ALL|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) self.panel_2.SetAutoLayout(1) self.panel_2.SetSizer(sizer_3) sizer_3.Fit(self.panel_2) sizer_3.SetSizeHints(self.panel_2) sizer_2.Add(self.panel_2, 0, wx.EXPAND, 0) sizer_4.Add(self.button_call, 1, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5) sizer...
def __do_layout(self): # begin wxGlade: ShtoomMainFrame.__do_layout sizer_2 = wx.BoxSizer(wx.VERTICAL) sizer_1 = wx.BoxSizer(wx.HORIZONTAL) grid_sizer_1 = wx.GridSizer(4, 3, 0, 0) sizer_4 = wx.BoxSizer(wx.HORIZONTAL) sizer_3 = wx.BoxSizer(wx.HORIZONTAL) sizer_3.Add(self.label_1, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5) s...
445b542dd2731a15c0e3129423052eb2199e816e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1265/445b542dd2731a15c0e3129423052eb2199e816e/wxshtoomframe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2896, 67, 6741, 12, 2890, 4672, 468, 2376, 7075, 21308, 2486, 30, 348, 647, 4252, 6376, 3219, 16186, 2896, 67, 6741, 272, 1824, 67, 22, 273, 7075, 18, 3514, 20512, 12, 27226, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2896, 67, 6741, 12, 2890, 4672, 468, 2376, 7075, 21308, 2486, 30, 348, 647, 4252, 6376, 3219, 16186, 2896, 67, 6741, 272, 1824, 67, 22, 273, 7075, 18, 3514, 20512, 12, 27226, 18, ...
nl = ([self.cfg.GetMasterNode(), self.instance.primary_node] + list(self.instance.secondary_nodes))
nl = [self.cfg.GetMasterNode()] + list(self.instance.all_nodes)
def BuildHooksEnv(self): """Build hooks env.
6b12959c903240425485a91cdabf17247405be7c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/6b12959c903240425485a91cdabf17247405be7c/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3998, 13620, 3491, 12, 2890, 4672, 3536, 3116, 9153, 1550, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3998, 13620, 3491, 12, 2890, 4672, 3536, 3116, 9153, 1550, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
def view(self, name, keys=None): return [web.storage(id=doc['_id'], key=doc['_id'], value=doc) for doc in self.docs]
def view(self, name, keys=None, include_docs=False): return [web.storage(id=doc['_id'], key=doc['_id'], value=doc, doc=doc) for doc in self.docs]
def view(self, name, keys=None): return [web.storage(id=doc['_id'], key=doc['_id'], value=doc) for doc in self.docs]
ebb0b86f96814ef918bb51e9ea72ac2b92055f5c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/ebb0b86f96814ef918bb51e9ea72ac2b92055f5c/test_model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1476, 12, 2890, 16, 508, 16, 1311, 33, 7036, 4672, 327, 306, 4875, 18, 5697, 12, 350, 33, 2434, 3292, 67, 350, 17337, 498, 33, 2434, 3292, 67, 350, 17337, 460, 33, 2434, 13, 364, 997...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1476, 12, 2890, 16, 508, 16, 1311, 33, 7036, 4672, 327, 306, 4875, 18, 5697, 12, 350, 33, 2434, 3292, 67, 350, 17337, 498, 33, 2434, 3292, 67, 350, 17337, 460, 33, 2434, 13, 364, 997...
bootDict = dict(type='hvm', loader='/usr/lib/xen/boot/hvmloader', devices=['hd']) boot = bootElement(bootDict)[0]
bootElements(domain, domainType)
def getOvfDomains(ovf, path, hypervisor=None, configId=None, envDirectory=None): """ Returns a dictionary with all of the VirtualSystems in an ovf listed as keys with the libvirt domain, for the specified configuration, stored as the value. @param ovf: Ovf file @type ovf: DOM Document @param path: path to Ovf file @t...
f6c4ee20d191329103e90ea864f14e2fab886b83 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9789/f6c4ee20d191329103e90ea864f14e2fab886b83/OvfLibvirt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17971, 90, 74, 15531, 12, 1527, 74, 16, 589, 16, 9512, 10227, 33, 7036, 16, 642, 548, 33, 7036, 16, 1550, 2853, 33, 7036, 4672, 3536, 2860, 279, 3880, 598, 777, 434, 326, 7269, 31072, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17971, 90, 74, 15531, 12, 1527, 74, 16, 589, 16, 9512, 10227, 33, 7036, 16, 642, 548, 33, 7036, 16, 1550, 2853, 33, 7036, 4672, 3536, 2860, 279, 3880, 598, 777, 434, 326, 7269, 31072, ...
if len(creche.activites) > 0: self.activity_choice = ActivityComboBox(self, -1, style=wx.CB_READONLY, size=(100, -1)) tmp = Activite(creation=False) tmp.value = 0 self.activity_choice.Append(u'Présences', tmp) for activity in creche.activites.values(): self.activity_choice.Append(activity.label, activity) self.activity...
self.activity_choice = ActivityComboBox(self, -1, style=wx.CB_READONLY, size=(100, -1)) sizer.Add(self.activity_choice, 0, wx.ALIGN_CENTER_VERTICAL) self.Bind(wx.EVT_COMBOBOX, self.changeTool, self.activity_choice)
def __init__(self, parent): GPanel.__init__(self, parent, u'Présences enfants') self.activity = Activite(creation=False, value=0)
8121ef4457dd47c34a71f4c5b1decf4635826711 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8291/8121ef4457dd47c34a71f4c5b1decf4635826711/panel_planning.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 4672, 611, 5537, 16186, 2738, 972, 12, 2890, 16, 982, 16, 582, 11, 2050, 132, 107, 87, 2369, 570, 74, 4388, 6134, 365, 18, 9653, 273, 26939, 1137, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 4672, 611, 5537, 16186, 2738, 972, 12, 2890, 16, 982, 16, 582, 11, 2050, 132, 107, 87, 2369, 570, 74, 4388, 6134, 365, 18, 9653, 273, 26939, 1137, ...
print "Looking up %s" % (value,)
def OnTooltip(self, widget, x, y, keyboard_mode, tooltip): try: (incorrectpath, column, cx, cy) = widget.get_path_at_pos(x, y) # the returned path is not correct since it calculates it pretending there's no header! (path, droppos) = widget.get_dest_row_at_pos(x, y) # the return path of this func is okay, but we also ne...
6f144e3a7bcbbccc42fc8fff8eb40ee70a52f0f6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/6f144e3a7bcbbccc42fc8fff8eb40ee70a52f0f6/chatrooms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 22444, 12, 2890, 16, 3604, 16, 619, 16, 677, 16, 16263, 67, 3188, 16, 11915, 4672, 775, 30, 261, 267, 6746, 803, 16, 1057, 16, 9494, 16, 6143, 13, 273, 3604, 18, 588, 67, 803, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 22444, 12, 2890, 16, 3604, 16, 619, 16, 677, 16, 16263, 67, 3188, 16, 11915, 4672, 775, 30, 261, 267, 6746, 803, 16, 1057, 16, 9494, 16, 6143, 13, 273, 3604, 18, 588, 67, 803, ...
"""Set the NIDAS install path, and enable builds of components which use NIDAS. Setting it to empty disables NIDAS components.""",
"""Set the NIDAS prefix paths, and enable builds of components which use NIDAS. Setting it to empty disables NIDAS components. This can be a comma-separated list of paths, for example to build against a NIDAS installation whose other dependencies are installed under another prefix. Relative paths will be converted to ...
def generate(env): global options if not options: options = env.GlobalOptions() options.Add('NIDAS_PATH',
a4cc7c4dfa3c930e0b10951da106264241a8f1fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1466/a4cc7c4dfa3c930e0b10951da106264241a8f1fb/nidas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 3074, 4672, 2552, 702, 309, 486, 702, 30, 702, 273, 1550, 18, 5160, 1320, 1435, 702, 18, 986, 2668, 50, 734, 3033, 67, 4211, 2187, 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, 2103, 12, 3074, 4672, 2552, 702, 309, 486, 702, 30, 702, 273, 1550, 18, 5160, 1320, 1435, 702, 18, 986, 2668, 50, 734, 3033, 67, 4211, 2187, 2, -100, -100, -100, -100, -100, -100, -100...
"""Returns a tuple containing the paths names."""
"""Return a tuple containing the paths names."""
def get_path_names(): """Returns a tuple containing the paths names.""" return _SCHEME_KEYS
300623d9b25ca0f08271359b8cea0b5d0f5097d5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/300623d9b25ca0f08271359b8cea0b5d0f5097d5/sysconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 803, 67, 1973, 13332, 3536, 990, 279, 3193, 4191, 326, 2953, 1257, 12123, 327, 389, 22870, 67, 16333, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 803, 67, 1973, 13332, 3536, 990, 279, 3193, 4191, 326, 2953, 1257, 12123, 327, 389, 22870, 67, 16333, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
b = buffer(a)
b = bytes(buffer(a))
def test_buffer(self): a = array.array(self.typecode, self.example) b = buffer(a) self.assertEqual(b[0], a.tostring()[0])
10d1df1f083a5ed0aef519012af1724d0009a6cd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/10d1df1f083a5ed0aef519012af1724d0009a6cd/test_array.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4106, 12, 2890, 4672, 279, 273, 526, 18, 1126, 12, 2890, 18, 723, 710, 16, 365, 18, 8236, 13, 324, 273, 1731, 12, 4106, 12, 69, 3719, 365, 18, 11231, 5812, 12, 70, 63, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4106, 12, 2890, 4672, 279, 273, 526, 18, 1126, 12, 2890, 18, 723, 710, 16, 365, 18, 8236, 13, 324, 273, 1731, 12, 4106, 12, 69, 3719, 365, 18, 11231, 5812, 12, 70, 63, 20...
app = LearnWeights(root, ".", settings) root.mainloop()
app = LearnWeights(root, ".", settings) if "-run" in argv: app.learn() else: root.mainloop()
def learn(self): try: # update settings mln = self.selected_mln.get() db = self.selected_db.get() if "" in (db,mln): return method = self.selected_method.get() params = self.params.get() self.settings["mln"] = mln self.settings["db"] = db self.settings["output_filename"] = self.output_filename.get() self.settings["para...
12179d4da37ab5b497edbaf11376e8bba80e549a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10261/12179d4da37ab5b497edbaf11376e8bba80e549a/learningTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16094, 12, 2890, 4672, 775, 30, 468, 1089, 1947, 312, 2370, 273, 365, 18, 8109, 67, 781, 82, 18, 588, 1435, 1319, 273, 365, 18, 8109, 67, 1966, 18, 588, 1435, 309, 1408, 316, 261, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16094, 12, 2890, 4672, 775, 30, 468, 1089, 1947, 312, 2370, 273, 365, 18, 8109, 67, 781, 82, 18, 588, 1435, 1319, 273, 365, 18, 8109, 67, 1966, 18, 588, 1435, 309, 1408, 316, 261, 19...
if listType.upper() == "FL":
listType = listIDToCode[listType].upper() if listType == "FL":
def addContact(self, listType, userHandle, groupID=0): """ used to add a contact to the desired list.
9b2b7163e441396d9e5e7f46775cd7809b4655be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/9b2b7163e441396d9e5e7f46775cd7809b4655be/msn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 6567, 12, 2890, 16, 666, 559, 16, 729, 3259, 16, 30365, 33, 20, 4672, 3536, 1399, 358, 527, 279, 5388, 358, 326, 6049, 666, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 6567, 12, 2890, 16, 666, 559, 16, 729, 3259, 16, 30365, 33, 20, 4672, 3536, 1399, 358, 527, 279, 5388, 358, 326, 6049, 666, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
if ident in ['abs', 'int', 'float', 'str', 'dict', 'tuple', 'list', 'type', 'cmp', 'sum', 'zip', 'max', 'min']:
if ident in ['abs', 'int', 'float', 'str', 'dict', 'tuple', 'list', 'type', 'cmp', 'sum', 'zip']:
def visitCallFunc(self, node, func=None): objexpr, ident, direct_call, method_call, constructor, parent_constr = analyze_callfunc(node) funcs = callfunc_targets(node, self.mergeinh)
f04aac999672c0e6c26a40fc821dfc52a4b13754 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6661/f04aac999672c0e6c26a40fc821dfc52a4b13754/cpp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 1477, 2622, 12, 2890, 16, 756, 16, 1326, 33, 7036, 4672, 1081, 8638, 16, 3390, 16, 2657, 67, 1991, 16, 707, 67, 1991, 16, 3885, 16, 982, 67, 591, 701, 273, 12375, 67, 1991, 644...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1477, 2622, 12, 2890, 16, 756, 16, 1326, 33, 7036, 4672, 1081, 8638, 16, 3390, 16, 2657, 67, 1991, 16, 707, 67, 1991, 16, 3885, 16, 982, 67, 591, 701, 273, 12375, 67, 1991, 644...
"new password, operation cancelled!"), _("Validation Error."), parent=win)
"new password, operation cancelled!"), win, _("Validation Error."))
def sig_db_password(self, widget): dialog = glade.XML(GLADE, "dia_passwd_change", gettext.textdomain()) win = dialog.get_widget('dia_passwd_change') win.set_icon(TRYTON_ICON) win.set_transient_for(self.window) win.show_all() server_widget = dialog.get_widget('ent_server') old_pass_widget = dialog.get_widget('old_passwd...
2e1ec4542b60b477768d9c761a8c50a9a0aa3cb0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/2e1ec4542b60b477768d9c761a8c50a9a0aa3cb0/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3553, 67, 1966, 67, 3664, 12, 2890, 16, 3604, 4672, 6176, 273, 5118, 2486, 18, 4201, 12, 43, 2534, 1639, 16, 315, 72, 1155, 67, 24002, 67, 3427, 3113, 24972, 18, 955, 4308, 10756, 5657...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3553, 67, 1966, 67, 3664, 12, 2890, 16, 3604, 4672, 6176, 273, 5118, 2486, 18, 4201, 12, 43, 2534, 1639, 16, 315, 72, 1155, 67, 24002, 67, 3427, 3113, 24972, 18, 955, 4308, 10756, 5657...
pass
if self.status.has_key(username): del self.status[username] def authorise(self, username, role=None, signed_in=None): if signed_in is not None: is_signed_in = False if self.status.has_key(username): is_signed_in = True return signed_in and is_signed_in return True
def sign_out(self, username): pass
02f3724cbebceb32d0985c94e0d581c827403a69 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12856/02f3724cbebceb32d0985c94e0d581c827403a69/auth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1573, 67, 659, 12, 2890, 16, 2718, 4672, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 1573, 67, 659, 12, 2890, 16, 2718, 4672, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
mimetype = self.get_mimetype()
metadata = self.get_metadata() if metadata is None: mimetype = self.get_mimetype() else: mimetype = self.get_property('format')
def download(self): context = get_context() request, response = context.request, context.response
87be32d9c8d5020e7f87a9cf6af238b249b7d8b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/87be32d9c8d5020e7f87a9cf6af238b249b7d8b9/text.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 12, 2890, 4672, 819, 273, 336, 67, 2472, 1435, 590, 16, 766, 273, 819, 18, 2293, 16, 819, 18, 2740, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 12, 2890, 4672, 819, 273, 336, 67, 2472, 1435, 590, 16, 766, 273, 819, 18, 2293, 16, 819, 18, 2740, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
logging.info("Disconnected %s:%s", client_addr[0], client_addr[1])
logging.debug("Disconnected %s:%s", client_addr[0], client_addr[1])
def __init__(self, server, sock, client_addr): """Initializes this class.
14d57a8b8a985101b1d0160c2083cbd91a61674c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/14d57a8b8a985101b1d0160c2083cbd91a61674c/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1438, 16, 7313, 16, 1004, 67, 4793, 4672, 3536, 9685, 333, 667, 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, 1438, 16, 7313, 16, 1004, 67, 4793, 4672, 3536, 9685, 333, 667, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
SYSTEM_ENCODING = sys.stdin.encoding
def __getattr__(self, name): raise NotImplementedError('This usage requires Robot Framework ' 'to be installed.')
f4fffb7a502be747eb2dfc57f6bc0eae3dcf6d50 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/f4fffb7a502be747eb2dfc57f6bc0eae3dcf6d50/OperatingSystem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 508, 4672, 1002, 11206, 2668, 2503, 4084, 4991, 19686, 352, 13472, 296, 296, 869, 506, 5876, 1093, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 508, 4672, 1002, 11206, 2668, 2503, 4084, 4991, 19686, 352, 13472, 296, 296, 869, 506, 5876, 1093, 13, 2, -100, -100, -100, -100, -100, -100, -100, -1...
<table class="box">
<table class="box" width="100%">
def tabmailpass(self, uri): log(3, 'Creating mailpass table') box = '''<form name="mailpass" action="/data/save/mailpass"> <table class="box"> <tr><th colspan="2">|strmail_passwd|</th></tr> <tr> <td><input type="text" name="email"></td> <td align="center"><input type="submit" name="mailpass" value="|strmail_passwd|"></...
082273c82228cdbe8b4f226333276a401090d396 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6947/082273c82228cdbe8b4f226333276a401090d396/HTML.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3246, 4408, 5466, 12, 2890, 16, 2003, 4672, 613, 12, 23, 16, 296, 11092, 4791, 5466, 1014, 6134, 3919, 273, 9163, 32, 687, 508, 1546, 4408, 5466, 6, 1301, 1546, 19, 892, 19, 5688, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3246, 4408, 5466, 12, 2890, 16, 2003, 4672, 613, 12, 23, 16, 296, 11092, 4791, 5466, 1014, 6134, 3919, 273, 9163, 32, 687, 508, 1546, 4408, 5466, 6, 1301, 1546, 19, 892, 19, 5688, 19, ...
if len(xi) != n:
if len(yi) != n:
def cnf(self, xi=None, yi=None, format=None): """ Return a representation of this S-Box in conjunctive normal form.
028b1dfc54561cf58a6177aabf3c612f642bd4af /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/028b1dfc54561cf58a6177aabf3c612f642bd4af/sbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23118, 12, 2890, 16, 14087, 33, 7036, 16, 16805, 33, 7036, 16, 740, 33, 7036, 4672, 3536, 2000, 279, 4335, 434, 333, 348, 17, 3514, 316, 10550, 6931, 688, 2212, 646, 18, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23118, 12, 2890, 16, 14087, 33, 7036, 16, 16805, 33, 7036, 16, 740, 33, 7036, 4672, 3536, 2000, 279, 4335, 434, 333, 348, 17, 3514, 316, 10550, 6931, 688, 2212, 646, 18, 2, -100, -100,...
self.assertEqual(os.path.join('test', 'module.py'), child.attr['file'])
self.assertEqual('test/module.py', child.attr['file'])
def test_summary_with_absolute_path(self): filename = os.sep.join([self.ctxt.basedir, 'test', 'module.py']) pickle.dump({ filename: set([1, 4, 5]), }, self.summary) self.summary.close() sourcefile = self.ctxt.resolve(self._create_file('test', 'module.py')) open(sourcefile, 'w').write( "if foo: # line 1\n" " print 'unc...
f81f53937d25c3c763b325d70eea248a459e561f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4547/f81f53937d25c3c763b325d70eea248a459e561f/pythontools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7687, 67, 1918, 67, 12547, 67, 803, 12, 2890, 4672, 1544, 273, 1140, 18, 10814, 18, 5701, 3816, 2890, 18, 20364, 18, 31722, 16, 296, 3813, 2187, 296, 2978, 18, 2074, 19486, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7687, 67, 1918, 67, 12547, 67, 803, 12, 2890, 4672, 1544, 273, 1140, 18, 10814, 18, 5701, 3816, 2890, 18, 20364, 18, 31722, 16, 296, 3813, 2187, 296, 2978, 18, 2074, 19486, 1...
registration_dir = settings.root + 'temp_web'
registration_dir = os.path.join(settings.root, 'temp_web')
def process_registrations(self): """Doesn't return.""" # A list of open registrations. A registration is open from when the # request is read until its done file is processed. Each item is a tuple # containing (random chars, time of request). self.open_registrations = [] registration_dir = settings.root + 'temp_web' se...
0bc2c478bca4dafe7548749e68654b7f8948378c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2803/0bc2c478bca4dafe7548749e68654b7f8948378c/backend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 1574, 3337, 1012, 12, 2890, 4672, 3536, 10154, 82, 1404, 327, 12123, 468, 432, 666, 434, 1696, 28620, 18, 432, 7914, 353, 1696, 628, 1347, 326, 468, 590, 353, 855, 3180, 2097, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1574, 3337, 1012, 12, 2890, 4672, 3536, 10154, 82, 1404, 327, 12123, 468, 432, 666, 434, 1696, 28620, 18, 432, 7914, 353, 1696, 628, 1347, 326, 468, 590, 353, 855, 3180, 2097, ...
def __init__(self, x, unit=None, cr=False, sort=True):
def __init__(self, x, unit=None, cr=False, sort=True, simplify=True):
def __init__(self, x, unit=None, cr=False, sort=True): if not isinstance(x, list): raise TypeError, "x must be a list" if isinstance(x, Factorization): if unit is None: unit = x.__unit else: unit = x.__unit * unit from sage.rings.integer import Integer for t in x: if not (isinstance(t, tuple) and len(t) == 2 and isinst...
366d01f87cfaf5726fd23f49c23799fb32b771dd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/366d01f87cfaf5726fd23f49c23799fb32b771dd/factorization.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 619, 16, 2836, 33, 7036, 16, 4422, 33, 8381, 16, 1524, 33, 5510, 16, 16499, 33, 5510, 4672, 309, 486, 1549, 12, 92, 16, 666, 4672, 1002, 3580, 16, 315,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 619, 16, 2836, 33, 7036, 16, 4422, 33, 8381, 16, 1524, 33, 5510, 16, 16499, 33, 5510, 4672, 309, 486, 1549, 12, 92, 16, 666, 4672, 1002, 3580, 16, 315,...
elif look.y < 0 or look.y >= QUADSIZE:
elif look.j < 0 or look.j >= QUADSIZE:
def movebaddy(enemy): "Tactical movement for the bad guys." next = coord(); look = coord() irun = False # This should probably be just (game.quadrant in game.state.kcmdr) + (game.state.kscmdr==game.quadrant) if game.skill >= SKILL_EXPERT: nbaddys = (((game.quadrant in game.state.kcmdr)*2 + (game.state.kscmdr==game.quad...
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, 3635, 70, 31934, 12, 275, 351, 93, 4672, 315, 56, 621, 1706, 26017, 364, 326, 5570, 3058, 1900, 1199, 1024, 273, 2745, 5621, 2324, 273, 2745, 1435, 277, 2681, 273, 1083, 468, 1220, 1410,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 70, 31934, 12, 275, 351, 93, 4672, 315, 56, 621, 1706, 26017, 364, 326, 5570, 3058, 1900, 1199, 1024, 273, 2745, 5621, 2324, 273, 2745, 1435, 277, 2681, 273, 1083, 468, 1220, 1410,...
1.0000000000000002 + 0.000000000000000027755575615628914*I
1.00000000000000 - 0.0000000000000000555111512312578*I
def __invert__(self): """ Return the multiplicative inverse.
293427b47ee2bb564117092226099ed44acd171f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/293427b47ee2bb564117092226099ed44acd171f/complex_number.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 267, 1097, 972, 12, 2890, 4672, 3536, 2000, 326, 3309, 28884, 8322, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 1001, 267, 1097, 972, 12, 2890, 4672, 3536, 2000, 326, 3309, 28884, 8322, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
return (indent*' '+children[0]+'('+
return (' FLD>|'+(indent-6)*' '+'@'+children[0]+'('+
def to_debug(tree, indent=4, seclevel=0): """ Convert a DOM tree encoding epytext back to an epytext string, annotated with extra debugging information. This function is similar to L{to_epytext}, but it adds explicit information about where different blocks begin, along the left margin. @param tree: A DOM tree encodi...
2c4f74c1fba59fe5e2e7422ffbf67a540493dbb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/2c4f74c1fba59fe5e2e7422ffbf67a540493dbb8/epytext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 4148, 12, 3413, 16, 3504, 33, 24, 16, 1428, 2815, 33, 20, 4672, 3536, 4037, 279, 4703, 2151, 2688, 425, 2074, 955, 1473, 358, 392, 425, 2074, 955, 533, 16, 10529, 598, 2870, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 4148, 12, 3413, 16, 3504, 33, 24, 16, 1428, 2815, 33, 20, 4672, 3536, 4037, 279, 4703, 2151, 2688, 425, 2074, 955, 1473, 358, 392, 425, 2074, 955, 533, 16, 10529, 598, 2870, ...
hatevotes[target].append((user,time())) difference = int(round(len(users)*VOTEQUOTA)) - len(hatevotes[target])
hatevotes[target].append((user, time())) difference = int(round(len(users) * VOTEQUOTA)) - \ len(hatevotes[target])
def checkTimeOut(votes): if votes[0][1] + TIMEOUT > time(): return votes # no votes have timed out elif len(votes) > 1: return checkTimeOut(votes[1:]) # oldest vote has timed out, continue checking else: return [] # no valid vote left
17c61548967182a27edf171b75277fa10ff63052 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14907/17c61548967182a27edf171b75277fa10ff63052/scherbengericht.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 950, 1182, 12, 27800, 4672, 309, 19588, 63, 20, 6362, 21, 65, 397, 24374, 405, 813, 13332, 327, 19588, 10792, 468, 1158, 19588, 1240, 7491, 596, 1327, 562, 12, 27800, 13, 405, 404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 950, 1182, 12, 27800, 4672, 309, 19588, 63, 20, 6362, 21, 65, 397, 24374, 405, 813, 13332, 327, 19588, 10792, 468, 1158, 19588, 1240, 7491, 596, 1327, 562, 12, 27800, 13, 405, 404, ...
if self.get_integrater_low_resolution() > 0.0: Debug.write('Using low resolution limit: %.2f' % \ self.get_integrater_low_resolution()) correct.set_resolution_high(0.0) correct.set_resolution_low( self.get_integrater_low_resolution())
def _integrate_finish(self): '''Finish off the integration by running correct.'''
5326dbe57b0920fee5d6c7ad91df9da902bdd208 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3290/5326dbe57b0920fee5d6c7ad91df9da902bdd208/XDSIntegraterR.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14970, 5141, 67, 13749, 12, 2890, 4672, 9163, 11641, 3397, 326, 12040, 635, 3549, 3434, 1093, 6309, 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, 389, 14970, 5141, 67, 13749, 12, 2890, 4672, 9163, 11641, 3397, 326, 12040, 635, 3549, 3434, 1093, 6309, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
f.write('"%s" = factor(c('%(labels[i]))
f.write('"%s" = factor('%labels[i]) f.write('levels=c('%(labels[i])) for j in xrange(len(as[i].values)): f.write('"x%s"'%(as[i].values[j])) if j == len(as[i].values)-1: f.write('),c(') else: f.write(',')
def toR(filename,t): if string.upper(filename[-2:]) == ".R": filename = filename[:-2] f = open(filename+'.R','w') atyp = [] aord = [] labels = [] as = [] for a in t.domain.attributes: as.append(a) as.append(t.domain.classVar) for a in as: labels.append(str(a.name)) atyp.append(a.varType) aord.append(a.ordered) f.writ...
c09539bb7d4c8764483fa49f09946003a83a815b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/c09539bb7d4c8764483fa49f09946003a83a815b/orngIO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 54, 12, 3459, 16, 88, 4672, 309, 533, 18, 5797, 12, 3459, 18919, 22, 30, 5717, 422, 3552, 54, 6877, 1544, 273, 1544, 10531, 17, 22, 65, 284, 273, 1696, 12, 3459, 6797, 18, 54, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 54, 12, 3459, 16, 88, 4672, 309, 533, 18, 5797, 12, 3459, 18919, 22, 30, 5717, 422, 3552, 54, 6877, 1544, 273, 1544, 10531, 17, 22, 65, 284, 273, 1696, 12, 3459, 6797, 18, 54, ...
def read(self, n = -1): """Read at most n bytes from the chunk. If n is omitted or negative, read until the end
def read(self, size = -1): """Read at most size bytes from the chunk. If size is omitted or negative, read until the end
def read(self, n = -1): """Read at most n bytes from the chunk. If n is omitted or negative, read until the end of the chunk.
5a7366b04bc08ce390da13b10c3438b378eab380 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/5a7366b04bc08ce390da13b10c3438b378eab380/chunk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 963, 273, 300, 21, 4672, 3536, 1994, 622, 4486, 963, 1731, 628, 326, 2441, 18, 971, 963, 353, 16195, 578, 6092, 16, 855, 3180, 326, 679, 434, 326, 2441, 18, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 963, 273, 300, 21, 4672, 3536, 1994, 622, 4486, 963, 1731, 628, 326, 2441, 18, 971, 963, 353, 16195, 578, 6092, 16, 855, 3180, 326, 679, 434, 326, 2441, 18, 2, -10...
codec = Codec(self.conn.spec, msg.body)
codec = Codec(msg.body)
def _replyCb(self, msg): codec = Codec(self.conn.spec, msg.body) while True: opcode, seq = self._checkHeader(codec) if opcode == None: return if opcode == 'b': self.session._handleBrokerResp (self, codec, seq) elif opcode == 'p': self.session._handlePackageInd (self, codec, seq) elif opcode == 'z': self.s...
72fcb9ecf5a97a16c1b91f83696f84b81cf029f5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/197/72fcb9ecf5a97a16c1b91f83696f84b81cf029f5/console.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10629, 15237, 12, 2890, 16, 1234, 4672, 9196, 273, 17321, 12, 3576, 18, 3432, 13, 1323, 1053, 30, 11396, 16, 3833, 273, 365, 6315, 1893, 1864, 12, 21059, 13, 309, 282, 11396, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10629, 15237, 12, 2890, 16, 1234, 4672, 9196, 273, 17321, 12, 3576, 18, 3432, 13, 1323, 1053, 30, 11396, 16, 3833, 273, 365, 6315, 1893, 1864, 12, 21059, 13, 309, 282, 11396, 422, ...
if "" in d.result:
if not d.result:
def addDownInstrument(self, wdg=None): """Specify an instrument as down""" d = DownInstrumentDialog(self) if d.result == None: return if "" in d.result: print "self.statusBar.cmdFailedSound=", self.statusBar.cmdFailedSound self.statusBar.playCmdFailed() self.statusBar.setMsg("No instrument specified", severity=RO.Const...
862e4f6f676950d68c7f53d5b89db9813156c08a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6236/862e4f6f676950d68c7f53d5b89db9813156c08a/AlertsWdg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 4164, 19228, 12, 2890, 16, 14452, 75, 33, 7036, 4672, 3536, 19302, 392, 10353, 487, 2588, 8395, 302, 273, 10077, 19228, 6353, 12, 2890, 13, 309, 302, 18, 2088, 422, 599, 30, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 4164, 19228, 12, 2890, 16, 14452, 75, 33, 7036, 4672, 3536, 19302, 392, 10353, 487, 2588, 8395, 302, 273, 10077, 19228, 6353, 12, 2890, 13, 309, 302, 18, 2088, 422, 599, 30, 327, ...
char.socket.sysmessage("You can't reach that.")
char.socket.clilocmessage(500312)
def wash_response( char, args, target ): bandages = wolfpack.finditem( args[0] ) if not bandages: return if (target.item and target.item.getoutmostchar() and target.item.getoutmostchar() != char) or not char.canreach(target.pos, 5): char.socket.sysmessage("You can't reach that.") return # Did we target something wet...
f21c62a48bcce26f0bc5f78e0fc183b7bb65d5be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/f21c62a48bcce26f0bc5f78e0fc183b7bb65d5be/bandages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 961, 67, 2740, 12, 1149, 16, 833, 16, 1018, 262, 30, 8937, 1023, 273, 341, 355, 74, 2920, 18, 4720, 1726, 12, 833, 63, 20, 65, 262, 225, 309, 486, 8937, 1023, 30, 327, 225, 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, 341, 961, 67, 2740, 12, 1149, 16, 833, 16, 1018, 262, 30, 8937, 1023, 273, 341, 355, 74, 2920, 18, 4720, 1726, 12, 833, 63, 20, 65, 262, 225, 309, 486, 8937, 1023, 30, 327, 225, 30...
Globals.debug("Gnome keyring is unavailable, falling back to text file")
def FinishLogin(self, username, password): """ Attempts to login in to confirm the given credentials. If successful, the username is written to a local file for subsequent use and the password is saved in the user's keyring (if available, or a local file otherwise). The GUI calls are done using gobject.idle_add() to a...
1aeb9365de11b993045e5769e4097867cd650a75 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10033/1aeb9365de11b993045e5769e4097867cd650a75/FreesoundSearch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18560, 5358, 12, 2890, 16, 2718, 16, 2201, 4672, 3536, 6020, 9585, 358, 3925, 316, 358, 6932, 326, 864, 4448, 18, 971, 6873, 16, 326, 2718, 353, 5941, 358, 279, 1191, 585, 364, 10815, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18560, 5358, 12, 2890, 16, 2718, 16, 2201, 4672, 3536, 6020, 9585, 358, 3925, 316, 358, 6932, 326, 864, 4448, 18, 971, 6873, 16, 326, 2718, 353, 5941, 358, 279, 1191, 585, 364, 10815, ...
'form': openid_form(),
'form': openid_form(request.user),
def associate_failure(request, message, template_failure="authopenid/associate.html", openid_form=OpenidSigninForm, redirect_name=None, extra_context=None, **kwargs): """ function used when new openid association fail""" return render(template_failure, { 'form': openid_form(), 'msg': message, }, context_instance=_bui...
9ed6be613a9a68fde7a20e983a2d2a14ce28b4ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5675/9ed6be613a9a68fde7a20e983a2d2a14ce28b4ce/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13251, 67, 12251, 12, 2293, 16, 883, 16, 1542, 67, 12251, 1546, 1944, 20619, 19, 11577, 18, 2620, 3113, 21629, 67, 687, 33, 3678, 350, 2766, 267, 1204, 16, 3136, 67, 529, 33, 7036, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13251, 67, 12251, 12, 2293, 16, 883, 16, 1542, 67, 12251, 1546, 1944, 20619, 19, 11577, 18, 2620, 3113, 21629, 67, 687, 33, 3678, 350, 2766, 267, 1204, 16, 3136, 67, 529, 33, 7036, 16,...
pop3proxy.main(state.servers, state.proxyPorts, state.uiPort, state.launchUI)
try: try: pop3proxy.main(state.servers, state.proxyPorts, state.uiPort, state.launchUI) except SystemExit: print "pop3proxy service shutting down due to user request" except: ob = cStringIO.StringIO() traceback.print_exc(file=ob) message = "The pop3proxy service failed with an " \ "unexpected error\r\n\r\n" + ob.get...
def ServerThread(self): state = pop3proxy.state state.buildServerStrings() pop3proxy.main(state.servers, state.proxyPorts, state.uiPort, state.launchUI)
4796dabe25d629a23dbda3ad526c80b4635bab22 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/4796dabe25d629a23dbda3ad526c80b4635bab22/pop3proxy_service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3224, 3830, 12, 2890, 4672, 919, 273, 1843, 23, 5656, 18, 2019, 919, 18, 3510, 2081, 7957, 1435, 1843, 23, 5656, 18, 5254, 12, 2019, 18, 14247, 16, 919, 18, 5656, 11107, 16, 919, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3224, 3830, 12, 2890, 4672, 919, 273, 1843, 23, 5656, 18, 2019, 919, 18, 3510, 2081, 7957, 1435, 1843, 23, 5656, 18, 5254, 12, 2019, 18, 14247, 16, 919, 18, 5656, 11107, 16, 919, 18, ...
ob = system.allobjects['localimporttest.mod1.C']
ob = system.allobjects['basic.mod.C']
def test_edit_direct(): system = processPackage('localimporttest') root = server.EditingPyDoctorResource(system) ob = system.allobjects['localimporttest.mod1.C'] docstring = root.currentDocstringForObject(ob) assert docstring == ob.docstring newDocstring = '"""This *is* a docstring"""' root.newDocstring('xxx', ob, ob...
d3bf21f55d5f937ae38dd7eb7acb68f0d293f3e8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5471/d3bf21f55d5f937ae38dd7eb7acb68f0d293f3e8/test_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4619, 67, 7205, 13332, 2619, 273, 1207, 2261, 2668, 3729, 5666, 3813, 6134, 1365, 273, 1438, 18, 28029, 9413, 3244, 30206, 1420, 12, 4299, 13, 225, 3768, 273, 2619, 18, 287, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4619, 67, 7205, 13332, 2619, 273, 1207, 2261, 2668, 3729, 5666, 3813, 6134, 1365, 273, 1438, 18, 28029, 9413, 3244, 30206, 1420, 12, 4299, 13, 225, 3768, 273, 2619, 18, 287, 38...
otherItem = self.itsView.find(other)
def _collectionChanged(self, op, change, other, dirties, local=False):
3f07e4e5832b86148cc87f3fbbf18364c3f3c61d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/3f07e4e5832b86148cc87f3fbbf18364c3f3c61d/Sets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5548, 5033, 12, 2890, 16, 1061, 16, 2549, 16, 1308, 16, 1577, 88, 606, 16, 1191, 33, 8381, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5548, 5033, 12, 2890, 16, 1061, 16, 2549, 16, 1308, 16, 1577, 88, 606, 16, 1191, 33, 8381, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
noteMissingPage (bottom, rel_path, core_state["x"],
noteMissingPage (bottom, real_path, core_state["x"],
def hyltMain (meta_screen, starting_filename): """The core Hylt functionality. Contains the main input and display loops, lots of initialization, and so on. """ curses.curs_set(0) # Remember: Parameters are in the order of (y, x). meta_y, meta_x = meta_screen.getmaxyx() core_state = {"y": meta_y, "x": meta_x} # Kee...
3d935dc1773bd71731a9550b77a62ca6c32a7bb4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2254/3d935dc1773bd71731a9550b77a62ca6c32a7bb4/hylt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4855, 5618, 6376, 261, 3901, 67, 9252, 16, 5023, 67, 3459, 4672, 3536, 1986, 2922, 14881, 5618, 14176, 18, 225, 8398, 326, 2774, 810, 471, 2562, 14075, 16, 328, 6968, 434, 10313, 16, 471...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4855, 5618, 6376, 261, 3901, 67, 9252, 16, 5023, 67, 3459, 4672, 3536, 1986, 2922, 14881, 5618, 14176, 18, 225, 8398, 326, 2774, 810, 471, 2562, 14075, 16, 328, 6968, 434, 10313, 16, 471...
global Document
global events, Document events = Table('events', metadata, Column('id', Integer, primary_key=True), Column('name', String(50)) ) insertRecord = events.insert() def record_event(name): stateDict[name] += 1 insertRecord.execute(name=name)
def setup(): global Document class Document(Entity): name = Field(String(50)) try: def post_fetch(self): global on_reconstitute_called on_reconstitute_called += 1 post_fetch = on_reconstitute(post_fetch) except: pass def pre_insert(self): global before_insert_called before_insert_called += 1 pre_insert = before_inse...
a86386040cf0d103d8140304c5281f7ee220a218 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11921/a86386040cf0d103d8140304c5281f7ee220a218/test_events.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13332, 2552, 2641, 16, 4319, 225, 2641, 273, 3555, 2668, 5989, 2187, 1982, 16, 4753, 2668, 350, 2187, 2144, 16, 3354, 67, 856, 33, 5510, 3631, 4753, 2668, 529, 2187, 514, 12, 3361,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13332, 2552, 2641, 16, 4319, 225, 2641, 273, 3555, 2668, 5989, 2187, 1982, 16, 4753, 2668, 350, 2187, 2144, 16, 3354, 67, 856, 33, 5510, 3631, 4753, 2668, 529, 2187, 514, 12, 3361,...
return (location and EL_TITLE or E_TITLE) % args
if single: return (location and ELX_TITLE or EX_TITLE) % args else: return (location and EL_TITLE or E_TITLE) % args
def buildItemDescription(mailStamp): #XXX Post Preview I will clean up # this logic since there are more # efficient ways to get the # item description strings. # Most likely will use a dict # instead of Globals for localizable strings # then build the key dynamically based on # recurrence frequency / interval and whet...
3ba7c328b2c98e3845fdea7a2d9641207c27c23a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/3ba7c328b2c98e3845fdea7a2d9641207c27c23a/mail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 1180, 3291, 12, 4408, 8860, 4672, 468, 15639, 5616, 22289, 467, 903, 2721, 731, 468, 333, 4058, 3241, 1915, 854, 1898, 468, 14382, 16226, 358, 336, 326, 468, 761, 2477, 2064, 18, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 1180, 3291, 12, 4408, 8860, 4672, 468, 15639, 5616, 22289, 467, 903, 2721, 731, 468, 333, 4058, 3241, 1915, 854, 1898, 468, 14382, 16226, 358, 336, 326, 468, 761, 2477, 2064, 18, 4...
print "IMM in JMP IMM must be greater than -(2^10) + 1 and less than 2^10"
print "IMM in JMP IMM must be greater than -(2**10) + 1 and less than 2**10"
def parse_jump(instruc = "", word_buf = ""): if instruc == "" or word_buf == "": print "ERROR: someone accidentally the code in parse_jump" return "-1" instruc = sanitize(instruc) ins = instruc[0] regS = instruc[1] if ins == "jsr": word_buf += "1" imm = int(regS) if imm > 2^10 or imm < -(2^10) + 1: print "ERROR: Imm...
e0f7f04f2f4f997485454a53ab24cb6926b906bd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4891/e0f7f04f2f4f997485454a53ab24cb6926b906bd/assembler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 24574, 12, 267, 701, 5286, 273, 23453, 2076, 67, 4385, 273, 1408, 4672, 309, 16170, 5286, 422, 1408, 578, 2076, 67, 4385, 422, 1408, 30, 1172, 315, 3589, 30, 18626, 25961, 1230...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 24574, 12, 267, 701, 5286, 273, 23453, 2076, 67, 4385, 273, 1408, 4672, 309, 16170, 5286, 422, 1408, 578, 2076, 67, 4385, 422, 1408, 30, 1172, 315, 3589, 30, 18626, 25961, 1230...
super( D20Damage, self ).__init__( 'Damage', 0, self.range.roll )
super( D20Damage, self ).__init__( 'Damage', 0, self.__int__ )
def __init__( self, types, size=0, roll="1d8", range=None ): self.range = range or D20DamageRange( size, roll ) self.types = types super( D20Damage, self ).__init__( 'Damage', 0, self.range.roll ) self.mod.static = True
207ed87faf315ab793ddacf4ee0ecdc556ae8941 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2289/207ed87faf315ab793ddacf4ee0ecdc556ae8941/d20rep.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 1953, 16, 963, 33, 20, 16, 5824, 1546, 21, 72, 28, 3113, 1048, 33, 7036, 262, 30, 365, 18, 3676, 273, 1048, 578, 463, 3462, 40, 301, 410, 2655, 12, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 365, 16, 1953, 16, 963, 33, 20, 16, 5824, 1546, 21, 72, 28, 3113, 1048, 33, 7036, 262, 30, 365, 18, 3676, 273, 1048, 578, 463, 3462, 40, 301, 410, 2655, 12, 96...