rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
pos += 1
def PyUnicode_DecodeRawUnicodeEscape(s, size,errors): if (size == 0): return u'' pos = 0 p = [] while (pos < len(s)): ch = s[pos] #/* Non-escape characters are interpreted as Unicode ordinals */ if (ch != '\\'): p += ch pos += 1 continue startinpos = pos pos += 1
5efa14154184eac5ee6ca6162a67c199654ad7fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/5efa14154184eac5ee6ca6162a67c199654ad7fc/unicodecodec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4707, 16532, 67, 6615, 4809, 16532, 8448, 12, 87, 16, 963, 16, 4324, 4672, 225, 309, 261, 1467, 422, 374, 4672, 327, 582, 6309, 949, 273, 374, 293, 273, 5378, 1323, 261, 917, 411, 562,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4707, 16532, 67, 6615, 4809, 16532, 8448, 12, 87, 16, 963, 16, 4324, 4672, 225, 309, 261, 1467, 422, 374, 4672, 327, 582, 6309, 949, 273, 374, 293, 273, 5378, 1323, 261, 917, 411, 562,...
print 'trying alternate: %s' % alt_fname
_debug_('trying alternate: %s' % alt_fname)
def __getfont__(self, filename, ptsize): ptsize = int(ptsize / 0.7) # XXX pygame multiplies by 0.7 for some reason
7d3df0cfada32b1835519071e9f53f6a23adcde4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/7d3df0cfada32b1835519071e9f53f6a23adcde4/osd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 5776, 972, 12, 2890, 16, 1544, 16, 5818, 1467, 4672, 5818, 1467, 273, 509, 12, 1092, 554, 342, 374, 18, 27, 13, 225, 468, 11329, 2395, 13957, 3309, 5259, 635, 374, 18, 27, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 5776, 972, 12, 2890, 16, 1544, 16, 5818, 1467, 4672, 5818, 1467, 273, 509, 12, 1092, 554, 342, 374, 18, 27, 13, 225, 468, 11329, 2395, 13957, 3309, 5259, 635, 374, 18, 27, ...
def run_and_handle_errors(self): try: self.run() except CheckoutNeedsUpdate, e: log("Commit failed because the checkout is out of date. Please update and try again.") log("You can pass --no-build to skip building/testing after update if you believe the new commits did not affect the results.") WorkQueue.exit_after_han...
return CommitMessage("".join(changelog_messages).splitlines())
def run_and_handle_errors(self): try: self.run() except CheckoutNeedsUpdate, e: log("Commit failed because the checkout is out of date. Please update and try again.") log("You can pass --no-build to skip building/testing after update if you believe the new commits did not affect the results.") WorkQueue.exit_after_han...
8d7ed037b5f22f994bf1dd483a68a42a888bd263 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/8d7ed037b5f22f994bf1dd483a68a42a888bd263/webkitlandingscripts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 464, 67, 4110, 67, 4324, 12, 2890, 4672, 775, 30, 365, 18, 2681, 1435, 1335, 29153, 26419, 1891, 16, 425, 30, 613, 2932, 5580, 2535, 2724, 326, 13926, 353, 596, 434, 1509, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 464, 67, 4110, 67, 4324, 12, 2890, 4672, 775, 30, 365, 18, 2681, 1435, 1335, 29153, 26419, 1891, 16, 425, 30, 613, 2932, 5580, 2535, 2724, 326, 13926, 353, 596, 434, 1509, 18...
from sphinx.textwriter import TextWriter
from sphinx.writers.text import TextWriter
def issue_role(typ, rawtext, text, lineno, inliner, options={}, content=[]): issue = utils.unescape(text) text = 'issue ' + issue refnode = nodes.reference(text, text, refuri=ISSUE_URI % issue) return [refnode], []
eac8c25bd44d651e4ff6fdd7697abc71647e14b4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/eac8c25bd44d651e4ff6fdd7697abc71647e14b4/pyspecific.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5672, 67, 4615, 12, 12846, 16, 1831, 955, 16, 977, 16, 7586, 16, 316, 7511, 264, 16, 702, 28793, 913, 33, 8526, 4672, 5672, 273, 2990, 18, 318, 6939, 12, 955, 13, 977, 273, 296, 1388...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5672, 67, 4615, 12, 12846, 16, 1831, 955, 16, 977, 16, 7586, 16, 316, 7511, 264, 16, 702, 28793, 913, 33, 8526, 4672, 5672, 273, 2990, 18, 318, 6939, 12, 955, 13, 977, 273, 296, 1388...
Return True if the quaternion algebra is a division algebra (i.e. a ring, not necessarily commutative, in which every nonzero element is invertible). So if this returns False, the quaternion algebra is isomorphic to the 2x2 matrix algebra.
Return True if the quaternion algebra is a division algebra (i.e. every nonzero element in self is invertible), and False if the quaternion algebra is isomorphic to the 2x2 matrix algebra.
def is_division_algebra(self): """ Return True if the quaternion algebra is a division algebra (i.e. a ring, not necessarily commutative, in which every nonzero element is invertible). So if this returns False, the quaternion algebra is isomorphic to the 2x2 matrix algebra. EXAMPLES:: sage: QuaternionAlgebra(QQ,-5,-2...
fe177d7e9e5b87a4c01b1082cf61c4d867951ed1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/fe177d7e9e5b87a4c01b1082cf61c4d867951ed1/quaternion_algebra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 2892, 1951, 67, 287, 29087, 12, 2890, 4672, 3536, 2000, 1053, 309, 326, 26774, 524, 29087, 353, 279, 16536, 524, 29087, 261, 77, 18, 73, 18, 3614, 16966, 930, 316, 365, 353, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 2892, 1951, 67, 287, 29087, 12, 2890, 4672, 3536, 2000, 1053, 309, 326, 26774, 524, 29087, 353, 279, 16536, 524, 29087, 261, 77, 18, 73, 18, 3614, 16966, 930, 316, 365, 353, 9...
for skill, amounts in tot['Skills'].iteritems(): if self.capDistance: amount = amounts['BaseCap'] - amounts['TotalBonus'] else: amount = amounts['TotalBonus'] self.insertSkill(amount, skill, "Skill") for skill, amounts in tot['Focus'].iteritems(): if self.capDistance: amount = amounts['BaseCap'] - amounts['TotalBonus']...
for skillkey, suffix, lookup in ( ('Skills', '', 'Skill'), ('Focus', ' Focus', 'Focus'), ('OtherBonuses', '', 'Bonus'), ('PvEBonuses', ' (PvE)', 'Bonus')): skills = tot[skillkey].keys() skills.sort() for skill in skills: amounts = tot[skillkey][skill] if self.capDistance: amount = amounts['BaseCap'] - amounts['TotalBon...
def calculate(self): if self.nocalc: return errorcount = 0 charleveltext = str(self.CharLevel.text()) if charleveltext == '': charlevel = 1 else: charlevel = max(min(50, int(charleveltext)), 1) self.CharLevel.setText(str(charlevel)) for key, item in self.itemattrlist.iteritems(): if item.ActiveState != 'player': contin...
ad3196c4498c1f0b7b9adbf3af79680fe38a609e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6671/ad3196c4498c1f0b7b9adbf3af79680fe38a609e/ScWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4604, 12, 2890, 4672, 309, 365, 18, 82, 23735, 71, 30, 327, 555, 1883, 273, 374, 1149, 2815, 955, 273, 609, 12, 2890, 18, 2156, 2355, 18, 955, 10756, 309, 1149, 2815, 955, 422, 875, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4604, 12, 2890, 4672, 309, 365, 18, 82, 23735, 71, 30, 327, 555, 1883, 273, 374, 1149, 2815, 955, 273, 609, 12, 2890, 18, 2156, 2355, 18, 955, 10756, 309, 1149, 2815, 955, 422, 875, ...
if options.type == 'thumbnail': thumbnail(files_list) elif options.type == 'resize': resize(files_list) elif options.type == 'crop': crop(files_list)
try: getattr(Test, options.type)(files_list) except AttributeError: print "%s doesn\'t exist" % options.type
def roll(image, delta): "Roll an image sideways" xsize, ysize = image.size delta = delta % xsize if delta == 0: return image part1 = image.crop((0, 0, delta, ysize)) part2 = image.crop((delta, 0, xsize, ysize)) image.paste(part2, (0, 0, xsize-delta, ysize)) image.paste(part1, (xsize-delta, 0, xsize, ysize)) return ...
d54f25435adbff08da206ffef8882757ca950b01 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4038/d54f25435adbff08da206ffef8882757ca950b01/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5824, 12, 2730, 16, 3622, 4672, 315, 24194, 392, 1316, 4889, 3052, 6, 225, 619, 1467, 16, 677, 1467, 273, 1316, 18, 1467, 225, 3622, 273, 3622, 738, 619, 1467, 309, 3622, 422, 374, 30,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5824, 12, 2730, 16, 3622, 4672, 315, 24194, 392, 1316, 4889, 3052, 6, 225, 619, 1467, 16, 677, 1467, 273, 1316, 18, 1467, 225, 3622, 273, 3622, 738, 619, 1467, 309, 3622, 422, 374, 30,...
self.row = asarray(ij[0], 'i') self.col = asarray(ij[1], 'i')
self.row = asarray(ij[0]) self.col = asarray(ij[1])
def __init__(self, obj, ij, dims=None, nzmax=None, dtype=None): spmatrix.__init__(self) try: # Assume the first calling convention assert len(ij) == 2 if dims is None: M = int(amax(ij[0])) N = int(amax(ij[1])) self.shape = (M, N) else: # Use 2 steps to ensure dims has length 2. M, N = dims self.shape = (M, N) self.row ...
0b2d25691f3b5b478761024814ba8dc28534e0fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/0b2d25691f3b5b478761024814ba8dc28534e0fb/sparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1081, 16, 19313, 16, 9914, 33, 7036, 16, 15062, 1896, 33, 7036, 16, 3182, 33, 7036, 4672, 1694, 5667, 16186, 2738, 972, 12, 2890, 13, 775, 30, 468, 15983...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1081, 16, 19313, 16, 9914, 33, 7036, 16, 15062, 1896, 33, 7036, 16, 3182, 33, 7036, 4672, 1694, 5667, 16186, 2738, 972, 12, 2890, 13, 775, 30, 468, 15983...
tags[self.tagnum]['genre'] = fileref.tag().genre
tags[self.tagnum]['genre'] = tag.genre
def tags_win_update(self, window, tags, entries, entries_names): self.updating_edit_entries = True # Populate tags(). Note that we only retrieve info from the # file if the info hasn't already been changed: fileref = tagpy.FileRef(tags[self.tagnum]['fullpath']) if not tags[self.tagnum]['title-changed']: tags[self.tagnu...
f46c857512301d1836864c51b4a0d938e9c1cf02 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/f46c857512301d1836864c51b4a0d938e9c1cf02/tagedit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2342, 67, 8082, 67, 2725, 12, 2890, 16, 2742, 16, 2342, 16, 3222, 16, 3222, 67, 1973, 4672, 365, 18, 5533, 1776, 67, 4619, 67, 8219, 273, 1053, 468, 22254, 2342, 7675, 3609, 716, 732, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2342, 67, 8082, 67, 2725, 12, 2890, 16, 2742, 16, 2342, 16, 3222, 16, 3222, 67, 1973, 4672, 365, 18, 5533, 1776, 67, 4619, 67, 8219, 273, 1053, 468, 22254, 2342, 7675, 3609, 716, 732, ...
oscmd(PREFIX + "/built/bin/egg2bam" + dotexe + " " + egg + " " + bam)
oscmd(PREFIX + "/built/bin/egg2bam" + dotexe + " -pr " + preconv + " -o " + bam + " " + egg)
def CompileBAM(bam, egg): dotexe = ".exe" if (sys.platform != "win32"): dotexe = "" if (egg[-4:]==".flt"): oscmd(PREFIX + "/built/bin/flt2egg" + dotexe + " " + egg + " " + PREFIX + "/tmp/tmp.egg") oscmd(PREFIX + "/built/bin/egg2bam" + dotexe + " " + PREFIX + "/tmp/tmp.egg" + " " + bam) else: oscmd(PREFIX + "/built/bin/...
37dba03aa7789ae67e14f92b91ba92b911952d35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/37dba03aa7789ae67e14f92b91ba92b911952d35/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16143, 38, 2192, 12, 11477, 16, 25144, 4672, 3928, 14880, 273, 3552, 14880, 6, 309, 261, 9499, 18, 9898, 480, 315, 8082, 1578, 6, 4672, 3928, 14880, 273, 1408, 309, 261, 23171, 18919, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16143, 38, 2192, 12, 11477, 16, 25144, 4672, 3928, 14880, 273, 3552, 14880, 6, 309, 261, 9499, 18, 9898, 480, 315, 8082, 1578, 6, 4672, 3928, 14880, 273, 1408, 309, 261, 23171, 18919, 24...
args.append(pyexec)
args.append('"%s"' % pyexec)
def create_shortcut(ws, dp_folder, ver_name, pyexec): """ Create a shortcut. ws should be a Shell COM object. dp_folder should be the folder where the shortcuts are created. If ver_name is None, the shortcut will be "DreamPie" instead of "DreamPie ({ver_name})". If pyexec is None, will start dreampie.exe with no argume...
edcfc7898b52be0dd7a9c0d19ddd58b5769b7a99 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10932/edcfc7898b52be0dd7a9c0d19ddd58b5769b7a99/create-shortcuts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 24744, 12, 4749, 16, 9986, 67, 5609, 16, 1924, 67, 529, 16, 2395, 4177, 4672, 3536, 1788, 279, 10995, 18, 4945, 1410, 506, 279, 19433, 5423, 733, 18, 9986, 67, 5609, 1410, 506...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24744, 12, 4749, 16, 9986, 67, 5609, 16, 1924, 67, 529, 16, 2395, 4177, 4672, 3536, 1788, 279, 10995, 18, 4945, 1410, 506, 279, 19433, 5423, 733, 18, 9986, 67, 5609, 1410, 506...
env.AppendUnique( LIBPATH= [ env['flex_lib'] ] )
env.AppendUnique( LIBPATH= [ env['flex_lib'] ] ) env.AppendUnique( CPPPATH= [ env['flex_include'] ] )
def update( self, env ): """ Update the environment with specific flags """
7b5431d7dbfd7f358c047c82cd325608e3bbd337 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6794/7b5431d7dbfd7f358c047c82cd325608e3bbd337/flex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 365, 16, 1550, 262, 30, 3536, 2315, 326, 3330, 598, 2923, 2943, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 365, 16, 1550, 262, 30, 3536, 2315, 326, 3330, 598, 2923, 2943, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if help is not None and '?' not in allowed: allowed += help_keys
def ask_question(self, question, allowed, help=None, help_keys='hH?'): with self.channel.locked_output(): with self.new_prompt(question): while True: if help is not None and '?' not in allowed: allowed += help_keys try: type, value = self.recv_char(allowed) if type=='key': value = value[0] if help is not None and value...
32f99f17d3587fa8a4e67809ffcdec15afff473f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3449/32f99f17d3587fa8a4e67809ffcdec15afff473f/consolebuffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6827, 67, 4173, 12, 2890, 16, 5073, 16, 2935, 16, 2809, 33, 7036, 16, 2809, 67, 2452, 2218, 76, 44, 4899, 4672, 598, 365, 18, 4327, 18, 15091, 67, 2844, 13332, 598, 365, 18, 2704, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6827, 67, 4173, 12, 2890, 16, 5073, 16, 2935, 16, 2809, 33, 7036, 16, 2809, 67, 2452, 2218, 76, 44, 4899, 4672, 598, 365, 18, 4327, 18, 15091, 67, 2844, 13332, 598, 365, 18, 2704, 67...
_introspecting[oid] = prop_doc
def introspect_property(prop): """Add API documentation information about the property C{prop} to C{prop_doc} (specializing it to C{PropertyDoc}).""" # Create the PropertyDoc oid = id(prop) if oid in _introspecting: return _introspecting[oid] prop_doc = PropertyDoc(pyval=prop, repr=value_repr(prop), canonical_name = ...
8306498614e7db9ddd2c5e78aa700eded3f33a2e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/8306498614e7db9ddd2c5e78aa700eded3f33a2e/docintrospecter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30165, 67, 4468, 12, 5986, 4672, 3536, 986, 1491, 7323, 1779, 2973, 326, 1272, 385, 95, 5986, 97, 358, 385, 95, 5986, 67, 2434, 97, 261, 9371, 6894, 518, 358, 385, 95, 1396, 1759, 6792...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30165, 67, 4468, 12, 5986, 4672, 3536, 986, 1491, 7323, 1779, 2973, 326, 1272, 385, 95, 5986, 97, 358, 385, 95, 5986, 67, 2434, 97, 261, 9371, 6894, 518, 358, 385, 95, 1396, 1759, 6792...
assert(self.date is not None, "Must set date to use IMAPMessage instance.")
assert self.date is not None, \ "Must set date to use IMAPMessage instance."
def getInternalDate(self): """Retrieve the date internally associated with this message.""" assert(self.date is not None, "Must set date to use IMAPMessage instance.") return self.date
015f3d563a5a237bd8c4901c7368d0ee044ad991 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/015f3d563a5a237bd8c4901c7368d0ee044ad991/sb_pop3dnd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16918, 1626, 12, 2890, 4672, 3536, 5767, 326, 1509, 12963, 3627, 598, 333, 883, 12123, 1815, 365, 18, 712, 353, 486, 599, 16, 521, 315, 10136, 444, 1509, 358, 999, 6246, 2203, 1079, 791,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16918, 1626, 12, 2890, 4672, 3536, 5767, 326, 1509, 12963, 3627, 598, 333, 883, 12123, 1815, 365, 18, 712, 353, 486, 599, 16, 521, 315, 10136, 444, 1509, 358, 999, 6246, 2203, 1079, 791,...
elif line == '':
elif not line:
def _generate_toc(self): """Generate key-to-(start, stop) table of contents.""" starts, stops = [], [] self._file.seek(0) next_pos = 0 while True: line_pos = next_pos line = self._file.readline() next_pos = self._file.tell() if line.startswith('\001\001\001\001' + os.linesep): starts.append(next_pos) while True: line_p...
3ae5cf1ce9baf6330ccf73291ebfeaee2c111013 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/3ae5cf1ce9baf6330ccf73291ebfeaee2c111013/mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7163, 67, 1391, 12, 2890, 4672, 3536, 4625, 498, 17, 869, 17, 12, 1937, 16, 2132, 13, 1014, 434, 2939, 12123, 2542, 16, 12349, 273, 5378, 16, 5378, 365, 6315, 768, 18, 16508, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7163, 67, 1391, 12, 2890, 4672, 3536, 4625, 498, 17, 869, 17, 12, 1937, 16, 2132, 13, 1014, 434, 2939, 12123, 2542, 16, 12349, 273, 5378, 16, 5378, 365, 6315, 768, 18, 16508, 12, ...
def get_valueOf_(self): return self.valueOf_ def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
def get_valueOf_(self): return self.valueOf_
9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/9c12e50d449fa27d6f8f3415ece228ae97bb0266/_nexml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1132, 951, 67, 12, 2890, 4672, 327, 365, 18, 1132, 951, 67, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1132, 951, 67, 12, 2890, 4672, 327, 365, 18, 1132, 951, 67, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
raise CompressionError, "unsupported compression method"
raise CompressionError("unsupported compression method")
def _init_read_gz(self): """Initialize for reading a gzip compressed fileobj. """ self.cmp = self.zlib.decompressobj(-self.zlib.MAX_WBITS) self.dbuf = ""
e4751e3cdc8c271f24e46a6155f255b6e33da158 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e4751e3cdc8c271f24e46a6155f255b6e33da158/tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 896, 67, 9764, 12, 2890, 4672, 3536, 7520, 364, 6453, 279, 10331, 8968, 17041, 18, 3536, 365, 18, 9625, 273, 365, 18, 94, 2941, 18, 323, 14706, 2603, 19236, 2890, 18, 94...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 896, 67, 9764, 12, 2890, 4672, 3536, 7520, 364, 6453, 279, 10331, 8968, 17041, 18, 3536, 365, 18, 9625, 273, 365, 18, 94, 2941, 18, 323, 14706, 2603, 19236, 2890, 18, 94...
r""" Permanent of (0,1)-matrix of size $n \times (n+d)$ with $d=5$ and $n-1$ zeros not on a line. $a(n) = (n+1)*a(n-1) + (n-2)*a(n-2) [a(1)=6, a(2)=36]$ This is a special case of Theorem 2.3 of Seok-Zun Song et al. Extremes of permanents of (0,1)-matrices, p. 201-202. REFERENCES: Seok-Zun Song et al., Extremes of p...
def __init__(self): r""" Permanent of (0,1)-matrix of size $n \times (n+d)$ with $d=5$ and $n-1$ zeros not on a line. $a(n) = (n+1)*a(n-1) + (n-2)*a(n-2) [a(1)=6, a(2)=36]$ This is a special case of Theorem 2.3 of Seok-Zun Song et al. Extremes of permanents of (0,1)-matrices, p. 201-202. REFERENCES: Seok-Zun Song e...
def _eval(self, n): if n == 1: return ZZ(5) else: return sloane.A001909(n+3) + sloane.A001909(n+2)
7b02e5455d5d52d6dcc7f2314cdd56803031a1c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7b02e5455d5d52d6dcc7f2314cdd56803031a1c6/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 309, 290, 422, 404, 30, 327, 2285, 62, 12, 25, 13, 469, 30, 327, 225, 272, 383, 8806, 18, 37, 713, 3657, 5908, 12, 82, 15, 23, 13, 397, 272, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 309, 290, 422, 404, 30, 327, 2285, 62, 12, 25, 13, 469, 30, 327, 225, 272, 383, 8806, 18, 37, 713, 3657, 5908, 12, 82, 15, 23, 13, 397, 272, 3...
' WHERE name in (%s)' % (','.join(['%s'] * len(self))), additional_data.keys()
' WHERE name in %s',(tuple(additional_data),)
def update_from_db(self, cr): # update the graph with values from the database (if exist) ## First, we set the default values for each package in graph additional_data = dict.fromkeys(self.keys(), {'id': 0, 'state': 'uninstalled', 'dbdemo': False, 'installed_version': None}) ## Then we get the values from the database ...
f33171198680a04a1dc6a2802531abf41f054884 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/f33171198680a04a1dc6a2802531abf41f054884/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2080, 67, 1966, 12, 2890, 16, 4422, 4672, 468, 1089, 326, 2667, 598, 924, 628, 326, 2063, 261, 430, 1005, 13, 7541, 5783, 16, 732, 444, 326, 805, 924, 364, 1517, 2181, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2080, 67, 1966, 12, 2890, 16, 4422, 4672, 468, 1089, 326, 2667, 598, 924, 628, 326, 2063, 261, 430, 1005, 13, 7541, 5783, 16, 732, 444, 326, 805, 924, 364, 1517, 2181, 316, ...
""" fl_addto_form(form) -> form ref.
""" fl_addto_form(form) -> form
def fl_addto_form(form): """ fl_addto_form(form) -> form ref. """ retval = _fl_addto_form(form) return retval
8765c710f695de392f6fc7c664c746ec98668b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/8765c710f695de392f6fc7c664c746ec98668b1d/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 1289, 869, 67, 687, 12, 687, 4672, 3536, 1183, 67, 1289, 869, 67, 687, 12, 687, 13, 317, 646, 3536, 225, 5221, 273, 389, 2242, 67, 1289, 869, 67, 687, 12, 687, 13, 327, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1183, 67, 1289, 869, 67, 687, 12, 687, 4672, 3536, 1183, 67, 1289, 869, 67, 687, 12, 687, 13, 317, 646, 3536, 225, 5221, 273, 389, 2242, 67, 1289, 869, 67, 687, 12, 687, 13, 327, 5...
""" create a member area
""" Create a member area for 'member_id'.
def createMemberarea(self, member_id): """ create a member area """ parent = self.aq_inner.aq_parent members = getattr(parent, 'Members', None)
8232ef475ca9d52eac5bad772f694aadfeefca9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/8232ef475ca9d52eac5bad772f694aadfeefca9f/MembershipTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 4419, 5036, 12, 2890, 16, 3140, 67, 350, 4672, 225, 3536, 1788, 279, 3140, 5091, 364, 296, 5990, 67, 350, 10332, 3536, 982, 273, 365, 18, 69, 85, 67, 7872, 18, 69, 85, 67, 2938,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 4419, 5036, 12, 2890, 16, 3140, 67, 350, 4672, 225, 3536, 1788, 279, 3140, 5091, 364, 296, 5990, 67, 350, 10332, 3536, 982, 273, 365, 18, 69, 85, 67, 7872, 18, 69, 85, 67, 2938,...
numMasters, = unpack('B',1)
numMasters,delim = unpack('Bc',2)
def pack(format,*args): out.write(struct.pack(format,*args))
6a02625d5f2d736dbd19ab9b5f1a55b0691055f7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6682/6a02625d5f2d736dbd19ab9b5f1a55b0691055f7/bosh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2298, 12, 2139, 16, 14, 1968, 4672, 596, 18, 2626, 12, 1697, 18, 2920, 12, 2139, 16, 14, 1968, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2298, 12, 2139, 16, 14, 1968, 4672, 596, 18, 2626, 12, 1697, 18, 2920, 12, 2139, 16, 14, 1968, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
try: base64.decodestring("") except binascii_error: pass else: self.fail("expected a binascii.Error on null decode request")
test_support.verify(base64.decodestring('') == '')
def test_decode_string(self): """Testing decode string""" test_support.verify(base64.decodestring("d3d3LnB5dGhvbi5vcmc=\n") == "www.python.org", reason="www.python.org decodestring failed") test_support.verify(base64.decodestring("YQ==\n") == "a", reason="a decodestring failed") test_support.verify(base64.decodestring(...
2d30bafb924fb4343d42307f2023c8ca76845064 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2d30bafb924fb4343d42307f2023c8ca76845064/test_base64.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3922, 67, 1080, 12, 2890, 4672, 3536, 22218, 2495, 533, 8395, 1842, 67, 13261, 18, 8705, 12, 1969, 1105, 18, 4924, 1145, 371, 2932, 72, 23, 72, 23, 13780, 38, 25, 72, 43, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3922, 67, 1080, 12, 2890, 4672, 3536, 22218, 2495, 533, 8395, 1842, 67, 13261, 18, 8705, 12, 1969, 1105, 18, 4924, 1145, 371, 2932, 72, 23, 72, 23, 13780, 38, 25, 72, 43, 7...
payload_completed_count = 0
old_payload_completed_count = 0
def runAdobeInstallTool(cmd, number_of_payloads=0, killAdobeAIR=False): '''An abstraction of the tasks for running Adobe Setup, AdobeUberInstaller, AdobeUberUninstaller, AdobeDeploymentManager, etc''' if munkicommon.munkistatusoutput and not number_of_payloads: # indeterminate progress bar munkistatus.percent(-1) proc...
e5c160b86f6f8c0c48e4a280254434ac50dfbb11 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6241/e5c160b86f6f8c0c48e4a280254434ac50dfbb11/adobeutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 1871, 947, 73, 6410, 6364, 12, 4172, 16, 1300, 67, 792, 67, 7648, 87, 33, 20, 16, 8673, 1871, 947, 73, 37, 7937, 33, 8381, 4672, 9163, 979, 1223, 701, 1128, 434, 326, 4592, 364...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 1871, 947, 73, 6410, 6364, 12, 4172, 16, 1300, 67, 792, 67, 7648, 87, 33, 20, 16, 8673, 1871, 947, 73, 37, 7937, 33, 8381, 4672, 9163, 979, 1223, 701, 1128, 434, 326, 4592, 364...
@cmdln.option('-r', '--region', metavar='XY',
@cmdln.option('-r', metavar='XY',
def do_new(self, subcmd, opts, identifier): """${cmd_name}: insert a new mirror into the database
e1ef967e0444eaa3c215d0c3d8ce15bd50cc9098 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10990/e1ef967e0444eaa3c215d0c3d8ce15bd50cc9098/mirrordoctor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2704, 12, 2890, 16, 720, 4172, 16, 1500, 16, 2756, 4672, 3536, 18498, 4172, 67, 529, 6713, 2243, 279, 394, 15593, 1368, 326, 2063, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2704, 12, 2890, 16, 720, 4172, 16, 1500, 16, 2756, 4672, 3536, 18498, 4172, 67, 529, 6713, 2243, 279, 394, 15593, 1368, 326, 2063, 2, -100, -100, -100, -100, -100, -100, -100, ...
else
else:
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 290) else quickfix.IntField.__init__(self, 290, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 576, 9349, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 576, 9349, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 273...
vprint("selected imap folder %s" % imap_folder)
def _archive_imap(mailbox_name, final_archive_name): """Archive an imap mailbox - used by archive_mailbox()""" assert(mailbox_name) assert(final_archive_name) import imaplib import cStringIO import getpass archive = None stats = Stats(mailbox_name, final_archive_name) cache = IdentityCache(mailbox_name) imap_str = mai...
1e5cb090e73ccf5e336f6a1eec0e854efa7396fd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1746/1e5cb090e73ccf5e336f6a1eec0e854efa7396fd/archivemail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10686, 67, 12161, 12, 4408, 2147, 67, 529, 16, 727, 67, 10686, 67, 529, 4672, 3536, 7465, 392, 20226, 14187, 300, 1399, 635, 5052, 67, 4408, 2147, 1435, 8395, 1815, 12, 4408, 2147, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10686, 67, 12161, 12, 4408, 2147, 67, 529, 16, 727, 67, 10686, 67, 529, 4672, 3536, 7465, 392, 20226, 14187, 300, 1399, 635, 5052, 67, 4408, 2147, 1435, 8395, 1815, 12, 4408, 2147, ...
self.content_length = int( self.extract_header('Content-Length', 0)) self.data = self.data[newline+2:]
self.data = self.data[newline+1:]
def append(self, new_data): self.data += new_data while not self.headers_complete: newline = self.data.find('\n') if newline < 0: break # no complete line found line = self.data[:newline] if len(line) and line[-1] == '\r': line = line[:-1] if len(line): self.headers.append(line) else: self.headers_complete = True self....
7e0cf3dd4f4532da6b66e15206b18b95c2822de6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3111/7e0cf3dd4f4532da6b66e15206b18b95c2822de6/throxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 12, 2890, 16, 394, 67, 892, 4672, 365, 18, 892, 1011, 394, 67, 892, 1323, 486, 365, 18, 2485, 67, 6226, 30, 9472, 273, 365, 18, 892, 18, 4720, 2668, 64, 82, 6134, 309, 9472, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 12, 2890, 16, 394, 67, 892, 4672, 365, 18, 892, 1011, 394, 67, 892, 1323, 486, 365, 18, 2485, 67, 6226, 30, 9472, 273, 365, 18, 892, 18, 4720, 2668, 64, 82, 6134, 309, 9472, 4...
if getattr(model, '_already_run_alter_schema_trick', False): return
def _alter_sqlite_table(self, table_name, field_renames={}): """ Not supported under SQLite. """ model_name = table_name.replace('_', '.', 1) model = self.current_orm[model_name] if getattr(model, '_already_run_alter_schema_trick', False): return temp_name = table_name + "_temporary_for_schema_change" self.rename_table...
9ac2fbab57c1645782a26d67b4a29cf5e9a9f5b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13142/9ac2fbab57c1645782a26d67b4a29cf5e9a9f5b7/sqlite3.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 22628, 67, 19460, 67, 2121, 12, 2890, 16, 1014, 67, 529, 16, 652, 67, 1187, 753, 12938, 4672, 3536, 2288, 3260, 3613, 16192, 18, 3536, 938, 67, 529, 273, 1014, 67, 529, 18, 2079, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 22628, 67, 19460, 67, 2121, 12, 2890, 16, 1014, 67, 529, 16, 652, 67, 1187, 753, 12938, 4672, 3536, 2288, 3260, 3613, 16192, 18, 3536, 938, 67, 529, 273, 1014, 67, 529, 18, 2079, ...
field.context_validate(value)
fields.context_validate(value)
def check_context(self, cursor, user, ids): "Check context" for action in self.browse(cursor, user, ids): if action.context: try: value = safe_eval(action.context, CONTEXT) except: return False if isinstance(value, PYSON): if not value.types() == set([dict]): return False elif not isinstance(value, dict): return False ...
0128c0634ec99895d5441b2ea39a0cdbff1371f1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9266/0128c0634ec99895d5441b2ea39a0cdbff1371f1/action.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2472, 12, 2890, 16, 3347, 16, 729, 16, 3258, 4672, 315, 1564, 819, 6, 364, 1301, 316, 365, 18, 25731, 12, 9216, 16, 729, 16, 3258, 4672, 309, 1301, 18, 2472, 30, 775, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2472, 12, 2890, 16, 3347, 16, 729, 16, 3258, 4672, 315, 1564, 819, 6, 364, 1301, 316, 365, 18, 25731, 12, 9216, 16, 729, 16, 3258, 4672, 309, 1301, 18, 2472, 30, 775, 30, ...
max_min = self.min_max() if max_min: return max_min[1]
min_max = self.min_max if min_max: return min_max[1] else: return None
def max( self ): max_min = self.min_max() if max_min: return max_min[1]
4747773736163ba0f09ddc3c8e0103ae38f565ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10268/4747773736163ba0f09ddc3c8e0103ae38f565ea/ecl_kw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 943, 12, 365, 262, 30, 943, 67, 1154, 273, 365, 18, 1154, 67, 1896, 1435, 309, 943, 67, 1154, 30, 327, 943, 67, 1154, 63, 21, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 943, 12, 365, 262, 30, 943, 67, 1154, 273, 365, 18, 1154, 67, 1896, 1435, 309, 943, 67, 1154, 30, 327, 943, 67, 1154, 63, 21, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
cmdclass = { 'install' : openerp_server_install, 'build' : openerp_server_build },
cmdclass = { 'install' : openerp_server_install, },
def run(self): # create startup script start_script = "#!/bin/sh\ncd %s\nexec %s ./openerp-server.py $@\n" % (opj(self.install_libbase, "openerp-server"), sys.executable) # write script f = open('openerp-server', 'w') f.write(start_script) f.close()
a819a33163133576b9febc66524581b0b8a67977 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12853/a819a33163133576b9febc66524581b0b8a67977/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 468, 752, 11850, 2728, 787, 67, 4263, 273, 6619, 5, 19, 4757, 19, 674, 64, 82, 4315, 738, 87, 64, 82, 4177, 738, 87, 263, 19, 25098, 84, 17, 3567, 18, 2074, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 468, 752, 11850, 2728, 787, 67, 4263, 273, 6619, 5, 19, 4757, 19, 674, 64, 82, 4315, 738, 87, 64, 82, 4177, 738, 87, 263, 19, 25098, 84, 17, 3567, 18, 2074, 2...
self.__utf_exp = re.compile(r"\\u(-?\d{3,6}) {0,1}")
self.__utf_exp = re.compile(r"\\u(-?\d{3,6}) ?") self.__bin_exp = re.compile(r"(?:\\bin(-?\d{0,10})[\n ]+)[01\n]+") self.__utf_ud = re.compile(r"\\{[\n ]?\\upr[\n ]?(?:\\{.*?\\})[\n ]?" + \ r"\\{[\n ]?\\*[\n ]?\\ud[\n ]?(\\{.*?\\})[\n ]?\\}[\n ]?\\}") self.__splitexp = re.compile(r"(\\[{}]|\n|\\[^\s\\{}&]+(?:[ \t\r...
def __compile_expressions(self): SIMPLE_RPL = { "\\\\": "\\backslash ", "\\~": "\\~ ", "\\;": "\\; ", "&": "&amp;", "<": "&lt;", ">": "&gt;", "\\~": "\\~ ", "\\_": "\\_ ", "\\:": "\\: ", "\\-": "\\- ", # turn into a generic token to eliminate special # cases and make processing easier "\\{": "\\ob ", # turn into a gene...
7c70914ad30fc358bfcd7c099494b0a43682ba27 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/7c70914ad30fc358bfcd7c099494b0a43682ba27/tokenize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11100, 67, 21480, 12, 2890, 4672, 19098, 67, 54, 6253, 273, 288, 28040, 21392, 8422, 823, 12877, 3104, 8422, 98, 6877, 8422, 98, 3104, 8422, 4868, 30, 8422, 31, 3104, 7830, 6877, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11100, 67, 21480, 12, 2890, 4672, 19098, 67, 54, 6253, 273, 288, 28040, 21392, 8422, 823, 12877, 3104, 8422, 98, 6877, 8422, 98, 3104, 8422, 4868, 30, 8422, 31, 3104, 7830, 6877, 7...
"""The method aims generally at MoinMoin.parser.text_xslt This parser should encode Unicode input to UTF8 as late as possible
""" This method aims generally at MoinMoin.parser.text_xslt - this parser should encode Unicode input to UTF8 as late as possible.
def test_ParserOutput(self): """The method aims generally at MoinMoin.parser.text_xslt This parser should encode Unicode input to UTF8 as late as possible """ request = self.request assert not request.cfg.allow_xslt, u'allow_xslt should be disabled' errmsg = []
ce8a961b19e148ce28f006648a0021e13c16f358 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/ce8a961b19e148ce28f006648a0021e13c16f358/test_unicode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2678, 1447, 12, 2890, 4672, 3536, 1220, 707, 279, 12097, 19190, 622, 490, 885, 49, 885, 18, 4288, 18, 955, 67, 92, 14414, 300, 333, 2082, 1410, 2017, 9633, 810, 358, 6380, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2678, 1447, 12, 2890, 4672, 3536, 1220, 707, 279, 12097, 19190, 622, 490, 885, 49, 885, 18, 4288, 18, 955, 67, 92, 14414, 300, 333, 2082, 1410, 2017, 9633, 810, 358, 6380, 28...
commands = re.split('[\n;]+', commands)
commands = commands.split(';')
def _filterUnrecognizedCommands(self, commands): assert isinstance(commands, str) result = [ ] #commands = commands.replace('\n', ';').replace(';', ';*').strip('*') #for comm in commands.split('*'): commands = re.split('[\n;]+', commands) for comm in commands: if comm: ## if not an empty string. if self._isHPGLCommandK...
5121198ae2c935055ee4ff6b188f1dbca9b7f6e8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3716/5121198ae2c935055ee4ff6b188f1dbca9b7f6e8/baseplotter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2188, 19648, 9127, 12, 2890, 16, 4364, 4672, 1815, 1549, 12, 7847, 16, 609, 13, 563, 273, 306, 308, 468, 7847, 273, 4364, 18, 2079, 2668, 64, 82, 2187, 7554, 2934, 2079, 2668, 31,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2188, 19648, 9127, 12, 2890, 16, 4364, 4672, 1815, 1549, 12, 7847, 16, 609, 13, 563, 273, 306, 308, 468, 7847, 273, 4364, 18, 2079, 2668, 64, 82, 2187, 7554, 2934, 2079, 2668, 31,...
def contains(self, path, suffix=None): """Check, whether the file in ``path`` is already cached. """ return self.getCachedFile(path, suffix=suffix) is not None
def contains(self, path=None, marker=None, suffix=None): """Check, whether the file in ``path`` or marked by ``marker`` and with suffix ``suffix`` is already cached. This is a convenience method for easy checking of caching state for certain files. You can also get the information by using other API methods of :class:...
def contains(self, path, suffix=None): """Check, whether the file in ``path`` is already cached. """ return self.getCachedFile(path, suffix=suffix) is not None
6784e69cc899d53f8b6bb324d2142feb64f03fa6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9481/6784e69cc899d53f8b6bb324d2142feb64f03fa6/cachemanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1914, 12, 2890, 16, 589, 16, 3758, 33, 7036, 4672, 3536, 1564, 16, 2856, 326, 585, 316, 12176, 803, 10335, 353, 1818, 3472, 18, 3536, 327, 365, 18, 588, 9839, 812, 12, 803, 16, 3758, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1914, 12, 2890, 16, 589, 16, 3758, 33, 7036, 4672, 3536, 1564, 16, 2856, 326, 585, 316, 12176, 803, 10335, 353, 1818, 3472, 18, 3536, 327, 365, 18, 588, 9839, 812, 12, 803, 16, 3758, ...
if 'real_mpfi' in base: print base
def need_to_cython(deps, filename, outfile): """ INPUT: filename -- The name of a cython file in the SAGE source tree. outfile -- The name of the corresponding c or cpp file in the build directory. OUTPUT: bool -- whether or not outfile must be regenerated. """ base = os.path.splitext(filename)[0] pxd = base+'.pxd' ...
8f60ed11740996e6d4c2c12e1a35faf0dabee362 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8f60ed11740996e6d4c2c12e1a35faf0dabee362/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1608, 67, 869, 67, 2431, 3041, 12, 14877, 16, 1544, 16, 8756, 4672, 3536, 12943, 30, 1544, 1493, 1021, 508, 434, 279, 6143, 3041, 585, 316, 326, 348, 2833, 1084, 2151, 18, 8756, 1493, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1608, 67, 869, 67, 2431, 3041, 12, 14877, 16, 1544, 16, 8756, 4672, 3536, 12943, 30, 1544, 1493, 1021, 508, 434, 279, 6143, 3041, 585, 316, 326, 348, 2833, 1084, 2151, 18, 8756, 1493, ...
debug('Setting socket on '+str(args.port)) messages.put('start') server = ThreadedTCPServer(('localhost', int(args.port)), ThreadedTCPRequestHandler) server_thread = threading.Thread(target=server.serve_forever) server_thread.setDaemon(True) server_thread.start() debug("Server running in thread:"+str(server_thread.ge...
debug('Starting tcpServer thread') tcpServer_thread = threading.Thread(target=tcpServer, args=('localhost',int(args.port), MAX_CLIENTS)) tcpServer_thread.setDaemon(True) tcpServer_thread.start() debug("tcpServer running in thread:"+str(tcpServer_thread.getName())) debug('Starting netMon thread') netMon_thread = threa...
def checkInterface(iface): ipAddresses = [] # check if there are interfaces available with pcapy ifs = pcapy.findalldevs() if 0 == len(ifs): print "No interfaces available." sys.exit(1) if not iface in ifs: print "Interface '%s' not found." % (iface) sys.exit(1) for ifaceName in netifaces.interfaces(): try: addresse...
ddca5a6d922024f2741df59d888c45fb81357ef3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2895/ddca5a6d922024f2741df59d888c45fb81357ef3/xpcapy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1358, 12, 31479, 4672, 2359, 7148, 273, 5378, 225, 468, 866, 309, 1915, 854, 7349, 2319, 598, 293, 5909, 93, 309, 87, 273, 293, 5909, 93, 18, 4720, 454, 5206, 87, 1435, 309, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1358, 12, 31479, 4672, 2359, 7148, 273, 5378, 225, 468, 866, 309, 1915, 854, 7349, 2319, 598, 293, 5909, 93, 309, 87, 273, 293, 5909, 93, 18, 4720, 454, 5206, 87, 1435, 309, 374, ...
info['path'] = factory.__module__ + '.SimpleViewClass' info['template'] = factory.index.filename
base = factory.__bases__[0] info['path'] = base.__module__ + '.' + base.__name__ info['template'] = factory.index.filename.replace(BASEDIR, 'Zope3')
def _getFactoryData(factory): """Squeeze some useful information out of the view factory Examples:: >>> from tests import pprintDict The factory is a SimpleViewClass for a Page Template: >>> from zope.app.pagetemplate.simpleviewclass import SimpleViewClass >>> view = SimpleViewClass('index.pt') >>> info = _getFacto...
df7be39d25de4f8aadd28cfa19fc9a7006abcbe0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9672/df7be39d25de4f8aadd28cfa19fc9a7006abcbe0/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 1733, 751, 12, 6848, 4672, 3536, 55, 14652, 2690, 5301, 1779, 596, 434, 326, 1476, 3272, 225, 19830, 2866, 225, 4080, 628, 7434, 1930, 18771, 5014, 225, 1021, 3272, 353, 279, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 1733, 751, 12, 6848, 4672, 3536, 55, 14652, 2690, 5301, 1779, 596, 434, 326, 1476, 3272, 225, 19830, 2866, 225, 4080, 628, 7434, 1930, 18771, 5014, 225, 1021, 3272, 353, 279, 4...
print "Character", `c`
if DEBUG: print "Character", `c`
def do_char(self, c, event): print "Character", `c`
a67a39b61261e14a924785aee0199e094d466e35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a67a39b61261e14a924785aee0199e094d466e35/FrameWork.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3001, 12, 2890, 16, 276, 16, 871, 4672, 309, 6369, 30, 1172, 315, 7069, 3113, 1375, 71, 68, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3001, 12, 2890, 16, 276, 16, 871, 4672, 309, 6369, 30, 1172, 315, 7069, 3113, 1375, 71, 68, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
summary = '&nbsp;<i>No Summary</i>'
summary = '&nbsp;<i>%s</i>' % _('No Summary')
def render_data(self, review_request): summary = conditional_escape(review_request.summary) if not summary: summary = '&nbsp;<i>No Summary</i>'
b9dbc8ec37d1f9e045b9a7a281fa98e33d789b4c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1600/b9dbc8ec37d1f9e045b9a7a281fa98e33d789b4c/datagrids.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 892, 12, 2890, 16, 10725, 67, 2293, 4672, 4916, 273, 11139, 67, 6939, 12, 16041, 67, 2293, 18, 7687, 13, 309, 486, 4916, 30, 4916, 273, 5183, 10600, 31, 32, 77, 34, 2279, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 892, 12, 2890, 16, 10725, 67, 2293, 4672, 4916, 273, 11139, 67, 6939, 12, 16041, 67, 2293, 18, 7687, 13, 309, 486, 4916, 30, 4916, 273, 5183, 10600, 31, 32, 77, 34, 2279, 1...
self.table.showColumn(i+1) self.table.adjustColumn(i+1) if self.ShowAttributeMethod == 1:
self.table.showColumn(i) self.table.adjustColumn(i) else:
def updateAttributes(self): if self.ShowAttributeMethod == 0: for i in range(len(self.data.domain.attributes)): self.table.showColumn(i+1) self.table.adjustColumn(i+1) if self.ShowAttributeMethod == 1: for i in range(len(self.data.domain.attributes)): self.table.hideColumn(i+1)
63e34d56e155a4f1aba288f36a71868771294735 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/63e34d56e155a4f1aba288f36a71868771294735/OWPredictions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 2498, 12, 2890, 4672, 309, 365, 18, 5706, 1499, 1305, 422, 374, 30, 364, 277, 316, 1048, 12, 1897, 12, 2890, 18, 892, 18, 4308, 18, 4350, 3719, 30, 365, 18, 2121, 18, 4500, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 2498, 12, 2890, 4672, 309, 365, 18, 5706, 1499, 1305, 422, 374, 30, 364, 277, 316, 1048, 12, 1897, 12, 2890, 18, 892, 18, 4308, 18, 4350, 3719, 30, 365, 18, 2121, 18, 4500, 149...
"""returns dict with package information"""
"""returns dict with file information"""
def getFileData(self, id): """returns dict with package information""" pyfile = self.getFile(id) return pyfile.toDbDict()
e8d16afeface794da67131d9a37cbfe15b2142aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/e8d16afeface794da67131d9a37cbfe15b2142aa/FileDatabase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6034, 751, 12, 2890, 16, 612, 4672, 3536, 6154, 2065, 598, 585, 1779, 8395, 2395, 768, 273, 365, 18, 29925, 12, 350, 13, 225, 327, 2395, 768, 18, 869, 4331, 5014, 1435, 225, 2, 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, 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, 6034, 751, 12, 2890, 16, 612, 4672, 3536, 6154, 2065, 598, 585, 1779, 8395, 2395, 768, 273, 365, 18, 29925, 12, 350, 13, 225, 327, 2395, 768, 18, 869, 4331, 5014, 1435, 225, 2, -100, ...
rawgreenlet._joinall(alive, polling_period=polling_period)
rawgreenlet.joinall(alive, polling_period=polling_period)
def killall(sources, exception=ProcExit, block=False, polling_period=0.2): waiter = hub.Waiter() core.active_event(rawgreenlet._killall, sources, exception, waiter) if block: alive = waiter.wait() if alive: try: joinall(alive, trap_errors=True) except TypeError: rawgreenlet._joinall(alive, polling_period=polling_period...
75da912c3abf538645fc4e2fbeb45146f8f7a69a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10423/75da912c3abf538645fc4e2fbeb45146f8f7a69a/proc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 454, 12, 10141, 16, 1520, 33, 15417, 6767, 16, 1203, 33, 8381, 16, 13708, 67, 6908, 33, 20, 18, 22, 4672, 17522, 273, 11891, 18, 5480, 264, 1435, 2922, 18, 3535, 67, 2575, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 454, 12, 10141, 16, 1520, 33, 15417, 6767, 16, 1203, 33, 8381, 16, 13708, 67, 6908, 33, 20, 18, 22, 4672, 17522, 273, 11891, 18, 5480, 264, 1435, 2922, 18, 3535, 67, 2575, 12, ...
found_docstring = False
def visitModule(self, node): stmt = node.node found_docstring = False for s in stmt.nodes: # Skip over docstrings if not found_docstring and isinstance(s, ast.Discard) \ and isinstance(s.expr, ast.Const) \ and isinstance(s.expr.value, str): found_docstring = True continue if not self.check_stmt(s): break
afcd838f1f69fdd4bf8a9e5799e0bd591fb109aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/afcd838f1f69fdd4bf8a9e5799e0bd591fb109aa/future.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 3120, 12, 2890, 16, 756, 4672, 3480, 273, 756, 18, 2159, 364, 272, 316, 3480, 18, 4690, 30, 468, 6611, 1879, 997, 10219, 309, 486, 1392, 67, 24675, 471, 1549, 12, 87, 16, 3364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 3120, 12, 2890, 16, 756, 4672, 3480, 273, 756, 18, 2159, 364, 272, 316, 3480, 18, 4690, 30, 468, 6611, 1879, 997, 10219, 309, 486, 1392, 67, 24675, 471, 1549, 12, 87, 16, 3364, ...
raise wikipedia.NoUsername(u'ERROR: Username for %s:%s is undefined.\nIf you have an account for that site, please add such a line to user-config.py:\n\nusernames[\'%s\'][\'%s\'] = \'myUsername\'' % (self.site.family.name, self.site.lang, self.site.family.name, self.site.lang))
raise pywikibot.NoUsername(u'ERROR: Username for %s:%s is undefined.\nIf you have an account for that site, please add such a line to user-config.py:\n\nusernames[\'%s\'][\'%s\'] = \'myUsername\'' % (self.site.family.name, self.site.lang, self.site.family.name, self.site.lang))
def __init__(self, password=None, sysop=False, site=None, username=None, verbose=False): self.site = site or wikipedia.getSite() self.sysop = sysop if username: self.username = username # perform writeback. if site.family.name not in config.usernames: config.usernames[site.family.name]={} config.usernames[site.family.n...
608981a1811e769d811dd6211e35a67e7339add5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/608981a1811e769d811dd6211e35a67e7339add5/login.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2201, 33, 7036, 16, 2589, 556, 33, 8381, 16, 2834, 33, 7036, 16, 2718, 33, 7036, 16, 3988, 33, 8381, 4672, 365, 18, 4256, 273, 2834, 578, 21137, 18, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2201, 33, 7036, 16, 2589, 556, 33, 8381, 16, 2834, 33, 7036, 16, 2718, 33, 7036, 16, 3988, 33, 8381, 4672, 365, 18, 4256, 273, 2834, 578, 21137, 18, 58...
set_module_config('named_reader', config)
interface.set_module_config('named_reader', config)
def main(): print "hello from offline DeVIDE!" meta_modules = load_and_realise_network('/complete/path/to/dvnfile.dvn') # 1. First we are going to configure the reader module to load the file we want. # you can get and change the config of any module that you have named in a previous # DeVIDE session with right click ...
1b0921a8357d31d15ef61f1a6dea3912475e7570 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4494/1b0921a8357d31d15ef61f1a6dea3912475e7570/example_offline_driver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1172, 315, 23711, 628, 13493, 1505, 58, 10385, 4442, 2191, 67, 6400, 273, 1262, 67, 464, 67, 7688, 784, 67, 5185, 2668, 19, 6226, 19, 803, 19, 869, 19, 15679, 82, 768, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1172, 315, 23711, 628, 13493, 1505, 58, 10385, 4442, 2191, 67, 6400, 273, 1262, 67, 464, 67, 7688, 784, 67, 5185, 2668, 19, 6226, 19, 803, 19, 869, 19, 15679, 82, 768, 18,...
def dumps(params, methodname=None, methodresponse=None, encoding=None):
def dumps(params, methodname=None, methodresponse=None, encoding=None, allow_none=0):
def dumps(params, methodname=None, methodresponse=None, encoding=None): """data [,options] -> marshalled data Convert an argument tuple or a Fault instance to an XML-RPC request (or response, if the methodresponse option is used). In addition to the data object, the following options can be given as keyword arguments...
3172d26d432bb314fb46e82b3a2e569dfa5001ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3172d26d432bb314fb46e82b3a2e569dfa5001ae/xmlrpclib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6711, 12, 2010, 16, 707, 529, 33, 7036, 16, 707, 2740, 33, 7036, 16, 2688, 33, 7036, 16, 1699, 67, 6102, 33, 20, 4672, 3536, 892, 306, 16, 2116, 65, 317, 10893, 1259, 501, 225, 4037,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6711, 12, 2010, 16, 707, 529, 33, 7036, 16, 707, 2740, 33, 7036, 16, 2688, 33, 7036, 16, 1699, 67, 6102, 33, 20, 4672, 3536, 892, 306, 16, 2116, 65, 317, 10893, 1259, 501, 225, 4037,...
if (e is not exc and type(e) is not exc):
if type(e) is not exc:
def testAttributes(self): # test that exception attributes are happy try: str(u'Hello \u00E1') except Exception, e: sampleUnicodeEncodeError = e
d6d9d619b7a4c6e74547b9119fea0df07783ba71 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/d6d9d619b7a4c6e74547b9119fea0df07783ba71/test_exceptions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2498, 12, 2890, 4672, 468, 1842, 716, 1520, 1677, 854, 5622, 2074, 775, 30, 609, 12, 89, 11, 18601, 521, 89, 713, 41, 21, 6134, 1335, 1185, 16, 425, 30, 3296, 16532, 5509, 668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2498, 12, 2890, 4672, 468, 1842, 716, 1520, 1677, 854, 5622, 2074, 775, 30, 609, 12, 89, 11, 18601, 521, 89, 713, 41, 21, 6134, 1335, 1185, 16, 425, 30, 3296, 16532, 5509, 668, ...
rpms = findRpms(d)
rpms = findRpms(d, ignoresymlinks)
def checkSrpms(): directories = [ "/var/www/html/mirror/updates-rhel/2.1", "/var/www/html/mirror/updates-rhel/3", "/var/www/html/mirror/updates-rhel/4", "/mnt/hdb4/data/cAos/3.5/updates/SRPMS", "/home/mirror/centos/3.6/updates/SRPMS", "/mnt/hdb4/data/cAos/4.1/os/SRPMS", "/mnt/hdb4/data/cAos/4.1/updates/SRPMS", "/home/m...
5af1a9ab2d3fc26ec4980dbba8ae98a457986a26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/5af1a9ab2d3fc26ec4980dbba8ae98a457986a26/oldpyrpm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 55, 13832, 959, 13332, 6402, 273, 306, 2206, 1401, 19, 5591, 19, 2620, 19, 27197, 19, 14703, 17, 30138, 292, 19, 22, 18, 21, 3113, 2206, 1401, 19, 5591, 19, 2620, 19, 27197, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 55, 13832, 959, 13332, 6402, 273, 306, 2206, 1401, 19, 5591, 19, 2620, 19, 27197, 19, 14703, 17, 30138, 292, 19, 22, 18, 21, 3113, 2206, 1401, 19, 5591, 19, 2620, 19, 27197, 19, ...
self.moviePlayAction.setIconSet(QIconSet(self.image102))
self.moviePlayAction.setIconSet(QIconSet(self.image98))
def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar()
e48e859515237593d94b403a9c0a7295e08c31f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/e48e859515237593d94b403a9c0a7295e08c31f2/MainWindowUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 273, 599, 16, 529, 273, 599, 16, 2242, 273, 374, 4672, 2238, 6376, 3829, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 2242, 13, 365, 18, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2938, 273, 599, 16, 529, 273, 599, 16, 2242, 273, 374, 4672, 2238, 6376, 3829, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 2242, 13, 365, 18, 23...
with test_support.EnvironmentVarGuard() as environ:
with support.EnvironmentVarGuard() as environ:
def test_uname_win32_ARCHITEW6432(self): # Issue 7860: make sure we get architecture from the correct variable # on 64 bit Windows: if PROCESSOR_ARCHITEW6432 exists we should be # using it, per # http://blogs.msdn.com/david.wang/archive/2006/03/26/HOWTO-Detect-Process-Bitness.aspx try: with test_support.EnvironmentVarG...
a799f4ebe4bb39f99f6a8d6bd2ef36fffecb3977 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/a799f4ebe4bb39f99f6a8d6bd2ef36fffecb3977/test_platform.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 318, 339, 67, 8082, 1578, 67, 10586, 5398, 59, 1105, 1578, 12, 2890, 4672, 468, 11820, 22860, 4848, 30, 1221, 3071, 732, 336, 27418, 628, 326, 3434, 2190, 468, 603, 5178, 2831,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 318, 339, 67, 8082, 1578, 67, 10586, 5398, 59, 1105, 1578, 12, 2890, 4672, 468, 11820, 22860, 4848, 30, 1221, 3071, 732, 336, 27418, 628, 326, 3434, 2190, 468, 603, 5178, 2831,...
s = shelve.open(self.fn, protocol=0)
def test_ascii_file_shelf(self): try: s = shelve.open(self.fn, protocol=0) s['key1'] = (1,2,3,4) self.assertEqual(s['key1'], (1,2,3,4)) s.close() finally: for f in glob.glob(self.fn+"*"): os.unlink(f)
8d9db047d2dde9a36197449bd66ea8b0dc42286d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/8d9db047d2dde9a36197449bd66ea8b0dc42286d/test_shelve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9184, 67, 768, 67, 674, 19079, 12, 2890, 4672, 775, 30, 272, 3292, 856, 21, 3546, 273, 261, 21, 16, 22, 16, 23, 16, 24, 13, 365, 18, 11231, 5812, 12, 87, 3292, 856, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9184, 67, 768, 67, 674, 19079, 12, 2890, 4672, 775, 30, 272, 3292, 856, 21, 3546, 273, 261, 21, 16, 22, 16, 23, 16, 24, 13, 365, 18, 11231, 5812, 12, 87, 3292, 856, 21, ...
if cvs_root is None:
if vcs_root is None:
def ProcessFile(self, file): """Dump symbols from this file into a symbol file, stored in the proper directory structure in |symbol_path|.""" result = False sourceFileStream = '' # tries to get cvsroot from the .mozconfig first - if it's not set # the tinderbox cvs_path will be assigned further down cvs_root = os.envi...
1ec1c8b7a3180f04f0cb608e3800b1f5b51fb09f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/1ec1c8b7a3180f04f0cb608e3800b1f5b51fb09f/symbolstore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4389, 812, 12, 2890, 16, 585, 4672, 3536, 10628, 7963, 628, 333, 585, 1368, 279, 3273, 585, 16, 4041, 316, 326, 5338, 1867, 3695, 316, 225, 571, 7175, 67, 803, 96, 12123, 563, 273, 108...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4389, 812, 12, 2890, 16, 585, 4672, 3536, 10628, 7963, 628, 333, 585, 1368, 279, 3273, 585, 16, 4041, 316, 326, 5338, 1867, 3695, 316, 225, 571, 7175, 67, 803, 96, 12123, 563, 273, 108...
self.lcov_converter_path = self.lcov_converter_path.rstrip('\\') convert_command = ('%s -sym_path=%s -src_root=%s ' % (os.path.join(self.lcov_converter_path, 'coverage_analyzer.exe'),
self.tools_path = self.tools_path.rstrip('\\') convert_command = ('%s -sym_path=%s -src_root=%s %s' % (os.path.join(self.tools_path, 'coverage_analyzer.exe'),
def Upload(self, coverage_file, upload_path, sym_path=None, src_root=None): """Upload the results to the dashboard.
bc410f64b906bf3a5ca7721d73b3632fcccaeae2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/bc410f64b906bf3a5ca7721d73b3632fcccaeae2/coverage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9414, 12, 2890, 16, 11196, 67, 768, 16, 3617, 67, 803, 16, 5382, 67, 803, 33, 7036, 16, 1705, 67, 3085, 33, 7036, 4672, 3536, 4777, 326, 1686, 358, 326, 11825, 18, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9414, 12, 2890, 16, 11196, 67, 768, 16, 3617, 67, 803, 16, 5382, 67, 803, 33, 7036, 16, 1705, 67, 3085, 33, 7036, 4672, 3536, 4777, 326, 1686, 358, 326, 11825, 18, 2, -100, -100, -10...
-K, --access-key - user's Access Key ID. -S, --secret-key - user's Secret Key.
-a, --access-key - user's Access Key ID. -s, --secret-key - user's Secret Key.
def make_fs(self, image_path):
55e0562073d61d9f476724753a76a9b272a81ec6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12707/55e0562073d61d9f476724753a76a9b272a81ec6/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 2556, 12, 2890, 16, 1316, 67, 803, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 2556, 12, 2890, 16, 1316, 67, 803, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.AddError('Subject line ignored:\n' + subject, trunc=0)
self.AddError('Subject line ignored:\n ' + subject)
def ParseMailCommands(self):
5551c37235c9c603bd7ae608093198c4c4d929f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/5551c37235c9c603bd7ae608093198c4c4d929f5/MailCommandHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2884, 6759, 9127, 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...
[ 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, 2884, 6759, 9127, 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, -...
try: raise Exception except: frame = sys.exc_info()[2].tb_frame.f_back
frame = sys._getframe().f_back
def set_trace(self): """Start debugging from here.""" try: raise Exception except: frame = sys.exc_info()[2].tb_frame.f_back self.reset() while frame: frame.f_trace = self.trace_dispatch self.botframe = frame frame = frame.f_back self.set_step() sys.settrace(self.trace_dispatch)
046893f4de24e2c2209f986ab84c8f4d90f17c39 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/046893f4de24e2c2209f986ab84c8f4d90f17c39/bdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 5129, 12, 2890, 4672, 3536, 1685, 10450, 628, 2674, 12123, 2623, 273, 2589, 6315, 588, 3789, 7675, 74, 67, 823, 365, 18, 6208, 1435, 1323, 2623, 30, 2623, 18, 74, 67, 5129, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 5129, 12, 2890, 4672, 3536, 1685, 10450, 628, 2674, 12123, 2623, 273, 2589, 6315, 588, 3789, 7675, 74, 67, 823, 365, 18, 6208, 1435, 1323, 2623, 30, 2623, 18, 74, 67, 5129, 27...
buffer_balance = Decimal(str(float(buffer_category['balance'])+float(item_amount_over))) self.cur.execute("update ExpenseCategory set balance = :balance where id = 1", {'balance':str(buffer_balance)})
buffer_balance = buffer_category_balance+item_amount_over self.cur.execute("update ExpenseCategory set balance = :balance where id = 1", {'balance':mf(buffer_balance)})
def _update_category_balance(self, item): "Update the category balance from the item amount" if int(item['type']) == 1: table = "ExpenseCategory" elif int(item['type']) == 2: table = "BillCategory" elif int(item['type']) == 3: table = "SavingCategory" category_select = "select * from %s where id = :id;" % (table) categ...
c1b405e7b76ee374ecb1e3fca3072ef6e0007414 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14271/c1b405e7b76ee374ecb1e3fca3072ef6e0007414/view.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 67, 4743, 67, 12296, 12, 2890, 16, 761, 4672, 315, 1891, 326, 3150, 11013, 628, 326, 761, 3844, 6, 309, 509, 12, 1726, 3292, 723, 19486, 422, 404, 30, 1014, 273, 315, 424, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 67, 4743, 67, 12296, 12, 2890, 16, 761, 4672, 315, 1891, 326, 3150, 11013, 628, 326, 761, 3844, 6, 309, 509, 12, 1726, 3292, 723, 19486, 422, 404, 30, 1014, 273, 315, 424, ...
raise ParseError()
raise ParseError("Expected a name")
def parse_dotted_name_list(elt_list): """ If the given list of tree token elements contains a comma-separated list of dotted names, then return a corresponding list of L{DottedName} objects. Otherwise, raise ParseError. """ names = [] state = 0 for elt in elt_list: # State 0 -- Expecting a name, or end of arglist if ...
a3ef0fa18cbe7a3bcd10dd7313809fd187cded40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/a3ef0fa18cbe7a3bcd10dd7313809fd187cded40/docparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 9811, 2344, 67, 529, 67, 1098, 12, 20224, 67, 1098, 4672, 3536, 971, 326, 864, 666, 434, 2151, 1147, 2186, 1914, 279, 8716, 17, 24622, 666, 434, 20965, 1257, 16, 1508, 327, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 9811, 2344, 67, 529, 67, 1098, 12, 20224, 67, 1098, 4672, 3536, 971, 326, 864, 666, 434, 2151, 1147, 2186, 1914, 279, 8716, 17, 24622, 666, 434, 20965, 1257, 16, 1508, 327, 2...
pat, val = pat.split(':', 1) if pat in ('re', 'glob', 'path', 'relglob', 'relpath', 'relre'): return pat, val
kind, val = pat.split(':', 1) if kind in ('re', 'glob', 'path', 'relglob', 'relpath', 'relre'): return kind, val
def _patsplit(pat, default): """Split a string into an optional pattern kind prefix and the actual pattern.""" if ':' in pat: pat, val = pat.split(':', 1) if pat in ('re', 'glob', 'path', 'relglob', 'relpath', 'relre'): return pat, val return default, pat
16e1a1d5e53bf2f14ec3ecd7dec6c8a82adba0f5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/16e1a1d5e53bf2f14ec3ecd7dec6c8a82adba0f5/match.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 84, 2323, 1127, 12, 16330, 16, 805, 4672, 3536, 5521, 279, 533, 1368, 392, 3129, 1936, 3846, 1633, 471, 326, 3214, 1936, 12123, 309, 3921, 316, 9670, 30, 3846, 16, 1244, 273, 9670, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 84, 2323, 1127, 12, 16330, 16, 805, 4672, 3536, 5521, 279, 533, 1368, 392, 3129, 1936, 3846, 1633, 471, 326, 3214, 1936, 12123, 309, 3921, 316, 9670, 30, 3846, 16, 1244, 273, 9670, ...
def rawcommit(ui, repo, files, rc):
def rawcommit(ui, repo, files, **rc):
def rawcommit(ui, repo, files, rc): "raw commit interface" text = rc['text'] if not text and rc['logfile']: try: text = open(rc['logfile']).read() except IOError: pass if not text and not rc['logfile']: print "missing commit text" return 1 files = relpath(repo, files) if rc['files']: files += open(rc['files']).read()...
ad3f8148b889fe9ba98a3fc93c7f9f13022adc8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/ad3f8148b889fe9ba98a3fc93c7f9f13022adc8a/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1831, 7371, 12, 4881, 16, 3538, 16, 1390, 16, 2826, 1310, 4672, 315, 1899, 3294, 1560, 6, 225, 977, 273, 4519, 3292, 955, 3546, 309, 486, 977, 471, 4519, 3292, 28806, 3546, 30, 775, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1831, 7371, 12, 4881, 16, 3538, 16, 1390, 16, 2826, 1310, 4672, 315, 1899, 3294, 1560, 6, 225, 977, 273, 4519, 3292, 955, 3546, 309, 486, 977, 471, 4519, 3292, 28806, 3546, 30, 775, 30...
if self.PunkBuster
if self.PunkBuster:
def connectClient(self, ccid): if self.PunkBuster self.debug('Getting the (PunkBuster) Playerlist') else: self.debug('Getting the (status) Playerlist') players = self.getPlayerList() self.verbose('connectClient() = %s' % players)
c921986bf67afb94988afc6f88ac321bca7600bc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12909/c921986bf67afb94988afc6f88ac321bca7600bc/cod4.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 1227, 12, 2890, 16, 4946, 350, 4672, 309, 365, 18, 52, 1683, 38, 1722, 30, 365, 18, 4148, 2668, 19213, 326, 261, 52, 1683, 38, 1722, 13, 19185, 1098, 6134, 469, 30, 365, 18, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 1227, 12, 2890, 16, 4946, 350, 4672, 309, 365, 18, 52, 1683, 38, 1722, 30, 365, 18, 4148, 2668, 19213, 326, 261, 52, 1683, 38, 1722, 13, 19185, 1098, 6134, 469, 30, 365, 18, 41...
Reviewer("David Hyatt", "hyatt@apple.com", "harrison"),
Reviewer("David Hyatt", "hyatt@apple.com", "hyatt"),
def __init__(self, name, email_or_emails, irc_nickname=None): Committer.__init__(self, name, email_or_emails, irc_nickname) self.can_review = True
215d7353f8f1e2cce71a4f00422cba3bedd3855a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/215d7353f8f1e2cce71a4f00422cba3bedd3855a/committers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 2699, 67, 280, 67, 22762, 16, 277, 1310, 67, 17091, 529, 33, 7036, 4672, 10269, 387, 16186, 2738, 972, 12, 2890, 16, 508, 16, 2699, 67, 280, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 2699, 67, 280, 67, 22762, 16, 277, 1310, 67, 17091, 529, 33, 7036, 4672, 10269, 387, 16186, 2738, 972, 12, 2890, 16, 508, 16, 2699, 67, 280, 6...
for i in (2, 3, 4, 8): if last_indent + i == indent: last_indent_spaces = i indent_count[i] += 1; last_indent = indent break
indent_diff = abs(indent - last_indent) if indent_diff in (2, 3, 4, 8): last_indent_spaces = indent_diff indent_count[indent_diff] += 1; last_indent = indent
def auto_tab(self, doc, error, view): if error is not None: pass
2911cc9f04b21f90c99ed91bdcc4be7f5f55ebca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6065/2911cc9f04b21f90c99ed91bdcc4be7f5f55ebca/autotab.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3656, 67, 7032, 12, 2890, 16, 997, 16, 555, 16, 1476, 4672, 309, 555, 353, 486, 599, 30, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3656, 67, 7032, 12, 2890, 16, 997, 16, 555, 16, 1476, 4672, 309, 555, 353, 486, 599, 30, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
print 'checkin: ', row[0]
def get_next_id(cursor): """Calculate the next id to assign to new rows. This will be 1 higher than the max id for all tables in the DB. """ cursor.execute("SELECT name FROM sqlite_master " "WHERE type='table' and name != 'dtv_variables'") max_id = 0 for row in cursor.fetchall(): print 'checkin: ', row[0] cursor.execu...
bb06d278e984236ff000b1b40fd9d76bd214f292 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/bb06d278e984236ff000b1b40fd9d76bd214f292/databaseupgrade.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4285, 67, 350, 12, 9216, 4672, 3536, 8695, 326, 1024, 612, 358, 2683, 358, 394, 2595, 18, 225, 1220, 903, 506, 404, 10478, 2353, 326, 943, 612, 364, 777, 4606, 316, 326, 2383,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4285, 67, 350, 12, 9216, 4672, 3536, 8695, 326, 1024, 612, 358, 2683, 358, 394, 2595, 18, 225, 1220, 903, 506, 404, 10478, 2353, 326, 943, 612, 364, 777, 4606, 316, 326, 2383,...
The name of a tear-down function. This is called after running the
A tear-down function. This is called after running the
def DocFileSuite(*paths, **kw): """A unittest suite for one or more doctest files. The path to each doctest file is given as a string; the interpretation of that string depends on the keyword argument "module_relative". A number of options may be provided as keyword arguments: module_relative If "module_relative" is...
7a98ec2b175493f6fa830f03a8e0321d9cc58cf2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/7a98ec2b175493f6fa830f03a8e0321d9cc58cf2/doctest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3521, 812, 13587, 30857, 4481, 16, 2826, 9987, 4672, 3536, 37, 2836, 3813, 11371, 364, 1245, 578, 1898, 31263, 395, 1390, 18, 225, 1021, 589, 358, 1517, 31263, 395, 585, 353, 864, 487, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3521, 812, 13587, 30857, 4481, 16, 2826, 9987, 4672, 3536, 37, 2836, 3813, 11371, 364, 1245, 578, 1898, 31263, 395, 1390, 18, 225, 1021, 589, 358, 1517, 31263, 395, 585, 353, 864, 487, 2...
return self.bus.add_signal_receiver(lambda *args: self.device_condition(udi, *args), "Condition", "org.freedesktop.Hal.Device", "org.freedesktop.Hal", udi)
def add_device_signal_recv (self, udi):
09018ff3aec656e46e1dc005faa26cb96fd91f01 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2597/09018ff3aec656e46e1dc005faa26cb96fd91f01/DeviceManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 5964, 67, 10420, 67, 18334, 261, 2890, 16, 582, 3211, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 5964, 67, 10420, 67, 18334, 261, 2890, 16, 582, 3211, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.__current_realm = None
def __init__(self, passwd=None): if passwd is None: passwd = HTTPPasswordMgr() self.passwd = passwd self.add_password = self.passwd.add_password self.__current_realm = None
479d224bbcd6d456b2b35514bc272be9a92e5143 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/479d224bbcd6d456b2b35514bc272be9a92e5143/urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 19093, 33, 7036, 4672, 309, 19093, 353, 599, 30, 19093, 273, 2239, 3913, 9455, 1435, 365, 18, 24002, 273, 19093, 365, 18, 1289, 67, 3664, 273, 365, 18, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 19093, 33, 7036, 4672, 309, 19093, 353, 599, 30, 19093, 273, 2239, 3913, 9455, 1435, 365, 18, 24002, 273, 19093, 365, 18, 1289, 67, 3664, 273, 365, 18, 2...
@return True if the input was fully consumed, False otherwise.
@return: True if the input was fully consumed, False otherwise.
def full(self): """ Check whether the input was fully consumed.
825c75951a4beaa739e372a43226ad90c2dd4643 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/847/825c75951a4beaa739e372a43226ad90c2dd4643/yeanpypa.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1983, 12, 2890, 4672, 3536, 2073, 2856, 326, 810, 1703, 7418, 12393, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1983, 12, 2890, 4672, 3536, 2073, 2856, 326, 810, 1703, 7418, 12393, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
print "global-include", pattern files = select_pattern (all_files, pattern, anchor=0) if not files: template.warn (("no files found matching '%s' " + "anywhere in distribution") % pattern) else: self.files.extend (files)
print "global-include", string.join(pattern_list) for pattern in pattern_list: files = select_pattern (all_files, pattern, anchor=0) if not files: template.warn (("no files found matching '%s' " + "anywhere in distribution") % pattern) else: self.files.extend (files)
def read_template (self): """Read and parse the manifest template file named by 'self.template' (usually "MANIFEST.in"). Process all file specifications (include and exclude) in the manifest template and add the resulting filenames to 'self.files'."""
d1aa01cb91ac9abec6e7ba7ff3f8be6778f9dbda /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d1aa01cb91ac9abec6e7ba7ff3f8be6778f9dbda/sdist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 3202, 261, 2890, 4672, 3536, 1994, 471, 1109, 326, 5643, 1542, 585, 4141, 635, 296, 2890, 18, 3202, 11, 261, 407, 3452, 315, 9560, 30050, 18, 267, 20387, 225, 4389, 777, 585, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 3202, 261, 2890, 4672, 3536, 1994, 471, 1109, 326, 5643, 1542, 585, 4141, 635, 296, 2890, 18, 3202, 11, 261, 407, 3452, 315, 9560, 30050, 18, 267, 20387, 225, 4389, 777, 585, ...
exts.append( Extension('_CG', ['cg/_CGmodule.c'], extra_link_args=['-framework', 'ApplicationServices', '-framework', 'Carbon']) ) exts.append( Extension('_Cm', ['cm/_Cmmodule.c'], extra_link_args=['-framework', 'Carbon']) ) exts.append( Extension('_Ctl', ['ctl/_Ctlmodule.c'], extra_link_args=['-framework', 'Carbon']) ...
exts.append( Extension('Nav', ['Nav.c'], extra_link_args=['-framework', 'Carbon']) ) exts.append( Extension('_AE', ['ae/_AEmodule.c'], extra_link_args=['-framework', 'Carbon']) ) exts.append( Extension('_AH', ['ah/_AHmodule.c'], extra_link_args=['-framework', 'Carbon']) ) exts.append( Extension('_Alias', ['alias/_Alias...
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
05ced6aa761bab7348e95a479b6f791e636ceae7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/05ced6aa761bab7348e95a479b6f791e636ceae7/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
self.vboxlayout10.addWidget(self.minimize_engine_combobox) self.vboxlayout4.addWidget(self.buttonGroup8_2) self.vboxlayout2.addLayout(self.vboxlayout4) self.vboxlayout1.addLayout(self.vboxlayout2)
self.vboxlayout8.addWidget(self.minimize_engine_combobox) self.vboxlayout1.addWidget(self.buttonGroup8_2)
def setupUi(self, MinimizeEnergyPropDialog): MinimizeEnergyPropDialog.setObjectName("MinimizeEnergyPropDialog") MinimizeEnergyPropDialog.resize(QtCore.QSize(QtCore.QRect(0,0,400,842).size()).expandedTo(MinimizeEnergyPropDialog.minimumSizeHint()))
4cf7d69a606c10cf896a0045c5df06ba517408f0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/4cf7d69a606c10cf896a0045c5df06ba517408f0/MinimizeEnergyPropDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 5444, 10153, 664, 31920, 4658, 6353, 4672, 5444, 10153, 664, 31920, 4658, 6353, 18, 542, 16707, 2932, 2930, 10153, 664, 31920, 4658, 6353, 7923, 5444, 10153, 664, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 5444, 10153, 664, 31920, 4658, 6353, 4672, 5444, 10153, 664, 31920, 4658, 6353, 18, 542, 16707, 2932, 2930, 10153, 664, 31920, 4658, 6353, 7923, 5444, 10153, 664, ...
2 3 4 5 [0,x,2x ,3x ,4x ,5x ]
[0,x,2*x*x,3*x**3,4*x**4,5*x**5]
def __getitem__(self, n): r""" Return the n-th element of this list.
50acc81698e4afd3de40f0f0c32cdf71652bdaf4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/50acc81698e4afd3de40f0f0c32cdf71652bdaf4/axiom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 290, 4672, 436, 8395, 2000, 326, 290, 17, 451, 930, 434, 333, 666, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 290, 4672, 436, 8395, 2000, 326, 290, 17, 451, 930, 434, 333, 666, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def execute(self, testdir = None, iterations = 1, filesize='100M', type='write', pattern='random'):
def run_once(self, testdir = None, filesize='100M', type='write', pattern='random'):
def execute(self, testdir = None, iterations = 1, filesize='100M', type='write', pattern='random'): cmd = os.path.join(self.srcdir, 'src/spew') if not testdir: testdir = self.tmpdir tmpfile = os.path.join(testdir, 'spew-test.%d' % os.getpid()) results = os.path.join(self.resultsdir, 'stdout') args = '--%s -i %d -p %s -...
f6978e3defa9f694551fee7e8c33682787098e97 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10349/f6978e3defa9f694551fee7e8c33682787098e97/spew.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 8243, 12, 2890, 16, 1842, 1214, 273, 599, 16, 14104, 2218, 6625, 49, 2187, 618, 2218, 2626, 2187, 1936, 2218, 9188, 11, 4672, 1797, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 8243, 12, 2890, 16, 1842, 1214, 273, 599, 16, 14104, 2218, 6625, 49, 2187, 618, 2218, 2626, 2187, 1936, 2218, 9188, 11, 4672, 1797, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18...
value = context.get_form_value(name)
def build_namespace(self, resource, context): """This utility method builds a namespace suitable to use to produce an HTML form. Its input data is a dictionnary that defines the form variables to consider:
52c1c0c8ce10391f5181ea1dafe2304c29f5859a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/52c1c0c8ce10391f5181ea1dafe2304c29f5859a/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 4937, 12, 2890, 16, 1058, 16, 819, 4672, 3536, 2503, 12788, 707, 10736, 279, 1981, 10631, 358, 999, 358, 11402, 392, 3982, 646, 18, 29517, 810, 501, 353, 279, 302, 2228, 82, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 4937, 12, 2890, 16, 1058, 16, 819, 4672, 3536, 2503, 12788, 707, 10736, 279, 1981, 10631, 358, 999, 358, 11402, 392, 3982, 646, 18, 29517, 810, 501, 353, 279, 302, 2228, 82, ...
meta = '\n <meta name="aesop" content="%s">'
meta = '<meta name="aesop" content="%s">\n ' % self.aesop_type
def get_header(self): s = HEAD % self.variables if self.uplink: if self.uptitle: link = ('<link rel="up" href="%s" title="%s">' % (self.uplink, self.uptitle)) else: link = '<link rel="up" href="%s">' % self.uplink repl = " %s\n</head>" % link s = s.replace("</head>", repl, 1) if self.aesop_type: meta = '\n <meta name...
b82b1017d05acfd3881a0fd1a45bb06cd26b6df8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b82b1017d05acfd3881a0fd1a45bb06cd26b6df8/support.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3374, 12, 2890, 4672, 272, 273, 14792, 738, 365, 18, 7528, 309, 365, 18, 89, 20157, 30, 309, 365, 18, 3648, 1280, 30, 1692, 273, 7707, 32, 1232, 1279, 1546, 416, 6, 3897, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3374, 12, 2890, 4672, 272, 273, 14792, 738, 365, 18, 7528, 309, 365, 18, 89, 20157, 30, 309, 365, 18, 3648, 1280, 30, 1692, 273, 7707, 32, 1232, 1279, 1546, 416, 6, 3897, 11...
except AttributeError:
except Exception:
def worksheet_that_was_published(self): """ Return owner and id_number of the worksheet that was published to get this worksheet, if this worksheet was published. Otherwise just return this worksheet. OUTPUT: Worksheet EXAMPLES:: sage: nb = sagenb.notebook.notebook.Notebook(tmp_dir()) sage: W = nb.create_new_workshe...
870b9be89c103de033db13834191333a4f99564a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11792/870b9be89c103de033db13834191333a4f99564a/worksheet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13622, 67, 19056, 67, 17416, 67, 12614, 12, 2890, 4672, 3536, 2000, 3410, 471, 612, 67, 2696, 434, 326, 13622, 716, 1703, 9487, 358, 336, 333, 13622, 16, 309, 333, 13622, 1703, 9487, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13622, 67, 19056, 67, 17416, 67, 12614, 12, 2890, 4672, 3536, 2000, 3410, 471, 612, 67, 2696, 434, 326, 13622, 716, 1703, 9487, 358, 336, 333, 13622, 16, 309, 333, 13622, 1703, 9487, 18,...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 482) else quickfix.StringField.__init__(self, 482, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 9934, 22, 13, 469, 9549, 904, 18, 780, 974, 16186, 2738, 97...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 9934, 22, 13, 469, 9549, 904, 18, 780, 974, 16186, 2738, 97...
filename = '%s-%s_%s_%05.2fkm_%05.1fs.pdf' % (filename_prefix, grid_name, start_time.strftime('%Y%m%d_%H%M%S'), dx, time_delta.seconds)
filename = '%s-%s_%s_%05.2fkm_%05.1fs.%s' % (filename_prefix, grid_name, start_time.strftime('%Y%m%d_%H%M%S'), dx, time_delta.seconds, image_type)
def make_plot(filename, grid_name, x_name='x', y_name='y', t_name='time', n_cols=6, outpath='', filename_prefix='LMA'): f = nc.NetCDFFile(filename) data = f.variables # dictionary of variable names to nc_var objects dims = f.dimensions # dictionary of dimension names to sizes x = data[y_name] y = data[x_name] t = dat...
0039dd35d2c619e6d3412278f7c12383bcf06c59 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7619/0039dd35d2c619e6d3412278f7c12383bcf06c59/multiples_nc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 4032, 12, 3459, 16, 3068, 67, 529, 16, 619, 67, 529, 2218, 92, 2187, 677, 67, 529, 2218, 93, 2187, 268, 67, 529, 2218, 957, 2187, 290, 67, 6842, 33, 26, 16, 596, 803, 221...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 4032, 12, 3459, 16, 3068, 67, 529, 16, 619, 67, 529, 2218, 92, 2187, 677, 67, 529, 2218, 93, 2187, 268, 67, 529, 2218, 957, 2187, 290, 67, 6842, 33, 26, 16, 596, 803, 221...
'basic':basic, 'advantages_gross':allowance, 'gross':basic + allowance,
'basic':basic, 'advantages_gross':allowance, 'gross':basic + allowance,
def _calculate_salary(self, cr, uid, ids, field_names, arg, context=None): vals = {} slip_line_pool = self.pool.get('hr.payslip.line') for employee in self.browse(cr, uid, ids, context): if not employee.contract_id: vals[employee.id] = {'basic':0.0, 'gross':0.0, 'net':0.0, 'advantages_gross':0.0, 'advantages_net':0.0}...
90e8a2a9ac966d2bf970850306e713ecc1398f14 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/90e8a2a9ac966d2bf970850306e713ecc1398f14/hr_payroll.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11162, 67, 21982, 814, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 652, 67, 1973, 16, 1501, 16, 819, 33, 7036, 4672, 5773, 273, 2618, 272, 3169, 67, 1369, 67, 6011, 273, 365, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11162, 67, 21982, 814, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 652, 67, 1973, 16, 1501, 16, 819, 33, 7036, 4672, 5773, 273, 2618, 272, 3169, 67, 1369, 67, 6011, 273, 365, 18...
if not(tool.checkPermission('Add portal content', self.scope)) :
if not(tool.checkPermission('Add portal content', self.data['scope'])) :
def __call__(self): context = aq_inner(self.context) request = aq_inner(self.request) session = request.get('SESSION', None) # use self.rootpath or rootpath in request or session to change browser root self.rootpath = request.get('rootpath', self.rootpath) # use self.browse=False (or browse=False in request) to disall...
8d0e1a032cfde6336dbc8c8e4be99c7fcb7c9176 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9052/8d0e1a032cfde6336dbc8c8e4be99c7fcb7c9176/finder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 225, 819, 273, 279, 85, 67, 7872, 12, 2890, 18, 2472, 13, 590, 273, 279, 85, 67, 7872, 12, 2890, 18, 2293, 13, 1339, 273, 590, 18, 588, 2668, 7042, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 225, 819, 273, 279, 85, 67, 7872, 12, 2890, 18, 2472, 13, 590, 273, 279, 85, 67, 7872, 12, 2890, 18, 2293, 13, 1339, 273, 590, 18, 588, 2668, 7042, ...
def _deliver_exception_to_MAIN(g): if not g.successful(): MAIN.throw(*g.exc_info())
def _wrap_signal_handler(handler, args, kwargs): try: handler(*args, **kwargs) except: core.active_event(MAIN.throw, *sys.exc_info())
def _deliver_exception_to_MAIN(g): if not g.successful(): MAIN.throw(*g.exc_info())
df06525ea774f3ef97f62715890eeb0d1b61fd8b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10423/df06525ea774f3ef97f62715890eeb0d1b61fd8b/hub.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4113, 67, 10420, 67, 4176, 12, 4176, 16, 833, 16, 1205, 4672, 775, 30, 1838, 30857, 1968, 16, 2826, 4333, 13, 1335, 30, 2922, 18, 3535, 67, 2575, 12, 19803, 18, 12849, 16, 380, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4113, 67, 10420, 67, 4176, 12, 4176, 16, 833, 16, 1205, 4672, 775, 30, 1838, 30857, 1968, 16, 2826, 4333, 13, 1335, 30, 2922, 18, 3535, 67, 2575, 12, 19803, 18, 12849, 16, 380, ...
Assemble = Assemble + " --64"
AssemblerFlags = AssemblerFlags + " --64"
def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32...
14e6facff06b2fc91279af79db1d8f8435565022 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9328/14e6facff06b2fc91279af79db1d8f8435565022/pylib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26254, 13332, 225, 2552, 3998, 2042, 3998, 2042, 1011, 315, 300, 7137, 300, 10102, 300, 16125, 23, 6743, 67, 16374, 1546, 397, 1903, 225, 4049, 273, 315, 21, 6, 225, 468, 1220, 1779, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26254, 13332, 225, 2552, 3998, 2042, 3998, 2042, 1011, 315, 300, 7137, 300, 10102, 300, 16125, 23, 6743, 67, 16374, 1546, 397, 1903, 225, 4049, 273, 315, 21, 6, 225, 468, 1220, 1779, 353...
print "sqlStr = %s" % sqlStr
def update(self, table_name, rows, columns = [], keys = {}, encode = [], encodeb64 = []): """ update method to update the table rows based on the primary keys provided
b376c96e3507d4b825ad80d1af2f010bb8d1f2df /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8886/b376c96e3507d4b825ad80d1af2f010bb8d1f2df/Operation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 1014, 67, 529, 16, 2595, 16, 2168, 273, 5378, 16, 1311, 273, 10615, 2017, 273, 5378, 16, 2017, 70, 1105, 273, 5378, 4672, 3536, 1089, 707, 358, 1089, 326, 1014, 259...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 1014, 67, 529, 16, 2595, 16, 2168, 273, 5378, 16, 1311, 273, 10615, 2017, 273, 5378, 16, 2017, 70, 1105, 273, 5378, 4672, 3536, 1089, 707, 358, 1089, 326, 1014, 259...
self.__sessions[callId] = newSession
self.__callids[callId] = newCall
def sip_INVITE(self, requestLine, headers, body): global g_sipconfig
d995da2606eccd46f73ea5846930ead736911f1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8801/d995da2606eccd46f73ea5846930ead736911f1a/sip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10341, 67, 706, 58, 5398, 12, 2890, 16, 590, 1670, 16, 1607, 16, 1417, 4672, 2552, 314, 67, 28477, 1425, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10341, 67, 706, 58, 5398, 12, 2890, 16, 590, 1670, 16, 1607, 16, 1417, 4672, 2552, 314, 67, 28477, 1425, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
g._arrow(xmin, ymin, xmax, ymax, options=options)
g._arrow(xtail, ytail, xhead, yhead, options=options)
def __call__(self, minpoint, maxpoint, **kwds): options = dict(self.options) for k, v in kwds.iteritems(): options[k] = v xmin = float(minpoint[0]) ymin = float(minpoint[1]) xmax = float(maxpoint[0]) ymax = float(maxpoint[1])
6942445bd66f38e595fafb79a120a8709a142bb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/6942445bd66f38e595fafb79a120a8709a142bb9/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1131, 1153, 16, 943, 1153, 16, 2826, 25577, 4672, 702, 273, 2065, 12, 2890, 18, 2116, 13, 364, 417, 16, 331, 316, 17149, 18, 2165, 3319, 13332, 702, 63, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1131, 1153, 16, 943, 1153, 16, 2826, 25577, 4672, 702, 273, 2065, 12, 2890, 18, 2116, 13, 364, 417, 16, 331, 316, 17149, 18, 2165, 3319, 13332, 702, 63, ...
trailer = [" else:"] trailer += [" raise TypeError('function takes exactly 5 arguments (%d given)'%argc)"]
if maxargs == minargs: trailer = [" else:"] err_msg = "" trailer += [" raise TypeError('function takes exactly "+str(argcounts[0])+" arguments (%d given)'%argc)"]
yield "def __init__(self, *args):"
6779bad902742cb87d4bfc4d7f420f2edcb50621 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/6779bad902742cb87d4bfc4d7f420f2edcb50621/_enum_exceptions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2824, 315, 536, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 13, 2773, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2824, 315, 536, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 13, 2773, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if(type(child) == phat.HFanSlider) or (type(child) == phat.SliderButton):
if(type(child) == phat.HFanSlider) or (type(child) == phat.SliderButton) or (type(child) == phat.Knob):
def save_rec(self, doc, parent_node, child):
ad183cde913994aad3e46a7fded713034d9fb64e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2237/ad183cde913994aad3e46a7fded713034d9fb64e/khagan.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 3927, 12, 2890, 16, 997, 16, 982, 67, 2159, 16, 1151, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 3927, 12, 2890, 16, 997, 16, 982, 67, 2159, 16, 1151, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
url = '%sshow/%s/' % (SERVICE_URL, pid)
url = '%sshow/%s/' % (_server_name, pid)
def main(): """Main script entry point.""" usage = ('Usage: %%prog [options] [FILE ...]\n\n' 'Read the files and paste their contents to %s.\n' 'If no file is given, read from standard input.\n' 'If multiple files are given, they are put into a single paste.' % SERVICE_URL) parser = OptionParser(usage=usage) settings...
b75206fd8de1f7f74e3150b949de916ec5b50ca3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11759/b75206fd8de1f7f74e3150b949de916ec5b50ca3/lodgeit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6376, 2728, 1241, 1634, 12123, 225, 4084, 273, 7707, 5357, 30, 26510, 14654, 306, 2116, 65, 306, 3776, 1372, 13944, 82, 64, 82, 11, 296, 1994, 326, 1390, 471, 19401, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6376, 2728, 1241, 1634, 12123, 225, 4084, 273, 7707, 5357, 30, 26510, 14654, 306, 2116, 65, 306, 3776, 1372, 13944, 82, 64, 82, 11, 296, 1994, 326, 1390, 471, 19401, 3...
source_dir = os.path.join(dir, "source", "class", "custom")
source_dir = os.path.join(app_dir, "source", "class", "custom")
def copySkeleton(skeleton_path, app_type, dir, namespace): console.log("Copy skeleton into the output directory: %s" % dir) template = os.path.join(skeleton_path, app_type) if not os.path.isdir(template): console.error("Unknown application type '%s'." % app_type) sys.exit(1) try: shutil.copytree(template, dir) except...
9147a9ac90c662291742ddbed146c0b86318dbc6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/9147a9ac90c662291742ddbed146c0b86318dbc6/create-application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 28070, 12, 7771, 12143, 67, 803, 16, 595, 67, 723, 16, 1577, 16, 1981, 4672, 2983, 18, 1330, 2932, 2951, 17761, 1368, 326, 876, 1867, 30, 738, 87, 6, 738, 1577, 13, 225, 1542, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28070, 12, 7771, 12143, 67, 803, 16, 595, 67, 723, 16, 1577, 16, 1981, 4672, 2983, 18, 1330, 2932, 2951, 17761, 1368, 326, 876, 1867, 30, 738, 87, 6, 738, 1577, 13, 225, 1542, ...
if ready :
if ready :
def _update(self, value): maxval = self.maxval if maxval == 0: # XXXX Quick fix. Should probably display an unknown duration value = 0 maxval = 1 if maxval > 32767: value = int(value/(maxval/32767.0)) maxval = 32767 progbar = self.d.GetDialogItemAsControl(3) progbar.SetControlMaximum(maxval) progbar.SetControlValue(val...
911e87de6f283e2326422c6746dd296511368a76 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/911e87de6f283e2326422c6746dd296511368a76/EasyDialogs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 12, 2890, 16, 460, 4672, 30443, 273, 365, 18, 1896, 1125, 309, 30443, 422, 374, 30, 468, 11329, 60, 19884, 2917, 18, 9363, 8656, 2562, 392, 5917, 3734, 460, 273, 374, 30443, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 12, 2890, 16, 460, 4672, 30443, 273, 365, 18, 1896, 1125, 309, 30443, 422, 374, 30, 468, 11329, 60, 19884, 2917, 18, 9363, 8656, 2562, 392, 5917, 3734, 460, 273, 374, 30443, ...
self.sendPacket(Xspeed, Rspeed, Tilt, Pan, Buttons)
self.sendPacket(Tilt, Pan, Xspeed, Rspeed, Buttons)
def onTimer(self, event=None): # configure output Xspeed = self.forward + 128 Rspeed = self.turn + 128 Pan = self.pan.GetValue() + 128 Tilt = self.tilt.GetValue() + 128 Buttons = 0 if self.selStrafe.GetValue(): Buttons = BUT_RT #print Xspeed, Rspeed, Pan, Tilt self.sendPacket(Xspeed, Rspeed, Tilt, Pan, Buttons) self....
0751b9a7b60fdc8a3097c8cd657fc5150134312d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9859/0751b9a7b60fdc8a3097c8cd657fc5150134312d/commander.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 6777, 12, 2890, 16, 871, 33, 7036, 4672, 468, 5068, 876, 1139, 13871, 273, 365, 18, 11565, 397, 8038, 534, 13871, 273, 365, 18, 20922, 397, 8038, 12913, 273, 365, 18, 7355, 18, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 6777, 12, 2890, 16, 871, 33, 7036, 4672, 468, 5068, 876, 1139, 13871, 273, 365, 18, 11565, 397, 8038, 534, 13871, 273, 365, 18, 20922, 397, 8038, 12913, 273, 365, 18, 7355, 18, 96...
names are defined in the ``language`` subpackage. """
names are defined in the ``language`` subpackage."""
def role_fn(name, rawtext, text, lineno, inliner): code...
edf51e38b3836f1a648b65216a4d06c1f619e4e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/edf51e38b3836f1a648b65216a4d06c1f619e4e6/roles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2478, 67, 4293, 12, 529, 16, 1831, 955, 16, 977, 16, 7586, 16, 316, 7511, 264, 4672, 981, 2777, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2478, 67, 4293, 12, 529, 16, 1831, 955, 16, 977, 16, 7586, 16, 316, 7511, 264, 4672, 981, 2777, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
for col_id in col_range[1:]:
FIRST_ENTITY_ROW_POSN = 4 for row_id in row_range[FIRST_ENTITY_ROW_POSN:]:
def convert_spreadsheet_data_to_packages(self): # Note well, headings are in first column (columns are entities). cells = {} # - discover working area. max_row_id = 1 min_row_id = 1 max_col_id = 1 min_col_id = 1 for i, entry in enumerate(self.spreadsheet_data.entry): try: row_id = entry.cell.row col_id = entry.cell.col...
49c24639d6db781a8e950b99747335a858ae6292 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/265/49c24639d6db781a8e950b99747335a858ae6292/aidinfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 26007, 8118, 67, 892, 67, 869, 67, 10308, 12, 2890, 4672, 468, 3609, 5492, 16, 910, 899, 854, 316, 1122, 1057, 261, 5112, 854, 5140, 2934, 5983, 273, 2618, 468, 300, 10372, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 26007, 8118, 67, 892, 67, 869, 67, 10308, 12, 2890, 4672, 468, 3609, 5492, 16, 910, 899, 854, 316, 1122, 1057, 261, 5112, 854, 5140, 2934, 5983, 273, 2618, 468, 300, 10372, 5...
self.noJobLimits(payload)
self.noJobLimits()
def __call__(self, event, payload): """ _operator()_
87d7e4aaef9a55485525200d47dab0552b5b83de /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8887/87d7e4aaef9a55485525200d47dab0552b5b83de/MergeSensorComponent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 871, 16, 2385, 4672, 3536, 389, 9497, 1435, 67, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 871, 16, 2385, 4672, 3536, 389, 9497, 1435, 67, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
self.actions[self.mode].handle_key(self, key)
if key=='eh?': continue
def urwid_run(self): self.refresh_screen() while 1: ## We are a generator and we are ready for more input keys = self.ui.get_input((yield "Ready"))
7fee5cf916e6d2eba03c5abc5adc14cc0c8404e0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5568/7fee5cf916e6d2eba03c5abc5adc14cc0c8404e0/Hexeditor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8896, 30902, 67, 2681, 12, 2890, 4672, 365, 18, 9144, 67, 9252, 1435, 1323, 404, 30, 7541, 1660, 854, 279, 4456, 471, 732, 854, 5695, 364, 1898, 810, 1311, 273, 365, 18, 4881, 18, 588,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8896, 30902, 67, 2681, 12, 2890, 4672, 365, 18, 9144, 67, 9252, 1435, 1323, 404, 30, 7541, 1660, 854, 279, 4456, 471, 732, 854, 5695, 364, 1898, 810, 1311, 273, 365, 18, 4881, 18, 588,...
print "no hypocenter data."
err = "Error: No hypocenter data!" appendTextview(self.textviewStdErr, err)
def showEventMap(self): if self.dictOrigin == {}: print "no hypocenter data." return #print self.dicts[0] self.figEventMap = plt.figure(1000) self.figEventMap.canvas.set_window_title("Event Map") self.axEventMap = self.figEventMap.add_subplot(111) self.axEventMap.scatter([self.dictOrigin['Longitude']], [self.dictOrigin...
4e8f536428831ce605c623aa5fc17a6b33b5b712 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/4e8f536428831ce605c623aa5fc17a6b33b5b712/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 1133, 863, 12, 2890, 4672, 309, 365, 18, 1576, 7571, 422, 16648, 393, 273, 315, 668, 30, 2631, 16117, 504, 2328, 501, 4442, 714, 1528, 1945, 12, 2890, 18, 955, 1945, 10436, 2524, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 1133, 863, 12, 2890, 4672, 309, 365, 18, 1576, 7571, 422, 16648, 393, 273, 315, 668, 30, 2631, 16117, 504, 2328, 501, 4442, 714, 1528, 1945, 12, 2890, 18, 955, 1945, 10436, 2524, ...
finally: sys.stderr = save_stderr
self.assertEqual(s.getvalue(), '')
def __del__(self_): self.assertEqual(self_.a, 1) self.assertEqual(self_.b, 2)
ee74da60c4104038c887d3f6ca003441b0006134 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/ee74da60c4104038c887d3f6ca003441b0006134/test_descr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 972, 12, 2890, 67, 4672, 365, 18, 11231, 5812, 12, 2890, 27799, 69, 16, 404, 13, 365, 18, 11231, 5812, 12, 2890, 27799, 70, 16, 576, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 972, 12, 2890, 67, 4672, 365, 18, 11231, 5812, 12, 2890, 27799, 69, 16, 404, 13, 365, 18, 11231, 5812, 12, 2890, 27799, 70, 16, 576, 13, 2, -100, -100, -100, -100, -100, ...