rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
sequencelengths
256
256
attention_mask
sequencelengths
256
256
labels
sequencelengths
128
128
if len(params.keys()) == ['isbn']: isbn_redirect(params['isbn'])
if i.keys() == ['isbn']: isbn_redirect(i.isbn)
def GET(self): i = web.input(author_key=[], language=[], first_publish_year=[], publisher_facet=[], subject_facet=[], person_facet=[], place_facet=[], time_facet=[]) params = self.clean_inputs(i)
5f024882651fcbd2cf1a65719d808c5d3990eff2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/5f024882651fcbd2cf1a65719d808c5d3990eff2/code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4978, 12, 2890, 4672, 277, 273, 3311, 18, 2630, 12, 4161, 67, 856, 22850, 6487, 2653, 22850, 6487, 1122, 67, 6543, 67, 6874, 22850, 6487, 12855, 67, 21568, 22850, 6487, 3221, 67, 21568, 22850, 6487, 6175, 67, 21568, 22850, 6487, 3166, 67, 21568, 22850, 6487, 813, 67, 21568, 22850, 5717, 859, 273, 365, 18, 6200, 67, 10029, 12, 77, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 12855, 67, 21568, 22850, 6487, 3221, 67, 21568, 22850, 6487, 6175, 67, 21568, 22850, 6487, 3166, 67, 21568, 22850, 6487, 813, 67, 21568, 22850, 5717, 859, 273, 365, 18, 6200, 67, 10029, 12, 77, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
address = self.__getaddr('TO:', arg)
address = self.__getaddr('TO:', arg) if arg else None
def smtp_RCPT(self, arg): print >> DEBUGSTREAM, '===> RCPT', arg if not self.__mailfrom: self.push('503 Error: need MAIL command') return address = self.__getaddr('TO:', arg) if not address: self.push('501 Syntax: RCPT TO: <address>') return self.__rcpttos.append(address) print >> DEBUGSTREAM, 'recips:', self.__rcpttos self.push('250 Ok')
38965448416a6c0413ced7daa571e1d25dac08d0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/38965448416a6c0413ced7daa571e1d25dac08d0/smtpd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17660, 67, 11529, 1856, 12, 2890, 16, 1501, 4672, 1172, 1671, 6369, 13693, 16, 296, 631, 9207, 24206, 1856, 2187, 1501, 309, 486, 365, 16186, 4408, 2080, 30, 365, 18, 6206, 2668, 3361, 23, 1068, 30, 1608, 490, 6575, 1296, 6134, 327, 1758, 273, 365, 16186, 588, 4793, 2668, 4296, 30, 2187, 1501, 13, 309, 1501, 469, 599, 309, 486, 1758, 30, 365, 18, 6206, 2668, 9172, 11517, 30, 24206, 1856, 8493, 30, 411, 2867, 1870, 13, 327, 365, 16186, 1310, 337, 14627, 18, 6923, 12, 2867, 13, 1172, 1671, 6369, 13693, 16, 296, 266, 3449, 87, 30, 2187, 365, 16186, 1310, 337, 14627, 365, 18, 6206, 2668, 26520,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 17660, 67, 11529, 1856, 12, 2890, 16, 1501, 4672, 1172, 1671, 6369, 13693, 16, 296, 631, 9207, 24206, 1856, 2187, 1501, 309, 486, 365, 16186, 4408, 2080, 30, 365, 18, 6206, 2668, 3361, 23, 1068, 30, 1608, 490, 6575, 1296, 6134, 327, 1758, 273, 365, 16186, 588, 4793, 2668, 4296, 30, 2187, 1501, 13, 309, 1501, 469, 599, 309, 486, 1758, 30, 365, 18, 6206, 2668, 9172, 11517, 30, 24206, 1856, 8493, 30, 411, 2867, 1870, 13, 327, 365, 16186, 1310, 337, 14627, 18, 6923, 12, 2867, 13, 1172, 1671, 6369, 13693, 16, 296, 266, 3449, 87, 30, 2187, 365, 16186, 1310, 337, 14627, 365, 18, 6206, 2668, 26520, 16154, 6134, 2, -100, -100, -100, -100, -100, -100, -100 ]
parser.add_option("-t", "--test", action="store_true", dest="log_stderr", default=False)
parser.add_option("-t", "--test", action="store_true", dest="test_mode", default=False) parser.add_option("-d", "--debug-print", action="store_true", dest="log_stderr", default=False)
def getOptionParser(self): from optparse import OptionParser
79b3c764f1f9c01efa2318456f7eb2435f148aa9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/79b3c764f1f9c01efa2318456f7eb2435f148aa9/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5651, 2678, 12, 2890, 4672, 628, 2153, 2670, 1930, 18862, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5651, 2678, 12, 2890, 4672, 628, 2153, 2670, 1930, 18862, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.name = toklist[1] self.daemon = toklist[1]
self.name = utils.stripquote(toklist[1]) self.daemon = utils.stripquote(toklist[1])
def __init__(self, toklist):
62360427ecbee9f64f0c27e8796b9ac469d8bc47 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3643/62360427ecbee9f64f0c27e8796b9ac469d8bc47/directive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 946, 1098, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 946, 1098, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
data = cPickle.dumps(value, self.binary)
data = _dumps(value, self.protocol)
def __append(self, value, txn=None): data = cPickle.dumps(value, self.binary) return self.db.append(data, txn)
b7de61bf49a6659663f54be6387c3445a40702d4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/b7de61bf49a6659663f54be6387c3445a40702d4/dbshelve.py
[ 1, 8585, 326, 22398, 316, 326, 981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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6923, 12, 2890, 16, 460, 16, 7827, 33, 7036, 4672, 501, 273, 389, 13302, 1121, 12, 1132, 16, 365, 18, 8373, 13, 327, 365, 18, 1966, 18, 6923, 12, 892, 16, 7827, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
fndir = os.path.dirname(filename) if os.path.isabs(filename): coverpath = fndir
self.donothing = 1 def run(self, cmd): import __main__ dict = __main__.__dict__ if not self.donothing: sys.settrace(self.globaltrace) try: exec cmd in dict, dict finally: if not self.donothing: sys.settrace(None) def runctx(self, cmd, globals=None, locals=None): if globals is None: globals = {} if locals is None: locals = {} if not self.donothing: sys.settrace(gself.lobaltrace) try: exec cmd in dict, dict finally: if not self.donothing: sys.settrace(None) def runfunc(self, func, *args, **kw): result = None if not self.donothing: sys.settrace(self.globaltrace) try: result = apply(func, args, kw) finally: if not self.donothing: sys.settrace(None) return result def globaltrace_countfuncs(self, frame, why, arg): """ Handles `call' events (why == 'call') and adds the (filename, modulename, funcname,) to the self._calledfuncs dict. """ if why == 'call': (filename, lineno, funcname, context, lineindex,) = inspect.getframeinfo(frame, 0) if filename: modulename = inspect.getmodulename(filename)
def create_results_log(results, dirname = ".", show_missing = 1, save_counts = 0, summary = 0, coverdir = None): import re # turn the counts data ("(filename, lineno) = count") into something # accessible on a per-file basis per_file = {} for filename, lineno in results.counts.keys(): lines_hit = per_file[filename] = per_file.get(filename, {}) lines_hit[lineno] = results.counts[(filename, lineno)] # try and merge existing counts and modules file from dirname try: counts = marshal.load(open(os.path.join(dirname, "counts"))) modules = marshal.load(open(os.path.join(dirname, "modules"))) results.update(results.__class__(counts, modules)) except IOError: pass # there are many places where this is insufficient, like a blank # line embedded in a multiline string. blank = re.compile(r'^\s*(#.*)?$') # accumulate summary info, if needed sums = {} # generate file paths for the coverage files we are going to write... fnlist = [] tfdir = tempfile.gettempdir() for key in per_file.keys(): filename = key # skip some "files" we don't care about... if filename == "<string>": continue # are these caused by code compiled using exec or something? if filename.startswith(tfdir): continue modulename = os.path.split(results.modules[key])[1] if filename.endswith(".pyc") or filename.endswith(".pyo"): filename = filename[:-1] if coverdir: listfilename = os.path.join(coverdir, modulename + ".cover") else: # XXX this is almost certainly not portable!!! fndir = os.path.dirname(filename) if os.path.isabs(filename): coverpath = fndir else: coverpath = os.path.join(dirname, fndir) # build list file name by appending a ".cover" to the module name # and sticking it into the specified directory if "." in modulename: # A module in a package finalname = modulename.split(".")[-1] listfilename = os.path.join(coverpath, finalname + ".cover") else: listfilename = os.path.join(coverpath, modulename + ".cover") # Get the original lines from the .py file try: lines = open(filename, 'r').readlines() except IOError, err: print >> sys.stderr, "trace: Could not open %s for reading " \ "because: %s - skipping" % (`filename`, err) continue try: outfile = open(listfilename, 'w') except IOError, err: sys.stderr.write( '%s: Could not open %s for writing because: %s" \ "- skipping\n' % ("trace", `listfilename`, err)) continue # If desired, get a list of the line numbers which represent # executable content (returned as a dict for better lookup speed) if show_missing: executable_linenos = find_executable_linenos(filename) else: executable_linenos = {} n_lines = 0 n_hits = 0 lines_hit = per_file[key] for i in range(len(lines)): line = lines[i] # do the blank/comment match to try to mark more lines # (help the reader find stuff that hasn't been covered) if lines_hit.has_key(i+1): # count precedes the lines that we captured outfile.write('%5d: ' % lines_hit[i+1]) n_hits = n_hits + 1 n_lines = n_lines + 1 elif blank.match(line): # blank lines and comments are preceded by dots outfile.write(' . ') else: # lines preceded by no marks weren't hit # Highlight them if so indicated, unless the line contains # '#pragma: NO COVER' (it is possible to embed this into # the text as a non-comment; no easy fix) if executable_linenos.has_key(i+1) and \ string.find(lines[i], string.join(['#pragma', 'NO COVER'])) == -1: outfile.write('>>>>>> ') else: outfile.write(' '*7) n_lines = n_lines + 1 outfile.write(string.expandtabs(lines[i], 8)) outfile.close() if summary and n_lines: percent = int(100 * n_hits / n_lines) sums[modulename] = n_lines, percent, modulename, filename if save_counts: # try and store counts and module info into dirname try: marshal.dump(results.counts, open(os.path.join(dirname, "counts"), "w")) marshal.dump(results.modules, open(os.path.join(dirname, "modules"), "w")) except IOError, err: sys.stderr.write("cannot save counts/modules " \ "files because %s" % err) if summary and sums: mods = sums.keys() mods.sort() print "lines cov% module (path)" for m in mods: n_lines, percent, modulename, filename = sums[m] print "%5d %3d%% %s (%s)" % sums[m]
8fb89f9fd74a61e165437eec10be9ace4c3738cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8fb89f9fd74a61e165437eec10be9ace4c3738cb/trace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 4717, 67, 1330, 12, 4717, 16, 4283, 273, 4585, 16, 2405, 67, 7337, 273, 404, 16, 1923, 67, 8008, 273, 374, 16, 4916, 273, 374, 16, 5590, 1214, 273, 599, 4672, 1930, 283, 468, 7005, 326, 6880, 501, 7566, 12, 3459, 16, 7586, 13, 273, 1056, 7923, 1368, 5943, 468, 12718, 603, 279, 1534, 17, 768, 10853, 1534, 67, 768, 273, 2618, 364, 1544, 16, 7586, 316, 1686, 18, 8008, 18, 2452, 13332, 2362, 67, 15989, 273, 1534, 67, 768, 63, 3459, 65, 273, 1534, 67, 768, 18, 588, 12, 3459, 16, 2618, 13, 2362, 67, 15989, 63, 17782, 65, 273, 1686, 18, 8008, 63, 12, 3459, 16, 7586, 25887, 225, 468, 775, 471, 2691, 2062, 6880, 471, 4381, 585, 628, 4283, 775, 30, 6880, 273, 10893, 18, 945, 12, 3190, 12, 538, 18, 803, 18, 5701, 12, 12287, 16, 315, 8008, 6, 20349, 4381, 273, 10893, 18, 945, 12, 3190, 12, 538, 18, 803, 18, 5701, 12, 12287, 16, 315, 6400, 6, 20349, 1686, 18, 2725, 12, 4717, 16186, 1106, 972, 12, 8008, 16, 4381, 3719, 1335, 8340, 30, 1342, 225, 468, 1915, 854, 4906, 12576, 1625, 333, 353, 2763, 11339, 16, 3007, 279, 7052, 468, 980, 7488, 316, 279, 19431, 533, 18, 7052, 273, 283, 18, 11100, 12, 86, 11, 17134, 87, 21556, 7, 4509, 9945, 8, 6134, 225, 468, 21757, 4916, 1123, 16, 309, 3577, 26608, 273, 2618, 225, 468, 2103, 585, 2953, 364, 326, 11196, 1390, 732, 854, 8554, 358, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 4717, 67, 1330, 12, 4717, 16, 4283, 273, 4585, 16, 2405, 67, 7337, 273, 404, 16, 1923, 67, 8008, 273, 374, 16, 4916, 273, 374, 16, 5590, 1214, 273, 599, 4672, 1930, 283, 468, 7005, 326, 6880, 501, 7566, 12, 3459, 16, 7586, 13, 273, 1056, 7923, 1368, 5943, 468, 12718, 603, 279, 1534, 17, 768, 10853, 1534, 67, 768, 273, 2618, 364, 1544, 16, 7586, 316, 1686, 18, 8008, 18, 2452, 13332, 2362, 67, 15989, 273, 1534, 67, 768, 63, 3459, 65, 273, 1534, 67, 768, 18, 588, 12, 3459, 16, 2618, 13, 2362, 67, 15989, 63, 17782, 65, 273, 1686, 18, 8008, 63, 12, 3459, 16, 7586, 25887, 225, 468, 775, 471, 2691, 2062, 2 ]
h = win32api.LoadLibrary(filename) found = win32api.GetModuleFileName(h)
if os.path.isfile(os.path.join(sys.prefix, filename)): found = os.path.join(sys.prefix, filename) else: import win32api h = win32api.LoadLibrary(filename) found = win32api.GetModuleFileName(h)
def __import(modname): import win32api, imp, sys, os suffix = "" if win32api.__file__.endswith("_d.pyd")>0: suffix = "_d" filename = "%s%d%d%s.dll" % (modname, sys.version_info[0], sys.version_info[1], suffix) if hasattr(sys, "frozen"): # If we are running from a frozen program (py2exe, McMillan, freeze) # then we try and load the DLL from our sys.path for look in sys.path: found = os.path.join(look, filename) if os.path.isfile(found): break else: raise ImportError, "Module '%s' isn't in frozen sys.path directories" % modname h = None else: # Normal Python needs these files in a directory somewhere on # %PATH%, so let Windows search it out for us h = win32api.LoadLibrary(filename) found = win32api.GetModuleFileName(h) # Python can load the module mod = imp.load_module(modname, None, found, ('.dll', 'rb', imp.C_EXTENSION)) # and fill our namespace with it. globals().update(mod.__dict__) if h is not None: win32api.FreeLibrary(h)
f94fef29ca63089e7ab8f54997f6eb29ba8597ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/f94fef29ca63089e7ab8f54997f6eb29ba8597ee/pywintypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5666, 12, 1711, 529, 4672, 1930, 5657, 1578, 2425, 16, 1646, 16, 2589, 16, 1140, 3758, 273, 1408, 309, 5657, 1578, 2425, 16186, 768, 25648, 5839, 1918, 2932, 67, 72, 18, 2074, 72, 7923, 34, 20, 30, 3758, 273, 4192, 72, 6, 1544, 273, 2213, 87, 9, 72, 9, 72, 9, 87, 18, 27670, 6, 738, 261, 1711, 529, 16, 2589, 18, 1589, 67, 1376, 63, 20, 6487, 2589, 18, 1589, 67, 1376, 63, 21, 6487, 3758, 13, 309, 3859, 12, 9499, 16, 315, 28138, 6, 4672, 468, 971, 732, 854, 3549, 628, 279, 12810, 5402, 261, 2074, 22, 14880, 16, 25891, 49, 737, 304, 16, 16684, 13, 468, 1508, 732, 775, 471, 1262, 326, 463, 4503, 628, 3134, 2589, 18, 803, 364, 2324, 316, 2589, 18, 803, 30, 1392, 273, 1140, 18, 803, 18, 5701, 12, 7330, 16, 1544, 13, 309, 1140, 18, 803, 18, 291, 768, 12, 7015, 4672, 898, 469, 30, 1002, 11308, 16, 315, 3120, 1995, 87, 11, 5177, 1404, 316, 12810, 2589, 18, 803, 6402, 6, 738, 16037, 366, 273, 599, 469, 30, 468, 8769, 6600, 4260, 4259, 1390, 316, 279, 1867, 22234, 603, 468, 738, 4211, 9, 16, 1427, 2231, 8202, 1623, 518, 596, 364, 584, 366, 273, 5657, 1578, 2425, 18, 2563, 9313, 12, 3459, 13, 1392, 273, 5657, 1578, 2425, 18, 967, 3120, 4771, 12, 76, 13, 468, 6600, 848, 1262, 326, 1605, 681, 273, 1646, 18, 945, 67, 2978, 12, 1711, 529, 16, 599, 16, 1392, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5666, 12, 1711, 529, 4672, 1930, 5657, 1578, 2425, 16, 1646, 16, 2589, 16, 1140, 3758, 273, 1408, 309, 5657, 1578, 2425, 16186, 768, 25648, 5839, 1918, 2932, 67, 72, 18, 2074, 72, 7923, 34, 20, 30, 3758, 273, 4192, 72, 6, 1544, 273, 2213, 87, 9, 72, 9, 72, 9, 87, 18, 27670, 6, 738, 261, 1711, 529, 16, 2589, 18, 1589, 67, 1376, 63, 20, 6487, 2589, 18, 1589, 67, 1376, 63, 21, 6487, 3758, 13, 309, 3859, 12, 9499, 16, 315, 28138, 6, 4672, 468, 971, 732, 854, 3549, 628, 279, 12810, 5402, 261, 2074, 22, 14880, 16, 25891, 49, 737, 304, 16, 16684, 13, 468, 1508, 732, 775, 471, 1262, 326, 463, 4503, 2 ]
time_col = name == 'milestone' and 'milestone.due' or 'version.time'
time_col = name == 'milestone' and 'milestone.due' or \ 'version.time'
def get_constraint_sql(name, value, mode, neg): if name not in custom_fields: name = 't.' + name else: name = name + '.value' value = value[len(mode) + neg:]
87f2b587949e267f7ef8012e23eb81ac3d067ed9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/87f2b587949e267f7ef8012e23eb81ac3d067ed9/query.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 13364, 67, 4669, 12, 529, 16, 460, 16, 1965, 16, 4251, 4672, 309, 508, 486, 316, 1679, 67, 2821, 30, 508, 273, 296, 88, 1093,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13364, 67, 4669, 12, 529, 16, 460, 16, 1965, 16, 4251, 4672, 309, 508, 486, 316, 1679, 67, 2821, 30, 508, 273, 296, 88, 1093, 397, 508, 469, 30, 508, 273, 508, 397, 2418, 1132, 11, 460, 273, 460, 63, 1897, 12, 3188, 13, 397, 4251, 26894, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print "enter_custom_mode specialcase -- import succeeded"
print "_enter_custom_mode specialcase -- import succeeded"
def enter_custom_mode( self, commandName, modefile): #bruce 050515 # TODO: move to CommandSequencer.py, and call on self.win.commandSequencer rather than on self fn = modefile if not os.path.exists(fn) and commandName != 'testmode': env.history.message("should never happen: file does not exist: [%s]" % fn) return if commandName == 'testmode': #bruce 070429 explicit import probably needed for sake of py2app (so an explicit --include is not needed for it) # (but this is apparently still failing to let the testmode item work in a built release -- I don't know why ###FIX) print "enter_custom_mode specialcase for testmode" #e remove this print, when it works in a built release import testmode ## reload(testmode) # This reload is part of what prevented this case from working in A9 [bruce 070611] from testmode import testmode as _modeclass print "enter_custom_mode specialcase -- import succeeded" else: dir, file = os.path.split(fn) base, ext = os.path.splitext(file) ## commandName = base ###e need better way to import from this specific file! # (Like using an appropriate function in the import-related Python library module.) # This kluge is not protected against weird chars in base. oldpath = list(sys.path) if dir not in sys.path: sys.path.append(dir) # Note: this doesn't guarantee we load file from that dir -- # if it's present in another one on path (e.g. cad/src), # we'll load it from there instead. That's basically a bug, # but prepending dir onto path would risk much worse bugs # if dir masked any standard modules which got loaded now. import gpl_only # make sure exec is ok in this version (caller should have done this already) _module = _modeclass = None # fool pylint into realizing this is not undefined 2 lines below exec("import %s as _module" % (base,)) reload(_module) exec("from %s import %s as _modeclass" % (base,base)) sys.path = oldpath modeobj = _modeclass(self) # this should put it into self.commandTable under the name defined in the mode module # note: this self is probably supposed to be the command sequencer self.commandTable[commandName] = modeobj # also put it in under this name, if different [### will this cause bugs?] self.userEnterCommand(commandName) # note: self is acting as the command sequencer here; in future we'll get it from somewhere, # e.g. self.win.commandSequencer, or just move this whole method there (and get cmdseq from win when we call it) return
71132be5a1d47aaaf9cfd69d6387025bb7fa763d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/71132be5a1d47aaaf9cfd69d6387025bb7fa763d/GLPane.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6103, 67, 3662, 67, 3188, 12, 365, 16, 20893, 16, 1965, 768, 4672, 468, 2848, 3965, 374, 3361, 25, 3600, 468, 2660, 30, 3635, 358, 3498, 1761, 372, 23568, 18, 2074, 16, 471, 745, 603, 365, 18, 8082, 18, 3076, 1761, 372, 23568, 9178, 2353, 603, 365, 2295, 273, 1965, 768, 309, 486, 1140, 18, 803, 18, 1808, 12, 4293, 13, 471, 20893, 480, 296, 3813, 3188, 4278, 1550, 18, 8189, 18, 2150, 2932, 13139, 5903, 5865, 30, 585, 1552, 486, 1005, 30, 9799, 87, 4279, 738, 2295, 13, 327, 309, 20893, 422, 296, 3813, 3188, 4278, 468, 2848, 3965, 10934, 3028, 5540, 5515, 1930, 8656, 3577, 364, 272, 911, 434, 2395, 22, 2910, 261, 2048, 392, 5515, 1493, 6702, 353, 486, 3577, 364, 518, 13, 468, 261, 12885, 333, 353, 29614, 715, 4859, 21311, 358, 2231, 326, 1842, 3188, 761, 1440, 316, 279, 6650, 3992, 1493, 467, 2727, 1404, 5055, 11598, 11849, 4563, 13, 1172, 315, 2328, 67, 3662, 67, 3188, 4582, 3593, 364, 1842, 3188, 6, 468, 73, 1206, 333, 1172, 16, 1347, 518, 6330, 316, 279, 6650, 3992, 1930, 1842, 3188, 7541, 7749, 12, 3813, 3188, 13, 468, 1220, 7749, 353, 1087, 434, 4121, 5309, 329, 333, 648, 628, 5960, 316, 432, 29, 306, 2848, 3965, 374, 7301, 26, 2499, 65, 628, 1842, 3188, 1930, 1842, 3188, 487, 389, 3188, 1106, 1172, 4192, 2328, 67, 3662, 67, 3188, 4582, 3593, 1493, 1930, 15784, 6, 469, 30, 1577, 16, 585, 273, 1140, 18, 803, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6103, 67, 3662, 67, 3188, 12, 365, 16, 20893, 16, 1965, 768, 4672, 468, 2848, 3965, 374, 3361, 25, 3600, 468, 2660, 30, 3635, 358, 3498, 1761, 372, 23568, 18, 2074, 16, 471, 745, 603, 365, 18, 8082, 18, 3076, 1761, 372, 23568, 9178, 2353, 603, 365, 2295, 273, 1965, 768, 309, 486, 1140, 18, 803, 18, 1808, 12, 4293, 13, 471, 20893, 480, 296, 3813, 3188, 4278, 1550, 18, 8189, 18, 2150, 2932, 13139, 5903, 5865, 30, 585, 1552, 486, 1005, 30, 9799, 87, 4279, 738, 2295, 13, 327, 309, 20893, 422, 296, 3813, 3188, 4278, 468, 2848, 3965, 10934, 3028, 5540, 5515, 1930, 8656, 3577, 364, 272, 911, 434, 2395, 22, 2910, 261, 2048, 392, 5515, 2 ]
diff_style, diff_options = get_diff_options(req) if req.args.has_key('update'): req.redirect(self.env.href.wiki(page.name, version=page.version, action='diff'))
def _render_diff(self, req, db, page): req.perm.assert_permission(perm.WIKI_VIEW)
49428f30e0191e27396c824e07d9b78925c3f1a3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/49428f30e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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5902, 67, 5413, 12, 2890, 16, 1111, 16, 1319, 16, 1363, 4672, 1111, 18, 12160, 18, 11231, 67, 9827, 12, 12160, 18, 23109, 47, 45, 67, 12145, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
pipeline_size = 5
def AddNewActor(self, pubsub_evt): """ Create surface actor, save into project and send it to viewer. """ imagedata, colour, [min_value, max_value], edited_points = pubsub_evt.data quality='Optimal' mode = 'CONTOUR' # 'GRAYSCALE' imagedata_tmp = None if (edited_points): imagedata_tmp = vtk.vtkImageData() imagedata_tmp.DeepCopy(imagedata) imagedata_tmp.Update() imagedata = BuildEditedImage(imagedata_tmp, edited_points)
9bc7d016304defad70f07a51ceb179e9c0ef6cde /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10228/9bc7d016304defad70f07a51ceb179e9c0ef6cde/surface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1436, 1908, 17876, 12, 2890, 16, 23288, 67, 73, 11734, 4672, 3536, 1788, 9034, 8327, 16, 1923, 1368, 1984, 471, 1366, 518, 358, 14157, 18, 3536, 8902, 329, 396, 16, 15046, 16, 306, 1154, 67, 1132, 16, 943, 67, 1132, 6487, 18532, 67, 4139, 273, 23288, 67, 73, 11734, 18, 892, 9312, 2218, 6179, 2840, 11, 1965, 273, 296, 2248, 4296, 1099, 11, 468, 296, 43, 6722, 19378, 11, 225, 8902, 329, 396, 67, 5645, 273, 599, 309, 261, 28752, 67, 4139, 4672, 8902, 329, 396, 67, 5645, 273, 13659, 18, 11734, 79, 2040, 751, 1435, 8902, 329, 396, 67, 5645, 18, 10968, 12, 381, 11349, 396, 13, 8902, 329, 396, 67, 5645, 18, 1891, 1435, 8902, 329, 396, 273, 3998, 4666, 329, 2040, 12, 381, 11349, 396, 67, 5645, 16, 18532, 67, 4139, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 18532, 67, 4139, 273, 23288, 67, 73, 11734, 18, 892, 9312, 2218, 6179, 2840, 11, 1965, 273, 296, 2248, 4296, 1099, 11, 468, 296, 43, 6722, 19378, 11, 225, 8902, 329, 396, 67, 5645, 273, 599, 309, 261, 28752, 67, 4139, 4672, 8902, 329, 396, 67, 5645, 273, 13659, 18, 11734, 79, 2040, 751, 1435, 8902, 329, 396, 67, 5645, 18, 10968, 12, 381, 11349, 396, 13, 8902, 329, 396, 67, 5645, 18, 1891, 1435, 8902, 329, 2 ]
tasksIds = [] missing = [] imgList = Image.objects.filter(id__in = idList) tasks = Processing_task.objects.filter(kind__name__exact = 'scamp', success = True).order_by('-end_date')
from django.db import connection cur = connection.cursor() idList = string.join(idList, ',')
def checkForScampData(self, request, imgList = None): """ Check if the image selection matches a successful Scamp involving the same image selection. @return List of Scamp processings, if any """
e20f1271a7e99398df38185571c8ed27ea14e868 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11651/e20f1271a7e99398df38185571c8ed27ea14e868/swarp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13855, 1541, 931, 751, 12, 2890, 16, 590, 16, 3774, 682, 273, 599, 4672, 3536, 2073, 309, 326, 1316, 4421, 1885, 279, 6873, 2850, 931, 29876, 6282, 326, 1967, 1316, 4421, 18, 632, 2463, 987, 434, 2850, 931, 1207, 899, 16, 309, 1281, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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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, 13855, 1541, 931, 751, 12, 2890, 16, 590, 16, 3774, 682, 273, 599, 4672, 3536, 2073, 309, 326, 1316, 4421, 1885, 279, 6873, 2850, 931, 29876, 6282, 326, 1967, 1316, 4421, 18, 632, 2463, 987, 434, 2850, 931, 1207, 899, 16, 309, 1281, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ShowMissing(brkitrs, locales, "brkitr", dat_list_file_path) ShowMissing(colls, locales, "coll", dat_list_file_path) ShowMissing(currs, locales, "curr", dat_list_file_path) ShowMissing(langs, locales, "lang", dat_list_file_path) ShowMissing(regions, locales, "region", dat_list_file_path) ShowMissing(zones, locales, "zone", dat_list_file_path) ShowMissing(rbnfs, locales, "rbnf", dat_list_file_path)
kind_to_locales = { "brkitr": brkitrs, "coll": colls, "curr": currs, "lang": langs, "locales": locales, "region": regions, "zone": zones } every_locale = set() for locales in kind_to_locales.itervalues(): every_locale = every_locale.union(locales) if VERBOSE: for kind, locales in kind_to_locales.items(): print "%s=%s" % (kind, sorted(locales)) print "every_locale=" % sorted(every_locale) missing_files = [] for locale in every_locale: for kind, locales in kind_to_locales.items(): p = os.path.join(ICU4C_DIR, "data", kind, locale + ".txt") if not locale in locales and os.path.exists(p): missing_files.append(p) for missing_file in sorted(missing_files): print "warning: %s exists but isn't included in %s" % (missing_file, dat_list_file_path)
def GenResIndex(dat_list_file_path): res_index = "res_index.txt" locales = set() brkitrs = set() colls = set() currs = set() langs = set() regions = set() zones = set() rbnfs = set() for line in open(dat_list_file_path, "r"): if line.find("root.") >= 0: continue if line.find("res_index") >= 0: continue if line.find("_.res") >= 0: continue; if line.find("brkitr/") >= 0: end = line.find(".res") if end > 0: brkitrs.add(line[line.find("/")+1:end]) elif line.find("coll/") >= 0: end = line.find(".res") if end > 0: colls.add(line[line.find("/")+1:end]) elif line.find("curr/") >= 0: end = line.find(".res") if end > 0: currs.add(line[line.find("/")+1:end]) elif line.find("lang/") >= 0: end = line.find(".res") if end > 0: langs.add(line[line.find("/")+1:end]) elif line.find("region/") >= 0: end = line.find(".res") if end > 0: regions.add(line[line.find("/")+1:end]) elif line.find("zone/") >= 0: end = line.find(".res") if end > 0: zones.add(line[line.find("/")+1:end]) elif line.find("rbnf/") >= 0: end = line.find(".res") if end > 0: rbnfs.add(line[line.find("/")+1:end]) elif line.find(".res") >= 0: # We need to determine the resource is locale resource or misc resource. # To determine the locale resource, we assume max script length is 3. end = line.find(".res") if end <= 3 or (line.find("_") <= 3 and line.find("_") > 0): locales.add(line[:end]) ShowMissing(brkitrs, locales, "brkitr", dat_list_file_path) ShowMissing(colls, locales, "coll", dat_list_file_path) ShowMissing(currs, locales, "curr", dat_list_file_path) ShowMissing(langs, locales, "lang", dat_list_file_path) ShowMissing(regions, locales, "region", dat_list_file_path) ShowMissing(zones, locales, "zone", dat_list_file_path) ShowMissing(rbnfs, locales, "rbnf", dat_list_file_path) WriteIndex(os.path.join(TMP_DAT_PATH, res_index), locales, CLDR_VERSION) WriteIndex(os.path.join(TMP_DAT_PATH, "brkitr", res_index), brkitrs) WriteIndex(os.path.join(TMP_DAT_PATH, "coll", res_index), colls) WriteIndex(os.path.join(TMP_DAT_PATH, "curr", res_index), currs) WriteIndex(os.path.join(TMP_DAT_PATH, "lang", res_index), langs) WriteIndex(os.path.join(TMP_DAT_PATH, "region", res_index), regions) WriteIndex(os.path.join(TMP_DAT_PATH, "zone", res_index), zones) WriteIndex(os.path.join(TMP_DAT_PATH, "rbnf", res_index), rbnfs) # Call genrb to generate new res_index.res. InvokeIcuTool("genrb", TMP_DAT_PATH, [res_index]) InvokeIcuTool("genrb", os.path.join(TMP_DAT_PATH, "brkitr"), [res_index]) InvokeIcuTool("genrb", os.path.join(TMP_DAT_PATH, "coll"), [res_index]) InvokeIcuTool("genrb", os.path.join(TMP_DAT_PATH, "curr"), [res_index]) InvokeIcuTool("genrb", os.path.join(TMP_DAT_PATH, "lang"), [res_index]) InvokeIcuTool("genrb", os.path.join(TMP_DAT_PATH, "region"), [res_index]) InvokeIcuTool("genrb", os.path.join(TMP_DAT_PATH, "zone"), [res_index]) if len(rbnfs): InvokeIcuTool("genrb", os.path.join(TMP_DAT_PATH, "rbnf"), [res_index])
89f309f809ddaba6a3ba4a31a8ee74cfa5e85be3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10672/89f309f809ddaba6a3ba4a31a8ee74cfa5e85be3/icu_dat_generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10938, 607, 1016, 12, 3404, 67, 1098, 67, 768, 67, 803, 4672, 400, 67, 1615, 273, 315, 455, 67, 1615, 18, 5830, 6, 225, 6922, 273, 444, 1435, 5186, 8691, 5453, 273, 444, 1435, 645, 3251, 273, 444, 1435, 4306, 87, 273, 444, 1435, 26467, 273, 444, 1435, 10085, 273, 444, 1435, 13975, 273, 444, 1435, 7138, 82, 2556, 273, 444, 1435, 225, 364, 980, 316, 1696, 12, 3404, 67, 1098, 67, 768, 67, 803, 16, 315, 86, 6, 4672, 309, 980, 18, 4720, 2932, 3085, 1199, 13, 1545, 374, 30, 1324, 309, 980, 18, 4720, 2932, 455, 67, 1615, 7923, 1545, 374, 30, 1324, 309, 980, 18, 4720, 2932, 27799, 455, 7923, 1545, 374, 30, 1324, 31, 309, 980, 18, 4720, 2932, 2848, 8691, 86, 4898, 13, 1545, 374, 30, 679, 273, 980, 18, 4720, 2932, 18, 455, 7923, 309, 679, 405, 374, 30, 5186, 8691, 5453, 18, 1289, 12, 1369, 63, 1369, 18, 4720, 2932, 4898, 27921, 21, 30, 409, 5717, 1327, 980, 18, 4720, 2932, 12910, 4898, 13, 1545, 374, 30, 679, 273, 980, 18, 4720, 2932, 18, 455, 7923, 309, 679, 405, 374, 30, 645, 3251, 18, 1289, 12, 1369, 63, 1369, 18, 4720, 2932, 4898, 27921, 21, 30, 409, 5717, 1327, 980, 18, 4720, 2932, 17016, 4898, 13, 1545, 374, 30, 679, 273, 980, 18, 4720, 2932, 18, 455, 7923, 309, 679, 405, 374, 30, 4306, 87, 18, 1289, 12, 1369, 63, 1369, 18, 4720, 2932, 4898, 27921, 21, 30, 409, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10938, 607, 1016, 12, 3404, 67, 1098, 67, 768, 67, 803, 4672, 400, 67, 1615, 273, 315, 455, 67, 1615, 18, 5830, 6, 225, 6922, 273, 444, 1435, 5186, 8691, 5453, 273, 444, 1435, 645, 3251, 273, 444, 1435, 4306, 87, 273, 444, 1435, 26467, 273, 444, 1435, 10085, 273, 444, 1435, 13975, 273, 444, 1435, 7138, 82, 2556, 273, 444, 1435, 225, 364, 980, 316, 1696, 12, 3404, 67, 1098, 67, 768, 67, 803, 16, 315, 86, 6, 4672, 309, 980, 18, 4720, 2932, 3085, 1199, 13, 1545, 374, 30, 1324, 309, 980, 18, 4720, 2932, 455, 67, 1615, 7923, 1545, 374, 30, 1324, 309, 980, 18, 4720, 2932, 27799, 455, 7923, 1545, 374, 30, 1324, 31, 2 ]
if type(sel) == type(1.0) and 0.0 <= sel < 1.0:
if isinstance(sel, float) and 0.0 <= sel < 1.0:
def eval_print_amount(self, sel, list, msg): new_list = list if type(sel) == type(""): new_list = [] for func in list: if re.search(sel, func_std_string(func)): new_list.append(func) else: count = len(list) if type(sel) == type(1.0) and 0.0 <= sel < 1.0: count = int(count * sel + .5) new_list = list[:count] elif type(sel) == type(1) and 0 <= sel < count: count = sel new_list = list[:count] if len(list) != len(new_list): msg = msg + " List reduced from %r to %r due to restriction <%r>\n" % ( len(list), len(new_list), sel)
d9839e637b7c812d57b335b956f1d674502783c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/d9839e637b7c812d57b335b956f1d674502783c9/pstats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5302, 67, 1188, 67, 8949, 12, 2890, 16, 357, 16, 666, 16, 1234, 4672, 394, 67, 1098, 273, 666, 309, 618, 12, 1786, 13, 422, 618, 2932, 6, 4672, 394, 67, 1098, 273, 5378, 364, 1326, 316, 666, 30, 309, 283, 18, 3072, 12, 1786, 16, 1326, 67, 5084, 67, 1080, 12, 644, 3719, 30, 394, 67, 1098, 18, 6923, 12, 644, 13, 469, 30, 1056, 273, 562, 12, 1098, 13, 309, 1549, 12, 1786, 16, 1431, 13, 471, 374, 18, 20, 1648, 357, 411, 404, 18, 20, 30, 1056, 273, 509, 12, 1883, 380, 357, 397, 263, 25, 13, 394, 67, 1098, 273, 666, 10531, 1883, 65, 1327, 618, 12, 1786, 13, 422, 618, 12, 21, 13, 471, 374, 1648, 357, 411, 1056, 30, 1056, 273, 357, 394, 67, 1098, 273, 666, 10531, 1883, 65, 309, 562, 12, 1098, 13, 480, 562, 12, 2704, 67, 1098, 4672, 1234, 273, 1234, 397, 315, 282, 987, 13162, 628, 738, 86, 358, 738, 86, 6541, 358, 9318, 23930, 86, 5333, 82, 6, 738, 261, 562, 12, 1098, 3631, 562, 12, 2704, 67, 1098, 3631, 357, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5302, 67, 1188, 67, 8949, 12, 2890, 16, 357, 16, 666, 16, 1234, 4672, 394, 67, 1098, 273, 666, 309, 618, 12, 1786, 13, 422, 618, 2932, 6, 4672, 394, 67, 1098, 273, 5378, 364, 1326, 316, 666, 30, 309, 283, 18, 3072, 12, 1786, 16, 1326, 67, 5084, 67, 1080, 12, 644, 3719, 30, 394, 67, 1098, 18, 6923, 12, 644, 13, 469, 30, 1056, 273, 562, 12, 1098, 13, 309, 1549, 12, 1786, 16, 1431, 13, 471, 374, 18, 20, 1648, 357, 411, 404, 18, 20, 30, 1056, 273, 509, 12, 1883, 380, 357, 397, 263, 25, 13, 394, 67, 1098, 273, 666, 10531, 1883, 65, 1327, 618, 12, 1786, 13, 422, 618, 12, 21, 13, 2 ]
if len(workd.shape) == 1: levels = 1 else: levels = workd.shape[0] sserr = zeros((levels,levels),'f') for i in range(levels): for j in range(i,levels): ssval = add.reduce(workd[i]*workd[j]) sserr[i,j] = ssval sserr[j,i] = ssval return sserr
if len(workd.shape) == 1: levels = 1 else: levels = workd.shape[0] sserr = zeros((levels,levels),'f') for i in range(levels): for j in range(i,levels): ssval = add.reduce(workd[i]*workd[j]) sserr[i,j] = ssval sserr[j,i] = ssval return sserr
def multivar_sscalc(workd):
3bb739baad4fb4f21aa19b39fbb10f6aa5c1a041 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/3bb739baad4fb4f21aa19b39fbb10f6aa5c1a041/stats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1778, 22647, 67, 1049, 12448, 12, 1252, 72, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1778, 22647, 67, 1049, 12448, 12, 1252, 72, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
statresult = commands.getstatusoutput('stat -f -c "%S %b" $PWD')
statresult = commands.getstatusoutput('df -P .')
def get_diskused(): """ Returns the total size in Bytes of the parition/mount that the working directory is on. """ disksize = 0 disksizedefault = 10000000 #blocksize unit is bytes blocksize = 0 freeblocks = 0 #Basic commands for linux stat # stat arguement -f get filesystem info # stat arguement -c use valid format sequence # %s block size (faster transfer) # %S Fundamental block size (for block count) # %b Total data blocks in the file system. statresult = commands.getstatusoutput('stat -f -c "%S %b" $PWD') # Test because if first element of tuple is other than 0 # then the exit status of the linux command is an error. if (statresult[0] != 0): #Failed return disksizedefault statresult = (statresult[1]).split() #Example of expected value for statresult #['4096', '3751807'] try: blocksize = long(statresult[0]) except ValueError: return disksizedefault try: freeblocks = long(statresult[1]) except ValueError: return disksizedefault disksize = blocksize * freeblocks return disksize
2417e03d916953ff278668c88050b18355050c6e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/2417e03d916953ff278668c88050b18355050c6e/Linux_resources.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 10863, 3668, 13332, 3536, 2860, 326, 2078, 963, 316, 5985, 434, 326, 779, 608, 19, 4778, 716, 326, 5960, 1867, 353, 603, 18, 3536, 225, 4234, 1467, 273, 374, 4234, 1467, 1886, 273, 2130, 11706, 225, 468, 2629, 1467, 2836, 353, 1731, 18440, 273, 374, 4843, 7996, 273, 374, 225, 468, 8252, 4364, 364, 19725, 610, 468, 610, 1501, 344, 475, 300, 74, 336, 6496, 1123, 468, 610, 1501, 344, 475, 300, 71, 999, 923, 740, 3102, 468, 282, 738, 87, 1203, 963, 261, 8076, 264, 7412, 13, 468, 282, 738, 55, 478, 1074, 14773, 287, 1203, 963, 261, 1884, 1203, 1056, 13, 468, 282, 738, 70, 10710, 501, 4398, 316, 326, 585, 2619, 18, 610, 2088, 273, 4364, 18, 588, 2327, 2844, 2668, 5642, 300, 74, 225, 300, 71, 2213, 55, 738, 70, 6, 271, 31243, 6134, 225, 468, 7766, 2724, 309, 1122, 930, 434, 3193, 353, 1308, 2353, 374, 468, 1508, 326, 2427, 1267, 434, 326, 19725, 1296, 353, 392, 555, 18, 309, 261, 5642, 2088, 63, 20, 65, 480, 374, 4672, 468, 2925, 327, 4234, 1467, 1886, 225, 610, 2088, 273, 261, 5642, 2088, 63, 21, 65, 2934, 4939, 1435, 468, 10908, 434, 2665, 460, 364, 610, 2088, 468, 3292, 24, 5908, 26, 2187, 296, 23, 5877, 2643, 8642, 3546, 225, 775, 30, 18440, 273, 1525, 12, 5642, 2088, 63, 20, 5717, 1335, 2068, 30, 327, 4234, 1467, 1886, 225, 775, 30, 4843, 7996, 273, 1525, 12, 5642, 2088, 63, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10863, 3668, 13332, 3536, 2860, 326, 2078, 963, 316, 5985, 434, 326, 779, 608, 19, 4778, 716, 326, 5960, 1867, 353, 603, 18, 3536, 225, 4234, 1467, 273, 374, 4234, 1467, 1886, 273, 2130, 11706, 225, 468, 2629, 1467, 2836, 353, 1731, 18440, 273, 374, 4843, 7996, 273, 374, 225, 468, 8252, 4364, 364, 19725, 610, 468, 610, 1501, 344, 475, 300, 74, 336, 6496, 1123, 468, 610, 1501, 344, 475, 300, 71, 999, 923, 740, 3102, 468, 282, 738, 87, 1203, 963, 261, 8076, 264, 7412, 13, 468, 282, 738, 55, 478, 1074, 14773, 287, 1203, 963, 261, 1884, 1203, 1056, 13, 468, 282, 738, 70, 10710, 501, 4398, 316, 326, 585, 2619, 18, 610, 2 ]
sage: g.transitive_reduction().edges()
sage: edges = g.transitive_reduction().edges(); len(edges)
def transitive_reduction(self): r""" Returns a transitive reduction of a graph. The original graph is not modified.
f4e6071fec9db9b82cf2a9a85c21c347bbe3d50a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/f4e6071fec9db9b82cf2a9a85c21c347bbe3d50a/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30442, 67, 1118, 4062, 12, 2890, 4672, 436, 8395, 2860, 279, 30442, 20176, 434, 279, 2667, 18, 225, 1021, 2282, 2667, 353, 486, 4358, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 30442, 67, 1118, 4062, 12, 2890, 4672, 436, 8395, 2860, 279, 30442, 20176, 434, 279, 2667, 18, 225, 1021, 2282, 2667, 353, 486, 4358, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
('a', 'first'), ('b', 'middle'), ('c', 'last'),
('1', 'first'), ('2', 'middle'), ('3', 'last'),
def getCities(self): """get all cities belonging to this city list cities returned are sorted by the position field, which means the first city in returned list will be a city marked as start point for traveler and the last one will be city marked as traveler's destination point """ cities = CityInList.objects.order_by('position').filter(cityList = self) return cities
13c8a952043c99ac3209e5531dc2a589ea77ca4a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1965/13c8a952043c99ac3209e5531dc2a589ea77ca4a/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1927, 1961, 12, 2890, 4672, 3536, 588, 777, 276, 1961, 17622, 358, 333, 12797, 666, 225, 276, 1961, 2106, 854, 3115, 635, 326, 1754, 652, 16, 1492, 4696, 326, 1122, 12797, 316, 2106, 666, 903, 506, 279, 12797, 9350, 487, 787, 1634, 364, 29090, 264, 471, 326, 1142, 1245, 903, 506, 12797, 9350, 487, 29090, 264, 1807, 2929, 1634, 3536, 225, 276, 1961, 273, 30578, 24218, 18, 6911, 18, 1019, 67, 1637, 2668, 3276, 16063, 2188, 12, 14240, 682, 273, 365, 13, 327, 276, 1961, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1927, 1961, 12, 2890, 4672, 3536, 588, 777, 276, 1961, 17622, 358, 333, 12797, 666, 225, 276, 1961, 2106, 854, 3115, 635, 326, 1754, 652, 16, 1492, 4696, 326, 1122, 12797, 316, 2106, 666, 903, 506, 279, 12797, 9350, 487, 787, 1634, 364, 29090, 264, 471, 326, 1142, 1245, 903, 506, 12797, 9350, 487, 29090, 264, 1807, 2929, 1634, 3536, 225, 276, 1961, 273, 30578, 24218, 18, 6911, 18, 1019, 67, 1637, 2668, 3276, 16063, 2188, 12, 14240, 682, 273, 365, 13, 327, 276, 1961, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
infoDict[ 'path' ] = proxyLoc
infoDict[ 'path' ] = proxyLocation
def getProxyInfo( proxy = False, disableVOMS = False ): """ Returns a dict with all the proxy info * values that will be there always 'chain' : chain object containing the proxy 'subject' : subject of the proxy 'issuer' : issuer of the proxy 'isProxy' : bool 'isLimitedProxy' : bool 'validDN' : Valid DN in DIRAC 'validGroup' : Valid Group in DIRAC 'secondsLeft' : Seconds left * values that can be there 'path' : path to the file, 'group' : DIRAC group 'username' : DIRAC username 'identity' : DN that generated the proxy 'hostname' : DIRAC host nickname 'VOMS' """ #Discover proxy location if type( proxy ) == g_X509ChainType: chain = proxy proxyLocation = False else: if not proxy: proxyLocation = Locations.getProxyLocation() elif type( proxy ) in ( types.StringType, types.UnicodeType ): proxyLocation = proxy else: return S_ERROR( "Can't find a valid proxy" ) chain = X509Chain() retVal = chain.loadProxyFromFile( proxyLocation ) if not retVal[ 'OK' ]: return S_ERROR( "Can't load %s: %s " % ( proxyLocation, retVal[ 'Message' ] ) ) retVal = chain.getCredentials() if not retVal[ 'OK' ]: return retVal infoDict = retVal[ 'Value' ] infoDict[ 'chain' ] = chain if proxyLocation: infoDict[ 'path' ] = proxyLoc if not disableVOMS and chain.isVOMS()['Value']: retVal = VOMS().getVOMSAttributes( chain ) if retVal[ 'OK' ]: infoDict[ 'VOMS' ] = retVal[ 'Value' ] return S_OK( infoDict )
ae1c68e3461345e39a0c63fa67a7f0fbabc6ba69 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/ae1c68e3461345e39a0c63fa67a7f0fbabc6ba69/Misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18992, 966, 12, 2889, 273, 1083, 16, 4056, 58, 1872, 55, 273, 1083, 262, 30, 3536, 2860, 279, 2065, 598, 777, 326, 2889, 1123, 380, 924, 716, 903, 506, 1915, 3712, 296, 5639, 11, 294, 2687, 733, 4191, 326, 2889, 296, 7857, 11, 294, 3221, 434, 326, 2889, 296, 17567, 11, 294, 9715, 434, 326, 2889, 296, 291, 3886, 11, 294, 1426, 296, 291, 3039, 329, 3886, 11, 294, 1426, 296, 877, 8609, 11, 294, 2364, 18001, 316, 18544, 2226, 296, 877, 1114, 11, 294, 2364, 3756, 316, 18544, 2226, 296, 7572, 3910, 11, 294, 18301, 2002, 380, 924, 716, 848, 506, 1915, 296, 803, 11, 294, 589, 358, 326, 585, 16, 296, 1655, 11, 294, 18544, 2226, 1041, 296, 5053, 11, 294, 18544, 2226, 2718, 296, 10781, 11, 294, 18001, 716, 4374, 326, 2889, 296, 10358, 11, 294, 18544, 2226, 1479, 19570, 296, 58, 1872, 55, 11, 3536, 468, 26082, 2889, 2117, 309, 618, 12, 2889, 262, 422, 314, 67, 60, 5995, 3893, 559, 30, 2687, 273, 2889, 2889, 2735, 273, 1083, 469, 30, 309, 486, 2889, 30, 2889, 2735, 273, 2851, 1012, 18, 588, 3886, 2735, 1435, 1327, 618, 12, 2889, 262, 316, 261, 1953, 18, 780, 559, 16, 1953, 18, 16532, 559, 262, 30, 2889, 2735, 273, 2889, 469, 30, 327, 348, 67, 3589, 12, 315, 2568, 1404, 1104, 279, 923, 2889, 6, 262, 2687, 273, 1139, 5995, 3893, 1435, 12197, 273, 2687, 18, 945, 3886, 13087, 12, 2889, 2735, 262, 309, 486, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18992, 966, 12, 2889, 273, 1083, 16, 4056, 58, 1872, 55, 273, 1083, 262, 30, 3536, 2860, 279, 2065, 598, 777, 326, 2889, 1123, 380, 924, 716, 903, 506, 1915, 3712, 296, 5639, 11, 294, 2687, 733, 4191, 326, 2889, 296, 7857, 11, 294, 3221, 434, 326, 2889, 296, 17567, 11, 294, 9715, 434, 326, 2889, 296, 291, 3886, 11, 294, 1426, 296, 291, 3039, 329, 3886, 11, 294, 1426, 296, 877, 8609, 11, 294, 2364, 18001, 316, 18544, 2226, 296, 877, 1114, 11, 294, 2364, 3756, 316, 18544, 2226, 296, 7572, 3910, 11, 294, 18301, 2002, 380, 924, 716, 848, 506, 1915, 296, 803, 11, 294, 589, 358, 326, 585, 16, 296, 1655, 11, 294, 18544, 2226, 2 ]
filename = dirname+'/'+filenames.pop()
if dirname: filename = dirname+'/'+filenames.pop() else: filename = filenames.pop()
def getFiles(self,pkgId): for (rep,cache) in self.filelistsdb.items(): found = False result = {} cur = cache.cursor() cur.execute("select * from packages,filelist where packages.pkgId = %s and packages.pkgKey = filelist.pkgKey", pkgId) for ob in cur.fetchall(): found = True dirname = ob['filelist.dirname'] filetypes = decodefiletypelist(ob['filelist.filetypes']) filenames = decodefilenamelist(ob['filelist.filenames']) while(filenames): filename = dirname+'/'+filenames.pop() filetype = filetypes.pop() result.setdefault(filetype,[]).append(filename) if (found): return result return {}
af749f64d8715fc354348ad8f0065645de907216 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/af749f64d8715fc354348ad8f0065645de907216/sqlitesack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18262, 12, 2890, 16, 10657, 548, 4672, 364, 261, 14462, 16, 2493, 13, 316, 365, 18, 7540, 292, 1486, 1966, 18, 3319, 13332, 1392, 273, 1083, 563, 273, 2618, 662, 273, 1247, 18, 9216, 1435, 662, 18, 8837, 2932, 4025, 380, 628, 5907, 16, 7540, 5449, 1625, 5907, 18, 10657, 548, 273, 738, 87, 471, 5907, 18, 10657, 653, 273, 26204, 18, 10657, 653, 3113, 3475, 548, 13, 364, 3768, 316, 662, 18, 5754, 454, 13332, 1392, 273, 1053, 4283, 273, 3768, 3292, 7540, 5449, 18, 12287, 3546, 661, 15180, 273, 2495, 7540, 278, 879, 5449, 12, 947, 3292, 7540, 5449, 18, 7540, 15180, 19486, 9066, 273, 2495, 7540, 275, 301, 5449, 12, 947, 3292, 7540, 5449, 18, 19875, 19486, 1323, 12, 19875, 4672, 309, 4283, 30, 1544, 273, 4283, 6797, 2473, 15, 19875, 18, 5120, 1435, 469, 30, 1544, 273, 9066, 18, 5120, 1435, 18902, 273, 661, 15180, 18, 5120, 1435, 563, 18, 542, 1886, 12, 7540, 5872, 16, 8526, 2934, 6923, 12, 3459, 13, 309, 261, 7015, 4672, 327, 563, 327, 2618, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18262, 12, 2890, 16, 10657, 548, 4672, 364, 261, 14462, 16, 2493, 13, 316, 365, 18, 7540, 292, 1486, 1966, 18, 3319, 13332, 1392, 273, 1083, 563, 273, 2618, 662, 273, 1247, 18, 9216, 1435, 662, 18, 8837, 2932, 4025, 380, 628, 5907, 16, 7540, 5449, 1625, 5907, 18, 10657, 548, 273, 738, 87, 471, 5907, 18, 10657, 653, 273, 26204, 18, 10657, 653, 3113, 3475, 548, 13, 364, 3768, 316, 662, 18, 5754, 454, 13332, 1392, 273, 1053, 4283, 273, 3768, 3292, 7540, 5449, 18, 12287, 3546, 661, 15180, 273, 2495, 7540, 278, 879, 5449, 12, 947, 3292, 7540, 5449, 18, 7540, 15180, 19486, 9066, 273, 2495, 7540, 275, 301, 5449, 12, 947, 3292, 7540, 5449, 18, 2 ]
n`, if one exists; which is if and only if `a\equiv b\pmod{\gcd(m,n)}` by the Chinese Remainder Theorem. The solution `x` is only well-defined modulo lcm`(m,n)`.
n`, if one exists. By the Chinese Remainder Theorem, a solution to the simultaneous congruences exists if and only if `a\equiv b\pmod{\gcd(m,n)}`. The solution `x` is only well-defined modulo `\text{lcm}(m,n)`.
def crt(a,b,m=None,n=None): r""" Returns a solution to a Chinese Remainder Theorem problem. INPUT: - ``a``, ``b`` - two residues (elements of some ring for which extended gcd is available), or two lists, one of residues and one of moduli. - ``m``, ``n`` - two moduli, or None. OUTPUT: If ``m``, ``n`` are not None, returns a solution `x` to the simultaneous congruences `x\equiv a \bmod m` and `x\equiv b \bmod n`, if one exists; which is if and only if `a\equiv b\pmod{\gcd(m,n)}` by the Chinese Remainder Theorem. The solution `x` is only well-defined modulo lcm`(m,n)`. If ``a`` and ``b`` are lists, returns a simultaneous solution to the congruences `x\equiv a_i\pmod{b_i}`, if one exists. EXAMPLES:: sage: crt(2, 1, 3, 5) 11 sage: crt(13,20,100,301) 28013 You can also use upper case:: sage: c = CRT(2,3, 3, 5); c 8 sage: c % 3 == 2 True sage: c % 5 == 3 True Note that this also works for polynomial rings:: sage: K.<a> = NumberField(x^3 - 7) sage: R.<y> = K[] sage: f = y^2 + 3 sage: g = y^3 - 5 sage: CRT(1,3,f,g) -3/26*y^4 + 5/26*y^3 + 15/26*y + 53/26 sage: CRT(1,a,f,g) (-3/52*a + 3/52)*y^4 + (5/52*a - 5/52)*y^3 + (15/52*a - 15/52)*y + 27/52*a + 25/52 You can also do this for any number of moduli:: sage: K.<a> = NumberField(x^3 - 7) sage: R.<x> = K[] sage: CRT([], []) 0 sage: CRT([a], [x]) a sage: f = x^2 + 3 sage: g = x^3 - 5 sage: h = x^5 + x^2 - 9 sage: k = CRT([1, a, 3], [f, g, h]); k (127/26988*a - 5807/386828)*x^9 + (45/8996*a - 33677/1160484)*x^8 + (2/173*a - 6/173)*x^7 + (133/6747*a - 5373/96707)*x^6 + (-6/2249*a + 18584/290121)*x^5 + (-277/8996*a + 38847/386828)*x^4 + (-135/4498*a + 42673/193414)*x^3 + (-1005/8996*a + 470245/1160484)*x^2 + (-1215/8996*a + 141165/386828)*x + 621/8996*a + 836445/386828 sage: k.mod(f) 1 sage: k.mod(g) a sage: k.mod(h) 3 If the moduli are not coprime, a solution may not exist:: sage: crt(4,8,8,12) 20 sage: crt(4,6,8,12) Traceback (most recent call last): ... ValueError: No solution to crt problem since gcd(8,12) does not divide 4-6 sage: x = polygen(QQ) sage: crt(2,3,x-1,x+1) -1/2*x + 5/2 sage: crt(2,x,x^2-1,x^2+1) -1/2*x^3 + x^2 + 1/2*x + 1 sage: crt(2,x,x^2-1,x^3-1) Traceback (most recent call last): ... ValueError: No solution to crt problem since gcd(x^2 - 1,x^3 - 1) does not divide 2-x """ if isinstance(a,list): return CRT_list(a,b) g, alpha, beta = XGCD(m,n) q,r = (b-a).quo_rem(g) if r!=0: raise ValueError, "No solution to crt problem since gcd(%s,%s) does not divide %s-%s"%(m,n,a,b) return (a+q*alpha*m) % lcm(m,n)
c4c4857b06059d9fdba46cbaf64ffd83c3f8bac4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/c4c4857b06059d9fdba46cbaf64ffd83c3f8bac4/arith.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30677, 12, 69, 16, 70, 16, 81, 33, 7036, 16, 82, 33, 7036, 4672, 436, 8395, 2860, 279, 6959, 358, 279, 1680, 25331, 2663, 25407, 1021, 479, 81, 6199, 18, 225, 12943, 30, 225, 300, 12176, 69, 68, 9191, 12176, 70, 10335, 300, 2795, 25435, 261, 6274, 434, 2690, 9221, 364, 1492, 7021, 14876, 353, 2319, 3631, 578, 2795, 6035, 16, 1245, 434, 25435, 471, 1245, 434, 13340, 77, 18, 225, 300, 12176, 81, 68, 9191, 12176, 82, 10335, 300, 2795, 13340, 77, 16, 578, 599, 18, 225, 11550, 30, 225, 971, 12176, 81, 68, 9191, 12176, 82, 10335, 854, 486, 599, 16, 1135, 279, 6959, 1375, 92, 68, 358, 326, 27504, 356, 3197, 89, 2369, 1375, 92, 64, 14298, 427, 279, 521, 70, 1711, 312, 68, 471, 1375, 92, 64, 14298, 427, 324, 521, 70, 1711, 290, 9191, 309, 1245, 1704, 18, 2525, 326, 1680, 25331, 2663, 25407, 1021, 479, 81, 16, 279, 6959, 358, 326, 27504, 356, 3197, 89, 2369, 1704, 309, 471, 1338, 309, 1375, 69, 64, 14298, 427, 324, 64, 84, 1711, 23241, 75, 4315, 12, 81, 16, 82, 16869, 8338, 1021, 6959, 1375, 92, 68, 353, 1338, 5492, 17, 2178, 26109, 1375, 64, 955, 95, 80, 7670, 97, 12, 81, 16, 82, 13, 8338, 225, 971, 12176, 69, 10335, 471, 12176, 70, 10335, 854, 6035, 16, 1135, 279, 27504, 6959, 358, 326, 356, 3197, 89, 2369, 1375, 92, 64, 14298, 427, 279, 67, 77, 64, 84, 1711, 95, 70, 67, 77, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30677, 12, 69, 16, 70, 16, 81, 33, 7036, 16, 82, 33, 7036, 4672, 436, 8395, 2860, 279, 6959, 358, 279, 1680, 25331, 2663, 25407, 1021, 479, 81, 6199, 18, 225, 12943, 30, 225, 300, 12176, 69, 68, 9191, 12176, 70, 10335, 300, 2795, 25435, 261, 6274, 434, 2690, 9221, 364, 1492, 7021, 14876, 353, 2319, 3631, 578, 2795, 6035, 16, 1245, 434, 25435, 471, 1245, 434, 13340, 77, 18, 225, 300, 12176, 81, 68, 9191, 12176, 82, 10335, 300, 2795, 13340, 77, 16, 578, 599, 18, 225, 11550, 30, 225, 971, 12176, 81, 68, 9191, 12176, 82, 10335, 854, 486, 599, 16, 1135, 279, 6959, 1375, 92, 68, 358, 326, 27504, 356, 3197, 89, 2369, 1375, 92, 2 ]
raise errors.BlockDeviceError("command: %s error: %s - %s" % (result.cmd, result.fail_reason, result.output))
_ThrowError("command: %s error: %s - %s", result.cmd, result.fail_reason, result.output)
def Snapshot(self, size): """Create a snapshot copy of an lvm block device.
82463074c0c011a83cf2239affbdb44cb2940801 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/82463074c0c011a83cf2239affbdb44cb2940801/bdev.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10030, 12, 2890, 16, 963, 4672, 3536, 1684, 279, 4439, 1610, 434, 392, 328, 3489, 1203, 2346, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10030, 12, 2890, 16, 963, 4672, 3536, 1684, 279, 4439, 1610, 434, 392, 328, 3489, 1203, 2346, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
""" Create the test suite for the given path """
""" Create the test suite for the given path. """
def make_suite(path=test_dir): """ Create the test suite for the given path """ loader = unittest.TestLoader() python_module_names = get_python_module_names(os.listdir(path)) test_module_names = get_test_module_names(python_module_names) suite = loader.loadTestsFromNames(test_module_names) return suite
f197f660de27f119c9000bdd2c634e6960ce4fd0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4939/f197f660de27f119c9000bdd2c634e6960ce4fd0/scaffold.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 30676, 12, 803, 33, 3813, 67, 1214, 4672, 3536, 1788, 326, 1842, 11371, 364, 326, 864, 589, 18, 3536, 4088, 273, 2836, 3813, 18, 4709, 2886, 1435, 5790, 67, 2978, 67, 1973, 273, 336, 67, 8103, 67, 2978, 67, 1973, 12, 538, 18, 1098, 1214, 12, 803, 3719, 1842, 67, 2978, 67, 1973, 273, 336, 67, 3813, 67, 2978, 67, 1973, 12, 8103, 67, 2978, 67, 1973, 13, 11371, 273, 4088, 18, 945, 14650, 1265, 1557, 12, 3813, 67, 2978, 67, 1973, 13, 225, 327, 11371, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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12, 538, 18, 1098, 1214, 12, 803, 3719, 1842, 67, 2978, 67, 1973, 273, 336, 67, 3813, 67, 2978, 67, 1973, 12, 8103, 67, 2978, 67, 1973, 13, 11371, 273, 4088, 18, 945, 14650, 1265, 1557, 12, 3813, 67, 2978, 67, 1973, 13, 225, 327, 11371, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return self._type.check_feature(feature)
return self.__disk.type.check_feature(feature)
def supportsFeature(self, feature): """Check that the disk type supports the provided feature.""" return self._type.check_feature(feature)
68e7a8aa6f15bf543db5837aaf4dcf6c5ebebe0d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5978/68e7a8aa6f15bf543db5837aaf4dcf6c5ebebe0d/disk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6146, 4595, 12, 2890, 16, 2572, 4672, 3536, 1564, 716, 326, 4234, 618, 6146, 326, 2112, 2572, 12123, 327, 365, 6315, 723, 18, 1893, 67, 7238, 12, 7238, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 16, 2572, 4672, 3536, 1564, 716, 326, 4234, 618, 6146, 326, 2112, 2572, 12123, 327, 365, 6315, 723, 18, 1893, 67, 7238, 12, 7238, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return run_sql("UPDATE schTASK SET status=%s where id=%s", (val, options["task"]))
return run_sql("UPDATE schTASK SET status=%s WHERE id=%s", (val, options["task"]))
def task_update_status(val): """Updates status information in the BibSched task table.""" global options if options["verbose"] >= 9: write_message("Updating task status to %s." % val) return run_sql("UPDATE schTASK SET status=%s where id=%s", (val, options["task"]))
c01e7675eac4ac02844b96fe38be4646d43de28c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/c01e7675eac4ac02844b96fe38be4646d43de28c/bibupload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1562, 67, 2725, 67, 2327, 12, 1125, 4672, 3536, 5121, 1267, 1779, 316, 326, 605, 495, 55, 2049, 1562, 1014, 12123, 2552, 702, 309, 702, 9614, 11369, 11929, 1545, 2468, 30, 1045, 67, 2150, 2932, 17858, 1562, 1267, 358, 738, 87, 1199, 738, 1244, 13, 327, 1086, 67, 4669, 2932, 8217, 18551, 15580, 7855, 1267, 5095, 87, 4852, 612, 5095, 87, 3113, 261, 1125, 16, 702, 9614, 4146, 11929, 3719, 225, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1562, 67, 2725, 67, 2327, 12, 1125, 4672, 3536, 5121, 1267, 1779, 316, 326, 605, 495, 55, 2049, 1562, 1014, 12123, 2552, 702, 309, 702, 9614, 11369, 11929, 1545, 2468, 30, 1045, 67, 2150, 2932, 17858, 1562, 1267, 358, 738, 87, 1199, 738, 1244, 13, 327, 1086, 67, 4669, 2932, 8217, 18551, 15580, 7855, 1267, 5095, 87, 4852, 612, 5095, 87, 3113, 261, 1125, 16, 702, 9614, 4146, 11929, 3719, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
2) 'dir' actually exists, and is a directory.""" if dir is not None and os.path.isdir(dir) and dir not in dirlist: dirlist.insert(0, dir)
2) 'dir' actually exists, and is a directory. """ if dir is None or not os.path.isdir(dir) or dir in dirlist: return for i, path in enumerate(dirlist): if not os.path.isabs(path): dirlist.insert(i + 1, dir) break
def add_dir_to_list(dirlist, dir): """Add the directory 'dir' to the list 'dirlist' (at the front) if 1) 'dir' is not already in 'dirlist' 2) 'dir' actually exists, and is a directory.""" if dir is not None and os.path.isdir(dir) and dir not in dirlist: dirlist.insert(0, dir)
cca5eb64cd979db2e9202838a2db1399aa7b8888 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/cca5eb64cd979db2e9202838a2db1399aa7b8888/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 1214, 67, 869, 67, 1098, 12, 1214, 1098, 16, 1577, 4672, 3536, 986, 326, 1867, 296, 1214, 11, 358, 326, 666, 296, 1214, 1098, 11, 261, 270, 326, 6641, 13, 309, 404, 13, 296, 1214, 11, 353, 486, 1818, 316, 296, 1214, 1098, 11, 576, 13, 296, 1214, 11, 6013, 1704, 16, 471, 353, 279, 1867, 18, 3536, 309, 1577, 353, 599, 578, 486, 1140, 18, 803, 18, 291, 1214, 12, 1214, 13, 578, 1577, 316, 1577, 1098, 30, 327, 364, 277, 16, 589, 316, 4241, 12, 1214, 1098, 4672, 309, 486, 1140, 18, 803, 18, 291, 5113, 12, 803, 4672, 1577, 1098, 18, 6387, 12, 77, 397, 404, 16, 1577, 13, 898, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 1214, 67, 869, 67, 1098, 12, 1214, 1098, 16, 1577, 4672, 3536, 986, 326, 1867, 296, 1214, 11, 358, 326, 666, 296, 1214, 1098, 11, 261, 270, 326, 6641, 13, 309, 404, 13, 296, 1214, 11, 353, 486, 1818, 316, 296, 1214, 1098, 11, 576, 13, 296, 1214, 11, 6013, 1704, 16, 471, 353, 279, 1867, 18, 3536, 309, 1577, 353, 599, 578, 486, 1140, 18, 803, 18, 291, 1214, 12, 1214, 13, 578, 1577, 316, 1577, 1098, 30, 327, 364, 277, 16, 589, 316, 4241, 12, 1214, 1098, 4672, 309, 486, 1140, 18, 803, 18, 291, 5113, 12, 803, 4672, 1577, 1098, 18, 6387, 12, 77, 397, 404, 16, 1577, 13, 898, 225, 2, -100, -100 ]
box2 = gtk.VBox(spacing=20)
box2 = gtk.VBox() box2.set_border_width(15)
def __init__(self): # Game controller. self.controller = Hangman()
c99805dc8b4ef85ccdd69038d55cff9b79b6a2ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/c99805dc8b4ef85ccdd69038d55cff9b79b6a2ea/Hangman.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 468, 14121, 2596, 18, 365, 18, 5723, 273, 670, 539, 4728, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 468, 14121, 2596, 18, 365, 18, 5723, 273, 670, 539, 4728, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
B = (10**A.hadamard_bound()) // d + 1
B = (10**A.hadamard_bound()) + 1
def det_given_divisor(A, d, proof=True, stabilize=2): """ Given a divisor d of the determinant of A, compute the determinant of A. INPUT: A -- a square integer matrix d -- a nonzero integer that is assumed to divide the determinant of A proof -- bool (default True) compute det modulo enough primes so that the determinant is computed provably correctly (via the Hadamard bound). It would be VERY hard for det to fail even with proof=False. stabilize -- int (default: 2) if proof = False, then compute det mod p until stabilize successive modulo det computations stabilize. OUTPUT: integer -- determinant EXAMPLES: sage: import sage.matrix.matrix_integer_dense_hnf as matrix_integer_dense_hnf sage: a = matrix(ZZ,3,[-1, -1, -1, -20, 4, 1, -1, 1, 2]) sage: matrix_integer_dense_hnf.det_given_divisor(a, 3) -30 sage: matrix_integer_dense_hnf.det_given_divisor(a, 3, proof=False) -30 sage: matrix_integer_dense_hnf.det_given_divisor(a, 3, proof=False, stabilize=1) -30 sage: a.det() -30 Here we illustrate proof=False giving a wrong answer: sage: p = matrix_integer_dense_hnf.max_det_prime(2) sage: q = previous_prime(p) sage: a = matrix(ZZ, 2, [p, 0, 0, q]) sage: p * q 1125899772623531 sage: matrix_integer_dense_hnf.det_given_divisor(a, 1, proof=False, stabilize=2) 0 This still works, because we don't work modulo primes that divide the determinant bound, which is found using a p-adic algorithm. sage: a.det(proof=False, stabilize=2) 1125899772623531 3 primes is enough: sage: matrix_integer_dense_hnf.det_given_divisor(a, 1, proof=False, stabilize=3) 1125899772623531 sage: matrix_integer_dense_hnf.det_given_divisor(a, 1, proof=False, stabilize=5) 1125899772623531 sage: matrix_integer_dense_hnf.det_given_divisor(a, 1, proof=True) 1125899772623531 """ p = max_det_prime(A.nrows()) z_mod = [] moduli = [] assert d != 0 if proof: N = 1 B = (10**A.hadamard_bound()) // d + 1 dd = d # bad verbose statement, since computing the log overflows! est = int(RR(B).log() / RR(p).log()) + 1 cnt = 1 verbose("Multimodular det -- need to use about %s primes."%est, level=1) while N < B: if d % p != 0: tm = cputime() dd = det_from_modp_and_divisor(A, d, p, z_mod, moduli) N *= p verbose("computed det mod p=%s which is %s (of about %s)"%(p, cnt, est), tm) p = previous_prime(p) cnt += 1 return dd else: val = [] while True: if d % p != 0: tm = cputime() dd = det_from_modp_and_divisor(A, d, p, z_mod, moduli) verbose("computed det mod %s"%p, tm) val.append(dd) if len(val) >= stabilize and len(set(val[-stabilize:])) == 1: return val[-1] p = previous_prime(p)
a62257babbc1b864e9c9d92a8ea9c3f6fe2c2085 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/a62257babbc1b864e9c9d92a8ea9c3f6fe2c2085/matrix_integer_dense_hnf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3023, 67, 10822, 67, 2892, 12385, 12, 37, 16, 302, 16, 14601, 33, 5510, 16, 384, 22681, 554, 33, 22, 4672, 3536, 16803, 279, 15013, 302, 434, 326, 6328, 970, 434, 432, 16, 3671, 326, 6328, 970, 434, 432, 18, 225, 12943, 30, 432, 1493, 279, 8576, 3571, 3148, 302, 1493, 279, 16966, 3571, 716, 353, 12034, 358, 12326, 326, 6328, 970, 434, 432, 14601, 1493, 1426, 261, 1886, 1053, 13, 3671, 3023, 26109, 7304, 846, 4485, 1427, 716, 326, 6328, 970, 353, 8470, 17197, 6906, 8783, 261, 21985, 326, 670, 361, 301, 1060, 2489, 2934, 225, 2597, 4102, 506, 6422, 61, 7877, 364, 3023, 358, 2321, 5456, 598, 14601, 33, 8381, 18, 384, 22681, 554, 1493, 509, 261, 1886, 30, 576, 13, 309, 14601, 273, 1083, 16, 1508, 3671, 3023, 681, 293, 3180, 384, 22681, 554, 2216, 688, 26109, 3023, 5305, 1012, 384, 22681, 554, 18, 225, 11550, 30, 3571, 1493, 6328, 970, 225, 5675, 8900, 11386, 30, 272, 410, 30, 1930, 272, 410, 18, 5667, 18, 5667, 67, 7745, 67, 25942, 67, 76, 82, 74, 487, 3148, 67, 7745, 67, 25942, 67, 76, 82, 74, 272, 410, 30, 279, 273, 3148, 12, 27096, 16, 23, 16, 18919, 21, 16, 300, 21, 16, 300, 21, 16, 300, 3462, 16, 1059, 16, 404, 16, 300, 21, 16, 404, 16, 576, 5717, 272, 410, 30, 3148, 67, 7745, 67, 25942, 67, 76, 82, 74, 18, 8238, 67, 10822, 67, 2892, 12385, 12, 69, 16, 890, 13, 300, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3023, 67, 10822, 67, 2892, 12385, 12, 37, 16, 302, 16, 14601, 33, 5510, 16, 384, 22681, 554, 33, 22, 4672, 3536, 16803, 279, 15013, 302, 434, 326, 6328, 970, 434, 432, 16, 3671, 326, 6328, 970, 434, 432, 18, 225, 12943, 30, 432, 1493, 279, 8576, 3571, 3148, 302, 1493, 279, 16966, 3571, 716, 353, 12034, 358, 12326, 326, 6328, 970, 434, 432, 14601, 1493, 1426, 261, 1886, 1053, 13, 3671, 3023, 26109, 7304, 846, 4485, 1427, 716, 326, 6328, 970, 353, 8470, 17197, 6906, 8783, 261, 21985, 326, 670, 361, 301, 1060, 2489, 2934, 225, 2597, 4102, 506, 6422, 61, 7877, 364, 3023, 358, 2321, 5456, 598, 14601, 33, 8381, 18, 384, 22681, 554, 1493, 509, 2 ]
elif where=='class': str += I+'<th '+WIDTH+' class="navbar">&nbsp;&nbsp;&nbsp;' str += '<a class="navbar" href="'+`uid.module()`+'.html">' str += 'Module</a>&nbsp;&nbsp;&nbsp;</th>\n' elif where=='module':
elif isinstance(where, UID) and where.is_package(): str += I+'<th '+WIDTH+' bgcolor=" str += '&nbsp;&nbsp;&nbsp;Package&nbsp;&nbsp;&nbsp;</th>\n' elif isinstance(where, UID) and where.is_module():
def _navbar(self, where, uid=None): """ @return: The HTML code for a navigation bar on the given type of page. The navigation bar typically looks like:: [ Package Module Class Tree Index Help ] @rtype: C{string} @param where: The type of page for which a navigation bar should be generated. Possible values are C{'class'}, C{'module'}, C{'package'}, C{'tree'}, C{'index'}, and C{'help'}. @type where: C{string} """ str = self._start_of('Navbar') str += '<table class="navbar" border="0" width="100%"' str += ' cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">\n' str += ' <tr>\n' str += ' <td width="100%">\n' str += ' <table border="0" cellpadding="0" cellspacing="0">\n' str += ' <tr valign="top">\n'
60b4598f963657af72659f4c3492b6028c51c37e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/60b4598f963657af72659f4c3492b6028c51c37e/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11589, 3215, 12, 2890, 16, 1625, 16, 4555, 33, 7036, 4672, 3536, 632, 2463, 30, 1021, 3982, 981, 364, 279, 10394, 4653, 603, 326, 864, 618, 434, 1363, 18, 225, 1021, 10394, 4653, 14755, 10192, 3007, 2866, 225, 306, 7508, 5924, 1659, 4902, 3340, 11288, 308, 225, 632, 86, 723, 30, 385, 95, 1080, 97, 632, 891, 1625, 30, 1021, 618, 434, 1363, 364, 1492, 279, 10394, 4653, 1410, 506, 4374, 18, 225, 25433, 924, 854, 385, 27828, 1106, 11, 5779, 385, 27828, 2978, 11, 5779, 385, 27828, 5610, 11, 5779, 385, 27828, 3413, 11, 5779, 385, 27828, 1615, 11, 5779, 471, 385, 27828, 5201, 11, 5496, 632, 723, 1625, 30, 385, 95, 1080, 97, 3536, 609, 273, 365, 6315, 1937, 67, 792, 2668, 12599, 3215, 6134, 609, 1011, 2368, 2121, 667, 1546, 11589, 3215, 6, 5795, 1546, 20, 6, 1835, 1546, 6625, 9, 5187, 609, 1011, 296, 2484, 9598, 1546, 20, 6, 31509, 1546, 7, 69, 20, 71, 20, 1403, 6, 2484, 14080, 1546, 20, 6, 5333, 82, 11, 609, 1011, 296, 225, 411, 313, 5333, 82, 11, 609, 1011, 296, 565, 411, 4465, 1835, 1546, 6625, 16407, 5333, 82, 11, 609, 1011, 296, 1377, 411, 2121, 5795, 1546, 20, 6, 2484, 9598, 1546, 20, 6, 2484, 14080, 1546, 20, 6, 5333, 82, 11, 609, 1011, 296, 3639, 411, 313, 1244, 724, 1546, 3669, 6, 5333, 82, 11, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11589, 3215, 12, 2890, 16, 1625, 16, 4555, 33, 7036, 4672, 3536, 632, 2463, 30, 1021, 3982, 981, 364, 279, 10394, 4653, 603, 326, 864, 618, 434, 1363, 18, 225, 1021, 10394, 4653, 14755, 10192, 3007, 2866, 225, 306, 7508, 5924, 1659, 4902, 3340, 11288, 308, 225, 632, 86, 723, 30, 385, 95, 1080, 97, 632, 891, 1625, 30, 1021, 618, 434, 1363, 364, 1492, 279, 10394, 4653, 1410, 506, 4374, 18, 225, 25433, 924, 854, 385, 27828, 1106, 11, 5779, 385, 27828, 2978, 11, 5779, 385, 27828, 5610, 11, 5779, 385, 27828, 3413, 11, 5779, 385, 27828, 1615, 11, 5779, 471, 385, 27828, 5201, 11, 5496, 632, 723, 1625, 30, 385, 95, 1080, 97, 3536, 609, 2 ]
t.errWriteln("Couldn't dump to %s (constructed from %s)" %\
T.errWriteln("Couldn't dump to %s (constructed from %s)" %\
def dump( self, o ): """ Try to pickle an object to the currently valid path. @return: the absolute path to which o was pickled @rtype: str """ try: f = self.local() t.Dump( f, o ) return f except: t.errWriteln("Couldn't dump to %s (constructed from %s)" %\ self.formatted(), self.local() ) raise
3c3e49363a7a3c916b648c6154d8aef255c31d3e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/482/3c3e49363a7a3c916b648c6154d8aef255c31d3e/LocalPath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 12, 365, 16, 320, 262, 30, 3536, 6161, 358, 13379, 392, 733, 358, 326, 4551, 923, 589, 18, 225, 632, 2463, 30, 326, 4967, 589, 358, 1492, 320, 1703, 6002, 1259, 632, 86, 723, 30, 609, 3536, 775, 30, 284, 273, 365, 18, 3729, 1435, 268, 18, 10628, 12, 284, 16, 320, 262, 327, 284, 1335, 30, 399, 18, 370, 4913, 292, 82, 2932, 16342, 1404, 4657, 358, 738, 87, 261, 10062, 329, 628, 738, 87, 2225, 738, 64, 365, 18, 14897, 9334, 365, 18, 3729, 1435, 262, 1002, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 284, 273, 365, 18, 3729, 1435, 268, 18, 10628, 12, 284, 16, 320, 262, 327, 284, 1335, 30, 399, 18, 370, 4913, 292, 82, 2932, 16342, 1404, 4657, 358, 738, 87, 261, 10062, 329, 628, 738, 87, 2225, 738, 64, 365, 18, 14897, 9334, 365, 18, 3729, 1435, 262, 1002, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
elif Flag._attrMap['kind'].validate(name):
elif name[-5:]=='_Flag' and Flag._attrMap['kind'].validate(name[:-5]):
def makeMarker(name): if Marker._attrMap['kind'].validate(name): m = Marker() m.kind = name elif Flag._attrMap['kind'].validate(name): m = Flag() m.kind = name m.size = 10 else: raise ValueError, "Invalid marker name %s" % name return m
24877000958f9dfdebd1ed83d3c315a534d27a48 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/24877000958f9dfdebd1ed83d3c315a534d27a48/markers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 7078, 12, 529, 4672, 309, 14742, 6315, 1747, 863, 3292, 9224, 29489, 5662, 12, 529, 4672, 312, 273, 14742, 1435, 312, 18, 9224, 273, 508, 1327, 508, 18919, 25, 26894, 18920, 67, 4678, 11, 471, 9960, 6315, 1747, 863, 3292, 9224, 29489, 5662, 12, 529, 10531, 17, 25, 65, 4672, 312, 273, 9960, 1435, 312, 18, 9224, 273, 508, 312, 18, 1467, 273, 1728, 469, 30, 1002, 2068, 16, 315, 1941, 5373, 508, 738, 87, 6, 738, 508, 327, 312, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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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, 1221, 7078, 12, 529, 4672, 309, 14742, 6315, 1747, 863, 3292, 9224, 29489, 5662, 12, 529, 4672, 312, 273, 14742, 1435, 312, 18, 9224, 273, 508, 1327, 508, 18919, 25, 26894, 18920, 67, 4678, 11, 471, 9960, 6315, 1747, 863, 3292, 9224, 29489, 5662, 12, 529, 10531, 17, 25, 65, 4672, 312, 273, 9960, 1435, 312, 18, 9224, 273, 508, 312, 18, 1467, 273, 1728, 469, 30, 1002, 2068, 16, 315, 1941, 5373, 508, 738, 87, 6, 738, 508, 327, 312, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
logging.getLogger().setLevel(old_level_name)
def post(self, diff, message=None, codereview_issue=None, cc=None): if not message: raise ScriptError("Rietveld requires a message.")
e370a5112998ea8302333524d3434d75eee0d728 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/e370a5112998ea8302333524d3434d75eee0d728/rietveld.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 12, 2890, 16, 3122, 16, 883, 33, 7036, 16, 11012, 822, 1945, 67, 13882, 33, 7036, 16, 4946, 33, 7036, 4672, 309, 486, 883, 30, 1002, 7739, 668, 2932, 54, 6213, 90, 488, 4991, 279, 883, 1199, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1603, 12, 2890, 16, 3122, 16, 883, 33, 7036, 16, 11012, 822, 1945, 67, 13882, 33, 7036, 16, 4946, 33, 7036, 4672, 309, 486, 883, 30, 1002, 7739, 668, 2932, 54, 6213, 90, 488, 4991, 279, 883, 1199, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if not subroot.startswith(fileroot): continue
if subroot.startswith(fileroot) and extension in extensions: found = True break if not found: raise IOError
def preview(self, row, document, command, offset, extensions=default_extensions): """ Preview subtitles with video player.
a45165f5892ab8e2b03583f4a8c9d8137726921c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12852/a45165f5892ab8e2b03583f4a8c9d8137726921c/preview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10143, 12, 2890, 16, 1027, 16, 1668, 16, 1296, 16, 1384, 16, 4418, 33, 1886, 67, 9489, 4672, 3536, 22289, 720, 17643, 598, 6191, 7291, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10143, 12, 2890, 16, 1027, 16, 1668, 16, 1296, 16, 1384, 16, 4418, 33, 1886, 67, 9489, 4672, 3536, 22289, 720, 17643, 598, 6191, 7291, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for i, x in enumerate(self.backends): if x == cur_backend: found = True backend_index = i self.backendcombo.remove_text(i) self.backendcombo.append_text(x) if found: self.backendcombo.set_active(backend_index) else:
self.backendcombo.set_active(0) try: self.backendcombo.set_active(self.backends.index(cur_backend)) except ValueError:
def load_preferences_diag(self): """ Loads data into the preferences Dialog. """ self.wiredcheckbox.set_active(daemon.GetAlwaysShowWiredInterface()) self.reconnectcheckbox.set_active(daemon.GetAutoReconnect()) self.debugmodecheckbox.set_active(daemon.GetDebugMode()) self.displaytypecheckbox.set_active(daemon.GetSignalDisplayType()) dhcp_list = [self.dhcpautoradio, self.dhclientradio, self.dhcpcdradio, self.pumpradio] dhcp_method = daemon.GetDHCPClient() dhcp_list[dhcp_method].set_active(True) wired_link_list = [self.linkautoradio, self.ethtoolradio, self.miitoolradio] wired_link_method = daemon.GetLinkDetectionTool() wired_link_list[wired_link_method].set_active(True)
737dc3ba39c831783a4447ece612794251990552 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/353/737dc3ba39c831783a4447ece612794251990552/prefs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 23219, 67, 12264, 12, 2890, 4672, 3536, 4444, 87, 501, 1368, 326, 12750, 17242, 18, 3536, 225, 365, 18, 91, 2921, 12017, 18, 542, 67, 3535, 12, 21511, 18, 967, 18806, 5706, 59, 2921, 1358, 10756, 365, 18, 25913, 12017, 18, 542, 67, 3535, 12, 21511, 18, 967, 4965, 20427, 10756, 365, 18, 4148, 3188, 12017, 18, 542, 67, 3535, 12, 21511, 18, 967, 2829, 2309, 10756, 365, 18, 5417, 723, 12017, 18, 542, 67, 3535, 12, 21511, 18, 967, 11208, 4236, 559, 10756, 225, 24597, 67, 1098, 273, 306, 2890, 18, 19153, 4057, 69, 3408, 361, 1594, 16, 365, 18, 19153, 4857, 8230, 361, 1594, 16, 365, 18, 19153, 71, 2436, 72, 17006, 16, 365, 18, 84, 2801, 17006, 65, 24597, 67, 2039, 273, 8131, 18, 967, 16501, 4258, 1227, 1435, 24597, 67, 1098, 63, 19153, 4057, 67, 2039, 8009, 542, 67, 3535, 12, 5510, 13, 225, 341, 2921, 67, 1232, 67, 1098, 273, 306, 2890, 18, 1232, 69, 3408, 361, 1594, 16, 365, 18, 546, 6738, 17006, 16, 365, 18, 9197, 305, 1371, 17006, 65, 341, 2921, 67, 1232, 67, 2039, 273, 8131, 18, 967, 2098, 10214, 6364, 1435, 341, 2921, 67, 1232, 67, 1098, 63, 91, 2921, 67, 1232, 67, 2039, 8009, 542, 67, 3535, 12, 5510, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 67, 23219, 67, 12264, 12, 2890, 4672, 3536, 4444, 87, 501, 1368, 326, 12750, 17242, 18, 3536, 225, 365, 18, 91, 2921, 12017, 18, 542, 67, 3535, 12, 21511, 18, 967, 18806, 5706, 59, 2921, 1358, 10756, 365, 18, 25913, 12017, 18, 542, 67, 3535, 12, 21511, 18, 967, 4965, 20427, 10756, 365, 18, 4148, 3188, 12017, 18, 542, 67, 3535, 12, 21511, 18, 967, 2829, 2309, 10756, 365, 18, 5417, 723, 12017, 18, 542, 67, 3535, 12, 21511, 18, 967, 11208, 4236, 559, 10756, 225, 24597, 67, 1098, 273, 306, 2890, 18, 19153, 4057, 69, 3408, 361, 1594, 16, 365, 18, 19153, 4857, 8230, 361, 1594, 16, 365, 18, 19153, 71, 2436, 72, 17006, 16, 365, 2 ]
slides and zero-lag within that group.
slides (except zero-lag) within that group.
def get_next_id(connection, table, id_column): """ Gets the next available id in the specified id_column in the specified table. """ sqlquery = ' '.join(['SELECT', id_column, 'FROM', table ]) ids = [id[0] for id in connection.cursor().execute(sqlquery)] idnums = [int(id.split(':')[2]) for id in ids] new_idnum = max(idnums) + 1 new_id = ':'.join([ids[0].split(':')[0], ids[1].split(':')[1], str(new_idnum)]) return new_id
a54be2507ff78f3bdc42f1d484cd3cdd22558e03 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/a54be2507ff78f3bdc42f1d484cd3cdd22558e03/ligolw_sqlutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4285, 67, 350, 12, 4071, 16, 1014, 16, 612, 67, 2827, 4672, 3536, 11881, 326, 1024, 2319, 612, 316, 326, 1269, 612, 67, 2827, 316, 326, 1269, 1014, 18, 3536, 1847, 2271, 273, 296, 2418, 5701, 12, 3292, 4803, 2187, 612, 67, 2827, 16, 296, 11249, 2187, 1014, 308, 13, 3258, 273, 306, 350, 63, 20, 65, 364, 612, 316, 1459, 18, 9216, 7675, 8837, 12, 4669, 2271, 25887, 612, 21180, 273, 306, 474, 12, 350, 18, 4939, 2668, 2497, 25146, 22, 5717, 364, 612, 316, 3258, 65, 394, 67, 350, 2107, 273, 943, 12, 350, 21180, 13, 397, 404, 394, 67, 350, 273, 3921, 18, 5701, 3816, 2232, 63, 20, 8009, 4939, 2668, 2497, 25146, 20, 6487, 3258, 63, 21,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4285, 67, 350, 12, 4071, 16, 1014, 16, 612, 67, 2827, 4672, 3536, 11881, 326, 1024, 2319, 612, 316, 326, 1269, 612, 67, 2827, 316, 326, 1269, 1014, 18, 3536, 1847, 2271, 273, 296, 2418, 5701, 12, 3292, 4803, 2187, 612, 67, 2827, 16, 296, 11249, 2187, 1014, 308, 13, 3258, 273, 306, 350, 63, 20, 65, 364, 612, 316, 1459, 18, 9216, 7675, 8837, 12, 4669, 2271, 25887, 612, 21180, 273, 306, 474, 12, 350, 18, 4939, 2668, 2497, 25146, 22, 5717, 364, 612, 316, 3258, 65, 394, 67, 350, 2107, 273, 943, 12, 350, 21180, 13, 397, 404, 394, 67, 350, 273, 3921, 18, 5701, 3816, 2232, 63, 20, 8009, 4939, 2668, 2497, 25146, 2 ]
write, read, err = util.popen3(cmd, env=env, newlines=True) retdata = read.read() err = err.read().strip() if err: raise util.Abort(err) return retdata
p = subprocess.Popen(cmd, shell=True, bufsize=-1, close_fds=util.closefds, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, env=env) stdout, stderr = p.communicate() stderr = stderr.strip() if stderr: raise util.Abort(stderr) return stdout
def _svncommand(self, commands, filename=''): path = os.path.join(self._ctx._repo.origroot, self._path, filename) cmd = ['svn'] + commands + [path] cmd = [util.shellquote(arg) for arg in cmd] cmd = util.quotecommand(' '.join(cmd)) env = dict(os.environ) # Avoid localized output, preserve current locale for everything else. env['LC_MESSAGES'] = 'C' write, read, err = util.popen3(cmd, env=env, newlines=True) retdata = read.read() err = err.read().strip() if err: raise util.Abort(err) return retdata
648ea26d1c60da5187dfc3e3fb467d752b5cfa27 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/648ea26d1c60da5187dfc3e3fb467d752b5cfa27/subrepo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 31505, 3076, 12, 2890, 16, 4364, 16, 1544, 2218, 11, 4672, 589, 273, 1140, 18, 803, 18, 5701, 12, 2890, 6315, 5900, 6315, 7422, 18, 4949, 3085, 16, 365, 6315, 803, 16, 1544, 13, 1797, 273, 10228, 31505, 3546, 397, 4364, 397, 306, 803, 65, 1797, 273, 306, 1367, 18, 10304, 6889, 12, 3175, 13, 364, 1501, 316, 1797, 65, 1797, 273, 1709, 18, 9270, 30433, 889, 2668, 2418, 5701, 12, 4172, 3719, 1550, 273, 2065, 12, 538, 18, 28684, 13, 468, 17843, 13596, 876, 16, 9420, 783, 2573, 364, 7756, 469, 18, 1550, 3292, 13394, 67, 26195, 3546, 273, 296, 39, 11, 1045, 16, 855, 16, 393, 273, 1709, 18, 84, 3190, 23, 12, 4172, 16, 1550, 33, 3074, 16, 19181, 33, 5510, 13, 325, 892, 273, 855, 18, 896, 1435, 393, 273, 393, 18, 896, 7675, 6406, 1435, 309, 393, 30, 1002, 1709, 18, 13572, 12, 370, 13, 327, 325, 892, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 31505, 3076, 12, 2890, 16, 4364, 16, 1544, 2218, 11, 4672, 589, 273, 1140, 18, 803, 18, 5701, 12, 2890, 6315, 5900, 6315, 7422, 18, 4949, 3085, 16, 365, 6315, 803, 16, 1544, 13, 1797, 273, 10228, 31505, 3546, 397, 4364, 397, 306, 803, 65, 1797, 273, 306, 1367, 18, 10304, 6889, 12, 3175, 13, 364, 1501, 316, 1797, 65, 1797, 273, 1709, 18, 9270, 30433, 889, 2668, 2418, 5701, 12, 4172, 3719, 1550, 273, 2065, 12, 538, 18, 28684, 13, 468, 17843, 13596, 876, 16, 9420, 783, 2573, 364, 7756, 469, 18, 1550, 3292, 13394, 67, 26195, 3546, 273, 296, 39, 11, 1045, 16, 855, 16, 393, 273, 1709, 18, 84, 3190, 23, 12, 4172, 16, 2 ]
_UpdateProcThreadAttribute(ctypes.byref(lpAttributeList), 0, Attribute, lpValue, cbSize, NULL, NULL)
_UpdateProcThreadAttribute(ctypes.byref(lpAttributeList), 0, Attribute, ctypes.byref(Value), cbSize, None, None)
def UpdateProcThreadAttribute(lpAttributeList, Attribute, Value, cbSize = None): _UpdateProcThreadAttribute = windll.kernel32.UpdateProcThreadAttribute _UpdateProcThreadAttribute.argtypes = [LPPROC_THREAD_ATTRIBUTE_LIST, DWORD, SIZE_T, PVOID, SIZE_T, PVOID, PSIZE_T] _UpdateProcThreadAttribute.restype = bool _UpdateProcThreadAttribute.errcheck = RaiseIfZero Attribute = DWORD(Attribute) lpValue = ctypes.cast(ctypes.pointer(Value), PVOID) if cbSize is None: cbSize = ctypes.sizeof(Value) _UpdateProcThreadAttribute(ctypes.byref(lpAttributeList), 0, Attribute, lpValue, cbSize, NULL, NULL)
84dca437d09c6db2d383060ad8d6c6f94c8d3e4c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7261/84dca437d09c6db2d383060ad8d6c6f94c8d3e4c/kernel32.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2315, 15417, 3830, 1499, 12, 9953, 1499, 682, 16, 3601, 16, 1445, 16, 2875, 1225, 273, 599, 4672, 389, 1891, 15417, 3830, 1499, 273, 17064, 2906, 18, 8111, 1578, 18, 1891, 15417, 3830, 1499, 389, 1891, 15417, 3830, 1499, 18, 3175, 2352, 273, 306, 14461, 3373, 39, 67, 21730, 67, 11616, 67, 7085, 16, 463, 7952, 16, 11963, 67, 56, 16, 27102, 12945, 16, 11963, 67, 56, 16, 27102, 12945, 16, 453, 4574, 67, 56, 65, 389, 1891, 15417, 3830, 1499, 18, 8792, 388, 225, 273, 1426, 389, 1891, 15417, 3830, 1499, 18, 370, 1893, 273, 20539, 2047, 7170, 225, 3601, 273, 463, 7952, 12, 1499, 13, 12423, 620, 282, 273, 6983, 18, 4155, 12, 299, 989, 18, 10437, 12, 620, 3631, 27102, 12945, 13, 309, 2875, 1225, 353, 599, 30, 2875, 1225, 273, 6983, 18, 1467, 792, 12, 620, 13, 389, 1891, 15417, 3830, 1499, 12, 299, 989, 18, 1637, 1734, 12, 9953, 1499, 682, 3631, 374, 16, 3601, 16, 6983, 18, 1637, 1734, 12, 620, 3631, 2875, 1225, 16, 599, 16, 599, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2315, 15417, 3830, 1499, 12, 9953, 1499, 682, 16, 3601, 16, 1445, 16, 2875, 1225, 273, 599, 4672, 389, 1891, 15417, 3830, 1499, 273, 17064, 2906, 18, 8111, 1578, 18, 1891, 15417, 3830, 1499, 389, 1891, 15417, 3830, 1499, 18, 3175, 2352, 273, 306, 14461, 3373, 39, 67, 21730, 67, 11616, 67, 7085, 16, 463, 7952, 16, 11963, 67, 56, 16, 27102, 12945, 16, 11963, 67, 56, 16, 27102, 12945, 16, 453, 4574, 67, 56, 65, 389, 1891, 15417, 3830, 1499, 18, 8792, 388, 225, 273, 1426, 389, 1891, 15417, 3830, 1499, 18, 370, 1893, 273, 20539, 2047, 7170, 225, 3601, 273, 463, 7952, 12, 1499, 13, 12423, 620, 282, 273, 6983, 18, 4155, 12, 299, 989, 18, 2 ]
elif self.category_clist.get_text(row,0)== "Package Selection":
elif self.category_clist.get_text(row,0)== "X Configuration":
def select_category(self, event, row, column, data): if self.category_clist.get_text(row,0)== "Basic Configuration": #change notebook tab self.options_notebook.set_page(0) return elif self.category_clist.get_text(row,0)== "Installation Method": self.options_notebook.set_page(1) return elif self.category_clist.get_text(row,0)== "Partition Information": self.options_notebook.set_page(2) return elif self.category_clist.get_text(row,0)== "Network Configuration": self.options_notebook.set_page(3) return elif self.category_clist.get_text(row,0)== "Authentication": self.options_notebook.set_page(4) return elif self.category_clist.get_text(row,0)== "Firewall Configuration": self.options_notebook.set_page(5) return elif self.category_clist.get_text(row,0)== "X Configuration": self.options_notebook.set_page(6) return elif self.category_clist.get_text(row,0)== "Package Selection": self.options_notebook.set_page(7) return elif self.category_clist.get_text(row,0)== "Pre-Installation Script": self.options_notebook.set_page(8) return elif self.category_clist.get_text(row,0)== "Post-Installation Script": self.options_notebook.set_page(9) return
670901cae1d7c7052675a7ab4c0b846af01c40d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5376/670901cae1d7c7052675a7ab4c0b846af01c40d6/ksconfig_gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 67, 4743, 12, 2890, 16, 871, 16, 1027, 16, 1057, 16, 501, 4672, 309, 365, 18, 4743, 67, 830, 376, 18, 588, 67, 955, 12, 492, 16, 20, 13, 631, 315, 8252, 4659, 6877, 468, 3427, 14718, 3246, 365, 18, 2116, 67, 24422, 18, 542, 67, 2433, 12, 20, 13, 327, 1327, 225, 365, 18, 4743, 67, 830, 376, 18, 588, 67, 955, 12, 492, 16, 20, 13, 631, 315, 21790, 2985, 6877, 365, 18, 2116, 67, 24422, 18, 542, 67, 2433, 12, 21, 13, 327, 1327, 225, 365, 18, 4743, 67, 830, 376, 18, 588, 67, 955, 12, 492, 16, 20, 13, 631, 315, 7003, 15353, 6877, 365, 18, 2116, 67, 24422, 18, 542, 67, 2433, 12, 22, 13, 327, 1327, 225, 365, 18, 4743, 67, 830, 376, 18, 588, 67, 955, 12, 492, 16, 20, 13, 631, 315, 3906, 4659, 6877, 365, 18, 2116, 67, 24422, 18, 542, 67, 2433, 12, 23, 13, 327, 1327, 225, 365, 18, 4743, 67, 830, 376, 18, 588, 67, 955, 12, 492, 16, 20, 13, 631, 315, 6492, 6877, 365, 18, 2116, 67, 24422, 18, 542, 67, 2433, 12, 24, 13, 327, 1327, 225, 365, 18, 4743, 67, 830, 376, 18, 588, 67, 955, 12, 492, 16, 20, 13, 631, 315, 18950, 4659, 6877, 365, 18, 2116, 67, 24422, 18, 542, 67, 2433, 12, 25, 13, 327, 1327, 225, 365, 18, 4743, 67, 830, 376, 18, 588, 67, 955, 12, 492, 16, 20, 13, 631, 315, 60, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 67, 4743, 12, 2890, 16, 871, 16, 1027, 16, 1057, 16, 501, 4672, 309, 365, 18, 4743, 67, 830, 376, 18, 588, 67, 955, 12, 492, 16, 20, 13, 631, 315, 8252, 4659, 6877, 468, 3427, 14718, 3246, 365, 18, 2116, 67, 24422, 18, 542, 67, 2433, 12, 20, 13, 327, 1327, 225, 365, 18, 4743, 67, 830, 376, 18, 588, 67, 955, 12, 492, 16, 20, 13, 631, 315, 21790, 2985, 6877, 365, 18, 2116, 67, 24422, 18, 542, 67, 2433, 12, 21, 13, 327, 1327, 225, 365, 18, 4743, 67, 830, 376, 18, 588, 67, 955, 12, 492, 16, 20, 13, 631, 315, 7003, 15353, 6877, 365, 18, 2116, 67, 24422, 18, 542, 67, 2433, 2 ]
if axis is not None:
if axis is not None and axis > 0:
def any(self, axis=None, out=None):
ce23e8f09f38a59b3eda64bcd0f7dcdf9fa7b8d8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/ce23e8f09f38a59b3eda64bcd0f7dcdf9fa7b8d8/farray.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1281, 12, 2890, 16, 2654, 33, 7036, 16, 596, 33, 7036, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
import IRC return "%s%s %s" % (" ".join(metadata), IRC.format(':', 'bold'), log)
from IRC.Formatting import format return "%s%s %s" % (" ".join(metadata), format(':', 'bold'), log)
def joinMessage(self, metadata, log): import IRC return "%s%s %s" % (" ".join(metadata), IRC.format(':', 'bold'), log)
d830e60292e5b3177afd7169fb02bbe99a80d291 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9478/d830e60292e5b3177afd7169fb02bbe99a80d291/Formatters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1233, 1079, 12, 2890, 16, 1982, 16, 613, 4672, 1930, 467, 11529, 327, 2213, 87, 9, 87, 738, 87, 6, 738, 7566, 3552, 5701, 12, 4165, 3631, 467, 11529, 18, 2139, 2668, 30, 2187, 296, 16390, 19899, 613, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1233, 1079, 12, 2890, 16, 1982, 16, 613, 4672, 1930, 467, 11529, 327, 2213, 87, 9, 87, 738, 87, 6, 738, 7566, 3552, 5701, 12, 4165, 3631, 467, 11529, 18, 2139, 2668, 30, 2187, 296, 16390, 19899, 613, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
default_locale = locale.setlocale(locale.LC_ALL) try: locale.setlocale(locale.LC_ALL, 'en') except: locale.setlocale(locale.LC_ALL, 'en_US') t.sort(lambda x, y: locale.strcoll(x[0], y[0])) locale.setlocale(locale.LC_ALL, default_locale)
if skey == 0: default_locale = locale.setlocale(locale.LC_ALL) try: locale.setlocale(locale.LC_ALL, 'en') except: locale.setlocale(locale.LC_ALL, 'en_US') t.sort(lambda x, y: locale.strcoll(x[0], y[0])) locale.setlocale(locale.LC_ALL, default_locale) else: t.sort()
def tt_get_messages(self, query, skey, rkey): """ Returns a list of messages, filtered and sorted according with the given parameters. @param query: query against the list of messages @type query: string @param skey: the sorting key @type skey: string @param rkey: indicates if the list must be reversed @type rkey: string """ msgs = [] langs = self.tt_get_languages_mapping() if skey == 'msg': skey = 0 try: regex = re.compile(query.strip().lower()) except: regex = re.compile('') msgs_append = msgs.append for m, t in self._messages.items(): if regex.search(m.lower()): e = [m] i = 1 for lang in langs: if skey == lang['code']: skey = i e.append(len(t.get(lang['code'], '').strip())>0) i = i + 1 msgs_append(tuple(e)) t = [(x[skey], x) for x in msgs] default_locale = locale.setlocale(locale.LC_ALL) try: locale.setlocale(locale.LC_ALL, 'en') except: locale.setlocale(locale.LC_ALL, 'en_US') t.sort(lambda x, y: locale.strcoll(x[0], y[0])) locale.setlocale(locale.LC_ALL, default_locale) if rkey: t.reverse() msgs = [val for (key, val) in t] return msgs
33a4c35794a8d9ed87371169964fe698ad32fee1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3287/33a4c35794a8d9ed87371169964fe698ad32fee1/TranslationsTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3574, 67, 588, 67, 6833, 12, 2890, 16, 843, 16, 272, 856, 16, 436, 856, 4672, 3536, 2860, 279, 666, 434, 2743, 16, 5105, 471, 3115, 4888, 598, 326, 864, 1472, 18, 632, 891, 843, 30, 843, 5314, 326, 666, 434, 2743, 632, 723, 843, 30, 533, 632, 891, 272, 856, 30, 326, 9602, 498, 632, 723, 272, 856, 30, 533, 632, 891, 436, 856, 30, 8527, 309, 326, 666, 1297, 506, 9553, 632, 723, 436, 856, 30, 533, 3536, 8733, 273, 5378, 26467, 273, 365, 18, 748, 67, 588, 67, 14045, 67, 6770, 1435, 309, 272, 856, 422, 296, 3576, 4278, 272, 856, 273, 374, 775, 30, 3936, 273, 283, 18, 11100, 12, 2271, 18, 6406, 7675, 8167, 10756, 1335, 30, 3936, 273, 283, 18, 11100, 2668, 6134, 8733, 67, 6923, 273, 8733, 18, 6923, 364, 312, 16, 268, 316, 365, 6315, 6833, 18, 3319, 13332, 309, 3936, 18, 3072, 12, 81, 18, 8167, 1435, 4672, 425, 273, 306, 81, 65, 277, 273, 404, 364, 3303, 316, 26467, 30, 309, 272, 856, 422, 3303, 3292, 710, 3546, 30, 272, 856, 273, 277, 425, 18, 6923, 12, 1897, 12, 88, 18, 588, 12, 4936, 3292, 710, 17337, 875, 2934, 6406, 10756, 34, 20, 13, 277, 273, 277, 397, 404, 8733, 67, 6923, 12, 8052, 12, 73, 3719, 268, 273, 306, 12, 92, 63, 87, 856, 6487, 619, 13, 364, 619, 316, 8733, 65, 309, 272, 856, 422, 374, 30, 225, 805, 67, 6339, 273, 2573, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3574, 67, 588, 67, 6833, 12, 2890, 16, 843, 16, 272, 856, 16, 436, 856, 4672, 3536, 2860, 279, 666, 434, 2743, 16, 5105, 471, 3115, 4888, 598, 326, 864, 1472, 18, 632, 891, 843, 30, 843, 5314, 326, 666, 434, 2743, 632, 723, 843, 30, 533, 632, 891, 272, 856, 30, 326, 9602, 498, 632, 723, 272, 856, 30, 533, 632, 891, 436, 856, 30, 8527, 309, 326, 666, 1297, 506, 9553, 632, 723, 436, 856, 30, 533, 3536, 8733, 273, 5378, 26467, 273, 365, 18, 748, 67, 588, 67, 14045, 67, 6770, 1435, 309, 272, 856, 422, 296, 3576, 4278, 272, 856, 273, 374, 775, 30, 3936, 273, 283, 18, 11100, 12, 2271, 18, 6406, 7675, 2 ]
repos_lst.append((repo.name.lower(), repo.dbrepo.private,))
repos_lst.append((repo.name, repo.dbrepo.private,))
def _get_repos_switcher_cached(cached_repo_list): repos_lst = [] for repo in sorted(x for x in cached_repo_list.values()): if HasRepoPermissionAny('repository.write', 'repository.read', 'repository.admin')(repo.name.lower(), 'main page check'): repos_lst.append((repo.name.lower(), repo.dbrepo.private,)) return repos_lst
36c7bb8e278e42bdbe63b1b141bd6cf45e0d920a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4230/36c7bb8e278e42bdbe63b1b141bd6cf45e0d920a/hg_model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 15564, 67, 9610, 264, 67, 7097, 12, 7097, 67, 7422, 67, 1098, 4672, 13686, 67, 16923, 273, 5378, 364, 3538, 316, 3115, 12, 92, 364, 619, 316, 3472, 67, 7422, 67, 1098, 18, 2372, 1435, 4672, 309, 4393, 8791, 5041, 2961, 2668, 9071, 18, 2626, 2187, 296, 9071, 18, 896, 2187, 296, 9071, 18, 3666, 6134, 12, 7422, 18, 529, 18, 8167, 9334, 296, 5254, 1363, 866, 11, 4672, 13686, 67, 16923, 18, 6923, 12443, 7422, 18, 529, 16, 3538, 18, 1966, 7422, 18, 1152, 16, 3719, 225, 327, 13686, 67, 16923, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 15564, 67, 9610, 264, 67, 7097, 12, 7097, 67, 7422, 67, 1098, 4672, 13686, 67, 16923, 273, 5378, 364, 3538, 316, 3115, 12, 92, 364, 619, 316, 3472, 67, 7422, 67, 1098, 18, 2372, 1435, 4672, 309, 4393, 8791, 5041, 2961, 2668, 9071, 18, 2626, 2187, 296, 9071, 18, 896, 2187, 296, 9071, 18, 3666, 6134, 12, 7422, 18, 529, 18, 8167, 9334, 296, 5254, 1363, 866, 11, 4672, 13686, 67, 16923, 18, 6923, 12443, 7422, 18, 529, 16, 3538, 18, 1966, 7422, 18, 1152, 16, 3719, 225, 327, 13686, 67, 16923, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if sys.platform != "darwin":
if sys.platform != "darwin" and \ not sys.platform.startswith('freebsd'):
def testAbles(self): try: f = _fileio._FileIO(TESTFN, "w") self.assertEquals(f.readable(), False) self.assertEquals(f.writable(), True) self.assertEquals(f.seekable(), True) f.close()
bafd209ac6be0a850220f2e339143248c3dd6217 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/bafd209ac6be0a850220f2e339143248c3dd6217/test_fileio.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 5895, 1040, 12, 2890, 4672, 775, 30, 284, 273, 389, 768, 1594, 6315, 812, 4294, 12, 16961, 19793, 16, 315, 91, 7923, 365, 18, 11231, 8867, 12, 74, 18, 11018, 9334, 1083, 13, 365, 18, 11231, 8867, 12, 74, 18, 15699, 9334, 1053, 13, 365, 18, 11231, 8867, 12, 74, 18, 16508, 429, 9334, 1053, 13, 284, 18, 4412, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 5895, 1040, 12, 2890, 4672, 775, 30, 284, 273, 389, 768, 1594, 6315, 812, 4294, 12, 16961, 19793, 16, 315, 91, 7923, 365, 18, 11231, 8867, 12, 74, 18, 11018, 9334, 1083, 13, 365, 18, 11231, 8867, 12, 74, 18, 15699, 9334, 1053, 13, 365, 18, 11231, 8867, 12, 74, 18, 16508, 429, 9334, 1053, 13, 284, 18, 4412, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
xid = self.window.get_xid() self.opacify_obj.deopacify(xid)
self.opacify_obj.deopacify(self.xid)
def deopacify(self): if self.deopacify_request_sid: gobject.source_remove(self.deopacify_request_sid) self.deopacify_request_sid = None if self.deopacify_sid: self.deopacify_sid = None xid = self.window.get_xid() self.opacify_obj.deopacify(xid)
e1ee65e34df89910451464c74294e52eb752eb47 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7075/e1ee65e34df89910451464c74294e52eb752eb47/windowbutton.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 443, 556, 1077, 1164, 12, 2890, 4672, 309, 365, 18, 323, 556, 1077, 1164, 67, 2293, 67, 7453, 30, 314, 1612, 18, 3168, 67, 4479, 12, 2890, 18, 323, 556, 1077, 1164, 67, 2293, 67, 7453, 13, 365, 18, 323, 556, 1077, 1164, 67, 2293, 67, 7453, 273, 599, 309, 365, 18, 323, 556, 1077, 1164, 67, 7453, 30, 365, 18, 323, 556, 1077, 1164, 67, 7453, 273, 599, 19031, 273, 365, 18, 5668, 18, 588, 67, 6212, 1435, 365, 18, 556, 1077, 1164, 67, 2603, 18, 323, 556, 1077, 1164, 12, 6212, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 443, 556, 1077, 1164, 12, 2890, 4672, 309, 365, 18, 323, 556, 1077, 1164, 67, 2293, 67, 7453, 30, 314, 1612, 18, 3168, 67, 4479, 12, 2890, 18, 323, 556, 1077, 1164, 67, 2293, 67, 7453, 13, 365, 18, 323, 556, 1077, 1164, 67, 2293, 67, 7453, 273, 599, 309, 365, 18, 323, 556, 1077, 1164, 67, 7453, 30, 365, 18, 323, 556, 1077, 1164, 67, 7453, 273, 599, 19031, 273, 365, 18, 5668, 18, 588, 67, 6212, 1435, 365, 18, 556, 1077, 1164, 67, 2603, 18, 323, 556, 1077, 1164, 12, 6212, 13, 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 ]
The date-time value returned is the given offset number of
The date-time value returned is the given offset number of
def __init__(self,*args): """Return a new date-time object
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 14, 1968, 4672, 3536, 990, 279, 394, 1509, 17, 957, 733, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.set_colors([stroke, fill]) else: self.set_colors([stroke, stroke]) if n == 1:
self._set_colors([stroke, fill]) else: self._set_colors([stroke, stroke]) if number == 1:
def cross_card(self, n, style, stroke, fill): svg_string = "" if style == "none": self.set_colors([stroke, WHITE]) elif style == "gradient": self.set_colors([stroke, fill]) else: self.set_colors([stroke, stroke]) if n == 1: svg_string += self._svg_cross(45.5) elif n == 2: svg_string += self._svg_cross(25.5) svg_string += self._svg_cross(65.5) else: svg_string += self._svg_cross( 5.5) svg_string += self._svg_cross(45.5) svg_string += self._svg_cross(85.5) return svg_string
3abdde2d4415b99e072401aa95cc310d13046e05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7609/3abdde2d4415b99e072401aa95cc310d13046e05/gencards.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6828, 67, 3327, 12, 2890, 16, 290, 16, 2154, 16, 11040, 16, 3636, 4672, 9804, 67, 1080, 273, 1408, 309, 2154, 422, 315, 6102, 6877, 365, 18, 542, 67, 9724, 3816, 16181, 16, 24353, 5717, 1327, 2154, 422, 315, 20219, 6877, 365, 6315, 542, 67, 9724, 3816, 16181, 16, 3636, 5717, 469, 30, 365, 6315, 542, 67, 9724, 3816, 16181, 16, 11040, 5717, 309, 1300, 422, 404, 30, 9804, 67, 1080, 1011, 365, 6315, 11451, 67, 14653, 12, 7950, 18, 25, 13, 1327, 290, 422, 576, 30, 9804, 67, 1080, 1011, 365, 6315, 11451, 67, 14653, 12, 2947, 18, 25, 13, 9804, 67, 1080, 1011, 365, 6315, 11451, 67, 14653, 12, 9222, 18, 25, 13, 469, 30, 9804, 67, 1080, 1011, 365, 6315, 11451, 67, 14653, 12, 1381, 18, 25, 13, 9804, 67, 1080, 1011, 365, 6315, 11451, 67, 14653, 12, 7950, 18, 25, 13, 9804, 67, 1080, 1011, 365, 6315, 11451, 67, 14653, 12, 7140, 18, 25, 13, 327, 9804, 67, 1080, 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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408, 309, 2154, 422, 315, 6102, 6877, 365, 18, 542, 67, 9724, 3816, 16181, 16, 24353, 5717, 1327, 2154, 422, 315, 20219, 6877, 365, 6315, 542, 67, 9724, 3816, 16181, 16, 3636, 5717, 469, 30, 365, 6315, 542, 67, 9724, 3816, 16181, 16, 11040, 5717, 309, 1300, 422, 404, 30, 9804, 67, 1080, 1011, 365, 6315, 11451, 67, 14653, 12, 7950, 18, 25, 13, 1327, 290, 422, 576, 30, 9804, 67, 1080, 1011, 365, 6315, 11451, 67, 14653, 12, 2947, 18, 25, 13, 9804, 67, 1080, 1011, 365, 6315, 11451, 67, 14653, 12, 9222, 18, 25, 13, 469, 30, 9804, 2 ]
for sliver in slivers:
for slicename in slivers:
def install_gids(api, slivers): # install node gid node_gid_path = config_dir + os.sep + "node.gid" node_gid = GID(filename=node_gid_file) node_gid_str = node_gid.save_to_string(save_parents=True) node_hrn = node_gid.get_hrn() # get currently installed slice and node gids interface_hrn = api.config.SFA_INTERFACE_HRN slice_gids = {} node_gids = {} for sliver in slivers: slice_gid_filename = "/vservers/%s/etc/slice.gid" % slicename node_gid_filename = "/vservers/%s/etc/node.gid" % slicename if os.path.isfile(slice_gid_filename): gid_file = open(slice_gid_filename, 'r') slice_gids[sliver] = gid_file.read() gid_file.close() if os.path.isfile(node_gid_filename): gid_file = open(node_gid_filename, 'r') node_gids[sliver] = gid_file.read() gid_file.close() # convert slicenames to hrns hrns = [slicename_to_hrn(interface_hrn, slicename) \ for slicename in slivers] # get current gids from registry cred = api.getCredential() registry = api.get_registry() records = registry.GetGids(cred, hrns) for record in records: # skip if this isnt a slice record if not record['type'] == 'slice': continue vserver_path = "/vservers/%(slicename)s" % locals() # skip if the slice isnt instantiated if not os.path.exists(vserver_path): continue # install slice gid if it doesnt already exist or has changed slice_gid_str = record['gid'] slicename = hrn_to_pl_slicename(record['hrn']) if slicename not in slice_gids or slice_gids[slicename] != slice_gid_str: gid_filename = os.sep.join([vserver_path, "etc", "slice.gid"]) GID(string=slice_gid_str).save_to_file(gid_filename, save_parents=True) # install slice gid if it doesnt already exist or has changed if slicename not in node_gids or node_gids[slicename] != node_gid_str: gid_filename = os.sep.join([vserver_path, "etc", "node.gid"]) GID(string=node_gid_str).save_to_file(gid_filename, save_parents=True)
a1b8649eb48bec7cddb692f115cdc806eddc9baf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6995/a1b8649eb48bec7cddb692f115cdc806eddc9baf/sfagids.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 67, 75, 2232, 12, 2425, 16, 2020, 6760, 4672, 468, 3799, 756, 11399, 756, 67, 15780, 67, 803, 273, 642, 67, 1214, 397, 1140, 18, 10814, 397, 315, 2159, 18, 15780, 6, 756, 67, 15780, 273, 611, 734, 12, 3459, 33, 2159, 67, 15780, 67, 768, 13, 756, 67, 15780, 67, 701, 273, 756, 67, 15780, 18, 5688, 67, 869, 67, 1080, 12, 5688, 67, 12606, 33, 5510, 13, 756, 67, 7256, 82, 273, 756, 67, 15780, 18, 588, 67, 7256, 82, 1435, 225, 468, 336, 4551, 5876, 2788, 471, 756, 314, 2232, 1560, 67, 7256, 82, 273, 1536, 18, 1425, 18, 55, 2046, 67, 18865, 67, 15024, 50, 2788, 67, 75, 2232, 273, 2618, 756, 67, 75, 2232, 273, 2618, 364, 2020, 335, 1069, 316, 2020, 6760, 30, 2788, 67, 15780, 67, 3459, 273, 2206, 90, 14247, 5258, 87, 19, 14175, 19, 6665, 18, 15780, 6, 738, 2020, 335, 1069, 756, 67, 15780, 67, 3459, 273, 2206, 90, 14247, 5258, 87, 19, 14175, 19, 2159, 18, 15780, 6, 738, 2020, 335, 1069, 309, 1140, 18, 803, 18, 291, 768, 12, 6665, 67, 15780, 67, 3459, 4672, 11399, 67, 768, 273, 1696, 12, 6665, 67, 15780, 67, 3459, 16, 296, 86, 6134, 2788, 67, 75, 2232, 63, 2069, 1667, 65, 273, 11399, 67, 768, 18, 896, 1435, 11399, 67, 768, 18, 4412, 1435, 309, 1140, 18, 803, 18, 291, 768, 12, 2159, 67, 15780, 67, 3459, 4672, 11399, 67, 768, 273, 1696, 12, 2159, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 67, 75, 2232, 12, 2425, 16, 2020, 6760, 4672, 468, 3799, 756, 11399, 756, 67, 15780, 67, 803, 273, 642, 67, 1214, 397, 1140, 18, 10814, 397, 315, 2159, 18, 15780, 6, 756, 67, 15780, 273, 611, 734, 12, 3459, 33, 2159, 67, 15780, 67, 768, 13, 756, 67, 15780, 67, 701, 273, 756, 67, 15780, 18, 5688, 67, 869, 67, 1080, 12, 5688, 67, 12606, 33, 5510, 13, 756, 67, 7256, 82, 273, 756, 67, 15780, 18, 588, 67, 7256, 82, 1435, 225, 468, 336, 4551, 5876, 2788, 471, 756, 314, 2232, 1560, 67, 7256, 82, 273, 1536, 18, 1425, 18, 55, 2046, 67, 18865, 67, 15024, 50, 2788, 67, 75, 2232, 273, 2618, 756, 67, 2 ]
ldst t1, seg, sib, disp st reg, seg, sib, disp
ldstl t1, seg, sib, disp stul reg, seg, sib, disp
def macroop XCHG_M_R
11bb678a8017bba31c69847ee87212579b6b2f02 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6787/11bb678a8017bba31c69847ee87212579b6b2f02/xchg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 1139, 1792, 43, 67, 49, 67, 54, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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-100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if self.config.html_out_suffix:
if self.config.html_file_suffix:
def init(self): """Load templates.""" self.init_templates() self.init_translator_class() if self.config.html_out_suffix: self.out_suffix = self.config.html_file_suffix
71b990e4d3101aa8d956673c8b7a6ef48e6b5180 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5532/71b990e4d3101aa8d956673c8b7a6ef48e6b5180/builder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12, 2890, 4672, 3536, 2563, 5539, 12123, 365, 18, 2738, 67, 8502, 1435, 365, 18, 2738, 67, 17879, 67, 1106, 1435, 309, 365, 18, 1425, 18, 2620, 67, 768, 67, 8477, 30, 365, 18, 659, 67, 8477, 273, 365, 18, 1425, 18, 2620, 67, 768, 67, 8477, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12, 2890, 4672, 3536, 2563, 5539, 12123, 365, 18, 2738, 67, 8502, 1435, 365, 18, 2738, 67, 17879, 67, 1106, 1435, 309, 365, 18, 1425, 18, 2620, 67, 768, 67, 8477, 30, 365, 18, 659, 67, 8477, 273, 365, 18, 1425, 18, 2620, 67, 768, 67, 8477, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'original_size': (600,600),
'original_size': None,
def isBinary(self): return 1
95e032d7ba321f13c19bb473fd88f0e1ccb41c5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/95e032d7ba321f13c19bb473fd88f0e1ccb41c5c/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 5905, 12, 2890, 4672, 327, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 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, 353, 5905, 12, 2890, 4672, 327, 404, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
pkgNames = set([x.split(':')[-1] for x in troveNames])
pkgNames = set([x.split(':')[0] for x in troveNames])
def nextVersions(repos, db, sourceBinaryList, alwaysBumpCount=False): # search for all the packages that are being created by this cook - # we take the max of all of these versions as our latest. query = {} d = {} if repos: for sourceVersion, troveNames, troveFlavors in sourceBinaryList: if sourceVersion.isOnLocalHost(): continue pkgNames = set([x.split(':')[-1] for x in troveNames]) for pkgName in pkgNames: if pkgName not in query: query[pkgName] = {} label = sourceVersion.getBinaryVersion().trailingLabel() query[pkgName][label] = None d = repos.getTroveVersionsByLabel(query, troveTypes = repos.TROVE_QUERY_ALL) nextVersions = [] for sourceVersion, troveNames, troveFlavors in sourceBinaryList: if not isinstance(troveFlavors, (list, tuple, set)): troveFlavors = set([troveFlavors]) else: troveFlavors = set(troveFlavors) newVersion = _nextVersionFromQuery(d, db, troveNames, sourceVersion, troveFlavors, alwaysBumpCount=alwaysBumpCount) nextVersions.append(newVersion) return nextVersions
c0cd0d80d9f2dae814ca9a580d2aabf24001ebde /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/c0cd0d80d9f2dae814ca9a580d2aabf24001ebde/nextversion.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 5940, 12, 15564, 16, 1319, 16, 1084, 5905, 682, 16, 3712, 38, 2801, 1380, 33, 8381, 4672, 468, 1623, 364, 777, 326, 5907, 716, 854, 3832, 2522, 635, 333, 15860, 300, 468, 732, 4862, 326, 943, 434, 777, 434, 4259, 5244, 487, 3134, 4891, 18, 843, 273, 2618, 302, 273, 2618, 309, 13686, 30, 364, 1084, 1444, 16, 23432, 537, 1557, 16, 23432, 537, 2340, 842, 1383, 316, 1084, 5905, 682, 30, 309, 1084, 1444, 18, 291, 1398, 2042, 2594, 13332, 1324, 3475, 1557, 273, 444, 3816, 92, 18, 4939, 2668, 2497, 25146, 20, 65, 364, 619, 316, 23432, 537, 1557, 5717, 364, 27288, 316, 3475, 1557, 30, 309, 27288, 486, 316, 843, 30, 843, 63, 10657, 461, 65, 273, 2618, 1433, 273, 1084, 1444, 18, 588, 5905, 1444, 7675, 26453, 2224, 1435, 843, 63, 10657, 461, 6362, 1925, 65, 273, 599, 225, 302, 273, 13686, 18, 588, 56, 303, 537, 5940, 858, 2224, 12, 2271, 16, 23432, 537, 2016, 273, 13686, 18, 56, 1457, 3412, 67, 10753, 67, 4685, 13, 1024, 5940, 273, 5378, 364, 1084, 1444, 16, 23432, 537, 1557, 16, 23432, 537, 2340, 842, 1383, 316, 1084, 5905, 682, 30, 309, 486, 1549, 12, 88, 303, 537, 2340, 842, 1383, 16, 261, 1098, 16, 3193, 16, 444, 3719, 30, 23432, 537, 2340, 842, 1383, 273, 444, 3816, 88, 303, 537, 2340, 842, 1383, 5717, 469, 30, 23432, 537, 2340, 842, 1383, 273, 444, 12, 88, 303, 537, 2340, 842, 1383, 13, 28906, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 5940, 12, 15564, 16, 1319, 16, 1084, 5905, 682, 16, 3712, 38, 2801, 1380, 33, 8381, 4672, 468, 1623, 364, 777, 326, 5907, 716, 854, 3832, 2522, 635, 333, 15860, 300, 468, 732, 4862, 326, 943, 434, 777, 434, 4259, 5244, 487, 3134, 4891, 18, 843, 273, 2618, 302, 273, 2618, 309, 13686, 30, 364, 1084, 1444, 16, 23432, 537, 1557, 16, 23432, 537, 2340, 842, 1383, 316, 1084, 5905, 682, 30, 309, 1084, 1444, 18, 291, 1398, 2042, 2594, 13332, 1324, 3475, 1557, 273, 444, 3816, 92, 18, 4939, 2668, 2497, 25146, 20, 65, 364, 619, 316, 23432, 537, 1557, 5717, 364, 27288, 316, 3475, 1557, 30, 309, 27288, 486, 316, 843, 30, 843, 63, 10657, 2 ]
self.sip.app.debugMessage(message.toString()) self.sip.app.endCall(self.cookie, 'Other end sent %s'%message.toString()) self.sip._delCallObject(self.getCallID())
else: self.sip.app.debugMessage(message.toString()) self.sip.app.endCall(self.cookie, 'Other end sent %s'%message.toString()) self.sip._delCallObject(self.getCallID())
def recvResponse(self, message): state = self.getState() print "Handling %s while in state %s"%(message.code, state) if message.code in ( 100, 180, 181, 182 ): return elif message.code == 200: if state == 'SENT_INVITE': self.sip.app.debugMessage("Got Response 200\n") self.sendAck(message, startRTP=1) elif state == 'CONNECTED': self.sip.app.debugMessage('Got duplicate OK to our ACK') self.sendAck(message) elif state == 'SENT_BYE': self.sip.app.endCall(self.cookie) self.sip._delCallObject(self.getCallID()) self.sip.app.debugMessage("Hung up on call %s"%self.getCallID()) self.sip.app.statusMessage("idle") else: self.sip.app.debugMessage('Got OK in unexpected state %s'%state) elif message.code - (message.code%100) == 400: self.call_attempts += 1 if self.call_attempts > 5: print "TOO MANY AUTH FAILURES" self.setState('ABORTED') return if message.code == 401: if state in ( 'SENT_INVITE', ): a = message.headers.get('www-authenticate') if a: auth = self.calcAuth(method='INVITE', uri=str(self.remote), authhdr=a[0]) self.sendInvite(toAddr=None, auth=auth, authhdr='authorization') else: # We got bounced and told to bugger off. print "401, no further possible actions" else: print "Unknown state '%s' for a 401"%(state) elif message.code == 407: if state in ( 'SENT_INVITE', ): a = message.headers.get('proxy-authenticate') if a: auth = self.calcAuth(method='INVITE', uri=str(self.remote), authhdr=a[0]) self.sendInvite(toAddr=None, auth=auth, authhdr='proxy-authorization') else: # We got bounced and told to bugger off. print "407, no further possible actions"
897cd87170bee629b3594dd43d2026a496f62fa1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1265/897cd87170bee629b3594dd43d2026a496f62fa1/sip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10665, 1064, 12, 2890, 16, 883, 4672, 919, 273, 365, 18, 588, 1119, 1435, 1172, 315, 14701, 738, 87, 1323, 316, 919, 738, 87, 6, 17105, 2150, 18, 710, 16, 919, 13, 309, 883, 18, 710, 316, 261, 2130, 16, 9259, 16, 6549, 21, 16, 6549, 22, 262, 30, 327, 1327, 883, 18, 710, 422, 4044, 30, 309, 919, 422, 296, 17418, 67, 706, 58, 5398, 4278, 365, 18, 28477, 18, 2910, 18, 4148, 1079, 2932, 15617, 2306, 4044, 64, 82, 7923, 365, 18, 4661, 11931, 12, 2150, 16, 787, 54, 11130, 33, 21, 13, 1327, 919, 422, 296, 29011, 4278, 365, 18, 28477, 18, 2910, 18, 4148, 1079, 2668, 15617, 6751, 7791, 358, 3134, 26069, 6134, 365, 18, 4661, 11931, 12, 2150, 13, 1327, 919, 422, 296, 17418, 67, 6486, 41, 4278, 365, 18, 28477, 18, 2910, 18, 409, 1477, 12, 2890, 18, 8417, 13, 365, 18, 28477, 6315, 3771, 1477, 921, 12, 2890, 18, 588, 1477, 734, 10756, 365, 18, 28477, 18, 2910, 18, 4148, 1079, 2932, 44, 20651, 731, 603, 745, 738, 87, 28385, 2890, 18, 588, 1477, 734, 10756, 365, 18, 28477, 18, 2910, 18, 2327, 1079, 2932, 20390, 7923, 469, 30, 365, 18, 28477, 18, 2910, 18, 4148, 1079, 2668, 15617, 7791, 316, 9733, 919, 738, 87, 11, 9, 2019, 13, 1327, 883, 18, 710, 300, 261, 2150, 18, 710, 9, 6625, 13, 422, 7409, 30, 365, 18, 1991, 67, 14359, 1011, 404, 309, 365, 18, 1991, 67, 14359, 405, 1381, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10665, 1064, 12, 2890, 16, 883, 4672, 919, 273, 365, 18, 588, 1119, 1435, 1172, 315, 14701, 738, 87, 1323, 316, 919, 738, 87, 6, 17105, 2150, 18, 710, 16, 919, 13, 309, 883, 18, 710, 316, 261, 2130, 16, 9259, 16, 6549, 21, 16, 6549, 22, 262, 30, 327, 1327, 883, 18, 710, 422, 4044, 30, 309, 919, 422, 296, 17418, 67, 706, 58, 5398, 4278, 365, 18, 28477, 18, 2910, 18, 4148, 1079, 2932, 15617, 2306, 4044, 64, 82, 7923, 365, 18, 4661, 11931, 12, 2150, 16, 787, 54, 11130, 33, 21, 13, 1327, 919, 422, 296, 29011, 4278, 365, 18, 28477, 18, 2910, 18, 4148, 1079, 2668, 15617, 6751, 7791, 358, 3134, 26069, 6134, 365, 2 ]
self.html[1] = self.load(self.pyfile.url)
self.html[1] = self.load(self.pyfile.url,ref=False) print self.html[1] sleep(1)
def freeWait(self): """downloads html with the important informations """ self.html[1] = self.load(self.pyfile.url) self.no_download = True
c175b751e48f0b533cc11f99aa0c636c70b73bc8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/c175b751e48f0b533cc11f99aa0c636c70b73bc8/RapidshareCom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4843, 5480, 12, 2890, 4672, 3536, 7813, 87, 1729, 598, 326, 10802, 26978, 3536, 365, 18, 2620, 63, 21, 65, 273, 365, 18, 945, 12, 2890, 18, 2074, 768, 18, 718, 16, 1734, 33, 8381, 13, 1172, 365, 18, 2620, 63, 21, 65, 225, 5329, 12, 21, 13, 225, 365, 18, 2135, 67, 7813, 273, 1053, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4843, 5480, 12, 2890, 4672, 3536, 7813, 87, 1729, 598, 326, 10802, 26978, 3536, 365, 18, 2620, 63, 21, 65, 273, 365, 18, 945, 12, 2890, 18, 2074, 768, 18, 718, 16, 1734, 33, 8381, 13, 1172, 365, 18, 2620, 63, 21, 65, 225, 5329, 12, 21, 13, 225, 365, 18, 2135, 67, 7813, 273, 1053, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
except: transaction=None
def publish(self, module_name, after_list, published='web_objects',
835d90b27a6a934b9f526a4b0ced014ec0fd8cc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/835d90b27a6a934b9f526a4b0ced014ec0fd8cc1/Publish.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3808, 12, 2890, 16, 1605, 67, 529, 16, 1839, 67, 1098, 16, 9487, 2218, 4875, 67, 6911, 2187, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3808, 12, 2890, 16, 1605, 67, 529, 16, 1839, 67, 1098, 16, 9487, 2218, 4875, 67, 6911, 2187, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
DSTAUTO uses DSTADJUST for >=24h and DSTKEEP for < 24h recurconf.recrule delta minutes.
DSTAUTO uses DSTADJUST for a delta >=24h and DSTKEEP for < 24h.
def recurringSequenceTimeDelta(recurconf): """a sequence of integer objects. @param recurconf.start: a python datetime (non-naive) or Zope DateTime. @param recurconf.recrule: Timedelta as integer >=0 (unit is minutes) or None. @param recurconf.until: a python datetime (non-naive) or Zope DateTime >=start or None. @param recurconf.dst: is either DSTADJUST, DSTKEEP or DSTAUTO. On DSTADJUST we have a more human behaviour on daylight saving time changes: 8:00 on day before spring dst-change plus 24h results in 8:00 day after dst-change, which means in fact one hour less is added. On a recurconf.recrule < 24h this will fail! If DSTKEEP is selected, the time is added in its real hours, so the above example results in 9:00 on day after dst-change. DSTAUTO uses DSTADJUST for >=24h and DSTKEEP for < 24h recurconf.recrule delta minutes. @return: a sequence of dates """ start = recurconf.start delta = recurconf.recrule until = recurconf.until dst = recurconf.dst start = pydt(start) if delta is None or delta < 1 or until is None: yield start return yield start before = start until = pydt(until) delta = datetime.timedelta(minutes=delta) while True: after = before + delta after = recurrence_normalize(after, delta, dst) if utc(after) > utc(until): break yield after before = after
3a6bdc0dd355230e95a19cacc74b6b2d65aaa3dc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14312/3a6bdc0dd355230e95a19cacc74b6b2d65aaa3dc/recurring.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26043, 4021, 950, 9242, 12, 266, 1397, 3923, 4672, 3536, 69, 3102, 434, 3571, 2184, 18, 225, 632, 891, 8112, 3923, 18, 1937, 30, 279, 5790, 3314, 261, 5836, 17, 6582, 688, 13, 578, 2285, 1306, 3716, 18, 632, 891, 8112, 3923, 18, 266, 3353, 725, 30, 23925, 8967, 487, 3571, 1545, 20, 261, 4873, 353, 6824, 13, 578, 599, 18, 632, 891, 8112, 3923, 18, 12198, 30, 279, 5790, 3314, 261, 5836, 17, 6582, 688, 13, 578, 2285, 1306, 3716, 1545, 1937, 578, 599, 18, 632, 891, 8112, 3923, 18, 11057, 30, 353, 3344, 463, 882, 1880, 46, 5996, 16, 463, 882, 6859, 10541, 578, 463, 882, 18909, 18, 2755, 463, 882, 1880, 46, 5996, 732, 1240, 279, 1898, 8672, 14273, 603, 2548, 5099, 12392, 813, 3478, 30, 1725, 30, 713, 603, 2548, 1865, 25974, 3046, 17, 3427, 8737, 4248, 76, 1686, 316, 1725, 30, 713, 2548, 1839, 3046, 17, 3427, 16, 1492, 4696, 316, 5410, 1245, 6126, 5242, 353, 3096, 18, 2755, 279, 8112, 3923, 18, 266, 3353, 725, 411, 4248, 76, 333, 903, 2321, 5, 971, 463, 882, 6859, 10541, 353, 3170, 16, 326, 813, 353, 3096, 316, 2097, 2863, 7507, 16, 1427, 326, 5721, 3454, 1686, 316, 2468, 30, 713, 603, 2548, 1839, 3046, 17, 3427, 18, 463, 882, 18909, 4692, 463, 882, 1880, 46, 5996, 364, 279, 3622, 1545, 3247, 76, 471, 463, 882, 6859, 10541, 364, 411, 4248, 76, 18, 225, 632, 2463, 30, 279, 3102, 434, 7811, 3536, 787, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26043, 4021, 950, 9242, 12, 266, 1397, 3923, 4672, 3536, 69, 3102, 434, 3571, 2184, 18, 225, 632, 891, 8112, 3923, 18, 1937, 30, 279, 5790, 3314, 261, 5836, 17, 6582, 688, 13, 578, 2285, 1306, 3716, 18, 632, 891, 8112, 3923, 18, 266, 3353, 725, 30, 23925, 8967, 487, 3571, 1545, 20, 261, 4873, 353, 6824, 13, 578, 599, 18, 632, 891, 8112, 3923, 18, 12198, 30, 279, 5790, 3314, 261, 5836, 17, 6582, 688, 13, 578, 2285, 1306, 3716, 1545, 1937, 578, 599, 18, 632, 891, 8112, 3923, 18, 11057, 30, 353, 3344, 463, 882, 1880, 46, 5996, 16, 463, 882, 6859, 10541, 578, 463, 882, 18909, 18, 2755, 463, 882, 1880, 46, 5996, 732, 1240, 2 ]
def get_metadata(stream): mr = MobiReader(stream) if mr.book_header.exth is None: mi = MetaInformation(mr.name, [_('Unknown')]) else: mi = mr.create_opf('dummy.html') try: if hasattr(mr.book_header.exth, 'cover_offset'): cover_index = mr.book_header.first_image_index + mr.book_header.exth.cover_offset data = mr.sections[int(cover_index)][0] else: data = mr.sections[mr.book_header.first_image_index][0] buf = cStringIO.StringIO(data) im = PILImage.open(buf) obuf = cStringIO.StringIO() im.convert('RGBA').save(obuf, format='JPEG') mi.cover_data = ('jpg', obuf.getvalue()) except: import traceback traceback.print_exc()
def get_metadata(stream): mi = MetaInformation(os.path.basename(stream.name), [_('Unknown')]) try: mh = MetadataHeader(stream) if mh.exth is not None: if mh.exth.mi is not None: mi = mh.exth.mi else: with TemporaryDirectory('_mobi_meta_reader') as tdir: mr = MobiReader(stream) mr.extract_content(tdir) if mr.embedded_mi is not None: mi = mr.embedded_mi if hasattr(mh.exth, 'cover_offset'): cover_index = mh.first_image_index + mh.exth.cover_offset data = mh.section_data(int(cover_index)) else: data = mh.section_data(mh.first_image_index) buf = cStringIO.StringIO(data) im = PILImage.open(buf) obuf = cStringIO.StringIO() im.convert('RGBA').save(obuf, format='JPEG') mi.cover_data = ('jpg', obuf.getvalue()) except: import traceback traceback.print_exc()
def get_metadata(stream): mr = MobiReader(stream) if mr.book_header.exth is None: mi = MetaInformation(mr.name, [_('Unknown')]) else: mi = mr.create_opf('dummy.html') try: if hasattr(mr.book_header.exth, 'cover_offset'): cover_index = mr.book_header.first_image_index + mr.book_header.exth.cover_offset data = mr.sections[int(cover_index)][0] else: data = mr.sections[mr.book_header.first_image_index][0] buf = cStringIO.StringIO(data) im = PILImage.open(buf) obuf = cStringIO.StringIO() im.convert('RGBA').save(obuf, format='JPEG') mi.cover_data = ('jpg', obuf.getvalue()) except: import traceback traceback.print_exc() return mi
3c70e352df9eb25eb23ab6ae6718245d83fa857f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/3c70e352df9eb25eb23ab6ae6718245d83fa857f/reader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4165, 12, 3256, 4672, 12837, 273, 6565, 5369, 12, 538, 18, 803, 18, 13909, 12, 3256, 18, 529, 3631, 306, 67, 2668, 4874, 6134, 5717, 775, 30, 17819, 273, 6912, 1864, 12, 3256, 13, 225, 309, 17819, 18, 408, 76, 353, 486, 599, 30, 309, 17819, 18, 408, 76, 18, 9197, 353, 486, 599, 30, 12837, 273, 17819, 18, 408, 76, 18, 9197, 469, 30, 598, 22791, 2853, 2668, 67, 81, 30875, 67, 3901, 67, 10530, 6134, 487, 268, 1214, 30, 9752, 273, 490, 30875, 2514, 12, 3256, 13, 9752, 18, 8004, 67, 1745, 12, 88, 1214, 13, 309, 9752, 18, 20722, 67, 9197, 353, 486, 599, 30, 12837, 273, 9752, 18, 20722, 67, 9197, 225, 309, 3859, 12, 81, 76, 18, 408, 76, 16, 296, 3165, 67, 3348, 11, 4672, 5590, 67, 1615, 273, 17819, 18, 3645, 67, 2730, 67, 1615, 397, 17819, 18, 408, 76, 18, 3165, 67, 3348, 501, 225, 273, 17819, 18, 3464, 67, 892, 12, 474, 12, 3165, 67, 1615, 3719, 469, 30, 501, 225, 273, 17819, 18, 3464, 67, 892, 12, 81, 76, 18, 3645, 67, 2730, 67, 1615, 13, 1681, 273, 276, 780, 4294, 18, 780, 4294, 12, 892, 13, 709, 273, 29407, 2040, 18, 3190, 12, 4385, 13, 3768, 696, 273, 276, 780, 4294, 18, 780, 4294, 1435, 709, 18, 6283, 2668, 23263, 16063, 5688, 12, 947, 696, 16, 740, 2218, 28698, 6134, 12837, 18, 3165, 67, 892, 273, 7707, 14362, 2187, 3768, 696, 18, 588, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4165, 12, 3256, 4672, 12837, 273, 6565, 5369, 12, 538, 18, 803, 18, 13909, 12, 3256, 18, 529, 3631, 306, 67, 2668, 4874, 6134, 5717, 775, 30, 17819, 273, 6912, 1864, 12, 3256, 13, 225, 309, 17819, 18, 408, 76, 353, 486, 599, 30, 309, 17819, 18, 408, 76, 18, 9197, 353, 486, 599, 30, 12837, 273, 17819, 18, 408, 76, 18, 9197, 469, 30, 598, 22791, 2853, 2668, 67, 81, 30875, 67, 3901, 67, 10530, 6134, 487, 268, 1214, 30, 9752, 273, 490, 30875, 2514, 12, 3256, 13, 9752, 18, 8004, 67, 1745, 12, 88, 1214, 13, 309, 9752, 18, 20722, 67, 9197, 353, 486, 599, 30, 12837, 273, 9752, 18, 20722, 67, 9197, 225, 2 ]
ForeignKey('users.username', onupdate="cascade")))
ForeignKey('users.username', onupdate="cascade")), test_needs_fk=True )
def define_tables(self, metadata): Table('users', metadata, Column('id', Integer, primary_key=True), Column('username', String(50), unique=True), Column('fullname', String(100)))
6515e84d4c7084d9276922786291f6e047b70b84 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1074/6515e84d4c7084d9276922786291f6e047b70b84/naturalpks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4426, 67, 9373, 12, 2890, 16, 1982, 4672, 3555, 2668, 5577, 2187, 1982, 16, 4753, 2668, 350, 2187, 2144, 16, 3354, 67, 856, 33, 5510, 3631, 4753, 2668, 5053, 2187, 514, 12, 3361, 3631, 3089, 33, 5510, 3631, 4753, 2668, 21885, 2187, 514, 12, 6625, 20349, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4426, 67, 9373, 12, 2890, 16, 1982, 4672, 3555, 2668, 5577, 2187, 1982, 16, 4753, 2668, 350, 2187, 2144, 16, 3354, 67, 856, 33, 5510, 3631, 4753, 2668, 5053, 2187, 514, 12, 3361, 3631, 3089, 33, 5510, 3631, 4753, 2668, 21885, 2187, 514, 12, 6625, 20349, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
elif user.posts.count() >= settings.FORUM_STAR_3:
elif user.posts.count() >= forum_settings.FORUM_STAR_3:
def forum_stars(user): if user.posts.count() >= settings.FORUM_STAR_5: return mark_safe('<img src="%sforum/img/stars/Star_5.gif" alt="" >' % (settings.MEDIA_URL)) elif user.posts.count() >= settings.FORUM_STAR_4_HALF: return mark_safe('<img src="%sforum/img/stars/Star_4_Half.gif" alt="" >' % (settings.MEDIA_URL)) elif user.posts.count() >= settings.FORUM_STAR_4: return mark_safe('<img src="%sforum/img/stars/Star_4.gif" alt="" >' % (settings.MEDIA_URL)) elif user.posts.count() >= settings.FORUM_STAR_3_HALF: return mark_safe('<img src="%sforum/img/stars/Star_3_Half.gif" alt="" >' % (settings.MEDIA_URL)) elif user.posts.count() >= settings.FORUM_STAR_3: return mark_safe('<img src="%sforum/img/stars/Star_3.gif" alt="" >' % (settings.MEDIA_URL)) elif user.posts.count() >= settings.FORUM_STAR_2_HALF: return mark_safe('<img src="%sforum/img/stars/Star_2_Half.gif" alt="" >' % (settings.MEDIA_URL)) elif user.posts.count() >= settings.FORUM_STAR_2: return mark_safe('<img src="%sforum/img/stars/Star_2.gif" alt="" >' % (settings.MEDIA_URL)) elif user.posts.count() >= settings.FORUM_STAR_1_HALF: return mark_safe('<img src="%sforum/img/stars/Star_1_Half.gif" alt="" >' % (settings.MEDIA_URL)) elif user.posts.count() >= settings.FORUM_STAR_1: return mark_safe('<img src="%sforum/img/stars/Star_1.gif" alt="" >' % (settings.MEDIA_URL)) elif user.posts.count() >= settings.FORUM_STAR_0_HALF: return mark_safe('<img src="%sforum/img/stars/Star_0_Half.gif" alt="" >' % (settings.MEDIA_URL)) else: return mark_safe('<img src="%sforum/img/stars/Star_0.gif" alt="" >' % (settings.MEDIA_URL))
b430105a803716ef07bbc496453cb34df28616a9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13701/b430105a803716ef07bbc496453cb34df28616a9/forum_extras.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11283, 67, 334, 5913, 12, 1355, 4672, 309, 729, 18, 11660, 18, 1883, 1435, 1545, 1947, 18, 7473, 2799, 67, 20943, 67, 25, 30, 327, 2267, 67, 4626, 2668, 32, 6081, 1705, 11613, 87, 11725, 19, 6081, 19, 334, 5913, 19, 18379, 67, 25, 18, 13905, 6, 3770, 1546, 6, 23752, 738, 261, 4272, 18, 26368, 67, 1785, 3719, 1327, 729, 18, 11660, 18, 1883, 1435, 1545, 1947, 18, 7473, 2799, 67, 20943, 67, 24, 67, 44, 21497, 30, 327, 2267, 67, 4626, 2668, 32, 6081, 1705, 11613, 87, 11725, 19, 6081, 19, 334, 5913, 19, 18379, 67, 24, 67, 16168, 18, 13905, 6, 3770, 1546, 6, 23752, 738, 261, 4272, 18, 26368, 67, 1785, 3719, 1327, 729, 18, 11660, 18, 1883, 1435, 1545, 1947, 18, 7473, 2799, 67, 20943, 67, 24, 30, 327, 2267, 67, 4626, 2668, 32, 6081, 1705, 11613, 87, 11725, 19, 6081, 19, 334, 5913, 19, 18379, 67, 24, 18, 13905, 6, 3770, 1546, 6, 23752, 738, 261, 4272, 18, 26368, 67, 1785, 3719, 1327, 729, 18, 11660, 18, 1883, 1435, 1545, 1947, 18, 7473, 2799, 67, 20943, 67, 23, 67, 44, 21497, 30, 327, 2267, 67, 4626, 2668, 32, 6081, 1705, 11613, 87, 11725, 19, 6081, 19, 334, 5913, 19, 18379, 67, 23, 67, 16168, 18, 13905, 6, 3770, 1546, 6, 23752, 738, 261, 4272, 18, 26368, 67, 1785, 3719, 1327, 729, 18, 11660, 18, 1883, 1435, 1545, 11283, 67, 4272, 18, 7473, 2799, 67, 20943, 67, 23, 30, 327, 2267, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11283, 67, 334, 5913, 12, 1355, 4672, 309, 729, 18, 11660, 18, 1883, 1435, 1545, 1947, 18, 7473, 2799, 67, 20943, 67, 25, 30, 327, 2267, 67, 4626, 2668, 32, 6081, 1705, 11613, 87, 11725, 19, 6081, 19, 334, 5913, 19, 18379, 67, 25, 18, 13905, 6, 3770, 1546, 6, 23752, 738, 261, 4272, 18, 26368, 67, 1785, 3719, 1327, 729, 18, 11660, 18, 1883, 1435, 1545, 1947, 18, 7473, 2799, 67, 20943, 67, 24, 67, 44, 21497, 30, 327, 2267, 67, 4626, 2668, 32, 6081, 1705, 11613, 87, 11725, 19, 6081, 19, 334, 5913, 19, 18379, 67, 24, 67, 16168, 18, 13905, 6, 3770, 1546, 6, 23752, 738, 261, 4272, 18, 26368, 67, 1785, 3719, 1327, 729, 2 ]
namespace['title'] = self.get_property('dc:title') or self.name
namespace['title'] = self.get_title_or_name()
def profile(self, context): root = context.root user = context.user
2ccbdf323709f4bf1fb1045f3d06d314e3776c4c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/2ccbdf323709f4bf1fb1045f3d06d314e3776c4c/users.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3042, 12, 2890, 16, 819, 4672, 1365, 273, 819, 18, 3085, 729, 273, 819, 18, 1355, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
B = [2,3] for p in self.E.galois_representation().non_surjective():
B = [2, 3] for p in self.E.galois_representation().non_surjective():
def bound_kato(self): r""" Returns a list `p` of primes such that the theorems of Kato's [Ka] and others (e.g., as explained in a paper/thesis of Grigor Grigorov [Gri]) imply that if `p` divides the order of Sha(E) then `p` is in the list.
a65589b424a4f170a5aece0d1b80690d7bdd7d29 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/a65589b424a4f170a5aece0d1b80690d7bdd7d29/sha_tate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2489, 67, 79, 31093, 12, 2890, 4672, 436, 8395, 2860, 279, 666, 1375, 84, 68, 434, 846, 4485, 4123, 716, 326, 326, 479, 959, 434, 1475, 31093, 1807, 306, 47, 69, 65, 471, 10654, 261, 73, 18, 75, 12990, 487, 19765, 329, 316, 279, 15181, 19, 20432, 434, 611, 86, 360, 280, 611, 86, 360, 280, 1527, 306, 43, 566, 5717, 709, 1283, 716, 309, 1375, 84, 68, 3739, 4369, 225, 326, 1353, 434, 2638, 69, 12, 41, 13, 1508, 1375, 84, 68, 353, 316, 326, 666, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 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, 2489, 67, 79, 31093, 12, 2890, 4672, 436, 8395, 2860, 279, 666, 1375, 84, 68, 434, 846, 4485, 4123, 716, 326, 326, 479, 959, 434, 1475, 31093, 1807, 306, 47, 69, 65, 471, 10654, 261, 73, 18, 75, 12990, 487, 19765, 329, 316, 279, 15181, 19, 20432, 434, 611, 86, 360, 280, 611, 86, 360, 280, 1527, 306, 43, 566, 5717, 709, 1283, 716, 309, 1375, 84, 68, 3739, 4369, 225, 326, 1353, 434, 2638, 69, 12, 41, 13, 1508, 1375, 84, 68, 353, 316, 326, 666, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
result = self.listDirectory(dirList,credDict) if not result['OK']: return result
result = self.listDirectory( dirList, credDict ) if not result['OK']: return result
def findFilesByMetadata(self,metaDict,credDict): """ Find Files satisfying the given metadata """ result = self.findDirectoriesByMetadata(metaDict,credDict) if not result['OK']: return result dirList = result['Value'] fileList = [] result = self.listDirectory(dirList,credDict) if not result['OK']: return result for dir in result['Value']['Successful']: for fname in result['Value']['Successful'][dir]['Files']: fileList.append(dir+'/'+os.path.basename(fname)) return S_OK(fileList)
127f98379e5064d0a5d5df2ba7ce74c780770faa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/127f98379e5064d0a5d5df2ba7ce74c780770faa/DirectoryMetadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 2697, 858, 2277, 12, 2890, 16, 3901, 5014, 16, 20610, 5014, 4672, 3536, 4163, 6471, 9281, 14946, 326, 864, 1982, 3536, 225, 563, 273, 365, 18, 4720, 13071, 858, 2277, 12, 3901, 5014, 16, 20610, 5014, 13, 309, 486, 563, 3292, 3141, 3546, 30, 327, 563, 225, 1577, 682, 273, 563, 3292, 620, 3546, 18645, 273, 5378, 563, 273, 365, 18, 1098, 2853, 12, 1577, 682, 16, 6197, 5014, 262, 309, 486, 563, 3292, 3141, 3546, 30, 327, 563, 225, 364, 1577, 316, 563, 3292, 620, 21712, 14277, 3546, 30, 364, 5299, 316, 563, 3292, 620, 21712, 14277, 3546, 63, 1214, 23962, 2697, 3546, 30, 18645, 18, 6923, 12, 1214, 6797, 2473, 15, 538, 18, 803, 18, 13909, 12, 12749, 3719, 225, 327, 348, 67, 3141, 12, 768, 682, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 2697, 858, 2277, 12, 2890, 16, 3901, 5014, 16, 20610, 5014, 4672, 3536, 4163, 6471, 9281, 14946, 326, 864, 1982, 3536, 225, 563, 273, 365, 18, 4720, 13071, 858, 2277, 12, 3901, 5014, 16, 20610, 5014, 13, 309, 486, 563, 3292, 3141, 3546, 30, 327, 563, 225, 1577, 682, 273, 563, 3292, 620, 3546, 18645, 273, 5378, 563, 273, 365, 18, 1098, 2853, 12, 1577, 682, 16, 6197, 5014, 262, 309, 486, 563, 3292, 3141, 3546, 30, 327, 563, 225, 364, 1577, 316, 563, 3292, 620, 21712, 14277, 3546, 30, 364, 5299, 316, 563, 3292, 620, 21712, 14277, 3546, 63, 1214, 23962, 2697, 3546, 30, 18645, 18, 6923, 12, 1214, 6797, 2473, 15, 538, 18, 803, 18, 2 ]
def declare_ring(blocks,context):
def declare_ring(blocks,context=None):
def declare_ring(blocks,context): """Declare Ring is the preferred function to create a ring and declare a variable scheme, the number of variables is automatically determined, usually you pass globals() as context argument to store the ring and the variable mapping. Example declare_ring([Block("x",10),Block("y",5)],globals()) gives a ring with x(0..9),y(0..4) and registers the ring as r, and the variable blocks x and y in the context dictionary globals(), which consists of the global variables of the python module """ n=0 for b in blocks: if isinstance(b,str): n=n+1 else: n=n+len(b) #n=sum([len(b) for b in blocks]) r=Ring(n) declare_block_scheme(blocks,context) context["r"]=r return r
98565da462f398075511a910bd7063dffe22c4e1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2046/98565da462f398075511a910bd7063dffe22c4e1/blocks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14196, 67, 8022, 12, 7996, 16, 2472, 33, 7036, 4672, 3536, 3456, 834, 25463, 353, 326, 9119, 445, 358, 752, 279, 9221, 471, 14196, 279, 2190, 4355, 16, 326, 1300, 434, 3152, 353, 6635, 11383, 16, 11234, 1846, 1342, 10941, 1435, 487, 819, 1237, 358, 1707, 326, 9221, 471, 326, 2190, 2874, 18, 5090, 14196, 67, 8022, 3816, 1768, 2932, 92, 3113, 2163, 3631, 1768, 2932, 93, 3113, 25, 13, 6487, 16227, 10756, 14758, 225, 279, 9221, 598, 619, 12, 20, 838, 29, 3631, 93, 12, 20, 838, 24, 13, 471, 10285, 326, 9221, 487, 436, 16, 471, 326, 2190, 4398, 619, 471, 677, 316, 326, 819, 3880, 10941, 9334, 1492, 20915, 434, 326, 2552, 3152, 434, 326, 5790, 1605, 3536, 290, 33, 20, 364, 324, 316, 4398, 30, 309, 1549, 12, 70, 16, 701, 4672, 290, 33, 82, 15, 21, 469, 30, 290, 33, 82, 15, 1897, 12, 70, 13, 468, 82, 33, 1364, 3816, 1897, 12, 70, 13, 364, 324, 316, 4398, 5717, 436, 33, 10369, 12, 82, 13, 14196, 67, 2629, 67, 9068, 12, 7996, 16, 2472, 13, 819, 9614, 86, 11929, 33, 86, 327, 436, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 14196, 67, 8022, 12, 7996, 16, 2472, 33, 7036, 4672, 3536, 3456, 834, 25463, 353, 326, 9119, 445, 358, 752, 279, 9221, 471, 14196, 279, 2190, 4355, 16, 326, 1300, 434, 3152, 353, 6635, 11383, 16, 11234, 1846, 1342, 10941, 1435, 487, 819, 1237, 358, 1707, 326, 9221, 471, 326, 2190, 2874, 18, 5090, 14196, 67, 8022, 3816, 1768, 2932, 92, 3113, 2163, 3631, 1768, 2932, 93, 3113, 25, 13, 6487, 16227, 10756, 14758, 225, 279, 9221, 598, 619, 12, 20, 838, 29, 3631, 93, 12, 20, 838, 24, 13, 471, 10285, 326, 9221, 487, 436, 16, 471, 326, 2190, 4398, 619, 471, 677, 316, 326, 819, 3880, 10941, 9334, 1492, 20915, 434, 326, 2552, 3152, 434, 326, 2 ]
prefFile='%s/Library/Preferences/com.apple.mail.plist' % NSHomeDirectory()
prefFile='%s/Desktop/com.apple.mail.plist' % NSHomeDirectory()
def awakeFromNib(self): # Clean up Pop Up self.accountList.removeAllItems()
57ab6bef5efa47b78e83a444732ea9cdacaf9295 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4895/57ab6bef5efa47b78e83a444732ea9cdacaf9295/mailVirtualAppDelegate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1690, 911, 1265, 50, 495, 12, 2890, 4672, 468, 9645, 731, 10264, 1948, 365, 18, 4631, 682, 18, 4479, 1595, 3126, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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690, 911, 1265, 50, 495, 12, 2890, 4672, 468, 9645, 731, 10264, 1948, 365, 18, 4631, 682, 18, 4479, 1595, 3126, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return "%s_%sx%s.jpg" % (file, config.CONF.width, config.CONF.height) if config.CONF.width == 720 and os.path.isfile("%s_768x576.png" % file): return "%s_768x576.png" % file if config.CONF.width == 720 and os.path.isfile("%s_768x576.jpg" % file): return "%s_768x576.jpg" % file if os.path.isfile("%s_800x600.png" % file): return "%s_800x600.png" % file if os.path.isfile("%s_800x600.jpg" % file): return "%s_800x600.jpg" % file
return "%s_%sx%s.jpg" % (dfile, config.CONF.width, config.CONF.height) if config.CONF.width == 720 and os.path.isfile("%s_768x576.png" % dfile): return "%s_768x576.png" % dfile if config.CONF.width == 720 and os.path.isfile("%s_768x576.jpg" % dfile): return "%s_768x576.jpg" % dfile if os.path.isfile("%s_800x600.png" % dfile): return "%s_800x600.png" % dfile if os.path.isfile("%s_800x600.jpg" % dfile): return "%s_800x600.jpg" % dfile
def attr_file(node, attr, default, c_dir): if node.attrs.has_key(('', attr)): file = node.attrs[('', attr)].encode('latin-1') if file: file=os.path.join(c_dir, file) if os.path.isfile(file): return file if os.path.isfile("%s_%sx%s.png" % (file, config.CONF.width, config.CONF.height)): return "%s_%sx%s.png" % (file, config.CONF.width, config.CONF.height) if os.path.isfile("%s_%sx%s.jpg" % (file, config.CONF.width, config.CONF.height)): return "%s_%sx%s.jpg" % (file, config.CONF.width, config.CONF.height) if config.CONF.width == 720 and os.path.isfile("%s_768x576.png" % file): return "%s_768x576.png" % file if config.CONF.width == 720 and os.path.isfile("%s_768x576.jpg" % file): return "%s_768x576.jpg" % file if os.path.isfile("%s_800x600.png" % file): return "%s_800x600.png" % file if os.path.isfile("%s_800x600.jpg" % file): return "%s_800x600.jpg" % file return file return default
5b00e18952b799bcb6428c0d98ce150703eb2055 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/5b00e18952b799bcb6428c0d98ce150703eb2055/xml_skin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1604, 67, 768, 12, 2159, 16, 1604, 16, 805, 16, 276, 67, 1214, 4672, 309, 756, 18, 7039, 18, 5332, 67, 856, 12, 2668, 2187, 1604, 3719, 30, 585, 273, 756, 18, 7039, 63, 2668, 2187, 1604, 13, 8009, 3015, 2668, 26578, 17, 21, 6134, 309, 585, 30, 585, 33, 538, 18, 803, 18, 5701, 12, 71, 67, 1214, 16, 585, 13, 309, 1140, 18, 803, 18, 291, 768, 12, 768, 4672, 327, 585, 309, 1140, 18, 803, 18, 291, 768, 27188, 87, 10185, 30319, 9, 87, 18, 6446, 6, 738, 261, 768, 16, 642, 18, 14497, 18, 2819, 16, 642, 18, 14497, 18, 4210, 3719, 30, 327, 2213, 87, 10185, 30319, 9, 87, 18, 6446, 6, 738, 261, 768, 16, 642, 18, 14497, 18, 2819, 16, 642, 18, 14497, 18, 4210, 13, 309, 1140, 18, 803, 18, 291, 768, 27188, 87, 10185, 30319, 9, 87, 18, 14362, 6, 738, 261, 768, 16, 642, 18, 14497, 18, 2819, 16, 642, 18, 14497, 18, 4210, 3719, 30, 327, 2213, 87, 10185, 30319, 9, 87, 18, 14362, 6, 738, 261, 72, 768, 16, 642, 18, 14497, 18, 2819, 16, 642, 18, 14497, 18, 4210, 13, 309, 642, 18, 14497, 18, 2819, 422, 2371, 3462, 471, 1140, 18, 803, 18, 291, 768, 27188, 87, 67, 6669, 28, 92, 25, 6669, 18, 6446, 6, 738, 302, 768, 4672, 327, 2213, 87, 67, 6669, 28, 92, 25, 6669, 18, 6446, 6, 738, 302, 768, 309, 642, 18, 14497, 18, 2819, 422, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1604, 67, 768, 12, 2159, 16, 1604, 16, 805, 16, 276, 67, 1214, 4672, 309, 756, 18, 7039, 18, 5332, 67, 856, 12, 2668, 2187, 1604, 3719, 30, 585, 273, 756, 18, 7039, 63, 2668, 2187, 1604, 13, 8009, 3015, 2668, 26578, 17, 21, 6134, 309, 585, 30, 585, 33, 538, 18, 803, 18, 5701, 12, 71, 67, 1214, 16, 585, 13, 309, 1140, 18, 803, 18, 291, 768, 12, 768, 4672, 327, 585, 309, 1140, 18, 803, 18, 291, 768, 27188, 87, 10185, 30319, 9, 87, 18, 6446, 6, 738, 261, 768, 16, 642, 18, 14497, 18, 2819, 16, 642, 18, 14497, 18, 4210, 3719, 30, 327, 2213, 87, 10185, 30319, 9, 87, 18, 6446, 6, 738, 2 ]
raise
wikipedia.stopme()
def main(): # How we want to retrieve information on which pages need to be changed. # Can either be 'sqldump', 'textfile' or 'userinput'. source = None # Array which will collect commandline parameters. # First element is original text, second element is replacement text. commandline_replacements = [] # A dictionary where keys are original texts and values are replacement texts. replacements = {} # Don't edit pages which contain certain texts. exceptions = [] # Should the elements of 'replacements' and 'exceptions' be interpreted # as regular expressions? regex = False # Predefined fixes from dictionary 'fixes' (see above). fix = None # the dump's path, either absolute or relative, which will be used when source # is 'sqldump'. sqlfilename = '' # the textfile's path, either absolute or relative, which will be used when # source is 'textfile'. textfilename = '' # a list of pages which will be used when source is 'userinput'. pagenames = [] # will become True when the user presses a ('yes to all') or uses the -always # commandline paramater. acceptall = False # Which namespace should be processed when using a SQL dump # default to -1 which means all namespaces will be processed namespace = -1 # Load default summary message. wikipedia.setAction(wikipedia.translate(wikipedia.getSite(), msg)) # Read commandline parameters. for arg in sys.argv[1:]: arg = wikipedia.argHandler(arg) if arg: if arg == '-regex': regex = True elif arg.startswith('-file'): if len(arg) == 5: textfilename = wikipedia.input(u'Please enter the filename:') else: textfilename = arg[6:] source = 'textfile' elif arg.startswith('-sql'): if len(arg) == 4: sqlfilename = wikipedia.input(u'Please enter the SQL dump\'s filename:') else: sqlfilename = arg[5:] source = 'sqldump' elif arg.startswith('-page'): if len(arg) == 5: pagenames.append(wikipedia.input(u'Which page do you want to chage?')) else: pagenames.append(arg[6:]) source = 'userinput' elif arg.startswith('-except:'): exceptions.append(arg[8:]) elif arg.startswith('-fix:'): fix = arg[5:] elif arg == '-always': acceptall = True elif arg.startswith('-namespace:'): namespace = int(arg[11:]) else: commandline_replacements.append(arg) if source == None or len(commandline_replacements) not in [0, 2]: # syntax error, show help text from the top of this file wikipedia.output(__doc__, 'utf-8') wikipedia.stopme() sys.exit() if (len(commandline_replacements) == 2 and fix == None): replacements[commandline_replacements[0]] = commandline_replacements[1] wikipedia.setAction(wikipedia.translate(wikipedia.getSite(), msg ) % ' (-' + commandline_replacements[0] + ' +' + commandline_replacements[1] + ')') elif fix == None: old = wikipedia.input(u'Please enter the text that should be replaced:') new = wikipedia.input(u'Please enter the new text:') change = '(-' + old + ' +' + new replacements[old] = new while True: old = wikipedia.input(u'Please enter another text that should be replaced, or press Enter to start:') if old == '': change = change + ')' break new = wikipedia.input(u'Please enter the new text:') change = change + ' & -' + old + ' +' + new replacements[old] = new default_summary_message = wikipedia.translate(wikipedia.getSite(), msg) % change wikipedia.output(u'The summary message will default to: %s' % default_summary_message) summary_message = wikipedia.input(u'Press Enter to use this default message, or enter a description of the changes your bot will make:') if summary_message == '': summary_message = default_summary_message wikipedia.setAction(summary_message) else: # Perform one of the predefined actions. try: fix = fixes[fix] except KeyError: wikipedia.output(u'Available predefined fixes are: %s' % fixes.keys()) wikipedia.stopme() sys.exit() if fix.has_key('regex'): regex = fix['regex'] if fix.has_key('msg'): wikipedia.setAction(wikipedia.translate(wikipedia.getSite(), fix['msg'])) if fix.has_key('exceptions'): exceptions = fix['exceptions'] replacements = fix['replacements'] # Run the generator which will yield PageLinks to pages which might need to be # changed. for pl in generator(source, replacements, exceptions, regex, namespace, textfilename, sqlfilename, pagenames): print '' try: # Load the page's text from the wiki original_text = pl.get() except wikipedia.NoPage: wikipedia.output(u'Page %s not found' % pl.linkname()) continue except wikipedia.LockedPage: wikipedia.output(u'Skipping locked page %s' % pl.linkname()) continue except wikipedia.IsRedirectPage: continue skip_page = False # skip all pages that contain certain texts for exception in exceptions: if regex: exception = re.compile(exception) hit = exception.search(original_text) if hit: wikipedia.output(u'Skipping %s because it contains %s' % (pl.linkname(), hit.group(0))) # Does anyone know how to break out of the _outer_ loop? # Then we wouldn't need the skip_page variable. skip_page = True break else: hit = original_text.find(exception) if hit != -1: wikipedia.output(u'Skipping %s because it contains %s' % (pl.linkname(), original_text[hit:hit + len(exception)])) skip_page = True break if not skip_page: # create a copy of the original text to work on, so we can later compare # if any changes were made new_text = original_text for old, new in replacements.items(): if regex: # TODO: compiling the regex each time might be inefficient old = re.compile(old) new_text = old.sub(new, new_text) else: new_text = new_text.replace(old, new) if new_text == original_text: try: # Sometime the bot crashes when it can't decode a character. # Let's not let it crash print 'No changes were necessary in %s' % pl.linkname() except UnicodeEncodeError: print 'Error decoding pl.linkname()' continue else: #wikipedia.showDiff(original_text, new_text) wikipedia.showColorDiff(original_text, new_text, replacements) if not acceptall: choice = wikipedia.input(u'Do you want to accept these changes? [y|n|a(ll)]') if choice in ['a', 'A']: acceptall = True if acceptall or choice in ['y', 'Y']: pl.put(new_text)
0f6111967a56439243352b05e70f6ac2ae37f280 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/0f6111967a56439243352b05e70f6ac2ae37f280/replace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 9017, 732, 2545, 358, 4614, 1779, 603, 1492, 4689, 1608, 358, 506, 3550, 18, 468, 4480, 3344, 506, 296, 4669, 8481, 2187, 296, 955, 768, 11, 578, 296, 1355, 2630, 10332, 1084, 273, 599, 468, 1510, 1492, 903, 3274, 28305, 1472, 18, 468, 5783, 930, 353, 2282, 977, 16, 2205, 930, 353, 6060, 977, 18, 28305, 67, 2079, 1346, 273, 5378, 468, 432, 3880, 1625, 1311, 854, 2282, 15219, 471, 924, 854, 6060, 15219, 18, 11413, 273, 2618, 468, 7615, 1404, 3874, 4689, 1492, 912, 8626, 15219, 18, 4798, 273, 5378, 468, 9363, 326, 2186, 434, 296, 2079, 1346, 11, 471, 296, 11855, 11, 506, 19898, 468, 487, 6736, 8041, 35, 3936, 273, 1083, 468, 2962, 2178, 24436, 628, 3880, 296, 904, 281, 11, 261, 5946, 5721, 2934, 2917, 273, 599, 468, 326, 4657, 1807, 589, 16, 3344, 4967, 578, 3632, 16, 1492, 903, 506, 1399, 1347, 1084, 468, 353, 296, 4669, 8481, 10332, 1847, 3459, 273, 875, 468, 326, 977, 768, 1807, 589, 16, 3344, 4967, 578, 3632, 16, 1492, 903, 506, 1399, 1347, 468, 1084, 353, 296, 955, 768, 10332, 977, 3459, 273, 875, 468, 279, 666, 434, 4689, 1492, 903, 506, 1399, 1347, 1084, 353, 296, 1355, 2630, 10332, 4262, 6809, 273, 5378, 468, 903, 12561, 1053, 1347, 326, 729, 11779, 281, 279, 7707, 9707, 358, 777, 6134, 578, 4692, 326, 300, 17737, 468, 28305, 579, 2045, 18, 2791, 454, 273, 1083, 468, 21918, 1981, 1410, 506, 5204, 1347, 1450, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 9017, 732, 2545, 358, 4614, 1779, 603, 1492, 4689, 1608, 358, 506, 3550, 18, 468, 4480, 3344, 506, 296, 4669, 8481, 2187, 296, 955, 768, 11, 578, 296, 1355, 2630, 10332, 1084, 273, 599, 468, 1510, 1492, 903, 3274, 28305, 1472, 18, 468, 5783, 930, 353, 2282, 977, 16, 2205, 930, 353, 6060, 977, 18, 28305, 67, 2079, 1346, 273, 5378, 468, 432, 3880, 1625, 1311, 854, 2282, 15219, 471, 924, 854, 6060, 15219, 18, 11413, 273, 2618, 468, 7615, 1404, 3874, 4689, 1492, 912, 8626, 15219, 18, 4798, 273, 5378, 468, 9363, 326, 2186, 434, 296, 2079, 1346, 11, 471, 296, 11855, 11, 506, 19898, 468, 487, 6736, 8041, 35, 3936, 273, 1083, 468, 2 ]
return (for_score - against_score) / max_score * 100
if max_score > 0: return (for_score - against_score) / max_score * 100 else: return 0.0
def party_score(self, party): # party_members_ids = party.members.all().values_list('id',flat=True) for_score = AgendaVote.objects.filter(agenda=self,vote__voteaction__member__in=party.members.all(),vote__voteaction__type="for").aggregate(Sum('score'))['score__sum'] or 0 against_score = AgendaVote.objects.filter(agenda=self,vote__voteaction__member__in=party.members.all(),vote__voteaction__type="against").aggregate(Sum('score'))['score__sum'] or 0 max_score = sum([abs(x) for x in self.agendavote_set.values_list('score', flat=True)]) * party.members.count() return (for_score - against_score) / max_score * 100
4ea3e0289657f924ee8a6bae7b5ed49dff14768b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1866/4ea3e0289657f924ee8a6bae7b5ed49dff14768b/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18285, 67, 6355, 12, 2890, 16, 18285, 4672, 468, 18285, 67, 7640, 67, 2232, 273, 18285, 18, 7640, 18, 454, 7675, 2372, 67, 1098, 2668, 350, 2187, 15401, 33, 5510, 13, 364, 67, 6355, 4202, 273, 5495, 18883, 19338, 18, 6911, 18, 2188, 12, 346, 18883, 33, 2890, 16, 25911, 972, 25911, 1128, 972, 5990, 972, 267, 33, 21214, 18, 7640, 18, 454, 9334, 25911, 972, 25911, 1128, 972, 723, 1546, 1884, 20387, 18573, 12, 3495, 2668, 6355, 26112, 3292, 6355, 972, 1364, 3546, 578, 374, 5314, 67, 6355, 282, 273, 5495, 18883, 19338, 18, 6911, 18, 2188, 12, 346, 18883, 33, 2890, 16, 25911, 972, 25911, 1128, 972, 5990, 972, 267, 33, 21214, 18, 7640, 18, 454, 9334, 25911, 972, 25911, 1128, 972, 723, 1546, 23095, 334, 20387, 18573, 12, 3495, 2668, 6355, 26112, 3292, 6355, 972, 1364, 3546, 578, 374, 943, 67, 6355, 273, 2142, 3816, 5113, 12, 92, 13, 364, 619, 316, 365, 18, 346, 409, 842, 1168, 67, 542, 18, 2372, 67, 1098, 2668, 6355, 2187, 3569, 33, 5510, 13, 5717, 380, 18285, 18, 7640, 18, 1883, 1435, 327, 261, 1884, 67, 6355, 300, 5314, 67, 6355, 13, 342, 943, 67, 6355, 380, 2130, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18285, 67, 6355, 12, 2890, 16, 18285, 4672, 468, 18285, 67, 7640, 67, 2232, 273, 18285, 18, 7640, 18, 454, 7675, 2372, 67, 1098, 2668, 350, 2187, 15401, 33, 5510, 13, 364, 67, 6355, 4202, 273, 5495, 18883, 19338, 18, 6911, 18, 2188, 12, 346, 18883, 33, 2890, 16, 25911, 972, 25911, 1128, 972, 5990, 972, 267, 33, 21214, 18, 7640, 18, 454, 9334, 25911, 972, 25911, 1128, 972, 723, 1546, 1884, 20387, 18573, 12, 3495, 2668, 6355, 26112, 3292, 6355, 972, 1364, 3546, 578, 374, 5314, 67, 6355, 282, 273, 5495, 18883, 19338, 18, 6911, 18, 2188, 12, 346, 18883, 33, 2890, 16, 25911, 972, 25911, 1128, 972, 5990, 972, 267, 33, 21214, 18, 7640, 18, 454, 2 ]
(oldNode != source.getNode or oldEnabled != item.enabled)):
(oldNode != item.getNode or oldEnabled != item.enabled)):
def api_updateItem(self, request): """ Edit the contents of an item. {id} is the id of the item; other args are treated as updates to the item. """ item = self.api_getItem(request) args = dict(request.args) del args['id'] schema = dict(item.__class__.getSchema())
cabd2b02d4092f006ed0f458c7246acd2b40480f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11015/cabd2b02d4092f006ed0f458c7246acd2b40480f/web.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1536, 67, 2725, 1180, 12, 2890, 16, 590, 4672, 3536, 15328, 326, 2939, 434, 392, 761, 18, 288, 350, 97, 353, 326, 612, 434, 326, 761, 31, 1308, 833, 854, 13974, 487, 4533, 358, 326, 761, 18, 3536, 761, 273, 365, 18, 2425, 67, 588, 1180, 12, 2293, 13, 833, 273, 2065, 12, 2293, 18, 1968, 13, 1464, 833, 3292, 350, 3546, 1963, 273, 2065, 12, 1726, 16186, 1106, 25648, 588, 3078, 10756, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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392, 761, 18, 288, 350, 97, 353, 326, 612, 434, 326, 761, 31, 1308, 833, 854, 13974, 487, 4533, 358, 326, 761, 18, 3536, 761, 273, 365, 18, 2425, 67, 588, 1180, 12, 2293, 13, 833, 273, 2065, 12, 2293, 18, 1968, 13, 1464, 833, 3292, 350, 3546, 1963, 273, 2065, 12, 1726, 16186, 1106, 25648, 588, 3078, 10756, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.album = vc['ALBUM'][0]
self.album = str(vc['ALBUM'][0])
def set_info_ogg( self, file ): """ Sets all the info variables with useful info from the oggfile.
0da363e44f41820457a5f385cbc8673190f46f40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/0da363e44f41820457a5f385cbc8673190f46f40/audioinfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 1376, 67, 23972, 12, 365, 16, 585, 262, 30, 3536, 11511, 777, 326, 1123, 3152, 598, 5301, 1123, 628, 326, 320, 14253, 768, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 1376, 67, 23972, 12, 365, 16, 585, 262, 30, 3536, 11511, 777, 326, 1123, 3152, 598, 5301, 1123, 628, 326, 320, 14253, 768, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
(wxMenuBar, 'wx.MenuBar', MenuBarDTC), (wxMenu, 'wx.Menu', MenuDTC), (wxImageList, 'wx.ImageList', ImageListDTC), (wxTimer, 'wx.Timer', TimerDTC), (wxStockCursor, 'wx.StockCursor', StockCursorDTC),
(wx.MenuBar, 'wx.MenuBar', MenuBarDTC), (wx.Menu, 'wx.Menu', MenuDTC), (wx.ImageList, 'wx.ImageList', ImageListDTC), (wx.Timer, 'wx.Timer', TimerDTC), (wx.StockCursor, 'wx.StockCursor', StockCursorDTC),
def designTimeSource(self, position='wx.DefaultPosition', size='wx.DefaultSize'): return {'id': 'wx.CURSOR_ARROW'}
fe776dc2ca0742866f15794198b01bacb2b96bb2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/fe776dc2ca0742866f15794198b01bacb2b96bb2/UtilCompanions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8281, 950, 1830, 12, 2890, 16, 1754, 2218, 27226, 18, 1868, 2555, 2187, 963, 2218, 27226, 18, 1868, 1225, 11, 4672, 327, 13666, 350, 4278, 296, 27226, 18, 7509, 55, 916, 67, 985, 11226, 11, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8281, 950, 1830, 12, 2890, 16, 1754, 2218, 27226, 18, 1868, 2555, 2187, 963, 2218, 27226, 18, 1868, 1225, 11, 4672, 327, 13666, 350, 4278, 296, 27226, 18, 7509, 55, 916, 67, 985, 11226, 11, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
callable = handler, args = ('registerAdapter', instance, (self.for_, self.request_type),
callable = gsm.registerAdapter, args = (instance, (self.for_, self.request_type),
def __call__(self, event=None, context=None, force_reload=False): if force_reload is False: settings = get_settings() auto_reload = settings and settings['reload_templates'] if not auto_reload: return
ec04d4c589ff5b72803d7cd07e58c9f7604c1358 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12476/ec04d4c589ff5b72803d7cd07e58c9f7604c1358/zcml.py
[ 1, 8585, 326, 22398, 316, 326,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 871, 33, 7036, 16, 819, 33, 7036, 16, 2944, 67, 17517, 33, 8381, 4672, 309, 2944, 67, 17517, 353, 1083, 30, 1947, 273, 336, 67, 4272, 1435, 3656, 67, 17517, 273, 1947, 471, 1947, 3292, 17517, 67, 8502, 3546, 309, 486, 3656, 67, 17517, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if model not in frozen_models: frozen_models[model] = last_models if field.rel.to not in last_models: frozen_models[field.rel.to] = last_models
"\n ".join(["('%s', orm[%r])," % (fname, mkey + ":" + fname) for fname, fdef in fields.items()]),
3d9dd56093a6f204e365347772658d2386226edf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13142/3d9dd56093a6f204e365347772658d2386226edf/startmigration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1548, 82, 5411, 3552, 5701, 3816, 6, 29909, 87, 2187, 13969, 14451, 86, 65, 3631, 6, 738, 261, 12749, 16, 312, 856, 397, 6153, 397, 5299, 13, 364, 5299, 16, 284, 536, 316, 1466, 18, 3319, 1435, 65, 3631, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1548, 82, 5411, 3552, 5701, 3816, 6, 29909, 87, 2187, 13969, 14451, 86, 65, 3631, 6, 738, 261, 12749, 16, 312, 856, 397, 6153, 397, 5299, 13, 364, 5299, 16, 284, 536, 316, 1466, 18, 3319, 1435, 65, 3631, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
rsync_filenames_client += "tcos_share/%s " %( os.path.basename(filename) ) rsync_filenames_server += "%s " %( filename )
rsync_filenames_client += "tcos_share/%s " %( os.path.basename(filename).replace(" ", "\ ") ) rsync_filenames_server += "%s " %( filename.replace(" ", "\ ") )
def menu_event_one(self, action): start1=time() (model, iter) = self.main.tabla.get_selection().get_selected() if iter == None: print_debug( "menu_event_one() not selected thin client !!!" ) return self.main.selected_host=model.get_value(iter,0) self.main.selected_ip=model.get_value(iter, 1) if not self.doaction_onthisclient(action, self.main.selected_ip): # show a msg shared.info_msg ( _("Can't exec this action because you are connected at this host!") ) return if action == 0: # refresh terminal # call to read remote info self.main.xmlrpc.newhost(self.main.selected_ip) self.main.xmlrpc.ip=self.main.selected_ip self.main.worker=shared.Workers( self.main,\ target=self.populate_datatxt, args=([self.main.selected_ip]) ).start() if action == 1: # clean datatxtbuffer self.main.datatxt.clean() if action == 2: # Ask for reboot reboot ip=self.main.selected_ip msg=_( _("Do you want to reboot %s?" ) %(self.main.selected_ip) ) if shared.ask_msg ( msg ): self.main.xmlrpc.Exe("reboot") if action == 3: # Ask for poweroff reboot msg=_( _("Do you want to poweroff %s?" ) %(self.main.selected_ip) ) if shared.ask_msg ( msg ): self.main.xmlrpc.Exe("poweroff") if action == 4: # lock screen if not self.main.xmlrpc.lockscreen(): shared.error_msg( _("Can't connect to tcosxmlrpc.\nPlease verify user and password in prefences!") ) return self.change_lockscreen(self.main.selected_ip) if action == 5: # unlock screen if not self.main.xmlrpc.unlockscreen(): shared.error_msg( _("Can't connect to tcosxmlrpc.\nPlease verify user and password in prefences!") ) return self.change_lockscreen(self.main.selected_ip) if action == 6: # start ivs self.main.worker=shared.Workers(self.main, target=self.start_ivs, args=([self.main.selected_ip]) ) self.main.worker.start() if action == 7: # start vnc self.main.worker=shared.Workers(self.main, target=self.start_vnc, args=([self.main.selected_ip]) ) self.main.worker.start() if action == 8: # screenshot !!! self.main.worker=shared.Workers(self.main, target=self.get_screenshot, args=[self.main.selected_ip]) self.main.worker.start() if action == 9: # give a remote xterm throught SSH pass_msg=_("Enter password of remote thin client (if asked for it)") cmd="xterm -e \"echo '%s'; ssh root@%s\"" %(pass_msg, self.main.selected_ip) print_debug ( "menu_event_one(%d) cmd=%s" %(action, cmd) ) th=self.main.exe_cmd( cmd ) if action == 10: # launch personalize settings if client is TCOS (PXES and LTSP not supported) client_type = self.main.xmlrpc.ReadInfo("get_client") if client_type == "tcos": cmd="gksu \"tcospersonalize --host=%s\"" %(self.main.selected_ip) print_debug ( "menu_event_one(%d) cmd=%s" %(action, cmd) ) th=self.main.exe_cmd( cmd ) else: shared.info_msg( _("%s is not supported to personalize!") %(client_type) )
4f60148a6b13d1d26b8eb734c605d0156a49db1b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13520/4f60148a6b13d1d26b8eb734c605d0156a49db1b/TcosActions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3824, 67, 2575, 67, 476, 12, 2890, 16, 1301, 4672, 787, 21, 33, 957, 1435, 261, 2284, 16, 1400, 13, 273, 365, 18, 5254, 18, 7032, 11821, 18, 588, 67, 10705, 7675, 588, 67, 8109, 1435, 309, 1400, 422, 599, 30, 1172, 67, 4148, 12, 315, 5414, 67, 2575, 67, 476, 1435, 486, 3170, 21936, 1004, 401, 5, 4442, 262, 327, 365, 18, 5254, 18, 8109, 67, 2564, 33, 2284, 18, 588, 67, 1132, 12, 2165, 16, 20, 13, 365, 18, 5254, 18, 8109, 67, 625, 33, 2284, 18, 588, 67, 1132, 12, 2165, 16, 404, 13, 225, 309, 486, 365, 18, 2896, 1128, 67, 2152, 291, 2625, 12, 1128, 16, 365, 18, 5254, 18, 8109, 67, 625, 4672, 468, 2405, 279, 1234, 5116, 18, 1376, 67, 3576, 261, 389, 2932, 2568, 1404, 1196, 333, 1301, 2724, 1846, 854, 5840, 622, 333, 1479, 4442, 13, 262, 327, 225, 309, 1301, 422, 374, 30, 468, 4460, 8651, 468, 745, 358, 855, 2632, 1123, 365, 18, 5254, 18, 2902, 7452, 18, 2704, 2564, 12, 2890, 18, 5254, 18, 8109, 67, 625, 13, 365, 18, 5254, 18, 2902, 7452, 18, 625, 33, 2890, 18, 5254, 18, 8109, 67, 625, 225, 365, 18, 5254, 18, 10124, 33, 11574, 18, 15252, 12, 365, 18, 5254, 17211, 1018, 33, 2890, 18, 19936, 67, 3404, 270, 15239, 16, 833, 33, 3816, 2890, 18, 5254, 18, 8109, 67, 625, 5717, 262, 18, 1937, 1435, 282, 309, 1301, 422, 404, 30, 468, 2721, 1150, 270, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3824, 67, 2575, 67, 476, 12, 2890, 16, 1301, 4672, 787, 21, 33, 957, 1435, 261, 2284, 16, 1400, 13, 273, 365, 18, 5254, 18, 7032, 11821, 18, 588, 67, 10705, 7675, 588, 67, 8109, 1435, 309, 1400, 422, 599, 30, 1172, 67, 4148, 12, 315, 5414, 67, 2575, 67, 476, 1435, 486, 3170, 21936, 1004, 401, 5, 4442, 262, 327, 365, 18, 5254, 18, 8109, 67, 2564, 33, 2284, 18, 588, 67, 1132, 12, 2165, 16, 20, 13, 365, 18, 5254, 18, 8109, 67, 625, 33, 2284, 18, 588, 67, 1132, 12, 2165, 16, 404, 13, 225, 309, 486, 365, 18, 2896, 1128, 67, 2152, 291, 2625, 12, 1128, 16, 365, 18, 5254, 18, 8109, 67, 625, 2 ]
userGroup)
userGroup )
def storeProxy(self, userDN, userGroup, chain ): """ Store user proxy into the Proxy repository for a user specified by his DN and group. """ #Get remaining secs retVal = chain.getRemainingSecs() if not retVal[ 'OK' ]: return retVal remainingSecs = retVal[ 'Value' ] if remainingSecs < self._minSecsToAllowStore: return S_ERROR( "Cannot store proxy, remaining secs %s is less than %s" %( remainingSecs, self._minSecsToAllowStore ) )
71763bc5d615265855ff68fdb1be8903192a3f1b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/71763bc5d615265855ff68fdb1be8903192a3f1b/ProxyDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1707, 3886, 12, 2890, 16, 729, 8609, 16, 26205, 16, 2687, 262, 30, 3536, 4994, 729, 2889, 1368, 326, 7659, 3352, 364, 279, 729, 1269, 635, 18423, 18001, 471, 1041, 18, 3536, 468, 967, 4463, 18043, 12197, 273, 2687, 18, 588, 11429, 25059, 1435, 309, 486, 12197, 63, 296, 3141, 11, 308, 30, 327, 12197, 4463, 25059, 273, 12197, 63, 296, 620, 11, 308, 309, 4463, 25059, 411, 365, 6315, 1154, 2194, 11634, 7009, 2257, 30, 327, 348, 67, 3589, 12, 315, 4515, 1707, 2889, 16, 4463, 18043, 738, 87, 353, 5242, 2353, 738, 87, 6, 8975, 4463, 25059, 16, 365, 6315, 1154, 2194, 11634, 7009, 2257, 262, 262, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1707, 3886, 12, 2890, 16, 729, 8609, 16, 26205, 16, 2687, 262, 30, 3536, 4994, 729, 2889, 1368, 326, 7659, 3352, 364, 279, 729, 1269, 635, 18423, 18001, 471, 1041, 18, 3536, 468, 967, 4463, 18043, 12197, 273, 2687, 18, 588, 11429, 25059, 1435, 309, 486, 12197, 63, 296, 3141, 11, 308, 30, 327, 12197, 4463, 25059, 273, 12197, 63, 296, 620, 11, 308, 309, 4463, 25059, 411, 365, 6315, 1154, 2194, 11634, 7009, 2257, 30, 327, 348, 67, 3589, 12, 315, 4515, 1707, 2889, 16, 4463, 18043, 738, 87, 353, 5242, 2353, 738, 87, 6, 8975, 4463, 25059, 16, 365, 6315, 1154, 2194, 11634, 7009, 2257, 262, 262, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
version = '0.13',
version = '0.14s1',
def swig_sources (self, sources):
bc3bdcaed68bb8c46fc6a468f34c2ec50a14082e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8055/bc3bdcaed68bb8c46fc6a468f34c2ec50a14082e/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1352, 360, 67, 10141, 261, 2890, 16, 5550, 4672, 2, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1352, 360, 67, 10141, 261, 2890, 16, 5550, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.shape = (1,self.shape[0])
self.shape = (1,newshape[0])
def __array_finalize__(self, obj): ndim = self.ndim if (ndim == 2): return if (ndim > 2): newshape = tuple([x for x in self.shape if x > 1]) ndim = len(newshape) if ndim == 2: self.shape = newshape return elif (ndim > 2): raise ValueError, "shape too large to be a matrix." if ndim == 0: self.shape = (1,1) elif ndim == 1: self.shape = (1,self.shape[0]) return
59ae2e878fa70c47e7df5b948934aafb26ddd022 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/59ae2e878fa70c47e7df5b948934aafb26ddd022/defmatrix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1126, 67, 30343, 972, 12, 2890, 16, 1081, 4672, 9209, 273, 365, 18, 82, 3509, 309, 261, 82, 3509, 422, 576, 4672, 327, 309, 261, 82, 3509, 405, 576, 4672, 394, 4867, 273, 3193, 3816, 92, 364, 619, 316, 365, 18, 4867, 309, 619, 405, 404, 5717, 9209, 273, 562, 12, 2704, 4867, 13, 309, 9209, 422, 576, 30, 365, 18, 4867, 273, 394, 4867, 327, 1327, 261, 82, 3509, 405, 576, 4672, 1002, 2068, 16, 315, 4867, 4885, 7876, 358, 506, 279, 3148, 1199, 309, 9209, 422, 374, 30, 365, 18, 4867, 273, 261, 21, 16, 21, 13, 1327, 9209, 422, 404, 30, 365, 18, 4867, 273, 261, 21, 16, 2704, 4867, 63, 20, 5717, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1126, 67, 30343, 972, 12, 2890, 16, 1081, 4672, 9209, 273, 365, 18, 82, 3509, 309, 261, 82, 3509, 422, 576, 4672, 327, 309, 261, 82, 3509, 405, 576, 4672, 394, 4867, 273, 3193, 3816, 92, 364, 619, 316, 365, 18, 4867, 309, 619, 405, 404, 5717, 9209, 273, 562, 12, 2704, 4867, 13, 309, 9209, 422, 576, 30, 365, 18, 4867, 273, 394, 4867, 327, 1327, 261, 82, 3509, 405, 576, 4672, 1002, 2068, 16, 315, 4867, 4885, 7876, 358, 506, 279, 3148, 1199, 309, 9209, 422, 374, 30, 365, 18, 4867, 273, 261, 21, 16, 21, 13, 1327, 9209, 422, 404, 30, 365, 18, 4867, 273, 261, 21, 16, 2704, 4867, 63, 20, 5717, 327, 2 ]
elif song.type == TYPE_WAV and HAVE_WAV:
elif song.type in TYPE_WAV and HAVE_WAV:
def get_info(song): if song.type == TYPE_MP3 and HAVE_MP3: _mp3.get_info(song) elif song.type == TYPE_OGG and HAVE_OGG: _ogg.get_info(song) elif song.type == TYPE_FLAC and HAVE_FLAC: _flac.get_info(song) elif song.type == TYPE_WAV and HAVE_WAV: _wav.get_info(song) else: raise ValueError, 'Unsupported file %s (type: %s).' % (song.filename, song.type)
19bf661e3f8e021ce679f6ca2fd84c4584e3083c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4997/19bf661e3f8e021ce679f6ca2fd84c4584e3083c/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1376, 12, 816, 75, 4672, 309, 17180, 18, 723, 422, 3463, 67, 4566, 23, 471, 21926, 3412, 67, 4566, 23, 30, 389, 1291, 23, 18, 588, 67, 1376, 12, 816, 75, 13, 1327, 17180, 18, 723, 422, 3463, 67, 13369, 43, 471, 21926, 3412, 67, 13369, 43, 30, 389, 23972, 18, 588, 67, 1376, 12, 816, 75, 13, 1327, 17180, 18, 723, 422, 3463, 67, 19054, 2226, 471, 21926, 3412, 67, 19054, 2226, 30, 389, 2242, 1077, 18, 588, 67, 1376, 12, 816, 75, 13, 1327, 17180, 18, 723, 316, 3463, 67, 59, 5856, 471, 21926, 3412, 67, 59, 5856, 30, 389, 24801, 18, 588, 67, 1376, 12, 816, 75, 13, 469, 30, 1002, 2068, 16, 296, 8544, 585, 738, 87, 261, 723, 30, 738, 87, 14851, 738, 261, 816, 75, 18, 3459, 16, 17180, 18, 723, 13, 282, 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, 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, 981, 30, 1652, 336, 67, 1376, 12, 816, 75, 4672, 309, 17180, 18, 723, 422, 3463, 67, 4566, 23, 471, 21926, 3412, 67, 4566, 23, 30, 389, 1291, 23, 18, 588, 67, 1376, 12, 816, 75, 13, 1327, 17180, 18, 723, 422, 3463, 67, 13369, 43, 471, 21926, 3412, 67, 13369, 43, 30, 389, 23972, 18, 588, 67, 1376, 12, 816, 75, 13, 1327, 17180, 18, 723, 422, 3463, 67, 19054, 2226, 471, 21926, 3412, 67, 19054, 2226, 30, 389, 2242, 1077, 18, 588, 67, 1376, 12, 816, 75, 13, 1327, 17180, 18, 723, 316, 3463, 67, 59, 5856, 471, 21926, 3412, 67, 59, 5856, 30, 389, 24801, 18, 588, 67, 1376, 12, 816, 75, 13, 469, 30, 1002, 2068, 16, 2 ]
raise DistutilsFileErorr, \
raise DistutilsFileError, \
def check_package (self, package, package_dir):
183cbe21fb39b87f6a432c9a7349a8bf69f10559 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/183cbe21fb39b87f6a432c9a7349a8bf69f10559/build_py.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 5610, 261, 2890, 16, 2181, 16, 2181, 67, 1214, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 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, 67, 5610, 261, 2890, 16, 2181, 16, 2181, 67, 1214, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.assertRaises(TypeError, list, izip(N(s)))
self.assertRaises(TypeError, izip, N(s))
def test_izip(self): for s in ("123", "", range(1000), ('do', 1.2), xrange(2000,2200,5)): for g in (G, I, Ig, S, L, R): self.assertEqual(list(izip(g(s))), zip(g(s))) self.assertEqual(list(izip(g(s), g(s))), zip(g(s), g(s))) self.assertRaises(TypeError, izip, X(s)) self.assertRaises(TypeError, list, izip(N(s))) self.assertRaises(ZeroDivisionError, list, izip(E(s)))
a054d9d4712dd15c52c12516940f4c1810e1552d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a054d9d4712dd15c52c12516940f4c1810e1552d/test_itertools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 452, 625, 12, 2890, 4672, 364, 272, 316, 7566, 12936, 3113, 23453, 1048, 12, 18088, 3631, 7707, 2896, 2187, 404, 18, 22, 3631, 12314, 12, 17172, 16, 3787, 713, 16, 25, 3719, 30, 364, 314, 316, 261, 43, 16, 467, 16, 467, 75, 16, 348, 16, 511, 16, 534, 4672, 365, 18, 11231, 5812, 12, 1098, 12, 452, 625, 12, 75, 12, 87, 3719, 3631, 3144, 12, 75, 12, 87, 20349, 365, 18, 11231, 5812, 12, 1098, 12, 452, 625, 12, 75, 12, 87, 3631, 314, 12, 87, 3719, 3631, 3144, 12, 75, 12, 87, 3631, 314, 12, 87, 20349, 365, 18, 11231, 12649, 6141, 12, 19030, 16, 277, 4450, 16, 1139, 12, 87, 3719, 365, 18, 11231, 12649, 6141, 12, 19030, 16, 277, 4450, 16, 423, 12, 87, 3719, 365, 18, 11231, 12649, 6141, 12, 7170, 28223, 668, 16, 666, 16, 277, 4450, 12, 41, 12, 87, 20349, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 452, 625, 12, 2890, 4672, 364, 272, 316, 7566, 12936, 3113, 23453, 1048, 12, 18088, 3631, 7707, 2896, 2187, 404, 18, 22, 3631, 12314, 12, 17172, 16, 3787, 713, 16, 25, 3719, 30, 364, 314, 316, 261, 43, 16, 467, 16, 467, 75, 16, 348, 16, 511, 16, 534, 4672, 365, 18, 11231, 5812, 12, 1098, 12, 452, 625, 12, 75, 12, 87, 3719, 3631, 3144, 12, 75, 12, 87, 20349, 365, 18, 11231, 5812, 12, 1098, 12, 452, 625, 12, 75, 12, 87, 3631, 314, 12, 87, 3719, 3631, 3144, 12, 75, 12, 87, 3631, 314, 12, 87, 20349, 365, 18, 11231, 12649, 6141, 12, 19030, 16, 277, 4450, 16, 1139, 12, 87, 3719, 365, 2 ]
dir_path = self.__resolveFileID(dirName)
dir_path = self.__resolveFileID( dirName )
def transfer_bulkFromClient( self, fileID, token, ignoredSize, fileHelper ): """ Receive files packed into a tar archive by the fileHelper logic. token is used for access rights confirmation. """ if not self.__checkForDiskSpace( base_path, 10 * 1024 * 1024 ): return S_ERROR( 'Less than 10MB remaining' ) dirName = fileID.replace( '.bz2', '' ).replace( '.tar', '' ) dir_path = self.__resolveFileID(dirName) res = fileHelper.networkToBulk( dir_path ) if not res['OK']: errStr = 'Failed to receive network to bulk.' gLogger.error( 'Failed to receive network to bulk.', res['Message'] ) return res if not os.path.exists( dir_path ): return S_ERROR( 'Failed to receive data' ) try: os.chmod( dir_path, 0755 ) except Exception, x: gLogger.exception( 'Could not set permissions of destination directory.', dir_path, x ) return S_OK()
9f0650a3e23eb441883664794fa6606e35b7f93c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9f0650a3e23eb441883664794fa6606e35b7f93c/StorageElementHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7412, 67, 14597, 1265, 1227, 12, 365, 16, 585, 734, 16, 1147, 16, 5455, 1225, 16, 585, 2276, 262, 30, 3536, 17046, 1390, 12456, 1368, 279, 8232, 5052, 635, 326, 585, 2276, 4058, 18, 1147, 353, 1399, 364, 2006, 14989, 14296, 18, 3536, 309, 486, 365, 16186, 1893, 1290, 6247, 3819, 12, 1026, 67, 803, 16, 1728, 380, 6250, 380, 6250, 262, 30, 327, 348, 67, 3589, 12, 296, 15313, 2353, 1728, 7969, 4463, 11, 262, 20878, 273, 585, 734, 18, 2079, 12, 2418, 25292, 22, 2187, 875, 262, 18, 2079, 12, 2418, 11718, 2187, 875, 262, 1577, 67, 803, 273, 365, 16186, 10828, 812, 734, 12, 20878, 262, 400, 273, 585, 2276, 18, 5185, 774, 13112, 12, 1577, 67, 803, 262, 309, 486, 400, 3292, 3141, 3546, 30, 393, 1585, 273, 296, 2925, 358, 6798, 2483, 358, 8280, 1093, 314, 3328, 18, 1636, 12, 296, 2925, 358, 6798, 2483, 358, 8280, 1093, 16, 400, 3292, 1079, 3546, 262, 327, 400, 309, 486, 1140, 18, 803, 18, 1808, 12, 1577, 67, 803, 262, 30, 327, 348, 67, 3589, 12, 296, 2925, 358, 6798, 501, 11, 262, 775, 30, 1140, 18, 343, 1711, 12, 1577, 67, 803, 16, 18641, 262, 1335, 1185, 16, 619, 30, 314, 3328, 18, 4064, 12, 296, 4445, 486, 444, 4371,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, 4058, 18, 1147, 353, 1399, 364, 2006, 14989, 14296, 18, 3536, 309, 486, 365, 16186, 1893, 1290, 6247, 3819, 12, 1026, 67, 803, 16, 1728, 380, 6250, 380, 6250, 262, 30, 327, 348, 67, 3589, 12, 296, 15313, 2353, 1728, 7969, 4463, 11, 262, 20878, 273, 585, 734, 18, 2079, 12, 2418, 25292, 22, 2187, 875, 262, 18, 2079, 12, 2418, 11718, 2187, 875, 262, 1577, 67, 803, 273, 365, 16186, 10828, 812, 734, 12, 20878, 262, 400, 273, 585, 2276, 18, 5185, 774, 13112, 12, 2 ]
p = reactor.listenTCP(0, AServerFactory(self, IPv4Address('TCP', '127.0.0.1', portno)))
f = AServerFactory(self, IPv4Address('TCP', '127.0.0.1', portno)) p = reactor.listenTCP(0, f)
def testBuildProtocol(self): portno = self.getFreePort()
68998e21ef533677da748f03432912990acb38b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/68998e21ef533677da748f03432912990acb38b1/test_tcp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3116, 5752, 12, 2890, 4672, 1756, 2135, 273, 365, 18, 588, 9194, 2617, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3116, 5752, 12, 2890, 4672, 1756, 2135, 273, 365, 18, 588, 9194, 2617, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
@unittest2.expectedFailure
def test_break_with_dwarf(self): """Test setting objc breakpoints using 'regexp-break' and 'breakpoint set'.""" self.buildDwarf() self.break_on_objc_methods()
177666049311be451493ddf58c47b916f47a452e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11986/177666049311be451493ddf58c47b916f47a452e/TestObjCMethods.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8820, 67, 1918, 67, 72, 905, 74, 12, 2890, 4672, 3536, 4709, 3637, 1081, 71, 23416, 1450, 296, 17745, 17, 8820, 11, 471, 296, 8820, 1153, 444, 11, 12123, 365, 18, 3510, 40, 905, 74, 1435, 365, 18, 8820, 67, 265, 67, 2603, 71, 67, 5163, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8820, 67, 1918, 67, 72, 905, 74, 12, 2890, 4672, 3536, 4709, 3637, 1081, 71, 23416, 1450, 296, 17745, 17, 8820, 11, 471, 296, 8820, 1153, 444, 11, 12123, 365, 18, 3510, 40, 905, 74, 1435, 365, 18, 8820, 67, 265, 67, 2603, 71, 67, 5163, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print `para`
def filterMakefile (p, item, tag): filename = os.path.join (p.contents.basedir, item.files[0]) words = string.split (tag.content[0].text, ',') parts = [] for word in words: parts.append (string.strip (word)) list = [] mode = 'search' for line in fileinput.input (filename): if mode == 'search': if line[:12] == '# BEGIN_DESC': pos = string.index (line, '{') pos2 = string.index (line, '}', pos) part = line[pos+1:pos2] #print part if part in parts: mode = 'found' text = '' elif mode == 'found': if line[:10] == '# END_DESC': list.append ((part, text)) mode = 'search' else: text = text + string.rstrip (line[2:]) + '\n' result = xmlsupport.Tag ('p') #print 'list:',list dl = None for part, text in list: paras = string.split (string.rstrip (text), '\n\n') for para in paras: print `para` if para[:5] == '\\item': pos = string.index (para, '{') pos2 = string.index (para, '}', pos) name = para[pos+1:pos2] para = string.lstrip (para[pos2+1:]) print 'item:',name,`para` liElement = xmlsupport.Tag ('li') itemElement = xmlsupport.Tag ('item') textElement = xmlsupport.Text (para) itemElement.append (xmlsupport.Text (name)) liElement.append (itemElement, textElement) if dl: dl.append (liElement) else: dl = xmlsupport.Tag ('description') result.append (dl) else: dl = None pElement = xmlsupport.Tag ('p') textElement = xmlsupport.Text (para) pElement.append (textElement) result.append (pElement) result.dump (0) return result
606ac9a1ef5174c0193769a62ba9853fa2a962bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12443/606ac9a1ef5174c0193769a62ba9853fa2a962bb/contents.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 6464, 768, 261, 84, 16, 761, 16, 1047, 4672, 1544, 273, 1140, 18, 803, 18, 5701, 261, 84, 18, 3980, 18, 31722, 16, 761, 18, 2354, 63, 20, 5717, 225, 4511, 273, 533, 18, 4939, 261, 2692, 18, 1745, 63, 20, 8009, 955, 16, 3316, 13, 2140, 273, 5378, 364, 2076, 316, 4511, 30, 2140, 18, 6923, 261, 1080, 18, 6406, 261, 1095, 3719, 225, 666, 273, 5378, 225, 1965, 273, 296, 3072, 11, 364, 980, 316, 585, 2630, 18, 2630, 261, 3459, 4672, 309, 1965, 422, 296, 3072, 4278, 309, 980, 10531, 2138, 65, 422, 2946, 19270, 67, 10964, 4278, 949, 273, 533, 18, 1615, 261, 1369, 16, 2292, 6134, 949, 22, 273, 533, 18, 1615, 261, 1369, 16, 9571, 16, 949, 13, 1087, 273, 980, 63, 917, 15, 21, 30, 917, 22, 65, 468, 1188, 1087, 309, 1087, 316, 2140, 30, 1965, 273, 296, 7015, 11, 977, 273, 875, 1327, 1965, 422, 296, 7015, 4278, 309, 980, 10531, 2163, 65, 422, 2946, 7273, 67, 10964, 4278, 666, 18, 6923, 14015, 2680, 16, 977, 3719, 1965, 273, 296, 3072, 11, 469, 30, 977, 273, 977, 397, 533, 18, 86, 6406, 261, 1369, 63, 22, 30, 5717, 397, 2337, 82, 11, 225, 563, 273, 2025, 13261, 18, 1805, 7707, 84, 6134, 225, 468, 1188, 296, 1098, 30, 2187, 1098, 8910, 273, 599, 225, 364, 1087, 16, 977, 316, 666, 30, 779, 345, 273, 533, 18, 4939, 261, 1080, 18, 86, 6406, 261, 955, 3631, 2337, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 6464, 768, 261, 84, 16, 761, 16, 1047, 4672, 1544, 273, 1140, 18, 803, 18, 5701, 261, 84, 18, 3980, 18, 31722, 16, 761, 18, 2354, 63, 20, 5717, 225, 4511, 273, 533, 18, 4939, 261, 2692, 18, 1745, 63, 20, 8009, 955, 16, 3316, 13, 2140, 273, 5378, 364, 2076, 316, 4511, 30, 2140, 18, 6923, 261, 1080, 18, 6406, 261, 1095, 3719, 225, 666, 273, 5378, 225, 1965, 273, 296, 3072, 11, 364, 980, 316, 585, 2630, 18, 2630, 261, 3459, 4672, 309, 1965, 422, 296, 3072, 4278, 309, 980, 10531, 2138, 65, 422, 2946, 19270, 67, 10964, 4278, 949, 273, 533, 18, 1615, 261, 1369, 16, 2292, 6134, 949, 22, 273, 533, 18, 1615, 2 ]
if isinstance(obj, Tensor): return obj else: return tinit(obj)
return _as_tensor(obj)
def input_wrapper(cls, obj): if isinstance(obj, Tensor): return obj else: return tinit(obj)
0597b14ae2bc399d19eed4cf02af0a93d74f1379 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12438/0597b14ae2bc399d19eed4cf02af0a93d74f1379/tensor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 810, 67, 8376, 12, 6429, 16, 1081, 4672, 309, 1549, 12, 2603, 16, 13422, 4672, 327, 1081, 469, 30, 327, 268, 2738, 12, 2603, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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672, 309, 1549, 12, 2603, 16, 13422, 4672, 327, 1081, 469, 30, 327, 268, 2738, 12, 2603, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
define = self.prefix + 'ERROR_' + name.replace(' ', '_').replace('.', '_').upper() self.h("""\
if self.define_prefix: define = self.define_prefix + 'ERROR_' + name.replace(' ', '_').replace('.', '_').upper() self.h("""\
#ifndef %s
78883759218488c6c51b43db3259b8dda944ce93 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7593/78883759218488c6c51b43db3259b8dda944ce93/qt4-constants-gen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 430, 82, 536, 738, 87, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 430, 82, 536, 738, 87, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
n=n.next
empty=0 n=n.next if empty: raise Empty,"Empty N value"
def __init__(self,name,value,rfc2425parameters={}): self.name=name if self.name.upper()!="N": raise RuntimeError,"VCardName handles only 'N' type" if isinstance(value,libxml2.xmlNode): self.family,self.given,self.middle,self.prefix,self.suffix=[u""]*5 n=value.children vns=get_node_ns(value) while n: if n.type!='element': n=n.next continue ns=get_node_ns(n) if (ns and vns and ns.getContent()!=vns.getContent()): n=n.next continue if n.name=='FAMILY': self.family=unicode(n.getContent(),"utf-8") if n.name=='GIVEN': self.given=unicode(n.getContent(),"utf-8") if n.name=='MIDDLE': self.middle=unicode(n.getContent(),"utf-8") if n.name=='PREFIX': self.prefix=unicode(n.getContent(),"utf-8") if n.name=='SUFFIX': self.suffix=unicode(n.getContent(),"utf-8") n=n.next else: v=value.split(";") value=[u""]*5 value[:len(v)]=v self.family,self.given,self.middle,self.prefix,self.suffix=value
8c6f1bf79fd2c6da637f442661b1da2d525517ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12769/8c6f1bf79fd2c6da637f442661b1da2d525517ae/vcard.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 529, 16, 1132, 16, 16784, 3247, 2947, 3977, 12938, 4672, 365, 18, 529, 33, 529, 309, 365, 18, 529, 18, 5797, 1435, 5, 1546, 50, 6877, 1002, 7265, 10837, 58, 6415, 461, 7372, 1338, 296, 50, 11, 618, 6, 309, 1549, 12, 1132, 16, 2941, 2902, 22, 18, 2902, 907, 4672, 365, 18, 9309, 16, 2890, 18, 10822, 16, 2890, 18, 18661, 16, 2890, 18, 3239, 16, 2890, 18, 8477, 22850, 89, 3660, 5772, 25, 290, 33, 1132, 18, 5906, 331, 2387, 33, 588, 67, 2159, 67, 2387, 12, 1132, 13, 1323, 290, 30, 309, 290, 18, 723, 5, 2218, 2956, 4278, 1008, 33, 20, 290, 33, 82, 18, 4285, 309, 1008, 30, 1002, 8953, 10837, 1921, 423, 460, 6, 1324, 3153, 33, 588, 67, 2159, 67, 2387, 12, 82, 13, 309, 261, 2387, 471, 331, 2387, 471, 3153, 18, 588, 1350, 1435, 5, 33, 90, 2387, 18, 588, 1350, 1435, 4672, 1008, 33, 20, 290, 33, 82, 18, 4285, 309, 1008, 30, 1002, 8953, 10837, 1921, 423, 460, 6, 1324, 309, 290, 18, 529, 18920, 25002, 25554, 4278, 365, 18, 9309, 33, 9124, 12, 82, 18, 588, 1350, 9334, 6, 3158, 17, 28, 7923, 309, 290, 18, 529, 18920, 43, 8188, 1157, 4278, 365, 18, 10822, 33, 9124, 12, 82, 18, 588, 1350, 9334, 6, 3158, 17, 28, 7923, 309, 290, 18, 529, 18920, 49, 25578, 4278, 365, 18, 18661, 33, 9124, 12, 82, 18, 588, 1350, 9334, 6, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 529, 16, 1132, 16, 16784, 3247, 2947, 3977, 12938, 4672, 365, 18, 529, 33, 529, 309, 365, 18, 529, 18, 5797, 1435, 5, 1546, 50, 6877, 1002, 7265, 10837, 58, 6415, 461, 7372, 1338, 296, 50, 11, 618, 6, 309, 1549, 12, 1132, 16, 2941, 2902, 22, 18, 2902, 907, 4672, 365, 18, 9309, 16, 2890, 18, 10822, 16, 2890, 18, 18661, 16, 2890, 18, 3239, 16, 2890, 18, 8477, 22850, 89, 3660, 5772, 25, 290, 33, 1132, 18, 5906, 331, 2387, 33, 588, 67, 2159, 67, 2387, 12, 1132, 13, 1323, 290, 30, 309, 290, 18, 723, 5, 2218, 2956, 4278, 1008, 33, 20, 290, 33, 82, 18, 4285, 309, 1008, 2 ]
result = failoverTransfer.transferAndRegisterFileFailover(localFile,outputFilePath,lfn,targetSE,failoverSEs,fileGUID,self.defaultCatalog)
result = failoverTransfer.transferAndRegisterFileFailover(localfile,outputFilePath,lfn,targetSE,failoverSEs,fileGUID,self.defaultCatalog)
def __transferOutputDataFiles(self,owner,outputData,outputSE,outputPath): """Performs the upload and registration in the LFC """ self.log.verbose('Uploading output data files') self.__report('Completed','Uploading Output Data') self.log.verbose('Output data files %s to be uploaded to %s SE' %(string.join(outputData,', '),outputSE)) missing = [] uploaded = []
104cb9632bc3b5543dbcbce5a35dbc3ae6cdedfd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/104cb9632bc3b5543dbcbce5a35dbc3ae6cdedfd/JobWrapper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 13866, 1447, 751, 2697, 12, 2890, 16, 8443, 16, 2844, 751, 16, 2844, 1090, 16, 2844, 743, 4672, 3536, 9409, 326, 3617, 471, 7914, 316, 326, 511, 4488, 3536, 365, 18, 1330, 18, 11369, 2668, 4777, 310, 876, 501, 1390, 6134, 365, 16186, 6006, 2668, 9556, 17023, 4777, 310, 3633, 1910, 6134, 365, 18, 1330, 18, 11369, 2668, 1447, 501, 1390, 738, 87, 358, 506, 9140, 358, 738, 87, 3174, 11, 8975, 1080, 18, 5701, 12, 2844, 751, 16, 2187, 296, 3631, 2844, 1090, 3719, 3315, 273, 5378, 9140, 273, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 751, 2697, 12, 2890, 16, 8443, 16, 2844, 751, 16, 2844, 1090, 16, 2844, 743, 4672, 3536, 9409, 326, 3617, 471, 7914, 316, 326, 511, 4488, 3536, 365, 18, 1330, 18, 11369, 2668, 4777, 310, 876, 501, 1390, 6134, 365, 16186, 6006, 2668, 9556, 17023, 4777, 310, 3633, 1910, 6134, 365, 18, 1330, 18, 11369, 2668, 1447, 501, 1390, 738, 87, 358, 506, 9140, 358, 738, 87, 3174, 11, 8975, 1080, 18, 5701, 12, 2844, 751, 16, 2187, 296, 3631, 2844, 1090, 3719, 3315, 273, 5378, 9140, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
myNDVs=zeros(myBufSize)
myNDVs=numpy.zeros(myBufSize)
def doit(opts, args): if opts.debug: print "gdal_calc.py starting calculation %s" %(opts.calc) ################################################################ # fetch details of input layers ################################################################ # set up some lists to store data for each band myFiles=[] myBands=[] myAlphaList=[] myDataType=[] myDataTypeNum=[] myNDV=[] DimensionsCheck=None # loop through input files - checking dimensions for i,myI in enumerate(AlphaList[0:len(sys.argv)-1]): myF = eval("opts.%s" %(myI)) myBand = eval("opts.%s_band" %(myI)) if myF: myFiles.append(gdal.Open(myF, gdal.GA_ReadOnly)) # check if we have asked for a specific band... if myBand: myBands.append(myBand) else: myBands.append(1) myAlphaList.append(myI) myDataType.append(gdal.GetDataTypeName(myFiles[i].GetRasterBand(myBands[i]).DataType)) myDataTypeNum.append(myFiles[i].GetRasterBand(myBands[i]).DataType) myNDV.append(myFiles[i].GetRasterBand(myBands[i]).GetNoDataValue()) # check that the dimensions of each layer are the same if DimensionsCheck: if DimensionsCheck!=[myFiles[i].RasterXSize, myFiles[i].RasterYSize]: print "Error! Dimensions of file %s (%i, %i) are different from file %s (%i, %i). Cannot proceed" return else: DimensionsCheck=[myFiles[i].RasterXSize, myFiles[i].RasterYSize] if opts.debug: print "file %s: %s, dimensions: %s, %s, type: %s" %(myI,myF,DimensionsCheck[0],DimensionsCheck[1],myDataType[i]) ################################################################ # set up output file ################################################################ # open output file exists if os.path.isfile(opts.outF) and not opts.overwrite: if opts.debug: print "Output file %s exists - filling in results into file" %(opts.outF) myOut=gdal.Open(opts.outF, gdal.GA_Update) if [myOut.RasterXSize,myOut.RasterYSize] != DimensionsCheck: print "Error! Output exists, but is the wrong size. Use the --overwrite option to automatically overwrite the existing file" return myOutB=myOut.GetRasterBand(1) myOutNDV=myOutB.GetNoDataValue() myOutType=gdal.GetDataTypeName(myOutB.DataType) else: # remove existing file and regenerate if os.path.isfile(opts.outF): os.remove(opts.outF) # create a new file if opts.debug: print "Generating output file %s" %(opts.outF) # find data type to use if not opts.type: # use the largest type of the input files myOutType=gdal.GetDataTypeName(max(myDataTypeNum)) else: myOutType=opts.type # create file myOutDrv = gdal.GetDriverByName(opts.format) myOut=myOutDrv.Create(opts.outF, DimensionsCheck[0], DimensionsCheck[1], 1, gdal.GetDataTypeByName(myOutType)) # set output geo info based on first input layer myOut.SetGeoTransform(myFiles[0].GetGeoTransform()) myOut.SetProjection(myFiles[0].GetProjection()) myOutB=myOut.GetRasterBand(1) if opts.NoDataValue!=None: myOutNDV=opts.NoDataValue else: myOutNDV=DefaultNDVLookup[myOutType] myOutB.SetNoDataValue(myOutNDV) # write to band myOutB=None # refetch band myOutB=myOut.GetRasterBand(1) if opts.debug: print "output file: %s, dimensions: %s, %s, type: %s" %(opts.outF,myOut.RasterXSize,myOut.RasterYSize,gdal.GetDataTypeName(myOutB.DataType)) ################################################################ # find block size to chop grids into bite-sized chunks ################################################################ # use the block size of the first layer to read efficiently myBlockSize=myFiles[0].GetRasterBand(myBands[0]).GetBlockSize(); # store these numbers in variables that may change later nXValid = myBlockSize[0] nYValid = myBlockSize[1] # find total x and y blocks to be read nXBlocks = (DimensionsCheck[0] + myBlockSize[0] - 1) / myBlockSize[0]; nYBlocks = (DimensionsCheck[1] + myBlockSize[1] - 1) / myBlockSize[1]; myBufSize = myBlockSize[0]*myBlockSize[1] if opts.debug: print "using blocksize %s x %s" %(myBlockSize[0], myBlockSize[1]) # variables for displaying progress ProgressCt=-1 ProgressMk=-1 ProgressEnd=nXBlocks*nYBlocks ################################################################ # start looping through blocks of data ################################################################ # loop through X-lines for X in range(0,nXBlocks): # in the rare (impossible?) case that the blocks don't fit perfectly # change the block size of the final piece if X==nXBlocks-1: nXValid = DimensionsCheck[0] - X * myBlockSize[0] myBufSize = nXValid*nYValid # find X offset myX=X*myBlockSize[0] # reset buffer size for start of Y loop nYValid = myBlockSize[1] myBufSize = nXValid*nYValid # loop through Y lines for Y in range(0,nYBlocks): ProgressCt+=1 if 10*ProgressCt/ProgressEnd%10!=ProgressMk: ProgressMk=10*ProgressCt/ProgressEnd%10 print 10*ProgressMk, "..", # change the block size of the final piece if Y==nYBlocks-1: nYValid = DimensionsCheck[1] - Y * myBlockSize[1] myBufSize = nXValid*nYValid # find Y offset myY=Y*myBlockSize[1] # create empty buffer to mark where nodata occurs myNDVs=zeros(myBufSize) myNDVs.shape=(nYValid,nXValid) # fetch data for each input layer for i,Alpha in enumerate(myAlphaList): # populate lettered arrays with values myval=BandReadAsArray(myFiles[i].GetRasterBand(myBands[i]), xoff=myX, yoff=myY, win_xsize=nXValid, win_ysize=nYValid) # fill in nodata values myNDVs=1*logical_or(myNDVs==1, myval==myNDV[i]) # create an array of values for this block exec("%s=myval" %Alpha) myval=None # try the calculation on the array blocks try: myResult = eval(opts.calc) except: print "evaluation of calculation %s failed" %(opts.calc) raise # propogate nodata values # (set nodata cells to zero then add nodata value to these cells) myResult = ((1*(myNDVs==0))*myResult) + (myOutNDV*myNDVs) # write data block to the output file BandWriteArray(myOutB, myResult, xoff=myX, yoff=myY) print "100 - Done" #print "Finished - Results written to %s" %opts.outF return
ac160e22187f4c00e013af415ee2cf81dece60a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10289/ac160e22187f4c00e013af415ee2cf81dece60a8/gdal_calc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 305, 12, 4952, 16, 833, 4672, 225, 309, 1500, 18, 4148, 30, 1172, 315, 19016, 287, 67, 12448, 18, 2074, 5023, 11096, 738, 87, 6, 8975, 4952, 18, 12448, 13, 225, 19709, 5516, 26487, 13151, 468, 2158, 3189, 434, 810, 6623, 19709, 5516, 26487, 13151, 225, 468, 444, 731, 2690, 6035, 358, 1707, 501, 364, 1517, 8937, 3399, 2697, 33, 8526, 3399, 26554, 33, 8526, 3399, 9690, 682, 33, 8526, 3399, 6273, 33, 8526, 3399, 6273, 2578, 33, 8526, 3399, 2908, 58, 33, 8526, 463, 23124, 1564, 33, 7036, 225, 468, 2798, 3059, 810, 1390, 300, 6728, 5769, 364, 277, 16, 4811, 45, 316, 4241, 12, 9690, 682, 63, 20, 30, 1897, 12, 9499, 18, 19485, 24950, 21, 65, 4672, 3399, 42, 273, 5302, 2932, 4952, 7866, 87, 6, 8975, 4811, 45, 3719, 3399, 14231, 273, 5302, 2932, 4952, 7866, 87, 67, 12752, 6, 8975, 4811, 45, 3719, 309, 3399, 42, 30, 3399, 2697, 18, 6923, 12, 19016, 287, 18, 3678, 12, 4811, 42, 16, 15551, 287, 18, 25043, 67, 12066, 3719, 468, 866, 309, 732, 1240, 19279, 364, 279, 2923, 8937, 2777, 309, 3399, 14231, 30, 3399, 26554, 18, 6923, 12, 4811, 14231, 13, 469, 30, 3399, 26554, 18, 6923, 12, 21, 13, 3399, 9690, 682, 18, 6923, 12, 4811, 45, 13, 3399, 6273, 18, 6923, 12, 19016, 287, 18, 967, 6273, 461, 12, 4811, 2697, 63, 77, 8009, 967, 18637, 14231, 12, 4811, 26554, 63, 77, 65, 2934, 6273, 3719, 3399, 6273, 2578, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 305, 12, 4952, 16, 833, 4672, 225, 309, 1500, 18, 4148, 30, 1172, 315, 19016, 287, 67, 12448, 18, 2074, 5023, 11096, 738, 87, 6, 8975, 4952, 18, 12448, 13, 225, 19709, 5516, 26487, 13151, 468, 2158, 3189, 434, 810, 6623, 19709, 5516, 26487, 13151, 225, 468, 444, 731, 2690, 6035, 358, 1707, 501, 364, 1517, 8937, 3399, 2697, 33, 8526, 3399, 26554, 33, 8526, 3399, 9690, 682, 33, 8526, 3399, 6273, 33, 8526, 3399, 6273, 2578, 33, 8526, 3399, 2908, 58, 33, 8526, 463, 23124, 1564, 33, 7036, 225, 468, 2798, 3059, 810, 1390, 300, 6728, 5769, 364, 277, 16, 4811, 45, 316, 4241, 12, 9690, 682, 63, 20, 30, 1897, 12, 9499, 18, 19485, 24950, 2 ]
TixSubWidget.__init__(self, master, name, destroy_physically)
TixSubWidget.__init__(self, master, name, destroy_physically)
def __init__(self, master, name, destroy_physically=1):
22710823fb554a796dc96c44885d7a9389426824 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/22710823fb554a796dc96c44885d7a9389426824/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 16, 508, 16, 5546, 67, 844, 1900, 6478, 33, 21, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 16, 508, 16, 5546, 67, 844, 1900, 6478, 33, 21, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.fields.remove(field)
self._get_table_info()
def drop_field(self,field): if field in ["__id__","__version__"]: raise ValueError,"Can't delete field %s" %field if not field in self.fields: raise ValueError,"Field %s not found in base" %field sql = "ALTER TABLE %s DROP %s" %(self.name,field) self.cursor.execute(sql) self.fields.remove(field)
afe7a8711786ae2a72bb9dc64c8a6f84af89b5ab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6310/afe7a8711786ae2a72bb9dc64c8a6f84af89b5ab/PyDbLite_MySQL.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3640, 67, 1518, 12, 2890, 16, 1518, 4672, 309, 652, 316, 8247, 972, 350, 972, 15937, 972, 1589, 972, 11929, 30, 1002, 2068, 10837, 2568, 1404, 1430, 652, 738, 87, 6, 738, 1518, 309, 486, 652, 316, 365, 18, 2821, 30, 1002, 2068, 10837, 974, 738, 87, 486, 1392, 316, 1026, 6, 738, 1518, 1847, 273, 315, 18843, 7567, 738, 87, 25736, 738, 87, 6, 8975, 2890, 18, 529, 16, 1518, 13, 365, 18, 9216, 18, 8837, 12, 4669, 13, 365, 18, 2821, 18, 4479, 12, 1518, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 2890, 16, 1518, 4672, 309, 652, 316, 8247, 972, 350, 972, 15937, 972, 1589, 972, 11929, 30, 1002, 2068, 10837, 2568, 1404, 1430, 652, 738, 87, 6, 738, 1518, 309, 486, 652, 316, 365, 18, 2821, 30, 1002, 2068, 10837, 974, 738, 87, 486, 1392, 316, 1026, 6, 738, 1518, 1847, 273, 315, 18843, 7567, 738, 87, 25736, 738, 87, 6, 8975, 2890, 18, 529, 16, 1518, 13, 365, 18, 9216, 18, 8837, 12, 4669, 13, 365, 18, 2821, 18, 4479, 12, 1518, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print "Not Ready %d,%d has %s in %s" % ( taskrow, linenum, concretename, state)
def initMakeReady(self, taskrow): """Find all ready jobs and put them on the readylist Warning: logic duplication between this and makeReady. Refactoring these two is a priority. """ sql = """select linenum,output,concretename,state from cmds LEFT JOIN cmdFileRelation USING (taskrow,linenum) LEFT JOIN fileState USING (concretename) WHERE taskrow=%d""" ## this SQL command is not appropriate!!! fix! cur = self.cursor() cur.execute(sql % taskrow) readyCmds = {} f = cur.fetchall() for (linenum, output,concretename, state) in f: print "cmdList: %d,%d has %s in %s" % ( taskrow, linenum, concretename, state) ready = readyCmds.get(linenum, (True,None)) if not output: #output is either missing or false(input) if (state is not None) and (state != 3): #if not saved? readyCmds[linenum] = (False,ready[1]) print "Not Ready %d,%d has %s in %s" % ( taskrow, linenum, concretename, state) else: readyCmds[linenum] = (ready[0],concretename) i = readyCmds.items() # filter for only the true values, and then pick the first # half of the tuple i = map(lambda x:(taskrow,x[0],x[1][1]), filter(lambda x: x[1][0], i)) i.sort() sql = "insert into readyList VALUES(?,?,?)" cur.executemany(sql,i) pass
5b6a02c82a858db1229fd5d4d621cd3d16fd2060 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5203/5b6a02c82a858db1229fd5d4d621cd3d16fd2060/ssdap_dbutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 6464, 8367, 12, 2890, 16, 1562, 492, 4672, 3536, 3125, 777, 5695, 6550, 471, 1378, 2182, 603, 326, 5695, 1098, 9728, 30, 4058, 31201, 3086, 333, 471, 1221, 8367, 18, 868, 3493, 6053, 4259, 2795, 353, 279, 4394, 18, 3536, 1847, 273, 3536, 4025, 4739, 7924, 16, 2844, 16, 11504, 1349, 1069, 16, 2019, 628, 13446, 9686, 7645, 1797, 812, 3963, 11836, 1360, 261, 4146, 492, 16, 7511, 7924, 13, 9686, 7645, 585, 1119, 11836, 1360, 261, 11504, 1349, 1069, 13, 4852, 1562, 492, 5095, 72, 8395, 7541, 333, 3063, 1296, 353, 486, 5505, 25885, 2917, 5, 662, 273, 365, 18, 9216, 1435, 662, 18, 8837, 12, 4669, 738, 1562, 492, 13, 5695, 5931, 87, 273, 2618, 284, 273, 662, 18, 5754, 454, 1435, 364, 261, 7511, 7924, 16, 876, 16, 11504, 1349, 1069, 16, 919, 13, 316, 284, 30, 1172, 315, 4172, 682, 30, 738, 72, 15529, 72, 711, 738, 87, 316, 738, 87, 6, 738, 261, 1562, 492, 16, 4739, 7924, 16, 20570, 1349, 1069, 16, 919, 13, 5695, 273, 5695, 5931, 87, 18, 588, 12, 7511, 7924, 16, 261, 5510, 16, 7036, 3719, 309, 486, 876, 30, 468, 2844, 353, 3344, 3315, 578, 629, 12, 2630, 13, 309, 261, 2019, 353, 486, 599, 13, 471, 261, 2019, 480, 890, 4672, 468, 430, 486, 5198, 35, 5695, 5931, 87, 63, 7511, 7924, 65, 273, 261, 8381, 16, 1672, 63, 21, 5717, 282, 469, 30, 5695, 5931, 87, 63, 7511, 7924, 65, 273, 261, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 6464, 8367, 12, 2890, 16, 1562, 492, 4672, 3536, 3125, 777, 5695, 6550, 471, 1378, 2182, 603, 326, 5695, 1098, 9728, 30, 4058, 31201, 3086, 333, 471, 1221, 8367, 18, 868, 3493, 6053, 4259, 2795, 353, 279, 4394, 18, 3536, 1847, 273, 3536, 4025, 4739, 7924, 16, 2844, 16, 11504, 1349, 1069, 16, 2019, 628, 13446, 9686, 7645, 1797, 812, 3963, 11836, 1360, 261, 4146, 492, 16, 7511, 7924, 13, 9686, 7645, 585, 1119, 11836, 1360, 261, 11504, 1349, 1069, 13, 4852, 1562, 492, 5095, 72, 8395, 7541, 333, 3063, 1296, 353, 486, 5505, 25885, 2917, 5, 662, 273, 365, 18, 9216, 1435, 662, 18, 8837, 12, 4669, 738, 1562, 492, 13, 5695, 5931, 87, 273, 2618, 2 ]
self.langname = langname
self.langname = langname.strip('"')
def __init__(self, langname, primary): self.langname = langname # string of language name self.primary = primary # boolean of whether or not the language is the primary name
680a1970ded88c9b811352ffe3294937ba89f6e6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8937/680a1970ded88c9b811352ffe3294937ba89f6e6/iso_extract_modeler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3303, 529, 16, 3354, 4672, 365, 18, 4936, 529, 273, 3303, 529, 18, 6406, 2668, 5187, 13, 468, 533, 434, 2653, 508, 365, 18, 8258, 273, 3354, 468, 1250, 434, 2856, 578, 486, 326, 2653, 353, 326, 3354, 508, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3303, 529, 16, 3354, 4672, 365, 18, 4936, 529, 273, 3303, 529, 18, 6406, 2668, 5187, 13, 468, 533, 434, 2653, 508, 365, 18, 8258, 273, 3354, 468, 1250, 434, 2856, 578, 486, 326, 2653, 353, 326, 3354, 508, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
}})
}, })
def dueller_fled(self, event): if event.state == 'offline' and (event.source, event.channel) in duels: duel = duels[(event.source, event.channel)] fleer = event.sender['nick'].lower() if fleer in duel.names: if hasattr(event, 'othername'): for key in ('hp', 'names', 'drawn'): getattr(duel, key)[event.othername.lower()] = getattr(duel, key)[fleer] del getattr(duel, key)[fleer] if duel.aggressor == fleer: duel.agressor = event.othername.lower() else: duel.recipient = event.othername.lower()
f8c71df5f33a333412927b027c6d43892e2c111d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12048/f8c71df5f33a333412927b027c6d43892e2c111d/games.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9978, 292, 749, 67, 74, 1259, 12, 2890, 16, 871, 4672, 309, 871, 18, 2019, 422, 296, 23787, 11, 471, 261, 2575, 18, 3168, 16, 871, 18, 4327, 13, 316, 9978, 10558, 30, 9978, 292, 273, 9978, 10558, 63, 12, 2575, 18, 3168, 16, 871, 18, 4327, 25887, 284, 298, 264, 273, 871, 18, 15330, 3292, 17091, 29489, 8167, 1435, 309, 284, 298, 264, 316, 9978, 292, 18, 1973, 30, 309, 3859, 12, 2575, 16, 296, 3011, 529, 11, 4672, 364, 498, 316, 7707, 15373, 2187, 296, 1973, 2187, 296, 9446, 82, 11, 4672, 3869, 12, 2544, 292, 16, 498, 25146, 2575, 18, 3011, 529, 18, 8167, 1435, 65, 273, 3869, 12, 2544, 292, 16, 498, 25146, 74, 298, 264, 65, 1464, 3869, 12, 2544, 292, 16, 498, 25146, 74, 298, 264, 65, 309, 9978, 292, 18, 346, 2329, 280, 422, 284, 298, 264, 30, 9978, 292, 18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, 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, 9978, 292, 749, 67, 74, 1259, 12, 2890, 16, 871, 4672, 309, 871, 18, 2019, 422, 296, 23787, 11, 471, 261, 2575, 18, 3168, 16, 871, 18, 4327, 13, 316, 9978, 10558, 30, 9978, 292, 273, 9978, 10558, 63, 12, 2575, 18, 3168, 16, 871, 18, 4327, 25887, 284, 298, 264, 273, 871, 18, 15330, 3292, 17091, 29489, 8167, 1435, 309, 284, 298, 264, 316, 9978, 292, 18, 1973, 30, 309, 3859, 12, 2575, 16, 296, 3011, 529, 11, 4672, 364, 498, 316, 7707, 15373, 2187, 296, 1973, 2187, 296, 9446, 82, 11, 4672, 3869, 12, 2544, 292, 16, 498, 25146, 2575, 18, 3011, 529, 18, 8167, 1435, 65, 273, 3869, 12, 2544, 292, 16, 498, 25146, 74, 2 ]
if not buddyID:
if buddyID is None:
def modifyItemSSI(self, item, groupID = None, buddyID = None): if not groupID: groupID = item.group.group.findIDFor(item.group) if not buddyID: buddyID = item.group.findIDFor(item) return self.sendSNAC(0x13,0x09, item.oscarRep(groupID, buddyID))
5dba0eba9ad679b5e21261a0576b4eeef14b42aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/5dba0eba9ad679b5e21261a0576b4eeef14b42aa/oscar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5612, 1180, 1260, 45, 12, 2890, 16, 761, 16, 30365, 273, 599, 16, 324, 29017, 734, 273, 599, 4672, 309, 486, 30365, 30, 30365, 273, 761, 18, 1655, 18, 1655, 18, 4720, 734, 1290, 12, 1726, 18, 1655, 13, 309, 324, 29017, 734, 353, 599, 30, 324, 29017, 734, 273, 761, 18, 1655, 18, 4720, 734, 1290, 12, 1726, 13, 327, 365, 18, 4661, 13653, 2226, 12, 20, 92, 3437, 16, 20, 92, 5908, 16, 761, 18, 538, 9815, 18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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5612, 1180, 1260, 45, 12, 2890, 16, 761, 16, 30365, 273, 599, 16, 324, 29017, 734, 273, 599, 4672, 309, 486, 30365, 30, 30365, 273, 761, 18, 1655, 18, 1655, 18, 4720, 734, 1290, 12, 1726, 18, 1655, 13, 309, 324, 29017, 734, 353, 599, 30, 324, 29017, 734, 273, 761, 18, 1655, 18, 4720, 734, 1290, 12, 1726, 13, 327, 365, 18, 4661, 13653, 2226, 12, 20, 92, 3437, 16, 20, 92, 5908, 16, 761, 18, 538, 9815, 18933, 12, 1655, 734, 16, 324, 29017, 734, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print i.sprintf("%TCP.dport% & ? & unanswered \\\\") print "\\hline\n\\end{tabular}"
rep += i.sprintf("%TCP.dport% & ? & unanswered \\\\\n") rep += "\\hline\n\\end{tabular}\n" return rep
def report_ports(target, ports): ans,unans = sr(IP(dst=target)/TCP(dport=ports),timeout=5) print "\\begin{tabular}{|l|l|l|}\n\\hline" for s,r in ans: if not r.haslayer(ICMP): if r.payload.flags == 0x12: print r.sprintf("%TCP.sport% & open & SA \\\\") print "\\hline" for s,r in ans: if r.haslayer(ICMP): print r.sprintf("%TCPerror.dport% & closed & ICMP type %ICMP.type%/%ICMP.code% from %IP.src% \\\\") elif r.payload.flags != 0x12: print r.sprintf("%TCP.sport% & closed & TCP %TCP.flags% \\\\") print "\\hline" for i in unans: print i.sprintf("%TCP.dport% & ? & unanswered \\\\") print "\\hline\n\\end{tabular}"
c8613d965bb56b5c623eed7b046d4fb0ec01da00 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/c8613d965bb56b5c623eed7b046d4fb0ec01da00/scapy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 67, 4363, 12, 3299, 16, 9048, 4672, 4152, 16, 318, 634, 273, 9133, 12, 2579, 12, 11057, 33, 3299, 13176, 13891, 12, 72, 655, 33, 4363, 3631, 4538, 33, 25, 13, 1172, 8422, 10086, 95, 7032, 2490, 8637, 96, 80, 96, 80, 96, 80, 96, 6280, 82, 1695, 76, 1369, 6, 364, 272, 16, 86, 316, 4152, 30, 309, 486, 436, 18, 5332, 6363, 12, 2871, 4566, 4672, 309, 436, 18, 7648, 18, 7133, 422, 374, 92, 2138, 30, 1172, 436, 18, 87, 1461, 27188, 13891, 18, 87, 655, 9, 473, 1696, 473, 17127, 521, 1695, 2412, 13, 1172, 8422, 76, 1369, 6, 364, 272, 16, 86, 316, 4152, 30, 309, 436, 18, 5332, 6363, 12, 2871, 4566, 4672, 1172, 436, 18, 87, 1461, 27188, 13891, 1636, 18, 72, 655, 9, 473, 4375, 473, 26899, 4566, 618, 738, 2871, 4566, 18, 723, 9, 5258, 2871, 4566, 18, 710, 9, 628, 738, 2579, 18, 4816, 9, 521, 1695, 2412, 13, 1327, 436, 18, 7648, 18, 7133, 480, 374, 92, 2138, 30, 1172, 436, 18, 87, 1461, 27188, 13891, 18, 87, 655, 9, 473, 4375, 473, 9911, 738, 13891, 18, 7133, 9, 521, 1695, 2412, 13, 1172, 8422, 76, 1369, 6, 364, 277, 316, 640, 634, 30, 2071, 1011, 277, 18, 87, 1461, 27188, 13891, 18, 72, 655, 9, 473, 692, 473, 640, 13490, 329, 521, 13011, 82, 7923, 2071, 1011, 8422, 76, 1369, 64, 82, 1695, 409, 95, 7032, 2490, 6280, 82, 6, 327, 2071, 565, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 67, 4363, 12, 3299, 16, 9048, 4672, 4152, 16, 318, 634, 273, 9133, 12, 2579, 12, 11057, 33, 3299, 13176, 13891, 12, 72, 655, 33, 4363, 3631, 4538, 33, 25, 13, 1172, 8422, 10086, 95, 7032, 2490, 8637, 96, 80, 96, 80, 96, 80, 96, 6280, 82, 1695, 76, 1369, 6, 364, 272, 16, 86, 316, 4152, 30, 309, 486, 436, 18, 5332, 6363, 12, 2871, 4566, 4672, 309, 436, 18, 7648, 18, 7133, 422, 374, 92, 2138, 30, 1172, 436, 18, 87, 1461, 27188, 13891, 18, 87, 655, 9, 473, 1696, 473, 17127, 521, 1695, 2412, 13, 1172, 8422, 76, 1369, 6, 364, 272, 16, 86, 316, 4152, 30, 309, 436, 18, 5332, 6363, 12, 2871, 2 ]
tab = [ [self[0]] ] for i in range(1,len(self)): if self[i-1].value > self[i].value: tab.append([self[i]]) else: l = len(tab)-1 tab[l].append(self[i]) return Tableau(tab)
shape = self.parent().shape.conjugate() tab = [] s = 0 for i in range(len(shape)): col = [ self[s+k] for k in range(shape[i]) ] col.reverse() s += shape[i] tab.append(col) tab = Tableau(tab) return(tab.conjugate())
def to_tableau(self):
77181f8acf62542547672f093817935975325633 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/77181f8acf62542547672f093817935975325633/tensor_product.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 2121, 8377, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 2121, 8377, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def notify_add(self, opt, callback):
def __notify(self, opt, type): try: for callback in self.notify[opt]: try: callback(self, 0, Entry(self.opts[opt], type), 0) except AttributeError: pass except KeyError: pass
def set_bool(self, opt, value): return
423582e18ca3c6045556c68a07ce0f5f2333730d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6425/423582e18ca3c6045556c68a07ce0f5f2333730d/gconf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 6430, 12, 2890, 16, 2153, 16, 460, 4672, 327, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6430, 12, 2890, 16, 2153, 16, 460, 4672, 327, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def testLoadPNG( self ):
def testLoadPNG(self):
def testLoadPNG( self ): """ see if we can load a png. """ f = os.path.join("examples", "data", "alien1.png") surf = pygame.image.load(f)
72035ccf36592238ec60d9d9936f42a901b9ebe0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1298/72035ccf36592238ec60d9d9936f42a901b9ebe0/image_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2563, 23092, 12, 2890, 4672, 3536, 2621, 309, 732, 848, 1262, 279, 14476, 18, 3536, 284, 273, 1140, 18, 803, 18, 5701, 2932, 16858, 3113, 315, 892, 3113, 315, 18083, 275, 21, 18, 6446, 7923, 22253, 273, 2395, 13957, 18, 2730, 18, 945, 12, 74, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2563, 23092, 12, 2890, 4672, 3536, 2621, 309, 732, 848, 1262, 279, 14476, 18, 3536, 284, 273, 1140, 18, 803, 18, 5701, 2932, 16858, 3113, 315, 892, 3113, 315, 18083, 275, 21, 18, 6446, 7923, 22253, 273, 2395, 13957, 18, 2730, 18, 945, 12, 74, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
os.mkdir(dst)
os.makedirs(dst) copystat(src, dst)
def copytree(src, dst, symlinks=False): """Recursively copy a directory tree using copy2(). The destination directory must not already exist. If exception(s) occur, an Error is raised with a list of reasons. If the optional symlinks flag is true, symbolic links in the source tree result in symbolic links in the destination tree; if it is false, the contents of the files pointed to by symbolic links are copied. XXX Consider this example code rather than the ultimate tool. """ names = os.listdir(src) os.mkdir(dst) errors = [] for name in names: srcname = os.path.join(src, name) dstname = os.path.join(dst, name) try: if symlinks and os.path.islink(srcname): linkto = os.readlink(srcname) os.symlink(linkto, dstname) elif os.path.isdir(srcname): copytree(srcname, dstname, symlinks) else: copy2(srcname, dstname) # XXX What about devices, sockets etc.? except (IOError, os.error), why: errors.append((srcname, dstname, why)) if errors: raise Error, errors
48f3ea9a2c4d1cbade55a9ebfa99ff213338f948 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/48f3ea9a2c4d1cbade55a9ebfa99ff213338f948/shutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 3413, 12, 4816, 16, 3046, 16, 23146, 33, 8381, 4672, 3536, 12474, 1610, 279, 1867, 2151, 1450, 1610, 22, 7675, 225, 1021, 2929, 1867, 1297, 486, 1818, 1005, 18, 971, 1520, 12, 87, 13, 3334, 16, 392, 1068, 353, 11531, 598, 279, 666, 434, 14000, 18, 225, 971, 326, 3129, 23146, 2982, 353, 638, 16, 16754, 4716, 316, 326, 1084, 2151, 563, 316, 16754, 4716, 316, 326, 2929, 2151, 31, 309, 518, 353, 629, 16, 326, 2939, 434, 326, 1390, 25874, 358, 635, 16754, 4716, 854, 9268, 18, 225, 11329, 23047, 333, 3454, 981, 9178, 2353, 326, 225, 406, 4988, 5226, 18, 225, 3536, 1257, 273, 1140, 18, 1098, 1214, 12, 4816, 13, 1140, 18, 81, 9477, 10539, 12, 11057, 13, 6529, 1094, 270, 12, 4816, 16, 3046, 13, 1334, 273, 5378, 364, 508, 316, 1257, 30, 1705, 529, 273, 1140, 18, 803, 18, 5701, 12, 4816, 16, 508, 13, 3046, 529, 273, 1140, 18, 803, 18, 5701, 12, 11057, 16, 508, 13, 775, 30, 309, 23146, 471, 1140, 18, 803, 18, 291, 1232, 12, 4816, 529, 4672, 1692, 869, 273, 1140, 18, 896, 1232, 12, 4816, 529, 13, 1140, 18, 21278, 12, 1232, 869, 16, 3046, 529, 13, 1327, 1140, 18, 803, 18, 291, 1214, 12, 4816, 529, 4672, 1610, 3413, 12, 4816, 529, 16, 3046, 529, 16, 23146, 13, 469, 30, 1610, 22, 12, 4816, 529, 16, 3046, 529, 13, 468, 11329, 18734, 2973, 7166, 16, 16762, 5527, 18, 35, 1335, 261, 4294, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 3413, 12, 4816, 16, 3046, 16, 23146, 33, 8381, 4672, 3536, 12474, 1610, 279, 1867, 2151, 1450, 1610, 22, 7675, 225, 1021, 2929, 1867, 1297, 486, 1818, 1005, 18, 971, 1520, 12, 87, 13, 3334, 16, 392, 1068, 353, 11531, 598, 279, 666, 434, 14000, 18, 225, 971, 326, 3129, 23146, 2982, 353, 638, 16, 16754, 4716, 316, 326, 1084, 2151, 563, 316, 16754, 4716, 316, 326, 2929, 2151, 31, 309, 518, 353, 629, 16, 326, 2939, 434, 326, 1390, 25874, 358, 635, 16754, 4716, 854, 9268, 18, 225, 11329, 23047, 333, 3454, 981, 9178, 2353, 326, 225, 406, 4988, 5226, 18, 225, 3536, 1257, 273, 1140, 18, 1098, 1214, 12, 4816, 13, 1140, 18, 81, 9477, 2 ]
far = Ray2( Point2(*bottom), prev.direction ).intersect(Ray2( Point2(*top), -current.direction ))
if bottom == top: far = Point2(*bottom) else: far = Ray2( Point2(*bottom), prev.direction ).intersect(Ray2( Point2(*top), -current.direction ))
def build_vbo(self): strip = [] colors = [] texcoord = [] for ctx, parts in self._parts: start_len = len(strip) for line in parts:
046ccf3bf5335b783983b34fbc635917b0901b3e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7473/046ccf3bf5335b783983b34fbc635917b0901b3e/draw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 90, 1075, 12, 2890, 4672, 2569, 273, 5378, 5740, 273, 5378, 16573, 5732, 273, 5378, 364, 1103, 16, 2140, 316, 365, 6315, 6019, 30, 787, 67, 1897, 273, 562, 12, 6406, 13, 364, 980, 316, 2140, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 5740, 273, 5378, 16573, 5732, 273, 5378, 364, 1103, 16, 2140, 316, 365, 6315, 6019, 30, 787, 67, 1897, 273, 562, 12, 6406, 13, 364, 980, 316, 2140, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"", "", "dvn",
self._last_fileselector_dir, "", "dvn",
def _helper_file_save(self, always_ask=True): """Save current network to file.
1f20840b07ede703da0177ec1a21cff6547f16b4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4494/1f20840b07ede703da0177ec1a21cff6547f16b4/graph_editor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4759, 67, 768, 67, 5688, 12, 2890, 16, 3712, 67, 835, 33, 5510, 4672, 3536, 4755, 783, 2483, 358, 585, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4759, 67, 768, 67, 5688, 12, 2890, 16, 3712, 67, 835, 33, 5510, 4672, 3536, 4755, 783, 2483, 358, 585, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]