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
write = True if write: f = codecs.open(path, 'w', 'utf-8') f.write(page.get()) f.close()
pass if length == 0 or force_update: try: data = page.get() f = codecs.open(path, 'w', 'utf-8') f.write(data) f.close() except wikipedia.IsRedirectPage: data = page.get(get_redirect=True) except: print 'Getting page failed'
def load_pages(): write = False for page, path in exclusion_file_list(): try: file_age = time.time() - os.path.getmtime(path) if file_age > 24 * 60 * 60: print 'Updating source pages to exclude new URLs...' write = True except OSError: write = True if write: f = codecs.open(path, 'w', 'utf-8') f.write(page.get()) f.cl...
3beea3ddf6e89467781f05f3ad781372015c8411 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/3beea3ddf6e89467781f05f3ad781372015c8411/copyright.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 7267, 13332, 1045, 273, 1083, 364, 1363, 16, 589, 316, 21244, 67, 768, 67, 1098, 13332, 775, 30, 585, 67, 410, 273, 813, 18, 957, 1435, 300, 1140, 18, 803, 18, 588, 10838, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 7267, 13332, 1045, 273, 1083, 364, 1363, 16, 589, 316, 21244, 67, 768, 67, 1098, 13332, 775, 30, 585, 67, 410, 273, 813, 18, 957, 1435, 300, 1140, 18, 803, 18, 588, 10838, ...
self.froms[alias] = self.get_from_text(alias.selectable) + " " + alias.name self.strings[alias] = self.get_str(alias.selectable)
self.froms[alias] = self.get_from_text(alias.original) + " " + alias.name self.strings[alias] = self.get_str(alias.original)
def visit_alias(self, alias):
2cc08018bdc985c3dc5557dd0773eda431253295 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1074/2cc08018bdc985c3dc5557dd0773eda431253295/oracle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 4930, 12, 2890, 16, 2308, 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, 3757, 67, 4930, 12, 2890, 16, 2308, 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,...
Multiplicative Abelian Group isomorphic to C2 x C2 x C3
Multiplicative Abelian Group isomorphic to C2 x C6
def elementary_divisors(self): """ EXAMPLES: sage: G = AbelianGroup(2,[2,6]) sage: G Multiplicative Abelian Group isomorphic to C2 x C2 x C3 sage: G.invariants() [2, 6] sage: G.elementary_divisors() [2, 2, 3]
4b76758ecf69f92f14b50ef31dd04f2252c5a26c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/4b76758ecf69f92f14b50ef31dd04f2252c5a26c/abelian_group.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 930, 814, 67, 2892, 291, 1383, 12, 2890, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 611, 273, 9771, 292, 2779, 1114, 12, 22, 16, 63, 22, 16, 26, 5717, 272, 410, 30, 611, 5991, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 930, 814, 67, 2892, 291, 1383, 12, 2890, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 611, 273, 9771, 292, 2779, 1114, 12, 22, 16, 63, 22, 16, 26, 5717, 272, 410, 30, 611, 5991, ...
"""SMTP 'rcpt' command. Indicates 1 recipient for this mail."""
"""SMTP 'rcpt' command -- indicates 1 recipient for this mail."""
def rcpt(self,recip,options=[]): """SMTP 'rcpt' command. Indicates 1 recipient for this mail.""" optionlist = '' if options and self.does_esmtp: optionlist = string.join(options, ' ') self.putcmd("rcpt","TO:%s %s" % (quoteaddr(recip),optionlist)) return self.getreply()
33277df4d8ce335176270f2501de2933739ddd3c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/33277df4d8ce335176270f2501de2933739ddd3c/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4519, 337, 12, 2890, 16, 266, 3449, 16, 2116, 33, 8526, 4672, 3536, 55, 14636, 296, 1310, 337, 11, 1296, 1493, 8527, 404, 8027, 364, 333, 4791, 12123, 1456, 1098, 273, 875, 309, 702, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4519, 337, 12, 2890, 16, 266, 3449, 16, 2116, 33, 8526, 4672, 3536, 55, 14636, 296, 1310, 337, 11, 1296, 1493, 8527, 404, 8027, 364, 333, 4791, 12123, 1456, 1098, 273, 875, 309, 702, 4...
tHalf = (halfMaxNormCorr-c1)/m1 - timeMap[tBleach]
tHalf = (halfMaxNormCorr-c1)/m1 - timeList[tBleach] log("Bleach time, %f seconds" % timeList[tBleach])
def makeFrapFigure(session, commandArgs): gateway = session.createGateway() roiService = session.getRoiService() queryService = session.getQueryService() updateService = session.getUpdateService() rawFileStore = session.createRawFileStore() rawPixelStore = session.createRawPixelsStore() renderingEngine = session.creat...
566dc854fdc857cddb1a005f0466810727d27024 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/566dc854fdc857cddb1a005f0466810727d27024/frapFigure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 42, 1266, 42, 15906, 12, 3184, 16, 1296, 2615, 4672, 225, 6878, 273, 1339, 18, 2640, 5197, 1435, 25017, 1179, 273, 1339, 18, 588, 54, 11359, 1179, 1435, 843, 1179, 273, 1339, 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, 1221, 42, 1266, 42, 15906, 12, 3184, 16, 1296, 2615, 4672, 225, 6878, 273, 1339, 18, 2640, 5197, 1435, 25017, 1179, 273, 1339, 18, 588, 54, 11359, 1179, 1435, 843, 1179, 273, 1339, 18, ...
rendered = self.render(client,REQUEST,RESPONSE,**kw) return rendered
if self.handle_modified_headers(REQUEST=REQUEST): return '' else: return self.render(client,REQUEST,RESPONSE,**kw)
def __call__(self, client=None, REQUEST={}, RESPONSE=None, **kw): """ Render this zwiki page, also upgrading it on the fly if needed. """ if self.handle_modified_headers(REQUEST=REQUEST): return '' # return a 304 response with no content if AUTO_UPGRADE: self.upgrade(REQUEST) rendered = self.render(client,REQUEST,RESPO...
0179e56da136fc7e0a7b4b61f433510a7a074ee8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5225/0179e56da136fc7e0a7b4b61f433510a7a074ee8/ZWikiPage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1004, 33, 7036, 16, 12492, 28793, 20645, 33, 7036, 16, 2826, 9987, 4672, 3536, 6987, 333, 998, 13044, 1363, 16, 2546, 731, 15210, 518, 603, 326, 21434, 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, 1001, 1991, 972, 12, 2890, 16, 1004, 33, 7036, 16, 12492, 28793, 20645, 33, 7036, 16, 2826, 9987, 4672, 3536, 6987, 333, 998, 13044, 1363, 16, 2546, 731, 15210, 518, 603, 326, 21434, 309...
self.nuBox=OWGUI.doubleSpin(OWGUI.indentedBox(b), self, "nu", 0.0,1.0,0.1, label="Complexity bound (nu)", labelWidth = 120, orientation="horizontal", tooltip="Upper bound on the ratio of support vectors")
self.nuBox=OWGUI.doubleSpin(OWGUI.indentedBox(b), self, "nu", 0.1, 1.0, 0.1, label="Complexity bound (nu)", labelWidth = 120, orientation="horizontal", tooltip="Upper bound on the ratio of support vectors")
def __init__(self, parent=None, signalManager=None, name="SVM"): OWWidget.__init__(self, parent, signalManager, name, wantMainArea = 0, resizingEnabled = 0) self.inputs=[("Example Table", ExampleTable, self.setData)] self.outputs=[("Learner", orange.Learner, Default),("Classifier", orange.Classifier, Default),("Support...
76c8bd64fe6f116c24f972d94005aa1e42aa6792 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6366/76c8bd64fe6f116c24f972d94005aa1e42aa6792/OWSVM.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 33, 7036, 16, 4277, 1318, 33, 7036, 16, 508, 1546, 55, 7397, 6, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318, 16, 508, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 982, 33, 7036, 16, 4277, 1318, 33, 7036, 16, 508, 1546, 55, 7397, 6, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318, 16, 508, 1...
if typehash.has_key(type): pkg = pkgnamehash[typehash[type][0]["name"]]
if not typehash.has_key(type): continue for pkg in typehash[type]:
def __handleBestPkg(self, cmd, pkglist, arch=None, exactarch=False, is_filereq=0, do_obsolete=True, single=False): # Handle removes directly here, they don't need any special handling. if cmd.endswith("remove"): for upkg in pkglist: self.opresolver.erase(upkg) return 1 # If no arch has been set use the one of our curre...
846bb890abbcdfc7158cc7684b94ae4c6817bc43 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/846bb890abbcdfc7158cc7684b94ae4c6817bc43/yum.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4110, 14173, 11264, 12, 2890, 16, 1797, 16, 3475, 1098, 16, 6637, 33, 7036, 16, 5565, 991, 33, 8381, 16, 353, 67, 7540, 822, 85, 33, 20, 16, 741, 67, 10992, 19513, 33, 5510, 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, 4110, 14173, 11264, 12, 2890, 16, 1797, 16, 3475, 1098, 16, 6637, 33, 7036, 16, 5565, 991, 33, 8381, 16, 353, 67, 7540, 822, 85, 33, 20, 16, 741, 67, 10992, 19513, 33, 5510, 16...
if not string.strip(part): break raise TALError("invalid z:define syntax: " + `part`)
raise TALError("invalid define syntax: " + `part`)
def emitDefines(self, defines): for part in splitParts(defines): m = re.match( r"\s*(?:(global|local)\s+)?(%s)\s+(.*)" % NAME_RE, part) if not m: if not string.strip(part): break # extra space after semi raise TALError("invalid z:define syntax: " + `part`) scope, name, expr = m.group(1, 2, 3) scope = scope or "local" c...
be82517174cba087c9d9be7c22b930a94d28ef72 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/be82517174cba087c9d9be7c22b930a94d28ef72/TALGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3626, 15109, 12, 2890, 16, 11164, 4672, 364, 1087, 316, 1416, 4305, 12, 536, 1465, 4672, 312, 273, 283, 18, 1916, 12, 436, 12691, 87, 14, 6503, 12, 6347, 96, 3729, 5153, 87, 31423, 927...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3626, 15109, 12, 2890, 16, 11164, 4672, 364, 1087, 316, 1416, 4305, 12, 536, 1465, 4672, 312, 273, 283, 18, 1916, 12, 436, 12691, 87, 14, 6503, 12, 6347, 96, 3729, 5153, 87, 31423, 927...
f.write(" nsCOMPtr<%s> %s;\n" % (type.name, name))
f.write(" %s *%s;\n" % (type.name, name)) f.write(" xpc_qsSelfRef %sref;\n" % name)
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...
62904871e7291b38e7809dbb292895c665628124 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/62904871e7291b38e7809dbb292895c665628124/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...
del objects[-1]
def commit(self, subtransaction=None): 'Finalize the transaction'
bd19915024199a14de29dd3e73c75b5eaf5e7d64 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/bd19915024199a14de29dd3e73c75b5eaf5e7d64/Transaction.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3294, 12, 2890, 16, 720, 7958, 33, 7036, 4672, 296, 7951, 554, 326, 2492, 11, 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, 3294, 12, 2890, 16, 720, 7958, 33, 7036, 4672, 296, 7951, 554, 326, 2492, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
name -- job name id -- job id (must be unique) code -- job code parent -- sets if the job is a parent job username -- author of the job (not neccesarily unique) type -- the type of the job (file, string, generator) defaults to string
id -- (str, default: None) job id (must be unique) name -- (str, default: None) job name code -- (str, default: None) literal string of the code to execute parent -- (str, default: None) a job's parent job username -- (str, default: $USER) username of person who created job timeout -- (int, default: 600) how long to wa...
def __init__(self, id_=None, name=None, code=None, parent=None, username=None, timeout=600, type_='sage'): """ Creates a new job.
51482b6ddb963abfc64a69bd73776008cfadd89d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/51482b6ddb963abfc64a69bd73776008cfadd89d/job.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 612, 67, 33, 7036, 16, 508, 33, 7036, 16, 981, 33, 7036, 16, 982, 33, 7036, 16, 2718, 33, 7036, 16, 2021, 33, 28133, 16, 618, 67, 2218, 87, 410, 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, 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, 612, 67, 33, 7036, 16, 508, 33, 7036, 16, 981, 33, 7036, 16, 982, 33, 7036, 16, 2718, 33, 7036, 16, 2021, 33, 28133, 16, 618, 67, 2218, 87, 410, 11, ...
The reduced representative returned is not uniquely determined. ALGORITHM: Uses Pari function \emph{nfeltreduce}.
The reduced representative returned is not uniquely determined. ALGORITHM: Uses Pari function ``nfeltreduce``.
def small_residue(self, f): """ Given an element f of the ambient number field, returns an element g such that f - g belongs to the ideal self (which must be integral), and g is small.
d0ab72dbf17c21c4fbc66f87d618d5a5ad1469d7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/d0ab72dbf17c21c4fbc66f87d618d5a5ad1469d7/number_field_ideal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5264, 67, 23388, 12, 2890, 16, 284, 4672, 3536, 16803, 392, 930, 284, 434, 326, 13232, 1979, 1300, 652, 16, 1135, 392, 930, 314, 4123, 716, 284, 300, 314, 11081, 358, 326, 23349, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5264, 67, 23388, 12, 2890, 16, 284, 4672, 3536, 16803, 392, 930, 284, 434, 326, 13232, 1979, 1300, 652, 16, 1135, 392, 930, 314, 4123, 716, 284, 300, 314, 11081, 358, 326, 23349, 365, ...
except error, (errno, strerror):
except socket.error, (errno, strerror):
def Test2(udpsock, serveraddr): """ The client sends a request asking to receive an echo from a different address and a different port on the address and port the request came from """ retVal = {"resp":False} BUFSIZ = 1024 request = "ping2" udpsock.sendto(request, serveraddr) try: reply, rcvaddr = udpsock.recvfrom(B...
68ebc7081d02ad719eccc360ae365de6cf099732 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9686/68ebc7081d02ad719eccc360ae365de6cf099732/NatCheck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7766, 22, 12, 1100, 1121, 975, 16, 1438, 4793, 4672, 3536, 1021, 1004, 9573, 279, 590, 29288, 358, 6798, 392, 3376, 628, 279, 3775, 1758, 471, 279, 3775, 1756, 603, 326, 1758, 471, 1756,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7766, 22, 12, 1100, 1121, 975, 16, 1438, 4793, 4672, 3536, 1021, 1004, 9573, 279, 590, 29288, 358, 6798, 392, 3376, 628, 279, 3775, 1758, 471, 279, 3775, 1756, 603, 326, 1758, 471, 1756,...
if "Updated atomic structure:" in line:
if "Updated atomic structure:" in line and not molecular_dynamics:
def read_aims_output(filename, index = -1): """ Import FHI-aims output files with all data available, i.e. relaxations, MD information, force information etc etc etc. """ from ase import Atoms, Atom from ase.calculators.singlepoint import SinglePointCalculator molecular_dynamics = False fd = open(filename, 'r') cell =...
fca631a3fe756f7a4b2fa91e3973f218acc5e7af /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/fca631a3fe756f7a4b2fa91e3973f218acc5e7af/aims.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 4581, 87, 67, 2844, 12, 3459, 16, 770, 273, 300, 21, 4672, 3536, 225, 6164, 28705, 45, 17, 4581, 87, 876, 1390, 598, 777, 501, 2319, 16, 277, 18, 73, 18, 25744, 1012, 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, 855, 67, 4581, 87, 67, 2844, 12, 3459, 16, 770, 273, 300, 21, 4672, 3536, 225, 6164, 28705, 45, 17, 4581, 87, 876, 1390, 598, 777, 501, 2319, 16, 277, 18, 73, 18, 25744, 1012, 16, ...
charlen = re.search('\(([\d,]+)\)',row['format_type']).group(1)
charlen = re.search('\(([\d,]+)\)', format_type).group(1)
(SELECT substring(d.adsrc for 128) FROM pg_catalog.pg_attrdef d WHERE d.adrelid = a.attrelid AND d.adnum = a.attnum AND a.atthasdef)
8d81a40589b22e121c61644ff79847726176bc1e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1074/8d81a40589b22e121c61644ff79847726176bc1e/postgres.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 261, 4803, 3019, 12, 72, 18, 361, 4816, 364, 8038, 13, 4571, 7184, 67, 7199, 18, 8365, 67, 1747, 536, 302, 4852, 302, 18, 361, 2878, 350, 273, 279, 18, 4558, 2878, 350, 4116, 302, 18, 361,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 261, 4803, 3019, 12, 72, 18, 361, 4816, 364, 8038, 13, 4571, 7184, 67, 7199, 18, 8365, 67, 1747, 536, 302, 4852, 302, 18, 361, 2878, 350, 273, 279, 18, 4558, 2878, 350, 4116, 302, 18, 361,...
revs = [self.rev(n) for n in nodelist]
def group(self, nodelist, lookup, infocollect=None): """calculate a delta group
e3cf4b7e95c9f40c7c3bb57830b91b6e4a3d3b68 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/e3cf4b7e95c9f40c7c3bb57830b91b6e4a3d3b68/revlog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1041, 12, 2890, 16, 30068, 16, 3689, 16, 8286, 504, 355, 1582, 33, 7036, 4672, 3536, 11162, 279, 3622, 1041, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1041, 12, 2890, 16, 30068, 16, 3689, 16, 8286, 504, 355, 1582, 33, 7036, 4672, 3536, 11162, 279, 3622, 1041, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
for (field, val) in cls.__dict__.items(): vuid = _makeuid(val)
try: items = cls.__dict__.items() except AttributeError: items = [] for (field, val) in items: vuid = UID(val)
def __init__(self, cls, verbosity=0): self._tmp_ivar = {} self._tmp_cvar = {} self._tmp_type = {} ObjDoc.__init__(self, cls, verbosity)
d3395d508175517a8a8289ffc33bd81b4ee231c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/d3395d508175517a8a8289ffc33bd81b4ee231c2/objdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2028, 16, 11561, 33, 20, 4672, 365, 6315, 5645, 67, 22647, 273, 2618, 365, 6315, 5645, 67, 71, 1401, 273, 2618, 365, 6315, 5645, 67, 723, 273, 2618, 1876...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2738, 972, 12, 2890, 16, 2028, 16, 11561, 33, 20, 4672, 365, 6315, 5645, 67, 22647, 273, 2618, 365, 6315, 5645, 67, 71, 1401, 273, 2618, 365, 6315, 5645, 67, 723, 273, 2618, 1876...
tmp_dc = wxMemoryDC()
def Draw(self, grid, attr, dc, rect, row, col, isSelected): view_start = grid.GetViewStart() view_units = grid.GetScrollPixelsPerUnit() view_size = grid.GetClientSize() if not rect.Intersects(wxRect( view_start[0] * view_units[0], view_start[1] * view_units[1], view_size[0], view_size[1])): return
693f257b0d1dc3ae158e5b60409e58362344ebe5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9927/693f257b0d1dc3ae158e5b60409e58362344ebe5/gamera_display.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10184, 12, 2890, 16, 3068, 16, 1604, 16, 6744, 16, 4917, 16, 1027, 16, 645, 16, 20956, 4672, 1476, 67, 1937, 273, 3068, 18, 967, 1767, 1685, 1435, 1476, 67, 7705, 273, 3068, 18, 967, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10184, 12, 2890, 16, 3068, 16, 1604, 16, 6744, 16, 4917, 16, 1027, 16, 645, 16, 20956, 4672, 1476, 67, 1937, 273, 3068, 18, 967, 1767, 1685, 1435, 1476, 67, 7705, 273, 3068, 18, 967, ...
sage: maxima.demo('array')
sage: maxima.demo('array')
def demo(self, s): """ EXAMPLES: sage: maxima.demo('array') #not tested batching /opt/sage/local/share/maxima/5.16.2/demo/array.dem
45240fcde870afe2eb7934ed596546cff10b7cf4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/45240fcde870afe2eb7934ed596546cff10b7cf4/maxima.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21477, 12, 2890, 16, 272, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 943, 13888, 18, 27928, 2668, 1126, 6134, 468, 902, 18432, 2581, 310, 342, 3838, 19, 87, 410, 19, 3729, 19, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21477, 12, 2890, 16, 272, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 943, 13888, 18, 27928, 2668, 1126, 6134, 468, 902, 18432, 2581, 310, 342, 3838, 19, 87, 410, 19, 3729, 19, 14...
view.cursor = datetime(2004, 8, 12, tzinfo=utc)
view.cursor = date(2004, 8, 12)
def test_getColumns_periods(self): from schoolbell.app.browser.cal import DailyCalendarView from schoolbell.app.app import Person, Calendar from schoolbell.calendar.utils import parse_datetimetz
4f0eee5944b3822bc2a1d5f0d5713575275edb00 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/4f0eee5944b3822bc2a1d5f0d5713575275edb00/test_cal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 3380, 67, 20659, 12, 2890, 4672, 628, 18551, 1371, 70, 1165, 18, 2910, 18, 11213, 18, 771, 1930, 463, 12857, 7335, 1767, 628, 18551, 1371, 70, 1165, 18, 2910, 18, 2910, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 3380, 67, 20659, 12, 2890, 4672, 628, 18551, 1371, 70, 1165, 18, 2910, 18, 11213, 18, 771, 1930, 463, 12857, 7335, 1767, 628, 18551, 1371, 70, 1165, 18, 2910, 18, 2910, ...
_rendered_props = ('Parents','Children','git-committer','git-author')
def _format_sha_link(self, formatter, ns, sha, label, fullmatch=None): try: changeset = self.env.get_repository().get_changeset(sha) return tag.a(label, class_="changeset", title=shorten_line(changeset.message), href=formatter.href.changeset(sha)) except TracError, e: return tag.a(label, class_="missing changeset", hre...
ff0ef4a0b7ee5f4115b9e845804b91a3cc0ca57e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14465/ff0ef4a0b7ee5f4115b9e845804b91a3cc0ca57e/git_fs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2139, 67, 7819, 67, 1232, 12, 2890, 16, 4453, 16, 3153, 16, 6056, 16, 1433, 16, 1983, 1916, 33, 7036, 4672, 775, 30, 22463, 273, 365, 18, 3074, 18, 588, 67, 9071, 7675, 588, 67,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2139, 67, 7819, 67, 1232, 12, 2890, 16, 4453, 16, 3153, 16, 6056, 16, 1433, 16, 1983, 1916, 33, 7036, 4672, 775, 30, 22463, 273, 365, 18, 3074, 18, 588, 67, 9071, 7675, 588, 67,...
"FocusModel.xml", "Focus.xml",
def verify_asdm(asdmname): print "Verifying asdm ", asdmname if(not os.path.exists(asdmname)): print "asdm ", asdmname, " doesn't exist." raise Exception # test for the existence of all obligatory tables allTables = [ "Antenna.xml", "ASDMBinary", "ASDM.xml", # "CalData.xml", # "CalDelay.xml", # "CalReduction.xml", "Con...
77217459743833ff8dae04aa1983004faa1bb6b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2098/77217459743833ff8dae04aa1983004faa1bb6b6/test_task_exportasdm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 67, 345, 10956, 12, 345, 10956, 529, 4672, 1172, 315, 8097, 310, 487, 10956, 3104, 487, 10956, 529, 309, 12, 902, 1140, 18, 803, 18, 1808, 12, 345, 10956, 529, 3719, 30, 1172, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 67, 345, 10956, 12, 345, 10956, 529, 4672, 1172, 315, 8097, 310, 487, 10956, 3104, 487, 10956, 529, 309, 12, 902, 1140, 18, 803, 18, 1808, 12, 345, 10956, 529, 3719, 30, 1172, 31...
'''This gives control of the child process to the interactive user.
"""This gives control of the child process to the interactive user.
def interact(self, escape_character = chr(29)): '''This gives control of the child process to the interactive user. Keystrokes are sent to the child process, and the stdout and stderr output of the child process is printed. When the user types the escape_character this method will stop. The default for escape_character...
a6436229531e4cc3cceb58c0322f4ecc258e53d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9386/a6436229531e4cc3cceb58c0322f4ecc258e53d4/pexpect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16592, 12, 2890, 16, 4114, 67, 11560, 273, 4513, 12, 5540, 3719, 30, 3536, 2503, 14758, 3325, 434, 326, 1151, 1207, 358, 326, 12625, 729, 18, 1929, 334, 3250, 281, 854, 3271, 358, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16592, 12, 2890, 16, 4114, 67, 11560, 273, 4513, 12, 5540, 3719, 30, 3536, 2503, 14758, 3325, 434, 326, 1151, 1207, 358, 326, 12625, 729, 18, 1929, 334, 3250, 281, 854, 3271, 358, 326, ...
print "No match for department: ", dept
print "No match for department: '%s'" % dept
def GovPostproto(self, lsdatet, e, deptno): # department number to extract multiple departments self.sdatet = lsdatet self.sourcedoc = "chgpages/govposts"
4bcbb0fc7a72d6b8890dd9eda1d95e4d872728d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8428/4bcbb0fc7a72d6b8890dd9eda1d95e4d872728d6/minpostparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 611, 1527, 3349, 9393, 12, 2890, 16, 7180, 3404, 278, 16, 425, 16, 443, 337, 2135, 4672, 225, 468, 443, 15750, 1300, 358, 2608, 3229, 26000, 1346, 365, 18, 87, 3404, 278, 273, 7180, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 611, 1527, 3349, 9393, 12, 2890, 16, 7180, 3404, 278, 16, 425, 16, 443, 337, 2135, 4672, 225, 468, 443, 15750, 1300, 358, 2608, 3229, 26000, 1346, 365, 18, 87, 3404, 278, 273, 7180, 34...
gradient = N.dot(cost_jac, u_sens.T)
gradient = N.dot(cost_jac, sens_mini.T)
def _shoot(model, start_time, end_time): """ Does a single "shot". Model parameters must be set BEFORE calling this method. @note: Currently written specifically for VDP. @note: Currently only supports inputs. @note: Assumes cost function is not directly dependent on parameters (in this case - input u). @param start_...
733964346bd705d3e3fa78795693f8a99289c936 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/733964346bd705d3e3fa78795693f8a99289c936/shooting.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 674, 1632, 12, 2284, 16, 787, 67, 957, 16, 679, 67, 957, 4672, 3536, 9637, 279, 2202, 315, 2415, 9654, 3164, 1472, 1297, 506, 444, 21203, 4440, 333, 707, 18, 225, 632, 7652, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 674, 1632, 12, 2284, 16, 787, 67, 957, 16, 679, 67, 957, 4672, 3536, 9637, 279, 2202, 315, 2415, 9654, 3164, 1472, 1297, 506, 444, 21203, 4440, 333, 707, 18, 225, 632, 7652, 30, ...
entitled_data = UEP.bindByProduct(consumer['uuid'], product)['entitlement']['pool']
ent_ret = UEP.bindByProduct(consumer['uuid'], product) entitled_data = ent_ret[0]['entitlement']['pool']
def onSubscribeAction(self, button): slabel = self.addxml.get_widget("label_status") #consumer = get_consumer() subscribed_count = 0 my_model = self.tv_products.get_model() busted_subs = [] for product, state in self.selected.items(): # state = (bool, iter) if state[0]: try: entitled_data = UEP.bindByProduct(consumer['...
500e5a193c1ea4c83d3050531cfaf915f1e772be /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11137/500e5a193c1ea4c83d3050531cfaf915f1e772be/managergui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 16352, 1803, 12, 2890, 16, 3568, 4672, 272, 1925, 273, 365, 18, 1289, 2902, 18, 588, 67, 6587, 2932, 1925, 67, 2327, 7923, 468, 13230, 273, 336, 67, 13230, 1435, 16445, 67, 1883, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16352, 1803, 12, 2890, 16, 3568, 4672, 272, 1925, 273, 365, 18, 1289, 2902, 18, 588, 67, 6587, 2932, 1925, 67, 2327, 7923, 468, 13230, 273, 336, 67, 13230, 1435, 16445, 67, 1883, ...
while name: i = name.find('.') if i >= 0: name, tail = name[:i], name[i+1:] else: tail = '' w = w.children[name] name = tail
for n in name: if not n: break w = w.children[n]
def nametowidget(self, name): """Return the Tkinter instance of a widget identified by its Tcl name NAME.""" w = self if name[0] == '.': w = w._root() name = name[1:] while name: i = name.find('.') if i >= 0: name, tail = name[:i], name[i+1:] else: tail = '' w = w.children[name] name = tail return w
dc765bdeaa629d3498beebce9903ac93a3197ac4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/dc765bdeaa629d3498beebce9903ac93a3197ac4/Tkinter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15135, 278, 543, 2208, 12, 2890, 16, 508, 4672, 3536, 990, 326, 399, 79, 2761, 791, 434, 279, 3604, 9283, 635, 2097, 399, 830, 508, 6048, 12123, 341, 273, 365, 309, 508, 63, 20, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15135, 278, 543, 2208, 12, 2890, 16, 508, 4672, 3536, 990, 326, 399, 79, 2761, 791, 434, 279, 3604, 9283, 635, 2097, 399, 830, 508, 6048, 12123, 341, 273, 365, 309, 508, 63, 20, 65, ...
from qmodulefunctiongroupbox import QPythonValueLineEdit
from gui.qmodulefunctiongroupbox import QPythonValueLineEdit
def buildAliasDictionary(self): from qmodulefunctiongroupbox import QPythonValueLineEdit aliases = {} for mid in self.modules: for f in self.modules[mid].functions: fsig = f.getSignature() for pidx in range(len(f.params)): palias = f.params[pidx].alias if palias and palias!='': for f1 in reversed(self.modules[mid].func...
2f8994ed1e030353566a5e20286e1f5148c54349 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6341/2f8994ed1e030353566a5e20286e1f5148c54349/vis_pipeline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 2936, 10905, 12, 2890, 4672, 225, 628, 13238, 18, 85, 2978, 915, 1655, 2147, 1930, 2238, 15774, 620, 1670, 4666, 6900, 273, 2618, 364, 7501, 316, 365, 18, 6400, 30, 364, 284, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 2936, 10905, 12, 2890, 4672, 225, 628, 13238, 18, 85, 2978, 915, 1655, 2147, 1930, 2238, 15774, 620, 1670, 4666, 6900, 273, 2618, 364, 7501, 316, 365, 18, 6400, 30, 364, 284, 316, ...
"""Initialize messages tab menus.""" MessageList.mainMenu.append(Messages_Archive_Import()) MessageList.itemMenu.append(Message_Delete())
"""Initialize messages tab menus.""" MessageList.mainMenu.append(Messages_Archive_Import()) MessageList.itemMenu.append(Message_Delete())
def InitMessageLinks(): """Initialize messages tab menus.""" #--SaveList: Column Links MessageList.mainMenu.append(Messages_Archive_Import()) #--ScreensList: Item Links MessageList.itemMenu.append(Message_Delete())
3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4378, 1079, 7100, 13332, 3536, 7520, 2743, 3246, 21374, 12123, 468, 413, 4755, 682, 30, 4753, 21771, 2350, 682, 18, 5254, 4599, 18, 6923, 12, 5058, 67, 7465, 67, 5010, 10756, 225, 468, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4378, 1079, 7100, 13332, 3536, 7520, 2743, 3246, 21374, 12123, 468, 413, 4755, 682, 30, 4753, 21771, 2350, 682, 18, 5254, 4599, 18, 6923, 12, 5058, 67, 7465, 67, 5010, 10756, 225, 468, 4...
if n in log_taylor_cache: a, log_a = log_taylor_cache[n] else: a = n << (LOG_TAYLOR_WP - LOG_TAYLOR_SHIFT) log_a = log_newton(a, LOG_TAYLOR_WP) log_taylor_cache[n] = (a, log_a) dprec = (LOG_TAYLOR_WP - prec) a >>= dprec log_a >>= dprec
a, log_a = log_taylor_get_cached(n, prec)
def log_taylor(x, prec): n = (x >> (prec-LOG_TAYLOR_SHIFT)) if n in log_taylor_cache: a, log_a = log_taylor_cache[n] else: a = n << (LOG_TAYLOR_WP - LOG_TAYLOR_SHIFT) log_a = log_newton(a, LOG_TAYLOR_WP) log_taylor_cache[n] = (a, log_a) dprec = (LOG_TAYLOR_WP - prec) a >>= dprec log_a >>= dprec d = a - x u = ((-d) << p...
5e45936c16eff0d628279151c95a91bb5e1767bf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11851/5e45936c16eff0d628279151c95a91bb5e1767bf/libelefun.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 67, 88, 528, 80, 280, 12, 92, 16, 13382, 4672, 290, 273, 261, 92, 1671, 261, 4036, 17, 4842, 67, 56, 5255, 48, 916, 67, 23191, 3719, 279, 16, 613, 67, 69, 273, 613, 67, 88, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 67, 88, 528, 80, 280, 12, 92, 16, 13382, 4672, 290, 273, 261, 92, 1671, 261, 4036, 17, 4842, 67, 56, 5255, 48, 916, 67, 23191, 3719, 279, 16, 613, 67, 69, 273, 613, 67, 88, ...
self.future_position = None
def MoveTo(self, (x, y, z)): """ Move to a given absolute position in the world. """ # Change position x %= self.world_size y %= self.world_size position = Position((x, y, z)) old_position = self.node.position
846798130ad8e67a62b2464d23fa2ccaede27788 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2522/846798130ad8e67a62b2464d23fa2ccaede27788/statemachine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9933, 774, 12, 2890, 16, 261, 92, 16, 677, 16, 998, 3719, 30, 3536, 9933, 358, 279, 864, 4967, 1754, 316, 326, 9117, 18, 3536, 468, 7576, 1754, 619, 30582, 365, 18, 18179, 67, 1467, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9933, 774, 12, 2890, 16, 261, 92, 16, 677, 16, 998, 3719, 30, 3536, 9933, 358, 279, 864, 4967, 1754, 316, 326, 9117, 18, 3536, 468, 7576, 1754, 619, 30582, 365, 18, 18179, 67, 1467, ...
CURR_CONTAINER_NUMBER=CONTAINER_NUMBER COMM_CATEGORY_CODE = lineItem.siNo.COMM_CATEGORY_CODE COMM_CODE = lineItem.siNo.COMMODITY_CODE COI_CODE = unicode(lineItem.siNo.coi_code()) TheStockItems = EpicStock.objects.filter(origin_id__contains=COI_CODE) PCKKCODE = TheStockItems[0].package_code ALLCODE = TheStockItems[0]....
if lineItem.loadingDetailSentToCompas: pass else: CURR_CONTAINER_NUMBER=CONTAINER_NUMBER COMM_CATEGORY_CODE = lineItem.siNo.COMM_CATEGORY_CODE COMM_CODE = lineItem.siNo.COMMODITY_CODE COI_CODE = unicode(lineItem.siNo.coi_code()) TheStockItems = EpicStock.objects.filter(origin_id__contains=COI_CODE) PCKKCODE = TheStock...
def write_dispatch_waybill_compas(self,waybill_id): #try: db = cx_Oracle.Connection(self.ConnectionString) cursor = db.cursor() self.ErrorMessages = u'' self.ErrorCodes = u'' # gather wb info the_waybill = Waybill.objects.get(id=waybill_id) lineItems = the_waybill.loadingdetail_set.select_related() LTI= lineItems[0].si...
a725ab4f31235e4d56f98acad31e3de83d373abc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12559/a725ab4f31235e4d56f98acad31e3de83d373abc/compas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 10739, 67, 1888, 17240, 67, 2919, 345, 12, 2890, 16, 1888, 17240, 67, 350, 4672, 468, 698, 30, 1319, 273, 9494, 67, 23601, 18, 1952, 12, 2890, 18, 1952, 780, 13, 3347, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 10739, 67, 1888, 17240, 67, 2919, 345, 12, 2890, 16, 1888, 17240, 67, 350, 4672, 468, 698, 30, 1319, 273, 9494, 67, 23601, 18, 1952, 12, 2890, 18, 1952, 780, 13, 3347, 273, ...
self.ren.SetDisplayPoint(winCenter) self.ren.DisplayToView() self.ren.ViewToWorld() worldWinCenter = list(self.ren.GetWorldPoint())
ren.SetDisplayPoint(winCenter) ren.DisplayToView() ren.ViewToWorld() worldWinCenter = list(ren.GetWorldPoint())
def Reposition(self): """ Based on code of method Zoom in the vtkInteractorStyleRubberBandZoom, the of vtk 5.4.3 """ size = self.ren.GetSize()
c64e6b6cf3ce5b3574fd1784d421ddaf5ea6c9d1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10228/c64e6b6cf3ce5b3574fd1784d421ddaf5ea6c9d1/viewer_slice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 868, 3276, 12, 2890, 4672, 3536, 25935, 603, 981, 434, 707, 2285, 4252, 316, 326, 13659, 2465, 3362, 2885, 54, 373, 744, 14231, 11497, 16, 326, 434, 13659, 1381, 18, 24, 18, 23, 3536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 868, 3276, 12, 2890, 4672, 3536, 25935, 603, 981, 434, 707, 2285, 4252, 316, 326, 13659, 2465, 3362, 2885, 54, 373, 744, 14231, 11497, 16, 326, 434, 13659, 1381, 18, 24, 18, 23, 3536, ...
mul1s reg, t1
mul1s reg, t1, flags=(CF,OF)
def macroop IMUL_R_M
223ca22a9687d28a645fc6017a3302f5f7168ddd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7385/223ca22a9687d28a645fc6017a3302f5f7168ddd/multiply_and_divide.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 6246, 1506, 67, 54, 67, 49, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 11522, 556, 6246, 1506, 67, 54, 67, 49, 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, ...
txt.append(self.formatter.styleText(child.getAllDisplayText()))
txt.append(self.renderText(child.getAllDisplayText()))
def renderInline(self, node): txt = [] self.inline_mode += 1 for child in node.children: res = self.write(child) if isInline(res): txt.extend(res) else: log.warning(node.__class__.__name__, ' contained block element: ', child.__class__.__name__) txt.append(self.formatter.styleText(child.getAllDisplayText())) self.inlin...
a3199f3aaef59f97679049092d3d639c7f382fcf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12390/a3199f3aaef59f97679049092d3d639c7f382fcf/rlwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 10870, 12, 2890, 16, 756, 4672, 6463, 273, 5378, 365, 18, 10047, 67, 3188, 1011, 404, 364, 1151, 316, 756, 18, 5906, 30, 400, 273, 365, 18, 2626, 12, 3624, 13, 309, 8048, 1369, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 10870, 12, 2890, 16, 756, 4672, 6463, 273, 5378, 365, 18, 10047, 67, 3188, 1011, 404, 364, 1151, 316, 756, 18, 5906, 30, 400, 273, 365, 18, 2626, 12, 3624, 13, 309, 8048, 1369, ...
def test_createRecordIdTest(self):
def test_create_record_id(self):
def test_createRecordIdTest(self): """bibupload - try to create a new record ID in the database""" rec_id = create_new_record() self.assertNotEqual(-1,rec_id)
a2c5095d6104f91d327659c84b1058237cf84e6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/a2c5095d6104f91d327659c84b1058237cf84e6f/bibupload_regression_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2640, 67, 3366, 67, 350, 12, 2890, 4672, 3536, 70, 495, 6327, 300, 775, 358, 752, 279, 394, 1409, 1599, 316, 326, 2063, 8395, 1950, 67, 350, 273, 752, 67, 2704, 67, 3366, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2640, 67, 3366, 67, 350, 12, 2890, 4672, 3536, 70, 495, 6327, 300, 775, 358, 752, 279, 394, 1409, 1599, 316, 326, 2063, 8395, 1950, 67, 350, 273, 752, 67, 2704, 67, 3366, 1...
except SkipTest as e:
except unittest.SkipTest as e:
def test_main(): tests = [ TestMiscellaneous, TestEnUSNumberFormatting, TestCNumberFormatting, TestFrFRNumberFormatting, ] # SkipTest can't be raised inside unittests, handle it manually instead try: get_enUS_locale() except SkipTest as e: if verbose: print "Some tests will be disabled: %s" % e else: tests += [TestNumb...
301fbe4867b10eb6e1e5f04b8cf731718b827421 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/301fbe4867b10eb6e1e5f04b8cf731718b827421/test_locale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 7434, 273, 306, 7766, 11729, 3855, 15522, 16, 7766, 664, 3378, 1854, 23974, 16, 7766, 39, 1854, 23974, 16, 7766, 7167, 9981, 1854, 23974, 16, 308, 468, 6611, 4709, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 7434, 273, 306, 7766, 11729, 3855, 15522, 16, 7766, 664, 3378, 1854, 23974, 16, 7766, 39, 1854, 23974, 16, 7766, 7167, 9981, 1854, 23974, 16, 308, 468, 6611, 4709, ...
name = match.group(2) or match.group(3) or match.group(4)
name = (match.group(2) or match.group(3) or match.group(4)).lower()
def process_request(self, req): req.perm.assert_permission('TIMELINE_VIEW')
5ba352b7c255fdf545289907eb7a39025c9eb2d1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9317/5ba352b7c255fdf545289907eb7a39025c9eb2d1/web_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2293, 12, 2890, 16, 1111, 4672, 1111, 18, 12160, 18, 11231, 67, 9827, 2668, 4684, 5997, 67, 12145, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2293, 12, 2890, 16, 1111, 4672, 1111, 18, 12160, 18, 11231, 67, 9827, 2668, 4684, 5997, 67, 12145, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
self.cookedq = self.cookedq + buf
self.cookedq = self.cookedq + buf[0] self.sbdataq = self.sbdataq + buf[1]
def process_rawq(self): """Transfer from raw queue to cooked queue.
da347fd4e29f2109bb1abaa6c23333d301be04c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/da347fd4e29f2109bb1abaa6c23333d301be04c4/telnetlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 1899, 85, 12, 2890, 4672, 3536, 5912, 628, 1831, 2389, 358, 15860, 329, 2389, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 1899, 85, 12, 2890, 4672, 3536, 5912, 628, 1831, 2389, 358, 15860, 329, 2389, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return SendMsg(%s, strlen(buf), (long)(const char*)buf);''',
return SendMsg(%s, strlen(buf), (sptr_t)(const char*)buf);''',
'#ifdef SWIG\n wxString %s(int* OUTPUT);\n#else\n wxString GetCurLine(int* linePos=NULL);\n#endif',
b796ba39311830b11e375de10ca2378f501c5b8c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12725/b796ba39311830b11e375de10ca2378f501c5b8c/gen_iface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2946, 430, 536, 16392, 3047, 64, 82, 565, 7075, 780, 738, 87, 12, 474, 14, 11550, 20472, 82, 7, 12107, 64, 82, 565, 7075, 780, 968, 2408, 1670, 12, 474, 14, 980, 1616, 33, 8560, 20472, 82,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2946, 430, 536, 16392, 3047, 64, 82, 565, 7075, 780, 738, 87, 12, 474, 14, 11550, 20472, 82, 7, 12107, 64, 82, 565, 7075, 780, 968, 2408, 1670, 12, 474, 14, 980, 1616, 33, 8560, 20472, 82,...
wap = Zoo.insert().execute(Name='Wild Animal Park',
wap = Zoo.insert().execute(Name=u'Wild Animal Park',
def test_1a_populate(self): Zoo = metadata.tables['Zoo'] Animal = metadata.tables['Animal'] wap = Zoo.insert().execute(Name='Wild Animal Park', Founded=datetime.date(2000, 1, 1), # 59 can give rounding errors with divmod, which # AdapterFromADO needs to correct. Opens=datetime.time(8, 15, 59), LastEscape=datetime.date...
4d7f279d14ca4dd275de58ba11fe28a28a09dc46 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1074/4d7f279d14ca4dd275de58ba11fe28a28a09dc46/zoomark.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 21, 69, 67, 19936, 12, 2890, 4672, 2285, 5161, 273, 1982, 18, 9373, 3292, 62, 5161, 3546, 1922, 2840, 273, 1982, 18, 9373, 3292, 979, 2840, 3546, 225, 341, 438, 273, 2285, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21, 69, 67, 19936, 12, 2890, 4672, 2285, 5161, 273, 1982, 18, 9373, 3292, 62, 5161, 3546, 1922, 2840, 273, 1982, 18, 9373, 3292, 979, 2840, 3546, 225, 341, 438, 273, 2285, 51...
domain = context['request'].host[1],
domain = context['request'].getRequestHostname(),
def render_cloud(self, context): """Implements the first step of supporting the RSS 2.0 <cloud> tag. This element describes how the RSS aggregator can subscribe for instant notification of changes to this resource. """ return tag('cloud', domain = context['request'].host[1], port = context['requ...
b973edc62887c0fadedb9cdcdcaca74c6642bdc8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/b973edc62887c0fadedb9cdcdcaca74c6642bdc8/Feed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 7277, 12, 2890, 16, 819, 4672, 3536, 17516, 326, 1122, 2235, 434, 22930, 326, 31481, 576, 18, 20, 411, 7277, 34, 1047, 18, 1220, 930, 19605, 3661, 326, 31481, 20762, 848, 9129,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 7277, 12, 2890, 16, 819, 4672, 3536, 17516, 326, 1122, 2235, 434, 22930, 326, 31481, 576, 18, 20, 411, 7277, 34, 1047, 18, 1220, 930, 19605, 3661, 326, 31481, 20762, 848, 9129,...
if args[0]=='new' and len(args)>2: if args[1]=='template': templ = getTextFromPath(args[2]) input=len(args)>3 and extractAgrs(args[3:]) or {} txt = convertToTemplate(templ, input) print txt; print saveTextToFile(txt) elif args[1] =='real': templ = getTextFromPath(args[2]) input=len(args)>3 and extractAgrs(args[3:]) or...
def main(args): isInInstall = os.path.exists(pjoin(installPath, '.InRoot'))
b76197de28eb4f478f5b2c0f35c844107f41ff8c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14644/b76197de28eb4f478f5b2c0f35c844107f41ff8c/halicea.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 1968, 4672, 8048, 6410, 273, 1140, 18, 803, 18, 1808, 12, 84, 5701, 12, 5425, 743, 16, 2418, 382, 2375, 26112, 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, 2774, 12, 1968, 4672, 8048, 6410, 273, 1140, 18, 803, 18, 1808, 12, 84, 5701, 12, 5425, 743, 16, 2418, 382, 2375, 26112, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
name = 'PML to ZIP'
name = 'PML to PMLZ'
def customization_help(self, gui=False): return _('Character encoding for the input HTML files. Common choices ' 'include: cp1252, latin1, iso-8859-1 and utf-8.')
9cfd0b9a4fbba99f1fcf2c2706bc9482bf01f662 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/9cfd0b9a4fbba99f1fcf2c2706bc9482bf01f662/builtins.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1679, 1588, 67, 5201, 12, 2890, 16, 13238, 33, 8381, 4672, 327, 389, 2668, 7069, 2688, 364, 326, 810, 3982, 1390, 18, 5658, 7246, 296, 296, 6702, 30, 3283, 2138, 9401, 16, 30486, 21, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1679, 1588, 67, 5201, 12, 2890, 16, 13238, 33, 8381, 4672, 327, 389, 2668, 7069, 2688, 364, 326, 810, 3982, 1390, 18, 5658, 7246, 296, 296, 6702, 30, 3283, 2138, 9401, 16, 30486, 21, 1...
newargs.append(node) outputNodeIDs.append(node.GetID())
outputNodes.append(node)
def Execute ( self, *args, **keywords ): self.module = slicer.MRMLScene.CreateNodeByClass("vtkMRMLCommandLineModuleNode") self.module.SetModuleDescription(self.name) pargs = self.__FindPositionalArguments() #print 'Positional', str(pargs) #print 'Args', str(args) diff = len(pargs) - len(args) if diff < 0: self.module =...
ec89fcb4b00f44a172f3762faa70342aa9e14d50 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12580/ec89fcb4b00f44a172f3762faa70342aa9e14d50/Slicer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7903, 261, 365, 16, 380, 1968, 16, 2826, 11771, 262, 30, 365, 18, 2978, 273, 2020, 21349, 18, 23464, 1495, 14370, 18, 1684, 907, 30032, 2932, 11734, 79, 23464, 1495, 21391, 3120, 907, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7903, 261, 365, 16, 380, 1968, 16, 2826, 11771, 262, 30, 365, 18, 2978, 273, 2020, 21349, 18, 23464, 1495, 14370, 18, 1684, 907, 30032, 2932, 11734, 79, 23464, 1495, 21391, 3120, 907, 79...
if from_uom.factor_data: new_price = float(price) / from_uom.factor_data
if from_uom.factor >= 1.0: new_price = float(price) / from_uom.factor
def _compute_price(self, cursor, user, from_uom, price, to_uom=False): """ Convert price for given uom's. from_uom and to_uom should be browse records. """ if not from_uom or not price or not to_uom: return price if from_uom.category.id <> to_uom.category.id: return price if from_uom.factor_data: new_price = float(pric...
1c3eb8968b62e8d0dd32434c2ed5ad19c170cb2e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9285/1c3eb8968b62e8d0dd32434c2ed5ad19c170cb2e/uom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9200, 67, 8694, 12, 2890, 16, 3347, 16, 729, 16, 628, 67, 89, 362, 16, 6205, 16, 358, 67, 89, 362, 33, 8381, 4672, 3536, 4037, 6205, 364, 864, 582, 362, 1807, 18, 628, 67, 89,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9200, 67, 8694, 12, 2890, 16, 3347, 16, 729, 16, 628, 67, 89, 362, 16, 6205, 16, 358, 67, 89, 362, 33, 8381, 4672, 3536, 4037, 6205, 364, 864, 582, 362, 1807, 18, 628, 67, 89,...
bookmark = self.tree.activeFormattingElements.\ index(node) + 1 cite = node.parent if node.hasContent(): clone = node.cloneNode() self.tree.activeFormattingElements[ self.tree.activeFormattingElements.index(node)] = clone self.tree.openElements[ self.tree.openElements.index(node)] = clone node = clone
bookmark = (self.tree.activeFormattingElements.index(node) + 1) clone = node.cloneNode() self.tree.activeFormattingElements[ self.tree.activeFormattingElements.index(node)] = clone self.tree.openElements[ self.tree.openElements.index(node)] = clone node = clone
def endTagFormatting(self, token): """The much-feared adoption agency algorithm""" # http://www.whatwg.org/specs/web-apps/current-work/#adoptionAgency # XXX Better parseError messages appreciated. name = token["name"] while True: # Step 1 paragraph 1 afeElement = self.tree.elementInActiveFormattingElements( token["name...
7e7686e91270f27c65b22567b65f62d9d143d444 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4487/7e7686e91270f27c65b22567b65f62d9d143d444/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 23974, 12, 2890, 16, 1147, 4672, 3536, 1986, 9816, 17, 3030, 2258, 1261, 3482, 1737, 2075, 4886, 8395, 468, 1062, 2207, 5591, 18, 23770, 18197, 18, 3341, 19, 15115, 19, 4875, 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, 29765, 23974, 12, 2890, 16, 1147, 4672, 3536, 1986, 9816, 17, 3030, 2258, 1261, 3482, 1737, 2075, 4886, 8395, 468, 1062, 2207, 5591, 18, 23770, 18197, 18, 3341, 19, 15115, 19, 4875, 17, ...
if os.path.isdir(cfile) and not os.access(cfile, os.F_OK | os.R_OK | os.W_OK):
if os.path.isdir(cfile) and not os.access(cfile, os.F_OK | os.R_OK | os.W_OK):
def _findFiles(self, args, recursive = False, verbose = False): """ Takes a file name or folder path and grabs files inside them. Does not recurse more than one level (if a folder is supplied, it will list files within), unless recurse is True, in which case it will recursively find all files. return an array of file n...
6089d4d60f2dab84c6af9981c242684b162de38e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/6089d4d60f2dab84c6af9981c242684b162de38e/jamu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 2697, 12, 2890, 16, 833, 16, 5904, 273, 1083, 16, 3988, 273, 1083, 4672, 3536, 23004, 279, 585, 508, 578, 3009, 589, 471, 3087, 2038, 1390, 4832, 2182, 18, 9637, 486, 11502, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 2697, 12, 2890, 16, 833, 16, 5904, 273, 1083, 16, 3988, 273, 1083, 4672, 3536, 23004, 279, 585, 508, 578, 3009, 589, 471, 3087, 2038, 1390, 4832, 2182, 18, 9637, 486, 11502, ...
worker_percentage = float(working_workers / total_workers) * 100
if total_workers != 0: worker_percentage = float(working_workers / total_workers) * 100 else: worker_percentage = 0.0
def add_workingAgentPercentage(doc, gauge): workingAgentPercentage = doc.createElement( 'workingAgentPercentage') gauge.appendChild(workingAgentPercentage) working_workers = self.monitordb.get_worker_count(connected=True, busy=True) free_workers = self.monitordb.get_worker_count(connected=True, busy=False) disconnected...
e13a586ce9ebe9586304566948e670f1d5119e56 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e13a586ce9ebe9586304566948e670f1d5119e56/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 20478, 3630, 16397, 12, 2434, 16, 13335, 4672, 5960, 3630, 16397, 273, 997, 18, 2640, 1046, 12, 296, 20478, 3630, 16397, 6134, 13335, 18, 6923, 1763, 12, 20478, 3630, 16397, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 20478, 3630, 16397, 12, 2434, 16, 13335, 4672, 5960, 3630, 16397, 273, 997, 18, 2640, 1046, 12, 296, 20478, 3630, 16397, 6134, 13335, 18, 6923, 1763, 12, 20478, 3630, 16397, 13, ...
self.session.open(MessageBox,text = _("exceeds dual layer medium!"), type = MessageBox.TYPE_ERROR)
self.session.open(MessageBox,text = _("Exceeds dual layer medium!"), type = MessageBox.TYPE_ERROR)
def updateSize(self): size = self.project.size/(1024*1024) MAX_DL = self.project.MAX_DL-100 MAX_SL = self.project.MAX_SL-100 print "updateSize:", size, "MAX_DL:", MAX_DL, "MAX_SL:", MAX_SL if size > MAX_DL: percent = 100 * size / float(MAX_DL) self["space_label_dual"].text = "%d MB (%.2f%%)" % (size, percent) self["spa...
c2a699ea42993e9dfeff987239258defec4b5c8e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/c2a699ea42993e9dfeff987239258defec4b5c8e/TitleList.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 1225, 12, 2890, 4672, 963, 273, 365, 18, 4406, 18, 1467, 19, 12, 2163, 3247, 14, 2163, 3247, 13, 4552, 67, 8914, 273, 365, 18, 4406, 18, 6694, 67, 8914, 17, 6625, 4552, 67, 455...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1225, 12, 2890, 4672, 963, 273, 365, 18, 4406, 18, 1467, 19, 12, 2163, 3247, 14, 2163, 3247, 13, 4552, 67, 8914, 273, 365, 18, 4406, 18, 6694, 67, 8914, 17, 6625, 4552, 67, 455...
if self._connected:
if self._connectedAddr:
def write(self, datagram, addr=None): """Write a datagram.
23edc5b661490b32d25a539522b8339b4f2c8195 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/23edc5b661490b32d25a539522b8339b4f2c8195/udp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1150, 17049, 16, 3091, 33, 7036, 4672, 3536, 3067, 279, 1150, 17049, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1150, 17049, 16, 3091, 33, 7036, 4672, 3536, 3067, 279, 1150, 17049, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self._chunks = newchunks return self._encode_chunks()
return self._encode_chunks(newchunks)
def encode(self): """Encode a message header into an RFC-compliant format.
72c94b3fd5cb5b4e4e6675601c33ced00d7c25c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/72c94b3fd5cb5b4e4e6675601c33ced00d7c25c9/Header.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 12, 2890, 4672, 3536, 5509, 279, 883, 1446, 1368, 392, 8372, 17, 832, 18515, 740, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 12, 2890, 4672, 3536, 5509, 279, 883, 1446, 1368, 392, 8372, 17, 832, 18515, 740, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
outf = open('combo.d%d.space' % num_dimensions,'w')
if not name: name = 'combo.d%d_%dcluster.space' % (num_dimensions,len(pdfs)) outf = open(name,'w')
def combine_pdfs(pdfs): files = [open(f,"r") for f in pdfs] num_dimensions = len(files[0].next().split()) files[0].seek(0) outf = open('combo.d%d.space' % num_dimensions,'w') for f in files: outf.write(f.read()) f.close() outf.close()
e279f9ae79e410a21b77defbf764a169c46b9c49 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11171/e279f9ae79e410a21b77defbf764a169c46b9c49/run_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8661, 67, 7699, 87, 12, 7699, 87, 4672, 1390, 273, 306, 3190, 12, 74, 10837, 86, 7923, 364, 284, 316, 8169, 87, 65, 818, 67, 14797, 273, 562, 12, 2354, 63, 20, 8009, 4285, 7675, 4939...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8661, 67, 7699, 87, 12, 7699, 87, 4672, 1390, 273, 306, 3190, 12, 74, 10837, 86, 7923, 364, 284, 316, 8169, 87, 65, 818, 67, 14797, 273, 562, 12, 2354, 63, 20, 8009, 4285, 7675, 4939...
if geom_o is None:
if geom_o is None or geom_o == 'NULL':
def GetGeometryRef( self ): geom_o = _gdal.OGR_F_GetGeometryRef( self._o )
d8e55dda26898d443f24fc895f23769a8cb89ab7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10289/d8e55dda26898d443f24fc895f23769a8cb89ab7/ogr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 9823, 1957, 12, 365, 262, 30, 7364, 67, 83, 273, 389, 19016, 287, 18, 51, 6997, 67, 42, 67, 967, 9823, 1957, 12, 365, 6315, 83, 262, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 9823, 1957, 12, 365, 262, 30, 7364, 67, 83, 273, 389, 19016, 287, 18, 51, 6997, 67, 42, 67, 967, 9823, 1957, 12, 365, 6315, 83, 262, 2, -100, -100, -100, -100, -100, -100, -100,...
for other, disp in sorted(id_relations[main],key=lambda x: id_eid.get(x[0])):
for other,disp,groupCombatReaction in sorted(id_relations[main],key=lambda x: id_eid.get(x[0])):
def writeToText(self,textPath): """Exports faction relations to specified text file.""" id_relations,id_eid = self.id_relations, self.id_eid headFormat = '%s","%s","%s","%s","%s","%s","%s"\n' rowFormat = '"%s","%s","0x%06X","%s","%s","0x%06X","%s"\n' out = textPath.open('w') out.write(headFormat % (_('Main Eid'),_('Mai...
81923914b6989a5d38c47e7038a12ad2760d1ff6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/81923914b6989a5d38c47e7038a12ad2760d1ff6/bosh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12870, 1528, 12, 2890, 16, 955, 743, 4672, 3536, 15352, 284, 1128, 7467, 358, 1269, 977, 585, 12123, 612, 67, 15018, 16, 350, 67, 73, 350, 273, 365, 18, 350, 67, 15018, 16, 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, 12870, 1528, 12, 2890, 16, 955, 743, 4672, 3536, 15352, 284, 1128, 7467, 358, 1269, 977, 585, 12123, 612, 67, 15018, 16, 350, 67, 73, 350, 273, 365, 18, 350, 67, 15018, 16, 365, 18, ...
if not self.alist: return for a in self.alist: self.copybasepos = + a.molecule.basepos
for m in self.molecules: m._savedbasepos = + m.basepos
def savebasepos(self): """Copy current atom positions into an array. """ if not self.alist: return for a in self.alist: self.copybasepos = + a.molecule.basepos
a6978b56f1958d9730c466068a9d1a771bb2b5a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/a6978b56f1958d9730c466068a9d1a771bb2b5a9/assembly.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 1969, 917, 12, 2890, 4672, 3536, 2951, 783, 3179, 6865, 1368, 392, 526, 18, 3536, 282, 364, 312, 316, 365, 18, 81, 29466, 30, 312, 6315, 14077, 1969, 917, 273, 397, 312, 18, 1969...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1923, 1969, 917, 12, 2890, 4672, 3536, 2951, 783, 3179, 6865, 1368, 392, 526, 18, 3536, 282, 364, 312, 316, 365, 18, 81, 29466, 30, 312, 6315, 14077, 1969, 917, 273, 397, 312, 18, 1969...
return namespace["X"][0].replace("$PAGE", path[0])
return namespace["X"]["FINAL"][0].replace("$PAGE", path[0])
def lookup(path, url, flags): """ Resolve a path to a URL. Returns the resolved URL. path: ["space", "space", ..., "name"] url: "http://url.to.first.namespace.description/" flags: Python 2.3 Set of flags The following flags are understood: "no-case": ignore capitalization "no-punctuation": ignore punctuation "no-...
2081ec1d10adbcc411f6f8172a161a9d60ee9952 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2338/2081ec1d10adbcc411f6f8172a161a9d60ee9952/localnames.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3689, 12, 803, 16, 880, 16, 2943, 4672, 3536, 9910, 279, 589, 358, 279, 1976, 18, 225, 2860, 326, 4640, 1976, 18, 225, 589, 30, 8247, 2981, 3113, 315, 2981, 3113, 1372, 16, 315, 529, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3689, 12, 803, 16, 880, 16, 2943, 4672, 3536, 9910, 279, 589, 358, 279, 1976, 18, 225, 2860, 326, 4640, 1976, 18, 225, 589, 30, 8247, 2981, 3113, 315, 2981, 3113, 1372, 16, 315, 529, ...
""" fl_get_pixmap_pixmap(ob, p, m) -> pixmap ref.
""" fl_get_pixmap_pixmap(ob, p, m) -> pixmap
def fl_get_pixmap_pixmap(ob, p, m): """ fl_get_pixmap_pixmap(ob, p, m) -> pixmap ref. """ retval = _fl_get_pixmap_pixmap(ob, p, m) return retval
8765c710f695de392f6fc7c664c746ec98668b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/8765c710f695de392f6fc7c664c746ec98668b1d/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 588, 67, 14861, 1458, 67, 14861, 1458, 12, 947, 16, 293, 16, 312, 4672, 3536, 1183, 67, 588, 67, 14861, 1458, 67, 14861, 1458, 12, 947, 16, 293, 16, 312, 13, 317, 11871, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 588, 67, 14861, 1458, 67, 14861, 1458, 12, 947, 16, 293, 16, 312, 4672, 3536, 1183, 67, 588, 67, 14861, 1458, 67, 14861, 1458, 12, 947, 16, 293, 16, 312, 13, 317, 11871, 14...
if Stype.is_irreducible():
if Stype.is_atomic():
def get_branching_rule(Rtype, Stype, rule): """ INPUT: - ``R`` - the Weyl Character Ring of G - ``S`` - the Weyl Character Ring of H - ``rule`` - a string describing the branching rule as a map from the weight space of S to the weight space of R. """ r = Rtype.rank() s = Stype.rank() rdim = Rtype.root_system().ambie...
045ae65648950c8f9b978b7757a992c4c79694ea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/045ae65648950c8f9b978b7757a992c4c79694ea/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7500, 310, 67, 5345, 12, 54, 723, 16, 348, 723, 16, 1720, 4672, 3536, 12943, 30, 225, 300, 12176, 54, 10335, 300, 326, 678, 402, 80, 6577, 25463, 434, 611, 225, 300, 12176, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7500, 310, 67, 5345, 12, 54, 723, 16, 348, 723, 16, 1720, 4672, 3536, 12943, 30, 225, 300, 12176, 54, 10335, 300, 326, 678, 402, 80, 6577, 25463, 434, 611, 225, 300, 12176, ...
print "0x%08x: %x" % (self.EBP + (count / 2) - x, self.get_memory32(self.EBP + (count / 2) - x))
address = self.EBP + (count / 2) - x if not self.emu.memory.is_valid(address): return False print "0x%08x: %x" % (address, self.get_memory32(address))
def dump_stack(self, count=64): if not self.emu.memory.is_valid(self.ESP): return False print "ESP:" for x in xrange(0, count, 4): print "0x%08x: %x" % (self.ESP + (count / 2) - x, self.get_memory32(self.ESP + (count / 2) - x)) print "\n" if not self.emu.memory.is_valid(self.EBP): return False print "EBP:" for x in ...
57e1b5c29c6d5d78688daabe97f569163dbd744f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4179/57e1b5c29c6d5d78688daabe97f569163dbd744f/PyCPU.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 67, 3772, 12, 2890, 16, 1056, 33, 1105, 4672, 309, 486, 365, 18, 24995, 18, 7858, 18, 291, 67, 877, 12, 2890, 18, 41, 3118, 4672, 327, 1083, 225, 1172, 315, 41, 3118, 2773, 364...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 67, 3772, 12, 2890, 16, 1056, 33, 1105, 4672, 309, 486, 365, 18, 24995, 18, 7858, 18, 291, 67, 877, 12, 2890, 18, 41, 3118, 4672, 327, 1083, 225, 1172, 315, 41, 3118, 2773, 364...
fields = '/'.split(string)
fields = string.split('/')
def doRename(string): fields = '/'.split(string) visit = int(re.sub('o', '', fields[0])) print 'mkdi %s' % (visit) ccd = int(fields[1]) print 'mkdir %s' % (os.path.join(visit, ccd)) for amp in range(1,8): rename = newName(visit, 0, ccd, amp-1) print 'mv %s %s' % (string, rename)
bada565a48097f5eab757754876a74f0c897436e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6548/bada565a48097f5eab757754876a74f0c897436e/renameCfht.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 16019, 12, 1080, 4672, 1466, 273, 533, 18, 4939, 2668, 2473, 13, 225, 3757, 225, 273, 509, 12, 266, 18, 1717, 2668, 83, 2187, 10226, 1466, 63, 20, 22643, 1172, 296, 24816, 3211, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16019, 12, 1080, 4672, 1466, 273, 533, 18, 4939, 2668, 2473, 13, 225, 3757, 225, 273, 509, 12, 266, 18, 1717, 2668, 83, 2187, 10226, 1466, 63, 20, 22643, 1172, 296, 24816, 3211, 7...
'\'ir_translation_ltn\'')
'\'ir_translation_lang_type_name_index\'')
def _auto_init(self, cursor, module_name): super(Translation, self)._auto_init(cursor, module_name) cursor.execute('SELECT indexname FROM pg_indexes ' \ 'WHERE indexname = ' \ '\'ir_translation_ltn\'') if not cursor.rowcount: cursor.execute('CREATE INDEX ' \ 'ir_translation_ltn ' \ 'ON ir_translation (lang, type, name)...
7935737deaa1017c0b925c3f60b42b0e49556b8e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/7935737deaa1017c0b925c3f60b42b0e49556b8e/translation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6079, 67, 2738, 12, 2890, 16, 3347, 16, 1605, 67, 529, 4672, 2240, 12, 6717, 16, 365, 2934, 67, 6079, 67, 2738, 12, 9216, 16, 1605, 67, 529, 13, 3347, 18, 8837, 2668, 4803, 770,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6079, 67, 2738, 12, 2890, 16, 3347, 16, 1605, 67, 529, 4672, 2240, 12, 6717, 16, 365, 2934, 67, 6079, 67, 2738, 12, 9216, 16, 1605, 67, 529, 13, 3347, 18, 8837, 2668, 4803, 770,...
class OneToOne(unittest.TestCase):
class GraphHelpers(unittest.TestCase):
def message(): return ("-- Graphs %s ---\n" % name) + \ ("common (%i): %s\n" % (len(common), common)) + \ ("unexpected (%i): %s\n" % (len(unexpected), unexpected)) + \ ("unsatisfied (%i): %s\n" % (len(unsatisfied), unsatisfied))
4bfaaa67f4c7eda2bbb86883f90b09ceed200727 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11053/4bfaaa67f4c7eda2bbb86883f90b09ceed200727/graphs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 883, 13332, 327, 7566, 413, 5601, 87, 738, 87, 9948, 64, 82, 6, 738, 508, 13, 397, 521, 7566, 6054, 6142, 77, 4672, 738, 87, 64, 82, 6, 738, 261, 1897, 12, 6054, 3631, 2975, 3719, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 883, 13332, 327, 7566, 413, 5601, 87, 738, 87, 9948, 64, 82, 6, 738, 508, 13, 397, 521, 7566, 6054, 6142, 77, 4672, 738, 87, 64, 82, 6, 738, 261, 1897, 12, 6054, 3631, 2975, 3719, ...
self.tabCols.set(tabCols)
def LoadTabCfg(self): ##indent type radibuttons spaceIndent=idleConf.GetOption('main','Indent','use-spaces', default=1,type='bool') self.indentBySpaces.set(spaceIndent) ##indent sizes spaceNum=idleConf.GetOption('main','Indent','num-spaces', default=4,type='int') tabCols=idleConf.GetOption('main','Indent','tab-cols', d...
22cc40d7b201cf9033ebbca4fe11980daac2a344 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/22cc40d7b201cf9033ebbca4fe11980daac2a344/configDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4444, 5661, 8198, 12, 2890, 4672, 7541, 9355, 618, 6719, 495, 2644, 87, 3476, 7790, 33, 20390, 3976, 18, 967, 1895, 2668, 5254, 17023, 7790, 17023, 1202, 17, 9554, 2187, 805, 33, 21, 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, 4444, 5661, 8198, 12, 2890, 4672, 7541, 9355, 618, 6719, 495, 2644, 87, 3476, 7790, 33, 20390, 3976, 18, 967, 1895, 2668, 5254, 17023, 7790, 17023, 1202, 17, 9554, 2187, 805, 33, 21, 16,...
return self.trace_dispatch
def set_trace(self, call_depth=1): """Start debugging from the caller frame.
012f113a464af15e6ce8b226da475a23a61f446a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/012f113a464af15e6ce8b226da475a23a61f446a/IsolatedDebugger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 5129, 12, 2890, 16, 745, 67, 5979, 33, 21, 4672, 3536, 1685, 10450, 628, 326, 4894, 2623, 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, 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, 444, 67, 5129, 12, 2890, 16, 745, 67, 5979, 33, 21, 4672, 3536, 1685, 10450, 628, 326, 4894, 2623, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
"The part has been changed since the last save.\n"
"The part contains unsaved changes.\n"
def closeEvent(self,ce): if not self.assy.modified: ce.accept() return rc = QMessageBox.warning( self, self.name(), "The part has been changed since the last save.\n" "Do you want to save the changes before exiting?", "&Save", "&Discard", "Cancel", 0, # Enter == button 0 2 ) # Escape == button 2
c1cfa0a31ca5d9e14873b5fbcd2cb04f892ddc6d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/c1cfa0a31ca5d9e14873b5fbcd2cb04f892ddc6d/MWsemantics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 1133, 12, 2890, 16, 311, 4672, 225, 309, 486, 365, 18, 428, 93, 18, 7342, 30, 5898, 18, 9436, 1435, 327, 225, 4519, 273, 30728, 18, 8551, 12, 365, 16, 365, 18, 529, 9334, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 1133, 12, 2890, 16, 311, 4672, 225, 309, 486, 365, 18, 428, 93, 18, 7342, 30, 5898, 18, 9436, 1435, 327, 225, 4519, 273, 30728, 18, 8551, 12, 365, 16, 365, 18, 529, 9334, 315, ...
ret = "" for entry in self.entries: ret = ret + str(entry) + "\n" return ret
return ''.join([str(entry) + "\n" for entry in self.entries])
def __str__(self): ret = "" for entry in self.entries: ret = ret + str(entry) + "\n" return ret
abd73684845787e8ddae978ee818a3f71c02d5df /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/abd73684845787e8ddae978ee818a3f71c02d5df/robotparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 325, 273, 1408, 364, 1241, 316, 365, 18, 8219, 30, 325, 273, 325, 397, 609, 12, 4099, 13, 397, 1548, 82, 6, 327, 325, 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, 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, 1001, 701, 972, 12, 2890, 4672, 325, 273, 1408, 364, 1241, 316, 365, 18, 8219, 30, 325, 273, 325, 397, 609, 12, 4099, 13, 397, 1548, 82, 6, 327, 325, 2, -100, -100, -100, -100, -100,...
file.write(elTab+'rot_order="ROT_XYZ" xtype="C_PERSPECTIVE"')
file.write(elTab+'xtype="%s"' % 'C_PERSPECTIVE') file.write(elTab+'rot_order="ROT_XZY"')
def writeScene(file, scene): if scene.world.mist_settings.use_mist: fog = 'FOG_QUADRATIC' else: fog = 'FOG_NONE' file.write('\n\t<scene id="%s" camera="#%s" ambient_color="%s" fog_type="%s" background_color="%s">' % ( scene.name, scene.camera.name, rgbColor(scene.world.ambient_color), fog, rgbColor(scene.world.horizon...
01784087cb9de3dae5706938c2fdd540ba59265a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14241/01784087cb9de3dae5706938c2fdd540ba59265a/export_glge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 14370, 12, 768, 16, 9065, 4672, 309, 9065, 18, 18179, 18, 81, 376, 67, 4272, 18, 1202, 67, 81, 376, 30, 284, 717, 273, 296, 3313, 43, 67, 3500, 1880, 54, 11781, 11, 469, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 14370, 12, 768, 16, 9065, 4672, 309, 9065, 18, 18179, 18, 81, 376, 67, 4272, 18, 1202, 67, 81, 376, 30, 284, 717, 273, 296, 3313, 43, 67, 3500, 1880, 54, 11781, 11, 469, 30, ...
ssl=options.ssl,
ssl=SSL,
def main(): options = usage() monitor = Monitor(server=options.server, port=options.port, username=options.username, ssl=options.ssl, workers=options.workers, anonymous=options.anonymous, priority=options.priority, delay=options.delay, log_file=options.logfile, log_level=options.loglevel, pubkey_file=options.pubkey_fil...
5677c4d67052533ac39cfa521f83ecf2a5bbf41e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/5677c4d67052533ac39cfa521f83ecf2a5bbf41e/dsage_worker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 702, 273, 4084, 1435, 6438, 273, 14086, 12, 3567, 33, 2116, 18, 3567, 16, 1756, 33, 2116, 18, 655, 16, 2718, 33, 2116, 18, 5053, 16, 5832, 33, 6745, 16, 9798, 33, 2116, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 702, 273, 4084, 1435, 6438, 273, 14086, 12, 3567, 33, 2116, 18, 3567, 16, 1756, 33, 2116, 18, 655, 16, 2718, 33, 2116, 18, 5053, 16, 5832, 33, 6745, 16, 9798, 33, 2116, ...
if errs and errs != error_message1 and errs != error_message2:
if errs and errs not in ignorable_error_messages:
def checkBuiltProgram(self): # On windows, the binary may be called testtmp.exe. Check both if os.path.exists('link/testtmp.exe'): testtmp_exe = 'testtmp.exe' else: testtmp_exe = 'testtmp'
b297358ff93ded844d6d0a7847b38d58e00c64d1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7392/b297358ff93ded844d6d0a7847b38d58e00c64d1/testdistcc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 16409, 9459, 12, 2890, 4672, 468, 2755, 9965, 16, 326, 3112, 2026, 506, 2566, 1842, 5645, 18, 14880, 18, 225, 2073, 3937, 309, 1140, 18, 803, 18, 1808, 2668, 1232, 19, 3813, 5645, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16409, 9459, 12, 2890, 4672, 468, 2755, 9965, 16, 326, 3112, 2026, 506, 2566, 1842, 5645, 18, 14880, 18, 225, 2073, 3937, 309, 1140, 18, 803, 18, 1808, 2668, 1232, 19, 3813, 5645, ...
sign = self._sign ^ other._sign if not self and not other: if divmod: return context._raise_error(DivisionUndefined, '0 / 0', 1) return context._raise_error(DivisionUndefined, '0 / 0') if self._isinfinity() and other._isinfinity(): if not divmod:
if self._isinfinity() and other._isinfinity(): if divmod: return (context._raise_error(InvalidOperation, '(+-)INF // (+-)INF'), context._raise_error(InvalidOperation, '(+-)INF % (+-)INF'))
def _divide(self, other, divmod = 0, context=None): """Return a / b, to context.prec precision.
636a6b100fe6083388bc5315758326078abe65b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/636a6b100fe6083388bc5315758326078abe65b4/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2892, 831, 12, 2890, 16, 1308, 16, 26105, 273, 374, 16, 819, 33, 7036, 4672, 3536, 990, 279, 342, 324, 16, 358, 819, 18, 4036, 6039, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2892, 831, 12, 2890, 16, 1308, 16, 26105, 273, 374, 16, 819, 33, 7036, 4672, 3536, 990, 279, 342, 324, 16, 358, 819, 18, 4036, 6039, 18, 2, -100, -100, -100, -100, -100, -100, -...
f = open(modifiedFilename, "w")
f = open(modifiedFilename, "wt")
def OnSave(self, event): if self.demoModules.Exists(modModified): if self.demoModules.GetActiveID() == modOriginal: overwriteMsg = "You are about to overwrite an already existing modified copy\n" + \ "Do you want to continue?" dlg = wx.MessageDialog(self, overwriteMsg, "wxPython Demo", wx.YES_NO | wx.NO_DEFAULT| wx.ICO...
887a1bd93e986556d3118913cf1ca020a4077f74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/887a1bd93e986556d3118913cf1ca020a4077f74/Main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 4755, 12, 2890, 16, 871, 4672, 309, 365, 18, 27928, 7782, 18, 4002, 12, 1711, 4575, 4672, 309, 365, 18, 27928, 7782, 18, 967, 3896, 734, 1435, 422, 681, 8176, 30, 6156, 3332, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 4755, 12, 2890, 16, 871, 4672, 309, 365, 18, 27928, 7782, 18, 4002, 12, 1711, 4575, 4672, 309, 365, 18, 27928, 7782, 18, 967, 3896, 734, 1435, 422, 681, 8176, 30, 6156, 3332, 273...
print "line %d" % (i) print h
self.dprint("line %d" % (i)) self.dprint(h)
def getHistogramByFocalPlane(self, iter, nbins=500): """Generate a histogram using focal planes Fast for BIP and BIL, slow for BSQ. This is a slightly more complicated algorithm that uses focal planes to create the histogram. Because there's an extra python loop inside this method, the theoretical speed of this metho...
9cc281a7c8026f3be4d9fe9fd8900a244ecb43ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/9cc281a7c8026f3be4d9fe9fd8900a244ecb43ea/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7628, 376, 5553, 858, 42, 23735, 19505, 12, 2890, 16, 1400, 16, 4264, 2679, 33, 12483, 4672, 3536, 4625, 279, 8892, 1450, 284, 23735, 31634, 225, 9545, 364, 605, 2579, 471, 605, 2627, 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, 7628, 376, 5553, 858, 42, 23735, 19505, 12, 2890, 16, 1400, 16, 4264, 2679, 33, 12483, 4672, 3536, 4625, 279, 8892, 1450, 284, 23735, 31634, 225, 9545, 364, 605, 2579, 471, 605, 2627, 16...
share = (float(cat['allotment'])/float(saving_allotment_total)) * available diff = float(cat['minimum']) - float(cat['allotment_amount']) max_diff = float(cat['maximum']) - float(cat['balance'])
share = (Decimal(cat['allotment'])/saving_allotment_total) * available diff = Decimal(cat['minimum']) - Decimal(cat['allotment_amount']) max_diff = Decimal(cat['maximum']) - Decimal(cat['balance'])
def _distribute_to_saving_categories(self, t_date, available): "Distribute between saving categories that the current date is after the allotment date" saving_categories = normalize(self.cur.execute("select * from SavingCategory where active = 1 and allotment_date < :t_date and cast(balance as numeric) < cast(maximum a...
c1b405e7b76ee374ecb1e3fca3072ef6e0007414 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14271/c1b405e7b76ee374ecb1e3fca3072ef6e0007414/view.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2251, 887, 67, 869, 67, 87, 5339, 67, 8995, 12, 2890, 16, 268, 67, 712, 16, 2319, 4672, 315, 1669, 887, 3086, 12392, 6477, 716, 326, 783, 1509, 353, 1839, 326, 777, 352, 475, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2251, 887, 67, 869, 67, 87, 5339, 67, 8995, 12, 2890, 16, 268, 67, 712, 16, 2319, 4672, 315, 1669, 887, 3086, 12392, 6477, 716, 326, 783, 1509, 353, 1839, 326, 777, 352, 475, 15...
elif line.type == 'deduction':
elif line.type == 'deduction' or line.type == 'otherdeduct':
def verify_sheet(self, cr, uid, ids, context={}): move_pool = self.pool.get('account.move') movel_pool = self.pool.get('account.move.line') exp_pool = self.pool.get('hr.expense.expense') for slip in self.browse(cr,uid,ids): total_deduct = 0.0 line_ids = [] partner = False partner_id = False if not slip.employee_id....
e26e5e9af0fae9fd3a1b7e50f276ba6ad3721e73 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/e26e5e9af0fae9fd3a1b7e50f276ba6ad3721e73/hr_payroll.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 67, 8118, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 225, 3635, 67, 6011, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 8501, 6134, 7344, 941, 67, 6011, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 67, 8118, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 225, 3635, 67, 6011, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 8501, 6134, 7344, 941, 67, 6011, 273, ...
self.start = self.fp.tell()
if self.seekable: self.start = self.fp.tell()
def next(self): while self.readline(): pass if self.level > 1 or self.last: return 0 self.level = 0 self.last = 0 self.start = self.fp.tell() return 1
97274432c613953baf46fea6c3146111ef5c7c53 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/97274432c613953baf46fea6c3146111ef5c7c53/multifile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 12, 2890, 4672, 1323, 365, 18, 896, 1369, 13332, 1342, 309, 365, 18, 2815, 405, 404, 578, 365, 18, 2722, 30, 327, 374, 365, 18, 2815, 273, 374, 365, 18, 2722, 273, 374, 309, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 12, 2890, 4672, 1323, 365, 18, 896, 1369, 13332, 1342, 309, 365, 18, 2815, 405, 404, 578, 365, 18, 2722, 30, 327, 374, 365, 18, 2815, 273, 374, 365, 18, 2722, 273, 374, 309, 36...
set.union(hitlist_bibwrd)
set.union(hitset_bibwrd)
def search_in_bibwords(word, f, decompress=zlib.decompress): """Searches for 'word' inside bibwordsX table for field 'f' and returns hitlist of recIDs.""" set = HitList() # will hold output result set set_used = 0 # not-yet-used flag, to be able to circumvent set operations # deduce into which bibwordsX table we will s...
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, 1623, 67, 267, 67, 70, 495, 3753, 12, 1095, 16, 284, 16, 16824, 33, 94, 2941, 18, 323, 14706, 4672, 3536, 16294, 364, 296, 1095, 11, 4832, 25581, 3753, 60, 1014, 364, 652, 296, 74, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 267, 67, 70, 495, 3753, 12, 1095, 16, 284, 16, 16824, 33, 94, 2941, 18, 323, 14706, 4672, 3536, 16294, 364, 296, 1095, 11, 4832, 25581, 3753, 60, 1014, 364, 652, 296, 74, 1...
retval = _fl_popup_entry_set_text(PopupEntry, stext)
retval = _fl_popup_entry_set_text(pPopupEntry, stext)
def fl_popup_entry_set_text(pPopupEntry, text): """ fl_popup_entry_set_text(p1, txtstr) -> num. """ _fl_popup_entry_set_text = cfuncproto( load_so_libforms(), "fl_popup_entry_set_text", cty.c_int, [cty.POINTER(FL_POPUP_ENTRY), STRING], """int fl_popup_entry_set_text(FL_POPUP_ENTRY * p1, const char * p2) """) stext = c...
db6a08ef941394cf8c4ed51185c751970c67b215 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/db6a08ef941394cf8c4ed51185c751970c67b215/library.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 16086, 67, 4099, 67, 542, 67, 955, 12, 84, 13770, 1622, 16, 977, 4672, 3536, 1183, 67, 16086, 67, 4099, 67, 542, 67, 955, 12, 84, 21, 16, 6463, 701, 13, 317, 818, 18, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 16086, 67, 4099, 67, 542, 67, 955, 12, 84, 13770, 1622, 16, 977, 4672, 3536, 1183, 67, 16086, 67, 4099, 67, 542, 67, 955, 12, 84, 21, 16, 6463, 701, 13, 317, 818, 18, 353...
if base_url in self._externals_map:
if base_url in self._externals_map or base_url==u'/':
def _render_externals(self, prop): if not self._externals_map: for dummykey, value in self.config.options('svn:externals'): value = value.split() if len(value) != 2: self.env.warn("svn:externals entry %s doesn't contain " "a space-separated key value pair, skipping.", label) continue key, value = value self._externals_...
acf754a437d2b5f659a7123f27fe49062137536a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9317/acf754a437d2b5f659a7123f27fe49062137536a/svn_fs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 67, 338, 798, 1031, 12, 2890, 16, 2270, 4672, 309, 486, 365, 6315, 338, 798, 1031, 67, 1458, 30, 364, 9609, 856, 16, 460, 316, 365, 18, 1425, 18, 2116, 2668, 31505, 30, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 67, 338, 798, 1031, 12, 2890, 16, 2270, 4672, 309, 486, 365, 6315, 338, 798, 1031, 67, 1458, 30, 364, 9609, 856, 16, 460, 316, 365, 18, 1425, 18, 2116, 2668, 31505, 30, 33...
c.execute("""INSERT INTO ticket_change (ticket, time, author, field, oldvalue, newvalue) VALUES (%s, %s, %s, %s, %s, %s)""", ticket, time.strftime('%s'), author, 'comment', '', comment)
c.execute("""INSERT INTO ticket_change (ticket, time, author, field, oldvalue, newvalue) VALUES (%s, %s, %s, %s, %s, %s)""", (ticket, time.strftime('%s'), author, 'comment', '', comment))
def addTicketComment(self, ticket, time, author, value): comment = value.encode('utf-8') if PREFORMAT_COMMENTS: comment = '{{{\n%s\n}}}' % comment
d0a718cdc641402f4871e728629c7ce1e81b3158 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/d0a718cdc641402f4871e728629c7ce1e81b3158/bugzilla2trac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 13614, 4469, 12, 2890, 16, 9322, 16, 813, 16, 2869, 16, 460, 4672, 2879, 273, 460, 18, 3015, 2668, 3158, 17, 28, 6134, 225, 309, 7071, 7254, 67, 12200, 55, 30, 2879, 273, 2292, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 13614, 4469, 12, 2890, 16, 9322, 16, 813, 16, 2869, 16, 460, 4672, 2879, 273, 460, 18, 3015, 2668, 3158, 17, 28, 6134, 225, 309, 7071, 7254, 67, 12200, 55, 30, 2879, 273, 2292, ...
print lStr, bStr, troveName
def getMetadata(self, troveList, label, cacheFile = None, cacheOnly = False, saveOnly = False): metadata = {} if cacheFile and not saveOnly: try: print "opening cache" cacheFp = open(cacheFile, "r") cache = pickle.load(cacheFp) cacheFp.close() except IOError, EOFError: print "got an error, returning" if cacheOnly: retu...
08f4b50b7b59c04afbfa7e1bc89323cb1d41ea4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/08f4b50b7b59c04afbfa7e1bc89323cb1d41ea4a/conaryclient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11159, 12, 2890, 16, 23432, 537, 682, 16, 1433, 16, 18748, 273, 599, 16, 1247, 3386, 273, 1083, 16, 1923, 3386, 273, 1083, 4672, 1982, 273, 2618, 309, 18748, 471, 486, 1923, 3386, 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, 11159, 12, 2890, 16, 23432, 537, 682, 16, 1433, 16, 18748, 273, 599, 16, 1247, 3386, 273, 1083, 16, 1923, 3386, 273, 1083, 4672, 1982, 273, 2618, 309, 18748, 471, 486, 1923, 3386, 30, ...
from distutils.fancy_getopt import longopt_xlate print msg + ":" for opt in self.user_options: opt_name = opt[0] if opt_name[-1] == "=": opt_name = opt_name[0:-1] opt_name = string.translate (opt_name, longopt_xlate) val = getattr (self, opt_name) print " %s: %s" % (opt_name, val)
if DEBUG: from distutils.fancy_getopt import longopt_xlate print msg + ":" for opt in self.user_options: opt_name = opt[0] if opt_name[-1] == "=": opt_name = opt_name[0:-1] opt_name = string.translate (opt_name, longopt_xlate) val = getattr (self, opt_name) print " %s: %s" % (opt_name, val)
def dump_dirs (self, msg): from distutils.fancy_getopt import longopt_xlate print msg + ":" for opt in self.user_options: opt_name = opt[0] if opt_name[-1] == "=": opt_name = opt_name[0:-1] opt_name = string.translate (opt_name, longopt_xlate) val = getattr (self, opt_name) print " %s: %s" % (opt_name, val)
74eb5fd061120ffcf9963116d64385944dc765ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/74eb5fd061120ffcf9963116d64385944dc765ec/install.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 67, 8291, 261, 2890, 16, 1234, 4672, 628, 2411, 5471, 18, 74, 12514, 67, 588, 3838, 1930, 1525, 3838, 67, 18402, 340, 1172, 1234, 397, 6153, 364, 2153, 316, 365, 18, 1355, 67, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 67, 8291, 261, 2890, 16, 1234, 4672, 628, 2411, 5471, 18, 74, 12514, 67, 588, 3838, 1930, 1525, 3838, 67, 18402, 340, 1172, 1234, 397, 6153, 364, 2153, 316, 365, 18, 1355, 67, 21...
if f in copy:
if f in copy or f in copyto:
def trydiff(repo, revs, ctx1, ctx2, modified, added, removed, copy, getfilectx, opts, losedatafn): date1 = util.datestr(ctx1.date()) man1 = ctx1.manifest() gone = set() gitmode = {'l': '120000', 'x': '100755', '': '100644'} if opts.git: revs = None for f in sorted(modified + added + removed): to = None tn = None do...
eeb677500aa08fa997ea4d440c880d28d327f1db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/eeb677500aa08fa997ea4d440c880d28d327f1db/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 775, 5413, 12, 7422, 16, 5588, 87, 16, 1103, 21, 16, 1103, 22, 16, 4358, 16, 3096, 16, 3723, 16, 1610, 16, 336, 768, 5900, 16, 1500, 16, 437, 730, 396, 4293, 4672, 225, 1509, 21, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 775, 5413, 12, 7422, 16, 5588, 87, 16, 1103, 21, 16, 1103, 22, 16, 4358, 16, 3096, 16, 3723, 16, 1610, 16, 336, 768, 5900, 16, 1500, 16, 437, 730, 396, 4293, 4672, 225, 1509, 21, 2...
Thread.sleep(500)
Thread.sleep(300)
def run(self, args, javaHome, jythonHome, jythonOpts): ''' creates a start script, executes it and captures the output ''' (starterPath, outfilePath) = self.writeStarter(args, javaHome, jythonHome, jythonOpts) try: process = Runtime.getRuntime().exec(starterPath) stdoutMonitor = StdoutMonitor(process) stderrMonitor = S...
4320c85dd5cf917497553b8c8a6db635686052e3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6753/4320c85dd5cf917497553b8c8a6db635686052e3/test_bat_jy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 833, 16, 2252, 8684, 16, 525, 18490, 8684, 16, 525, 18490, 5476, 4672, 9163, 3414, 279, 787, 2728, 16, 11997, 518, 471, 21922, 326, 876, 9163, 261, 10983, 387, 743, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 833, 16, 2252, 8684, 16, 525, 18490, 8684, 16, 525, 18490, 5476, 4672, 9163, 3414, 279, 787, 2728, 16, 11997, 518, 471, 21922, 326, 876, 9163, 261, 10983, 387, 743, ...
current, later = Set([p for p, dep, data in packages]), Set()
current, later = set([p for p, dep, data in packages]), set()
def upgrade_graph(graph, cr, module_list, force=None): if force is None: force = [] packages = [] len_graph = len(graph) for module in module_list: mod_path = get_module_path(module) terp_file = get_module_resource(module, '__terp__.py') if not mod_path or not terp_file: cr.execute("update ir_module_module set state=%s...
5d881b19530b13f14fa5b067e4521b75506304b5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/5d881b19530b13f14fa5b067e4521b75506304b5/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8400, 67, 4660, 12, 4660, 16, 4422, 16, 1605, 67, 1098, 16, 2944, 33, 7036, 4672, 309, 2944, 353, 599, 30, 2944, 273, 5378, 5907, 273, 5378, 562, 67, 4660, 273, 562, 12, 4660, 13, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8400, 67, 4660, 12, 4660, 16, 4422, 16, 1605, 67, 1098, 16, 2944, 33, 7036, 4672, 309, 2944, 353, 599, 30, 2944, 273, 5378, 5907, 273, 5378, 562, 67, 4660, 273, 562, 12, 4660, 13, 36...
fval = squeeze(apply(func, (x,)+args)) _powell_funcalls = 1
fval = squeeze(func(x))
def fmin_powell(func, x0, args=(), xtol=1e-4, ftol=1e-4, maxiter=None, maxfun=None, full_output=0, disp=1, retall=0): """Minimize a function using modified Powell's method. Description: Uses a modification of Powell's method to find the minimum of a function of N variables Inputs: func -- the Python function or met...
926e615eebcd9f2ca3373b1887f74b532b10bda4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/926e615eebcd9f2ca3373b1887f74b532b10bda4/optimize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 1154, 67, 23509, 1165, 12, 644, 16, 619, 20, 16, 833, 33, 9334, 619, 3490, 33, 21, 73, 17, 24, 16, 284, 3490, 33, 21, 73, 17, 24, 16, 25743, 33, 7036, 16, 943, 12125, 33, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 1154, 67, 23509, 1165, 12, 644, 16, 619, 20, 16, 833, 33, 9334, 619, 3490, 33, 21, 73, 17, 24, 16, 284, 3490, 33, 21, 73, 17, 24, 16, 25743, 33, 7036, 16, 943, 12125, 33, 70...
of $(O_K/I)^*$ (with generators) and not the special \emph{bid} structure.
of `(O_K/I)^*` (with generators) and not the special ``bid`` structure.
def idealstar(self, flag=1): r""" Returns the finite abelian group $(O_K/I)^*$, where I is the ideal self of the number field K, and $O_K$ is the ring of integers of K.
ef0819690a4fd01b3d6fba60378c1b5b3e6c0cda /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/ef0819690a4fd01b3d6fba60378c1b5b3e6c0cda/number_field_ideal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23349, 10983, 12, 2890, 16, 2982, 33, 21, 4672, 436, 8395, 2860, 326, 25922, 1223, 292, 2779, 1041, 27488, 51, 67, 47, 19, 45, 13, 66, 26788, 16, 1625, 467, 353, 326, 23349, 365, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23349, 10983, 12, 2890, 16, 2982, 33, 21, 4672, 436, 8395, 2860, 326, 25922, 1223, 292, 2779, 1041, 27488, 51, 67, 47, 19, 45, 13, 66, 26788, 16, 1625, 467, 353, 326, 23349, 365, 434, ...
print todo_id, self.previous_todo
def wait_for(self, todo_id): """ Define the todo that this item will wait to be completed to appears in list_items or the main_view.
7d90325a23efbc244ee2534545b39eb199452fa3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6735/7d90325a23efbc244ee2534545b39eb199452fa3/tdd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 67, 1884, 12, 2890, 16, 10621, 67, 350, 4672, 3536, 13184, 326, 10621, 716, 333, 761, 903, 2529, 358, 506, 5951, 358, 14606, 316, 666, 67, 3319, 578, 326, 2774, 67, 1945, 18, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2529, 67, 1884, 12, 2890, 16, 10621, 67, 350, 4672, 3536, 13184, 326, 10621, 716, 333, 761, 903, 2529, 358, 506, 5951, 358, 14606, 316, 666, 67, 3319, 578, 326, 2774, 67, 1945, 18, 2, ...
EXAMPLES: sage:
def _hecke_images(self, i, v): """ Return images of the $i$-th standard basis vector under the Hecke operators $T_p$ for all integers in $v$.
ac6283b610545b682cfb92b06bc556afb07daf4a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/ac6283b610545b682cfb92b06bc556afb07daf4a/ambient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1129, 73, 67, 7369, 12, 2890, 16, 277, 16, 331, 4672, 3536, 2000, 4602, 434, 326, 271, 77, 8, 17, 451, 4529, 10853, 3806, 3613, 326, 670, 762, 73, 12213, 271, 56, 67, 84, 8, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1129, 73, 67, 7369, 12, 2890, 16, 277, 16, 331, 4672, 3536, 2000, 4602, 434, 326, 271, 77, 8, 17, 451, 4529, 10853, 3806, 3613, 326, 670, 762, 73, 12213, 271, 56, 67, 84, 8, 3...
'count_unit': cases, 'count_item': loose,
'count_cases': cases, 'count_items': loose,
def take_inventory(request, date): date = parse_date(date) show_all= request.GET.has_key('all') # If a POST request was submitted, apply any updates to the inventory data # in the database before rendering the response. if request.method == 'POST': if request.POST.get('session_key') != get_session_key(request): raise...
1c5db19cabddea9cd7664de10ae3719d6460746b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8066/1c5db19cabddea9cd7664de10ae3719d6460746b/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4862, 67, 26024, 12, 2293, 16, 1509, 4672, 1509, 273, 1109, 67, 712, 12, 712, 13, 225, 2405, 67, 454, 33, 590, 18, 3264, 18, 5332, 67, 856, 2668, 454, 6134, 225, 468, 971, 279, 5485,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4862, 67, 26024, 12, 2293, 16, 1509, 4672, 1509, 273, 1109, 67, 712, 12, 712, 13, 225, 2405, 67, 454, 33, 590, 18, 3264, 18, 5332, 67, 856, 2668, 454, 6134, 225, 468, 971, 279, 5485,...
def SetPanose( self, value ) :
def SetPanose(self, value):
def SetPanose( self, value ) : self.Panose = value return self
13865299ef9bc077be9a5eaa4326b7a30307d828 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3330/13865299ef9bc077be9a5eaa4326b7a30307d828/PropertySets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 4069, 2584, 12, 2890, 16, 460, 4672, 365, 18, 4069, 2584, 273, 460, 327, 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, 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, 1000, 4069, 2584, 12, 2890, 16, 460, 4672, 365, 18, 4069, 2584, 273, 460, 327, 365, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
ac = self.__component.owner()
ac = parent.owner()
def __init__ (self, component, **kw): self.__component = component btns = kw['binding_target_namespace'] tns = None try: tns = self.__component.targetNamespace() except: tns = btns is_in_binding = (btns == tns) or (tns is None) name = self.__component.nameInBinding() if name is None: global UniqueInBinding
bb43004c7bab1fa8ef1dbf2bc82949f42db13e68 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/bb43004c7bab1fa8ef1dbf2bc82949f42db13e68/generate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 1794, 16, 2826, 9987, 4672, 365, 16186, 4652, 273, 1794, 10921, 2387, 273, 5323, 3292, 7374, 67, 3299, 67, 4937, 3546, 268, 2387, 273, 599, 775, 30, 268, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 261, 2890, 16, 1794, 16, 2826, 9987, 4672, 365, 16186, 4652, 273, 1794, 10921, 2387, 273, 5323, 3292, 7374, 67, 3299, 67, 4937, 3546, 268, 2387, 273, 599, 775, 30, 268, ...
scp = self._make_scp_cmd(remote_source, local_dest)
scp = self._make_scp_cmd([remote_source], local_dest)
def get_file(self, source, dest, delete_dest=False): """ Copy files from the remote host to a local path.
664339d283d0ac31a5eaab7be6143031f519d4e7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/664339d283d0ac31a5eaab7be6143031f519d4e7/abstract_ssh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 768, 12, 2890, 16, 1084, 16, 1570, 16, 1430, 67, 10488, 33, 8381, 4672, 3536, 5631, 1390, 628, 326, 2632, 1479, 358, 279, 1191, 589, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 768, 12, 2890, 16, 1084, 16, 1570, 16, 1430, 67, 10488, 33, 8381, 4672, 3536, 5631, 1390, 628, 326, 2632, 1479, 358, 279, 1191, 589, 18, 2, -100, -100, -100, -100, -100, -100,...
collapse = len(modules) - num_toplevels > num_toplevels
collapse = len(modules) - num_toplevels < num_toplevels
def finish(self): self.info(bold('writing additional files...'), nonl=1)
abddd960932cec9270a00a881f562a604ba9bbf9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5532/abddd960932cec9270a00a881f562a604ba9bbf9/builder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4076, 12, 2890, 4672, 365, 18, 1376, 12, 16390, 2668, 14345, 3312, 1390, 7821, 3631, 1661, 80, 33, 21, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4076, 12, 2890, 4672, 365, 18, 1376, 12, 16390, 2668, 14345, 3312, 1390, 7821, 3631, 1661, 80, 33, 21, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
def _params_to_vars(self, params, defaults): vars = [] if defaults == None: defaults = [] for i in range(len(params)): defaultindex = i-(len(params)-len(defaults)) if type(params[i]) == _StringType: vars.append(Var(params[i])) if defaultindex >= 0: vars[-1].set_default(`defaults[defaultindex]`) elif defaultindex >= 0: ...
def _params_to_vars(self, params, defaults): vars = [] if defaults == None: defaults = [] for i in range(len(params)): defaultindex = i-(len(params)-len(defaults)) if type(params[i]) == _StringType: vars.append(Var(params[i])) if defaultindex >= 0: vars[-1].set_default(`defaults[defaultindex]`) elif defaultindex >= 0: ...
788f0e25df4ecb97c21bbf49a8b83a43099bb789 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/788f0e25df4ecb97c21bbf49a8b83a43099bb789/objdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2010, 67, 869, 67, 4699, 12, 2890, 16, 859, 16, 3467, 4672, 4153, 273, 5378, 309, 3467, 422, 599, 30, 3467, 273, 5378, 364, 277, 316, 1048, 12, 1897, 12, 2010, 3719, 30, 805, 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, 389, 2010, 67, 869, 67, 4699, 12, 2890, 16, 859, 16, 3467, 4672, 4153, 273, 5378, 309, 3467, 422, 599, 30, 3467, 273, 5378, 364, 277, 316, 1048, 12, 1897, 12, 2010, 3719, 30, 805, 16...
def check4x4border(*args): return _micropolisengine.Micropolis_check4x4border(*args)
def check4x4border(*args): return _micropolisengine.Micropolis_check4x4border(*args)
6a61e7c91d7cad2ac82ba6753dd74db43bb2586f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10557/6a61e7c91d7cad2ac82ba6753dd74db43bb2586f/micropolisengine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 24, 92, 24, 8815, 30857, 1968, 4672, 327, 389, 27593, 1764, 355, 291, 8944, 18, 49, 335, 1764, 355, 291, 67, 1893, 24, 92, 24, 8815, 30857, 1968, 13, 2, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 866, 24, 92, 24, 8815, 30857, 1968, 4672, 327, 389, 27593, 1764, 355, 291, 8944, 18, 49, 335, 1764, 355, 291, 67, 1893, 24, 92, 24, 8815, 30857, 1968, 13, 2, -100, -100, -100, -100, ...
fromJID = jid.internJID(iq["from"]).full() activateJID = jid.internJID(str(iq.query.activate)).full() sid = hashSID(iq.query["sid"], fromJID, activateJID) log.msg("Activation requested for: ", sid) if sid in self.pendingConns:
try: fromJID = jid.internJID(iq["from"]).full() activateJID = jid.internJID(unicode(iq.query.activate)).full() sid = hashSID( iq.query["sid"].encode("utf-8"), fromJID.encode("utf-8"), activateJID.encode("utf-8") ) log.msg("Activation requested for: ", sid)
def onActivateStream(self, iq): fromJID = jid.internJID(iq["from"]).full() activateJID = jid.internJID(str(iq.query.activate)).full() sid = hashSID(iq.query["sid"], fromJID, activateJID) log.msg("Activation requested for: ", sid)
ac6a0727c2479ce891eca6cb48835f7c9a2a7465 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5317/ac6a0727c2479ce891eca6cb48835f7c9a2a7465/proxy65.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 21370, 1228, 12, 2890, 16, 24288, 4672, 628, 46, 734, 273, 14201, 18, 267, 798, 46, 734, 12, 18638, 9614, 2080, 11929, 2934, 2854, 1435, 10235, 46, 734, 273, 14201, 18, 267, 798, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21370, 1228, 12, 2890, 16, 24288, 4672, 628, 46, 734, 273, 14201, 18, 267, 798, 46, 734, 12, 18638, 9614, 2080, 11929, 2934, 2854, 1435, 10235, 46, 734, 273, 14201, 18, 267, 798, ...
f = zeros(self.f.shape)
f = zeros(self.f.shape,type=Float32)
def map1(self,func): """Return a Formex where each coordinate is mapped by a 1-D function.
3bbb135db1788935a14de64d8eea8f3289db47da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2499/3bbb135db1788935a14de64d8eea8f3289db47da/formex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 852, 21, 12, 2890, 16, 644, 4672, 3536, 990, 279, 2748, 338, 1625, 1517, 7799, 353, 5525, 635, 279, 404, 17, 40, 445, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 852, 21, 12, 2890, 16, 644, 4672, 3536, 990, 279, 2748, 338, 1625, 1517, 7799, 353, 5525, 635, 279, 404, 17, 40, 445, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
notification = NotificationClient() result = notification.sendMail(self.addressTo,self.subject,body,self.addressFrom,localAttempt=False)
if self.addressTo and self.addressFrom: notification = NotificationClient() result = notification.sendMail(self.addressTo,self.subject,body,self.addressFrom,localAttempt=False)
def _lookForCE(self):
99e12326aacb2cd726a0042e98a3e57f85c85c04 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99e12326aacb2cd726a0042e98a3e57f85c85c04/CE2CSAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7330, 1290, 1441, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7330, 1290, 1441, 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, -1...