rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
return ((self.group(), self.weight(), self.sign(), self.base_ring(), self.character()), \ (other.group(), other.weight(), other.sign(), other.base_ring(), other.character())) c = cmp((self.group(), self.weight(), self.sign(), self.base_ring(), self.character()), \ (other.group(), other.weight(), other.sign(), other.b...
return misc.cmp_props(self, other, ['group', 'weight', 'sign', 'base_ring', 'character'])
def __cmp__(self, other): if not isinstance(other, space.ModularSymbolsSpace): return cmp(type(self), type(other)) if isinstance(other, ModularSymbolsAmbient): return ((self.group(), self.weight(), self.sign(), self.base_ring(), self.character()), \ (other.group(), other.weight(), other.sign(), other.base_ring(), othe...
2b0e555faa1d40f1d1716fbd930c0c67ce9da1fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/2b0e555faa1d40f1d1716fbd930c0c67ce9da1fe/ambient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9625, 972, 12, 2890, 16, 1308, 4672, 309, 486, 1549, 12, 3011, 16, 3476, 18, 1739, 2490, 14821, 3819, 4672, 327, 9411, 12, 723, 12, 2890, 3631, 618, 12, 3011, 3719, 309, 1549, 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, 1001, 9625, 972, 12, 2890, 16, 1308, 4672, 309, 486, 1549, 12, 3011, 16, 3476, 18, 1739, 2490, 14821, 3819, 4672, 327, 9411, 12, 723, 12, 2890, 3631, 618, 12, 3011, 3719, 309, 1549, 12...
self.set_size_request(300,300)
self.set_size_request(500, 200)
def __init__(self, title): BaseParentWindow.__init__(self, title) """init CreditsWindow""" self.set_size_request(300,300) self.buffer = gtk.TextBuffer() text=gtk.TextView(self.buffer) text.set_editable(False)
eebba120b1e79cc9eb18f9a3fa41a0486f5065e1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14563/eebba120b1e79cc9eb18f9a3fa41a0486f5065e1/about.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2077, 4672, 3360, 3054, 3829, 16186, 2738, 972, 12, 2890, 16, 2077, 13, 225, 3536, 2738, 385, 1118, 1282, 3829, 8395, 365, 18, 542, 67, 1467, 67, 2293, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2077, 4672, 3360, 3054, 3829, 16186, 2738, 972, 12, 2890, 16, 2077, 13, 225, 3536, 2738, 385, 1118, 1282, 3829, 8395, 365, 18, 542, 67, 1467, 67, 2293, 1...
sys.stdout.write(data)
sys.stdout.write(data.decode('ascii'))
def listener(self): """Helper for mt_interact() -- this executes in the other thread.""" while 1: try: data = self.read_eager() except EOFError: print('*** Connection closed by remote host ***') return if data: sys.stdout.write(data) else: sys.stdout.flush()
d350fb58a30488412c0b78aa6225e3060c54a8f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/d350fb58a30488412c0b78aa6225e3060c54a8f6/telnetlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2991, 12, 2890, 4672, 3536, 2276, 364, 5874, 67, 2761, 621, 1435, 1493, 333, 11997, 316, 326, 1308, 2650, 12123, 1323, 404, 30, 775, 30, 501, 273, 365, 18, 896, 67, 73, 6817, 1435, 133...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2991, 12, 2890, 4672, 3536, 2276, 364, 5874, 67, 2761, 621, 1435, 1493, 333, 11997, 316, 326, 1308, 2650, 12123, 1323, 404, 30, 775, 30, 501, 273, 365, 18, 896, 67, 73, 6817, 1435, 133...
""" Return an ASCII string representation of a LIGOTimeGPS. """
""" Return an ASCII string representation of a LIGOTimeGPS. """
def __str__(self):
b064bbbb4a6f3f9453fbf35a7c03643a8a94bd52 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/b064bbbb4a6f3f9453fbf35a7c03643a8a94bd52/lal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 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, 1001, 701, 972, 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, -10...
util.execute("%s '%s' | patch -d %s -p%s %s %s" %(provides, f, destDir, self.level, self.backup, self.extraArgs))
patch = os.fdopen(slurppatch[0]).read() self.patchme(patch, f, destDir, leveltuple)
def do(self):
626ccb8ec076200a332590411977caaa18911023 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/626ccb8ec076200a332590411977caaa18911023/source.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
addCritSpin = OWGUI.spin(ibox, self, "addCrit", 1, 50, label="Add threshold [%]", labelWidth=155, tooltip="Requested significance for adding an attribute.") remCritSpin = OWGUI.spin(ibox, self, "removeCrit", 1, 50, label="Remove threshold [%]", labelWidth=155, tooltip="Requested significance for removing an attribute."...
addCritSpin = OWGUI.spin(ibox, self, "addCrit", 1, 50, label="Add threshold [%]", labelWidth=155, tooltip="Requested significance for adding an attribute") remCritSpin = OWGUI.spin(ibox, self, "removeCrit", 1, 50, label="Remove threshold [%]", labelWidth=155, tooltip="Requested significance for removing an attribute")
def __init__ (self, parent=None, signalManager = None, name = "Logistic regression"): OWWidget.__init__(self, parent, signalManager, name)
bb7f2f2e3d6f33c2add8ccb5c3b5657061dfafb2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/bb7f2f2e3d6f33c2add8ccb5c3b5657061dfafb2/OWLogisticRegression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 982, 33, 7036, 16, 4277, 1318, 273, 599, 16, 508, 273, 315, 1343, 5846, 23215, 6, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 261, 2890, 16, 982, 33, 7036, 16, 4277, 1318, 273, 599, 16, 508, 273, 315, 1343, 5846, 23215, 6, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318...
except Error, err:
except shutil.Error, err:
def copytree(src, dst, symlinks=False): """ Recursively copy a directory tree using copy2(). The destination directory must not already exist. If exception(s) occur, an Error is raised with a list of reasons. If the optional symlinks flag is true, symbolic links in the source tree result in symbolic links in the dest...
4f7dbc77287c6a02826849497af52cf738a3b48c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/4f7dbc77287c6a02826849497af52cf738a3b48c/builder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 3413, 12, 4816, 16, 3046, 16, 23146, 33, 8381, 4672, 3536, 31362, 1610, 279, 1867, 2151, 1450, 1610, 22, 7675, 225, 1021, 2929, 1867, 1297, 486, 1818, 1005, 18, 971, 1520, 12, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 3413, 12, 4816, 16, 3046, 16, 23146, 33, 8381, 4672, 3536, 31362, 1610, 279, 1867, 2151, 1450, 1610, 22, 7675, 225, 1021, 2929, 1867, 1297, 486, 1818, 1005, 18, 971, 1520, 12, 87, ...
justify = [justify for x in range(len(tseries)+1)] elif isinstance(justify, list): if len(justify) == len(tseries):
return [userspec for x in range(len(tseries)+1)] elif isinstance(userspec, list): if len(userspec) == len(tseries):
def option(kw): return option_dict.get(kw, _default_options[kw])
89fec03b23a51964b69b4057ef8c5739a942fed9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/89fec03b23a51964b69b4057ef8c5739a942fed9/reportlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1456, 12, 9987, 4672, 327, 1456, 67, 1576, 18, 588, 12, 9987, 16, 389, 1886, 67, 2116, 63, 9987, 5717, 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, 1456, 12, 9987, 4672, 327, 1456, 67, 1576, 18, 588, 12, 9987, 16, 389, 1886, 67, 2116, 63, 9987, 5717, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
self.tree = gtk.glade.XML(find_path("arkadas.glade"), "mainWindow", "arkadas")
gtk.glade.textdomain("arkadas") self.tree = gtk.glade.XML(find_path("arkadas.glade"))
def __init__(self): gtk.window_set_default_icon_name("address-book") self.tree = gtk.glade.XML(find_path("arkadas.glade"), "mainWindow", "arkadas")
b8c98d17b15a17c88b10a847f15fc082e5e7a6c7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2651/b8c98d17b15a17c88b10a847f15fc082e5e7a6c7/arkadas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 22718, 18, 5668, 67, 542, 67, 1886, 67, 3950, 67, 529, 2932, 2867, 17, 3618, 7923, 365, 18, 3413, 273, 22718, 18, 7043, 2486, 18, 4201, 12, 4720, 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, 1001, 2738, 972, 12, 2890, 4672, 22718, 18, 5668, 67, 542, 67, 1886, 67, 3950, 67, 529, 2932, 2867, 17, 3618, 7923, 365, 18, 3413, 273, 22718, 18, 7043, 2486, 18, 4201, 12, 4720, 67, ...
if project.getExe() in ['lib', 'bin']: allFiles = allFiles + getProjectFiles(project)
if isinstance(project, wnsbase.playground.Project.Library) or isinstance(project, wnsbase.playground.Project.Binary): allFiles = allFiles + getProjectFiles(project)
def setupFileList(): projects = readProjectsConfig() allFiles = [] for project in projects.all: if project.getExe() in ['lib', 'bin']: allFiles = allFiles + getProjectFiles(project) allFiles = [f.replace(wnsrc.pathToWNS + "/", "") for f in allFiles] # Write to file fc = open(os.path.join(wnsrc.pathToWNS, "WNS.kdevelo...
68369e5b10f74d6663bc27376db493c21fd32f78 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8259/68369e5b10f74d6663bc27376db493c21fd32f78/setupKDevelop.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 26098, 13332, 10137, 273, 855, 15298, 809, 1435, 777, 2697, 273, 5378, 364, 1984, 316, 10137, 18, 454, 30, 309, 1549, 12, 4406, 16, 341, 2387, 1969, 18, 1601, 2915, 18, 4109, 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, 3875, 26098, 13332, 10137, 273, 855, 15298, 809, 1435, 777, 2697, 273, 5378, 364, 1984, 316, 10137, 18, 454, 30, 309, 1549, 12, 4406, 16, 341, 2387, 1969, 18, 1601, 2915, 18, 4109, 18, ...
entry_points={ 'console_scripts': [ 'scivi = scikits.image.scripts.scivi:main'] },
def write_version_py(filename='scikits/image/version.py'): template = """# THIS FILE IS GENERATED FROM THE SCIKITS.IMAGE SETUP.PY
bf9f70444fd465b9ff9566e75dd04b55ca43d830 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12573/bf9f70444fd465b9ff9566e75dd04b55ca43d830/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 1589, 67, 2074, 12, 3459, 2218, 1017, 1766, 1282, 19, 2730, 19, 1589, 18, 2074, 11, 4672, 1542, 273, 3536, 7, 20676, 7527, 4437, 13679, 6344, 4571, 12786, 348, 7266, 47, 10158,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 1589, 67, 2074, 12, 3459, 2218, 1017, 1766, 1282, 19, 2730, 19, 1589, 18, 2074, 11, 4672, 1542, 273, 3536, 7, 20676, 7527, 4437, 13679, 6344, 4571, 12786, 348, 7266, 47, 10158,...
p.feed("<img bo\\\nrder=0>")
p.debug(1) for c in """</td <td a="b" >""": p.feed(c)
def _broken (): p = HtmlPrinter() p.feed("<img bo\\\nrder=0>") p.flush()
46b4e884490e03f1262ac5ae67ef392e0c7c1eb1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/46b4e884490e03f1262ac5ae67ef392e0c7c1eb1/htmllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 70, 19906, 1832, 30, 293, 273, 5430, 12149, 1435, 225, 293, 18, 4148, 12, 21, 13, 364, 276, 316, 3536, 1757, 4465, 411, 4465, 279, 1546, 70, 6, 405, 3660, 6877, 293, 18, 7848, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 70, 19906, 1832, 30, 293, 273, 5430, 12149, 1435, 225, 293, 18, 4148, 12, 21, 13, 364, 276, 316, 3536, 1757, 4465, 411, 4465, 279, 1546, 70, 6, 405, 3660, 6877, 293, 18, 7848, 1...
-1
(-1)^(1/3)
def _complex_double_(self, field): """ EXAMPLES: sage: CDF((-1)^(1/3)) 0.5 + 0.866025403784*I
91ce32de726922bd909433810b61f39b42ddf8c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/91ce32de726922bd909433810b61f39b42ddf8c5/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14259, 67, 9056, 67, 12, 2890, 16, 652, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 31971, 12443, 17, 21, 13, 29020, 21, 19, 23, 3719, 374, 18, 25, 397, 374, 18, 5292, 4848...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14259, 67, 9056, 67, 12, 2890, 16, 652, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 31971, 12443, 17, 21, 13, 29020, 21, 19, 23, 3719, 374, 18, 25, 397, 374, 18, 5292, 4848...
def _do_hotcopy(self, dest):
def _do_hotcopy(self, dest, no_db=None): if no_db not in (None, '--no-database'): raise AdminCommandError(_("Invalid argument '%(arg)s'", arg=no_db), show_usage=True)
def _do_deploy(self, dest): target = os.path.normpath(dest) chrome_target = os.path.join(target, 'htdocs') script_target = os.path.join(target, 'cgi-bin')
448b8864b6b15d45425b866c318e6592f82275d1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/448b8864b6b15d45425b866c318e6592f82275d1/env.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 12411, 12, 2890, 16, 1570, 4672, 1018, 273, 1140, 18, 803, 18, 7959, 803, 12, 10488, 13, 18167, 67, 3299, 273, 1140, 18, 803, 18, 5701, 12, 3299, 16, 296, 647, 8532, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 12411, 12, 2890, 16, 1570, 4672, 1018, 273, 1140, 18, 803, 18, 7959, 803, 12, 10488, 13, 18167, 67, 3299, 273, 1140, 18, 803, 18, 5701, 12, 3299, 16, 296, 647, 8532, 6...
uid = '<%s/milestone/%s@%s>' % (req.base_path, milestone['name'],
uid = '<%s/milestone/%s@%s>' % (req.base_path, milestone.name,
def write_utctime(name, value, params={}): write_prop(name, strftime('%Y%m%dT%H%M%SZ', value), params)
517187fd8e15835f4c27204d1d2cef2e8fb9a563 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2831/517187fd8e15835f4c27204d1d2cef2e8fb9a563/roadmap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 322, 21261, 12, 529, 16, 460, 16, 859, 12938, 4672, 1045, 67, 5986, 12, 529, 16, 10405, 29909, 61, 9, 81, 9, 23148, 9, 44, 9, 49, 9, 28830, 2187, 460, 3631, 859, 13, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 322, 21261, 12, 529, 16, 460, 16, 859, 12938, 4672, 1045, 67, 5986, 12, 529, 16, 10405, 29909, 61, 9, 81, 9, 23148, 9, 44, 9, 49, 9, 28830, 2187, 460, 3631, 859, 13, 2, ...
this = apply(_quickfix.new_QuoteID, args)
this = _quickfix.new_QuoteID(*args)
def __init__(self, *args): this = apply(_quickfix.new_QuoteID, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 10257, 734, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 10257, 734, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, 1...
standalone_cmd = "rsync -avx %s::\"%s\" $HOME/Desktop/%s" %( server, rsync_filenames_client.strip().replace(" ", "\ ") , _("Teacher") )
standalone_cmd = "rsync -avx %s::\"%s\" $HOME/Desktop/%s" %( server, rsync_filenames_client.strip(), _("Teacher") )
def menu_event_one(self, action): start1=time() (model, iter) = self.main.tabla.get_selection().get_selected() if iter == None: print_debug( "menu_event_one() not selected thin client !!!" ) return self.main.selected_host=model.get_value(iter,0) self.main.selected_ip=model.get_value(iter, 1) if not self.doaction_onthi...
4f60148a6b13d1d26b8eb734c605d0156a49db1b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13520/4f60148a6b13d1d26b8eb734c605d0156a49db1b/TcosActions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3824, 67, 2575, 67, 476, 12, 2890, 16, 1301, 4672, 787, 21, 33, 957, 1435, 261, 2284, 16, 1400, 13, 273, 365, 18, 5254, 18, 7032, 11821, 18, 588, 67, 10705, 7675, 588, 67, 8109, 1435...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3824, 67, 2575, 67, 476, 12, 2890, 16, 1301, 4672, 787, 21, 33, 957, 1435, 261, 2284, 16, 1400, 13, 273, 365, 18, 5254, 18, 7032, 11821, 18, 588, 67, 10705, 7675, 588, 67, 8109, 1435...
kind = aui.ITEM_RADIO) self.AddSimpleTool(ID_ZOOM_SELECT,
kind = wx.ITEM_CHECK) self.AddLabelTool(ID_ZOOM_SELECT,
def __init_items(self):
9ea636e5642af91c5164934cac1dbceeb58b46d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10228/9ea636e5642af91c5164934cac1dbceeb58b46d5/frame.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 67, 3319, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 67, 3319, 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, -10...
if (e or not self.completer.matches) and not self.argspec: self.scr.redrawwin() return False
if e or not self.completer.matches: self.matches = [] if not self.argspec: self.scr.redrawwin() return False
def _complete(self, unused_tab=False): """Construct a full list of possible completions and construct and display them in a window. Also check if there's an available argspec (via the inspect module) and bang that on top of the completions too. The return value is whether the list_win is visible or not."""
a92f864d273bfa72eaf4410d2b31e8bc68787b90 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6932/a92f864d273bfa72eaf4410d2b31e8bc68787b90/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6226, 12, 2890, 16, 10197, 67, 7032, 33, 8381, 4672, 3536, 7249, 279, 1983, 666, 434, 3323, 23738, 471, 4872, 471, 2562, 2182, 316, 279, 2742, 18, 8080, 866, 309, 1915, 1807, 392, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6226, 12, 2890, 16, 10197, 67, 7032, 33, 8381, 4672, 3536, 7249, 279, 1983, 666, 434, 3323, 23738, 471, 4872, 471, 2562, 2182, 316, 279, 2742, 18, 8080, 866, 309, 1915, 1807, 392, ...
handledfiles = copy_binaries_and_libs(chroot, [realfile], force_overwrite, be_verbose, 1, handledfiles)
handledfiles = copy_binaries_and_libs(chroot, [realfile], force_overwrite, be_verbose, check_libs, handledfiles)
def copy_binaries_and_libs(chroot, binarieslist, force_overwrite=0, be_verbose=0, check_libs=1, handledfiles=[]): """copies a list of executables and their libraries to the chroot""" if (chroot[-1] == '/'): chroot = chroot[:-1] for file in binarieslist: if (file in handledfiles):
3787058390d9c376bedc2d131b287023d737f17e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6201/3787058390d9c376bedc2d131b287023d737f17e/jk_lib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 4757, 5646, 67, 464, 67, 21571, 12, 343, 3085, 16, 4158, 5646, 1098, 16, 2944, 67, 19274, 33, 20, 16, 506, 67, 11369, 33, 20, 16, 866, 67, 21571, 33, 21, 16, 7681, 2354, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 4757, 5646, 67, 464, 67, 21571, 12, 343, 3085, 16, 4158, 5646, 1098, 16, 2944, 67, 19274, 33, 20, 16, 506, 67, 11369, 33, 20, 16, 866, 67, 21571, 33, 21, 16, 7681, 2354, ...
file.write(repr(history[-1].enpassant))
file.write(repr(history[-1].enpassant))
def save (file, game): """Saves game to file in fen format""" if isinstance (game, Game): history = game.history else: history = game pieces = history[-1].data sign = lambda p: p.color == WHITE and reprSign[p.sign][0] or reprSign[p.sign][0].lower() for i in range(len(pieces))[::-1]: row = pieces[i] empty = 0 for j in...
9ab12d0c15346a74829433c0a036e77cf531bcae /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5339/9ab12d0c15346a74829433c0a036e77cf531bcae/epd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 261, 768, 16, 7920, 4672, 3536, 13370, 7920, 358, 585, 316, 284, 275, 740, 8395, 225, 309, 1549, 261, 13957, 16, 14121, 4672, 4927, 273, 7920, 18, 8189, 469, 30, 4927, 273, 7920, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 261, 768, 16, 7920, 4672, 3536, 13370, 7920, 358, 585, 316, 284, 275, 740, 8395, 225, 309, 1549, 261, 13957, 16, 14121, 4672, 4927, 273, 7920, 18, 8189, 469, 30, 4927, 273, 7920, ...
''')
''', (False,))
def data_get(self, password, db): security.check_super(password) cr = pooler.get_db(db).cursor() cr.execute('''select to_char(t.date, 'YYYY-MM-DD') as date, u.name as username, u.login as login, sum(t.duration) as hours from use_control_time t left join res_users u on (u.id=t.user_id) where (not uploaded) or (uploaded ...
f429c1177bd0cdcd22cab3106e3fc5a22e018232 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/f429c1177bd0cdcd22cab3106e3fc5a22e018232/services.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 501, 67, 588, 12, 2890, 16, 2201, 16, 1319, 4672, 4373, 18, 1893, 67, 9565, 12, 3664, 13, 4422, 273, 2845, 264, 18, 588, 67, 1966, 12, 1966, 2934, 9216, 1435, 4422, 18, 8837, 2668, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 501, 67, 588, 12, 2890, 16, 2201, 16, 1319, 4672, 4373, 18, 1893, 67, 9565, 12, 3664, 13, 4422, 273, 2845, 264, 18, 588, 67, 1966, 12, 1966, 2934, 9216, 1435, 4422, 18, 8837, 2668, 6...
else:
elif tank.status != constants.TANKDEAD and self.status != constants.TANKDEAD:
def collide_tank(self, tank): if tank.team == self.team: if tank.status == constants.TANKDEAD: self.team.respawn(tank) else: base = self.team.map.closest_base(self.pos) if not base:return if base.team == tank.team: self.kill() elif base.team == self.team: tank.kill()
ae8266b334f0cf593d3c1aabcc41e6def14fe2c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9601/ae8266b334f0cf593d3c1aabcc41e6def14fe2c9/game.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 645, 8130, 67, 88, 2304, 12, 2890, 16, 268, 2304, 4672, 309, 268, 2304, 18, 10035, 422, 365, 18, 10035, 30, 309, 268, 2304, 18, 2327, 422, 6810, 18, 56, 20201, 1639, 1880, 30, 365, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 645, 8130, 67, 88, 2304, 12, 2890, 16, 268, 2304, 4672, 309, 268, 2304, 18, 10035, 422, 365, 18, 10035, 30, 309, 268, 2304, 18, 2327, 422, 6810, 18, 56, 20201, 1639, 1880, 30, 365, 1...
""" Return the oldest revision stored in the repository. """
"""Return the oldest revision stored in the repository."""
def get_oldest_rev(self): """ Return the oldest revision stored in the repository. """ raise NotImplementedError
0091f73d9ddb2e28de9da1a025ba0c0cfaf2b458 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/0091f73d9ddb2e28de9da1a025ba0c0cfaf2b458/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1673, 395, 67, 9083, 12, 2890, 4672, 3536, 990, 326, 17067, 6350, 4041, 316, 326, 3352, 12123, 1002, 11206, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1673, 395, 67, 9083, 12, 2890, 4672, 3536, 990, 326, 17067, 6350, 4041, 316, 326, 3352, 12123, 1002, 11206, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
w(t) = t^3 + \cdots
w(t) = t^3 + a_1 t^4 + (a_2 + a_1^2) t^5 + \cdots
def w(self, prec=20): r""" The formal group power series w.
d6d52d622e2ed6ae873e4370b7a510dcaf6f4837 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/d6d52d622e2ed6ae873e4370b7a510dcaf6f4837/formal_group.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 12, 2890, 16, 13382, 33, 3462, 4672, 436, 8395, 1021, 25739, 1041, 7212, 4166, 341, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 12, 2890, 16, 13382, 33, 3462, 4672, 436, 8395, 1021, 25739, 1041, 7212, 4166, 341, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def materialsReport(self, itemlist, slot = 0):
def materialsReport(self, itemlist, showslot = 0):
def materialsReport(self, itemlist, slot = 0): self.MMLabel.show() self.MatMultiplier.show() self.setCaption('Materials Report') self.materials = { 'Gems' : { }, 'Liquids' : {}, 'Dusts': {} } self.gemnames = { } self.totalcost = 0 if slot == 0: lastslot = 4 else: lastslot = slot for loc, item in itemlist.items(): activ...
97b59c5e4229332a7bdd6961ed7f5292b148f904 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6671/97b59c5e4229332a7bdd6961ed7f5292b148f904/ReportWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31824, 4820, 12, 2890, 16, 761, 1098, 16, 2405, 14194, 273, 374, 4672, 365, 18, 49, 1495, 873, 18, 4500, 1435, 365, 18, 15947, 23365, 18, 4500, 1435, 365, 18, 542, 21158, 2668, 11790, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31824, 4820, 12, 2890, 16, 761, 1098, 16, 2405, 14194, 273, 374, 4672, 365, 18, 49, 1495, 873, 18, 4500, 1435, 365, 18, 15947, 23365, 18, 4500, 1435, 365, 18, 542, 21158, 2668, 11790, ...
if form.type!="submit":
if form.type == "submit": return None elif form.type != "submit":
def configure_room(self, form): """ Configure the room using the provided data.
5c8f1da22562c1cc25e955ac93e14b4ca6f441db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12769/5c8f1da22562c1cc25e955ac93e14b4ca6f441db/muc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5068, 67, 13924, 12, 2890, 16, 646, 4672, 3536, 11758, 326, 7725, 1450, 326, 2112, 501, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5068, 67, 13924, 12, 2890, 16, 646, 4672, 3536, 11758, 326, 7725, 1450, 326, 2112, 501, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
def _processThink(self,atom, sessionID):
def _processThink(self,elem, sessionID):
def _processThink(self,atom, sessionID): # Think atoms process their sub-atoms, and then discard the # output. We can't skip the processing, because it could have # side effects (which is the whole point of the <think> tag in # the first place). for a in atom[2:]: self._processAtom(a, sessionID) return ""
cdb5ca51cf362e7f41cc166060e200bc84fcb1e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6428/cdb5ca51cf362e7f41cc166060e200bc84fcb1e8/Kernel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 1315, 754, 12, 2890, 16, 7466, 16, 13737, 4672, 468, 935, 754, 9006, 1207, 3675, 720, 17, 14937, 16, 471, 1508, 10388, 326, 468, 876, 18, 1660, 848, 1404, 2488, 326, 4929, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 1315, 754, 12, 2890, 16, 7466, 16, 13737, 4672, 468, 935, 754, 9006, 1207, 3675, 720, 17, 14937, 16, 471, 1508, 10388, 326, 468, 876, 18, 1660, 848, 1404, 2488, 326, 4929, 1...
w.accessed = datetime.datetime.now() w.put()
def get(self): id = self.request.path[6:] w = Word.get(id) if w: # Update access time. w.accessed = datetime.datetime.now() w.put() # Find users of this word. query = db.GqlQuery('SELECT __key__ FROM Word ' 'WHERE words_used=:1 ' 'ORDER BY score DESC, created DESC', str(w.key())) words_used = query.fetch(1000) if not w...
67caaefe4e3f85d8f2a3b9276df7352217db6292 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3507/67caaefe4e3f85d8f2a3b9276df7352217db6292/iconforth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 4672, 612, 273, 365, 18, 2293, 18, 803, 63, 26, 26894, 341, 273, 9926, 18, 588, 12, 350, 13, 309, 341, 30, 468, 2315, 2006, 813, 18, 7, 4163, 3677, 434, 333, 2076, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 4672, 612, 273, 365, 18, 2293, 18, 803, 63, 26, 26894, 341, 273, 9926, 18, 588, 12, 350, 13, 309, 341, 30, 468, 2315, 2006, 813, 18, 7, 4163, 3677, 434, 333, 2076, 1...
-r --rev revision to revert to
def revert(self, files='', options=''): """ Revert files or dirs to their states as of some revision
7d837f2ab8cc60d954fea3b3f277a4fcef78640f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/7d837f2ab8cc60d954fea3b3f277a4fcef78640f/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 12, 2890, 16, 1390, 2218, 2187, 702, 2218, 11, 4672, 3536, 868, 1097, 1390, 578, 7717, 358, 3675, 5493, 487, 434, 2690, 6350, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 12, 2890, 16, 1390, 2218, 2187, 702, 2218, 11, 4672, 3536, 868, 1097, 1390, 578, 7717, 358, 3675, 5493, 487, 434, 2690, 6350, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if isinstance(check, types.ClassType):
if inspect.isclass(check):
def build_opener(*handlers): """Create an opener object from a list of handlers. The opener will use several default handlers, including support for HTTP and FTP. If there is a ProxyHandler, it must be at the front of the list of handlers. (Yuck.) If any of the handlers passed as arguments are subclasses of the def...
d5d0e60f69d65741042d7c6d50801fb2d1f5867c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d5d0e60f69d65741042d7c6d50801fb2d1f5867c/urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 25098, 30857, 11046, 4672, 3536, 1684, 392, 20532, 733, 628, 279, 666, 434, 4919, 18, 225, 1021, 20532, 903, 999, 11392, 805, 4919, 16, 6508, 2865, 364, 2239, 471, 19324, 18, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 25098, 30857, 11046, 4672, 3536, 1684, 392, 20532, 733, 628, 279, 666, 434, 4919, 18, 225, 1021, 20532, 903, 999, 11392, 805, 4919, 16, 6508, 2865, 364, 2239, 471, 19324, 18, 2...
data= [['X00y', 'X01y', 'X02y', 'X03y', 'X04y'],
XY = [['X00y', 'X01y', 'X02y', 'X03y', 'X04y'],
def test(): from reportlab.lib.units import inch rowheights = (24, 16, 16, 16, 16) rowheights2 = (24, 16, 16, 16, 30) colwidths = (50, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32) data = ( ('', 'Jan', 'Feb', 'Mar','Apr','May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'), ('Mugs', 0, 4, 17, 3, 21, 47, 12, 33, 2,...
05bfe223624d1df66401c7f78a6ac81f78006d39 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/05bfe223624d1df66401c7f78a6ac81f78006d39/tables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 13332, 628, 2605, 7411, 18, 2941, 18, 7705, 1930, 316, 343, 1027, 4210, 87, 273, 261, 3247, 16, 2872, 16, 2872, 16, 2872, 16, 2872, 13, 1027, 4210, 87, 22, 273, 261, 3247, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 13332, 628, 2605, 7411, 18, 2941, 18, 7705, 1930, 316, 343, 1027, 4210, 87, 273, 261, 3247, 16, 2872, 16, 2872, 16, 2872, 16, 2872, 13, 1027, 4210, 87, 22, 273, 261, 3247, 16, ...
b = self.data[i:i+MAX_UU]
b = self.type2test(self.rawdata[i:i+MAX_UU])
def test_uu(self): MAX_UU = 45 lines = [] for i in range(0, len(self.data), MAX_UU): b = self.data[i:i+MAX_UU] a = binascii.b2a_uu(b) lines.append(a) res = "" for line in lines: b = binascii.a2b_uu(line) res += b self.assertEqual(res, self.rawdata)
54b3adcb68d1005e057bd3c4aa3cb6e8961be581 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/54b3adcb68d1005e057bd3c4aa3cb6e8961be581/test_binascii.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 24286, 12, 2890, 4672, 4552, 67, 57, 57, 273, 12292, 2362, 273, 5378, 364, 277, 316, 1048, 12, 20, 16, 562, 12, 2890, 18, 892, 3631, 4552, 67, 57, 57, 4672, 324, 273, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 24286, 12, 2890, 4672, 4552, 67, 57, 57, 273, 12292, 2362, 273, 5378, 364, 277, 316, 1048, 12, 20, 16, 562, 12, 2890, 18, 892, 3631, 4552, 67, 57, 57, 4672, 324, 273, 365, ...
print 'End of NS decl:\n\t', repr(prefix)
return
def EndNamespaceDeclHandler(self, prefix): print 'End of NS decl:\n\t', repr(prefix)
b0960edd4ee4dd41f5a02508b5bede9378e8a56b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/b0960edd4ee4dd41f5a02508b5bede9378e8a56b/anim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4403, 3402, 3456, 1503, 12, 2890, 16, 1633, 4672, 1172, 296, 1638, 434, 11472, 3496, 5581, 82, 64, 88, 2187, 8480, 12, 3239, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 4403, 3402, 3456, 1503, 12, 2890, 16, 1633, 4672, 1172, 296, 1638, 434, 11472, 3496, 5581, 82, 64, 88, 2187, 8480, 12, 3239, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
quartic search. n_aux=-1 causes default (8) to be used.
quartic search. ``n_aux=-1`` causes default (8) to be used.
def two_descent(self, verbose = True, selmer_only = False, first_limit = 20, second_limit = 8, n_aux = -1, second_descent = True): """ Compute 2-descent data for this curve.
9932a677a12413086a59217c4c0d425b0543b6eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/9932a677a12413086a59217c4c0d425b0543b6eb/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2795, 67, 5569, 319, 12, 2890, 16, 3988, 273, 1053, 16, 357, 6592, 67, 3700, 273, 1083, 16, 1122, 67, 3595, 273, 4200, 16, 2205, 67, 3595, 273, 1725, 16, 290, 67, 18196, 273, 300, 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, 2795, 67, 5569, 319, 12, 2890, 16, 3988, 273, 1053, 16, 357, 6592, 67, 3700, 273, 1083, 16, 1122, 67, 3595, 273, 4200, 16, 2205, 67, 3595, 273, 1725, 16, 290, 67, 18196, 273, 300, 21...
if not pipelineStatus('localhost', clusterName, lambda p : p.name == pipelineName):
if not pipelineStatus('localhost', clusterName, lambda p : p.name == pipelineWrapperName):
def main(_options, args): ## # Because we are trying to mimic another program we have to do some funky work # with the options. We also want to do some kind of validation of the options # so they don't bring up a cluster and try to run it only to find out it # has errored out. args = args[1:] if not args or args ==...
8479e40a028907ee357cc2913dda378be2bd3319 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5741/8479e40a028907ee357cc2913dda378be2bd3319/clovr_blastall.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 24899, 2116, 16, 833, 4672, 7541, 468, 15191, 732, 854, 8374, 358, 20369, 335, 4042, 5402, 732, 1240, 358, 741, 2690, 284, 1683, 93, 1440, 468, 598, 326, 702, 18, 225, 1660, 2546, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24899, 2116, 16, 833, 4672, 7541, 468, 15191, 732, 854, 8374, 358, 20369, 335, 4042, 5402, 732, 1240, 358, 741, 2690, 284, 1683, 93, 1440, 468, 598, 326, 702, 18, 225, 1660, 2546, ...
else
else:
def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 623) else quickfix.DoubleField.__init__(self, 623, 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, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 1666, 4366, 13, 469, 30, 9549, 904, 18, 5265, 974, 16186, 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, 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, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 1666, 4366, 13, 469, 30, 9549, 904, 18, 5265, 974, 16186, 27...
ph = self.readheaders(patchfn)
ph = patchheader(self.join(patchfn))
def refresh(self, repo, pats=None, **opts): if len(self.applied) == 0: self.ui.write(_("no patches applied\n")) return 1 msg = opts.get('msg', '').rstrip() newuser = opts.get('user') newdate = opts.get('date') if newdate: newdate = '%d %d' % util.parsedate(newdate) wlock = repo.wlock() try: self.check_toppatch(repo) (t...
f0a2f47b4524f2b75cdde495bdc655cc18dab94f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/f0a2f47b4524f2b75cdde495bdc655cc18dab94f/mq.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 12, 2890, 16, 3538, 16, 293, 2323, 33, 7036, 16, 2826, 4952, 4672, 309, 562, 12, 2890, 18, 438, 3110, 13, 422, 374, 30, 365, 18, 4881, 18, 2626, 24899, 2932, 2135, 16482, 6754, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 12, 2890, 16, 3538, 16, 293, 2323, 33, 7036, 16, 2826, 4952, 4672, 309, 562, 12, 2890, 18, 438, 3110, 13, 422, 374, 30, 365, 18, 4881, 18, 2626, 24899, 2932, 2135, 16482, 6754, ...
nsteps = int(1 + totalTime / self.dtN)
timeScale = self.normalizer.timeScale() totalTimeN = self.normalizer.nondimensionalize(totalTime, timeScale) nsteps = int(1 + totalTimeN / self.dtN)
def open(self, totalTime, numTimeSteps): """ Prepare for writing data. """ logEvent = "%sopen" % self._loggingPrefix self._logger.eventBegin(logEvent)
b2bce509765991697f337d6e836142d6fe9dc504 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8645/b2bce509765991697f337d6e836142d6fe9dc504/OutputManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 12, 2890, 16, 2078, 950, 16, 818, 950, 11811, 4672, 3536, 7730, 364, 7410, 501, 18, 3536, 25424, 273, 2213, 87, 3190, 6, 738, 365, 6315, 11167, 2244, 365, 6315, 4901, 18, 2575, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1696, 12, 2890, 16, 2078, 950, 16, 818, 950, 11811, 4672, 3536, 7730, 364, 7410, 501, 18, 3536, 25424, 273, 2213, 87, 3190, 6, 738, 365, 6315, 11167, 2244, 365, 6315, 4901, 18, 2575, 8...
return self.environ[name].value
return str(self.environ[name])
def value(self,name): '''returns the value of the workspace variable *name*. If the variable has no value yet, a prompt is displayed for it.''' if not name in self.environ: raise Error("Trying to read unknown variable " + name + ".\n") if self.environ[name].configure(): self.save() return self.environ[name].value
a32fd692dd1e30de835cd0c6d09d9bec8f3ccf92 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1360/a32fd692dd1e30de835cd0c6d09d9bec8f3ccf92/dws.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 460, 12, 2890, 16, 529, 4672, 9163, 6154, 326, 460, 434, 326, 6003, 2190, 380, 529, 11146, 971, 326, 2190, 711, 1158, 460, 4671, 16, 279, 6866, 353, 10453, 364, 518, 1093, 6309, 309, 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, 460, 12, 2890, 16, 529, 4672, 9163, 6154, 326, 460, 434, 326, 6003, 2190, 380, 529, 11146, 971, 326, 2190, 711, 1158, 460, 4671, 16, 279, 6866, 353, 10453, 364, 518, 1093, 6309, 309, 4...
@brief: Parse a file-like object. @param file: A file-like object @param list: A list of dicts to operate on (list is modified in place and should not be used after the call) @param restricted: if True, operate in restricted mode (prohibit 'variants') @param prev_indent: the indent level of the "parent" block @return: ...
@brief: Parse a file-like object. @param file: A file-like object @param list: A list of dicts to operate on (list is modified in place and should not be used after the call) @param restricted: if True, operate in restricted mode (prohibit 'variants') @param prev_indent: the indent level of the "parent" block @return: ...
def parse(self, file, list, restricted=False, prev_indent=-1): """ Read and parse lines from file until a line with an indent level lower than or equal to prev_indent is encountered.
16f543c10d265c8490766534da1e65164c768d0b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10349/16f543c10d265c8490766534da1e65164c768d0b/kvm_config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 585, 16, 666, 16, 15693, 33, 8381, 16, 2807, 67, 9355, 29711, 21, 4672, 3536, 2720, 471, 1109, 2362, 628, 585, 3180, 279, 980, 598, 392, 3504, 1801, 2612, 2353, 578...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1109, 12, 2890, 16, 585, 16, 666, 16, 15693, 33, 8381, 16, 2807, 67, 9355, 29711, 21, 4672, 3536, 2720, 471, 1109, 2362, 628, 585, 3180, 279, 980, 598, 392, 3504, 1801, 2612, 2353, 578...
self.H = [] self.oddterm = []
self.H = None self.oddterm = None
def __init__(self, ystart=None, tstart=0.0, tend=120.0, tstep_wanted=0.02, tstep_min=0.0001, k=None): """Initialize all variables and call ancestor's __init__ method.""" #Let k roam for a start if k is None: self.k = 10**(N.arange(10.0)-8) else: self.k = k #Initial conditions for each of the variables. if ystart is N...
296f5da5146b0ee16a564a1b8110a873ae43b34e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7283/296f5da5146b0ee16a564a1b8110a873ae43b34e/cosmomodels.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 677, 1937, 33, 7036, 16, 268, 1937, 33, 20, 18, 20, 16, 268, 409, 33, 22343, 18, 20, 16, 268, 4119, 67, 25861, 33, 20, 18, 3103, 16, 268, 4119, 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, 1001, 2738, 972, 12, 2890, 16, 677, 1937, 33, 7036, 16, 268, 1937, 33, 20, 18, 20, 16, 268, 409, 33, 22343, 18, 20, 16, 268, 4119, 67, 25861, 33, 20, 18, 3103, 16, 268, 4119, 67, ...
for pkg in pkgnamehash[name]:
for upkg in pkgnamehash[name]:
def __handleBestPkg(self, cmd, pkglist, arch=None, exactarch=False, is_filereq=0, do_obsolete=True, single=False): # Handle removes directly here, they don't need any special handling. if cmd.endswith("remove"): for upkg in pkglist: self.opresolver.erase(upkg) return 1 # If no arch has been set use the one of our curre...
69149b81c204eb763fdb82e232484bdf13429a9a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/69149b81c204eb763fdb82e232484bdf13429a9a/yum.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4110, 14173, 11264, 12, 2890, 16, 1797, 16, 3475, 1098, 16, 6637, 33, 7036, 16, 5565, 991, 33, 8381, 16, 353, 67, 7540, 822, 85, 33, 20, 16, 741, 67, 10992, 19513, 33, 5510, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4110, 14173, 11264, 12, 2890, 16, 1797, 16, 3475, 1098, 16, 6637, 33, 7036, 16, 5565, 991, 33, 8381, 16, 353, 67, 7540, 822, 85, 33, 20, 16, 741, 67, 10992, 19513, 33, 5510, 16...
return self.GetGenaratorFromLinkFinder(first_page,
return self.GetGeneratorFromLinkFinder(first_page,
def GetGeneratorForAllUsers(self): """Retrieve a generator for all users in this domain.""" first_page = self.RetrievePageOfUsers() return self.GetGenaratorFromLinkFinder(first_page, gdata.apps.UserFeedFromString)
5483bd1b08922c7ad0efedf1f3cc138b690f6668 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5609/5483bd1b08922c7ad0efedf1f3cc138b690f6668/service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 3908, 1290, 1595, 6588, 12, 2890, 4672, 3536, 5767, 279, 4456, 364, 777, 3677, 316, 333, 2461, 12123, 1122, 67, 2433, 273, 365, 18, 5767, 1964, 951, 6588, 1435, 327, 365, 18, 967, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 3908, 1290, 1595, 6588, 12, 2890, 4672, 3536, 5767, 279, 4456, 364, 777, 3677, 316, 333, 2461, 12123, 1122, 67, 2433, 273, 365, 18, 5767, 1964, 951, 6588, 1435, 327, 365, 18, 967, ...
def notresponding(signum, frame):
def not_responding(signum, frame):
def notresponding(signum, frame): """ Launch the already running dialog if the other instance doesn't respond """ os.unlink(pidfile + ".boot") self.already_running_dialog()
8be045ab4ecf7a75366f75029b2bd2a34e5edf69 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10818/8be045ab4ecf7a75366f75029b2bd2a34e5edf69/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 486, 67, 17863, 310, 12, 2977, 379, 16, 2623, 4672, 3536, 14643, 326, 1818, 3549, 6176, 309, 326, 1308, 791, 3302, 1404, 6846, 3536, 1140, 18, 318, 1232, 12, 6610, 768, 397, 3552, 7137, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 486, 67, 17863, 310, 12, 2977, 379, 16, 2623, 4672, 3536, 14643, 326, 1818, 3549, 6176, 309, 326, 1308, 791, 3302, 1404, 6846, 3536, 1140, 18, 318, 1232, 12, 6610, 768, 397, 3552, 7137, ...
if (propersubset(subsource-1,source-1) and (subsource-1)&Bwithins == (source-1)&Bwithins and (subsource-1) != (source-1)&Bwithins): sub_effects = (sub_effects +
if (propersubset(subsource-1,source-1) and (subsource-1)&Bwithins == (source-1)&Bwithins and (subsource-1) != (source-1)&Bwithins): sub_effects = (sub_effects +
def d_restrict_source(workd,subjslots,source): """
3bb739baad4fb4f21aa19b39fbb10f6aa5c1a041 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/3bb739baad4fb4f21aa19b39fbb10f6aa5c1a041/stats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 67, 30604, 67, 3168, 12, 1252, 72, 16, 1717, 78, 18875, 16, 3168, 4672, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 67, 30604, 67, 3168, 12, 1252, 72, 16, 1717, 78, 18875, 16, 3168, 4672, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
fi = self.f.items()
fi = iter(self.f.items())
def test_iteritems_while_modifying_values(self): if not hasattr(self.f, 'iteritems'): return
2695b748a4e64704a9d0981df907c6966079bae2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/2695b748a4e64704a9d0981df907c6966079bae2/test_bsddb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2165, 3319, 67, 17523, 67, 17042, 310, 67, 2372, 12, 2890, 4672, 309, 486, 3859, 12, 2890, 18, 74, 16, 296, 2165, 3319, 11, 4672, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2165, 3319, 67, 17523, 67, 17042, 310, 67, 2372, 12, 2890, 4672, 309, 486, 3859, 12, 2890, 18, 74, 16, 296, 2165, 3319, 11, 4672, 327, 2, -100, -100, -100, -100, -100, -100, ...
'select_sf' : self.tmpl_select(fieldname = 'sf', values = sort_formats, selected = sf, css_class = 'address'),
'select_sf' : self.tmpl_select(fieldname = 'sf', values = sort_fields, selected = sf, css_class = 'address'),
def tmpl_search_box(self, ln, as, cc, cc_intl, ot, sp, action, fieldslist, f1, f2, f3, m1, m2, m3, p1, p2, p3, op1, op2, rm, p, f, coll_selects, d1y, d2y, d1m, d2m, d1d, d2d, dt, sort_formats, sf, so, ranks, sc, rg, formats, of, pl, jrec, ec):
e24d078457289b79ecf81402e3cc6a78c006f9b2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/e24d078457289b79ecf81402e3cc6a78c006f9b2/websearch_templates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 3072, 67, 2147, 12, 2890, 16, 7211, 16, 487, 16, 4946, 16, 4946, 67, 474, 80, 16, 15835, 16, 1694, 16, 1301, 16, 1466, 1098, 16, 284, 21, 16, 284, 22, 16, 284, 23, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 3072, 67, 2147, 12, 2890, 16, 7211, 16, 487, 16, 4946, 16, 4946, 67, 474, 80, 16, 15835, 16, 1694, 16, 1301, 16, 1466, 1098, 16, 284, 21, 16, 284, 22, 16, 284, 23, 16, ...
self.assertEqual(fdata.encode(), open(outfile, "rb").read())
with open(outfile, "rb") as f: self.assertEqual(fdata.encode(), f.read())
def test_extract_all(self): with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp: for fpath, fdata in SMALL_TEST_DATA: zipfp.writestr(fpath, fdata)
b851957a42b68791e7491840103c69844875e2e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/b851957a42b68791e7491840103c69844875e2e0/test_zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8004, 67, 454, 12, 2890, 4672, 598, 18823, 18, 29394, 12, 16961, 19793, 22, 16, 315, 91, 3113, 18823, 18, 13951, 67, 31487, 5879, 13, 487, 3144, 7944, 30, 364, 13543, 16, 284...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8004, 67, 454, 12, 2890, 4672, 598, 18823, 18, 29394, 12, 16961, 19793, 22, 16, 315, 91, 3113, 18823, 18, 13951, 67, 31487, 5879, 13, 487, 3144, 7944, 30, 364, 13543, 16, 284...
if r.satisfied_by is None],
if (r.satisfied_by is None and (self.upgrade or r.conflicts_with is None))],
def install(self, install_options): """Install everything in this set (after having downloaded and unpacked the packages)""" to_install = sorted([r for r in self.requirements.values() if r.satisfied_by is None], key=lambda p: p.name.lower()) if to_install: logger.notify('Installing collected packages: %s' % (', '.join(...
beba4ffd0d59cc9bbb1b44d1192bacce527e1749 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12982/beba4ffd0d59cc9bbb1b44d1192bacce527e1749/pip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 12, 2890, 16, 3799, 67, 2116, 4672, 3536, 6410, 7756, 316, 333, 444, 261, 5205, 7999, 13549, 471, 24195, 326, 5907, 15574, 358, 67, 5425, 273, 3115, 3816, 86, 364, 436, 316, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 12, 2890, 16, 3799, 67, 2116, 4672, 3536, 6410, 7756, 316, 333, 444, 261, 5205, 7999, 13549, 471, 24195, 326, 5907, 15574, 358, 67, 5425, 273, 3115, 3816, 86, 364, 436, 316, 365, ...
raise TracError('Unsupported version control system "%s"' % self.repository_type)
raise TracError('Unsupported version control system "%s". ' 'Check that the Python bindings for "%s" are ' 'correctly installed.' % ((self.repository_type,)*2))
def get_repository(self, authname): if not self._connector: candidates = [] for connector in self.connectors: for repos_type_, prio in connector.get_supported_types(): if self.repository_type != repos_type_: continue heappush(candidates, (-prio, connector)) if not candidates: raise TracError('Unsupported version contro...
bbbf8b9e89450c419f7861e04a08abffcd477ed9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/bbbf8b9e89450c419f7861e04a08abffcd477ed9/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 9071, 12, 2890, 16, 1357, 529, 4672, 309, 486, 365, 6315, 23159, 30, 7965, 273, 5378, 364, 8703, 316, 365, 18, 4646, 18886, 30, 364, 13686, 67, 723, 67, 16, 14705, 83, 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, 336, 67, 9071, 12, 2890, 16, 1357, 529, 4672, 309, 486, 365, 6315, 23159, 30, 7965, 273, 5378, 364, 8703, 316, 365, 18, 4646, 18886, 30, 364, 13686, 67, 723, 67, 16, 14705, 83, 316, ...
try: dom_cutlists = xml.dom.minidom.parse(handle) handle.close() dom_cutlists = dom_cutlists.getElementsByTagName('cutlist') except: if error_cb: error_cb("Keine Cutlists gefunden") return "Keine Cutlists gefunden", None cutlists = [] for cutlist in dom_cutlists: c = Cutlist() c.id = __read_v...
cutlists.append(c)
def download_cutlists(filename, server, choose_cutlists_by, cutlist_mp4_as_hq, error_cb=None, cutlist_found_cb=None): """ Downloads all cutlists for the given file. filename - movie filename server - cutlist server choose_cutlists_by - 0 by size, 1 by name error_cb - callback: an err...
7bfd0d18856929e717091080e4f935f644384838 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11048/7bfd0d18856929e717091080e4f935f644384838/cutlists.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 67, 5150, 9772, 12, 3459, 16, 1438, 16, 9876, 67, 5150, 9772, 67, 1637, 16, 6391, 1098, 67, 1291, 24, 67, 345, 67, 76, 85, 16, 555, 67, 7358, 33, 7036, 16, 6391, 1098, 67, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 67, 5150, 9772, 12, 3459, 16, 1438, 16, 9876, 67, 5150, 9772, 67, 1637, 16, 6391, 1098, 67, 1291, 24, 67, 345, 67, 76, 85, 16, 555, 67, 7358, 33, 7036, 16, 6391, 1098, 67, 70...
'''Return a string of pretty-printed, newline-delimited languages in the format Name : code'''
''' Return a string of pretty-printed, newline-delimited languages in the format Name : code '''
def pretty_print_languages(self, right_justify = True): '''Return a string of pretty-printed, newline-delimited languages in the format Name : code''' l = [] width = 0 if right_justify: width = max([len(x) for x in self.dictLang.keys()]) for item in sorted(self.dictLang.keys()): l.append(''.join(["%", str(width), 's', ...
882d67c8fe0f86c4b7052562c51b41df492db552 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9947/882d67c8fe0f86c4b7052562c51b41df492db552/traduisons.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7517, 67, 1188, 67, 14045, 12, 2890, 16, 2145, 67, 3732, 1164, 273, 1053, 4672, 9163, 2000, 279, 533, 434, 7517, 17, 1188, 329, 16, 9472, 17, 3771, 1038, 329, 8191, 316, 326, 740, 1770...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7517, 67, 1188, 67, 14045, 12, 2890, 16, 2145, 67, 3732, 1164, 273, 1053, 4672, 9163, 2000, 279, 533, 434, 7517, 17, 1188, 329, 16, 9472, 17, 3771, 1038, 329, 8191, 316, 326, 740, 1770...
subDir = os.path.relpath(os.path.split(self.thisWidgetDir)[0], self.addOnsDir)
addonDir = os.path.split(self.thisWidgetDir)[0] subDir = os.path.relpath(addonDir, self.addOnsDir) if os.path.relpath else addonDir.replace(self.addOnsDir, "")
def docDir(self): if os.path.normpath(self.widgetDir) in os.path.normpath(self.thisWidgetDir): # A built-in widget subDir = os.path.relpath(self.thisWidgetDir, self.widgetDir) return "doc/catalog/%s" % subDir elif os.path.normpath(self.addOnsDir) in os.path.normpath(self.thisWidgetDir): # An add-on widget # Two os.pa...
f8716d23fcd9b88beb9164bb15685424edb98362 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/f8716d23fcd9b88beb9164bb15685424edb98362/OWBaseWidget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 1621, 12, 2890, 4672, 309, 1140, 18, 803, 18, 7959, 803, 12, 2890, 18, 6587, 1621, 13, 316, 1140, 18, 803, 18, 7959, 803, 12, 2890, 18, 2211, 4609, 1621, 4672, 225, 468, 432, 66...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 1621, 12, 2890, 4672, 309, 1140, 18, 803, 18, 7959, 803, 12, 2890, 18, 6587, 1621, 13, 316, 1140, 18, 803, 18, 7959, 803, 12, 2890, 18, 2211, 4609, 1621, 4672, 225, 468, 432, 66...
if decDeg < 0: signStr = "-" decDeg = abs(decDeg) else: signStr = "" decDeg = float ("%.*f" % (precision, decDeg * 3600.0)) / 3600.0 (numDeg, frac) = divmod (abs(decDeg), 1.0) (numMin, frac) = divmod (frac * 60.0, 1.0) numSec = frac * 60.0 if precision > 0: minFloatWidth = precision + 3 else: minFloatWidth = 2 if ...
signStr, fieldStrs = _getDMSFields(decDeg, nFields, precision) if omitExtraFields: while fieldStrs and float(fieldStrs[0]) == 0.0: fieldStrs.pop(0) return signStr + ":".join(fieldStrs)
def dmsStrFromSec (decSec, nFields=3, precision=1, omitExtraFields = True): """Converts a number, in seconds, to a sexagesimal string. Unlike dmsStrFromDeg, nFields is counted right to left. Inputs: decSec: value in decimal seconds or arc seconds nFields: number of fields; <=1 for ss.sss, 2 for mm:ss.ss, >=3 for dddd:...
a5c12743960cc44ddb0aa0f21361c8697521f18c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6354/a5c12743960cc44ddb0aa0f21361c8697521f18c/StringUtil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 959, 1585, 1265, 2194, 261, 4924, 2194, 16, 290, 2314, 33, 23, 16, 6039, 33, 21, 16, 14088, 7800, 2314, 273, 1053, 4672, 3536, 5692, 279, 1300, 16, 316, 3974, 16, 358, 279, 19631,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 959, 1585, 1265, 2194, 261, 4924, 2194, 16, 290, 2314, 33, 23, 16, 6039, 33, 21, 16, 14088, 7800, 2314, 273, 1053, 4672, 3536, 5692, 279, 1300, 16, 316, 3974, 16, 358, 279, 19631,...
key = 'C-c n f'
key = 'C-c r n f'
def _done(self): self.interface._goto_location(self.generator.get_location())
c73bbee7e9a87e20fe1891f20558b67891c27ef6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8283/c73bbee7e9a87e20fe1891f20558b67891c27ef6/refactor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8734, 12, 2890, 4672, 365, 18, 5831, 6315, 75, 6302, 67, 3562, 12, 2890, 18, 8812, 18, 588, 67, 3562, 10756, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8734, 12, 2890, 4672, 365, 18, 5831, 6315, 75, 6302, 67, 3562, 12, 2890, 18, 8812, 18, 588, 67, 3562, 10756, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if dom.hasAttribute("bridge_name"): dom.removeAttribute("bridge_name")
if dom.hasAttribute("bridge"): dom.removeAttribute("bridge")
def decode_xml (self, dom, load_ids): """ Read the attributes from the xml dom object @param dom the xml dom object to read the data from @load_ids whether to load or ignore assigned ids """ if not load_ids: if dom.hasAttribute("bridge_id"): dom.removeAttribute("bridge_id") if dom.hasAttribute("bridge_name"): dom.remov...
7e6b9dc825be91ca647a2d40a99a37ed3d77867d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3860/7e6b9dc825be91ca647a2d40a99a37ed3d77867d/connection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 67, 2902, 261, 2890, 16, 4092, 16, 1262, 67, 2232, 4672, 3536, 2720, 326, 1677, 628, 326, 2025, 4092, 733, 632, 891, 4092, 326, 2025, 4092, 733, 358, 855, 326, 501, 628, 632, 945...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 67, 2902, 261, 2890, 16, 4092, 16, 1262, 67, 2232, 4672, 3536, 2720, 326, 1677, 628, 326, 2025, 4092, 733, 632, 891, 4092, 326, 2025, 4092, 733, 358, 855, 326, 501, 628, 632, 945...
if intro is not None: self.intro = intro if self.intro: self.stdout.write(str(self.intro)+"\n") stop = None while not stop: if self.cmdqueue: line = self.cmdqueue.pop(0) else: if self.use_rawinput: try: line = raw_input(self.prompt) except EOFError: line = 'EOF' else: self.stdout.write(self.prompt) self.stdout.flush() ...
if self.use_rawinput and self.completekey:
def cmdloop(self, intro=None): """Repeatedly issue a prompt, accept input, parse an initial prefix off the received input, and dispatch to action methods, passing them the remainder of the line as argument.
39682cc9eb4d740b6d603f582659bcec4f5238f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/39682cc9eb4d740b6d603f582659bcec4f5238f9/cmd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1797, 6498, 12, 2890, 16, 13079, 33, 7036, 4672, 3536, 20730, 715, 5672, 279, 6866, 16, 2791, 810, 16, 1109, 392, 2172, 1633, 3397, 326, 5079, 810, 16, 471, 3435, 358, 1301, 2590, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1797, 6498, 12, 2890, 16, 13079, 33, 7036, 4672, 3536, 20730, 715, 5672, 279, 6866, 16, 2791, 810, 16, 1109, 392, 2172, 1633, 3397, 326, 5079, 810, 16, 471, 3435, 358, 1301, 2590, 16, ...
tools.convert_csv_import(cr, module_name, file, id_map, mode, noupdate)
tools.convert_csv_import(cr, module_name, pathname, file.read(), id_map, mode, noupdate)
def _load_data(cr, module_name, id_map, mode, kind): noupdate = (kind == 'demo') for filename in package.data.get(kind, []): _, ext = os.path.splitext(filename) log.info("module %s: loading %s", module_name, filename) pathname = os.path.join(module_name, filename) file = tools.file_open(pathname) # TODO manage .csv fil...
8e2f0e4e3014055ecda7417004f59230a91c501a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/8e2f0e4e3014055ecda7417004f59230a91c501a/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 945, 67, 892, 12, 3353, 16, 1605, 67, 529, 16, 612, 67, 1458, 16, 1965, 16, 3846, 4672, 1158, 2725, 273, 261, 9224, 422, 296, 27928, 6134, 364, 1544, 316, 2181, 18, 892, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 945, 67, 892, 12, 3353, 16, 1605, 67, 529, 16, 612, 67, 1458, 16, 1965, 16, 3846, 4672, 1158, 2725, 273, 261, 9224, 422, 296, 27928, 6134, 364, 1544, 316, 2181, 18, 892, 18, 588...
vals = row[i + 3].decode("iso8859-1")
vals = row[i + 2].decode("iso8859-1")
def save_song(model, path, iter): song = model[path][0] row = model[path] changed = False for i, h in enumerate(pattern.headers): if row[i]: if not add or h not in song: try: song[h] = row[i + 3].decode("utf-8") except UnicodeDecodeError: song[h] = row[i + 3].decode("iso8859-1") changed = True else: try: vals = row[i +...
f85ea9fdb99e4eef518b1b815b9eb0b941ea6921 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/f85ea9fdb99e4eef518b1b815b9eb0b941ea6921/quodlibet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 816, 75, 12, 2284, 16, 589, 16, 1400, 4672, 17180, 273, 938, 63, 803, 6362, 20, 65, 1027, 273, 938, 63, 803, 65, 3550, 273, 1083, 364, 277, 16, 366, 316, 4241, 12, 4951, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 816, 75, 12, 2284, 16, 589, 16, 1400, 4672, 17180, 273, 938, 63, 803, 6362, 20, 65, 1027, 273, 938, 63, 803, 65, 3550, 273, 1083, 364, 277, 16, 366, 316, 4241, 12, 4951, ...
def MimetypeFromFilename(fn): fp = fn.rsplit('.',1)
def Filetype(filename): fp = filename.rsplit('.',1)
def HtmlErrorMessage(msg): return "<html><body>" + htmlEncode(msg) + "</body></html>"
cfeebddab6ba87c954b8f08a3f616e02d417b121 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7716/cfeebddab6ba87c954b8f08a3f616e02d417b121/iewiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5430, 14935, 12, 3576, 4672, 327, 3532, 2620, 4438, 3432, 2984, 397, 1729, 5509, 12, 3576, 13, 397, 6823, 3432, 4695, 2620, 2984, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5430, 14935, 12, 3576, 4672, 327, 3532, 2620, 4438, 3432, 2984, 397, 1729, 5509, 12, 3576, 13, 397, 6823, 3432, 4695, 2620, 2984, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
orbiterpath= StringProperty(name="Orbiter Path", description="Orbiter spacesim path", maxlen=1024, default=ORBITER_PATH_DEFAULT, subtype="DIR_PATH")
def load_msh(filename,orbiterpath,convert_coords,show_single_sided): '''Read MSH file''' print("filepath=",filename,"orbiterpath=",orbiterpath) file=open(filename,"r") s=file.readline(); if s!='MSHX1\n': print("This file is not orbiter mesh: ",s) return else: print("Orbiter mesh format detected ") n_groups=0 #N of gr...
86e35fd95f0c62cd139674c6ebaa7ac78d3174ba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10993/86e35fd95f0c62cd139674c6ebaa7ac78d3174ba/io_import_msh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 81, 674, 12, 3459, 16, 16640, 2165, 803, 16, 6283, 67, 9076, 16, 4500, 67, 7526, 67, 7722, 785, 4672, 9163, 1994, 490, 2664, 585, 26418, 1172, 2932, 10561, 1546, 16, 3459, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 81, 674, 12, 3459, 16, 16640, 2165, 803, 16, 6283, 67, 9076, 16, 4500, 67, 7526, 67, 7722, 785, 4672, 9163, 1994, 490, 2664, 585, 26418, 1172, 2932, 10561, 1546, 16, 3459, 10...
decode = classmethod(decode)
to_unicode = classmethod(to_unicode)
def decode(cls, value): if not value: return None return int(value)
8bbb2a3fb14f7652affdf75eb3a99e780e8e2232 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/8bbb2a3fb14f7652affdf75eb3a99e780e8e2232/IO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 6429, 16, 460, 4672, 309, 486, 460, 30, 327, 599, 327, 509, 12, 1132, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 6429, 16, 460, 4672, 309, 486, 460, 30, 327, 599, 327, 509, 12, 1132, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
def train_folder( f, isspam, mgr, progress):
def train_folder(f, isspam, mgr, progress):
def train_folder( f, isspam, mgr, progress): num = num_added = 0 for message in f.GetMessageGenerator(): if progress.stop_requested(): break progress.tick() try: if train_message(message, isspam, mgr): num_added += 1 except: print "Error training message '%s'" % (message,) traceback.print_exc() num += 1 print "Checked"...
c98b93c78139ff6fef9d626c717edee1f6fb0185 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/c98b93c78139ff6fef9d626c717edee1f6fb0185/train.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4691, 67, 5609, 12, 74, 16, 353, 1752, 301, 16, 13333, 16, 4007, 4672, 818, 273, 818, 67, 9665, 273, 374, 364, 883, 316, 284, 18, 967, 1079, 3908, 13332, 309, 4007, 18, 5681, 67, 190...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4691, 67, 5609, 12, 74, 16, 353, 1752, 301, 16, 13333, 16, 4007, 4672, 818, 273, 818, 67, 9665, 273, 374, 364, 883, 316, 284, 18, 967, 1079, 3908, 13332, 309, 4007, 18, 5681, 67, 190...
[key] = line.split('=')[0:1] if key.startswith('CONFIG_'):
if line.startswith('CONFIG_'): key = line.split('=')[0] override[key] = line; elif line.startswith(' key = line.split(' ')[1]
def apply_overrides(orig_file, changes_file, output_file): # First suck all the changes into a dictionary. input = file(changes_file, 'r') for line in input.readlines(): [key] = line.split('=')[0:1] if key.startswith('CONFIG_'): override[key] = line; input.close() # Now go through the input file, overriding lines wher...
65d3895213189828fbdd16a6cea476480bd2c1a2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12268/65d3895213189828fbdd16a6cea476480bd2c1a2/kernel_config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 19775, 12, 4949, 67, 768, 16, 3478, 67, 768, 16, 876, 67, 768, 4672, 468, 5783, 1597, 363, 777, 326, 3478, 1368, 279, 3880, 18, 810, 273, 585, 12, 6329, 67, 768, 16, 296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 19775, 12, 4949, 67, 768, 16, 3478, 67, 768, 16, 876, 67, 768, 4672, 468, 5783, 1597, 363, 777, 326, 3478, 1368, 279, 3880, 18, 810, 273, 585, 12, 6329, 67, 768, 16, 296, ...
lineno += 1
def readgitpatch(lr): """extract git-style metadata about patches from <patchname>""" # Filter patch for git information gp = None gitpatches = [] lineno = 0 for line in lr: lineno += 1 line = line.rstrip(' \r\n') if line.startswith('diff --git'): m = gitre.match(line) if m: if gp: gitpatches.append(gp) dst = m.group(...
e475a54d521c385dfbe2401b7b7af2f4f8c4fda9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/e475a54d521c385dfbe2401b7b7af2f4f8c4fda9/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 6845, 2272, 12, 10826, 4672, 3536, 8004, 5071, 17, 4060, 1982, 2973, 16482, 628, 411, 2272, 529, 2984, 3660, 225, 468, 4008, 4729, 364, 5071, 1779, 4178, 273, 599, 5071, 30278, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 6845, 2272, 12, 10826, 4672, 3536, 8004, 5071, 17, 4060, 1982, 2973, 16482, 628, 411, 2272, 529, 2984, 3660, 225, 468, 4008, 4729, 364, 5071, 1779, 4178, 273, 599, 5071, 30278, 273, ...
self.module, record_dict, record.id, noupdate=self.isnoupdate(record), mode=self.mode)
self.module, record_dict, record.id, noupdate=self.isnoupdate(record), mode=self.mode, context=context)
def process_record(self, node): import osv record, fields = node.items()[0] model = self.get_model(record.model) if isinstance(model, osv.osv.osv_memory): record_dict=self.create_osv_memory_record(record, fields) else: self.validate_xml_id(record.id) if self.isnoupdate(record) and self.mode != 'init': id = self.pool.ge...
73bbce205b018e5d0b6c3a2db5fb56c0e59718b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/73bbce205b018e5d0b6c3a2db5fb56c0e59718b4/yaml_import.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 3366, 12, 2890, 16, 756, 4672, 1930, 1140, 90, 1409, 16, 1466, 273, 756, 18, 3319, 1435, 63, 20, 65, 938, 273, 365, 18, 588, 67, 2284, 12, 3366, 18, 2284, 13, 309, 1549, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 3366, 12, 2890, 16, 756, 4672, 1930, 1140, 90, 1409, 16, 1466, 273, 756, 18, 3319, 1435, 63, 20, 65, 938, 273, 365, 18, 588, 67, 2284, 12, 3366, 18, 2284, 13, 309, 1549, ...
consumerid = check_registration()['uuid']
def _do_command(self): """ Executes the command. """ self._validate_options()
c3b1d88a71471991cf661f45d970373adeeb4cd3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11137/c3b1d88a71471991cf661f45d970373adeeb4cd3/managercli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 3076, 12, 2890, 4672, 3536, 3889, 993, 326, 1296, 18, 3536, 365, 6315, 5662, 67, 2116, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 3076, 12, 2890, 4672, 3536, 3889, 993, 326, 1296, 18, 3536, 365, 6315, 5662, 67, 2116, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
opt.add_option('--dwidth', action='store', type='int', help='diagram width', default=5000, dest='dwidth')
opt.add_option('--dwidth', action='store', type='int', help='diagram width', default=500, dest='dwidth')
def options(opt): opt.add_option('--dtitle', action='store', default='Parallel build representation for %r' % ' '.join(sys.argv), help='title for the svg diagram', dest='dtitle') opt.add_option('--dwidth', action='store', type='int', help='diagram width', default=5000, dest='dwidth') opt.add_option('--dtime', action='s...
5b986cccc2aa98c04dc7b40f6900cccce64413c6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2886/5b986cccc2aa98c04dc7b40f6900cccce64413c6/parallel_debug.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 702, 12, 3838, 4672, 2153, 18, 1289, 67, 3482, 2668, 413, 72, 2649, 2187, 1301, 2218, 2233, 2187, 805, 2218, 13056, 1361, 4335, 364, 738, 86, 11, 738, 296, 2418, 5701, 12, 9499, 18, 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, 702, 12, 3838, 4672, 2153, 18, 1289, 67, 3482, 2668, 413, 72, 2649, 2187, 1301, 2218, 2233, 2187, 805, 2218, 13056, 1361, 4335, 364, 738, 86, 11, 738, 296, 2418, 5701, 12, 9499, 18, 19...
gobject.timeout_add(1500, show_hide_tooltip, icon2.get_tooltip())
gobject.timeout_add(1500, show_hide_tooltip, icon2)
def show_hide_tooltip(tooltip): if (tooltip.flags() & gtk.VISIBLE) == 0: tooltip.update_position() tooltip.show() else: tooltip.hide() return True # timer repeats
0f36df89110d7c2a411583773ad808d1541132c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8416/0f36df89110d7c2a411583773ad808d1541132c1/test-awn-tooltip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 11248, 67, 19798, 12, 19798, 4672, 309, 261, 19798, 18, 7133, 1435, 473, 22718, 18, 29588, 13, 422, 374, 30, 11915, 18, 2725, 67, 3276, 1435, 11915, 18, 4500, 1435, 469, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 11248, 67, 19798, 12, 19798, 4672, 309, 261, 19798, 18, 7133, 1435, 473, 22718, 18, 29588, 13, 422, 374, 30, 11915, 18, 2725, 67, 3276, 1435, 11915, 18, 4500, 1435, 469, 30, ...
terminal_deps[ZeroType] = no_deps terminal_deps[FacetNormal] = facet_normal_deps terminal_deps[Function] = function_deps
terminal_deps[ZeroType] = no_deps terminal_deps[FacetNormal] = facet_normal_deps terminal_deps[Function] = function_deps
def basisfunction_deps(x): g, t = basisfunction_deps[x._count] return make_deps(geometry=g, topology=t, basisfunction=x._count)
f2d44f848c00da19d85bc6bd20c2229b74c1cfa2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/624/f2d44f848c00da19d85bc6bd20c2229b74c1cfa2/transformations.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10853, 915, 67, 14877, 12, 92, 4672, 314, 16, 268, 273, 10853, 915, 67, 14877, 63, 92, 6315, 1883, 65, 327, 1221, 67, 14877, 12, 14330, 33, 75, 16, 9442, 33, 88, 16, 10853, 915, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10853, 915, 67, 14877, 12, 92, 4672, 314, 16, 268, 273, 10853, 915, 67, 14877, 63, 92, 6315, 1883, 65, 327, 1221, 67, 14877, 12, 14330, 33, 75, 16, 9442, 33, 88, 16, 10853, 915, 33, ...
a.addAttValue(AttValue(str(curr_num), mult*curr_num*cl.beta[at])) curr_num += d a.continuous = True at.setattr("visited", 1) if len(a.attValues)>1: self.bnomogram.addAttribute(a)
a = AttrLine(name, self.bnomogram) listOfExcludedValues = [] for val in var.values: foundValue = False for same in cl.continuizedDomain.attributes: if same.visited==0 and same.getValueFrom and same.getValueFrom.variable == var and same.getValueFrom.variable.values[same.getValueFrom.transformer.value]==val: same.setattr...
def lrClassifier(self, cl): if self.TargetClassIndex == 0 or self.TargetClassIndex == cl.domain.classVar[0]: mult = -1 else: mult = 1
e23d0d8b916b91b2c5d8b3aa4d0265a815d1c4cf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/e23d0d8b916b91b2c5d8b3aa4d0265a815d1c4cf/OWNomogram.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12226, 13860, 12, 2890, 16, 927, 4672, 309, 365, 18, 2326, 797, 1016, 422, 374, 578, 365, 18, 2326, 797, 1016, 422, 927, 18, 4308, 18, 1106, 1537, 63, 20, 14542, 1778, 273, 300, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12226, 13860, 12, 2890, 16, 927, 4672, 309, 365, 18, 2326, 797, 1016, 422, 374, 578, 365, 18, 2326, 797, 1016, 422, 927, 18, 4308, 18, 1106, 1537, 63, 20, 14542, 1778, 273, 300, 21, ...
testCase['resetOrigin'] = resetOrigin
IECore.Writer.create(croppedImg, outputfile).write()
def __testCrop( self, inputfile, outputfile, tests ): r = IECore.Reader.create(inputfile) img = r.read() self.assertEqual(type(img), IECore.ImagePrimitive)
cdf5cd230deb1ad29125cf70bd9fc056cd8f7800 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9042/cdf5cd230deb1ad29125cf70bd9fc056cd8f7800/ImageCropOp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3813, 19729, 12, 365, 16, 810, 768, 16, 876, 768, 16, 7434, 262, 30, 436, 273, 10897, 4670, 18, 2514, 18, 2640, 12, 2630, 768, 13, 3774, 273, 436, 18, 896, 1435, 365, 18, 11231...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 3813, 19729, 12, 365, 16, 810, 768, 16, 876, 768, 16, 7434, 262, 30, 436, 273, 10897, 4670, 18, 2514, 18, 2640, 12, 2630, 768, 13, 3774, 273, 436, 18, 896, 1435, 365, 18, 11231...
self.body = self.root.body
try: self.body = self.root.body except: import traceback err = traceback.format_exc() self.root = fromstring(u'<html><head/><body><p>This page was too ' 'severely malformed for calibre to handle. ' 'It has been replaced by this error message.' '</p><pre>%s</pre></body></html>'%err) self.head = self.root.xpath('./head')...
def parse_html(self): ''' Create lxml ElementTree from HTML ''' self.log_info('\tParsing '+os.sep.join(self.htmlfile.path.split(os.sep)[-3:])) if self.htmlfile.is_binary: raise ValueError('Not a valid HTML file: '+self.htmlfile.path) src = open(self.htmlfile.path, 'rb').read().decode(self.htmlfile.encoding, 'replace')....
a8d514092f5eda12f3adc9fe12ff252563ef9d18 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/a8d514092f5eda12f3adc9fe12ff252563ef9d18/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2620, 12, 2890, 4672, 9163, 1788, 328, 2902, 22566, 628, 3982, 9163, 365, 18, 1330, 67, 1376, 2668, 64, 88, 13963, 15126, 538, 18, 10814, 18, 5701, 12, 2890, 18, 2620, 768, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2620, 12, 2890, 4672, 9163, 1788, 328, 2902, 22566, 628, 3982, 9163, 365, 18, 1330, 67, 1376, 2668, 64, 88, 13963, 15126, 538, 18, 10814, 18, 5701, 12, 2890, 18, 2620, 768, 1...
return (applications, module_info, required_modules)
return (module_info, required_modules)
def read_module_info(MODULES_DIR, disabled_modules): # Initialize output variable module_info = {} required_modules = set() applications = set() # Iterate through all sub directories in MODULES_DIR for current_module in glob.glob(MODULES_DIR + '/*/'): cont = False print '| found module: ' + current_module # Check ...
442be850a27cb8fc6a324af407ed82d739960406 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6933/442be850a27cb8fc6a324af407ed82d739960406/process_modules.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 2978, 67, 1376, 12, 12194, 55, 67, 4537, 16, 5673, 67, 6400, 4672, 225, 468, 9190, 876, 2190, 1605, 67, 1376, 273, 2618, 1931, 67, 6400, 273, 444, 1435, 12165, 273, 444, 1435,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 2978, 67, 1376, 12, 12194, 55, 67, 4537, 16, 5673, 67, 6400, 4672, 225, 468, 9190, 876, 2190, 1605, 67, 1376, 273, 2618, 1931, 67, 6400, 273, 444, 1435, 12165, 273, 444, 1435,...
global data
def setTimelineRows(list, sortedkeys): global data # clear all rows and set them to undefined remaining = len(list) rowdata = dict() row = 0 for item in list: list[item]['row'] = -1 # try to pack each row with as many ranges as possible while(remaining > 0): if(row not in rowdata): rowdata[row] = [] for item in sorte...
0c52bda8f6c5785b5982bc3636b627b4ccd59c3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5327/0c52bda8f6c5785b5982bc3636b627b4ccd59c3f/analyze_suspend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 31914, 4300, 12, 1098, 16, 3115, 2452, 4672, 225, 468, 2424, 777, 2595, 471, 444, 2182, 358, 3109, 4463, 273, 562, 12, 1098, 13, 1027, 892, 273, 2065, 1435, 1027, 273, 374, 364, 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, 444, 31914, 4300, 12, 1098, 16, 3115, 2452, 4672, 225, 468, 2424, 777, 2595, 471, 444, 2182, 358, 3109, 4463, 273, 562, 12, 1098, 13, 1027, 892, 273, 2065, 1435, 1027, 273, 374, 364, 7...
"""Check whether `path` is a well-formed path from the portal root, and make it Zope-root-relative. If `is_alias` (as opposed to "is_target"), also make sure the user has the requisite ModifyAliases permissions to make an alias from that path. Return a 2-tuple: (absolute redirection path, an error message iff something...
"""Check whether `path` is a well-formed path from the portal root, and make it Zope-root-relative. If `is_alias` (as opposed to "is_target"), also make sure the user has the requisite ModifyAliases permissions to make an alias from that path. Return a 2-tuple: (absolute redirection path, an error message iff something...
def absolutize_path(path, context=None, is_alias=True): """Check whether `path` is a well-formed path from the portal root, and make it Zope-root-relative. If `is_alias` (as opposed to "is_target"), also make sure the user has the requisite ModifyAliases permissions to make an alias from that path. Return a 2-tuple: (a...
02e784558d8cc177e902bd559dc56615b107b9d8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7855/02e784558d8cc177e902bd559dc56615b107b9d8/redirects.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2417, 355, 322, 554, 67, 803, 12, 803, 16, 819, 33, 7036, 16, 353, 67, 4930, 33, 5510, 4672, 3536, 1564, 2856, 1375, 803, 68, 353, 279, 5492, 17, 7312, 589, 628, 326, 11899, 1365, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2417, 355, 322, 554, 67, 803, 12, 803, 16, 819, 33, 7036, 16, 353, 67, 4930, 33, 5510, 4672, 3536, 1564, 2856, 1375, 803, 68, 353, 279, 5492, 17, 7312, 589, 628, 326, 11899, 1365, 16...
if sys.platform == "win32":
if is_win32:
def get_scons_prefix(libdir): """ Return the right prefix for SCons library installation. Find this by starting with the library installation directory (.../site-packages, most likely) and crawling back up until we reach a directory name beginning with "python" (or "Python"). """ drive, head = os.path.splitdrive(libdi...
c49861b430bd280a6abec78f30b02e2c02709bac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7126/c49861b430bd280a6abec78f30b02e2c02709bac/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 87, 8559, 67, 3239, 12, 2941, 1214, 4672, 3536, 2000, 326, 2145, 1633, 364, 20487, 5313, 13193, 18, 225, 4163, 333, 635, 5023, 598, 326, 5313, 13193, 1867, 261, 2777, 19, 4256, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 87, 8559, 67, 3239, 12, 2941, 1214, 4672, 3536, 2000, 326, 2145, 1633, 364, 20487, 5313, 13193, 18, 225, 4163, 333, 635, 5023, 598, 326, 5313, 13193, 1867, 261, 2777, 19, 4256, ...
for e in self.getEntitlements(): s.append(str(e)) s.append('')
def __str__(self): s = [] s.append(Certificate.__str__(self)) s.append(str(self.getProduct())) s.append('') for e in self.getEntitlements(): s.append(str(e)) s.append('') return '\n'.join(s)
1ffa552476e59b9f60abe9218d49e675cd138c31 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11137/1ffa552476e59b9f60abe9218d49e675cd138c31/certificate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 272, 273, 5378, 272, 18, 6923, 12, 4719, 16186, 701, 972, 12, 2890, 3719, 272, 18, 6923, 12, 701, 12, 2890, 18, 588, 4133, 1435, 3719, 272, 18, 6923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 701, 972, 12, 2890, 4672, 272, 273, 5378, 272, 18, 6923, 12, 4719, 16186, 701, 972, 12, 2890, 3719, 272, 18, 6923, 12, 701, 12, 2890, 18, 588, 4133, 1435, 3719, 272, 18, 6923, ...
patch = self.get_patch(name)
def push_empty_patch(self, name): """Pushes an empty patch on the stack """ unapplied = self.get_unapplied() assert(name in unapplied)
6889c93cb0d60acea1af4b490559cc88b4128de5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12366/6889c93cb0d60acea1af4b490559cc88b4128de5/stack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1817, 67, 5531, 67, 2272, 12, 2890, 16, 508, 4672, 3536, 7621, 281, 392, 1008, 4729, 603, 326, 2110, 3536, 640, 438, 3110, 273, 365, 18, 588, 67, 318, 438, 3110, 1435, 1815, 12, 529, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1817, 67, 5531, 67, 2272, 12, 2890, 16, 508, 4672, 3536, 7621, 281, 392, 1008, 4729, 603, 326, 2110, 3536, 640, 438, 3110, 273, 365, 18, 588, 67, 318, 438, 3110, 1435, 1815, 12, 529, ...
return (500, binding.get_fault(reply))
r, p = binding.get_fault(reply) self.last_received = r return (500, p)
def __fault(self, method, reply): """ simulate the (fault) reply """ binding = self.wsdl.method(method.name).binding.output binding.faults = self.arg.faults if self.arg.faults: return (500, binding.get_fault(reply)) else: return (500, None)
828fca292416663b936b5a63fe3b8bc51e6b6604 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1242/828fca292416663b936b5a63fe3b8bc51e6b6604/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 643, 12, 2890, 16, 707, 16, 4332, 4672, 3536, 20089, 326, 261, 643, 13, 4332, 3536, 5085, 273, 365, 18, 4749, 5761, 18, 2039, 12, 2039, 18, 529, 2934, 7374, 18, 2844, 5085, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 643, 12, 2890, 16, 707, 16, 4332, 4672, 3536, 20089, 326, 261, 643, 13, 4332, 3536, 5085, 273, 365, 18, 4749, 5761, 18, 2039, 12, 2039, 18, 529, 2934, 7374, 18, 2844, 5085, 18, ...
logger.debug('Updated %s' % ZODB.utils.oid_repr(oid))
logger.debug('Updated OID %s' % ZODB.utils.oid_repr(oid))
def __call__(self): try: count = 0 t = self.__new_transaction()
130f4d0f68edc5903dbf7c3788311d832e68649b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7027/130f4d0f68edc5903dbf7c3788311d832e68649b/update.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 775, 30, 1056, 273, 374, 268, 273, 365, 16186, 2704, 67, 7958, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 775, 30, 1056, 273, 374, 268, 273, 365, 16186, 2704, 67, 7958, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.params['URI'] = self.request.serverVariables['SCRIPT_NAME'] + '/' + self.item.id
def setParams(self): self.response.setHeader('cache-control', 'no-cache') sLang = self.request.getLang()
9a2f8b99a4794ca66a515bfe9ca832718bd20756 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2504/9a2f8b99a4794ca66a515bfe9ca832718bd20756/ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31705, 12, 2890, 4672, 365, 18, 2740, 18, 542, 1864, 2668, 2493, 17, 7098, 2187, 296, 2135, 17, 2493, 6134, 272, 7275, 273, 365, 18, 2293, 18, 588, 7275, 1435, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31705, 12, 2890, 4672, 365, 18, 2740, 18, 542, 1864, 2668, 2493, 17, 7098, 2187, 296, 2135, 17, 2493, 6134, 272, 7275, 273, 365, 18, 2293, 18, 588, 7275, 1435, 2, -100, -100, -100, -10...
common.inprint(" : ShGeneric<" + self.sizevar(size) + ", T>" + "(node)")
common.inprint(" : ShGeneric<" + self.sizevar(size) + ", T>" + "(node, swizzle, neg)")
def constructors(self, size = 0): common.inprint(self.tpl(size)) common.inprint(self.tplcls(size) + "::" + self.name + "()") common.inprint(" : ShGeneric<" + self.sizevar(size) + ", T>" + "(new ShVariableNode(Binding, " + self.sizevar(size) + "))") common.inprint("{") common.inprint("}") common.inprint("")
facca941ae19f8cbcd9c8ad3d939cf84df54688e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1804/facca941ae19f8cbcd9c8ad3d939cf84df54688e/ShAttribImpl.hpp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19874, 12, 2890, 16, 963, 273, 374, 4672, 2975, 18, 267, 1188, 12, 2890, 18, 10933, 12, 1467, 3719, 2975, 18, 267, 1188, 12, 2890, 18, 10933, 6429, 12, 1467, 13, 397, 31120, 397, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19874, 12, 2890, 16, 963, 273, 374, 4672, 2975, 18, 267, 1188, 12, 2890, 18, 10933, 12, 1467, 3719, 2975, 18, 267, 1188, 12, 2890, 18, 10933, 6429, 12, 1467, 13, 397, 31120, 397, 365, ...
declaration_full = request.user.get_profile().declaration.split(',')
def dionysos(request): msg = '' summary = '' declaration_lessons = [] declaration_full = request.user.get_profile().declaration.split(',') if request.user.get_profile().declaration: declaration_full = request.user.get_profile().declaration.split(',') i = 3 summary = declaration_full[:i] while i <= len(declaration_full)...
ee053cd421c495b2648409b0ee20595374687f2c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11011/ee053cd421c495b2648409b0ee20595374687f2c/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 285, 1900, 538, 12, 2293, 4672, 1234, 273, 875, 4916, 273, 875, 8266, 67, 2656, 7008, 273, 5378, 309, 590, 18, 1355, 18, 588, 67, 5040, 7675, 22448, 30, 277, 273, 890, 4916, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 285, 1900, 538, 12, 2293, 4672, 1234, 273, 875, 4916, 273, 875, 8266, 67, 2656, 7008, 273, 5378, 309, 590, 18, 1355, 18, 588, 67, 5040, 7675, 22448, 30, 277, 273, 890, 4916, 273, ...
elif key!='':
else:
def read_incar(self): file=open('INCAR', 'r') file.readline() lines=file.readlines() for line in lines: key = line.split()[0].lower() try: if key in ['ispin', 'magmom']: continue self.incar_parameters[key] if key=='dipol': dipol=[] for n in range(3): dipol.append(float(line.split()[n+2])) self.incar_parameters[key] = d...
97d706628770711f8658eab9f9b3caf20946f3a2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5572/97d706628770711f8658eab9f9b3caf20946f3a2/vasp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 9523, 297, 12, 2890, 4672, 585, 33, 3190, 2668, 23213, 985, 2187, 296, 86, 6134, 585, 18, 896, 1369, 1435, 2362, 33, 768, 18, 896, 3548, 1435, 364, 980, 316, 2362, 30, 498, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9523, 297, 12, 2890, 4672, 585, 33, 3190, 2668, 23213, 985, 2187, 296, 86, 6134, 585, 18, 896, 1369, 1435, 2362, 33, 768, 18, 896, 3548, 1435, 364, 980, 316, 2362, 30, 498, ...
'''
"""
def animateToCsys(self, csys, animate = True): '''Animate to the destination view defined by csys. If animate is False *or* the user pref "Animate between views" is not selected, then do not animate; just snap to the destination view. ''' # Determine whether to snap (don't animate) to the destination view. if not ani...
9dc95351096c9deab5f64e3e704bde7a93f95b49 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/9dc95351096c9deab5f64e3e704bde7a93f95b49/GLPane.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14671, 774, 39, 9499, 12, 2890, 16, 2873, 1900, 16, 14671, 273, 1053, 4672, 9163, 979, 4988, 358, 326, 2929, 1476, 2553, 635, 2873, 1900, 18, 971, 14671, 353, 1083, 380, 280, 14, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14671, 774, 39, 9499, 12, 2890, 16, 2873, 1900, 16, 14671, 273, 1053, 4672, 9163, 979, 4988, 358, 326, 2929, 1476, 2553, 635, 2873, 1900, 18, 971, 14671, 353, 1083, 380, 280, 14, 326, ...
fontpkg='\\usepackage{fontspec,xunicode,xltxtra}\setmainfont[BoldFont={LMRoman10 Bold}]{CMU Concrete}',
fontpkg=r''' \usepackage{euler} \usepackage{fontspec,xunicode,xltxtra} \setmainfont[BoldFont={LMRoman10 Bold}]{CMU Concrete} ''',
def setup(app): from sphinx.highlighting import lexers from pygments.lexers.compiled import CppLexer lexers['cpp'] = CppLexer(tabsize=3) lexers['c++'] = CppLexer(tabsize=3) from pygments.lexers.agile import PythonLexer lexers['python'] = PythonLexer(tabsize=3) app.connect('source-read',fixSrc) app.connect('autodoc-sk...
47584e71d020be3bff5a324bb7352815191ee9eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2081/47584e71d020be3bff5a324bb7352815191ee9eb/conf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 2910, 4672, 628, 26296, 18, 15978, 310, 1930, 5275, 414, 628, 2395, 75, 1346, 18, 4149, 414, 18, 19397, 1930, 385, 11858, 13356, 5275, 414, 3292, 4057, 84, 3546, 273, 385, 1185...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2910, 4672, 628, 26296, 18, 15978, 310, 1930, 5275, 414, 628, 2395, 75, 1346, 18, 4149, 414, 18, 19397, 1930, 385, 11858, 13356, 5275, 414, 3292, 4057, 84, 3546, 273, 385, 1185...
progress = 0.0
def parse(self, line, timestamp=None): self.lineNumber += 1 tokens = line.split() iso = 0 try: # Do a small stupid sanity check if this is a correct usbmon log line try: if len(tokens) < 4: return if not(int(tokens[0],16) and int(tokens[1]) and (tokens[2] in ('S', 'C', 'E'))): return except: print "Error on line %d:" %...
d666aa72097a5c24723562a1b27857774756e661 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6119/d666aa72097a5c24723562a1b27857774756e661/Log.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 980, 16, 2858, 33, 7036, 4672, 365, 18, 1369, 1854, 1011, 404, 2430, 273, 980, 18, 4939, 1435, 8702, 273, 374, 775, 30, 468, 2256, 279, 5264, 384, 416, 350, 16267, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 16, 980, 16, 2858, 33, 7036, 4672, 365, 18, 1369, 1854, 1011, 404, 2430, 273, 980, 18, 4939, 1435, 8702, 273, 374, 775, 30, 468, 2256, 279, 5264, 384, 416, 350, 16267, ...
if not StraceRunner.has_strace():
self.strace_version = StraceRunner.get_strace_version() if self.strace_version == 0:
def __init__(self, builder): if not StraceRunner.has_strace(): raise RunnerUnsupportedException('strace is not available') self._builder = builder self.temp_count = 0
1d735a32a20b769bb254cbbea726636f0643db07 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7381/1d735a32a20b769bb254cbbea726636f0643db07/fabricate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2089, 4672, 365, 18, 701, 623, 67, 1589, 273, 3978, 623, 9709, 18, 588, 67, 701, 623, 67, 1589, 1435, 309, 365, 18, 701, 623, 67, 1589, 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, 1001, 2738, 972, 12, 2890, 16, 2089, 4672, 365, 18, 701, 623, 67, 1589, 273, 3978, 623, 9709, 18, 588, 67, 701, 623, 67, 1589, 1435, 309, 365, 18, 701, 623, 67, 1589, 422, 374, 30, ...
self.context.info("all symbols resolved")
self.context.log("all symbols resolved")
def resolve(self, maxPasses=10): self.context.info("resolving symbols...") nPrevUndefs = nUndefs = len(self.undefs) for i in range(maxPasses): self.context.warn("pass %d: %d undefined symbols" % (i, nUndefs)) if nUndefs == 0: self.context.info("all symbols resolved") break for symbol in self.undefs: self.context.assemb...
abf573833490e274587f205fae7e0c3ff0b457f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/abf573833490e274587f205fae7e0c3ff0b457f9/symbol_table.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 12, 2890, 16, 943, 6433, 281, 33, 2163, 4672, 365, 18, 2472, 18, 1376, 2932, 7818, 6282, 7963, 7070, 13, 290, 9958, 984, 12537, 273, 290, 984, 12537, 273, 562, 12, 2890, 18, 318,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 12, 2890, 16, 943, 6433, 281, 33, 2163, 4672, 365, 18, 2472, 18, 1376, 2932, 7818, 6282, 7963, 7070, 13, 290, 9958, 984, 12537, 273, 290, 984, 12537, 273, 562, 12, 2890, 18, 318,...
"Sets the value of a SAX2 property."
def setProperty(self, name, value): "Sets the value of a SAX2 property." raise SAXNotRecognizedException("Property '%s' not recognized" % name)
0a3b4342d197874aa0d7e20bc27c568b6acaf892 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0a3b4342d197874aa0d7e20bc27c568b6acaf892/expatreader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7486, 12, 2890, 16, 508, 16, 460, 4672, 1002, 10168, 1248, 5650, 9367, 503, 2932, 1396, 1995, 87, 11, 486, 16332, 6, 738, 508, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7486, 12, 2890, 16, 508, 16, 460, 4672, 1002, 10168, 1248, 5650, 9367, 503, 2932, 1396, 1995, 87, 11, 486, 16332, 6, 738, 508, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
"""collect lines in a list
"""collect lines in a list
def collect_blocks(lines): """collect lines in a list yield list for each paragraph, i.e. block of lines separated by a blank line (whitespace only). Trailing blank lines are collected as well. """ blank_line_reached = False block = [] for line in lines: if blank_line_reached and line.rstrip(): yield block blank_line...
6298e01579e8917b7d42c1bc1af5b0a3dda46ba8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2348/6298e01579e8917b7d42c1bc1af5b0a3dda46ba8/pylit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3274, 67, 7996, 12, 3548, 4672, 3536, 14676, 2362, 316, 279, 666, 225, 2824, 666, 364, 1517, 10190, 16, 277, 18, 73, 18, 1203, 434, 2362, 8936, 635, 279, 7052, 980, 261, 18777, 1338, 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, 3274, 67, 7996, 12, 3548, 4672, 3536, 14676, 2362, 316, 279, 666, 225, 2824, 666, 364, 1517, 10190, 16, 277, 18, 73, 18, 1203, 434, 2362, 8936, 635, 279, 7052, 980, 261, 18777, 1338, 2...
for image in rimage: limage.append(pygame.transform.flip(image, True, False))
for i in range(len(rimage)): rimage[i] = pygame.transform.rotozoom(rimage[i], 0, h/80.) limage.append(pygame.transform.flip(rimage[i], True, False))
def __repr__(self): return "Kind(%d, %d, %d, \"%s\")" % (self.speed, self.w, self.h, self.spritename)
5b9ddd12b150a89dbd19b3428421afe1000b7dec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14575/5b9ddd12b150a89dbd19b3428421afe1000b7dec/yva.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 315, 5677, 9275, 72, 16, 738, 72, 16, 738, 72, 16, 22049, 87, 2412, 2225, 738, 261, 2890, 18, 13871, 16, 365, 18, 91, 16, 365, 18, 76, 16, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 315, 5677, 9275, 72, 16, 738, 72, 16, 738, 72, 16, 22049, 87, 2412, 2225, 738, 261, 2890, 18, 13871, 16, 365, 18, 91, 16, 365, 18, 76, 16, 36...
pattern = '%s/' % self.path
pattern = self.path if not pattern.endswith('/'): pattern += '/'
def delete(self, prev): """ Delete for this repository. Pattern matching used to be sure that only keys stored for this repository are deleted. A cloned repo may have it's parent's keys in the keylist. @param prev: The current list of (relateive paths) keys. @type prev: [str,..] @return: A list of deleted (relateive p...
5730afe595b5f16093dd14c5783989e0c6d02a0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/5730afe595b5f16093dd14c5783989e0c6d02a0c/repo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 12, 2890, 16, 2807, 4672, 3536, 2504, 364, 333, 3352, 18, 225, 6830, 3607, 1399, 358, 506, 3071, 716, 1338, 1311, 4041, 364, 333, 3352, 854, 4282, 18, 432, 13027, 3538, 2026, 1240,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 12, 2890, 16, 2807, 4672, 3536, 2504, 364, 333, 3352, 18, 225, 6830, 3607, 1399, 358, 506, 3071, 716, 1338, 1311, 4041, 364, 333, 3352, 854, 4282, 18, 432, 13027, 3538, 2026, 1240,...
_lkup = {'0':'000', '1':'001', '2':'010', '3':'011', '4':'100', '5':'101', '6':'110', '7':'111', 'L':''}
_lkup = { '0':'0000', '1':'0001', '2':'0010', '3':'0011', '4':'0100', '5':'0101', '6':'0110', '7':'0111', '8':'1000', '9':'1001', 'a':'1010', 'b':'1011', 'c':'1100', 'd':'1101', 'e':'1110', 'f':'1111', 'L':''}
def isscalar(num): """Returns True if the type of num is a scalar type. """ if isinstance(num, generic): return True else: return type(num) in ScalarType
d33a8f627aee89c08c54e2f8cd37ecb888e5aca1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/d33a8f627aee89c08c54e2f8cd37ecb888e5aca1/numeric.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3385, 3473, 12, 2107, 4672, 3536, 1356, 1053, 309, 326, 618, 434, 818, 353, 279, 4981, 618, 18, 3536, 309, 1549, 12, 2107, 16, 5210, 4672, 327, 1053, 469, 30, 327, 618, 12, 2107, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3385, 3473, 12, 2107, 4672, 3536, 1356, 1053, 309, 326, 618, 434, 818, 353, 279, 4981, 618, 18, 3536, 309, 1549, 12, 2107, 16, 5210, 4672, 327, 1053, 469, 30, 327, 618, 12, 2107, 13, ...
stderr=subprocess.STDOUT)
stderr=subprocess.PIPE)
def StartTestShell(binary, args): """Returns the process for a new test_shell started in layout-tests mode.""" cmd = [binary, '--layout-tests'] + args return subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
75012a94cc2e8e4d6beab75d0fa6f096bb3efd69 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5060/75012a94cc2e8e4d6beab75d0fa6f096bb3efd69/test_shell_thread.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3603, 4709, 13220, 12, 8578, 16, 833, 4672, 3536, 1356, 326, 1207, 364, 279, 394, 1842, 67, 10304, 5746, 316, 3511, 17, 16341, 1965, 12123, 1797, 273, 306, 8578, 16, 3534, 6741, 17, 1634...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3603, 4709, 13220, 12, 8578, 16, 833, 4672, 3536, 1356, 326, 1207, 364, 279, 394, 1842, 67, 10304, 5746, 316, 3511, 17, 16341, 1965, 12123, 1797, 273, 306, 8578, 16, 3534, 6741, 17, 1634...
raise AssertionError("Arrays are not almost equal up to %d ULP" % \
raise AssertionError("Arrays are not almost equal up to %g ULP" % \
def assert_array_max_ulp(a, b, maxulp=1, dtype=None): """Given two arrays a and b, check that every item differs in at most N Unit in the Last Place.""" import numpy as np ret = nulp_diff(a, b, dtype) if not np.all(ret <= maxulp): raise AssertionError("Arrays are not almost equal up to %d ULP" % \ maxulp) return ret
d6997779c47c3ea56df71cdabfea9f425b2ed3a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/d6997779c47c3ea56df71cdabfea9f425b2ed3a7/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 67, 1126, 67, 1896, 67, 14290, 12, 69, 16, 324, 16, 943, 14290, 33, 21, 16, 3182, 33, 7036, 4672, 3536, 6083, 2795, 5352, 279, 471, 324, 16, 866, 716, 3614, 761, 21944, 316, 62...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 67, 1126, 67, 1896, 67, 14290, 12, 69, 16, 324, 16, 943, 14290, 33, 21, 16, 3182, 33, 7036, 4672, 3536, 6083, 2795, 5352, 279, 471, 324, 16, 866, 716, 3614, 761, 21944, 316, 62...
return HttpResponseRedirect('/hostbase/%s/dnsedit' % host_id)
return HttpResponseRedirect('/hostbase/%s/dns/edit' % host_id)
def confirm(request, item, item_id, host_id=None, name_id=None, zone_id=None): """Asks if the user is sure he/she wants to remove an item""" if request.GET.has_key('sub'): if item == 'interface': for ip in Interface.objects.get(id=item_id).ip_set.all(): for name in ip.name_set.all(): name.cname_set.all().delete() ip.na...
faff7dffe7b5fd488598033dd9ae5042f0e3ebf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/faff7dffe7b5fd488598033dd9ae5042f0e3ebf4/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6932, 12, 2293, 16, 761, 16, 761, 67, 350, 16, 1479, 67, 350, 33, 7036, 16, 508, 67, 350, 33, 7036, 16, 4157, 67, 350, 33, 7036, 4672, 3536, 1463, 7904, 309, 326, 729, 353, 3071, 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, 6932, 12, 2293, 16, 761, 16, 761, 67, 350, 16, 1479, 67, 350, 33, 7036, 16, 508, 67, 350, 33, 7036, 16, 4157, 67, 350, 33, 7036, 4672, 3536, 1463, 7904, 309, 326, 729, 353, 3071, 3...
dist[u][v] = adj[u][v]
if by_weight is False: dist[u][v] = 1 elif adj[u][v] is None: dist[u][v] = default_weight else: dist[u][v] = adj[u][v]
def shortest_path_all_pairs(self): """ Uses the Floyd-Warshall algorithm to find a shortest path for each pair of vertices.
0a61930cdca65dc0518933978712c0239587772a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/0a61930cdca65dc0518933978712c0239587772a/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20579, 67, 803, 67, 454, 67, 11545, 12, 2890, 4672, 3536, 14854, 326, 478, 2466, 72, 17, 59, 1178, 4886, 358, 1104, 279, 20579, 589, 364, 1517, 3082, 434, 6928, 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, 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, 20579, 67, 803, 67, 454, 67, 11545, 12, 2890, 4672, 3536, 14854, 326, 478, 2466, 72, 17, 59, 1178, 4886, 358, 1104, 279, 20579, 589, 364, 1517, 3082, 434, 6928, 18, 2, -100, -100, -100...