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
outputdir = arg
rpmdir = arg
def usage(output=sys.stdout): output.write("Usage: %s [-g <groupname>] [-u <uri>] [-d <dir>] [-p <priority>] [-o <output>]\n" % sys.argv[0])
b2b8dad96133a5c91d4df368807bac54595abc68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/b2b8dad96133a5c91d4df368807bac54595abc68/rpmlisting.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 12, 2844, 33, 9499, 18, 10283, 4672, 876, 18, 2626, 2932, 5357, 30, 738, 87, 23059, 75, 411, 1655, 529, 34, 65, 23059, 89, 411, 1650, 34, 65, 23059, 72, 411, 1214, 34, 65, 2305...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 12, 2844, 33, 9499, 18, 10283, 4672, 876, 18, 2626, 2932, 5357, 30, 738, 87, 23059, 75, 411, 1655, 529, 34, 65, 23059, 89, 411, 1650, 34, 65, 23059, 72, 411, 1214, 34, 65, 2305...
message = _("The case '%s' has been closed.") % name
message = _("The case '%s' has been closed.") % case.name
def case_close(self, cr, uid, ids, *args): """Overrides close for crm_case for setting close date @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: List of case Ids @param *args: Tuple Value for additional Params """ ...
f1c40bd6d4da75880cef38afa893300e02349f98 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/f1c40bd6d4da75880cef38afa893300e02349f98/crm_lead.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 648, 67, 4412, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 380, 1968, 4672, 3536, 13084, 1746, 364, 4422, 81, 67, 3593, 364, 3637, 1746, 1509, 632, 891, 365, 30, 1021, 733, 4407, 632, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 648, 67, 4412, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 380, 1968, 4672, 3536, 13084, 1746, 364, 4422, 81, 67, 3593, 364, 3637, 1746, 1509, 632, 891, 365, 30, 1021, 733, 4407, 632, ...
if event.GetId() == dsgn.GetId() and dsgn.selection: dsgn.selection.selectCtrl(dsgn, dsgn.companion)
if event.GetId() == dsgn.GetId(): if dsgn.selection: dsgn.selection.selectCtrl(dsgn, dsgn.companion) elif dsgn.multiSelection: dsgn.clearMultiSelection() dsgn.assureSingleSelection() dsgn.selection.selectCtrl(dsgn, dsgn.companion) return
def OnControlResize(self, event): """ Control is resized, emulate native wxWindows layout behaviour """ dsgn = self.designer try: if event.GetId() == dsgn.GetId() and dsgn.selection: dsgn.selection.selectCtrl(dsgn, dsgn.companion)
102ae9e4df0cfddbfdb2acfb7df920a5d291af8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/102ae9e4df0cfddbfdb2acfb7df920a5d291af8c/Designer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 3367, 12182, 12, 2890, 16, 871, 4672, 3536, 8888, 353, 21615, 16, 801, 6243, 6448, 7075, 10399, 3511, 14273, 3536, 302, 1055, 82, 273, 365, 18, 16934, 264, 775, 30, 309, 871, 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, 2755, 3367, 12182, 12, 2890, 16, 871, 4672, 3536, 8888, 353, 21615, 16, 801, 6243, 6448, 7075, 10399, 3511, 14273, 3536, 302, 1055, 82, 273, 365, 18, 16934, 264, 775, 30, 309, 871, 18, ...
if not current_file: current_file = getpatchfile(afile, bfile, current_hunk) if not current_file: current_file, current_hunk = None, None rejects += 1 continue
if emitfile: emitfile = False yield 'file', (afile, bfile, current_hunk)
def getpatchfile(afile, bfile, hunk): try: if sourcefile: targetfile = patchfile(ui, sourcefile) else: targetfile = selectfile(afile, bfile, hunk, strip, reverse) targetfile = patchfile(ui, targetfile) return targetfile except PatchError, err: ui.warn(str(err) + '\n') return None
8baabe46f7b47d71dbfe145c06affa37eb3f3039 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/8baabe46f7b47d71dbfe145c06affa37eb3f3039/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2272, 768, 12, 69, 768, 16, 324, 768, 16, 366, 1683, 4672, 775, 30, 309, 1084, 768, 30, 1018, 768, 273, 4729, 768, 12, 4881, 16, 1084, 768, 13, 469, 30, 1018, 768, 273, 2027, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2272, 768, 12, 69, 768, 16, 324, 768, 16, 366, 1683, 4672, 775, 30, 309, 1084, 768, 30, 1018, 768, 273, 4729, 768, 12, 4881, 16, 1084, 768, 13, 469, 30, 1018, 768, 273, 2027, ...
'utf8extra': '\\DeclareUnicodeCharacter{00A0}{\nobreakspace}',
'utf8extra': '\\DeclareUnicodeCharacter{00A0}{\\nobreakspace}',
def __init__(self, node): self.env = LaTeXTranslator.desc_map.get(node['desctype'], 'describe') self.type = self.cls = self.name = self.params = \ self.annotation = self.returns = '' self.count = 0
33823020b2605da3866ad841719e782027d97925 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7032/33823020b2605da3866ad841719e782027d97925/latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 756, 4672, 365, 18, 3074, 273, 21072, 21575, 60, 12233, 18, 5569, 67, 1458, 18, 588, 12, 2159, 3292, 5489, 12387, 17337, 296, 22748, 6134, 365, 18, 723, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 756, 4672, 365, 18, 3074, 273, 21072, 21575, 60, 12233, 18, 5569, 67, 1458, 18, 588, 12, 2159, 3292, 5489, 12387, 17337, 296, 22748, 6134, 365, 18, 723, ...
_params_allgood_header()
if verbose>0: _params_allgood_header()
def exec_conv(version, shapes, verbose, random, mode, print_=None, rtol=1e-5, ones=False): _params_allgood_header() nb_failed = 0 nb_tests = 0 failed_version=set() failed_id=[] for ver in version:# I put -1 in case we forget to add version in the test to. for id,(ishape, kshape, subshape, istride, kstride) in enumerat...
8e72e6c0088cff9c3bbff49f2ccdf3be8c6238a1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/8e72e6c0088cff9c3bbff49f2ccdf3be8c6238a1/test_conv_cuda_ndarray.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1196, 67, 4896, 12, 1589, 16, 14736, 16, 3988, 16, 2744, 16, 1965, 16, 1172, 67, 33, 7036, 16, 436, 3490, 33, 21, 73, 17, 25, 16, 5945, 33, 8381, 4672, 309, 3988, 34, 20, 30, 389, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1196, 67, 4896, 12, 1589, 16, 14736, 16, 3988, 16, 2744, 16, 1965, 16, 1172, 67, 33, 7036, 16, 436, 3490, 33, 21, 73, 17, 25, 16, 5945, 33, 8381, 4672, 309, 3988, 34, 20, 30, 389, ...
if isnan(x): return self.special_fmt % (_nan_str,) elif isinf(x): if x > 0: return self.special_fmt % (_inf_str,) else: return self.special_fmt % ('-' + _inf_str,)
import numeric as _nc err = _nc.seterr(invalid='ignore') try: if isnan(x): return self.special_fmt % (_nan_str,) elif isinf(x): if x > 0: return self.special_fmt % (_inf_str,) else: return self.special_fmt % ('-' + _inf_str,) finally: _nc.seterr(**err)
def __call__(self, x, strip_zeros=True): if isnan(x): return self.special_fmt % (_nan_str,) elif isinf(x): if x > 0: return self.special_fmt % (_inf_str,) else: return self.special_fmt % ('-' + _inf_str,) s = self.format % x if self.large_exponent: # 3-digit exponent expsign = s[-3] if expsign == '+' or expsign == '-':...
52c43da079009c4b18ec5a7ac6bf31ef6cad69ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/52c43da079009c4b18ec5a7ac6bf31ef6cad69ed/arrayprint.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 619, 16, 2569, 67, 22008, 33, 5510, 4672, 1930, 6389, 487, 389, 14202, 393, 273, 389, 14202, 18, 542, 370, 12, 5387, 2218, 6185, 6134, 775, 30, 309, 1679...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 619, 16, 2569, 67, 22008, 33, 5510, 4672, 1930, 6389, 487, 389, 14202, 393, 273, 389, 14202, 18, 542, 370, 12, 5387, 2218, 6185, 6134, 775, 30, 309, 1679...
if self.connection is not None: self.connection = None
if self.downloader is not None: self.downloader.stop()
def abort(self): if self.connection is not None: #TODO disconnect somehow #self.connection.disconnect() self.connection = None self.close()
bffe23505fbaa126f88204309cabaf324dbafe0f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10199/bffe23505fbaa126f88204309cabaf324dbafe0f/ppanel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6263, 12, 2890, 4672, 309, 365, 18, 4071, 353, 486, 599, 30, 468, 6241, 9479, 28578, 468, 2890, 18, 4071, 18, 20177, 1435, 365, 18, 4071, 273, 599, 365, 18, 4412, 1435, 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, 6263, 12, 2890, 4672, 309, 365, 18, 4071, 353, 486, 599, 30, 468, 6241, 9479, 28578, 468, 2890, 18, 4071, 18, 20177, 1435, 365, 18, 4071, 273, 599, 365, 18, 4412, 1435, 2, -100, -100, ...
return [node]
return set([node])
def make_burca_tailor_fragment(dag, input_cache, seg, tag): input_cache = list(input_cache) input_cache.sort(reverse = True) nodes = [] while input_cache: node = BurcaTailorNode(burcatailorjob) node.add_input_cache(input_cache[-5:]) del input_cache[-5:] node.set_name("ligolw_burca_tailor_%s_%d_%d_%d" % (tag, int(seg[0]...
40a9937130115c4762623af8bdfa60662e979e5f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/40a9937130115c4762623af8bdfa60662e979e5f/power.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 70, 295, 5353, 67, 13101, 280, 67, 11956, 12, 30204, 16, 810, 67, 2493, 16, 2291, 16, 1047, 4672, 810, 67, 2493, 273, 666, 12, 2630, 67, 2493, 13, 810, 67, 2493, 18, 3804, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 70, 295, 5353, 67, 13101, 280, 67, 11956, 12, 30204, 16, 810, 67, 2493, 16, 2291, 16, 1047, 4672, 810, 67, 2493, 273, 666, 12, 2630, 67, 2493, 13, 810, 67, 2493, 18, 3804, ...
user_groups = set(self.pool.get('res.users').read(cr, uid, uid)['groups_id'])
user_groups = set(self.pool.get('res.users').browse(cr, uid, uid)['groups_id'] or [])
def search(self, cr, uid, args, offset=0, limit=2000, order=None, context=None, count=False): if context is None: context = {} ids = osv.orm.orm.search(self, cr, uid, args, offset, limit, order, context=context) if uid==1: return ids user_groups = set(self.pool.get('res.users').read(cr, uid, uid)['groups_id']) result =...
f456e3a052034c58292d003b63d37caaf9a1b3dc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/f456e3a052034c58292d003b63d37caaf9a1b3dc/ir_ui_menu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 12, 2890, 16, 4422, 16, 4555, 16, 833, 16, 1384, 33, 20, 16, 1800, 33, 17172, 16, 1353, 33, 7036, 16, 819, 33, 7036, 16, 1056, 33, 8381, 4672, 309, 819, 353, 599, 30, 819, 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, 1623, 12, 2890, 16, 4422, 16, 4555, 16, 833, 16, 1384, 33, 20, 16, 1800, 33, 17172, 16, 1353, 33, 7036, 16, 819, 33, 7036, 16, 1056, 33, 8381, 4672, 309, 819, 353, 599, 30, 819, 27...
proc += ["-logdir", (os.getcwd() + "\\" + self.temp_dir)]
proc += ["-logdir", self.temp_dir]
def ToolCommand(self): """Get the valgrind command to run.""" tool_name = self.ToolName()
fc6b9756a51541f7c45e8edfa1ba23a3fd9d4af6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/fc6b9756a51541f7c45e8edfa1ba23a3fd9d4af6/valgrind_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13288, 2189, 12, 2890, 4672, 3536, 967, 326, 1244, 3197, 728, 1296, 358, 1086, 12123, 5226, 67, 529, 273, 365, 18, 6364, 461, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13288, 2189, 12, 2890, 4672, 3536, 967, 326, 1244, 3197, 728, 1296, 358, 1086, 12123, 5226, 67, 529, 273, 365, 18, 6364, 461, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
log.msg(fmt % (origin, map(str, [u for (u, f) in recipients] or user_recipients)))
log.msg(fmt % (origin, [str(u) for (u, f) in recipients]))
def do_DATA(self, rest): if self._from is None or (not self._to and not self._user_to): self.sendCode(503, 'Must have valid receiver and originator') return assert self.delivery self.mode = DATA helo, origin, user_recipients = self._helo, self._from, self._user_to recipients = self._to self._from = None self._to = [] ...
1170bde3fe634dd3cc7b050c30af0e5f44a01304 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/1170bde3fe634dd3cc7b050c30af0e5f44a01304/smtp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 4883, 12, 2890, 16, 3127, 4672, 309, 365, 6315, 2080, 353, 599, 578, 261, 902, 365, 6315, 869, 471, 486, 365, 6315, 1355, 67, 869, 4672, 365, 18, 4661, 1085, 12, 3361, 23, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 4883, 12, 2890, 16, 3127, 4672, 309, 365, 6315, 2080, 353, 599, 578, 261, 902, 365, 6315, 869, 471, 486, 365, 6315, 1355, 67, 869, 4672, 365, 18, 4661, 1085, 12, 3361, 23, 1...
return self.SimpleTest("chrome", "remoting_unittests")
return self.SimpleTest("chrome", "remoting_unittests", cmd_args=[ "--ui-test-timeout=240000", "--ui-test-action-timeout=120000", "--ui-test-action-max-timeout=280000"])
def TestRemoting(self): return self.SimpleTest("chrome", "remoting_unittests")
f4a13ccc511e224e125d0cdfb0198b6075fee681 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/f4a13ccc511e224e125d0cdfb0198b6075fee681/chrome_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7766, 1933, 17128, 12, 2890, 4672, 327, 365, 18, 5784, 4709, 2932, 343, 10896, 3113, 315, 2764, 17128, 67, 4873, 16341, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7766, 1933, 17128, 12, 2890, 4672, 327, 365, 18, 5784, 4709, 2932, 343, 10896, 3113, 315, 2764, 17128, 67, 4873, 16341, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if (div == 1 and level == 1): print'</div>'
if (div == 1 and level == 1): print'</ol></div>'
def processLine(linein): global level, formatMode, slides, hideComments, inBodyText, styleSheet, inlineStyle, div if (lstrip(linein) == ""): return linein = beautifyLine(linein) lineLevel = getLineLevel(linein) if ((hideComments == 0) or (lineLevel != (find(linein,"[")+1))): if (lineLevel > level): # increasing depth ...
fc16136abe0e486a37c93cf3944efd4ef14901d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6154/fc16136abe0e486a37c93cf3944efd4ef14901d9/otl2html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 1670, 12, 1369, 267, 4672, 2552, 1801, 16, 740, 2309, 16, 30119, 16, 6853, 9051, 16, 316, 2250, 1528, 16, 2154, 8229, 16, 6370, 2885, 16, 3739, 309, 261, 80, 6406, 12, 1369, 267,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1670, 12, 1369, 267, 4672, 2552, 1801, 16, 740, 2309, 16, 30119, 16, 6853, 9051, 16, 316, 2250, 1528, 16, 2154, 8229, 16, 6370, 2885, 16, 3739, 309, 261, 80, 6406, 12, 1369, 267,...
ret
return [None, None]
def _synthesize(browser): """Attempt to synthesize a controller base on existing controllers. This is useful to create a controller when a user specifies a path to an entry in the BROWSER environment variable -- we can copy a general controller to operate using a specific installation of the desired browser in this wa...
a68f3ddcc75b81ffdd2ee7fcf8cca8006d12c6a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/a68f3ddcc75b81ffdd2ee7fcf8cca8006d12c6a0/webbrowser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11982, 7915, 554, 12, 11213, 4672, 3536, 7744, 358, 6194, 7915, 554, 279, 2596, 1026, 603, 2062, 12403, 18, 225, 1220, 353, 5301, 358, 752, 279, 2596, 1347, 279, 729, 11470, 279, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11982, 7915, 554, 12, 11213, 4672, 3536, 7744, 358, 6194, 7915, 554, 279, 2596, 1026, 603, 2062, 12403, 18, 225, 1220, 353, 5301, 358, 752, 279, 2596, 1347, 279, 729, 11470, 279, 58...
__version_info__ = (1, 1, 0)
__version_info__ = (1, 1, 1)
def do_status(self, subcmd, opts, *paths): print "handle 'svn status' command"
3ca6d973f3c9c7662505ff939ca58a53c8a89219 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10333/3ca6d973f3c9c7662505ff939ca58a53c8a89219/cmdln.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2327, 12, 2890, 16, 720, 4172, 16, 1500, 16, 380, 4481, 4672, 1172, 315, 4110, 296, 31505, 1267, 11, 1296, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2327, 12, 2890, 16, 720, 4172, 16, 1500, 16, 380, 4481, 4672, 1172, 315, 4110, 296, 31505, 1267, 11, 1296, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
(r"\\([()/'\".'_!§$%& ?=+-]{1}|[a-zA-Z0-9]+)", String.Char),
(r"\\([()/'\".'_!§$%& ?;=+-]{1}|[a-zA-Z0-9]+)", String.Char),
def analyse_text(text): return shebang_matches(text, r'(tcl)')
fb89dd22cf72291368cf0541f3fc5c4903e24be1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2885/fb89dd22cf72291368cf0541f3fc5c4903e24be1/agile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31087, 67, 955, 12, 955, 4672, 327, 23901, 70, 539, 67, 8436, 12, 955, 16, 436, 11, 12, 88, 830, 2506, 13, 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, 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, 31087, 67, 955, 12, 955, 4672, 327, 23901, 70, 539, 67, 8436, 12, 955, 16, 436, 11, 12, 88, 830, 2506, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
wanted = " Blaahblah "
wanted = " Blaahblah "
def _options_off(self): self.send(":set ts=8\n") self.send(":set noexpandtab\n")
fdb662207345be6b6cdf6a50f5c349319fb1d95f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11767/fdb662207345be6b6cdf6a50f5c349319fb1d95f/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2116, 67, 3674, 12, 2890, 4672, 365, 18, 4661, 2932, 30, 542, 3742, 33, 28, 64, 82, 7923, 365, 18, 4661, 2932, 30, 542, 1158, 12320, 7032, 64, 82, 7923, 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2116, 67, 3674, 12, 2890, 4672, 365, 18, 4661, 2932, 30, 542, 3742, 33, 28, 64, 82, 7923, 365, 18, 4661, 2932, 30, 542, 1158, 12320, 7032, 64, 82, 7923, 2, -100, -100, -100, -10...
_verify('LOG4', 1.38629436111989)
_verify('LOG4', LOG4, 1.38629436111989)
def _verify(name, expected): computed = eval(name) if abs(computed - expected) > 1e-7: raise ValueError( "computed value for %s deviates too much " "(computed %g, expected %g)" % (name, computed, expected))
ff6ef3dceba19fe693692a09e6b981488eeca3c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/ff6ef3dceba19fe693692a09e6b981488eeca3c0/random.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8705, 12, 529, 16, 2665, 4672, 8470, 273, 5302, 12, 529, 13, 309, 2417, 12, 20307, 300, 2665, 13, 405, 404, 73, 17, 27, 30, 1002, 2068, 12, 315, 20307, 460, 364, 738, 87, 27492,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8705, 12, 529, 16, 2665, 4672, 8470, 273, 5302, 12, 529, 13, 309, 2417, 12, 20307, 300, 2665, 13, 405, 404, 73, 17, 27, 30, 1002, 2068, 12, 315, 20307, 460, 364, 738, 87, 27492,...
open( 'dirac-pilot', "w" ).write(bz2.decompress( base64.decodestring( "%(compressedAndEncodedPilot)s" ) ) )
open( '%(pilotScript)s', "w" ).write(bz2.decompress( base64.decodestring( "%(compressedAndEncodedPilot)s" ) ) )
def _writePilotScript( self, workingDirectory, pilotOptions, proxy, httpProxy ): """ Prepare the script to execute the pilot For the moment it will do like Grid Pilots, a full DIRAC installation
850c97bb2d28cc3e13cd7d670c5f6a6ab32cd0e7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/850c97bb2d28cc3e13cd7d670c5f6a6ab32cd0e7/DIRACPilotDirector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 52, 22797, 3651, 12, 365, 16, 5960, 2853, 16, 293, 22797, 1320, 16, 2889, 16, 1062, 3886, 262, 30, 3536, 7730, 326, 2728, 358, 1836, 326, 293, 22797, 2457, 326, 10382, 518, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 2626, 52, 22797, 3651, 12, 365, 16, 5960, 2853, 16, 293, 22797, 1320, 16, 2889, 16, 1062, 3886, 262, 30, 3536, 7730, 326, 2728, 358, 1836, 326, 293, 22797, 2457, 326, 10382, 518, ...
fobj.seek(-len(buf) - size, 1)
fobj.seek(offset)
def delete_bytes(fobj, size, offset): """Delete size bytes of empty space starting at offset. fobj must be an open file object, open rb+ or equivalent. Mutagen tries to use mmap to resize the file, but falls back to a significantly slower method if mmap fails. """ assert 0 < size assert 0 <= offset fobj.seek(0, 2) fil...
d320e1f661ea50e33b17d44fe426c3f8ede2458b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1845/d320e1f661ea50e33b17d44fe426c3f8ede2458b/_util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 3890, 12, 27936, 16, 963, 16, 1384, 4672, 3536, 2613, 963, 1731, 434, 1008, 3476, 5023, 622, 1384, 18, 225, 24705, 1297, 506, 392, 1696, 585, 733, 16, 1696, 7138, 15, 578, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 3890, 12, 27936, 16, 963, 16, 1384, 4672, 3536, 2613, 963, 1731, 434, 1008, 3476, 5023, 622, 1384, 18, 225, 24705, 1297, 506, 392, 1696, 585, 733, 16, 1696, 7138, 15, 578, 76...
try:
try:
def killTask(self, taskSpecId): """
9752b3a2cecf57e39b299943a948ab05eeba09ce /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8887/9752b3a2cecf57e39b299943a948ab05eeba09ce/BossLiteKiller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 2174, 12, 2890, 16, 1562, 1990, 548, 4672, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 2174, 12, 2890, 16, 1562, 1990, 548, 4672, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.NotifyPresenceChanged(jabberID)
self.NotifyPresenceChanged(who)
def ConfirmSubscription(self, subscriptionType, who): # if we're already doing this, ignore the request if self.confirmDialog != None: return displayName = self.GetNameFromID(who) message = '%s wishes to %s to your presence information. Do you approve?' % (displayName, subscriptionType) self.confirmDialog = wxMessage...
c22df98b269cd8c000ba8c4f5915cfa0daa00b02 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/c22df98b269cd8c000ba8c4f5915cfa0daa00b02/ChandlerJabber.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17580, 6663, 12, 2890, 16, 4915, 559, 16, 10354, 4672, 468, 309, 732, 4565, 1818, 9957, 333, 16, 2305, 326, 590, 309, 365, 18, 10927, 6353, 480, 599, 30, 327, 225, 16218, 273, 365, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17580, 6663, 12, 2890, 16, 4915, 559, 16, 10354, 4672, 468, 309, 732, 4565, 1818, 9957, 333, 16, 2305, 326, 590, 309, 365, 18, 10927, 6353, 480, 599, 30, 327, 225, 16218, 273, 365, 18,...
results_tmp = search_pattern(req, p3, f3, m3, of=of, dbg=dbg)
results_tmp = search_pattern(req, p3, f3, m3, ap=ap, of=of, dbg=dbg)
def perform_request_search(req=None, cc=cdsname, c=None, p="", f="", rg="10", sf="", so="d", sp="", of="hb", ot="", as="0", p1="", f1="", m1="", op1="", p2="", f2="", m2="", op2="", p3="", f3="", m3="", sc="0", jrec="0", recid="-1", recidb="-1", sysno="", id="-1", idb="-1", sysnb="", action="SEARCH", d1y="", d1m="", d1...
ecbca079c2ffbb7166e391821982c873c23535a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/ecbca079c2ffbb7166e391821982c873c23535a2/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 2293, 67, 3072, 12, 3658, 33, 7036, 16, 4946, 33, 71, 2377, 529, 16, 276, 33, 7036, 16, 293, 1546, 3113, 284, 1546, 3113, 14524, 1546, 2163, 3113, 9033, 1546, 3113, 1427, 154...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 2293, 67, 3072, 12, 3658, 33, 7036, 16, 4946, 33, 71, 2377, 529, 16, 276, 33, 7036, 16, 293, 1546, 3113, 284, 1546, 3113, 14524, 1546, 2163, 3113, 9033, 1546, 3113, 1427, 154...
id = self.unlink_mark[(model, res_id)]
def _process_end(self, cr, uid, modules): if not modules: return True modules = list(modules) module_in = ",".join(["%s"] * len(modules)) cr.execute('select id,name,model,res_id,module from ir_model_data where module in (' + module_in + ') and noupdate=%s', modules + [False]) wkf_todo = [] for (id, name, model, res_id,...
ca39947d11c1a94ded13d4bd9b683cec4c6eaab0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/ca39947d11c1a94ded13d4bd9b683cec4c6eaab0/ir_model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 67, 409, 12, 2890, 16, 4422, 16, 4555, 16, 4381, 4672, 309, 486, 4381, 30, 327, 1053, 4381, 273, 666, 12, 6400, 13, 1605, 67, 267, 273, 5753, 18, 5701, 3816, 28385, 87, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 67, 409, 12, 2890, 16, 4422, 16, 4555, 16, 4381, 4672, 309, 486, 4381, 30, 327, 1053, 4381, 273, 666, 12, 6400, 13, 1605, 67, 267, 273, 5753, 18, 5701, 3816, 28385, 87, 11...
self.updating_art = False
def update_album_art2(self): self.stop_art_update = False if not self.show_covers: self.updating_art = False return self.updating_art = True if self.conn and self.status and self.status.state in ['play', 'pause']: artist = getattr(self.songinfo, 'artist', None) if not artist: artist = "" album = getattr(self.songinfo, ...
7887607cb534b053442ac9710ec7241659a64004 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2312/7887607cb534b053442ac9710ec7241659a64004/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 25090, 67, 485, 22, 12, 2890, 4672, 365, 18, 5681, 67, 485, 67, 2725, 273, 1083, 309, 486, 365, 18, 4500, 67, 14014, 414, 30, 327, 365, 18, 5533, 1776, 67, 485, 273, 1053, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 25090, 67, 485, 22, 12, 2890, 4672, 365, 18, 5681, 67, 485, 67, 2725, 273, 1083, 309, 486, 365, 18, 4500, 67, 14014, 414, 30, 327, 365, 18, 5533, 1776, 67, 485, 273, 1053, ...
"HZ1": atom_info("H", 0, "H'"), "O": atom_info("O", 0, "O"), "HZ3": atom_info("H", 0, "H'"), "HZ2": atom_info("H", 0, "H'"),
"HZ1": atom_info("H", 0, "H"), "O": atom_info("O", 0, "O"), "HZ3": atom_info("H", 0, "H"), "HZ2": atom_info("H", 0, "H"),
def keys(self): return ("element_symbol", "ionic_state", "scattering_label")
46b20303e8ed53745807da84c39cb29f25aa3911 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/46b20303e8ed53745807da84c39cb29f25aa3911/residue_info.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1311, 12, 2890, 4672, 327, 7566, 2956, 67, 7175, 3113, 315, 285, 335, 67, 2019, 3113, 315, 31320, 310, 67, 1925, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1311, 12, 2890, 4672, 327, 7566, 2956, 67, 7175, 3113, 315, 285, 335, 67, 2019, 3113, 315, 31320, 310, 67, 1925, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
startup_pipe.write("READY")
startup_pipe.write(struct.pack('@H', listen_port))
def main(options, args): logfile = open('testserver.log', 'w') sys.stdout = FileMultiplexer(sys.stdout, logfile) sys.stderr = FileMultiplexer(sys.stderr, logfile) port = options.port if options.server_type == SERVER_HTTP: if options.cert: # let's make sure the cert file exists. if not os.path.isfile(options.cert): pr...
5b712c834b0f706d7c68e57ffa10c929ee7c5a7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/5b712c834b0f706d7c68e57ffa10c929ee7c5a7b/testserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 16, 833, 4672, 15204, 273, 1696, 2668, 3813, 3567, 18, 1330, 2187, 296, 91, 6134, 2589, 18, 10283, 273, 1387, 8438, 92, 264, 12, 9499, 18, 10283, 16, 15204, 13, 2589, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 16, 833, 4672, 15204, 273, 1696, 2668, 3813, 3567, 18, 1330, 2187, 296, 91, 6134, 2589, 18, 10283, 273, 1387, 8438, 92, 264, 12, 9499, 18, 10283, 16, 15204, 13, 2589, 1...
belongs. The test is, for each bin, to iterate through the time slide dictionaries applying the offsets to both the bin and the CacheEntry, and checking if the (time shifted) CacheEntry's segment(s) intersects the (time shifted) segments already in the bin, comparing only those that are involved in the time slide.
belongs, merge them, and add this cache entry to the result. Create a new bin for this cache entry if it does not belong in any of the existing bins. The cache entry "belongs" in a bin if after each of the preset offset vectors (see the .set_offset_vectors() method) is applied to both the contents of a bin and the ca...
def pack(self, cache_entry): """ Find all bins in which this glue.lal.CacheEntry instance belongs. The test is, for each bin, to iterate through the time slide dictionaries applying the offsets to both the bin and the CacheEntry, and checking if the (time shifted) CacheEntry's segment(s) intersects the (time shifted) ...
626a80ee3e03d7a3edce4a5fa7cb1998f6a34c6c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/626a80ee3e03d7a3edce4a5fa7cb1998f6a34c6c/ligolw_cafe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2298, 12, 2890, 16, 1247, 67, 4099, 4672, 3536, 4163, 777, 8963, 316, 1492, 333, 17960, 18, 80, 287, 18, 27630, 791, 11081, 16, 2691, 2182, 16, 471, 527, 333, 1247, 1241, 358, 326, 563...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2298, 12, 2890, 16, 1247, 67, 4099, 4672, 3536, 4163, 777, 8963, 316, 1492, 333, 17960, 18, 80, 287, 18, 27630, 791, 11081, 16, 2691, 2182, 16, 471, 527, 333, 1247, 1241, 358, 326, 563...
except AssertionError, msg2: raise ValueError(msg + msg2)
except AssertionError: raise ValueError(msg)
def __init__(self, data=None, pos=None, loops=None, format=None, boundary=[], weighted=None, implementation='networkx', sparse=True, vertex_labels=True, **kwds): """ TESTS:: sage: D = DiGraph() sage: loads(dumps(D)) == D True
db76baf167127ccb52ad91ec34a42f359828d3a4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/db76baf167127ccb52ad91ec34a42f359828d3a4/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 501, 33, 7036, 16, 949, 33, 7036, 16, 14075, 33, 7036, 16, 740, 33, 7036, 16, 7679, 22850, 6487, 13747, 33, 7036, 16, 4471, 2218, 5185, 92, 2187, 9387, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 501, 33, 7036, 16, 949, 33, 7036, 16, 14075, 33, 7036, 16, 740, 33, 7036, 16, 7679, 22850, 6487, 13747, 33, 7036, 16, 4471, 2218, 5185, 92, 2187, 9387, ...
keys = ['language', 'translate_out', 'translate_in', 'upgrade', 'debug_mode',
keys = ['language', 'translate_out', 'translate_in', 'debug_mode',
def __init__(self, fname=None): self.options = { 'email_from':False, 'interface': '', # this will bind the server to all interfaces 'port': '8069', 'netinterface': '', 'netport': '8070', 'db_host': False, 'db_port': False, 'db_name': False, 'db_user': False, 'db_password': False, 'db_maxconn': 64, 'reportgz': False,...
edcd7bb1b2897b54625fffa94e2abea0e642665b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12853/edcd7bb1b2897b54625fffa94e2abea0e642665b/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5299, 33, 7036, 4672, 365, 18, 2116, 273, 288, 296, 3652, 67, 2080, 4278, 8381, 16, 296, 5831, 4278, 10226, 565, 468, 333, 903, 1993, 326, 1438, 358, 777...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5299, 33, 7036, 4672, 365, 18, 2116, 273, 288, 296, 3652, 67, 2080, 4278, 8381, 16, 296, 5831, 4278, 10226, 565, 468, 333, 903, 1993, 326, 1438, 358, 777...
patterns = self._gather_selected_patterns() self.remove_from_files(patterns)
def on_remove_patterns(self, button): """Remove the currently selected patterns from their respective files.""" image = gtk.Image() image.set_from_stock(gtk.STOCK_DIALOG_WARNING, gtk.ICON_SIZE_DIALOG) dialog = gtk.Dialog(u"Remove patterns" , self , gtk.DIALOG_DESTROY_WITH_PARENT | gtk.DIALOG_MODAL , (gtk.STOCK_NO, gtk....
8be9d0da1ac9fc4fcbc698deb6d4979b64bf27e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6427/8be9d0da1ac9fc4fcbc698deb6d4979b64bf27e0/pattern.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 4479, 67, 13317, 12, 2890, 16, 3568, 4672, 3536, 3288, 326, 4551, 3170, 6884, 628, 3675, 17613, 1390, 12123, 1316, 273, 22718, 18, 2040, 1435, 1316, 18, 542, 67, 2080, 67, 15381...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4479, 67, 13317, 12, 2890, 16, 3568, 4672, 3536, 3288, 326, 4551, 3170, 6884, 628, 3675, 17613, 1390, 12123, 1316, 273, 22718, 18, 2040, 1435, 1316, 18, 542, 67, 2080, 67, 15381...
print "Could not open serial port %s: %s" % (ser.portstr, e)
sys.stderr.write("Could not open serial port %s: %s\n" % (ser.portstr, e))
def stop(self): """Stop copying""" if self.alive: self.alive = False self.thread_read.join()
8c80bbcfa2dee7de96e5435fdcc0741993aac1ac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10955/8c80bbcfa2dee7de96e5435fdcc0741993aac1ac/tcp_serial_redirect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 12, 2890, 4672, 3536, 4947, 8933, 8395, 309, 365, 18, 11462, 30, 365, 18, 11462, 273, 1083, 365, 18, 5930, 67, 896, 18, 5701, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 12, 2890, 4672, 3536, 4947, 8933, 8395, 309, 365, 18, 11462, 30, 365, 18, 11462, 273, 1083, 365, 18, 5930, 67, 896, 18, 5701, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -...
keys = Set(values.keys())
keys = set(values.keys())
def ParseEDSFile(filepath): eds_dict = {} # Read file text eds_file = open(filepath,'r').read() sections = ExtractSections(eds_file) # Parse assignments for each section for section_name, assignments in sections: # Reset values of entry values = {} # Search if the section name match an index or subindex expression in...
466d7309b8c9187d6431dfde546a4b58f0a839ba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/116/466d7309b8c9187d6431dfde546a4b58f0a839ba/eds_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2884, 2056, 55, 812, 12, 10561, 4672, 1675, 87, 67, 1576, 273, 2618, 468, 2720, 585, 977, 1675, 87, 67, 768, 273, 1696, 12, 10561, 11189, 86, 16063, 896, 1435, 7178, 273, 8152, 15965, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2884, 2056, 55, 812, 12, 10561, 4672, 1675, 87, 67, 1576, 273, 2618, 468, 2720, 585, 977, 1675, 87, 67, 768, 273, 1696, 12, 10561, 11189, 86, 16063, 896, 1435, 7178, 273, 8152, 15965, ...
self.query = obj_move._query_get(cr, uid, obj='l', context=data['form'].get('used_context',{})) self.init_query = obj_move._query_get(cr, uid, obj='l', context=data['form'].get('used_context_initial_bal', {}))
self.query = obj_move._query_get(self.cr, self.uid, obj='l', context=data['form'].get('used_context',{})) self.init_query = obj_move._query_get(self.cr, self.uid, obj='l', context=data['form'].get('used_context_initial_bal', {}))
def set_context(self, objects, data, ids, report_type=None): new_ids = ids obj_move = self.pool.get('account.move.line') self.sortby = data['form'].get('sortby', 'sort_date') self.query = obj_move._query_get(cr, uid, obj='l', context=data['form'].get('used_context',{})) self.init_query = obj_move._query_get(cr, uid, ob...
5c4592ba23d4057ad0143ee7a84d0acb93ba88ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/5c4592ba23d4057ad0143ee7a84d0acb93ba88ad/account_general_ledger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 2472, 12, 2890, 16, 2184, 16, 501, 16, 3258, 16, 2605, 67, 723, 33, 7036, 4672, 394, 67, 2232, 273, 3258, 1081, 67, 8501, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 8501, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 2472, 12, 2890, 16, 2184, 16, 501, 16, 3258, 16, 2605, 67, 723, 33, 7036, 4672, 394, 67, 2232, 273, 3258, 1081, 67, 8501, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 8501, ...
os.chmod(os.path.join(root, d), 0755)
if 'contrib' in root: continue if 'contrib' in d: os.chmod(os.path.join(root, d), 2775) else: os.chmod(os.path.join(root, d), 0755)
def ReleaseToCandidatesDir(options, upload_dir, files): candidatesDir = CANDIDATES_DIR % {'version': options.version, 'buildnumber': options.build_number} candidatesPath = os.path.join(NIGHTLY_PATH, candidatesDir) candidatesUrl = CANDIDATES_URL_PATH % { 'nightly_dir': options.nightly_dir, 'version': options.version, 'b...
aecbb29a397ac80ad36c864946907db4b6d6bd41 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6206/aecbb29a397ac80ad36c864946907db4b6d6bd41/post_upload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10819, 774, 18455, 1621, 12, 2116, 16, 3617, 67, 1214, 16, 1390, 4672, 7965, 1621, 273, 385, 4307, 734, 1777, 55, 67, 4537, 738, 13666, 1589, 4278, 702, 18, 1589, 16, 296, 3510, 2696, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10819, 774, 18455, 1621, 12, 2116, 16, 3617, 67, 1214, 16, 1390, 4672, 7965, 1621, 273, 385, 4307, 734, 1777, 55, 67, 4537, 738, 13666, 1589, 4278, 702, 18, 1589, 16, 296, 3510, 2696, ...
"WHERE PAP.HOMOLOGENE.HGE_GENEID = PAP.MRNA_COORDINATES.MRC_GENEID")
"WHERE PAP.HOMOLOGENE.HGE_GENEID = PAP.MRNA_COORDINATES.MRC_GENEID " "AND HGE_TAXID IN (" + species_limit + ")")
def _get_homologene_to_mrna(dbase): """ Returns: homologene_to_mrna (dict) """ # homologene_to_mrna: (Dict) # key: hge_homologeneid # TODO: Double-check that not all HGE_GENEIDs map to MRC_GENEIDs # # Homologene has 244,950 rows, while the select has only 67,520 # val: set((mrc_geneid, mrc_t...
b850fb892724b1943780db181408ec0a356cd4f5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12607/b850fb892724b1943780db181408ec0a356cd4f5/scan.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 17125, 3966, 4009, 67, 869, 67, 21387, 6582, 12, 1966, 448, 4672, 3536, 2860, 30, 13995, 3966, 4009, 67, 869, 67, 21387, 6582, 261, 1576, 13, 3536, 468, 13995, 3966, 4009, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 67, 17125, 3966, 4009, 67, 869, 67, 21387, 6582, 12, 1966, 448, 4672, 3536, 2860, 30, 13995, 3966, 4009, 67, 869, 67, 21387, 6582, 261, 1576, 13, 3536, 468, 13995, 3966, 4009, ...
for att in soup({'tbody':True})[1].findAll({'tr':True}): attach = Bug.Attachment() aux = att.findAll({'td':True}) attach.IdBug = self.get_Id(soup) attach.Name = str(aux[0].contents[2]) attach.Description = str(aux[1].contents[2]) attach.Url = str(SourceForgeFrontend.domain+aux[2].a['href']) dataBugs["Attachments:"].app...
if tg.has_key('id') and tg['id'] == 'filebar': for att in soup({'tbody':True})[1].findAll({'tr':True}): attach = Bug.Attachment() aux = att.findAll({'td':True}) attach.IdBug = self.get_Id(dataBugs,soup) attach.Name = str(aux[0].contents[1]) attach.Description = str(aux[1].contents[1]) attach.Url = str(SourceForgeFronte...
def get_Attachments(self,dataBugs, soup): attachs = [] try : if self.getNumChAttComm('Attached File',soup): debug("Viendo attachments") for tg in soup('h4'): for att in soup({'tbody':True})[1].findAll({'tr':True}): attach = Bug.Attachment() aux = att.findAll({'td':True}) attach.IdBug = self.get_Id(soup) attach.Name = s...
f8cdd044a6dff2b1c2d5aa6bee01a8dfe0255bb7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10888/f8cdd044a6dff2b1c2d5aa6bee01a8dfe0255bb7/sf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 12961, 12, 2890, 16, 892, 31559, 16, 15418, 4672, 3306, 87, 273, 5378, 775, 294, 309, 365, 18, 588, 2578, 782, 3075, 12136, 2668, 14890, 1387, 2187, 2048, 416, 4672, 1198, 2932,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12961, 12, 2890, 16, 892, 31559, 16, 15418, 4672, 3306, 87, 273, 5378, 775, 294, 309, 365, 18, 588, 2578, 782, 3075, 12136, 2668, 14890, 1387, 2187, 2048, 416, 4672, 1198, 2932,...
return self._retcode
return self.retcode()
def kill(self): """Kill our running process if needed. Wait for kill to complete.
edabcd69156d56093d5c167ac95d15713a2ad345 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/edabcd69156d56093d5c167ac95d15713a2ad345/coverage_posix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 12, 2890, 4672, 3536, 19045, 3134, 3549, 1207, 309, 3577, 18, 225, 5838, 364, 8673, 358, 3912, 18, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8673, 12, 2890, 4672, 3536, 19045, 3134, 3549, 1207, 309, 3577, 18, 225, 5838, 364, 8673, 358, 3912, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
class SimpleDemo(object):
glColor4f(1.0, 1.0, 0.0, 0.8) for x in [4, 3.5, 3, 2.5, 2, 1.5, 1, 0.5, 0, -0.5, -1, -1.5, -2, -2.5, -3, -3.5, -4]: draw_line(float(x), -4.0, float(x), 4.0) draw_line(-4.0, float(x), 4.0, float(x)) class SimpleApp(object):
def draw(self): # DRAW STUFF HERE glColor4f(1.0, 0.8, 0.2, 1.0) draw_square()
3b67b85e99556271865210ae7472d5929c2a3297 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/579/3b67b85e99556271865210ae7472d5929c2a3297/gl-hello.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 4672, 468, 463, 10821, 2347, 57, 2246, 670, 29340, 5118, 2957, 24, 74, 12, 21, 18, 20, 16, 374, 18, 28, 16, 374, 18, 22, 16, 404, 18, 20, 13, 3724, 67, 19719, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 4672, 468, 463, 10821, 2347, 57, 2246, 670, 29340, 5118, 2957, 24, 74, 12, 21, 18, 20, 16, 374, 18, 28, 16, 374, 18, 22, 16, 404, 18, 20, 13, 3724, 67, 19719, 1435,...
tempDict = dict tempDict["include files"] = match.group(1).strip() makeSubstitutions(tempDict) for file in tempDict["include files"].split():
files = evaluate(match.group(1),dict).split() for file in files:
def parseMakefile(filename): """Open filename, read in the text and return a dictionary of make variable names and values. If an include statement is found, this routine will be called recursively.""" lines = open(filename,"r").readlines() # Read in the lines of the Makefile lines = [s.split("#")[0] for s in lines...
e4c75bc4569aae4974c57b527eedcb6fafc7a154 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1130/e4c75bc4569aae4974c57b527eedcb6fafc7a154/MakefileVariables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 6464, 768, 12, 3459, 4672, 3536, 3678, 1544, 16, 855, 316, 326, 977, 471, 327, 279, 3880, 434, 1221, 2190, 1257, 471, 924, 18, 225, 971, 392, 2341, 3021, 353, 1392, 16, 333, 1224...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6464, 768, 12, 3459, 4672, 3536, 3678, 1544, 16, 855, 316, 326, 977, 471, 327, 279, 3880, 434, 1221, 2190, 1257, 471, 924, 18, 225, 971, 392, 2341, 3021, 353, 1392, 16, 333, 1224...
elif len(trackerSizeList[listIndex]) > 0:
elif len(trackerSizeList[listIndex]) > 0 and len(trackerSizeList[listIndex][0]) > 0:
def calculateSwarmSize(self, torrentList, content, toBC=True): """ This method gets a list of torrent_ids and then calculat the size of the swarm for those torrents. @author: Rahim @param torrentList: A list of torrent_id. @param content: If it be 'infohash' , the content of the torrentList is infohsh of torrents. If i...
fc74242fd2fbecb2942865be0abbe196487b2cde /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9686/fc74242fd2fbecb2942865be0abbe196487b2cde/SqliteCacheDBHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4604, 55, 13113, 1225, 12, 2890, 16, 17351, 682, 16, 913, 16, 358, 16283, 33, 5510, 4672, 3536, 1220, 707, 5571, 279, 666, 434, 17351, 67, 2232, 471, 1508, 3026, 270, 326, 963, 434, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4604, 55, 13113, 1225, 12, 2890, 16, 17351, 682, 16, 913, 16, 358, 16283, 33, 5510, 4672, 3536, 1220, 707, 5571, 279, 666, 434, 17351, 67, 2232, 471, 1508, 3026, 270, 326, 963, 434, 32...
Assigned To.*?<br>\s+(?P<assignee>\S+)
assigned.*?<br>\s+(?P<assignee>\S+)
def strip_tags(s): while '<' in s and '>' in s: s = str(s[:s.find('<')]) + str(s[s.find('>')+1:]) return s
e8fe9b90fe8c3b2a631e37b6e97e0ae67ab54887 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3104/e8fe9b90fe8c3b2a631e37b6e97e0ae67ab54887/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2569, 67, 4156, 12, 87, 4672, 1323, 9138, 316, 272, 471, 7481, 316, 272, 30, 272, 273, 609, 12, 87, 10531, 87, 18, 4720, 2668, 32, 6134, 5717, 397, 609, 12, 87, 63, 87, 18, 4720, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2569, 67, 4156, 12, 87, 4672, 1323, 9138, 316, 272, 471, 7481, 316, 272, 30, 272, 273, 609, 12, 87, 10531, 87, 18, 4720, 2668, 32, 6134, 5717, 397, 609, 12, 87, 63, 87, 18, 4720, 2...
width = nCols*deltax
width = maxWidth+(nCols-1)*deltax
def draw(self): colorNamePairs = self.colorNamePairs autoCP = isAuto(colorNamePairs) if autoCP: chart = getattr(colorNamePairs,'chart',getattr(colorNamePairs,'obj',None)) swatchMarker = None autoCP = Auto(obj=chart) n = chart._seriesCount chartTexts = self._getTexts(colorNamePairs) else: swatchMarker = getattr(self,'sw...
3a4ff3393aecd009765ecab0c857910a70a941b7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3878/3a4ff3393aecd009765ecab0c857910a70a941b7/legends.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 4672, 2036, 461, 10409, 273, 365, 18, 3266, 461, 10409, 3656, 4258, 273, 27079, 12, 3266, 461, 10409, 13, 309, 3656, 4258, 30, 4980, 273, 3869, 12, 3266, 461, 10409, 1118...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 4672, 2036, 461, 10409, 273, 365, 18, 3266, 461, 10409, 3656, 4258, 273, 27079, 12, 3266, 461, 10409, 13, 309, 3656, 4258, 30, 4980, 273, 3869, 12, 3266, 461, 10409, 1118...
(result,res_descr)=hlr_utils.empty_result(obj) (o_descr,d_descr)=hlr_utils.get_descr(obj)
(result, res_descr) = hlr_utils.empty_result(obj) o_descr = hlr_utils.get_descr(obj)
def tof_to_initial_wavelength_igs(obj,**kwargs): """ This function converts a primary axis of a SOM or SO from time-of-flight to initial_wavelength_igs. The time-of-flight axis for a SOM must be in units of microseconds. The primary axis of a SO is assumed to be in units of microseconds. A tuple of [tof, tof_err2] (ass...
f2732e272bffc96d577287672dd8a0fe10605815 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/f2732e272bffc96d577287672dd8a0fe10605815/hlr_tof_to_initial_wavelength_igs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 74, 67, 869, 67, 6769, 67, 91, 16775, 67, 360, 87, 12, 2603, 16, 636, 4333, 4672, 3536, 1220, 445, 7759, 279, 3354, 2654, 434, 279, 348, 1872, 578, 7460, 628, 813, 17, 792, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 74, 67, 869, 67, 6769, 67, 91, 16775, 67, 360, 87, 12, 2603, 16, 636, 4333, 4672, 3536, 1220, 445, 7759, 279, 3354, 2654, 434, 279, 348, 1872, 578, 7460, 628, 813, 17, 792, 17, ...
fn['upper-case']: 'UPPER'
fn['upper-case']: 'UPPER', fn.substring: 'SUBSTR',
def Literal(self, expr): if expr.literal.typeUri in self._noStringTypes: return "%s" % unicode(expr.literal) else: return "'%s'" % unicode(expr.literal)
ddd2842306c57d5b14c394931ef43cbb91123514 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5223/ddd2842306c57d5b14c394931ef43cbb91123514/emit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14392, 12, 2890, 16, 3065, 4672, 309, 3065, 18, 13107, 18, 723, 3006, 316, 365, 6315, 2135, 780, 2016, 30, 327, 2213, 87, 6, 225, 738, 5252, 12, 8638, 18, 13107, 13, 469, 30, 327, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14392, 12, 2890, 16, 3065, 4672, 309, 3065, 18, 13107, 18, 723, 3006, 316, 365, 6315, 2135, 780, 2016, 30, 327, 2213, 87, 6, 225, 738, 5252, 12, 8638, 18, 13107, 13, 469, 30, 327, 22...
@staticmethod def _name_and_arguments(command): return command['object'].name_with_arguments(command["name"])
def _usage_line(): return "Usage: %prog [options] command [command-options] [command-arguments]"
521a0052c5c62f674706d7f453852d96e0b4e764 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/521a0052c5c62f674706d7f453852d96e0b4e764/multicommandtool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9167, 67, 1369, 13332, 327, 315, 5357, 30, 738, 14654, 306, 2116, 65, 1296, 306, 3076, 17, 2116, 65, 306, 3076, 17, 7099, 4279, 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, 0, 0, 0, 0, 0, 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, 9167, 67, 1369, 13332, 327, 315, 5357, 30, 738, 14654, 306, 2116, 65, 1296, 306, 3076, 17, 2116, 65, 306, 3076, 17, 7099, 4279, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
binaries[arch][0][binary] = self.binaries[suite][arch][0][binary]
binaries[parch][0][binary] = self.binaries[suite][parch][0][binary]
def doop_source(self, pkg): """Apply a change to the testing distribution as requested by `pkg`
b8d4deefd1e15dc48987f2d10c01b6f060204f30 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/b8d4deefd1e15dc48987f2d10c01b6f060204f30/britney.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 556, 67, 3168, 12, 2890, 16, 3475, 4672, 3536, 7001, 279, 2549, 358, 326, 7769, 7006, 487, 3764, 635, 1375, 10657, 68, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 556, 67, 3168, 12, 2890, 16, 3475, 4672, 3536, 7001, 279, 2549, 358, 326, 7769, 7006, 487, 3764, 635, 1375, 10657, 68, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self.ProfileComboBox.connect("changed", self.ProfileChanged)
self.ProfileHandler = self.ProfileComboBox.connect("changed", self.ProfileChangedAddTimeout)
def __init__(self, main, context): self.Context = context self.Main = main rightChild = gtk.VBox() rightChild.set_border_width(10)
3ac61daed7b38b15dd56283f1f62118233306460 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7183/3ac61daed7b38b15dd56283f1f62118233306460/Pages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2774, 16, 819, 4672, 365, 18, 1042, 273, 819, 365, 18, 6376, 273, 2774, 2145, 1763, 273, 22718, 18, 58, 3514, 1435, 2145, 1763, 18, 542, 67, 8815, 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, 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, 2774, 16, 819, 4672, 365, 18, 1042, 273, 819, 365, 18, 6376, 273, 2774, 2145, 1763, 273, 22718, 18, 58, 3514, 1435, 2145, 1763, 18, 542, 67, 8815, 67, ...
for i in xrange(1000):
for unused_i in xrange(1000):
def runtest(self): # may take about a minute or so for i in xrange(1000): self.runcmd(self.distcc() + _gcc + " -o testtmp.o -c testtmp.c")
c113ba17e90da226b1e0b4c65576f800ab939f6a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4521/c113ba17e90da226b1e0b4c65576f800ab939f6a/testdistcc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3813, 12, 2890, 4672, 468, 2026, 4862, 2973, 279, 8044, 578, 1427, 364, 10197, 67, 77, 316, 12314, 12, 18088, 4672, 365, 18, 86, 551, 1264, 12, 2890, 18, 4413, 952, 1435, 397, 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, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3813, 12, 2890, 4672, 468, 2026, 4862, 2973, 279, 8044, 578, 1427, 364, 10197, 67, 77, 316, 12314, 12, 18088, 4672, 365, 18, 86, 551, 1264, 12, 2890, 18, 4413, 952, 1435, 397, 38...
currentindet = indent
currentindent = indent
def StructuredText(paragraphs, delimiter=re.compile(para_delim)): """ StructuredText accepts paragraphs, which is a list of lines to be parsed. StructuredText creates a structure which mimics the structure of the paragraphs. Structure => [paragraph,[sub-paragraphs]] """ currentlevel = 0 currentindent = 0 levels ...
1880eb89d803f626014fe1c9609e6df12d5a4ed7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/1880eb89d803f626014fe1c9609e6df12d5a4ed7/ST.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7362, 2862, 1528, 12, 22445, 87, 16, 5654, 33, 266, 18, 11100, 12, 25072, 67, 23822, 3719, 30, 3536, 7362, 2862, 1528, 8104, 24552, 16, 1492, 353, 279, 666, 434, 2362, 358, 506, 2707, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7362, 2862, 1528, 12, 22445, 87, 16, 5654, 33, 266, 18, 11100, 12, 25072, 67, 23822, 3719, 30, 3536, 7362, 2862, 1528, 8104, 24552, 16, 1492, 353, 279, 666, 434, 2362, 358, 506, 2707, ...
return (status=True, shouldopen)
return dict(status=True, shouldopen=shouldopen)
def toggle_shouldopen(self, package): # Make sure the package exists try: pkg = model.Package.query.filter_by(name=package).one() except InvalidRequestError: return dict(status=False, message='Package %s does not exist' % package) pkg.shouldopen = not pkg.shouldopen try: session.flush() except sqlalchemy.exceptions.SQL...
f73d1743c065de5c8c6ac92394349f3fa4e606e0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9953/f73d1743c065de5c8c6ac92394349f3fa4e606e0/dispatcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10486, 67, 13139, 3190, 12, 2890, 16, 2181, 4672, 468, 4344, 3071, 326, 2181, 1704, 775, 30, 3475, 273, 938, 18, 2261, 18, 2271, 18, 2188, 67, 1637, 12, 529, 33, 5610, 2934, 476, 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, 10486, 67, 13139, 3190, 12, 2890, 16, 2181, 4672, 468, 4344, 3071, 326, 2181, 1704, 775, 30, 3475, 273, 938, 18, 2261, 18, 2271, 18, 2188, 67, 1637, 12, 529, 33, 5610, 2934, 476, 1435,...
if nm in [ 'alevel','olevel','zlevel']:
if nm in [ 'zlevel',]+e['general'].get('generic_levels','').split():
def checkCMOR(fout,file,table,noerror=cmor.CMOR_CRITICAL,variable=None,from_bounds=None,other_tables=None,dodrs=True): req_glbl_att = ['title','Conventions','source','experiment','source','institution','project_id','table_id','realization',] opt_glbl_att = ['cmor_version','history','references','comment','parent_exper...
29d36713a64eb1da95dcb8b6a704941a7c7f0d53 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9170/29d36713a64eb1da95dcb8b6a704941a7c7f0d53/check_CMOR_compliant.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 9611, 916, 12, 617, 322, 16, 768, 16, 2121, 16, 2135, 1636, 33, 7670, 280, 18, 9611, 916, 67, 5093, 21377, 16, 6105, 33, 7036, 16, 2080, 67, 10576, 33, 7036, 16, 3011, 67, 9373,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9611, 916, 12, 617, 322, 16, 768, 16, 2121, 16, 2135, 1636, 33, 7670, 280, 18, 9611, 916, 67, 5093, 21377, 16, 6105, 33, 7036, 16, 2080, 67, 10576, 33, 7036, 16, 3011, 67, 9373,...
sta = np.zeros(len(a), dtype='float64') lta = np.zeros(len(a), dtype='float64') for i in range(Nlta + Nsta + 1, m):
sta = np.zeros(m, dtype='float64') lta = np.zeros(m, dtype='float64') for i in xrange(m):
def delayedStaLta(a, Nsta, Nlta): """ Delayed STA/LTA, (see Withers et al. 1998 p. 97) @type a: Numpy ndarray @param a: Seismic Trace @type Nsta: Int @param Nsta: Length of short time average window in samples @type Nlta: Int @param Nlta: Length of long time average window in samples @rtype: Numpy ndarray @return: Cha...
ea4c7ece41544c44ddf36d8239db27ef9e2868d1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10470/ea4c7ece41544c44ddf36d8239db27ef9e2868d1/trigger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15278, 510, 69, 48, 2351, 12, 69, 16, 423, 334, 69, 16, 423, 80, 2351, 4672, 3536, 20165, 329, 2347, 37, 19, 48, 9833, 16, 261, 5946, 3423, 414, 3393, 524, 18, 23673, 28, 293, 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, 15278, 510, 69, 48, 2351, 12, 69, 16, 423, 334, 69, 16, 423, 80, 2351, 4672, 3536, 20165, 329, 2347, 37, 19, 48, 9833, 16, 261, 5946, 3423, 414, 3393, 524, 18, 23673, 28, 293, 18, ...
'debut_actors' : '<tr><td colspan="2" valign="top"><h4 style="color:
'debut_actors' : '<tr><td.*?><h2[^>]*>Acteurs</h2>',
def __init__(self): self.__baseURL = 'http://www.allocine.fr' self.__basePath = '/film/fichefilm_gen_cfilm' self.__castPath = '/film/casting_gen_cfilm' self.__searchURL= 'http://www.allocine.fr/recherche/?motcle=%s&f=3&rub=1' self.__movieURL = self.__baseURL + self.__basePath self.__castURL = self.__baseURL + self.__c...
6b5ef6b3ec5b50dd95604f8f1bd8e5f3e50cf894 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1698/6b5ef6b3ec5b50dd95604f8f1bd8e5f3e50cf894/fr.allocine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 16186, 1969, 1785, 225, 202, 33, 296, 2505, 2207, 5591, 18, 9853, 558, 18, 4840, 11, 365, 16186, 27605, 273, 1173, 7540, 81, 19, 74, 335, 580, 754...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 365, 16186, 1969, 1785, 225, 202, 33, 296, 2505, 2207, 5591, 18, 9853, 558, 18, 4840, 11, 365, 16186, 27605, 273, 1173, 7540, 81, 19, 74, 335, 580, 754...
"""Formats a dictionary in a nice way
"""Format a dictionary in a nice way
def prettyDict(aDict, entrySepStr = "\n", keyValSepStr = ": "): """Formats a dictionary in a nice way Inputs: aDict: the dictionary to pretty-print entrySepStr: string separating each dictionary entry keyValSepStr: string separating key and value for each entry Returns a string containing the pretty-printed dictionar...
a5c12743960cc44ddb0aa0f21361c8697521f18c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6354/a5c12743960cc44ddb0aa0f21361c8697521f18c/StringUtil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7517, 5014, 12, 69, 5014, 16, 1241, 5097, 1585, 273, 1548, 82, 3113, 498, 3053, 5097, 1585, 273, 6398, 315, 4672, 3536, 1630, 279, 3880, 316, 279, 13752, 4031, 225, 24472, 30, 279, 5014,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7517, 5014, 12, 69, 5014, 16, 1241, 5097, 1585, 273, 1548, 82, 3113, 498, 3053, 5097, 1585, 273, 6398, 315, 4672, 3536, 1630, 279, 3880, 316, 279, 13752, 4031, 225, 24472, 30, 279, 5014,...
print "SAIU DO VENTO"
def evtHit(self, entry): #Function that controls the event when the airplane hit something #print "INTO " + entry.getIntoNodePath().getName() #print "FROM " + entry.getFromNodePath().getName() #print "PARENT " + entry.getIntoNodePath().getParent().getName()
5e9a1d19a32ed2d24e7ed4f8184ae8a0f209640a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4878/5e9a1d19a32ed2d24e7ed4f8184ae8a0f209640a/Gaivota.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6324, 13616, 12, 2890, 16, 1241, 4672, 468, 2083, 716, 11022, 326, 871, 1347, 326, 23350, 21314, 6800, 5943, 468, 1188, 315, 3217, 51, 315, 397, 1241, 18, 588, 5952, 907, 743, 7675, 1799...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6324, 13616, 12, 2890, 16, 1241, 4672, 468, 2083, 716, 11022, 326, 871, 1347, 326, 23350, 21314, 6800, 5943, 468, 1188, 315, 3217, 51, 315, 397, 1241, 18, 588, 5952, 907, 743, 7675, 1799...
return os.listdir(os.path.join(basedir.get(), dir))
d = os.path.join(basedir.get(), dir) if os.path.exists(d): return os.listdir(d) else: return None
def __remotes_from_dir(dir): return os.listdir(os.path.join(basedir.get(), dir))
98330c2962a26759c110ff91bf347c0652a3df23 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12366/98330c2962a26759c110ff91bf347c0652a3df23/git.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2764, 6366, 67, 2080, 67, 1214, 12, 1214, 4672, 302, 273, 1140, 18, 803, 18, 5701, 12, 31722, 18, 588, 9334, 1577, 13, 309, 1140, 18, 803, 18, 1808, 12, 72, 4672, 327, 1140, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2764, 6366, 67, 2080, 67, 1214, 12, 1214, 4672, 302, 273, 1140, 18, 803, 18, 5701, 12, 31722, 18, 588, 9334, 1577, 13, 309, 1140, 18, 803, 18, 1808, 12, 72, 4672, 327, 1140, 18...
if self._tofill: for item in self._tofill: self._canvas.itemconfigure(item, fill=self._color) self._items.append(item)
def fill(self, flag): """ Call fill(1) before drawing the shape you want to fill, and fill(0) when done.
70a17faf4e4e8896faec18608fcc2098b0932d58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/70a17faf4e4e8896faec18608fcc2098b0932d58/turtle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3636, 12, 2890, 16, 2982, 4672, 3536, 3049, 3636, 12, 21, 13, 1865, 16327, 326, 2179, 1846, 2545, 358, 3636, 16, 471, 3636, 12, 20, 13, 1347, 2731, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 3636, 12, 2890, 16, 2982, 4672, 3536, 3049, 3636, 12, 21, 13, 1865, 16327, 326, 2179, 1846, 2545, 358, 3636, 16, 471, 3636, 12, 20, 13, 1347, 2731, 18, 2, -100, -100, -100, -100, -100,...
result.write('From: ' + config['NAME'] + ' <' + config['MAIL'] + '>\n') result.write('Sender: ' + config['MAIL'] + '\n\n')
result.write('From: ' + config['NAME'] + ' <' + config['MAIL'] + '>\n\n')
def generate_checkgroups(config, passphrase=None, serial=None): """List the groups of the hierarchy.""" while serial not in range(0,100): try: print 'If it is your first checkgroups for today, leave it blank (default is 1).' print 'Otherwise, increment this revision number by one.' serial = int(raw_input('Revision to u...
b7a92e7a475b4249a82eb52e04a2c59fc090dcdf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5987/b7a92e7a475b4249a82eb52e04a2c59fc090dcdf/signcontrol.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 1893, 4650, 12, 1425, 16, 15244, 33, 7036, 16, 2734, 33, 7036, 4672, 3536, 682, 326, 3252, 434, 326, 9360, 12123, 1323, 2734, 486, 316, 1048, 12, 20, 16, 6625, 4672, 775, 30,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 1893, 4650, 12, 1425, 16, 15244, 33, 7036, 16, 2734, 33, 7036, 4672, 3536, 682, 326, 3252, 434, 326, 9360, 12123, 1323, 2734, 486, 316, 1048, 12, 20, 16, 6625, 4672, 775, 30,...
return rvdeclared def writeResultDecl(f, type, varname):
def writeResultDecl(f, type):
def writeArgumentUnboxing(f, i, name, type, haveCcx, optional, rvdeclared): # f - file to write to # i - int or None - Indicates the source jsval. If i is an int, the source # jsval is argv[i]; otherwise it is *vp. But if Python i >= C++ argc, # which can only happen if optional is True, the argument is missi...
6f558ca9eddc5be4f0e7a99f5054cd7d74be2155 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/6f558ca9eddc5be4f0e7a99f5054cd7d74be2155/qsgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 1379, 984, 2147, 310, 12, 74, 16, 277, 16, 508, 16, 618, 16, 1240, 39, 71, 92, 16, 3129, 16, 5633, 16571, 4672, 468, 284, 300, 585, 358, 1045, 358, 468, 277, 300, 509, 578, 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, 1045, 1379, 984, 2147, 310, 12, 74, 16, 277, 16, 508, 16, 618, 16, 1240, 39, 71, 92, 16, 3129, 16, 5633, 16571, 4672, 468, 284, 300, 585, 358, 1045, 358, 468, 277, 300, 509, 578, 5...
last_row = (num_tables - diff) * [num_answers] + diff * [-1]
last_row = diff * [num_answers] + (num_tables - diff) * [-1]
def __table_geometry(num_questions, num_answers, num_tables): """Returns the geometry of the answer tables. The result is a tuple (tables, question_numbers) where: - 'tables' is a bidimensional list such that table[row][column] represents the number of answers for the question in 'row' / 'column'. If 0, the question d...
6854403125127435aad9a934ec69279200ddc635 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12267/6854403125127435aad9a934ec69279200ddc635/exammaker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2121, 67, 14330, 12, 2107, 67, 9758, 16, 818, 67, 22340, 16, 818, 67, 9373, 4672, 3536, 1356, 326, 5316, 434, 326, 5803, 4606, 18, 225, 1021, 563, 353, 279, 3193, 261, 9373, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2121, 67, 14330, 12, 2107, 67, 9758, 16, 818, 67, 22340, 16, 818, 67, 9373, 4672, 3536, 1356, 326, 5316, 434, 326, 5803, 4606, 18, 225, 1021, 563, 353, 279, 3193, 261, 9373, 16, ...
def bt_cb_is_save(bt, fs, *args, **kwargs):
def bt_cb_is_save(bt, fs):
def bt_cb_is_save(bt, fs, *args, **kwargs): print "Toggle is save" fs.is_save_set(not fs.is_save_get())
ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12343/ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10921, 67, 7358, 67, 291, 67, 5688, 12, 23602, 16, 2662, 4672, 1172, 315, 17986, 353, 1923, 6, 2662, 18, 291, 67, 5688, 67, 542, 12, 902, 2662, 18, 291, 67, 5688, 67, 588, 10756, 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, 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, 10921, 67, 7358, 67, 291, 67, 5688, 12, 23602, 16, 2662, 4672, 1172, 315, 17986, 353, 1923, 6, 2662, 18, 291, 67, 5688, 67, 542, 12, 902, 2662, 18, 291, 67, 5688, 67, 588, 10756, 2, ...
res = self.__getPhysicalFileAccessUrl(pfns,storageElementName)
res = self.__getPhysicalFileAccessUrl(pfnDict.keys(),storageElementName)
def getReplicaAccessUrl(self,lfn,storageElementName): """ Obtain the metadata for physical files
5323c175ee7e5efc3b41475c7560468752e93cff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/5323c175ee7e5efc3b41475c7560468752e93cff/ReplicaManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5561, 6996, 1862, 1489, 12, 2890, 16, 80, 4293, 16, 5697, 30584, 4672, 3536, 24850, 326, 1982, 364, 11640, 1390, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5561, 6996, 1862, 1489, 12, 2890, 16, 80, 4293, 16, 5697, 30584, 4672, 3536, 24850, 326, 1982, 364, 11640, 1390, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
axis=0, ddof=1).""", DeprecationWarning)
axis=0, ddof=0), scipy.stats.var(a, bias=False) by var(x, axis=0, ddof=1).""", DeprecationWarning)
def var(a, axis=0, bias=False): """
6233dbcb4fec3b57079edd4776107117c42432ea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12971/6233dbcb4fec3b57079edd4776107117c42432ea/stats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 569, 12, 69, 16, 2654, 33, 20, 16, 12005, 33, 8381, 4672, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 569, 12, 69, 16, 2654, 33, 20, 16, 12005, 33, 8381, 4672, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self.assertEqual(check_line('def intersection(list1, list2):', REPORTER), None)
self.assertEqual(check_line('def intersection(list1, list2):'), None)
self.assertEqual(check_line('def intersection(list1, list2):', REPORTER), None)
455beb61539a40eb35dfd637d0cd015a7cbec7a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/928/455beb61539a40eb35dfd637d0cd015a7cbec7a0/test_format.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 365, 18, 11231, 5812, 12, 1893, 67, 1369, 2668, 536, 7619, 12, 1098, 21, 16, 666, 22, 4672, 2187, 2438, 52, 916, 2560, 3631, 599, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 365, 18, 11231, 5812, 12, 1893, 67, 1369, 2668, 536, 7619, 12, 1098, 21, 16, 666, 22, 4672, 2187, 2438, 52, 916, 2560, 3631, 599, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
def _list_files(self): ignore_dirs = ['dist', '.git'] ignore_files = ['.gitignore', 'MANIFEST', '*.pyc', '*~', '*.bak'] return list_files(self.config.source_dir, ignore_dirs, ignore_files) class BuildPackager(Packager): def get_files(self): files = self.config.bundle.get_files() if not files: logging.error('No files...
class XOPackager(Packager): def __init__(self, builder): Packager.__init__(self, builder.config) self.builder = builder
def _list_files(self): ignore_dirs = ['dist', '.git'] ignore_files = ['.gitignore', 'MANIFEST', '*.pyc', '*~', '*.bak'] return list_files(self.config.source_dir, ignore_dirs, ignore_files)
aecba37572ec3baab7f1e846b19e09650600ccc2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3114/aecba37572ec3baab7f1e846b19e09650600ccc2/bundlebuilder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1098, 67, 2354, 12, 2890, 4672, 2305, 67, 8291, 273, 10228, 4413, 2187, 2418, 6845, 3546, 2305, 67, 2354, 273, 10228, 18, 6845, 6185, 2187, 296, 9560, 30050, 2187, 19962, 2074, 71, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1098, 67, 2354, 12, 2890, 4672, 2305, 67, 8291, 273, 10228, 4413, 2187, 2418, 6845, 3546, 2305, 67, 2354, 273, 10228, 18, 6845, 6185, 2187, 296, 9560, 30050, 2187, 19962, 2074, 71, ...
signal.alarm(20)
signal_alarm(20)
def setUp(self): signal.alarm(20) # Kill deadlocks after 20 seconds. self.port_seed = 0 self.test_files = []
3d83d2bcdfd4a178974be1629cb35b7c208f29ba /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/3d83d2bcdfd4a178974be1629cb35b7c208f29ba/test_socketserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 4277, 67, 20681, 12, 3462, 13, 225, 468, 20520, 8363, 23581, 1839, 4200, 3974, 18, 365, 18, 655, 67, 12407, 273, 374, 365, 18, 3813, 67, 2354, 273, 5378, 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, 24292, 12, 2890, 4672, 4277, 67, 20681, 12, 3462, 13, 225, 468, 20520, 8363, 23581, 1839, 4200, 3974, 18, 365, 18, 655, 67, 12407, 273, 374, 365, 18, 3813, 67, 2354, 273, 5378, 2, -100...
digest_auth_handler = DigestAuthHandler()
def __init__(self, digest_auth_handler, *args, **kwargs): self.digest_auth_handler = digest_auth_handler BaseHTTPServer.BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
def handle_request(self, request_handler): """Performs digest authentication on the given HTTP request handler. Returns True if authentication was successful, False otherwise.
5ca1d2f6c2e5d52b6cfc2a93de4179cc0779e42a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/5ca1d2f6c2e5d52b6cfc2a93de4179cc0779e42a/test_urllib2_localnet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 2293, 12, 2890, 16, 590, 67, 4176, 4672, 3536, 9409, 5403, 5107, 603, 326, 864, 2239, 590, 1838, 18, 225, 2860, 1053, 309, 5107, 1703, 6873, 16, 1083, 3541, 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, 1640, 67, 2293, 12, 2890, 16, 590, 67, 4176, 4672, 3536, 9409, 5403, 5107, 603, 326, 864, 2239, 590, 1838, 18, 225, 2860, 1053, 309, 5107, 1703, 6873, 16, 1083, 3541, 18, 2, -100, -100...
else:
continue
def _dorewriteloop(connection, sessionDict, rules): for p, r in rules: if callable(p): if p(connection, sessionDict): _dorewriteloop(connection, sessionDict, r) else: m = _getcompiled(p).search(connection.uri) if m is not None: if Configuration.rewriteEnableHooks: key=(p, r) sessionDict['rewriteRules'][key] = {} sessio...
4b4173bf9fcfcb4f9d8cfb79af60b388349f63d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/4b4173bf9fcfcb4f9d8cfb79af60b388349f63d9/rewrite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 72, 479, 5363, 24214, 556, 12, 4071, 16, 1339, 5014, 16, 2931, 4672, 364, 293, 16, 436, 316, 2931, 30, 309, 4140, 12, 84, 4672, 309, 293, 12, 4071, 16, 1339, 5014, 4672, 389, 72...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 72, 479, 5363, 24214, 556, 12, 4071, 16, 1339, 5014, 16, 2931, 4672, 364, 293, 16, 436, 316, 2931, 30, 309, 4140, 12, 84, 4672, 309, 293, 12, 4071, 16, 1339, 5014, 4672, 389, 72...
should_create=True):
should_create=True, should_use_urlopen=True):
def test_scrape_bug_status_and_mark_as_closed(self, mock_urlopen, project_name='Mercurial', should_create=True): if Project.objects.filter(name=project_name): roundup_project = Project.objects.get(name=project_name) else: roundup_project = Project.create_dummy(name=project_name)
c9f5f3597fe299ece35e515d0bac6b05a67b0edf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/c9f5f3597fe299ece35e515d0bac6b05a67b0edf/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1017, 25360, 67, 925, 67, 2327, 67, 464, 67, 3355, 67, 345, 67, 12204, 12, 2890, 16, 5416, 67, 295, 18589, 16, 1984, 67, 529, 2218, 8478, 1397, 649, 2187, 1410, 67, 2640, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1017, 25360, 67, 925, 67, 2327, 67, 464, 67, 3355, 67, 345, 67, 12204, 12, 2890, 16, 5416, 67, 295, 18589, 16, 1984, 67, 529, 2218, 8478, 1397, 649, 2187, 1410, 67, 2640, 3...
for myFile in fnmatch.filter(wikiFileFinder.get_RDS_R_L1(),\
for myFile in fnmatch.filter(filesOmega,\
def prepareChecklist(wikiFilename=None,wikiCoinc=None,wikiTree=None,file2URL=None): """ Method to prepare a checklist where data products are isolated in directory. """ endOfS5=int(875232014) wikiFileFinder=findFileType(wikiTree,wikiCoinc) # Check to see if wiki file with name already exists maxCount=0 while os.path.ex...
fb84ac33aba836b8fcb61075cfaec34ced2846c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fb84ac33aba836b8fcb61075cfaec34ced2846c0/makeCheckListWiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 1564, 1098, 12, 13044, 5359, 33, 7036, 16, 13044, 27055, 71, 33, 7036, 16, 13044, 2471, 33, 7036, 16, 768, 22, 1785, 33, 7036, 4672, 3536, 2985, 358, 2911, 279, 866, 1098, 1625, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 1564, 1098, 12, 13044, 5359, 33, 7036, 16, 13044, 27055, 71, 33, 7036, 16, 13044, 2471, 33, 7036, 16, 768, 22, 1785, 33, 7036, 4672, 3536, 2985, 358, 2911, 279, 866, 1098, 1625, ...
entriesbygid = {} entriesbyname = {}
def test_values(self): entries = grp.getgrall() entriesbygid = {} entriesbyname = {}
10712bf02edf9dc6453a644a1361efdd2ba7215a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/10712bf02edf9dc6453a644a1361efdd2ba7215a/test_grp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2372, 12, 2890, 4672, 3222, 273, 14295, 18, 588, 3197, 454, 1435, 3222, 1637, 15780, 273, 2618, 3222, 1637, 529, 273, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2372, 12, 2890, 4672, 3222, 273, 14295, 18, 588, 3197, 454, 1435, 3222, 1637, 15780, 273, 2618, 3222, 1637, 529, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
('/a/OL1A/cover', '/a/OL1A/fake/cover')
(u'/a/OL1A/cover', u'/a/OL1A/fake/cover')
>>> def fake_get_object(key): return fakes[key]
350b3c7c6ebaa34f67f7f02d0c90659464ff5032 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3913/350b3c7c6ebaa34f67f7f02d0c90659464ff5032/processors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 10517, 67, 588, 67, 1612, 12, 856, 4672, 327, 284, 3223, 63, 856, 65, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 10517, 67, 588, 67, 1612, 12, 856, 4672, 327, 284, 3223, 63, 856, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Unpacks bulk spec tarfile, searches for required spec passed to script as argument $1
Unpacks bulk spec tarfile, for real bulk submission we have to use job arrays and construct the jobSpecName from the job index
def bulkUnpackerScript(bulkSpecTarName): """ _bulkUnpackerScript_ Unpacks bulk spec tarfile, searches for required spec passed to script as argument $1 If file not found, it generates a failure report and exits Otherwise, JOB_SPEC_FILE will be set to point to the script to invoke the run.sh command """ lines = [ "JO...
a662b056f66dcf00e177cf4e0a54e29a0c513138 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8887/a662b056f66dcf00e177cf4e0a54e29a0c513138/T0LSFSubmitter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8280, 23649, 264, 3651, 12, 14597, 1990, 20464, 461, 4672, 3536, 389, 14597, 23649, 264, 3651, 67, 225, 25411, 87, 8280, 857, 25857, 16, 225, 364, 2863, 8280, 8515, 732, 1240, 358, 999, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8280, 23649, 264, 3651, 12, 14597, 1990, 20464, 461, 4672, 3536, 389, 14597, 23649, 264, 3651, 67, 225, 25411, 87, 8280, 857, 25857, 16, 225, 364, 2863, 8280, 8515, 732, 1240, 358, 999, ...
[Fractional ideal (w)]
[Fractional ideal (-w)]
def prime_factors(self): """ Return a list of the prime ideal factors of self
af5d3e7e1332c8930f1bc6bfe8a077dcedde05a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/af5d3e7e1332c8930f1bc6bfe8a077dcedde05a4/number_field_ideal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17014, 67, 22108, 12, 2890, 4672, 3536, 2000, 279, 666, 434, 326, 17014, 23349, 14490, 434, 365, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17014, 67, 22108, 12, 2890, 4672, 3536, 2000, 279, 666, 434, 326, 17014, 23349, 14490, 434, 365, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
_pending = [] self._install(dwnpkg, cs, lk, _pending, depth) if _pending: self._pending(cs, lk, _pending, depth)
self._install(dwnpkg, cs, lk, None, depth)
def _updown(self, pkg, changeset, locked, depth=0): #print "[%03d] _updown(%s)" % (depth, pkg) #depth += 1
fa863c9ad9e8fb247c36224ac1e88ebd00689a16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/fa863c9ad9e8fb247c36224ac1e88ebd00689a16/transaction.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 416, 2378, 12, 2890, 16, 3475, 16, 22463, 16, 8586, 16, 3598, 33, 20, 4672, 468, 1188, 30048, 4630, 72, 65, 389, 416, 2378, 9275, 87, 2225, 738, 261, 5979, 16, 3475, 13, 468, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 416, 2378, 12, 2890, 16, 3475, 16, 22463, 16, 8586, 16, 3598, 33, 20, 4672, 468, 1188, 30048, 4630, 72, 65, 389, 416, 2378, 9275, 87, 2225, 738, 261, 5979, 16, 3475, 13, 468, 59...
def CheckContributor(ui, repo): user = ui.config("ui", "username")
def CheckContributor(ui, repo, user=None):
def CheckContributor(ui, repo): user = ui.config("ui", "username") if not user: raise util.Abort("[ui] username is not configured in .hgrc") try: f = open(repo.root + '/CONTRIBUTORS', 'r') except: raise util.Abort("cannot open %s: %s" % (repo.root+'/CONTRIBUTORS', ExceptionDetail())) for line in f.readlines(): if line....
552488c0a2c9ad31e3e6aba82b8e2a038e34c4ef /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5761/552488c0a2c9ad31e3e6aba82b8e2a038e34c4ef/codereview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 442, 19293, 12, 4881, 16, 3538, 16, 729, 33, 7036, 4672, 309, 486, 729, 30, 1002, 1709, 18, 13572, 2932, 63, 4881, 65, 2718, 353, 486, 4351, 316, 263, 26981, 1310, 7923, 775, 30,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 442, 19293, 12, 4881, 16, 3538, 16, 729, 33, 7036, 4672, 309, 486, 729, 30, 1002, 1709, 18, 13572, 2932, 63, 4881, 65, 2718, 353, 486, 4351, 316, 263, 26981, 1310, 7923, 775, 30,...
self._create_private_docs = kwargs.get('private', 1) self._top_page = self._find_top_page(kwargs.get('top', None))
self._create_private_docs = kwargs.get('show_private', 1) self._top_page = self._find_top_page(kwargs.get('top_page', None))
def __init__(self, docindex, **kwargs): """ Construct a new HTML writer, using the given documentation index. @param docmap: The documentation index. @type prj_name: C{string} @keyword prj_name: The name of the project. Defaults to none. @type prj_url: C{string} @keyword prj_url: The target for the project hopeage l...
dc4c4ce7e7eaf9ed22525aa996b282990149c11f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/dc4c4ce7e7eaf9ed22525aa996b282990149c11f/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 997, 1615, 16, 2826, 4333, 4672, 3536, 14291, 279, 394, 3982, 2633, 16, 1450, 326, 864, 7323, 770, 18, 225, 632, 891, 997, 1458, 30, 1021, 7323, 770, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 997, 1615, 16, 2826, 4333, 4672, 3536, 14291, 279, 394, 3982, 2633, 16, 1450, 326, 864, 7323, 770, 18, 225, 632, 891, 997, 1458, 30, 1021, 7323, 770, 18,...
def guess_payload_class(self):
def guess_payload_class(self, payload):
def guess_payload_class(self):
190a2c770bdd967748dea32a325afc5b1e65f8ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/190a2c770bdd967748dea32a325afc5b1e65f8ee/scapy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7274, 67, 7648, 67, 1106, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7274, 67, 7648, 67, 1106, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
sql2="""SELECT sum(qty) as qty,l.price_unit*sum(l.qty) as amt,t.name as name from product_product p, product_template t, pos_order_line l where order_id IN %s and p.product_tmpl_id=t.id and l.product_id=p.id group by t.name, l.price_unit""",(tuple(a_l),)
sql2="""SELECT sum(qty) as qty,l.price_unit*sum(l.qty) as amt,t.name as name from product_product p, product_template t, pos_order_line l where order_id = %d and p.product_tmpl_id=t.id and l.product_id=p.id group by t.name, l.price_unit"""%(o.id)
def _get_data(self,o): data={} sql1=""" SELECT distinct(o.id) from account_bank_statement s, account_bank_statement_line l,pos_order o,pos_order_line i where i.order_id=o.id and o.state='paid' and l.statement_id=s.id and l.pos_statement_id=o.id and s.id=%d"""%(o.id) self.cr.execute(sql1) data = self.cr.dictfetchall() ...
e5bef4c1d0badf41aa1f09a6793de244e726648c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/e5bef4c1d0badf41aa1f09a6793de244e726648c/pos_users_product.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 892, 12, 2890, 16, 83, 4672, 501, 12938, 1847, 21, 1546, 3660, 9111, 10217, 12, 83, 18, 350, 13, 628, 2236, 67, 10546, 67, 11516, 272, 16, 2236, 67, 10546, 67, 11516, 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, 389, 588, 67, 892, 12, 2890, 16, 83, 4672, 501, 12938, 1847, 21, 1546, 3660, 9111, 10217, 12, 83, 18, 350, 13, 628, 2236, 67, 10546, 67, 11516, 272, 16, 2236, 67, 10546, 67, 11516, 6...
return self.__class__(dict(self).copy())
return self.__class__(dict(self))
def copy(self): return self.__class__(dict(self).copy())
7e0e80345f9bd913ba5ed7c9957e475781ad145d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/7e0e80345f9bd913ba5ed7c9957e475781ad145d/pydo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 4672, 327, 365, 16186, 1106, 972, 12, 1576, 12, 2890, 2934, 3530, 10756, 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, 1610, 12, 2890, 4672, 327, 365, 16186, 1106, 972, 12, 1576, 12, 2890, 2934, 3530, 10756, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return code, self.untagged_responses.get(code, [None])
return self._untagged_response(code, code)
def response(self, code): """Return data for response 'code' if received, or None.
46586822058b54c93e36247f31b13b4d7286f0a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/46586822058b54c93e36247f31b13b4d7286f0a2/imaplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 766, 12, 2890, 16, 981, 4672, 3536, 990, 501, 364, 766, 296, 710, 11, 309, 5079, 16, 578, 599, 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, 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, 766, 12, 2890, 16, 981, 4672, 3536, 990, 501, 364, 766, 296, 710, 11, 309, 5079, 16, 578, 599, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Listener.__init__(self, uiPort, UserInterface, uiArgs)
Listener.__init__(self, uiPort, UserInterface, uiArgs, socketMap=socketMap)
def __init__(self, uiPort, bayes): uiArgs = (bayes,) Listener.__init__(self, uiPort, UserInterface, uiArgs)
bb67db5e2dc016a7be764205cf241b78d334ff9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/bb67db5e2dc016a7be764205cf241b78d334ff9b/pop3proxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5915, 2617, 16, 324, 528, 281, 4672, 5915, 2615, 273, 261, 70, 528, 281, 16, 13, 10652, 16186, 2738, 972, 12, 2890, 16, 5915, 2617, 16, 21369, 16, 5915, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2738, 972, 12, 2890, 16, 5915, 2617, 16, 324, 528, 281, 4672, 5915, 2615, 273, 261, 70, 528, 281, 16, 13, 10652, 16186, 2738, 972, 12, 2890, 16, 5915, 2617, 16, 21369, 16, 5915, ...
self.cb.action_showconfig()
self.do_action('showconfig')
def cb_alternative(self, *args): self.cb.action_showconfig()
3a1645abf43763b728adb5faaaaea49a6103d01c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/3a1645abf43763b728adb5faaaaea49a6103d01c/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2875, 67, 27071, 12, 2890, 16, 380, 1968, 4672, 365, 18, 7358, 18, 1128, 67, 4500, 1425, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 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, 2875, 67, 27071, 12, 2890, 16, 380, 1968, 4672, 365, 18, 7358, 18, 1128, 67, 4500, 1425, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
assert_almost_equal(actualr, desiredr) assert_almost_equal(actuali, desiredi)
assert_almost_equal(actualr, desiredr, decimal=decimal) assert_almost_equal(actuali, desiredi, decimal=decimal)
def assert_almost_equal(actual,desired,decimal=7,err_msg='',verbose=True): """ Raise an assertion if two items are not equal up to desired precision. The test is equivalent to abs(desired-actual) < 0.5 * 10**(-decimal) Given two objects (numbers or ndarrays), check that all elements of these objects are almost equal....
2537604cbcb61027706c358d6dd6afcd99a30686 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/2537604cbcb61027706c358d6dd6afcd99a30686/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 67, 287, 10329, 67, 9729, 12, 18672, 16, 30458, 16, 12586, 33, 27, 16, 370, 67, 3576, 2218, 2187, 11369, 33, 5510, 4672, 3536, 20539, 392, 11240, 309, 2795, 1516, 854, 486, 3959, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 67, 287, 10329, 67, 9729, 12, 18672, 16, 30458, 16, 12586, 33, 27, 16, 370, 67, 3576, 2218, 2187, 11369, 33, 5510, 4672, 3536, 20539, 392, 11240, 309, 2795, 1516, 854, 486, 3959, ...
contract = cr.dictfetchone()
contract = cr.dictfetchone() contract = contract and contract or {}
def get_contract(self, cr, uid, employee, date, context={}): sql_req= ''' SELECT c.id as id, c.wage as wage, struct_id as function FROM hr_contract c LEFT JOIN hr_employee emp on (c.employee_id=emp.id) LEFT JOIN hr_contract_wage_type cwt on (cwt.id = c.wage_type_id) LEFT JOIN hr_contract_wage_type_period p on (cwt.peri...
8a7e4a26173a9e06db8fe443b746014f7b8806d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/8a7e4a26173a9e06db8fe443b746014f7b8806d2/hr_payroll.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 16351, 12, 2890, 16, 4422, 16, 4555, 16, 24539, 1340, 16, 1509, 16, 819, 12938, 4672, 1847, 67, 3658, 33, 9163, 9111, 276, 18, 350, 487, 612, 16, 276, 18, 91, 410, 487, 341,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16351, 12, 2890, 16, 4422, 16, 4555, 16, 24539, 1340, 16, 1509, 16, 819, 12938, 4672, 1847, 67, 3658, 33, 9163, 9111, 276, 18, 350, 487, 612, 16, 276, 18, 91, 410, 487, 341,...
self.errorClearTime = ERROR_CLEAR_TIME self.errorTicketTime = ERROR_TICKET_TIME self.errorMailAddress = DIRAC.errorMail self.alarmMailAddress = DIRAC.alarmMail self.mailFromAddress = FROM_MAIL
self.errorClearTime = ERROR_CLEAR_TIME self.errorTicketTime = ERROR_TICKET_TIME self.errorMailAddress = DIRAC.errorMail self.alarmMailAddress = DIRAC.alarmMail self.mailFromAddress = FROM_MAIL
def __init__( self, submitPool): """ Define the logger and some defaults """
65482708e833fd2f044badf2f7e0684898d23e4b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/65482708e833fd2f044badf2f7e0684898d23e4b/PilotDirector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 4879, 2864, 4672, 3536, 13184, 326, 1194, 471, 2690, 3467, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 4879, 2864, 4672, 3536, 13184, 326, 1194, 471, 2690, 3467, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
keep_elem_refs(pForm, data) retval = _fl_set_form_atactivate(pForm, c_cb, data)
keep_elem_refs(pForm, data, pdata) retval = _fl_set_form_atactivate(pForm, c_cb, pdata)
def fl_set_form_atactivate(pForm, py_cb, data): """ fl_set_form_atactivate(pForm, py_cb, data) -> form atactivate Register a callback that is called when activation status of a forms is enabled <pForm> : form activated <py_cb> : python callback function called <data> : argument to be passed to function """ _fl_set_for...
bd6cf497d94f877a33a2bba90b9d74b9e4c950cb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/bd6cf497d94f877a33a2bba90b9d74b9e4c950cb/library.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 687, 67, 396, 299, 954, 12, 84, 1204, 16, 2395, 67, 7358, 16, 501, 4672, 3536, 1183, 67, 542, 67, 687, 67, 396, 299, 954, 12, 84, 1204, 16, 2395, 67, 7358, 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, 1183, 67, 542, 67, 687, 67, 396, 299, 954, 12, 84, 1204, 16, 2395, 67, 7358, 16, 501, 4672, 3536, 1183, 67, 542, 67, 687, 67, 396, 299, 954, 12, 84, 1204, 16, 2395, 67, 7358, 16, ...
return [entry for entry in entries if pattern(entry)]
return [entry for entry in self._entries if pattern(entry)]
def find_all(self, pattern, *fields): """Searchs this phonebook for certain patterns. `pattern` may either be
7caf7af8620f36787fcc5d3a1634ba919cd8202c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2215/7caf7af8620f36787fcc5d3a1634ba919cd8202c/phonebook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 454, 12, 2890, 16, 1936, 16, 380, 2821, 4672, 3536, 2979, 87, 333, 7353, 3618, 364, 8626, 6884, 18, 1375, 4951, 68, 2026, 3344, 506, 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, 1104, 67, 454, 12, 2890, 16, 1936, 16, 380, 2821, 4672, 3536, 2979, 87, 333, 7353, 3618, 364, 8626, 6884, 18, 1375, 4951, 68, 2026, 3344, 506, 2, -100, -100, -100, -100, -100, -100, -1...
o = scripts.Long("opt").min(0).max(5).optional() a = scripts.String("a").values("foo", "bar") b = scripts.Long("b").out()
o = scripts.Long("opt", min=0, max=5) a = scripts.String("a", values=("foo", "bar"), optional=True) b = scripts.Long("b", optional=True).out()
def demo(self, args): SCRIPT = """#!/usr/bin/env python
289e20cb678804a7371cd511e0a7cacd821eba4c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/289e20cb678804a7371cd511e0a7cacd821eba4c/script.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21477, 12, 2890, 16, 833, 4672, 22812, 273, 3536, 7, 5, 19, 13640, 19, 4757, 19, 3074, 5790, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21477, 12, 2890, 16, 833, 4672, 22812, 273, 3536, 7, 5, 19, 13640, 19, 4757, 19, 3074, 5790, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.Core.setActivated(True)
self.Core.setActivated(False)
def quit(self): ### Do anything that needs to be done before quitting. logging.info("Caffeine is preparing to quit")
941357d61d3ff9036ff03944f1d0b4ad6797a889 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1563/941357d61d3ff9036ff03944f1d0b4ad6797a889/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9706, 12, 2890, 4672, 11849, 2256, 6967, 716, 4260, 358, 506, 2731, 1865, 9706, 1787, 18, 2907, 18, 1376, 2932, 39, 7329, 73, 558, 353, 675, 12583, 358, 9706, 7923, 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, 9706, 12, 2890, 4672, 11849, 2256, 6967, 716, 4260, 358, 506, 2731, 1865, 9706, 1787, 18, 2907, 18, 1376, 2932, 39, 7329, 73, 558, 353, 675, 12583, 358, 9706, 7923, 2, -100, -100, -100, ...
declare_opcode_set(op_get_prop_len, 0x84, 2, 0x10)
declare_opcode_set(op_get_prop_len, 0x84, 3, 0x10)
def op_get_prop_len(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, 588, 67, 5986, 67, 1897, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1061, 67, 588, 67, 5986, 67, 1897, 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, -10...
self.body.append( '\\begin{list}{}{}\n' )
self.out.append( '\\begin{list}{}{}\n' )
def visit_bullet_list (self, node): # NOTE: required by the loss of 'topic_classes' in docutils 0.6 # TODO: so what replaces it? if (hasattr (self, 'topic_classes') and ('contents' in self.topic_classes)): if self.use_latex_toc: raise nodes.SkipNode self.body.append( '\\begin{list}{}{}\n' ) else: begin_str = '\\begin{i...
37db8ffa549b63ebad9bbc3310aeafe2a276f03b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5620/37db8ffa549b63ebad9bbc3310aeafe2a276f03b/rst2beamer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 70, 19994, 67, 1098, 261, 2890, 16, 756, 4672, 468, 5219, 30, 1931, 635, 326, 8324, 434, 296, 10476, 67, 4701, 11, 316, 997, 5471, 374, 18, 26, 468, 2660, 30, 1427, 4121, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 70, 19994, 67, 1098, 261, 2890, 16, 756, 4672, 468, 5219, 30, 1931, 635, 326, 8324, 434, 296, 10476, 67, 4701, 11, 316, 997, 5471, 374, 18, 26, 468, 2660, 30, 1427, 4121, 1...
print "Finished, thank you for waiting."
def scatter_plot(group_info,scatter_info,data_set): #data_set is a dictionary keyed by quantity containing lists of groups and X and Y data points. #print "Group Info:", group_info for quantity_number in scatter_info: #print "Dataset for quantity number "+str(quantity_number)+": ", data_set[quantity_number] if data_s...
ad91d4eb3f67d10bfa5d623cd1280d36462603e1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12/ad91d4eb3f67d10bfa5d623cd1280d36462603e1/Validation_Data_Processor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14644, 67, 4032, 12, 1655, 67, 1376, 16, 31320, 67, 1376, 16, 892, 67, 542, 4672, 468, 892, 67, 542, 353, 279, 3880, 17408, 635, 10457, 4191, 6035, 434, 3252, 471, 1139, 471, 1624, 501...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14644, 67, 4032, 12, 1655, 67, 1376, 16, 31320, 67, 1376, 16, 892, 67, 542, 4672, 468, 892, 67, 542, 353, 279, 3880, 17408, 635, 10457, 4191, 6035, 434, 3252, 471, 1139, 471, 1624, 501...
print self.skip, self.stack,
print '!'*self.debugging, 'process:', self.skip, self.stack,
def process(self, accu): if self.debugging > 1: print self.skip, self.stack, if accu: print accu[0][:30], if accu[0][30:] or accu[1:]: print '...', print if self.stack and self.stack[-1] == 'menu': # XXX should be done differently for line in accu: mo = miprog.match(line) if not mo: line = string.strip(line) + '\n' sel...
6dbcc8f6eb9e3b136c03d11137b7c0c7afb8d4a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6dbcc8f6eb9e3b136c03d11137b7c0c7afb8d4a4/texi2html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 2890, 16, 4078, 89, 4672, 309, 365, 18, 4148, 1998, 405, 404, 30, 1172, 15502, 14, 2890, 18, 4148, 1998, 16, 296, 2567, 30, 2187, 365, 18, 7457, 16, 365, 18, 3772, 16, 309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 2890, 16, 4078, 89, 4672, 309, 365, 18, 4148, 1998, 405, 404, 30, 1172, 15502, 14, 2890, 18, 4148, 1998, 16, 296, 2567, 30, 2187, 365, 18, 7457, 16, 365, 18, 3772, 16, 309,...
if ( os.isdir(pathname) ):
if ( os.path.isdir(pathname) ):
def _scanDirToChannel(self, config, channel, dir): result = 1 log("scanning directory %s" % (dir,) ) for file in os.listdir(dir): pathname = os.path.join(dir, file) if ( os.isdir(pathname) ): result = result and (0 != self._scanDirToChannel(config, channel, pathname) ) if ( os.isfile(pathname) ): result = result and ( ...
94f33c0d3397bd529868956db17e5edca73e0585 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5092/94f33c0d3397bd529868956db17e5edca73e0585/postgres.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9871, 1621, 774, 2909, 12, 2890, 16, 642, 16, 1904, 16, 1577, 4672, 563, 273, 404, 613, 2932, 1017, 10903, 1867, 738, 87, 6, 738, 261, 1214, 16, 13, 262, 364, 585, 316, 1140, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9871, 1621, 774, 2909, 12, 2890, 16, 642, 16, 1904, 16, 1577, 4672, 563, 273, 404, 613, 2932, 1017, 10903, 1867, 738, 87, 6, 738, 261, 1214, 16, 13, 262, 364, 585, 316, 1140, 18...
executeInSecs = period if elapsedTime: executeInSecs -= elapsedTime retVal = self.__scheduleTask( taskId, executeInSecs )
retVal = self.__scheduleTask( taskId, elapsedTime )
def addPeriodicTask( self, period, taskFunc, taskArgs = (), executions = 0, elapsedTime = 0 ): if not callable( taskFunc ): return S_ERROR( "%s is not callable" % str( taskFunc ) ) period = max( period, self.__minPeriod ) elapsedTime = min( elapsedTime, period - 1 ) md = md5.new() task = { 'period' : period, 'func' : t...
bc726cc4a54f92f64c8cfd45aaaf12319ef78e35 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/bc726cc4a54f92f64c8cfd45aaaf12319ef78e35/ThreadScheduler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 31461, 2174, 12, 365, 16, 3879, 16, 1562, 2622, 16, 1562, 2615, 273, 1832, 16, 26845, 273, 374, 16, 9613, 950, 273, 374, 262, 30, 309, 486, 4140, 12, 1562, 2622, 262, 30, 327, 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, 527, 31461, 2174, 12, 365, 16, 3879, 16, 1562, 2622, 16, 1562, 2615, 273, 1832, 16, 26845, 273, 374, 16, 9613, 950, 273, 374, 262, 30, 309, 486, 4140, 12, 1562, 2622, 262, 30, 327, 3...
version='0.2.0dev',
version='0.2dev',
def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
fdff27f60b4e611431088f1284ba9df68d9c724b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4163/fdff27f60b4e611431088f1284ba9df68d9c724b/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 30857, 86, 1973, 4672, 327, 1696, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 972, 768, 972, 3631, 380, 86, 1973, 13, 2934, 896, 1435, 225, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 855, 30857, 86, 1973, 4672, 327, 1696, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 972, 768, 972, 3631, 380, 86, 1973, 13, 2934, 896, 1435, 225, 2, -100, -100, -100,...
simplename = r'(?!_)\w([-.\w]*(?!_)\w)?'
simplename = r'(?:(?!_)\w)+(?:[-._](?:(?!_)\w)+)*'
def parse(self, text, lineno, memo, parent): """ Return 2 lists: nodes (text and inline elements), and system_messages.
83317549327c7718c3d29c8e4065fc85c6a55580 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/83317549327c7718c3d29c8e4065fc85c6a55580/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 977, 16, 7586, 16, 11063, 16, 982, 4672, 3536, 2000, 576, 6035, 30, 2199, 261, 955, 471, 6370, 2186, 3631, 471, 2619, 67, 6833, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 1109, 12, 2890, 16, 977, 16, 7586, 16, 11063, 16, 982, 4672, 3536, 2000, 576, 6035, 30, 2199, 261, 955, 471, 6370, 2186, 3631, 471, 2619, 67, 6833, 18, 2, -100, -100, -100, -100, -100,...