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
os.system("cd " + prefix + "/seattle_repy/ && chmod +x ./uninstall.sh && ./uninstall.sh");
os.system("cd " + prefix + "/seattle/ && chmod +x ./uninstall.sh && ./uninstall.sh");
def uninstall_remove(): """ <Purpose> Uninstalls a Seattle installation and removes the Seattle directory <Arguments> None. <Exceptions> None. <Side Effects> Uninstalls Seattle and removes its directory <Returns> None. """ # uninstall integrationtestlib.log("uninstalling") os.system("cd " + prefix + "/seattle_repy/...
80377a2a300302b324d15370a38fff27c5c22d28 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/80377a2a300302b324d15370a38fff27c5c22d28/downloadandinstallseattle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16577, 67, 4479, 13332, 3536, 411, 10262, 4150, 34, 1351, 5425, 87, 279, 3265, 4558, 298, 13193, 471, 7157, 326, 3265, 4558, 298, 1867, 225, 411, 4628, 34, 599, 18, 225, 411, 11416, 34, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16577, 67, 4479, 13332, 3536, 411, 10262, 4150, 34, 1351, 5425, 87, 279, 3265, 4558, 298, 13193, 471, 7157, 326, 3265, 4558, 298, 1867, 225, 411, 4628, 34, 599, 18, 225, 411, 11416, 34, ...
if selectYesNo("Would you like to create it")
if selectYesNo("Would you like to create it"):
def selectVariable(d): '''Generate an interactive prompt to enter a workspace variable *var* value and returns True if the variable value as been set.''' found = False if not d.value: found = True print '\n' + d.name + ': ' + d.descr # compute the default leaf directory from the variable name leafDir = d.name for last...
59f958210cae0d71b1d36aed9d96d0bffa85987b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1360/59f958210cae0d71b1d36aed9d96d0bffa85987b/dws.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 3092, 12, 72, 4672, 9163, 4625, 392, 12625, 6866, 358, 6103, 279, 6003, 2190, 380, 1401, 14, 460, 471, 1135, 1053, 309, 326, 2190, 460, 487, 2118, 444, 1093, 6309, 1392, 273, 1083,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 3092, 12, 72, 4672, 9163, 4625, 392, 12625, 6866, 358, 6103, 279, 6003, 2190, 380, 1401, 14, 460, 471, 1135, 1053, 309, 326, 2190, 460, 487, 2118, 444, 1093, 6309, 1392, 273, 1083,...
def __init__(self, format, maxprint=MAXPRINT, allocsize=ALLOCSIZE): self.format = format
def __init__(self, maxprint=MAXPRINT, allocsize=ALLOCSIZE): self.format = self.__class__.__name__[:3] if self.format == 'spm': raise ValueError, "This class is not intended" \ " to be instantiated directly."
def __init__(self, format, maxprint=MAXPRINT, allocsize=ALLOCSIZE): self.format = format self.maxprint = maxprint self.allocsize = allocsize
2df51902e42db8054709637688b60399fcc84eff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/2df51902e42db8054709637688b60399fcc84eff/Sparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 943, 1188, 33, 6694, 19350, 16, 4767, 1467, 33, 1013, 29450, 4574, 4672, 365, 18, 2139, 273, 365, 16186, 1106, 972, 16186, 529, 972, 10531, 23, 65, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 943, 1188, 33, 6694, 19350, 16, 4767, 1467, 33, 1013, 29450, 4574, 4672, 365, 18, 2139, 273, 365, 16186, 1106, 972, 16186, 529, 972, 10531, 23, 65, 309, ...
return False
return True
def check(self, cr, uid, model_name, mode='read',raise_exception=True): assert mode in ['read','write','create','unlink'], 'Invalid access mode for security' if uid == 1: return True # TODO: check security: don't allow xml-rpc request with uid == 1
f3a2f05dde8190c0c98b0616ca78f51c1d57ac82 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/f3a2f05dde8190c0c98b0616ca78f51c1d57ac82/ir_model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 4422, 16, 4555, 16, 938, 67, 529, 16, 1965, 2218, 896, 2187, 11628, 67, 4064, 33, 5510, 4672, 1815, 1965, 316, 10228, 896, 17023, 2626, 17023, 2640, 17023, 318, 1232, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 4422, 16, 4555, 16, 938, 67, 529, 16, 1965, 2218, 896, 2187, 11628, 67, 4064, 33, 5510, 4672, 1815, 1965, 316, 10228, 896, 17023, 2626, 17023, 2640, 17023, 318, 1232, ...
grp.addPackage(name, versionList)
for v in versionList: grp.addPackageVersion(name, v)
def cookGroupObject(repos, cfg, recipeClass, newVersion, buildBranch, macros=()): """ Turns a group recipe object into a change set. Returns the absolute changeset created, a list of the names of the packages built, and and None (for compatibility with cookPackageObject). @param repos: Repository to both look for sour...
482f0ffce0f516241f8abef9702aa41ae291992a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/482f0ffce0f516241f8abef9702aa41ae291992a/cook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15860, 1114, 921, 12, 15564, 16, 2776, 16, 16100, 797, 16, 28906, 16, 1361, 7108, 16, 24302, 33, 1435, 4672, 3536, 22425, 87, 279, 1041, 16100, 733, 1368, 279, 2549, 444, 18, 2860, 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, 15860, 1114, 921, 12, 15564, 16, 2776, 16, 16100, 797, 16, 28906, 16, 1361, 7108, 16, 24302, 33, 1435, 4672, 3536, 22425, 87, 279, 1041, 16100, 733, 1368, 279, 2549, 444, 18, 2860, 326, ...
name = 'build/debug/node'
name = 'build/debug/node_g'
def GetVm(self, mode): if mode == 'debug': name = 'build/debug/node' else: name = 'build/default/node' if utils.IsWindows() and not name.endswith('.exe'): name = name + '.exe' return name
18a192360440828aa5ae097dd9f176c5536a621d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5700/18a192360440828aa5ae097dd9f176c5536a621d/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 22143, 12, 2890, 16, 1965, 4672, 309, 1965, 422, 296, 4148, 4278, 508, 273, 296, 3510, 19, 4148, 19, 2159, 67, 75, 11, 469, 30, 508, 273, 296, 3510, 19, 1886, 19, 2159, 11, 309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 22143, 12, 2890, 16, 1965, 4672, 309, 1965, 422, 296, 4148, 4278, 508, 273, 296, 3510, 19, 4148, 19, 2159, 67, 75, 11, 469, 30, 508, 273, 296, 3510, 19, 1886, 19, 2159, 11, 309,...
if line.find("design capacity") == 0:
if line.find("design capacity:") == 0:
def initialize(self): """Read /proc/acpi/battery/*/info and extract needed infos""" for i in self.batteries: info_file = open(self.proc_battery_dir + "/" + i + "/info") line = info_file.readline() while len(line) != 0: if line.find("design capacity") == 0: cap = line.split(":")[1].strip() self.design_capacity[i] = in...
847fee00bcb3c153ce9356eb7f02d928909c362d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2969/847fee00bcb3c153ce9356eb7f02d928909c362d/acpi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 4672, 3536, 1994, 342, 9381, 19, 1077, 7259, 19, 70, 23277, 19, 5549, 1376, 471, 2608, 3577, 10626, 8395, 225, 364, 277, 316, 365, 18, 70, 9293, 606, 30, 1123, 67, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 4672, 3536, 1994, 342, 9381, 19, 1077, 7259, 19, 70, 23277, 19, 5549, 1376, 471, 2608, 3577, 10626, 8395, 225, 364, 277, 316, 365, 18, 70, 9293, 606, 30, 1123, 67, 768,...
self.get_current().search (editor = self)
line_iter = self.get_current().search (editor = self) self.focus_line()
def edit_find_next(self, action = None): self.get_current().search (editor = self)
d2dd9489d77fa2db4561af24418319d5b1ea2580 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/d2dd9489d77fa2db4561af24418319d5b1ea2580/edit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 67, 4720, 67, 4285, 12, 2890, 16, 1301, 273, 599, 4672, 980, 67, 2165, 273, 365, 18, 588, 67, 2972, 7675, 3072, 261, 9177, 273, 365, 13, 365, 18, 13923, 67, 1369, 1435, 225, 2,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 67, 4720, 67, 4285, 12, 2890, 16, 1301, 273, 599, 4672, 980, 67, 2165, 273, 365, 18, 588, 67, 2972, 7675, 3072, 261, 9177, 273, 365, 13, 365, 18, 13923, 67, 1369, 1435, 225, 2,...
_("List doesn't accept digest members."), user, pluser)
_("List doesn't accept digest members."), user, pluser)
def getval(key, default, form=form): if form.has_key(key): try: return int(form[key].value) except ValueError: return default return default
271131e22a67ced7cee6dcb6fb6840ce57b4190b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/271131e22a67ced7cee6dcb6fb6840ce57b4190b/handle_opts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1125, 12, 856, 16, 805, 16, 646, 33, 687, 4672, 309, 646, 18, 5332, 67, 856, 12, 856, 4672, 775, 30, 327, 509, 12, 687, 63, 856, 8009, 1132, 13, 1335, 2068, 30, 327, 805, 327,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 1125, 12, 856, 16, 805, 16, 646, 33, 687, 4672, 309, 646, 18, 5332, 67, 856, 12, 856, 4672, 775, 30, 327, 509, 12, 687, 63, 856, 8009, 1132, 13, 1335, 2068, 30, 327, 805, 327,...
font-family: "Courier New",courier, monospace;
font-family: courier, monospace;
def css(color='default'): r""" Return the CSS header used by the SAGE Notebook. INPUT: color -- string or pair of html colors, e.g., 'gmail' 'grey' \code{('#ff0000', '#0000ff')} EXAMPLES: sage: import sage.server.notebook.css as c sage: type(c.css()) <type 'str'> """ s = r"""
a808f69eab0ba4b4ffd8ff6c59c040174ee156d6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a808f69eab0ba4b4ffd8ff6c59c040174ee156d6/css.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3747, 12, 3266, 2218, 1886, 11, 4672, 436, 8395, 2000, 326, 6765, 1446, 1399, 635, 326, 348, 2833, 3609, 3618, 18, 225, 12943, 30, 2036, 1493, 533, 578, 3082, 434, 1729, 5740, 16, 425, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3747, 12, 3266, 2218, 1886, 11, 4672, 436, 8395, 2000, 326, 6765, 1446, 1399, 635, 326, 348, 2833, 3609, 3618, 18, 225, 12943, 30, 2036, 1493, 533, 578, 3082, 434, 1729, 5740, 16, 425, ...
info = oidconsumer.complete(query, return_to=return_to)
info = oidconsumer.complete(query, return_to)
def _handle_oidreturn(self): request = self.request _ = request.getText
e30a8217b508518f243d5c0137a2fd23324ee730 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/e30a8217b508518f243d5c0137a2fd23324ee730/oid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 839, 2463, 12, 2890, 4672, 590, 273, 365, 18, 2293, 389, 273, 590, 18, 588, 1528, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 839, 2463, 12, 2890, 4672, 590, 273, 365, 18, 2293, 389, 273, 590, 18, 588, 1528, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
cursor.execute("SELECT last_visit FROM session " "WHERE sid=%s AND authenticated=%s", (sid, int(authenticated)))
cursor.execute(""" SELECT last_visit FROM session WHERE sid=%s AND authenticated=%s """, (sid, int(authenticated)))
def get_session(self, sid, authenticated=False): self.env.log.debug('Retrieving session for ID %r', sid)
c9cd2abe472fbff336262b87b60cf1276cdfdeca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/c9cd2abe472fbff336262b87b60cf1276cdfdeca/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3184, 12, 2890, 16, 7348, 16, 9370, 33, 8381, 4672, 365, 18, 3074, 18, 1330, 18, 4148, 2668, 3848, 6282, 1339, 364, 1599, 738, 86, 2187, 7348, 13, 2, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3184, 12, 2890, 16, 7348, 16, 9370, 33, 8381, 4672, 365, 18, 3074, 18, 1330, 18, 4148, 2668, 3848, 6282, 1339, 364, 1599, 738, 86, 2187, 7348, 13, 2, -100, -100, -100, -100, ...
os.putenv("PYTHONPATH",path)
if path: os.putenv("PYTHONPATH",path)
def test(): """Run MysteryMachine unit test on the default python""" path=os.getenv("PYTHONPATH") if path == None: path = os.curdir else: path = path+os.pathsep+os.curdir os.putenv("PYTHONPATH",path) for python in PYTHONS: sys.stderr.write( "Testing under %s:\n" % python ) #TODO: should this inner loop go inside test...
d275a4bcb6f0458c70a16103e3bf9c835b71f96d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11984/d275a4bcb6f0458c70a16103e3bf9c835b71f96d/pavement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 13332, 3536, 1997, 490, 1094, 627, 6981, 2836, 1842, 603, 326, 805, 5790, 8395, 589, 33, 538, 18, 588, 3074, 2932, 16235, 20131, 4211, 7923, 309, 589, 422, 599, 30, 589, 273, 1140,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3536, 1997, 490, 1094, 627, 6981, 2836, 1842, 603, 326, 805, 5790, 8395, 589, 33, 538, 18, 588, 3074, 2932, 16235, 20131, 4211, 7923, 309, 589, 422, 599, 30, 589, 273, 1140,...
self._do_save(req, db, milestone)
return self._do_save(req, db, milestone)
def process_request(self, req): req.perm.require('MILESTONE_VIEW') milestone_id = req.args.get('id')
3a35d53808dd38fcf7728e42581af168adb55d2e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/3a35d53808dd38fcf7728e42581af168adb55d2e/roadmap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2293, 12, 2890, 16, 1111, 4672, 1111, 18, 12160, 18, 6528, 2668, 7492, 900, 882, 5998, 67, 12145, 6134, 28664, 67, 350, 273, 1111, 18, 1968, 18, 588, 2668, 350, 6134, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2293, 12, 2890, 16, 1111, 4672, 1111, 18, 12160, 18, 6528, 2668, 7492, 900, 882, 5998, 67, 12145, 6134, 28664, 67, 350, 273, 1111, 18, 1968, 18, 588, 2668, 350, 6134, 2, -100...
self.tb_Taskbutton = gtk.ToolButton() self.tb_Taskbutton.set_label("Start") self.tb_Taskbutton.set_icon_name('hamster-applet') self.tb_Taskbutton.set_tooltip_text("Start a new activity in Hamster Time Tracker based on this task") self.tb_Taskbutton.connect('clicked', self.task_cb, plugin_api) plugin_api.AddTaskToolbarI...
self.taskbutton = gtk.ToolButton() self.taskbutton.set_label("Start") self.taskbutton.set_icon_name('hamster-applet') self.taskbutton.set_tooltip_text("Start a new activity in Hamster Time Tracker based on this task") self.taskbutton.connect('clicked', self.task_cb, plugin_api) plugin_api.add_task_toolbar_item(gtk.Sepa...
def onTaskOpened(self, plugin_api): # add a item (button) to the ToolBar self.tb_Taskbutton = gtk.ToolButton() self.tb_Taskbutton.set_label("Start") self.tb_Taskbutton.set_icon_name('hamster-applet') self.tb_Taskbutton.set_tooltip_text("Start a new activity in Hamster Time Tracker based on this task") self.tb_Taskbutto...
2d4da4adae7a488e78d1a18d125520cc069634ff /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/2d4da4adae7a488e78d1a18d125520cc069634ff/hamster.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 2174, 23115, 12, 2890, 16, 1909, 67, 2425, 4672, 468, 527, 279, 761, 261, 5391, 13, 358, 326, 13288, 5190, 365, 18, 4146, 5391, 273, 22718, 18, 6364, 3616, 1435, 365, 18, 4146, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 2174, 23115, 12, 2890, 16, 1909, 67, 2425, 4672, 468, 527, 279, 761, 261, 5391, 13, 358, 326, 13288, 5190, 365, 18, 4146, 5391, 273, 22718, 18, 6364, 3616, 1435, 365, 18, 4146, 53...
w,h = self.popup.get_size()
w, h = self.popup.get_size() mgeo = gtk.gdk.screen_get_default().get_monitor_geometry(self.monitor)
def on_popup_size_allocate(self, widget, allocation): # Move popup to it's right spot offset = 3 x,y = self.button.window.get_origin() b_alloc = self.button.get_allocation() w,h = self.popup.get_size() if self.globals.orient == "h": if self.globals.settings['popup_align'] == 'left': x = b_alloc.x + x if self.globals.se...
fe9fdc7226ed408633caedb0ca4d1c8b003970cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7075/fe9fdc7226ed408633caedb0ca4d1c8b003970cf/groupbutton.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 16086, 67, 1467, 67, 16247, 12, 2890, 16, 3604, 16, 13481, 4672, 468, 9933, 10431, 358, 518, 1807, 2145, 16463, 1384, 273, 890, 619, 16, 93, 273, 365, 18, 5391, 18, 5668, 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, 603, 67, 16086, 67, 1467, 67, 16247, 12, 2890, 16, 3604, 16, 13481, 4672, 468, 9933, 10431, 358, 518, 1807, 2145, 16463, 1384, 273, 890, 619, 16, 93, 273, 365, 18, 5391, 18, 5668, 18, ...
f.write('z') f.seek(0) f.seek(size) f.write('a') f.flush() if test_support.verbose: print 'check file size with os.fstat' expect(os.fstat(f.fileno())[stat.ST_SIZE], size+1) f.close()
try: f.write('z') f.seek(0) f.seek(size) f.write('a') f.flush() if test_support.verbose: print 'check file size with os.fstat' expect(os.fstat(f.fileno())[stat.ST_SIZE], size+1) finally: f.close()
def expect(got_this, expect_this): if test_support.verbose: print '%r =?= %r ...' % (got_this, expect_this), if got_this != expect_this: if test_support.verbose: print 'no' raise test_support.TestFailed, 'got %r, but expected %r' %\ (got_this, expect_this) else: if test_support.verbose: print 'yes'
063606a0d5302d8a5530297a70494a9cad334e83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/063606a0d5302d8a5530297a70494a9cad334e83/test_largefile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4489, 12, 13212, 67, 2211, 16, 4489, 67, 2211, 4672, 309, 1842, 67, 13261, 18, 11369, 30, 1172, 1995, 86, 273, 35, 33, 738, 86, 25956, 738, 261, 13212, 67, 2211, 16, 4489, 67, 2211, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4489, 12, 13212, 67, 2211, 16, 4489, 67, 2211, 4672, 309, 1842, 67, 13261, 18, 11369, 30, 1172, 1995, 86, 273, 35, 33, 738, 86, 25956, 738, 261, 13212, 67, 2211, 16, 4489, 67, 2211, ...
sage: list(xsrange(0, 1, R('0.4')))
sage: list(xsrange(0, 1, 0.4))
def xsrange(start, end=None, step=1, universe=None, check=True, include_endpoint=False): """ Return an iterator over numbers \code{a, a+step, ..., a+k*step}, where \code{a+k*step < b} and \code{a+(k+1)*step > b}. INPUT: a -- number b -- number step -- number (default: 1) OUTPUT: iterator Unlike range, a and b can be ...
171c4a58ede7c30b3f9b3eceeec64dd0e4d6c0a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/171c4a58ede7c30b3f9b3eceeec64dd0e4d6c0a8/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9280, 3676, 12, 1937, 16, 679, 33, 7036, 16, 2235, 33, 21, 16, 29235, 33, 7036, 16, 866, 33, 5510, 16, 2341, 67, 8003, 33, 8381, 4672, 3536, 2000, 392, 2775, 1879, 5600, 521, 710, 95...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9280, 3676, 12, 1937, 16, 679, 33, 7036, 16, 2235, 33, 21, 16, 29235, 33, 7036, 16, 866, 33, 5510, 16, 2341, 67, 8003, 33, 8381, 4672, 3536, 2000, 392, 2775, 1879, 5600, 521, 710, 95...
self._leakDetector.removeContainerById(id)
self._leakDetector.removeContainerById(objId)
def run(self): try: self._leakDetector._index2containerId2len[self._index] = {} ids = self._leakDetector.getContainerIds() # record the current len of each container for id in ids: yield None try: for result in self._leakDetector.getContainerByIdGen(id): yield None container = result except Exception, e: # this contain...
2144050758ff193ad2f7bd973df523fae0d7fd5c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/2144050758ff193ad2f7bd973df523fae0d7fd5c/ContainerLeakDetector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 775, 30, 365, 6315, 298, 581, 12594, 6315, 1615, 22, 3782, 548, 22, 1897, 63, 2890, 6315, 1615, 65, 273, 2618, 3258, 273, 365, 6315, 298, 581, 12594, 18, 588, 217...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 775, 30, 365, 6315, 298, 581, 12594, 6315, 1615, 22, 3782, 548, 22, 1897, 63, 2890, 6315, 1615, 65, 273, 2618, 3258, 273, 365, 6315, 298, 581, 12594, 18, 588, 217...
dirname = os.path.dirname(name) + "/"
dirname = os.path.dirname(name) if dirname[-1] != "/": dirname += "/"
def search(self, name): l = [ ] dirname = os.path.dirname(name) + "/" basename = os.path.basename(name) if self.path.has_key(dirname) and \ self.path[dirname].has_key(basename): l = self.path[dirname][basename] return l
0ba6c99d8abb3adbe41b9684367e4a80a17ead57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/0ba6c99d8abb3adbe41b9684367e4a80a17ead57/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 12, 2890, 16, 508, 4672, 328, 273, 306, 308, 4283, 273, 1140, 18, 803, 18, 12287, 12, 529, 13, 309, 4283, 18919, 21, 65, 480, 4016, 30, 4283, 1011, 4016, 4882, 273, 1140, 18, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 12, 2890, 16, 508, 4672, 328, 273, 306, 308, 4283, 273, 1140, 18, 803, 18, 12287, 12, 529, 13, 309, 4283, 18919, 21, 65, 480, 4016, 30, 4283, 1011, 4016, 4882, 273, 1140, 18, 8...
self.assertEqual(handler.search([('name', Unicode.decode('house'))]), None) self.assertEqual(handler.search([('date', Date.decode('2005-01-01'))]), []) self.assertEqual(handler.search([('date', Date.decode('2005-10-10'))]), [0, 2])
self.assertEqual( handler.search([('name', Unicode.decode('house'))]), None) self.assertEqual( handler.search([('date', Date.decode('2005-01-01'))]), []) self.assertEqual( handler.search([('date', Date.decode('2005-10-10'))]), [0, 2])
def test_indexes_hit_in_many_rows(self): data = 'house,2005-10-10\nwindow,2005-05-10\ncomputer,2005-10-10' resource = memory.File(data) handler = itools_csv.CSV() handler.columns = ['name', 'date'] handler.schema = {'name': Unicode, 'date': Date(index=True)} handler.load_state(resource) self.assertEqual(handler.search(...
d1c92817f2412181e68be715a2a81901cf1a83ed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/d1c92817f2412181e68be715a2a81901cf1a83ed/test_itools_csv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 11265, 67, 15989, 67, 267, 67, 9353, 67, 3870, 12, 2890, 4672, 501, 273, 296, 13028, 16, 6976, 25, 17, 2163, 17, 2163, 64, 82, 5668, 16, 6976, 25, 17, 6260, 17, 2163, 64, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11265, 67, 15989, 67, 267, 67, 9353, 67, 3870, 12, 2890, 4672, 501, 273, 296, 13028, 16, 6976, 25, 17, 2163, 17, 2163, 64, 82, 5668, 16, 6976, 25, 17, 6260, 17, 2163, 64, ...
elif trainedas == options["Hammie", "header_ham_string"] and \
elif trainedas == options["Headers", "header_ham_string"] and \
def processAndTrain(v, vmoveto, bayes, is_spam, notesindex): if is_spam: str = options["Hammie", "header_spam_string"] else: str = options["Hammie", "header_ham_string"] print "Training %s" % (str) docstomove = [] doc = v.GetFirstDocument() while doc: try: subj = doc.GetItemValue('Subject')[0] except: subj = 'No Sub...
033d042d3a71b33dccd9e3cc9f8858de5ca37589 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/033d042d3a71b33dccd9e3cc9f8858de5ca37589/sb_notesfilter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 1876, 23419, 12, 90, 16, 4268, 1527, 11453, 16, 324, 528, 281, 16, 353, 67, 1752, 301, 16, 10913, 1615, 4672, 225, 309, 353, 67, 1752, 301, 30, 609, 273, 702, 9614, 44, 301, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1876, 23419, 12, 90, 16, 4268, 1527, 11453, 16, 324, 528, 281, 16, 353, 67, 1752, 301, 16, 10913, 1615, 4672, 225, 309, 353, 67, 1752, 301, 30, 609, 273, 702, 9614, 44, 301, 81...
rd_epoch = decide_rd_limit(analysis_data)
rd_epoch = self.decide_rd_limit(analysis_data)
def analyse(self):
02eb45e611185c92217f6d8af2fe68fcf83b22c6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/02eb45e611185c92217f6d8af2fe68fcf83b22c6/CCP4IntraRadiationDamageDetector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31087, 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, 31087, 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, ...
if (obj1_type == SOM_type and obj2_type == SOM_type) or \ (obj1_type == SOM_type and obj2_type != SOM_type) or \ (obj1_type != SOM_type and obj2_type == SOM_type):
if (obj1_type == SOM_type or obj2_type == SOM_type):
def empty_result(obj1,obj2=None): """ This function inspects the arguments and returns an appropriate return type for an operation using the arguments. The object can be filled using result_insert. Parameters: ---------- -> obj1 is a SOM, SO or tuple -> obj2 is a SOM, SO or tuple Returns: ------- <- A tuple containin...
fba80076a7ba8ac4ca810a5529e65ed35d285e94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/fba80076a7ba8ac4ca810a5529e65ed35d285e94/hlr_data_helper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1008, 67, 2088, 12, 2603, 21, 16, 2603, 22, 33, 7036, 4672, 3536, 1220, 445, 11085, 326, 1775, 471, 1135, 392, 5505, 327, 618, 364, 392, 1674, 1450, 326, 1775, 18, 1021, 733, 848, 506,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1008, 67, 2088, 12, 2603, 21, 16, 2603, 22, 33, 7036, 4672, 3536, 1220, 445, 11085, 326, 1775, 471, 1135, 392, 5505, 327, 618, 364, 392, 1674, 1450, 326, 1775, 18, 1021, 733, 848, 506,...
`keep_these_nodes` and the edges between those nodes that are
`nodes` and the edges between those nodes that are
def getSubnet(net,nodes): """Get induced subgraph. Parameters ---------- net: pynet.Net, pynet.SymmNet or pynet.SymmFullNet The original network. keep_these_nodes : sequence The nodes that span the induces subgraph. Return ------ subnet : type(net) The induced subgraph that contains only nodes given in `keep_these_no...
afd1359eb0add8cd17345f35beb894e86d866544 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/768/afd1359eb0add8cd17345f35beb894e86d866544/transforms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7040, 2758, 12, 2758, 16, 4690, 4672, 3536, 967, 1547, 26372, 21469, 18, 225, 7012, 12181, 2901, 30, 293, 878, 278, 18, 7308, 16, 293, 878, 278, 18, 11901, 81, 7308, 578, 293, 878, 278...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7040, 2758, 12, 2758, 16, 4690, 4672, 3536, 967, 1547, 26372, 21469, 18, 225, 7012, 12181, 2901, 30, 293, 878, 278, 18, 7308, 16, 293, 878, 278, 18, 11901, 81, 7308, 578, 293, 878, 278...
""" for node in node_list: self.ConnectNode(node) def ConnectNode(self, connect_node):
@type address_list: list or None @keyword address_list: either None or a list with node addresses, which must have the same length as the node list """ if address_list is None: address_list = [None for _ in node_list] else: assert len(node_list) == len(address_list), \ "Name and address lists should have the same leng...
def ConnectList(self, node_list): """Add a list of nodes to the target nodes.
bdf7d8c0256fd4c3c5b8a6025bd58331b8f43ef1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/bdf7d8c0256fd4c3c5b8a6025bd58331b8f43ef1/rpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8289, 682, 12, 2890, 16, 756, 67, 1098, 4672, 3536, 986, 279, 666, 434, 2199, 358, 326, 1018, 2199, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8289, 682, 12, 2890, 16, 756, 67, 1098, 4672, 3536, 986, 279, 666, 434, 2199, 358, 326, 1018, 2199, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
([-1], [-zeta6], -2*zeta42^7 + 3) ([-1], [-zeta6 + 1], 2*zeta42^7 - 3) ([-zeta6], [-zeta6], 3*zeta42^7 - 1) ([-zeta6], [-zeta6 + 1], -2*zeta42^7 + 3) ([-zeta6 + 1], [-zeta6 + 1], zeta42^7 + 2)
([-1], [-zeta6], -2*zeta6 + 3) ([-1], [-zeta6 + 1], 2*zeta6 - 3) ([-zeta6], [-zeta6], 3*zeta6 - 1) ([-zeta6], [-zeta6 + 1], -2*zeta6 + 3) ([-zeta6 + 1], [-zeta6 + 1], zeta6 + 2)
def jacobi_sum(self, char, check=True): """ Return the Jacobi sum associated to these Dirichlet characters (i.e., J(self,char)). EXAMPLES:: sage: D = DirichletGroup(13) sage: e = D.0 sage: f = D[-2] sage: e.jacobi_sum(f) 3*zeta156^26 + 2*zeta156^13 - 3 sage: f.jacobi_sum(e) 3*zeta156^26 + 2*zeta156^13 - 3 sage: p = 7...
2d29bdbbd76a69f79b998867461156f2c290f64a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/2d29bdbbd76a69f79b998867461156f2c290f64a/dirichlet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20138, 30875, 67, 1364, 12, 2890, 16, 1149, 16, 866, 33, 5510, 4672, 3536, 2000, 326, 804, 1077, 30875, 2142, 3627, 358, 4259, 8446, 1354, 1810, 3949, 261, 77, 18, 73, 12990, 804, 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, 20138, 30875, 67, 1364, 12, 2890, 16, 1149, 16, 866, 33, 5510, 4672, 3536, 2000, 326, 804, 1077, 30875, 2142, 3627, 358, 4259, 8446, 1354, 1810, 3949, 261, 77, 18, 73, 12990, 804, 12, ...
parm.code_rate_HP = [fAuto, f1_2, f2_3, f3_4, f5_6, f7_8, fAuto][fechigh] parm.code_rate_LP = [fAuto, f1_2, f2_3, f3_4, f5_6, f7_8, fAuto][feclow]
parm.code_rate_HP = [f1_2, f2_3, f3_4, f5_6, f7_8, fAuto][fechigh] parm.code_rate_LP = [f1_2, f2_3, f3_4, f5_6, f7_8, fAuto][feclow]
def buildTerTransponder(frequency, inversion=2, bandwidth = 3, fechigh = 6, feclow = 6, modulation = 2, transmission = 2, guard = 4, hierarchy = 4):
49ff3eb9f211eccdec3c3f1c49a64a9ebd182793 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/49ff3eb9f211eccdec3c3f1c49a64a9ebd182793/ScanSetup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 56, 264, 1429, 17707, 12, 14092, 16, 316, 1589, 33, 22, 16, 20508, 273, 890, 16, 1656, 343, 2031, 273, 1666, 16, 284, 557, 821, 273, 1666, 16, 681, 6234, 273, 576, 16, 27940, 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, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 56, 264, 1429, 17707, 12, 14092, 16, 316, 1589, 33, 22, 16, 20508, 273, 890, 16, 1656, 343, 2031, 273, 1666, 16, 284, 557, 821, 273, 1666, 16, 681, 6234, 273, 576, 16, 27940, 2...
iy0,iy1 = imgVRange(h,cbDefn.valign,tx._fontsize)
txfs = tx._fontsize if txfs is None: txfs = xs.style.fontSize iy0,iy1 = imgVRange(h,cbDefn.valign,txfs)
def _putFragLine(tx,line): xs = tx.XtraState cur_x = 0 cur_y = xs.cur_y x0 = tx._x0 autoLeading = xs.autoLeading leading = xs.leading if autoLeading=='max': leading = max(leading,line.ascent-line.descent) xs.f = line elif autoLeading=='min': leading = line.ascent-line.descent xs.f = line oleading = tx._leading if olead...
38a4792887d959ee213eb8c521dc4b912f4cfb5c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3878/38a4792887d959ee213eb8c521dc4b912f4cfb5c/paragraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 458, 19509, 1670, 12, 978, 16, 1369, 4672, 9280, 273, 2229, 18, 60, 2033, 1119, 662, 67, 92, 273, 374, 662, 67, 93, 273, 9280, 18, 1397, 67, 93, 619, 20, 273, 2229, 6315, 92, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 458, 19509, 1670, 12, 978, 16, 1369, 4672, 9280, 273, 2229, 18, 60, 2033, 1119, 662, 67, 92, 273, 374, 662, 67, 93, 273, 9280, 18, 1397, 67, 93, 619, 20, 273, 2229, 6315, 92, ...
@rtype: L{xml.dom.minidom.Element} or C{None}
@rtype: L{markup.ParsedDocstring} or C{None}
def property_type(self, uid): """ @return: The type for the given property, as specified by the docstring of the class documented by this C{ClassDoc}. If the docstring doesn't specify a type, then C{None} is returned. (But note that the property can also specify its type in its own docstring). @rtype: L{xml.dom.mini...
d0164ceec6b7c656820c9cc53370c59eb64d4605 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/d0164ceec6b7c656820c9cc53370c59eb64d4605/objdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1272, 67, 723, 12, 2890, 16, 4555, 4672, 3536, 632, 2463, 30, 1021, 618, 364, 326, 864, 1272, 16, 487, 1269, 635, 326, 225, 14525, 434, 326, 667, 23051, 635, 333, 385, 95, 797, 1759, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1272, 67, 723, 12, 2890, 16, 4555, 4672, 3536, 632, 2463, 30, 1021, 618, 364, 326, 864, 1272, 16, 487, 1269, 635, 326, 225, 14525, 434, 326, 667, 23051, 635, 333, 385, 95, 797, 1759, ...
print("Auto break: %s to %s" % (classObj, ", ".join(list(circular))))
def getRuntimeDeps(self, classObj): """ Returns user defined """ runtimeDeps = set()
48217d0bb710fdcc62c5025776d2102e57d17d9c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/48217d0bb710fdcc62c5025776d2102e57d17d9c/Resolver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18814, 14430, 12, 2890, 16, 667, 2675, 4672, 3536, 2860, 729, 2553, 3536, 3099, 14430, 273, 444, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18814, 14430, 12, 2890, 16, 667, 2675, 4672, 3536, 2860, 729, 2553, 3536, 3099, 14430, 273, 444, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
filename=filename, url=datafile['path'], size=datafile['size'], protocol=protocol )
filename=filename, url=datafile['path'], size=datafile['size'], protocol=protocol )
def process_simple( self, filename, created_by, eid, ):
cf50feda9c465959f12f6c7f48441ac831845cbd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11933/cf50feda9c465959f12f6c7f48441ac831845cbd/ProcessExperiment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 9647, 12, 365, 16, 1544, 16, 2522, 67, 1637, 16, 22555, 16, 262, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 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, 1207, 67, 9647, 12, 365, 16, 1544, 16, 2522, 67, 1637, 16, 22555, 16, 262, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
PsycolliderWindow.OnCloseWindow(self, event) size = self.GetSize() pos = self.GetPosition() self.config.SetPath("/WindowSettings") self.config.WriteInt('PostWindow-sizeX', size.x) self.config.WriteInt('PostWindow-sizeY', size.y) self.config.WriteInt('PostWindow-posX', pos.x) self.config.WriteInt('PostWindow-posY', pos...
dlg = wx.MessageDialog(self,"This will shutdown PsyCollider and close all code windows, do you want to proceed?") reply = dlg.ShowModal() dlg.Destroy() if reply == wx.ID_OK: PsycolliderWindow.OnCloseWindow(self, event) size = self.GetSize() pos = self.GetPosition() self.config.SetPath("/WindowSettings") self.config.Wr...
def OnCloseWindow(self, event): PsycolliderWindow.OnCloseWindow(self, event)
95db7803a65802cd3c686ecf1301e922f25ed86f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11200/95db7803a65802cd3c686ecf1301e922f25ed86f/Psycollider.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 4605, 3829, 12, 2890, 16, 871, 4672, 453, 9009, 12910, 3585, 3829, 18, 1398, 4605, 3829, 12, 2890, 16, 871, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 4605, 3829, 12, 2890, 16, 871, 4672, 453, 9009, 12910, 3585, 3829, 18, 1398, 4605, 3829, 12, 2890, 16, 871, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
@type time: (L{dt.time}|L{str})
@type time: (time|str)
def __init__(self, time, adjusted=True): """ @param time: The value of the object. @type time: (L{dt.time}|L{str}) @param adjusted: Adjust for I{local} Timezone. @type adjusted: boolean @raise ValueError: When I{time} is invalid. """ if isinstance(time, dt.time): self.time = time return if isinstance(time, basestring):...
2c183c1fe6ea8a0555981864020fd64c76d70a80 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1242/2c183c1fe6ea8a0555981864020fd64c76d70a80/date.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 813, 16, 13940, 33, 5510, 4672, 3536, 632, 891, 813, 30, 1021, 460, 434, 326, 733, 18, 632, 723, 813, 30, 261, 957, 96, 701, 13, 632, 891, 13940, 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, 813, 16, 13940, 33, 5510, 4672, 3536, 632, 891, 813, 30, 1021, 460, 434, 326, 733, 18, 632, 723, 813, 30, 261, 957, 96, 701, 13, 632, 891, 13940, 30, ...
def AS_TYPE_64BIT(as_): return \
def AS_TYPE_64BIT(as): return \
def AS_TYPE_64BIT(as_): return \
553a0296e93ee387ee04b27b3ba408f33e63dc8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/553a0296e93ee387ee04b27b3ba408f33e63dc8b/STROPTS.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5355, 67, 2399, 67, 1105, 15650, 12, 345, 4672, 327, 521, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5355, 67, 2399, 67, 1105, 15650, 12, 345, 4672, 327, 521, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
name = name.replace('-','_') if node and hasattr(self,name): return getattr(self,name)(node,**kwargs) else: return None
names.append('_translate') names = map(lambda x: x+suffix,names) if node: for name in names: if hasattr(self,name): return getattr(self,name)(node,**kwargs) return None
def _translateNode( self, *context, **kwargs ): node = None name = '_translate' for c in context: if c: if not isinstance(c,xml.dom.Node): name += '_'+c else: name += '_'+c.nodeName node = c name = name.replace('-','_') #~ print '_translateNode:', name if node and hasattr(self,name): return getattr(self,name)(node,**kw...
74d8dd29c88bf17661b7e631fb09ea9c087eca91 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9981/74d8dd29c88bf17661b7e631fb09ea9c087eca91/doxproc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 13929, 907, 12, 365, 16, 380, 2472, 16, 2826, 4333, 262, 30, 756, 273, 599, 508, 273, 2070, 13929, 11, 364, 276, 316, 819, 30, 309, 276, 30, 309, 486, 1549, 12, 71, 16, 2902, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13929, 907, 12, 365, 16, 380, 2472, 16, 2826, 4333, 262, 30, 756, 273, 599, 508, 273, 2070, 13929, 11, 364, 276, 316, 819, 30, 309, 276, 30, 309, 486, 1549, 12, 71, 16, 2902, ...
this = apply(_quickfix.new_OrigPosReqRefID, args)
this = _quickfix.new_OrigPosReqRefID(*args)
def __init__(self, *args): this = apply(_quickfix.new_OrigPosReqRefID, 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, 4741, 1616, 6113, 1957, 734, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4741, 1616, 6113, 1957, 734, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, ...
(exitstatus, output) = commands.getstatusoutput(cmd)
if mode == Commands: (exitstatus, output) = commands.getstatusoutput(cmd) exitstatus >>= 8 elif mode == System: exitstatus = os.system(cmd)
def runcmd(args): args = [ commands.mkarg(arg) for arg in args ] cmd = " ".join(args) # t = time.time() # print("Executing '%s'." % cmd) (exitstatus, output) = commands.getstatusoutput(cmd) if exitstatus != 0: raise SVKError(cmd, exitstatus >> 8, output) # print("'%s' executed in %s" % (cmd, time.time() - t)) return...
b69610dce38df0eb8e9783001970f9a24f86efec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12623/b69610dce38df0eb8e9783001970f9a24f86efec/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 551, 1264, 12, 1968, 4672, 833, 273, 306, 4364, 18, 24816, 3175, 12, 3175, 13, 364, 1501, 316, 833, 308, 225, 1797, 273, 315, 3552, 5701, 12, 1968, 13, 225, 468, 268, 273, 813, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 551, 1264, 12, 1968, 4672, 833, 273, 306, 4364, 18, 24816, 3175, 12, 3175, 13, 364, 1501, 316, 833, 308, 225, 1797, 273, 315, 3552, 5701, 12, 1968, 13, 225, 468, 268, 273, 813, ...
return tesseract.has_language(language)
return cuneiform.has_language(language)
def has_language(language): return tesseract.has_language(language)
d32ec6fb9f53fb0fdf261ffb02c6fe1042820ad1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3685/d32ec6fb9f53fb0fdf261ffb02c6fe1042820ad1/_ocrodjvu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 67, 4923, 12, 4923, 4672, 327, 268, 403, 264, 621, 18, 5332, 67, 4923, 12, 4923, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 67, 4923, 12, 4923, 4672, 327, 268, 403, 264, 621, 18, 5332, 67, 4923, 12, 4923, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
self.assertIs(self.client.sock.context, ctx)
self.assertIs(sock.context, ctx)
def test_context(self): self.client.quit() ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1) self.assertRaises(ValueError, ftplib.FTP_TLS, keyfile=CERTFILE, context=ctx) self.assertRaises(ValueError, ftplib.FTP_TLS, certfile=CERTFILE, context=ctx) self.assertRaises(ValueError, ftplib.FTP_TLS, certfile=CERTFILE, keyfile=CERTFILE...
866a7dd0d36fd1da7a2a6b4cc89bf0c6d2b0fa2e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/866a7dd0d36fd1da7a2a6b4cc89bf0c6d2b0fa2e/test_ftplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2472, 12, 2890, 4672, 365, 18, 2625, 18, 27176, 1435, 1103, 273, 5832, 18, 6745, 1042, 12, 8157, 18, 16850, 67, 9905, 90, 21, 13, 365, 18, 11231, 12649, 6141, 12, 23610, 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, 67, 2472, 12, 2890, 4672, 365, 18, 2625, 18, 27176, 1435, 1103, 273, 5832, 18, 6745, 1042, 12, 8157, 18, 16850, 67, 9905, 90, 21, 13, 365, 18, 11231, 12649, 6141, 12, 23610, 16, ...
self.qtJambiVersion = "4.4.0_01"
def __init__(self): self.qtDir = None self.qtVersion = None self.packageRoot = None self.qtJambiVersion = "4.4.0_01" self.eclipseVersion = "1.1.0" self.p4User = "qt" self.p4Client = "qt-builder" self.binaryPackageCount = 0 self.packageExtraName = ""
6b5a8ef12383e0281c6ba8bd10dc88cf3933ff6b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4229/6b5a8ef12383e0281c6ba8bd10dc88cf3933ff6b/package_builder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 23311, 1621, 273, 599, 365, 18, 23311, 1444, 273, 599, 365, 18, 5610, 2375, 273, 599, 365, 18, 20416, 1444, 273, 315, 21, 18, 21, 18, 20, 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, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 23311, 1621, 273, 599, 365, 18, 23311, 1444, 273, 599, 365, 18, 5610, 2375, 273, 599, 365, 18, 20416, 1444, 273, 315, 21, 18, 21, 18, 20, 6,...
return bessel_I(nu,z,s,p)
return bessel_I(nu,z,algorithm=s,prec=p)
def __call__(self,z): nu = self.order() t = self.type() s = self.system() p = self.prec() if t == "I": return bessel_I(nu,z,s,p) if t == "J": return bessel_J(nu,z,s,p) if t == "K": return bessel_K(nu,z,p) if t == "Y": return bessel_J(nu,z)
aae4eb29e05d770a5cff5dd41ca537c970622119 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/aae4eb29e05d770a5cff5dd41ca537c970622119/special.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 94, 4672, 9244, 273, 365, 18, 1019, 1435, 268, 273, 365, 18, 723, 1435, 272, 273, 365, 18, 4299, 1435, 293, 273, 365, 18, 4036, 1435, 309, 268, 422, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 94, 4672, 9244, 273, 365, 18, 1019, 1435, 268, 273, 365, 18, 723, 1435, 272, 273, 365, 18, 4299, 1435, 293, 273, 365, 18, 4036, 1435, 309, 268, 422, 31...
'for %s: %s vs %s' % (path, n1, n2))
'for %s: (%s) vs (%s)' % (path, ', '.join(str(n) for n in n1), ', '.join(str(n) for n in n2)))
def merge_submodules(v1, v2, precedence, cyclecheck, path): n1 = sorted([m.canonical_name for m in v1]) n2 = sorted([m.canonical_name for m in v2]) if (n1 != n2) and (n2 != []): log.warning('Introspector & parser disagree about submodules ' 'for %s: %s vs %s' % (path, n1, n2)) return v1 + [m for m in v2 if m.canonical_...
c9bbc05d7f085012fd134a1da4f5c39f6707288d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11420/c9bbc05d7f085012fd134a1da4f5c39f6707288d/docbuilder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2691, 67, 1717, 6400, 12, 90, 21, 16, 331, 22, 16, 14172, 16, 8589, 1893, 16, 589, 4672, 290, 21, 273, 3115, 3816, 81, 18, 18288, 67, 529, 364, 312, 316, 331, 21, 5717, 290, 22, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2691, 67, 1717, 6400, 12, 90, 21, 16, 331, 22, 16, 14172, 16, 8589, 1893, 16, 589, 4672, 290, 21, 273, 3115, 3816, 81, 18, 18288, 67, 529, 364, 312, 316, 331, 21, 5717, 290, 22, 27...
env['IPKGUSER'] = popen('id -un').read().strip() env['IPKGGROUP'] = popen('id -gn').read().strip()
env['IPKGUSER'] = string.strip(os.popen('id -un').read()) env['IPKGGROUP'] = string.strip(os.popen('id -gn').read())
def generate(env): """Add Builders and construction variables for ipkg to an Environment.""" try: bld = env['BUILDERS']['Ipkg'] except KeyError: bld = SCons.Builder.Builder( action = '$IPKGCOM', suffix = '$IPKGSUFFIX', source_scanner = None, target_scanner = None) env['BUILDERS']['Ipkg'] = bld env['IPKG'] = 'i...
f61f76c1579ccae98e45dd8f17a7f0eb85779e37 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12817/f61f76c1579ccae98e45dd8f17a7f0eb85779e37/ipkg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 3074, 4672, 3536, 986, 3998, 414, 471, 16171, 3152, 364, 2359, 14931, 358, 392, 7518, 12123, 775, 30, 324, 1236, 273, 1550, 3292, 3000, 2627, 4179, 55, 21712, 5273, 14931, 3546, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 3074, 4672, 3536, 986, 3998, 414, 471, 16171, 3152, 364, 2359, 14931, 358, 392, 7518, 12123, 775, 30, 324, 1236, 273, 1550, 3292, 3000, 2627, 4179, 55, 21712, 5273, 14931, 3546, ...
security.declareProtected(permissions.View, 'getDefault')
security.declareProtected(CMFCorePermissions.View, 'getDefault')
def getWrappedField(self, key): """Gets a field by id which is explicitly wrapped.
460696da815e0d1149ab34005370b03bdbb656a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/460696da815e0d1149ab34005370b03bdbb656a6/BaseObject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 17665, 974, 12, 2890, 16, 498, 4672, 3536, 3002, 279, 652, 635, 612, 1492, 353, 8122, 5805, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 17665, 974, 12, 2890, 16, 498, 4672, 3536, 3002, 279, 652, 635, 612, 1492, 353, 8122, 5805, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
transforms.initialize(self)
try: transforms.initialize(self) except: pass
def manage_afterAdd(self, item, container): """ overload manage_afterAdd to finish initialization when the transform tool is added """ Folder.manage_afterAdd(self, item, container) # first initialization transforms.initialize(self)
7a10d9ab1a758898936d7d399a2c2c2ebd050e8e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/7a10d9ab1a758898936d7d399a2c2c2ebd050e8e/TransformTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10680, 67, 5205, 986, 12, 2890, 16, 761, 16, 1478, 4672, 3536, 30402, 10680, 67, 5205, 986, 358, 4076, 10313, 1347, 326, 2510, 5226, 353, 3096, 3536, 12623, 18, 12633, 67, 5205, 986, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10680, 67, 5205, 986, 12, 2890, 16, 761, 16, 1478, 4672, 3536, 30402, 10680, 67, 5205, 986, 358, 4076, 10313, 1347, 326, 2510, 5226, 353, 3096, 3536, 12623, 18, 12633, 67, 5205, 986, 12,...
struct.pack(mask2, self.mdepid, self.conf)
struct.pack(self.mask2, self.mdepid, self.conf)
def encode(self): return MDLRequest.encode(self) + \ struct.pack(mask2, self.mdepid, self.conf)
5ab73709fd24f71f38fc2ed06c5d1fbb3996f217 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8028/5ab73709fd24f71f38fc2ed06c5d1fbb3996f217/mcap_defs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 12, 2890, 4672, 327, 490, 8914, 691, 18, 3015, 12, 2890, 13, 397, 521, 1958, 18, 2920, 12, 4455, 22, 16, 365, 18, 81, 323, 6610, 16, 365, 18, 3923, 13, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 12, 2890, 4672, 327, 490, 8914, 691, 18, 3015, 12, 2890, 13, 397, 521, 1958, 18, 2920, 12, 4455, 22, 16, 365, 18, 81, 323, 6610, 16, 365, 18, 3923, 13, 2, -100, -100, -100, -...
return ret
def __str__(self): return str(type(self))+": name="+self.name + " value="+str(self.getValueTypeCorrected()) +" type="+str(self.type)\ +" linked_module="+str(self.linked_module) + " linked_parameter="+str(self.linked_parameter)\ +" in="+ str(self.typein)+ " out="+str(self.typeout)\ +" description="+str(self.description)
e910c048af63793c8da0cfbcdabefbfeb1fa8574 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/e910c048af63793c8da0cfbcdabefbfeb1fa8574/Parameter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 609, 12, 723, 12, 2890, 3719, 15, 6877, 508, 1546, 15, 2890, 18, 529, 397, 315, 460, 1546, 15, 701, 12, 2890, 18, 588, 17930, 16147, 329, 10756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 701, 972, 12, 2890, 4672, 327, 609, 12, 723, 12, 2890, 3719, 15, 6877, 508, 1546, 15, 2890, 18, 529, 397, 315, 460, 1546, 15, 701, 12, 2890, 18, 588, 17930, 16147, 329, 10756, ...
generator = XML.dig(m.xml, "message", "gemerator")
generator = XML.dig(m.xml, "message", "generator")
def _render_rows(self, xml, context, result): # No message? if not xml: result.callback([]) return m = Message.Message(xml) rows = []
0ce9f812a0e7c69531930b75a6b8eaba9b1499cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9478/0ce9f812a0e7c69531930b75a6b8eaba9b1499cb/MessageViewer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 67, 3870, 12, 2890, 16, 2025, 16, 819, 16, 563, 4672, 468, 2631, 883, 35, 309, 486, 2025, 30, 563, 18, 3394, 3816, 5717, 327, 312, 273, 2350, 18, 1079, 12, 2902, 13, 2595,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 67, 3870, 12, 2890, 16, 2025, 16, 819, 16, 563, 4672, 468, 2631, 883, 35, 309, 486, 2025, 30, 563, 18, 3394, 3816, 5717, 327, 312, 273, 2350, 18, 1079, 12, 2902, 13, 2595,...
if os.path.isfile(list_options["rcd_gpxfile"]): if gpxfile != list_options["rcd_gpxfile"]: gpxOrig = self.conf.tmpdir+"/newgpx.gpx"
gpxOrig = list_options["rcd_gpxfile"] if os.path.isfile(gpxOrig): if gpxfile != gpxOrig:
def updateRecord(self, list_options, id_record): logging.debug('>>') gpxfile = self.conf.getValue("gpxdir")+"/%d.gpx"%int(id_record) if os.path.isfile(list_options["rcd_gpxfile"]): if gpxfile != list_options["rcd_gpxfile"]: gpxOrig = self.conf.tmpdir+"/newgpx.gpx" shutil.copy2(gpxOrig, gpxfile) else: if (list_options["...
26785e9a339868d2674c944ca7a1f07a9d1d862f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11865/26785e9a339868d2674c944ca7a1f07a9d1d862f/record.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 2115, 12, 2890, 16, 666, 67, 2116, 16, 612, 67, 3366, 4672, 2907, 18, 4148, 2668, 34, 1870, 13, 4178, 92, 768, 273, 365, 18, 3923, 18, 24805, 2932, 75, 4430, 1214, 7923, 9078, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 2115, 12, 2890, 16, 666, 67, 2116, 16, 612, 67, 3366, 4672, 2907, 18, 4148, 2668, 34, 1870, 13, 4178, 92, 768, 273, 365, 18, 3923, 18, 24805, 2932, 75, 4430, 1214, 7923, 9078, ...
def TestAll(self, root_key): self.WriteTestData(root_key) self.ReadTestData(root_key) self.DeleteTestData(root_key)
def TestAll(self, root_key, subkeystr="sub_key"): self.WriteTestData(root_key, subkeystr) self.ReadTestData(root_key, subkeystr) self.DeleteTestData(root_key, subkeystr)
def TestAll(self, root_key): self.WriteTestData(root_key) self.ReadTestData(root_key) self.DeleteTestData(root_key)
f82d9b52fae475a132a21d1b7174730f17b735de /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/f82d9b52fae475a132a21d1b7174730f17b735de/test_winreg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7766, 1595, 12, 2890, 16, 1365, 67, 856, 4672, 365, 18, 3067, 4709, 751, 12, 3085, 67, 856, 13, 365, 18, 1994, 4709, 751, 12, 3085, 67, 856, 13, 365, 18, 2613, 4709, 751, 12, 3085, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7766, 1595, 12, 2890, 16, 1365, 67, 856, 4672, 365, 18, 3067, 4709, 751, 12, 3085, 67, 856, 13, 365, 18, 1994, 4709, 751, 12, 3085, 67, 856, 13, 365, 18, 2613, 4709, 751, 12, 3085, ...
def end_fault(self):
def end_fault(self, data):
def end_fault(self): self._type = "fault"
cd906440fbd0694e165a09262268a608df82deeb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/cd906440fbd0694e165a09262268a608df82deeb/xmlrpclib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 67, 643, 12, 2890, 16, 501, 4672, 365, 6315, 723, 273, 315, 643, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 67, 643, 12, 2890, 16, 501, 4672, 365, 6315, 723, 273, 315, 643, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
relations = RpmRelations(self.config, self.installs, OP_INSTALL) order2 = relations.genOrder() if order2 == None: return None order.extend(order2)
if len(self.installs) == 1: order.extend(self.installs) else: relations = RpmRelations(self.config, self.installs, OP_INSTALL) order2 = relations.genOrder() if order2 == None: return None order.extend(order2)
def genOrder(self): """Return an ordered list of RpmPackage's, first installs, then erases.
71efa249ff5aea27b24aa609a6dea3b07bf3af0c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/71efa249ff5aea27b24aa609a6dea3b07bf3af0c/orderer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 2448, 12, 2890, 4672, 3536, 990, 392, 5901, 666, 434, 534, 7755, 2261, 1807, 16, 1122, 31011, 16, 1508, 6445, 3304, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 2448, 12, 2890, 4672, 3536, 990, 392, 5901, 666, 434, 534, 7755, 2261, 1807, 16, 1122, 31011, 16, 1508, 6445, 3304, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
OUTPUT: bool
OUTPUT: - boolean; ``True`` if ``self`` and ``right`` are isomorphic groups; ``False`` otherwise.
def is_isomorphic(self, right): """ Return True if the groups are isomorphic. If mode="verbose" then an isomorphism is printed.
2d077a3331069892dd585070aa02c876686672d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/2d077a3331069892dd585070aa02c876686672d2/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 291, 362, 18435, 12, 2890, 16, 2145, 4672, 3536, 2000, 1053, 309, 326, 3252, 854, 353, 362, 18435, 18, 971, 1965, 1546, 11369, 6, 1508, 392, 353, 362, 7657, 6228, 353, 14099, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 291, 362, 18435, 12, 2890, 16, 2145, 4672, 3536, 2000, 1053, 309, 326, 3252, 854, 353, 362, 18435, 18, 971, 1965, 1546, 11369, 6, 1508, 392, 353, 362, 7657, 6228, 353, 14099, ...
oe.mailbox.dbxMessageInfo.MI_MESSAGE_ADDRESS): address = oe.mailbox.dbxMessageInfo.MI_MESSAGE_ADDRESS
oe_mailbox.dbxMessageInfo.MI_MESSAGE_ADDRESS): address = oe_mailbox.dbxMessageInfo.MI_MESSAGE_ADDRESS
def _convertOutlookExpressToMbox(self, content): """Check if the uploaded mailbox file is an Outlook Express DBX one.
186f0619a71edd65fbcd3e480453d3478c001901 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/186f0619a71edd65fbcd3e480453d3478c001901/UserInterface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6283, 1182, 7330, 424, 1028, 774, 49, 2147, 12, 2890, 16, 913, 4672, 3536, 1564, 309, 326, 9140, 14187, 585, 353, 392, 2976, 7330, 18482, 2383, 60, 1245, 18, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6283, 1182, 7330, 424, 1028, 774, 49, 2147, 12, 2890, 16, 913, 4672, 3536, 1564, 309, 326, 9140, 14187, 585, 353, 392, 2976, 7330, 18482, 2383, 60, 1245, 18, 2, -100, -100, -100, ...
proutn(_(" hold out only until stardate %d") % (int(scheduled(FCDBAS)))) prout(".\"")
prout(_(" hold out only until stardate %d.\"") % (int(scheduled(FCDBAS))))
def destroybase(): # Code merges here for any commander destroying base # Not perfect, but will have to do # Handle case where base is in same quadrant as starship if game.battle == game.quadrant: game.state.chart[game.battle.x][game.battle.y].starbase = False game.quad[game.base.x][game.base.y] = IHDOT game.base.x=gam...
1e83bccf057830e335d12b07fe37881a4c1d48ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/1e83bccf057830e335d12b07fe37881a4c1d48ae/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5546, 1969, 13332, 468, 3356, 19037, 2674, 364, 1281, 1296, 264, 5546, 310, 1026, 468, 2288, 24746, 16, 1496, 903, 1240, 358, 741, 468, 5004, 648, 1625, 1026, 353, 316, 1967, 9474, 6890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5546, 1969, 13332, 468, 3356, 19037, 2674, 364, 1281, 1296, 264, 5546, 310, 1026, 468, 2288, 24746, 16, 1496, 903, 1240, 358, 741, 468, 5004, 648, 1625, 1026, 353, 316, 1967, 9474, 6890, ...
in_scope_namespaces = { 'xs' : None })
in_scope_namespaces = { 'xs' : 'XMLSchema' })
def AvailableForLoad (): """Return a list of namespace URIs for which we may be able to load the namespace contents from a pre-parsed file. Note that success of the load is not guaranteed if the packed file is not compatible with the schema class being used.""" # Invoke this to ensure we have searched for loadable nam...
f532500b9e4cc0063751168a797f3ce1edb4d29c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/f532500b9e4cc0063751168a797f3ce1edb4d29c/Namespace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15633, 1290, 2563, 1832, 30, 3536, 990, 279, 666, 434, 1981, 24565, 364, 1492, 732, 2026, 506, 7752, 358, 1262, 326, 1981, 2939, 628, 279, 675, 17, 10817, 585, 18, 225, 3609, 716, 2216, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15633, 1290, 2563, 1832, 30, 3536, 990, 279, 666, 434, 1981, 24565, 364, 1492, 732, 2026, 506, 7752, 358, 1262, 326, 1981, 2939, 628, 279, 675, 17, 10817, 585, 18, 225, 3609, 716, 2216, ...
for val in newFeature.values: dict[val] = dist[val]
for val in newFeature.values: dict[val] = dist[val]
def getConditionalDistributions(self, data, attrs): dict = {} for i in range(1, len(attrs)+1): newFeature, quality = FeatureByCartesianProduct(data, attrs[:i]) dist = orange.Distribution(newFeature, data) for val in newFeature.values: dict[val] = dist[val]
eb316246e2bfc8bb37046dcac9d47deffa628900 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/eb316246e2bfc8bb37046dcac9d47deffa628900/orngMosaic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 14132, 1669, 15326, 12, 2890, 16, 501, 16, 3422, 4672, 2065, 273, 2618, 364, 277, 316, 1048, 12, 21, 16, 562, 12, 7039, 27921, 21, 4672, 394, 4595, 16, 9312, 273, 7881, 858, 13006...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14132, 1669, 15326, 12, 2890, 16, 501, 16, 3422, 4672, 2065, 273, 2618, 364, 277, 316, 1048, 12, 21, 16, 562, 12, 7039, 27921, 21, 4672, 394, 4595, 16, 9312, 273, 7881, 858, 13006...
p.add_constraint(vertex_used[v] - f_edge_used(u,v), min = 0)
p.add_constraint(vertex_used[v] - f_edge_used(u,v), min=0)
def longest_path(self, s = None, t = None, weighted = False, algorithm = "MILP", solver = None, verbose = 0): r""" Returns a longest path of ``self``.
815c98d316de2356ea416011f877811bcf39fae3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/815c98d316de2356ea416011f877811bcf39fae3/generic_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12163, 67, 803, 12, 2890, 16, 272, 273, 599, 16, 268, 273, 599, 16, 13747, 273, 1083, 16, 4886, 273, 315, 49, 2627, 52, 3113, 12776, 273, 599, 16, 3988, 273, 374, 4672, 436, 8395, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12163, 67, 803, 12, 2890, 16, 272, 273, 599, 16, 268, 273, 599, 16, 13747, 273, 1083, 16, 4886, 273, 315, 49, 2627, 52, 3113, 12776, 273, 599, 16, 3988, 273, 374, 4672, 436, 8395, 28...
<td width="80%%"><input type="text" size=90 name="elmodifytext" value="%(el_modifytext)s" /></td>
<td width="80%%"><input type="text" size="90" name="elmodifytext" value="%(el_modifytext)s" /></td>
def tmpl_display_addelementform(self, elname="", elmarccode="", eltype="", elsize="", elrows="", elcols="", elmaxlength="", elval="", elfidesc="", elmodifytext="", elcookie="", elcd="", elmd="", perform_act="elementadd", user_msg="", el_use_tuple="" ): """Display Web form used to add a new element to the database @para...
e760c1fc3e16767c2b47a9e2f94b5484506a8af7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/e760c1fc3e16767c2b47a9e2f94b5484506a8af7/websubmitadmin_templates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 5417, 67, 1289, 2956, 687, 12, 2890, 16, 415, 529, 1546, 3113, 415, 3684, 71, 710, 1546, 3113, 415, 723, 1546, 3113, 415, 1467, 1546, 3113, 415, 3870, 1546, 3113, 415, 6842, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5417, 67, 1289, 2956, 687, 12, 2890, 16, 415, 529, 1546, 3113, 415, 3684, 71, 710, 1546, 3113, 415, 723, 1546, 3113, 415, 1467, 1546, 3113, 415, 3870, 1546, 3113, 415, 6842, ...
The name of a tear-down function. This is called after running the
A tear-down function. This is called after running the
def DocTestSuite(module=None, globs=None, extraglobs=None, test_finder=None, **options): """ Convert doctest tests for a module to a unittest test suite. This converts each documentation string in a module that contains doctest tests to a unittest test case. If any of the tests in a doc string fail, then the test cas...
7a98ec2b175493f6fa830f03a8e0321d9cc58cf2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/7a98ec2b175493f6fa830f03a8e0321d9cc58cf2/doctest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3521, 4709, 13587, 12, 2978, 33, 7036, 16, 4715, 87, 33, 7036, 16, 7582, 346, 1295, 87, 33, 7036, 16, 1842, 67, 15356, 33, 7036, 16, 2826, 2116, 4672, 3536, 4037, 31263, 395, 7434, 364...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3521, 4709, 13587, 12, 2978, 33, 7036, 16, 4715, 87, 33, 7036, 16, 7582, 346, 1295, 87, 33, 7036, 16, 1842, 67, 15356, 33, 7036, 16, 2826, 2116, 4672, 3536, 4037, 31263, 395, 7434, 364...
status = variant.build(buildTarget) if status["buildError"]:
variant.build(buildTarget) if buildTarget in variant.issues:
def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): qxVersions = self.manifest["info"]["qooxdoo-versions"] for variantName, variant in self.children.iteritems(): # build version: link demo against each compatible qooxdoo version if buildTarget == "build": #get the compatible qooxdoo version...
c357d68eac41b75f76b1d8345cba6858f0f3b66d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/c357d68eac41b75f76b1d8345cba6858f0f3b66d/repository.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 1595, 15058, 538, 12, 2890, 16, 1361, 2326, 1546, 3510, 3113, 21477, 9132, 33, 7036, 16, 1610, 15058, 538, 33, 8381, 4672, 1043, 92, 5940, 273, 365, 18, 14357, 9614, 1376, 6, 6362,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1595, 15058, 538, 12, 2890, 16, 1361, 2326, 1546, 3510, 3113, 21477, 9132, 33, 7036, 16, 1610, 15058, 538, 33, 8381, 4672, 1043, 92, 5940, 273, 365, 18, 14357, 9614, 1376, 6, 6362,...
def log(function): """Logger that records which phase processes each token""" type_names = dict((value, key) for key, value in constants.tokenTypes.iteritems()) def wrapped(self, *args, **kwargs): if function.__name__ != "__init__" and len(args) > 0: token = args[0] try: info = {"type":type_names[token['type']]} except...
def getPhases(debug): def log(function): """Logger that records which phase processes each token""" type_names = dict((value, key) for key, value in constants.tokenTypes.iteritems()) def wrapped(self, *args, **kwargs): if function.__name__ != "__init__" and len(args) > 0: token = args[0] try: info = {"type":type_names[...
def log(function): """Logger that records which phase processes each token""" type_names = dict((value, key) for key, value in constants.tokenTypes.iteritems()) def wrapped(self, *args, **kwargs): if function.__name__ != "__init__" and len(args) > 0: token = args[0] try: info = {"type":type_names[token['type']]} except...
d34b631d2e45870e85a6b7e5f824aa96f5632111 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9368/d34b631d2e45870e85a6b7e5f824aa96f5632111/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21735, 3304, 12, 4148, 4672, 1652, 613, 12, 915, 4672, 3536, 3328, 716, 3853, 1492, 6855, 8488, 1517, 1147, 8395, 618, 67, 1973, 273, 2065, 12443, 1132, 16, 498, 13, 364, 498, 16, 460, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21735, 3304, 12, 4148, 4672, 1652, 613, 12, 915, 4672, 3536, 3328, 716, 3853, 1492, 6855, 8488, 1517, 1147, 8395, 618, 67, 1973, 273, 2065, 12443, 1132, 16, 498, 13, 364, 498, 16, 460, ...
parsed = re.split("(\d+)|[\W_]+", string.join(levels)) + [fname_noext]
parsed = re.split("[\s_\-()/\\\\[\]\"]", string.join(levels)) + [fname_noext]
def _score_words(self, text_parts): """ Scores the words given in text_parts, which is a list of tuples (text, coeff, type), where text is the string of words to be scored, coeff is the weight to give each word in this part (1.0 is normal), and type is one of ATTR_KEYWORDS_*.
318def10ea14e19fd377915dec850ed450857c6a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11703/318def10ea14e19fd377915dec850ed450857c6a/db.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6355, 67, 3753, 12, 2890, 16, 977, 67, 6019, 4672, 3536, 2850, 3485, 326, 4511, 864, 316, 977, 67, 6019, 16, 1492, 353, 279, 666, 434, 10384, 261, 955, 16, 11943, 16, 618, 3631, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6355, 67, 3753, 12, 2890, 16, 977, 67, 6019, 4672, 3536, 2850, 3485, 326, 4511, 864, 316, 977, 67, 6019, 16, 1492, 353, 279, 666, 434, 10384, 261, 955, 16, 11943, 16, 618, 3631, ...
self.settings["CFLAGS"]="-Os -march=armv4t -pipe" class arch_armv5l(generic_arm): "Builder class for armv5l target" def __init__(self,myspec): generic_arm.__init__(self,myspec) self.settings["CHOST"]="armv5l-softfloat-linux-gnueabi" self.settings["CFLAGS"]="-Os -march=armv5 -pipe"
self.settings["CFLAGS"]+=" -march=armv4t"
def __init__(self,myspec): generic_arm.__init__(self,myspec) self.settings["CHOST"]="armv4tl-softfloat-linux-gnueabi" self.settings["CFLAGS"]="-Os -march=armv4t -pipe"
53fab4b752e759327ccdfc975b482828b7745033 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7327/53fab4b752e759327ccdfc975b482828b7745033/arm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 81, 1900, 705, 4672, 5210, 67, 4610, 16186, 2738, 972, 12, 2890, 16, 81, 1900, 705, 13, 365, 18, 4272, 9614, 1792, 4005, 11929, 1546, 4610, 90, 24, 6172,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 81, 1900, 705, 4672, 5210, 67, 4610, 16186, 2738, 972, 12, 2890, 16, 81, 1900, 705, 13, 365, 18, 4272, 9614, 1792, 4005, 11929, 1546, 4610, 90, 24, 6172,...
"""
""" self._failed_xrefs = {}
def write(self, directory=None, progress_callback=None): """ Write the documentation to the given directory.
dad6dd09c82d3878a78d977cc13da79d4420db2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/dad6dd09c82d3878a78d977cc13da79d4420db2b/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1867, 33, 7036, 16, 4007, 67, 3394, 33, 7036, 4672, 3536, 225, 365, 6315, 7307, 67, 92, 9316, 273, 2618, 282, 2598, 326, 7323, 358, 326, 864, 1867, 18, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1867, 33, 7036, 16, 4007, 67, 3394, 33, 7036, 4672, 3536, 225, 365, 6315, 7307, 67, 92, 9316, 273, 2618, 282, 2598, 326, 7323, 358, 326, 864, 1867, 18, 2, -100, -...
"""Swaps masters between esp and esm versions.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_('Esmify Masters')) menu.AppendItem(menuItem) fileInfo = self.fileInfo = window.data[data[0]] menuItem.Enable(False) self.toEsp = False if len(data) =...
"""Swaps masters between esp and esm versions.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_('Esmify Masters')) menu.AppendItem(menuItem) fileInfo = self.fileInfo = window.data[data[0]] menuItem.Enable(False) self.toEsp = False if len(data) =...
def Execute(self,event): #--Select source face file srcDir = bosh.saveInfos.dir wildcard = _('Fallout3 Files')+' (*.fos;*.for)|*.fos;*.for' #--File dialog srcPath = balt.askOpen(self.window,'Face Source:',srcDir, '', wildcard) if not srcPath: return #--Get face srcDir,srcName = srcPath.headTail srcInfo = bosh.SaveInfo(...
3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7903, 12, 2890, 16, 2575, 4672, 468, 413, 3391, 1084, 7945, 585, 30585, 273, 324, 17636, 18, 5688, 7655, 18, 1214, 8531, 273, 389, 2668, 42, 287, 14533, 23, 6471, 6134, 6797, 261, 11146,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7903, 12, 2890, 16, 2575, 4672, 468, 413, 3391, 1084, 7945, 585, 30585, 273, 324, 17636, 18, 5688, 7655, 18, 1214, 8531, 273, 389, 2668, 42, 287, 14533, 23, 6471, 6134, 6797, 261, 11146,...
logger.setLevel(config['log_level'])
logger.setLevel(config['log_level'] or '0')
def init_logger(): from tools import config import os logger = logging.getLogger() if config['syslog']: # SysLog Handler if os.name == 'nt': sysloghandler = logging.handlers.NTEventLogHandler("%s %s" % (release.description, release.version)) else: sysloghandler = logging.handlers.SysLogHandler('/dev/log') formatter =...
933641d50c31103e511974f3a1a943d8cdbc2f3d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/933641d50c31103e511974f3a1a943d8cdbc2f3d/netsvc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 4901, 13332, 628, 8513, 1930, 642, 1930, 1140, 225, 1194, 273, 2907, 18, 588, 3328, 1435, 225, 309, 642, 3292, 9499, 1330, 3546, 30, 468, 16995, 1343, 4663, 309, 1140, 18, 529,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 4901, 13332, 628, 8513, 1930, 642, 1930, 1140, 225, 1194, 273, 2907, 18, 588, 3328, 1435, 225, 309, 642, 3292, 9499, 1330, 3546, 30, 468, 16995, 1343, 4663, 309, 1140, 18, 529,...
fh.write('%.1f\n' % ((self.kpts[i] + 1) % 2) * 0.5)
fh.write('%.1f\n' % (((self.kpts[i] + 1) % 2) * 0.5))
def write_fdf(self, atoms): """Write input parameters to fdf-file.""" fh = open(self.label + '.fdf', 'w')
3bc5a0fbc7e90f9416160cb551ede3d5ab84c15d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1380/3bc5a0fbc7e90f9416160cb551ede3d5ab84c15d/siesta.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 74, 2180, 12, 2890, 16, 9006, 4672, 3536, 3067, 810, 1472, 358, 284, 2180, 17, 768, 12123, 7625, 273, 1696, 12, 2890, 18, 1925, 397, 2418, 74, 2180, 2187, 296, 91, 6134, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 74, 2180, 12, 2890, 16, 9006, 4672, 3536, 3067, 810, 1472, 358, 284, 2180, 17, 768, 12123, 7625, 273, 1696, 12, 2890, 18, 1925, 397, 2418, 74, 2180, 2187, 296, 91, 6134, 2, ...
Write images in Analyze7.5 format.
Write a given image into a single Analyze7.5 format hdr/img pair.
def load_image(self, filename):
bd6bf00f7f79519df17e5630ca62cd4b56d09ca5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7241/bd6bf00f7f79519df17e5630ca62cd4b56d09ca5/analyze.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 2730, 12, 2890, 16, 1544, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 2730, 12, 2890, 16, 1544, 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,...
self.actor.set_anchor_point(0,position) self.actor.set_clip(0,position,box_width,box_height)
self.actor.set_anchor_point(0, int(position)) self.actor.set_clip(0, int(position), box_width, box_height)
def do_allocate (self, box, flags): box_width = box.x2 - box.x1 box_height = box.y2 - box.y1 if self.expand == True: position = self.clipper_position * (self.actor.get_preferred_size()[3] - box_height) self.actor.set_anchor_point(0,position) self.actor.set_clip(0,position,box_width,box_height) objbox = clutter.ActorBo...
e0ef29f7d142e98fa72339ff60094a4695db4216 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5279/e0ef29f7d142e98fa72339ff60094a4695db4216/scrollbar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 16247, 261, 2890, 16, 3919, 16, 2943, 4672, 3919, 67, 2819, 273, 3919, 18, 92, 22, 300, 3919, 18, 92, 21, 3919, 67, 4210, 273, 3919, 18, 93, 22, 300, 3919, 18, 93, 21, 225...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 16247, 261, 2890, 16, 3919, 16, 2943, 4672, 3919, 67, 2819, 273, 3919, 18, 92, 22, 300, 3919, 18, 92, 21, 3919, 67, 4210, 273, 3919, 18, 93, 22, 300, 3919, 18, 93, 21, 225...
if THISDAY != strftime("%Y%m%d", localtime()):
if THISDAY != strftime("%Y%m%d"):
def fromtoday(fname): # Returns True if a file was last modified today fdate = strftime("%Y%m%d", localtime(getmtime(fname))) today = strftime("%Y%m%d", localtime()) return fdate == today
74b3799025d3bd8dded6111ac337b8d5d8394b0f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1574/74b3799025d3bd8dded6111ac337b8d5d8394b0f/timekpr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 30064, 12, 12749, 4672, 468, 2860, 1053, 309, 279, 585, 1703, 1142, 4358, 10074, 284, 712, 273, 10405, 27188, 61, 9, 81, 9, 72, 3113, 1191, 957, 12, 588, 10838, 12, 12749, 20349, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 628, 30064, 12, 12749, 4672, 468, 2860, 1053, 309, 279, 585, 1703, 1142, 4358, 10074, 284, 712, 273, 10405, 27188, 61, 9, 81, 9, 72, 3113, 1191, 957, 12, 588, 10838, 12, 12749, 20349, ...
sys.stderr.write("could not open port %r" % port)
sys.stderr.write("could not open port %r\n" % port)
def main(): import optparse parser = optparse.OptionParser(usage="""\
edfb43e16e1c21888791266d29c5ff47c570b798 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10955/edfb43e16e1c21888791266d29c5ff47c570b798/miniterm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1930, 2153, 2670, 225, 2082, 273, 2153, 2670, 18, 1895, 2678, 12, 9167, 1546, 3660, 64, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1930, 2153, 2670, 225, 2082, 273, 2153, 2670, 18, 1895, 2678, 12, 9167, 1546, 3660, 64, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.offline_or_drain)
self.op.offline == True or self.op.drained == True)
def CheckArguments(self): self.op.node_name = _ExpandNodeName(self.cfg, self.op.node_name) all_mods = [self.op.offline, self.op.master_candidate, self.op.drained] if all_mods.count(None) == 3: raise errors.OpPrereqError("Please pass at least one modification", errors.ECODE_INVAL) if all_mods.count(True) > 1: raise erro...
21232d04ea6caba31434824ecc9dbf29274cfc64 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/21232d04ea6caba31434824ecc9dbf29274cfc64/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 4628, 12, 2890, 4672, 365, 18, 556, 18, 2159, 67, 529, 273, 389, 12271, 18948, 12, 2890, 18, 7066, 16, 365, 18, 556, 18, 2159, 67, 529, 13, 777, 67, 22760, 273, 306, 2890, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 4628, 12, 2890, 4672, 365, 18, 556, 18, 2159, 67, 529, 273, 389, 12271, 18948, 12, 2890, 18, 7066, 16, 365, 18, 556, 18, 2159, 67, 529, 13, 777, 67, 22760, 273, 306, 2890, 18, ...
self.rpmdb.dropCachedData()
self.rpmdb.dropCachedDataPostTransaction(list(self.tsInfo))
def runTransaction(self, cb): """takes an rpm callback object, performs the transaction"""
8a3c10072407640724399f547ef60d6916db6b93 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5445/8a3c10072407640724399f547ef60d6916db6b93/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3342, 12, 2890, 16, 2875, 4672, 3536, 88, 3223, 392, 25228, 1348, 733, 16, 11199, 326, 2492, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3342, 12, 2890, 16, 2875, 4672, 3536, 88, 3223, 392, 25228, 1348, 733, 16, 11199, 326, 2492, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def segmentlistdict_fromsearchsummary(xmldoc, live_time_program = None):
def segmentlistdict_fromsearchsummary(xmldoc, program = None):
def segmentlistdict_fromsearchsummary(xmldoc, live_time_program = None): """ Convenience wrapper for a common case usage of the segmentlistdict class: searches the process table in xmldoc for occurances of a program named live_time_program, then scans the search summary table for matching process IDs and constructs a s...
6dc92f3ab0501c8af39e7fda7ff8f54d675bd8d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/6dc92f3ab0501c8af39e7fda7ff8f54d675bd8d5/llwapp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3267, 1098, 1576, 67, 2080, 3072, 7687, 12, 2902, 2434, 16, 5402, 273, 599, 4672, 3536, 735, 9080, 4053, 364, 279, 2975, 648, 4084, 434, 326, 3267, 1098, 1576, 667, 30, 16662, 326, 1207,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3267, 1098, 1576, 67, 2080, 3072, 7687, 12, 2902, 2434, 16, 5402, 273, 599, 4672, 3536, 735, 9080, 4053, 364, 279, 2975, 648, 4084, 434, 326, 3267, 1098, 1576, 667, 30, 16662, 326, 1207,...
os.system(mp2_cmd % (chapter.props.wav_name, chapter.props.sound_name))
os.system(mp2_cmd % (chapter.wav_name, chapter.sound_name))
def __check_sound(self, chapter): chapter.wav_name_in = os.path.join(chapter.mpeg_dir, chapter.esc_name+"-in.wav") chapter.props.wav_name = os.path.join(chapter.mpeg_dir, chapter.esc_name+".wav") wav_cmd = "madplay '%s' --output=wave:'%s'" join_wav = "qwavjoin -o '%s' '%s'" cut_wav = "qwavcut -d -B %ds '%s'" mp2_cmd = ...
197c33d735d49bab858cd4dda3c7f019e3dd0db3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2675/197c33d735d49bab858cd4dda3c7f019e3dd0db3/VideoCD.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1893, 67, 29671, 12, 2890, 16, 23580, 4672, 23580, 18, 24801, 67, 529, 67, 267, 273, 1140, 18, 803, 18, 5701, 12, 31254, 18, 19951, 67, 1214, 16, 23580, 18, 742, 67, 529, 9078, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1893, 67, 29671, 12, 2890, 16, 23580, 4672, 23580, 18, 24801, 67, 529, 67, 267, 273, 1140, 18, 803, 18, 5701, 12, 31254, 18, 19951, 67, 1214, 16, 23580, 18, 742, 67, 529, 9078, ...
print start_date
def align_series(*series, **kwargs): """Aligns several TimeSeries, so that their starting and ending dates match. Series are resized and filled with mased values accordingly. The function accepts two extras parameters: - `start_date` forces the series to start at that given date, - `end_date` forces the series to end ...
5d5420b79949de348776afedf1cea705fc93d192 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/5d5420b79949de348776afedf1cea705fc93d192/tseries.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5689, 67, 10222, 30857, 10222, 16, 2826, 4333, 4672, 3536, 10044, 87, 11392, 26084, 16, 1427, 716, 3675, 5023, 471, 11463, 7811, 845, 18, 9225, 854, 21615, 471, 6300, 598, 312, 8905, 924, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5689, 67, 10222, 30857, 10222, 16, 2826, 4333, 4672, 3536, 10044, 87, 11392, 26084, 16, 1427, 716, 3675, 5023, 471, 11463, 7811, 845, 18, 9225, 854, 21615, 471, 6300, 598, 312, 8905, 924, ...
self.font = self.font_loader.font(self)
self.font = self.font_loader.font(self)
def __init__(self, style, font_loader, ruby_tags): self.font_loader = font_loader self.fontstyle = QFont.StyleNormal for attr in ruby_tags: setattr(self, attr, ruby_tags[attr]) Style.__init__(self, style, font_loader.dpi) self.emplinetype = 'none' self.font = self.font_loader.font(self)
7d41e55dca63f9cf8c624b6a2e102e77d191e8fc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/7d41e55dca63f9cf8c624b6a2e102e77d191e8fc/text.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2154, 16, 3512, 67, 6714, 16, 22155, 67, 4156, 4672, 365, 18, 5776, 67, 6714, 273, 3512, 67, 6714, 365, 18, 5776, 4060, 282, 273, 2238, 5711, 18, 2885, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2154, 16, 3512, 67, 6714, 16, 22155, 67, 4156, 4672, 365, 18, 5776, 67, 6714, 273, 3512, 67, 6714, 365, 18, 5776, 4060, 282, 273, 2238, 5711, 18, 2885, ...
self.serial.write(data)
if self.ser_newline and self.net_newline: data = ser_newline.join(data.split(net_newline)) self.serial.write(data) if self.spy: sys.stdout.write(codecs.escape_encode(data)[0]) sys.stdout.flush()
def writer(self): """loop forever and copy socket->serial""" while self.alive: try: data = self.socket.recv(1024) if not data: break self.serial.write(data) #get a bunch of bytes and send them except socket.error, msg: print msg #probably got disconnected break self.alive = False self.thread_read.join()
4ecea3dab2a6a60d58f5e81772097e13990d8140 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2937/4ecea3dab2a6a60d58f5e81772097e13990d8140/tcp_serial_redirect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2633, 12, 2890, 4672, 3536, 6498, 21238, 471, 1610, 2987, 2122, 8818, 8395, 1323, 365, 18, 11462, 30, 775, 30, 501, 273, 365, 18, 7814, 18, 18334, 12, 2163, 3247, 13, 309, 486, 501, 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, 2633, 12, 2890, 4672, 3536, 6498, 21238, 471, 1610, 2987, 2122, 8818, 8395, 1323, 365, 18, 11462, 30, 775, 30, 501, 273, 365, 18, 7814, 18, 18334, 12, 2163, 3247, 13, 309, 486, 501, 30...
iter = self.textbuffer.get_iter_at_offset(0)
__iter = self.textbuffer.get_iter_at_offset(0)
def preview_or_run_operations(self, really_delete): """Preview operations or run operations (delete files)""" operations = self.get_selected_operations() if 0 == len(operations): gtk.gdk.threads_enter() dialog = gtk.MessageDialog(self.window, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT, gtk.MESSAGE_WARNING, gtk.B...
ae6ba50f95259c1c2cc0062ebd36d3fef0dce685 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7853/ae6ba50f95259c1c2cc0062ebd36d3fef0dce685/GUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10143, 67, 280, 67, 2681, 67, 17542, 12, 2890, 16, 8654, 67, 3733, 4672, 3536, 11124, 5295, 578, 1086, 5295, 261, 3733, 1390, 15574, 5295, 273, 365, 18, 588, 67, 8109, 67, 17542, 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, 10143, 67, 280, 67, 2681, 67, 17542, 12, 2890, 16, 8654, 67, 3733, 4672, 3536, 11124, 5295, 578, 1086, 5295, 261, 3733, 1390, 15574, 5295, 273, 365, 18, 588, 67, 8109, 67, 17542, 1435, ...
"""Import people from text archive.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_('Import...')) menu.AppendItem(menuItem) self.title = _("Import People") def Execute(self,event): textDir = settings.get('bash.workDir',bosh.dirs['app']) path =...
"""Import people from text archive.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_('Import...')) menu.AppendItem(menuItem) self.title = _("Import People") def Execute(self,event): textDir = settings.get('bash.workDir',bosh.dirs['app']) path =...
def Execute(self,event): textDir = settings.get('bash.workDir',bosh.dirs['app']) #--File dialog path = balt.askSave(self.gTank,_('Export people to text file:'),textDir, 'People.txt', '*.txt') if not path: return settings['bash.workDir'] = path.head self.data.dumpText(path,self.selected) balt.showInfo(self.gTank,_('Reco...
3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7903, 12, 2890, 16, 2575, 4672, 977, 1621, 273, 1947, 18, 588, 2668, 28734, 18, 1252, 1621, 2187, 70, 17636, 18, 8291, 3292, 2910, 19486, 468, 413, 812, 6176, 589, 273, 324, 2390, 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, 7903, 12, 2890, 16, 2575, 4672, 977, 1621, 273, 1947, 18, 588, 2668, 28734, 18, 1252, 1621, 2187, 70, 17636, 18, 8291, 3292, 2910, 19486, 468, 413, 812, 6176, 589, 273, 324, 2390, 18, ...
self.args = self.setup_args() self.form = self.args
def run(self): # Exit now if __init__ failed or request is forbidden if self.failed or self.forbidden: return self.finish() if self.isForbidden(): self.makeForbidden() if self.forbidden: return self.finish()
c8d17ca10cc9cac97dc56fd30f3b8c9df9322eee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/c8d17ca10cc9cac97dc56fd30f3b8c9df9322eee/request.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 468, 9500, 2037, 309, 1001, 2738, 972, 2535, 578, 590, 353, 17987, 309, 365, 18, 7307, 578, 365, 18, 1884, 9215, 30, 327, 365, 18, 13749, 1435, 309, 365, 18, 291,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 12, 2890, 4672, 468, 9500, 2037, 309, 1001, 2738, 972, 2535, 578, 590, 353, 17987, 309, 365, 18, 7307, 578, 365, 18, 1884, 9215, 30, 327, 365, 18, 13749, 1435, 309, 365, 18, 291,...
assert self.curNode.parentNode is None, \ "not all elements have been properly closed" assert self.curNode.documentElement is not None, \ "document does not contain a root element" node = self.curNode.documentElement self.lastEvent[1] = [(END_DOCUMENT, node), None]
self.lastEvent[1] = [(END_DOCUMENT, self.document), None] self.pop()
def endDocument(self): assert self.curNode.parentNode is None, \ "not all elements have been properly closed" assert self.curNode.documentElement is not None, \ "document does not contain a root element" node = self.curNode.documentElement self.lastEvent[1] = [(END_DOCUMENT, node), None] #self.events.append((END_DOCUME...
04a1a542cbaa88136693cf26f3ee1d5d921afe14 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/04a1a542cbaa88136693cf26f3ee1d5d921afe14/pulldom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 2519, 12, 2890, 4672, 1815, 365, 18, 1397, 907, 18, 2938, 907, 353, 599, 16, 521, 315, 902, 777, 2186, 1240, 2118, 8214, 4375, 6, 1815, 365, 18, 1397, 907, 18, 5457, 1046, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 2519, 12, 2890, 4672, 1815, 365, 18, 1397, 907, 18, 2938, 907, 353, 599, 16, 521, 315, 902, 777, 2186, 1240, 2118, 8214, 4375, 6, 1815, 365, 18, 1397, 907, 18, 5457, 1046, 353, ...
if output_cset and output_cset.lower().startswith('iso-2202-'):
if output_cset and output_cset.lower().startswith('iso-2022-'):
def encode_7or8bit(msg): """Set the Content-Transfer-Encoding header to 7bit or 8bit.""" orig = msg.get_payload() if orig is None: # There's no payload. For backwards compatibility we use 7bit msg['Content-Transfer-Encoding'] = '7bit' return # We play a trick to make this go fast. If encoding to ASCII succeeds, we # ...
9ebae917d1a3af7be9711bd7148948a5cc14242b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/9ebae917d1a3af7be9711bd7148948a5cc14242b/encoders.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 67, 27, 280, 28, 3682, 12, 3576, 4672, 3536, 694, 326, 3697, 17, 5912, 17, 4705, 1446, 358, 2371, 3682, 578, 1725, 3682, 12123, 1647, 273, 1234, 18, 588, 67, 7648, 1435, 309, 164...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 67, 27, 280, 28, 3682, 12, 3576, 4672, 3536, 694, 326, 3697, 17, 5912, 17, 4705, 1446, 358, 2371, 3682, 578, 1725, 3682, 12123, 1647, 273, 1234, 18, 588, 67, 7648, 1435, 309, 164...
return FiniteField_ext_pariElement(self.__parent, -self.__value)
return FiniteField_ext_pariElement(self.__parent, -self.__value, check=False)
def __neg__(self): return FiniteField_ext_pariElement(self.__parent, -self.__value)
d17d26732f59bf8d3b821fe67313fdb16e88661d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/d17d26732f59bf8d3b821fe67313fdb16e88661d/finite_field_element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 14518, 972, 12, 2890, 4672, 327, 9458, 1137, 974, 67, 408, 67, 1065, 77, 1046, 12, 2890, 16186, 2938, 16, 300, 2890, 16186, 1132, 16, 866, 33, 8381, 13, 225, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14518, 972, 12, 2890, 4672, 327, 9458, 1137, 974, 67, 408, 67, 1065, 77, 1046, 12, 2890, 16186, 2938, 16, 300, 2890, 16186, 1132, 16, 866, 33, 8381, 13, 225, 2, -100, -100, -100,...
logger.Info("adding new mirror component on %s" % tgt_node)
info("adding new mirror component on %s" % tgt_node)
def _ExecD8DiskOnly(self, feedback_fn): """Replace a disk on the primary or secondary for dbrd8.
cff90b79a6d0d95a4694e8c3f4b9fe35f6e54506 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7542/cff90b79a6d0d95a4694e8c3f4b9fe35f6e54506/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1905, 40, 28, 6247, 3386, 12, 2890, 16, 10762, 67, 4293, 4672, 3536, 5729, 279, 4234, 603, 326, 3354, 578, 9946, 364, 1319, 13623, 28, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 1905, 40, 28, 6247, 3386, 12, 2890, 16, 10762, 67, 4293, 4672, 3536, 5729, 279, 4234, 603, 326, 3354, 578, 9946, 364, 1319, 13623, 28, 18, 2, -100, -100, -100, -100, -100, -100, -...
pre_invalidate = True if invalidation_list is not None: pre_invalidate = repo_name in invalidation_list if pre_invalidate: invalidate = self._should_invalidate(repo_name) if invalidate: log.info('invalidating cache for repository %s', repo_name) region_invalidate(_get_repo, None, repo_name) self._mark_invalidated(inv...
def get(self, repo_name, invalidation_list=None): """ Get's repository from given name, creates BackendInstance and propagates it's data from database with all additional information :param repo_name: :param invalidation_list: if a invalidation list is given the get method should not manually check if this repository ...
3d9719b1fba31a3cb453d0f4e6b40f2e769d172a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4230/3d9719b1fba31a3cb453d0f4e6b40f2e769d172a/scm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 3538, 67, 529, 16, 22996, 67, 1098, 33, 7036, 4672, 3536, 968, 1807, 3352, 628, 864, 508, 16, 3414, 11736, 1442, 471, 9619, 815, 518, 1807, 501, 628, 2063, 598, 777,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 3538, 67, 529, 16, 22996, 67, 1098, 33, 7036, 4672, 3536, 968, 1807, 3352, 628, 864, 508, 16, 3414, 11736, 1442, 471, 9619, 815, 518, 1807, 501, 628, 2063, 598, 777,...
pickle.dump(self.tags, datafile, protocol=pickle.HIGHEST_PROTOCOL)
pickle.dump(self.tags, datafile, pickle.HIGHEST_PROTOCOL)
def commit(self): """ Writes the memory contents to the data file. """ datafile = file(self.filename, "wb") pickle.dump(self.tags, datafile, protocol=pickle.HIGHEST_PROTOCOL) datafile.close()
c08ba48e0652025641aad7aa04d0c843313c2bf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/c08ba48e0652025641aad7aa04d0c843313c2bf4/wikisync.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3294, 12, 2890, 4672, 3536, 30053, 326, 3778, 2939, 358, 326, 501, 585, 18, 3536, 30682, 273, 585, 12, 2890, 18, 3459, 16, 315, 9464, 7923, 13379, 18, 8481, 12, 2890, 18, 4156, 16, 306...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3294, 12, 2890, 4672, 3536, 30053, 326, 3778, 2939, 358, 326, 501, 585, 18, 3536, 30682, 273, 585, 12, 2890, 18, 3459, 16, 315, 9464, 7923, 13379, 18, 8481, 12, 2890, 18, 4156, 16, 306...
files.append(node.FilenameToOpen())
if os.path.exists(node.FilenameToOpen()): files.append(node.FilenameToOpen())
def _Scanner(file_node, env, path): '''A SCons scanner function for .grd files, which outputs the list of files that changes in could change the output of building the .grd file. ''' if not str(file_node.rfile()).endswith('.grd'): return [] from grit import grd_reader # TODO(gspencer): Had to add the .rfile() method ...
8d48609db1dd68d5245b6d0312a16bb3038d77db /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/8d48609db1dd68d5245b6d0312a16bb3038d77db/scons.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11338, 12, 768, 67, 2159, 16, 1550, 16, 589, 4672, 9163, 37, 20487, 7683, 445, 364, 263, 3197, 72, 1390, 16, 1492, 6729, 326, 666, 434, 1390, 716, 3478, 316, 3377, 2549, 326, 876,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11338, 12, 768, 67, 2159, 16, 1550, 16, 589, 4672, 9163, 37, 20487, 7683, 445, 364, 263, 3197, 72, 1390, 16, 1492, 6729, 326, 666, 434, 1390, 716, 3478, 316, 3377, 2549, 326, 876,...
"""updates Iwstruct object by a system call to the kernel and updates internal attributes
""" Updates Iwstruct object by a system call to the kernel and updates internal attributes.
def update(self): """updates Iwstruct object by a system call to the kernel and updates internal attributes """ iwstruct = Iwstruct() i, r = iwstruct.iw_get_ext(self.ifname, self.ioctl) if i > 0: self.errorflag = i self.error = r self._parse(r)
05b40a3d0b9e46299ea3a7ddfd32be4a1e2ba258 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3159/05b40a3d0b9e46299ea3a7ddfd32be4a1e2ba258/iwlibs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 3536, 15419, 467, 91, 1697, 733, 635, 279, 2619, 745, 358, 326, 5536, 471, 4533, 2713, 1677, 18, 225, 3536, 25522, 1697, 273, 467, 91, 1697, 1435, 277, 16, 436, 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, 1089, 12, 2890, 4672, 3536, 15419, 467, 91, 1697, 733, 635, 279, 2619, 745, 358, 326, 5536, 471, 4533, 2713, 1677, 18, 225, 3536, 25522, 1697, 273, 467, 91, 1697, 1435, 277, 16, 436, 2...
unlink(entry.attrib['dst'])
unlink(entry.attrib['from'])
def InstallSymLink(self, entry): try: fmode = lstat(entry.attrib['dst'])[ST_MODE] if S_ISREG(fmode) or S_ISLNK(fmode): unlink(entry.attrib['dst']) elif S_ISDIR(fmode): system("mv %s/ %s.bak"%(entry.attrib['dst'], entry.attrib['dst'])) else: unlink(entry.attrib['dst']) except OSError, e: pass try: symlink(entry.attrib['...
caa14901b8b2628fcf33a8051aa5a53c1e5211a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/caa14901b8b2628fcf33a8051aa5a53c1e5211a0/Toolset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10284, 11901, 2098, 12, 2890, 16, 1241, 4672, 775, 30, 284, 3188, 273, 328, 5642, 12, 4099, 18, 14588, 3292, 11057, 19486, 63, 882, 67, 7038, 65, 309, 348, 67, 5127, 5937, 12, 74, 3188...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10284, 11901, 2098, 12, 2890, 16, 1241, 4672, 775, 30, 284, 3188, 273, 328, 5642, 12, 4099, 18, 14588, 3292, 11057, 19486, 63, 882, 67, 7038, 65, 309, 348, 67, 5127, 5937, 12, 74, 3188...
tab.details.connect("notify::expanded", self.cb_stream_details_expand, next_tab.details)
tab.details.connect("notify::expanded", self.cb_stream_details_expand, next_tab.details, tab.scrolled_window)
def __init__(self, parent): self.parent = parent parent.server_window = self self.win_x = int_object(100) self.win_y = int_object(100) self.source_client_crash_count = 0 self.source_client_open() self.window = gtk.Window(gtk.WINDOW_TOPLEVEL) self.parent.window_group.add_window(self.window) self.window.set_title(ln.outp...
9a711b0a1a9365e8995242a83f38c525ae5afb90 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7615/9a711b0a1a9365e8995242a83f38c525ae5afb90/sourceclientgui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 4672, 365, 18, 2938, 273, 982, 982, 18, 3567, 67, 5668, 273, 365, 365, 18, 8082, 67, 92, 273, 509, 67, 1612, 12, 6625, 13, 365, 18, 8082, 67, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 4672, 365, 18, 2938, 273, 982, 982, 18, 3567, 67, 5668, 273, 365, 365, 18, 8082, 67, 92, 273, 509, 67, 1612, 12, 6625, 13, 365, 18, 8082, 67, 93...
result={} for propo in self.browse(cr,uid,ids):
result = {} for propo in self.browse(cr, uid, ids):
def _quantity_usable_get(self, cr, uid, ids, name, args, context={}): result={} for propo in self.browse(cr,uid,ids): if not propo.segment_ids: result[propo.id]='No segments defined' continue qty = 0 for segment in propo.segment_ids: if segment.quantity_usable == 0: result[propo.id]='Usable Quantity missing in a Segmen...
7ee897432c7e7d5a5c8e889fc429c3c1b66627fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/7ee897432c7e7d5a5c8e889fc429c3c1b66627fd/dm_campaign.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16172, 67, 16665, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 12938, 4672, 563, 273, 2618, 364, 450, 1631, 316, 365, 18, 25731, 12, 3353, 16, 455...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16172, 67, 16665, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 12938, 4672, 563, 273, 2618, 364, 450, 1631, 316, 365, 18, 25731, 12, 3353, 16, 455...
return h.safesort(self._site.get_many(keys), reverse=True, lambda key=list: list.last_update)
return h.safesort(self._site.get_many(keys), reverse=True, key=lambda list: list.last_update)
def _get_lists(self): q = { "type": "/type/list", "seeds": {"key": self.key}, "limit": 1000 } keys = self._site.things(q) return h.safesort(self._site.get_many(keys), reverse=True, lambda key=list: list.last_update)
7d9ce8ad5ec60720ed4c5af4ab6b194b1a74f8e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/7d9ce8ad5ec60720ed4c5af4ab6b194b1a74f8e9/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 9772, 12, 2890, 4672, 1043, 273, 288, 315, 723, 6877, 2206, 723, 19, 1098, 3113, 315, 307, 9765, 6877, 12528, 856, 6877, 365, 18, 856, 5779, 315, 3595, 6877, 4336, 289, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 9772, 12, 2890, 4672, 1043, 273, 288, 315, 723, 6877, 2206, 723, 19, 1098, 3113, 315, 307, 9765, 6877, 12528, 856, 6877, 365, 18, 856, 5779, 315, 3595, 6877, 4336, 289, 1...
log.debug("%s: select() timeout (accept/SOCKS stage)!", router.nickname)
log.debug("%s: select() timeout (accept/SOCKS stage)! %d sockets remain", router.nickname, len(pending_sockets))
def exit_test(self, router): """ Perform port and IP tests on router. Will block until all port tests are finished. Can raise the following errors: socket.error - errno == errno.ECONNREFUSED: Tor refused our SOCKS connected. """ test_data = {} test_ports = [] recv_sockets = [] listen_sockets = [] self.test_exit = route...
4c865d62c51c3e1a9d19c722ba2e4c12fc91c4eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9986/4c865d62c51c3e1a9d19c722ba2e4c12fc91c4eb/torbel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2427, 67, 3813, 12, 2890, 16, 4633, 4672, 3536, 11217, 1756, 471, 2971, 7434, 603, 4633, 18, 9980, 1203, 3180, 777, 1756, 7434, 854, 6708, 18, 4480, 1002, 326, 3751, 1334, 30, 2987, 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, 2427, 67, 3813, 12, 2890, 16, 4633, 4672, 3536, 11217, 1756, 471, 2971, 7434, 603, 4633, 18, 9980, 1203, 3180, 777, 1756, 7434, 854, 6708, 18, 4480, 1002, 326, 3751, 1334, 30, 2987, 18, ...
content = [HTML_HEAD % ("../" + STYLESHEET_NAME)]
content = [HTML_HEAD % (("../" * len(e.repo)) + STYLESHEET_NAME)]
def test(): load_templates() entries = tests2singledocs() """ label: Export mode: DOM tabs: DOM urls: http://dev.opera.com repo: dom index: 0002 file_name: 0002.export.html desc: - Press the Export button.- Verify that the current view is displayed in a new tab. """ if not os.path.exists(PAPA): os.makedirs(PAPA) inde...
cd84f51039f37c5d3b8191d117d903ad984bada7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10925/cd84f51039f37c5d3b8191d117d903ad984bada7/TESTS2PAPA.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 13332, 1262, 67, 8502, 1435, 3222, 273, 7434, 22, 2470, 1259, 22280, 1435, 225, 3536, 1433, 30, 225, 11054, 1965, 30, 4703, 10920, 30, 4703, 6903, 30, 1062, 2207, 5206, 18, 4063, 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, 1842, 13332, 1262, 67, 8502, 1435, 3222, 273, 7434, 22, 2470, 1259, 22280, 1435, 225, 3536, 1433, 30, 225, 11054, 1965, 30, 4703, 10920, 30, 4703, 6903, 30, 1062, 2207, 5206, 18, 4063, 6...
get_params = '&'.join(['%s=%s' % (x[0],','.join(x[1])) for x in
get_params = '&'.join(['%s=%s' % (x[0],''.join(x[1])) for x in
def pagination(context, adjacent_pages=5): """ Return the list of A tags with links to pages. """ page_list = range( max(1,context['page'] - adjacent_pages), min(context['pages'],context['page'] + adjacent_pages) + 1) lower_page = None higher_page = None if not 1 == context['page']: lower_page = context['page'] - 1 ...
25e0f784cc79b9e9a511a5a6da36e962066abb66 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6072/25e0f784cc79b9e9a511a5a6da36e962066abb66/common_extras.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8842, 12, 2472, 16, 16335, 67, 7267, 33, 25, 4672, 3536, 2000, 326, 666, 434, 432, 2342, 598, 4716, 358, 4689, 18, 3536, 225, 1363, 67, 1098, 273, 1048, 12, 943, 12, 21, 16, 2472, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8842, 12, 2472, 16, 16335, 67, 7267, 33, 25, 4672, 3536, 2000, 326, 666, 434, 432, 2342, 598, 4716, 358, 4689, 18, 3536, 225, 1363, 67, 1098, 273, 1048, 12, 943, 12, 21, 16, 2472, 32...
limm t1, imm srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)"
srai t2, reg, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)"
def macroop BTS_P_R { rdip t7 limm t1, imm srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)" limm t3, 1 rol t3, t3, reg ldst t1, seg, [1, t2, t7] sext t0, t1, reg, flags=(CF,) or t1, t1, t3 st t1, seg, [1, t2, t7], disp
b5d40183829f5aa6f8f7196aad11cef037d04443 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6787/b5d40183829f5aa6f8f7196aad11cef037d04443/bit_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 605, 8047, 67, 52, 67, 54, 288, 9437, 625, 268, 27, 272, 354, 77, 268, 22, 16, 960, 16, 7751, 3074, 18, 892, 1225, 422, 1725, 13, 692, 890, 294, 14015, 3074, 18, 892, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 605, 8047, 67, 52, 67, 54, 288, 9437, 625, 268, 27, 272, 354, 77, 268, 22, 16, 960, 16, 7751, 3074, 18, 892, 1225, 422, 1725, 13, 692, 890, 294, 14015, 3074, 18, 892, 1...
collection.dublin_core = 'relation' identifier = models.CharField(maxlength=250) title = models.CharField(maxlength=250) creator = models.CharField(maxlength=250) date = models.DateField()
face_plage = models.CharField(maxlength=250, blank=True) id = models.CharField(maxlength=250, primary_key=True, verbose_name='identifier') duree = models.CharField(maxlength=250, blank=True) dates_enregistr = models.CharField(maxlength=250, blank=True) etat = models.CharField(maxlength=250, blank=True) region_village =...
def quick_search(self, pattern): return super(MediaItemManager, self).get_query_set().filter( Q(title__icontains=pattern) | Q(creator__icontains=pattern) | Q(identifier__icontains=pattern) | Q(description__icontains=pattern) )
f681344a89dfd0dfe86e90ff4d7f8588d2af7617 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12043/f681344a89dfd0dfe86e90ff4d7f8588d2af7617/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9549, 67, 3072, 12, 2890, 16, 1936, 4672, 327, 2240, 12, 5419, 1180, 1318, 16, 365, 2934, 588, 67, 2271, 67, 542, 7675, 2188, 12, 2238, 12, 2649, 972, 335, 1580, 4167, 33, 4951, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9549, 67, 3072, 12, 2890, 16, 1936, 4672, 327, 2240, 12, 5419, 1180, 1318, 16, 365, 2934, 588, 67, 2271, 67, 542, 7675, 2188, 12, 2238, 12, 2649, 972, 335, 1580, 4167, 33, 4951, 13, ...