rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
setup( configuration=configuration )
from version import version as version setup( name = 'scipy', version = version, maintainer = "SciPy Developers", maintainer_email = "scipy-dev@scipy.org", description = "Scientific Algorithms Library for Python", url = "http://www.scipy.org", license = 'BSD', configuration=configuration )
def setup_package(): from numpy.distutils.core import setup from numpy.distutils.misc_util import Configuration old_path = os.getcwd() local_path = os.path.dirname(os.path.abspath(sys.argv[0])) os.chdir(local_path) sys.path.insert(0,local_path) sys.path.insert(0,os.path.join(local_path,'Lib')) # to retrive version t...
bc6100f003941bc7ae54f63adea8af817acfdf0f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/bc6100f003941bc7ae54f63adea8af817acfdf0f/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 5610, 13332, 225, 628, 3972, 18, 4413, 5471, 18, 3644, 1930, 3875, 628, 3972, 18, 4413, 5471, 18, 23667, 67, 1367, 1930, 4659, 225, 1592, 67, 803, 273, 1140, 18, 588, 11089, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 5610, 13332, 225, 628, 3972, 18, 4413, 5471, 18, 3644, 1930, 3875, 628, 3972, 18, 4413, 5471, 18, 23667, 67, 1367, 1930, 4659, 225, 1592, 67, 803, 273, 1140, 18, 588, 11089, ...
self.grid.addWidget(cb.parentWidget(), i % 2, i / 2)
self.grid.addWidget(cb, i % 2, i / 2)
def __init__(self, parent=None, signalManager = None): OWWidget.__init__(self, parent, signalManager, "AssociationRulesViewer")
342c5c7a1be28b9c05dadefc8d2f5fbc7e82781f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/342c5c7a1be28b9c05dadefc8d2f5fbc7e82781f/OWAssociationRulesViewer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 33, 7036, 16, 4277, 1318, 273, 599, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318, 16, 315, 7174, 4478, 18415, 7923, 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, 1001, 2738, 972, 12, 2890, 16, 982, 33, 7036, 16, 4277, 1318, 273, 599, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318, 16, 315, 7174, 4478, 18415, 7923, 2, -10...
return ([0.2,0.8,0.4])
return ([0.0,0.4,1.0])
def getBaseColor(self, base): """ Returns a color according to DNA base type. """ if base=="G": return ([0.8,0.5,0.0]) elif base=="C": return ([0.8,0.1,0.0]) if base=="A": return ([0.2,0.8,0.4]) elif base=="T": return ([0.0,0.6,0.8]) else: return ([0.5,0.5,0.5])
cbc143d808cf827d03bc69ee526e2fca8459d46d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/cbc143d808cf827d03bc69ee526e2fca8459d46d/DnaCylinderChunks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8297, 2957, 12, 2890, 16, 1026, 4672, 3536, 2860, 279, 2036, 4888, 358, 463, 11277, 1026, 618, 18, 3536, 309, 1026, 31713, 43, 6877, 327, 23265, 20, 18, 28, 16, 20, 18, 25, 16, 20, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8297, 2957, 12, 2890, 16, 1026, 4672, 3536, 2860, 279, 2036, 4888, 358, 463, 11277, 1026, 618, 18, 3536, 309, 1026, 31713, 43, 6877, 327, 23265, 20, 18, 28, 16, 20, 18, 25, 16, 20, 1...
href = item.abshref(val)
href = urlnormalize(item.abshref(val))
def serialize_elem(self, elem, item, nsrmap=NSRMAP): buffer = self.buffer if not isinstance(elem.tag, basestring) \ or namespace(elem.tag) not in nsrmap: return tag = prefixname(elem.tag, nsrmap) # Previous layers take care of @name id = elem.attrib.pop('id', None) if id is not None: href = '#'.join((item.href, id)) of...
7df1f79d9a89502038bef47b49c05c6b40395e19 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/7df1f79d9a89502038bef47b49c05c6b40395e19/writer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4472, 67, 10037, 12, 2890, 16, 3659, 16, 761, 16, 3153, 86, 1458, 33, 3156, 54, 8352, 4672, 1613, 273, 365, 18, 4106, 309, 486, 1549, 12, 10037, 18, 2692, 16, 10699, 13, 521, 578, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4472, 67, 10037, 12, 2890, 16, 3659, 16, 761, 16, 3153, 86, 1458, 33, 3156, 54, 8352, 4672, 1613, 273, 365, 18, 4106, 309, 486, 1549, 12, 10037, 18, 2692, 16, 10699, 13, 521, 578, 19...
this = apply(_quickfix.new_StrategyParameterName, args)
this = _quickfix.new_StrategyParameterName(*args)
def __init__(self, *args): this = apply(_quickfix.new_StrategyParameterName, 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, 4525, 24586, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 4525, 24586, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, ...
print(source, target)
def connect(source, target) : print(source, target) monitor_client.connect(source,target) time.sleep( connect_wait_time )
a2442332aa3bb562e15965cc84069cf1a69626d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1456/a2442332aa3bb562e15965cc84069cf1a69626d3/jack_bus_connect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 12, 3168, 16, 1018, 13, 294, 225, 6438, 67, 2625, 18, 3612, 12, 3168, 16, 3299, 13, 813, 18, 19607, 12, 3077, 67, 7048, 67, 957, 262, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 12, 3168, 16, 1018, 13, 294, 225, 6438, 67, 2625, 18, 3612, 12, 3168, 16, 3299, 13, 813, 18, 19607, 12, 3077, 67, 7048, 67, 957, 262, 225, 2, -100, -100, -100, -100, -100, -100...
c.execute('drop table if exists ' + self.evtab) c.execute('drop table if exists ' + self.ctxtab) table_ctx = self.create_table(self.ctxcols, self.ctxtab, 'char(80)', 'unique') c.execute(table_ctx) table_ev = self.create_table(self.evcols, self.evtab, 'double default null', '') c.execute(table_ev)
c.execute(stmt, (curr_id,) + tuple(evitems.values())) def ctx(self, curr_id, ctxitems): keys = "" first = True for key in ctxitems.keys(): if first: first = False else: keys += ", " keys += "`%s`" % (key) stmt = "insert into `%s` (id, %s) values (%s)" % (self.ctxtab, keys, self.quests[len(ctxitems)+1]) c = self.conn....
def __init__(self, options, tables, ctxcols, evcols): import MySQLdb
25969fbabd89a95e51ce61f179d2a3d9d6ed2cd4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2142/25969fbabd89a95e51ce61f179d2a3d9d6ed2cd4/statev_sql.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 702, 16, 4606, 16, 1103, 6842, 16, 2113, 6842, 4672, 1930, 13485, 1966, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 702, 16, 4606, 16, 1103, 6842, 16, 2113, 6842, 4672, 1930, 13485, 1966, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
def letter_iterator(self, letter):
def _fixed_point_iterator(self, letter):
def letter_iterator(self, letter): r""" Returns an iterator of the letters of the fixed point of ``self`` starting with ``letter``.
91d4f00c9bd422ee38a0c55f76c789b46ffb73c1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/91d4f00c9bd422ee38a0c55f76c789b46ffb73c1/morphism.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12429, 67, 1153, 67, 9838, 12, 2890, 16, 9471, 4672, 436, 8395, 2860, 392, 2775, 434, 326, 13768, 434, 326, 5499, 1634, 434, 12176, 2890, 10335, 5023, 598, 12176, 13449, 68, 8338, 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, 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, 12429, 67, 1153, 67, 9838, 12, 2890, 16, 9471, 4672, 436, 8395, 2860, 392, 2775, 434, 326, 13768, 434, 326, 5499, 1634, 434, 12176, 2890, 10335, 5023, 598, 12176, 13449, 68, 8338, 2...
if prefix is None: prefix = self.prefix
def update_section_numbers(self, node, prefix=None, depth=0): depth += 1
e722dde08cbe0b4c53b332959bff15ca29b586d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/e722dde08cbe0b4c53b332959bff15ca29b586d9/parts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 3464, 67, 13851, 12, 2890, 16, 756, 16, 1633, 33, 7036, 16, 3598, 33, 20, 4672, 3598, 1011, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 3464, 67, 13851, 12, 2890, 16, 756, 16, 1633, 33, 7036, 16, 3598, 33, 20, 4672, 3598, 1011, 404, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
data = self.send_request(method, auth, reqParams)
return self.send_request(method, auth, reqParams)
def send_request(self, method, auth=False, input=None): '''Make an HTTP request to a server method.
0df4c6be7581584ac4347bf226b3ea7c8defecf0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9952/0df4c6be7581584ac4347bf226b3ea7c8defecf0/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 2293, 12, 2890, 16, 707, 16, 1357, 33, 8381, 16, 810, 33, 7036, 4672, 9163, 6464, 392, 2239, 590, 358, 279, 1438, 707, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 1366, 67, 2293, 12, 2890, 16, 707, 16, 1357, 33, 8381, 16, 810, 33, 7036, 4672, 9163, 6464, 392, 2239, 590, 358, 279, 1438, 707, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
expected = """
preamble = """
def test_int_is_true_of_bool(self): ops = """ [i0, i1] i2 = int_gt(i0, i1) i3 = int_is_true(i2) i4 = int_is_true(i3) guard_value(i4, 0) [i0, i1] jump(i0, i1) """ expected = """ [i0, i1] i2 = int_gt(i0, i1) guard_false(i2) [i0, i1] jump(i0, i1) """ self.optimize_loop(ops, 'Not, Not', expected)
86d3ac7fcd8c34942685a0bee0fe0514a1a06a5a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/86d3ac7fcd8c34942685a0bee0fe0514a1a06a5a/test_optimizeopt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 474, 67, 291, 67, 3767, 67, 792, 67, 6430, 12, 2890, 4672, 6727, 273, 3536, 306, 77, 20, 16, 277, 21, 65, 277, 22, 273, 509, 67, 4521, 12, 77, 20, 16, 277, 21, 13, 277,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 474, 67, 291, 67, 3767, 67, 792, 67, 6430, 12, 2890, 4672, 6727, 273, 3536, 306, 77, 20, 16, 277, 21, 65, 277, 22, 273, 509, 67, 4521, 12, 77, 20, 16, 277, 21, 13, 277,...
FL_Coord, STRING],
FL_Coord, STRING],
def fl_create_box(type, x, y, w, h, label): """ fl_create_box(type, x, y, w, h, label) -> object """ retval = _fl_create_box(type, x, y, w, h, label) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 2640, 67, 2147, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 4672, 3536, 1183, 67, 2640, 67, 2147, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 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, 1183, 67, 2640, 67, 2147, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 4672, 3536, 1183, 67, 2640, 67, 2147, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 13, ...
def get_inprocs(self, seglist): """ Return a list of the process IDs for the processes whose input segments intersect some part of the segmentlist seglist. """ return [row.process_id for row in self if seglist.intersects_segment(row.get_in())] def get_outprocs(self, seglist): """ Return a list of the process IDs for t...
def get_inprocs(self, seglist): """ Return a list of the process IDs for the processes whose input segments intersect some part of the segmentlist seglist. """ return [row.process_id for row in self if seglist.intersects_segment(row.get_in())]
a25ca2c7dcef7a6492d883347ee7bdf5c1314b78 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/a25ca2c7dcef7a6492d883347ee7bdf5c1314b78/lsctables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 267, 27537, 12, 2890, 16, 2291, 1098, 4672, 3536, 2000, 279, 666, 434, 326, 1207, 7115, 364, 326, 8488, 8272, 810, 5155, 9136, 2690, 1087, 434, 326, 3267, 1098, 2291, 1098, 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, 336, 67, 267, 27537, 12, 2890, 16, 2291, 1098, 4672, 3536, 2000, 279, 666, 434, 326, 1207, 7115, 364, 326, 8488, 8272, 810, 5155, 9136, 2690, 1087, 434, 326, 3267, 1098, 2291, 1098, 18, ...
self.buttonbox = gtk.HBox(False, 6) self.pack_end(self.buttonbox, False)
buttonhbox = gtk.HBox(False, 6) self.pack_end(buttonhbox, False)
def __init__(self, parent): gtk.VBox.__init__(self, False, 6)
337e2628519817abde9df50dbed69c769add8439 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2651/337e2628519817abde9df50dbed69c769add8439/arkadas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 4672, 22718, 18, 58, 3514, 16186, 2738, 972, 12, 2890, 16, 1083, 16, 1666, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 4672, 22718, 18, 58, 3514, 16186, 2738, 972, 12, 2890, 16, 1083, 16, 1666, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
setup_tool.setBaselineContext('profile-%s:uninstall'%PROJECT_NAME)
def install(portal, reinstall=False): setup_tool = getToolByName(portal, 'portal_setup') setup_tool.setBaselineContext('profile-%s:uninstall'%PROJECT_NAME) if reinstall: setup_tool.setBaselineContext('profile-%s:reinstall'%PROJECT_NAME) setup_tool.runAllImportStepsFromProfile('profile-%s:reinstall'%PROJECT_NAME) return...
faf4d3baa1ac38c0e416c4dd9f63909cb380f366 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10421/faf4d3baa1ac38c0e416c4dd9f63909cb380f366/Install.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 12, 24386, 16, 283, 5425, 33, 8381, 4672, 3875, 67, 6738, 273, 336, 6364, 5911, 12, 24386, 16, 296, 24386, 67, 8401, 6134, 309, 283, 5425, 30, 3875, 67, 6738, 18, 542, 16635, 104...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 12, 24386, 16, 283, 5425, 33, 8381, 4672, 3875, 67, 6738, 273, 336, 6364, 5911, 12, 24386, 16, 296, 24386, 67, 8401, 6134, 309, 283, 5425, 30, 3875, 67, 6738, 18, 542, 16635, 104...
self.browsedpath = '/'.join(scope.getPhysicalPath()) self.browsed_url = scope.absolute_url()
def setScopeInfos(self, context, request, showbreadcrumbs): """ set scope and all infos related to scope """ browsedpath = request.get('browsedpath', self.browsedpath) # find browser root and rootpath if undefined if self.root is None : if self.rootpath : self.root = aq_inner(self.portal.restrictedTraverse(self.rootpat...
97aa11d6f0e35c60264e866a90fbfbc8e8868d0d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9052/97aa11d6f0e35c60264e866a90fbfbc8e8868d0d/finder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 3876, 7655, 12, 2890, 16, 819, 16, 590, 16, 2405, 31603, 4672, 3536, 444, 2146, 471, 777, 10626, 3746, 358, 2146, 3536, 324, 492, 730, 803, 273, 590, 18, 588, 2668, 70, 492, 730, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 3876, 7655, 12, 2890, 16, 819, 16, 590, 16, 2405, 31603, 4672, 3536, 444, 2146, 471, 777, 10626, 3746, 358, 2146, 3536, 324, 492, 730, 803, 273, 590, 18, 588, 2668, 70, 492, 730, ...
def GetIPInfo(baseurl, ip=None, timezone=False) : """Same as GetCity and GetCountry, but a baseurl is required. This is for if you want to use a different server that uses the the php scripts on ipinfodb.com.""" passdict = {"output":"json"} if ip : try : passdict["ip"] = socket.gethostbyaddr(ip)[2][0] except : passdic...
def GetCity(self, ip=None, timezone=False) : """Gets the location with the context of the city of the given IP. If no IP is given, then the location of the client is given. The timezone option defaults to False, to spare the server some queries.""" baseurl = "http://api.ipinfodb.com/v2/ip_query.php" return self.GetIP...
def GetIPInfo(baseurl, ip=None, timezone=False) : """Same as GetCity and GetCountry, but a baseurl is required. This is for if you want to use a different server that uses the the php scripts on ipinfodb.com.""" passdict = {"output":"json"} if ip : try : passdict["ip"] = socket.gethostbyaddr(ip)[2][0] except : passdic...
f5d3e4af2e9677952e2fb6450f9be98ad4bd95c8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8316/f5d3e4af2e9677952e2fb6450f9be98ad4bd95c8/pyipinfodb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 22236, 12, 2890, 16, 2359, 33, 7036, 16, 6371, 33, 8381, 13, 294, 3536, 3002, 326, 2117, 598, 326, 819, 434, 326, 12797, 434, 326, 864, 2971, 18, 225, 971, 1158, 2971, 353, 864, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22236, 12, 2890, 16, 2359, 33, 7036, 16, 6371, 33, 8381, 13, 294, 3536, 3002, 326, 2117, 598, 326, 819, 434, 326, 12797, 434, 326, 864, 2971, 18, 225, 971, 1158, 2971, 353, 864, ...
self.execCommand0('SELECT setRunDeleted()' % dbN)
self.dropDb(dbN) self.execCommand0("SELECT setRunDeleted('%s')" % dbN)
def run(self, pattern): self.connect(self.dbUName, self.dbUPwd)
a52cbe4e1b554d851875ae8e78d5902b5841ec38 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6558/a52cbe4e1b554d851875ae8e78d5902b5841ec38/dropDatabases.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 1936, 4672, 365, 18, 3612, 12, 2890, 18, 1966, 57, 461, 16, 365, 18, 1966, 3079, 3623, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12, 2890, 16, 1936, 4672, 365, 18, 3612, 12, 2890, 18, 1966, 57, 461, 16, 365, 18, 1966, 3079, 3623, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
for shape in self.diagram.GetShapeList(): if shape.GetParent() == None: shape.SetCanvas(None) shape.Destroy() self.diagram.Destroy()
print "agentCanvas:OnDestroy - Check for running society and give option to terminate"
def OnDestroy(self, evt): # Do some cleanup for shape in self.diagram.GetShapeList(): if shape.GetParent() == None: shape.SetCanvas(None) shape.Destroy() self.diagram.Destroy()
df8c47f7c4e951ef7f27c341fd8f606413ec0630 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2947/df8c47f7c4e951ef7f27c341fd8f606413ec0630/agentCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 10740, 12, 2890, 16, 6324, 4672, 468, 2256, 2690, 6686, 364, 2179, 316, 365, 18, 12264, 1940, 18, 967, 8500, 682, 13332, 309, 2179, 18, 967, 3054, 1435, 422, 599, 30, 2179, 18, 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, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 10740, 12, 2890, 16, 6324, 4672, 468, 2256, 2690, 6686, 364, 2179, 316, 365, 18, 12264, 1940, 18, 967, 8500, 682, 13332, 309, 2179, 18, 967, 3054, 1435, 422, 599, 30, 2179, 18, 6...
testData.setBins(2, 2)
testData.setBins(4, 4)
def writeInfoFile(self, outFile = None): """Write information about the current processing into a file
8862dcf26a4225de67d49c677cfa7010b7a8e0ce /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8436/8862dcf26a4225de67d49c677cfa7010b7a8e0ce/transformations.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 966, 812, 12, 2890, 16, 21651, 273, 599, 4672, 3536, 3067, 1779, 2973, 326, 783, 4929, 1368, 279, 585, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 966, 812, 12, 2890, 16, 21651, 273, 599, 4672, 3536, 3067, 1779, 2973, 326, 783, 4929, 1368, 279, 585, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
it = model.get_iter((row[0],)) else: it = model.get_iter(row) elt = model.get(it, 0)[0]
parent_iter = model.iter_parent (it) if parent_iter != None: it = parent_iter elt = model.get_value(it, 0)
def _get_selection(self, root=False): """ Shortcut method to retrieve the treeview items selected. """ ret = [] sel = self.current_treeview.get_selection() (rows, model) = sel.get_selected_rows() for row in rows: if root: it = model.get_iter((row[0],)) else: it = model.get_iter(row) elt = model.get(it, 0)[0] if elt not...
54bfc371a3f79e7e15f54029fe558fd7717c5483 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11070/54bfc371a3f79e7e15f54029fe558fd7717c5483/jamendo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 10705, 12, 2890, 16, 1365, 33, 8381, 4672, 3536, 7925, 5150, 707, 358, 4614, 326, 2151, 1945, 1516, 3170, 18, 3536, 325, 273, 5378, 357, 273, 365, 18, 2972, 67, 3413, 194...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10705, 12, 2890, 16, 1365, 33, 8381, 4672, 3536, 7925, 5150, 707, 358, 4614, 326, 2151, 1945, 1516, 3170, 18, 3536, 325, 273, 5378, 357, 273, 365, 18, 2972, 67, 3413, 194...
if usesources: for location in origpo.getlocations(): if location in newpofile.locationindex: newpo = newpofile.locationindex[location] if newpo is not None: foundsource = True newmatches.append((newpo, localpo)) continue
for location in origpo.getlocations(): if location in newpofile.locationindex: newpo = newpofile.locationindex[location] if newpo is not None and newpo.source == localpo.source: foundsource = True newmatches.append((newpo, localpo)) continue
def updatepofile(self, session, dirname, pofilename): """updates an individual PO file from version control""" if "admin" not in self.getrights(session): raise RightsError(session.localize("You do not have rights to update files here")) pathname = self.getuploadpath(dirname, pofilename) # read from version control if o...
cf04644b1250aaeeec36696ee21000bbfd16273d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11388/cf04644b1250aaeeec36696ee21000bbfd16273d/projects.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 1631, 768, 12, 2890, 16, 1339, 16, 4283, 16, 293, 792, 2550, 4672, 3536, 14703, 392, 7327, 13803, 585, 628, 1177, 3325, 8395, 309, 315, 3666, 6, 486, 316, 365, 18, 588, 23700, 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, 1089, 1631, 768, 12, 2890, 16, 1339, 16, 4283, 16, 293, 792, 2550, 4672, 3536, 14703, 392, 7327, 13803, 585, 628, 1177, 3325, 8395, 309, 315, 3666, 6, 486, 316, 365, 18, 588, 23700, 12...
if total_executed <= 2: total_executed = 0 total_failed = 0
job_failure_count = 0 for r in failed_rows: test_name = r[0] job_test_pattern = re.compile('SERVER|CLIENT\\_JOB\.[\d]') if job_test_pattern.match(test_name): job_failure_count += 1 total_executed -= job_failure_count total_failed = len(failed_rows) - job_failure_count if total_executed > 0: success_rate = 100 - ((...
def get_execution_details(self): """ Get test execution details for this job.
a7dfba72a39dcd5753b1ad1694d4de4b03802576 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12268/a7dfba72a39dcd5753b1ad1694d4de4b03802576/scheduler_models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 16414, 67, 6395, 12, 2890, 4672, 3536, 968, 1842, 4588, 3189, 364, 333, 1719, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 16414, 67, 6395, 12, 2890, 4672, 3536, 968, 1842, 4588, 3189, 364, 333, 1719, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
self.downloader = None self.downloader_id = None
def __init__(self, entry, linkNumber=0, feed_id=None, parent_id=None): self.feed_id = feed_id self.parent_id = parent_id self.isContainerItem = None self.isVideo = False self.seen = False self.autoDownloaded = False self.pendingManualDL = False self.downloader = None self.downloader_id = None self.downloadedTime = None...
e0a845dc546e04bbb73d5a6db02ac7c076f6f9a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/e0a845dc546e04bbb73d5a6db02ac7c076f6f9a0/item.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1241, 16, 1692, 1854, 33, 20, 16, 4746, 67, 350, 33, 7036, 16, 982, 67, 350, 33, 7036, 4672, 365, 18, 7848, 67, 350, 273, 4746, 67, 350, 365, 18, 293...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1241, 16, 1692, 1854, 33, 20, 16, 4746, 67, 350, 33, 7036, 16, 982, 67, 350, 33, 7036, 4672, 365, 18, 7848, 67, 350, 273, 4746, 67, 350, 365, 18, 293...
try: dummy = self.config['metadata_exclude_as_update_trigger'].index(key)
if key in self.config['metadata_exclude_as_update_trigger']:
def processMythTvMetaData(self): '''Check each video file in the mythvideo directories download graphics files and meta data then update MythTV data base meta data with any new information. ''' # If there were directories specified move them and update the MythTV db meta data accordingly if self.config['video_dir']: if...
d7120a7dc6b48c0861502d071fe4f1897fab913e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/d7120a7dc6b48c0861502d071fe4f1897fab913e/jamu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12062, 451, 56, 90, 6998, 12, 2890, 4672, 9163, 1564, 1517, 6191, 585, 316, 326, 3399, 451, 9115, 6402, 4224, 17313, 1390, 471, 2191, 501, 1508, 1089, 8005, 451, 15579, 501, 1026, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12062, 451, 56, 90, 6998, 12, 2890, 4672, 9163, 1564, 1517, 6191, 585, 316, 326, 3399, 451, 9115, 6402, 4224, 17313, 1390, 471, 2191, 501, 1508, 1089, 8005, 451, 15579, 501, 1026, ...
s.write("<tr><td><b>%s</b></td> <td>%s</td></tr>\n" % (value.label, value.value)) for value in status.values: s.write("<tr><td><b>%s</b></td> <td>%s</td></tr>\n" % (value.label, value.value))
s.write("<tr><td><b>%s</b></td> <td>%s</td></tr>\n" % (value.key, value.value))
def fillout_info(self, id): item = self._tree_control.GetPyData(id) if (item == None): return status = item.status self._html_control.Freeze() s = cStringIO.StringIO() s.write("<html><body>") s.write("<b>Component</b>: %s<br>\n" % (status.name)) s.write("<b>Message</b>: %s<br>\n" % (status.message)) s.write("<b>Hard...
67288eaf413f58f15091be2cfa722138268355fe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10233/67288eaf413f58f15091be2cfa722138268355fe/monitor_panel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 661, 14533, 67, 1376, 12, 2890, 16, 612, 4672, 761, 273, 365, 6315, 3413, 67, 7098, 18, 967, 9413, 751, 12, 350, 13, 309, 261, 1726, 422, 599, 4672, 327, 225, 1267, 273, 761, 18, 232...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 661, 14533, 67, 1376, 12, 2890, 16, 612, 4672, 761, 273, 365, 6315, 3413, 67, 7098, 18, 967, 9413, 751, 12, 350, 13, 309, 261, 1726, 422, 599, 4672, 327, 225, 1267, 273, 761, 18, 232...
query = ('http://docs.google.com/feeds/documents/private/full'
query = ('https://docs.google.com/feeds/documents/private/full'
def testExportSpreadsheet(self): query = ('http://docs.google.com/feeds/documents/private/full' '/-/spreadsheet?max-results=1') feed = self.doclist.QueryDocumentListFeed(query) file_paths = ['./downloadedTest.xls', './downloadedTest.csv', './downloadedTest.pdf', './downloadedTest.ods', './downloadedTest.tsv', './downlo...
6a1d41e0ebd05471e1aa915fdf0a98f4af4bce69 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5609/6a1d41e0ebd05471e1aa915fdf0a98f4af4bce69/service_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 6144, 28719, 8118, 12, 2890, 4672, 843, 273, 7707, 4528, 2207, 8532, 18, 9536, 18, 832, 19, 7848, 87, 19, 24795, 19, 1152, 19, 2854, 11, 1173, 17, 19, 26007, 8118, 35, 1896, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 6144, 28719, 8118, 12, 2890, 4672, 843, 273, 7707, 4528, 2207, 8532, 18, 9536, 18, 832, 19, 7848, 87, 19, 24795, 19, 1152, 19, 2854, 11, 1173, 17, 19, 26007, 8118, 35, 1896, 17, ...
class AudioMetadataListener (operations.OperationListener):
class AudioMetadataListener(operations.OperationListener):
def create_source(source, location, src_prop="location"): src = safe_element_factory_make(source) src.set_property(src_prop, location) return src
016aec4a85d3438c0d49f1f8b2012e23eb7805ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2207/016aec4a85d3438c0d49f1f8b2012e23eb7805ec/audio.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3168, 12, 3168, 16, 2117, 16, 1705, 67, 5986, 1546, 3562, 6, 4672, 1705, 273, 4183, 67, 2956, 67, 6848, 67, 6540, 12, 3168, 13, 1705, 18, 542, 67, 4468, 12, 4816, 67, 5986, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 67, 3168, 12, 3168, 16, 2117, 16, 1705, 67, 5986, 1546, 3562, 6, 4672, 1705, 273, 4183, 67, 2956, 67, 6848, 67, 6540, 12, 3168, 13, 1705, 18, 542, 67, 4468, 12, 4816, 67, 5986, ...
retval = self.parse_DNADR(context, operands)
self.parse_DNADR(context, operands)
def parse_MinusDNADR(self, context, operands): retval = self.parse_DNADR(context, operands) words = [] if context.currentRecord.code != None: for i in range(len(context.currentRecord.code)): words.append(~context.currentRecord.code[i]) context.currentRecord.code = words context.currentRecord.complete = True return retv...
0c60b51cc3a2e291ba9533bb9ab17f2ef2a0018f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/0c60b51cc3a2e291ba9533bb9ab17f2ef2a0018f/directive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 18434, 8609, 1880, 54, 12, 2890, 16, 819, 16, 14883, 4672, 365, 18, 2670, 67, 8609, 1880, 54, 12, 2472, 16, 14883, 13, 4511, 273, 5378, 309, 819, 18, 2972, 2115, 18, 710, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 18434, 8609, 1880, 54, 12, 2890, 16, 819, 16, 14883, 4672, 365, 18, 2670, 67, 8609, 1880, 54, 12, 2472, 16, 14883, 13, 4511, 273, 5378, 309, 819, 18, 2972, 2115, 18, 710, 4...
self.dprint("%s has changed from %s(%s) to %s(%s)" % (param.keyword, self.orig[param.keyword], type(self.orig[param.keyword]), val, type(val)))
self.dprint("%s has changed from %s(%s) to %s(%s)" % (param.keyword, self.orig[param], type(self.orig[param]), val, type(val)))
def update(self): """Update the class with the changed preferences.""" hier = self.obj.classprefs._getMRO() self.dprint(hier) updated = {} for cls in hier: if 'default_classprefs' not in dir(cls): continue for param in cls.default_classprefs: if param in updated: # Don't update with value in superclass continue
f01bb523b1de62524b7480d7b5a6912442a9dfa1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/f01bb523b1de62524b7480d7b5a6912442a9dfa1/userparams.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 3536, 1891, 326, 667, 598, 326, 3550, 12750, 12123, 366, 2453, 273, 365, 18, 2603, 18, 1106, 1484, 2556, 6315, 588, 49, 1457, 1435, 365, 18, 72, 1188, 12, 76, 245...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1891, 326, 667, 598, 326, 3550, 12750, 12123, 366, 2453, 273, 365, 18, 2603, 18, 1106, 1484, 2556, 6315, 588, 49, 1457, 1435, 365, 18, 72, 1188, 12, 76, 245...
"""Test unsupported protocol raised"""
"""Test ClientConnectionError raised"""
def test_bad_address(self): """Test unsupported protocol raised""" c = client.Client(address="http://127.999.1.1/") self.assertRaises(client.ClientConnectionError, c.get_image, 1)
410aa563505957a3c42370c375656d4d5b5f8022 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12464/410aa563505957a3c42370c375656d4d5b5f8022/test_clients.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8759, 67, 2867, 12, 2890, 4672, 3536, 4709, 2445, 28371, 11531, 8395, 276, 273, 1004, 18, 1227, 12, 2867, 1546, 2505, 2207, 14260, 18, 11984, 18, 21, 18, 21, 4898, 13, 365, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8759, 67, 2867, 12, 2890, 4672, 3536, 4709, 2445, 28371, 11531, 8395, 276, 273, 1004, 18, 1227, 12, 2867, 1546, 2505, 2207, 14260, 18, 11984, 18, 21, 18, 21, 4898, 13, 365, 1...
pos = f.tell()
pos = int(f.tell())
def _addval(self, val): f = _open(self._datfile, 'rb+') f.seek(0, 2) pos = f.tell()
761e1bcd1e2318acc4f5f38f9b82080ebf6d6fdf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/761e1bcd1e2318acc4f5f38f9b82080ebf6d6fdf/dumbdbm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 1125, 12, 2890, 16, 1244, 4672, 284, 273, 389, 3190, 12, 2890, 6315, 3404, 768, 16, 296, 6731, 15, 6134, 284, 18, 16508, 12, 20, 16, 576, 13, 949, 273, 284, 18, 88, 1165, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 1125, 12, 2890, 16, 1244, 4672, 284, 273, 389, 3190, 12, 2890, 6315, 3404, 768, 16, 296, 6731, 15, 6134, 284, 18, 16508, 12, 20, 16, 576, 13, 949, 273, 284, 18, 88, 1165, ...
canvasItem.resizeMode = None
def makeCoercedCanvasItem(self, x, y, item): primaryCollection = self.blockItem.contentsCollection collection = self.blockItem.getContainingCollection(item, primaryCollection) canvasItem = TimedCanvasItem(collection, primaryCollection, item, self) unscrolledPosition = wx.Point(*self.CalcUnscrolledPosition(x, y)) start...
081d9ace1145b37106b46a64fcd38ec24b04a7f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/081d9ace1145b37106b46a64fcd38ec24b04a7f6/TimedCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 4249, 2765, 72, 12971, 1180, 12, 2890, 16, 619, 16, 677, 16, 761, 4672, 3354, 2532, 273, 365, 18, 2629, 1180, 18, 3980, 2532, 1849, 273, 365, 18, 2629, 1180, 18, 588, 24344, 2532...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 4249, 2765, 72, 12971, 1180, 12, 2890, 16, 619, 16, 677, 16, 761, 4672, 3354, 2532, 273, 365, 18, 2629, 1180, 18, 3980, 2532, 1849, 273, 365, 18, 2629, 1180, 18, 588, 24344, 2532...
self.win.addstr(self.history[self.histo_pos+1].encode('utf-8'))
def key_up(self): if not len(self.history): return self.win.clear() if self.histo_pos >= 0: self.histo_pos -= 1 self.win.addstr(self.history[self.histo_pos+1].encode('utf-8')) self.text = self.history[self.histo_pos+1] self.pos = len(self.text) self.refresh()
54266c0c7fd9ff17ffc49fed86ef420837e09af4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9814/54266c0c7fd9ff17ffc49fed86ef420837e09af4/window.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 498, 67, 416, 12, 2890, 4672, 309, 486, 562, 12, 2890, 18, 8189, 4672, 327, 365, 18, 8082, 18, 8507, 1435, 309, 365, 18, 11488, 83, 67, 917, 1545, 374, 30, 365, 18, 11488, 83, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 498, 67, 416, 12, 2890, 4672, 309, 486, 562, 12, 2890, 18, 8189, 4672, 327, 365, 18, 8082, 18, 8507, 1435, 309, 365, 18, 11488, 83, 67, 917, 1545, 374, 30, 365, 18, 11488, 83, 67, ...
usage(2, msg)
usage(msg) return 2
def main(): try: opts, args = getopt.getopt(sys.argv[1:], "h") except getopt.error, msg: usage(2, msg) for o, a in opts: if o == "-h": help() if not args: usage(2, "at least one file argument is required") if args[1:]: sys.stderr.write("%s: extra file arguments ignored\n", sys.argv[0]) readwarnings(args[0])
8ede8b4f9afacde5e0d6935bdf37d4903968146c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/8ede8b4f9afacde5e0d6935bdf37d4903968146c/fixdiv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 315, 76, 7923, 1335, 336, 3838, 18, 1636, 16, 1234, 30, 4084, 12, 3576, 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, 2774, 13332, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 315, 76, 7923, 1335, 336, 3838, 18, 1636, 16, 1234, 30, 4084, 12, 3576, 13,...
tr.pluralequation ='0'
tr.pluralequation = '0'
def create_default_languages(): from pootle_app.core import Language af = Language(code="af") af.fullname = u"Afrikaans" af.specialchars = u"ëïêôûáéíóúý" af.nplurals = '2' af.pluralequation = "(n != 1)" af.save()
705dd9e8bba1245496893550d0b060f0049a0893 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/705dd9e8bba1245496893550d0b060f0049a0893/initdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 1886, 67, 14045, 13332, 628, 293, 1632, 298, 67, 2910, 18, 3644, 1930, 9889, 225, 10073, 273, 9889, 12, 710, 1546, 1727, 7923, 10073, 18, 21885, 273, 582, 6, 12664, 566, 7282, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 1886, 67, 14045, 13332, 628, 293, 1632, 298, 67, 2910, 18, 3644, 1930, 9889, 225, 10073, 273, 9889, 12, 710, 1546, 1727, 7923, 10073, 18, 21885, 273, 582, 6, 12664, 566, 7282, ...
def try_close(fd): try: os.close(fd) except OSError: pass
def try_close(fd): try: os.close(fd) except OSError: pass
9c04e3a003bd657bf81998f87b1d9de206a27c51 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/9c04e3a003bd657bf81998f87b1d9de206a27c51/app_posix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 775, 67, 4412, 12, 8313, 4672, 775, 30, 1140, 18, 4412, 12, 8313, 13, 1335, 10002, 30, 1342, 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...
[ 1, 1, 1, 1, 1, 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, 775, 67, 4412, 12, 8313, 4672, 775, 30, 1140, 18, 4412, 12, 8313, 13, 1335, 10002, 30, 1342, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if format.startswith('xm'): format_prologue = websearch_templates.tmpl_xml_marc_prologue() format_epilogue = websearch_templates.tmpl_xml_marc_epilogue() elif format.startswith('xn'): format_prologue = websearch_templates.tmpl_xml_nlm_prologue() format_epilogue = websearch_templates.tmpl_xml_nlm_epilogue() elif format...
if print_header_p: print_records_header(req, format)
def print_records(req, recIDs, jrec=1, rg=10, format='hb', ot='', ln=cdslang, relevances=[], relevances_prologue="(", relevances_epilogue="%%)", decompress=zlib.decompress, search_pattern=''): """Prints list of records 'recIDs' formatted accoding to 'format' in groups of 'rg' starting from 'jrec'. Assumes that the inpu...
0462fb48e82b03c43123c816fc8396276d7c691e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/0462fb48e82b03c43123c816fc8396276d7c691e/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 7094, 12, 3658, 16, 1950, 5103, 16, 525, 3927, 33, 21, 16, 14524, 33, 2163, 16, 740, 2218, 76, 70, 2187, 15835, 2218, 2187, 7211, 33, 4315, 2069, 539, 16, 6707, 90, 6872, 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, 1172, 67, 7094, 12, 3658, 16, 1950, 5103, 16, 525, 3927, 33, 21, 16, 14524, 33, 2163, 16, 740, 2218, 76, 70, 2187, 15835, 2218, 2187, 7211, 33, 4315, 2069, 539, 16, 6707, 90, 6872, 2...
for i in range(len(attrNames)): ret = self._escapeString(attrValues[i])
for i in range( len( attrNames ) ): ret = self._escapeString( attrValues[i] )
def setJobAttributes(self, jobID, attrNames, attrValues, update=False, datetime=None ): """ Set an attribute value for job specified by jobID. The LastUpdate time stamp is refreshed if explicitely requested """
99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 2278, 2498, 12, 2890, 16, 28913, 16, 1604, 1557, 16, 1604, 1972, 16, 1089, 33, 8381, 16, 3314, 33, 7036, 262, 30, 3536, 1000, 392, 1566, 460, 364, 1719, 1269, 635, 28913, 18, 1021...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 2278, 2498, 12, 2890, 16, 28913, 16, 1604, 1557, 16, 1604, 1972, 16, 1089, 33, 8381, 16, 3314, 33, 7036, 262, 30, 3536, 1000, 392, 1566, 460, 364, 1719, 1269, 635, 28913, 18, 1021...
(001011.0011)
(001011, 0011)
def standard_factorization(self): r""" Returns the standard factorization of self. The *standard factorization* of a word `w` is the unique factorization: `w = uv` where `v` is the longest proper suffix of `w` that qualifies as a Lyndon word. Note that if `w` is a Lyndon word with standard factorization `w = uv`, the...
5d95314847705862dc3fe746c7aff44f4caaa2bf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/5d95314847705862dc3fe746c7aff44f4caaa2bf/word.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4529, 67, 6812, 1588, 12, 2890, 4672, 436, 8395, 2860, 326, 4529, 5578, 1588, 434, 365, 18, 225, 1021, 380, 10005, 5578, 1588, 14, 434, 279, 2076, 1375, 91, 68, 353, 326, 3089, 5578, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4529, 67, 6812, 1588, 12, 2890, 4672, 436, 8395, 2860, 326, 4529, 5578, 1588, 434, 365, 18, 225, 1021, 380, 10005, 5578, 1588, 14, 434, 279, 2076, 1375, 91, 68, 353, 326, 3089, 5578, 1...
pager(title + desc + suffix + '\n\n' + text.document(object, name))
pager(title % (desc + suffix) + '\n\n' + text.document(thing, name))
def doc(thing, title='Python Library Documentation: '): """Display text documentation, given an object or a path to an object.""" suffix, name = '', None if type(thing) is type(''): try: object = locate(thing) except ErrorDuringImport, value: print value return if not object: print 'no Python documentation found for %s...
662469619aff9e9ef8cc61fd4b529ed34806b3f1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/662469619aff9e9ef8cc61fd4b529ed34806b3f1/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 12, 4274, 16, 2077, 2218, 15774, 18694, 20495, 30, 296, 4672, 3536, 4236, 977, 7323, 16, 864, 392, 733, 578, 279, 589, 358, 392, 733, 12123, 3758, 16, 508, 273, 10226, 599, 309, 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, 997, 12, 4274, 16, 2077, 2218, 15774, 18694, 20495, 30, 296, 4672, 3536, 4236, 977, 7323, 16, 864, 392, 733, 578, 279, 589, 358, 392, 733, 12123, 3758, 16, 508, 273, 10226, 599, 309, 6...
msg = msg + "\n"
msg = msg + "\n\n"
def badfn(f, msg): raise util.Abort('%s: %s' % (f, msg))
3431df6c48eb4f4f56debe091bf5dfce9aac490d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/3431df6c48eb4f4f56debe091bf5dfce9aac490d/mq.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5570, 4293, 12, 74, 16, 1234, 4672, 1002, 1709, 18, 13572, 29909, 87, 30, 738, 87, 11, 738, 261, 74, 16, 1234, 3719, 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, 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, 5570, 4293, 12, 74, 16, 1234, 4672, 1002, 1709, 18, 13572, 29909, 87, 30, 738, 87, 11, 738, 261, 74, 16, 1234, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.assertIsInstance(recno, int)
self.assertTrue(isinstance(recno, int))
def test01_basic(self): d = db.DB()
6a19b00668ef7f1db0b69f41dc05d2454176d0be /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/6a19b00668ef7f1db0b69f41dc05d2454176d0be/test_recno.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1611, 67, 13240, 12, 2890, 4672, 302, 273, 1319, 18, 2290, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1611, 67, 13240, 12, 2890, 4672, 302, 273, 1319, 18, 2290, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
class TestUrlopen(unittest.TestCase):
class TestUrlopen(BaseTestCase):
def log_message(self, *args): pass
7c83f35c85cf1fd54b3148be9eefb60017741215 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/7c83f35c85cf1fd54b3148be9eefb60017741215/test_urllib2_localnet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 67, 2150, 12, 2890, 16, 380, 1968, 4672, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 67, 2150, 12, 2890, 16, 380, 1968, 4672, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
is_db_id = line[i] obj_model = self.pool.get(model_name) ids = obj_model.search(cr, uid, [('id','=',line[i])]) if not len(ids): warning += ("Database ID doesn't exist: " + model_name + ": " + str(line[i]) + " !\n") logger.notifyChannel("import", netsvc.LOG_ERROR, "Database ID doesn't exist: " + model_name + ": " + str(...
def process_liness(self, datas, prefix, current_module, model_name, fields_def, position=0): line = datas[position] row = {} translate = {} todo = [] warning = '' data_id = False data_res_id = False is_xml_id = False is_db_id = False ir_model_data_obj = self.pool.get('ir.model.data') # # Import normal fields # for i in...
a4f26ab675d1e9985259806b27d349535c04d876 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/a4f26ab675d1e9985259806b27d349535c04d876/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 80, 6336, 12, 2890, 16, 5386, 16, 1633, 16, 783, 67, 2978, 16, 938, 67, 529, 16, 1466, 67, 536, 16, 1754, 33, 20, 4672, 980, 273, 5386, 63, 3276, 65, 1027, 273, 2618, 420...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 80, 6336, 12, 2890, 16, 5386, 16, 1633, 16, 783, 67, 2978, 16, 938, 67, 529, 16, 1466, 67, 536, 16, 1754, 33, 20, 4672, 980, 273, 5386, 63, 3276, 65, 1027, 273, 2618, 420...
while j > 1:
while j >= 0:
def remove_list_duplicates(inputlist, inputlist2=[], case_sensitive=True): # If inputlist2 is provided, keep it synced with inputlist. # Note that this is only implemented if case_sensitive=False. # Also note that we do this manually instead of using list(set(x)) # so that the inputlist order is preserved. if len(input...
b2c85e8e57dc9d713f7b7c21d311bd4ca138dee6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/b2c85e8e57dc9d713f7b7c21d311bd4ca138dee6/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 1098, 67, 22449, 12, 2630, 1098, 16, 810, 1098, 22, 22850, 6487, 648, 67, 23481, 33, 5510, 4672, 468, 971, 810, 1098, 22, 353, 2112, 16, 3455, 518, 21048, 598, 810, 1098, 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, 1206, 67, 1098, 67, 22449, 12, 2630, 1098, 16, 810, 1098, 22, 22850, 6487, 648, 67, 23481, 33, 5510, 4672, 468, 971, 810, 1098, 22, 353, 2112, 16, 3455, 518, 21048, 598, 810, 1098, 18,...
(self._byeaster and not ii.eastermask[i]) or ((self._bymonthday or self._bynmonthday) and ii.mdaymask[i] not in self._bymonthday and ii.nmdaymask[i] not in self._bynmonthday)):
(byeaster and not ii.eastermask[i]) or ((bymonthday or bynmonthday) and ii.mdaymask[i] not in bymonthday and ii.nmdaymask[i] not in bynmonthday)):
def _iter(self): year, month, day, hour, minute, second, weekday, yearday, _ = \ self._dtstart.timetuple()
d375f07e08a8fd61f1640e67f981e1abdac8d8d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8441/d375f07e08a8fd61f1640e67f981e1abdac8d8d1/rrule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2165, 12, 2890, 4672, 3286, 16, 3138, 16, 2548, 16, 6126, 16, 8044, 16, 2205, 16, 7560, 16, 677, 73, 1060, 528, 16, 389, 273, 521, 365, 6315, 7510, 1937, 18, 8584, 278, 2268, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2165, 12, 2890, 4672, 3286, 16, 3138, 16, 2548, 16, 6126, 16, 8044, 16, 2205, 16, 7560, 16, 677, 73, 1060, 528, 16, 389, 273, 521, 365, 6315, 7510, 1937, 18, 8584, 278, 2268, 14...
hits[i] = 0.0
hits.append(0.0)
def phasers(): # fire phasers hits = []; rpow=0 kz = 0; k = 1; irec=0 # Cheating inhibitor ifast = False; no = False; itarg = True; msgflag = True automode = "NOTSET" key=0 skip(1) # SR sensors and Computer are needed fopr automode if damaged(DSRSENS) or damaged(DCOMPTR): itarg = False if game.condition == "docked": pr...
ad7e6b2e5d6f82e729fafaf4752f0fd8fed97fc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/ad7e6b2e5d6f82e729fafaf4752f0fd8fed97fc3/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1844, 345, 414, 13332, 468, 4452, 1844, 345, 414, 11076, 273, 5378, 31, 8715, 543, 33, 20, 417, 94, 273, 374, 31, 417, 273, 404, 31, 277, 3927, 33, 20, 468, 22682, 1776, 316, 15769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1844, 345, 414, 13332, 468, 4452, 1844, 345, 414, 11076, 273, 5378, 31, 8715, 543, 33, 20, 417, 94, 273, 374, 31, 417, 273, 404, 31, 277, 3927, 33, 20, 468, 22682, 1776, 316, 15769, ...
return ExpatParser()
return xml.sax.make_parser()
def _getParser(): return ExpatParser()
11d5dd7879a342cda7466bb9947d60ea2d0b692a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/11d5dd7879a342cda7466bb9947d60ea2d0b692a/pulldom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 2678, 13332, 327, 2025, 18, 87, 651, 18, 6540, 67, 4288, 1435, 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, ...
[ 1, 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, 389, 588, 2678, 13332, 327, 2025, 18, 87, 651, 18, 6540, 67, 4288, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
print("Updating SVN") svn_checkout(target,revision)
if not options.noSvnUpdate: print("Updating SVN") svn_checkout(target,revision)
def build_packet(target,revision,generate): cleanup(target) print("Updating SVN") svn_checkout(target,revision) if (generate != None): if (generate != "release"): working_dir = os.path.join(options.stagedir, target,"qooxdoo",options.path) print("Changing dir to: " + working_dir) os.chdir(working_dir) if (options.distcl...
f2b68d0dc7d417a0da4de9b7ab13d501309e7363 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/f2b68d0dc7d417a0da4de9b7ab13d501309e7363/batbuild.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 11482, 12, 3299, 16, 13057, 16, 7163, 4672, 6686, 12, 3299, 13, 309, 486, 702, 18, 2135, 55, 25031, 1891, 30, 1172, 2932, 17858, 29537, 50, 7923, 5893, 82, 67, 17300, 12, 329...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 11482, 12, 3299, 16, 13057, 16, 7163, 4672, 6686, 12, 3299, 13, 309, 486, 702, 18, 2135, 55, 25031, 1891, 30, 1172, 2932, 17858, 29537, 50, 7923, 5893, 82, 67, 17300, 12, 329...
headers = {'content-type': "application/x-www-form-urlencoded"}
headers = {} if method == 'POST': headers['content-type'] = "application/x-www-form-urlencoded"
def __init__(self, fp=None, headers=None, outerboundary="", environ=os.environ, keep_blank_values=0, strict_parsing=0): """Constructor. Read multipart/* until last part.
1bbb5f44f1a9216c4afd7bf998abff238a4a9e7d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1bbb5f44f1a9216c4afd7bf998abff238a4a9e7d/cgi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4253, 33, 7036, 16, 1607, 33, 7036, 16, 6390, 16604, 1546, 3113, 5473, 33, 538, 18, 28684, 16, 3455, 67, 12111, 67, 2372, 33, 20, 16, 5490, 67, 24979, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 4253, 33, 7036, 16, 1607, 33, 7036, 16, 6390, 16604, 1546, 3113, 5473, 33, 538, 18, 28684, 16, 3455, 67, 12111, 67, 2372, 33, 20, 16, 5490, 67, 24979, ...
current = self.writeMetadataDocs(filematrix[mydir], current)
current = self.writeMetadataDocs(filematrix[mydir], mydir, current)
def doPkgMetadata(self, directories): """all the heavy lifting for the package metadata""" import types if type(directories) == types.StringType: MetaDataGenerator.doPkgMetadata(self, directories) return filematrix = {} for mydir in directories: filematrix[mydir] = self.getFileList(self.cmds['basedir'], mydir, '.rpm') ...
7cef46444338196ec07f7050893d33150064c1d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9557/7cef46444338196ec07f7050893d33150064c1d1/genpkgmetadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 11264, 2277, 12, 2890, 16, 6402, 4672, 3536, 454, 326, 3904, 23935, 4517, 1787, 364, 326, 2181, 1982, 8395, 1930, 1953, 309, 618, 12, 15121, 13, 422, 1953, 18, 780, 559, 30, 27512, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11264, 2277, 12, 2890, 16, 6402, 4672, 3536, 454, 326, 3904, 23935, 4517, 1787, 364, 326, 2181, 1982, 8395, 1930, 1953, 309, 618, 12, 15121, 13, 422, 1953, 18, 780, 559, 30, 27512, ...
event = QAUITestAppLib.GetOccurrence('Weekly Never End', date(2006, 5, 1)) QAUITestAppLib.UITestItem(event, self.logger).SetAttr(recurrenceEnd="05/01/2006")
view.GoToDate(dateStr) event = QAUITestAppLib.GetOccurrence('Weekly Never End', goto) QAUITestAppLib.UITestItem(event, self.logger).SetAttr(recurrenceEnd=dateStr)
def VerifyEventCreation(title): self.logger.startAction("Verify event titled %s exists" % title) testEvent = self.app_ns.item_named(pim.EventStamp, title) if testEvent is not None: self.logger.endAction(True, " '%s' exists" % title) else: self.logger.endAction(False, "'%s' not created" % title)
79f8f8b619cdd0ee92595548524915eedd39fdc5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/79f8f8b619cdd0ee92595548524915eedd39fdc5/TestRecurrenceImporting.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8553, 1133, 9906, 12, 2649, 4672, 365, 18, 4901, 18, 1937, 1803, 2932, 8097, 871, 268, 305, 1259, 738, 87, 1704, 6, 738, 2077, 13, 1842, 1133, 273, 365, 18, 2910, 67, 2387, 18, 1726, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8553, 1133, 9906, 12, 2649, 4672, 365, 18, 4901, 18, 1937, 1803, 2932, 8097, 871, 268, 305, 1259, 738, 87, 1704, 6, 738, 2077, 13, 1842, 1133, 273, 365, 18, 2910, 67, 2387, 18, 1726, ...
self.__delete_node(t[0],[t[1]])
ret = self.__delete_node(t[0]) error += "%s was deleted : %s\n" %(t[0],ret) if self.cache_nodes.has_key(t[0]): error += "%s cached : %s\n" %(t[0],self.cache_nodes[t[0]]) raise Exception(error) par = self.get_node_for_path(t[1][:-1]) if t[0] in self.cache_nodes[par]['children']: error += "%s is still in %s childrens" %(...
def __add_node(self,nid,paths=None): error = "Adding node %s to paths %s\n" %(nid,paths) self.trace += " "+error #we only add node that really need it. curdis = self.is_displayed(nid) newdis = self.__is_displayed(nid) #it should not be displayed, don't add it. if not newdis: return False if not paths: paths = self...
3ea21cb81161e3d09b3e56c7f94d1f9b5e0adf83 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/3ea21cb81161e3d09b3e56c7f94d1f9b5e0adf83/filteredtree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 67, 2159, 12, 2890, 16, 31030, 16, 4481, 33, 7036, 4672, 555, 273, 315, 13962, 756, 738, 87, 358, 2953, 738, 87, 64, 82, 6, 8975, 31030, 16, 4481, 13, 365, 18, 5129, 1011...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1289, 67, 2159, 12, 2890, 16, 31030, 16, 4481, 33, 7036, 4672, 555, 273, 315, 13962, 756, 738, 87, 358, 2953, 738, 87, 64, 82, 6, 8975, 31030, 16, 4481, 13, 365, 18, 5129, 1011...
test_main()
test_main()
def test_main(): test.test_support.run_unittest(ListTest)
3a8f4da3a5c1336d0ca46c4a36e9276a42f4e070 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6753/3a8f4da3a5c1336d0ca46c4a36e9276a42f4e070/test_list_jy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 1842, 18, 3813, 67, 13261, 18, 2681, 67, 4873, 3813, 12, 682, 4709, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 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, 1842, 67, 5254, 13332, 1842, 18, 3813, 67, 13261, 18, 2681, 67, 4873, 3813, 12, 682, 4709, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
"""Return a sorted copy of `seq`"""
"""Return a sorted copy of `seq`."""
def sorted(seq): """Return a sorted copy of `seq`""" newseq = seq[:] newseq.sort() return newseq
e6dd1bf37f940e4bb62e65a85b414caa9a5c54aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5620/e6dd1bf37f940e4bb62e65a85b414caa9a5c54aa/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3115, 12, 5436, 4672, 3536, 990, 279, 3115, 1610, 434, 1375, 5436, 68, 12123, 394, 5436, 273, 3833, 10531, 65, 394, 5436, 18, 3804, 1435, 327, 394, 5436, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 3115, 12, 5436, 4672, 3536, 990, 279, 3115, 1610, 434, 1375, 5436, 68, 12123, 394, 5436, 273, 3833, 10531, 65, 394, 5436, 18, 3804, 1435, 327, 394, 5436, 2, -100, -100, -100, -100, -100,...
arrow_position = self.status_bar.value * (self.rect_in_container.width - 2.0) / self.status_bar.max
position = self.status_bar.value * (self.rect_in_container.width) / (BAR_WIDTH) arrow_position = min([position, BAR_WIDTH + BAR_OFFSET_X])
def draw(self, screen): if self.last_value != self.status_bar.value: if isinstance(self.status_bar, WeightBar): arrow_position = self.status_bar.value * (self.rect_in_container.width - 2.0) / self.status_bar.max self.surface.blit(self.background, (0, 0)) self.surface.blit(self.arrow, (arrow_position, 14)) elif isinsta...
de53ded4d45bc6d6d19acc60b746cf0c1eed6a34 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3492/de53ded4d45bc6d6d19acc60b746cf0c1eed6a34/status_bars.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 16, 5518, 4672, 225, 309, 365, 18, 2722, 67, 1132, 480, 365, 18, 2327, 67, 3215, 18, 1132, 30, 309, 1549, 12, 2890, 18, 2327, 67, 3215, 16, 15437, 5190, 4672, 1754, 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, 3724, 12, 2890, 16, 5518, 4672, 225, 309, 365, 18, 2722, 67, 1132, 480, 365, 18, 2327, 67, 3215, 18, 1132, 30, 309, 1549, 12, 2890, 18, 2327, 67, 3215, 16, 15437, 5190, 4672, 1754, 2...
max_mem = min(int(0.25 * self.total_mem), HARD_MEMORY_LIMIT) if setMemoryLimit(max_mem): print >>stderr, "Set maximum memory to %s" % humanFilesize(max_mem)
self.mem_limit = min(int(0.25 * self.total_mem), HARD_MEMORY_LIMIT) if setMemoryLimit(self.mem_limit): print >>stderr, "Set maximum memory to %s" % humanFilesize(self.mem_limit)
def limitMemory(self): if not self.total_mem: return max_mem = min(int(0.25 * self.total_mem), HARD_MEMORY_LIMIT) if setMemoryLimit(max_mem): print >>stderr, "Set maximum memory to %s" % humanFilesize(max_mem) else: print >>stderr, "(unable to set memory limit)"
54aef7525aa2fa25565bd17abe09b9f188299d0a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/54aef7525aa2fa25565bd17abe09b9f188299d0a/search.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1800, 6031, 12, 2890, 4672, 309, 486, 365, 18, 4963, 67, 3917, 30, 327, 365, 18, 3917, 67, 3595, 273, 1131, 12, 474, 12, 20, 18, 2947, 380, 365, 18, 4963, 67, 3917, 3631, 670, 8085, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1800, 6031, 12, 2890, 4672, 309, 486, 365, 18, 4963, 67, 3917, 30, 327, 365, 18, 3917, 67, 3595, 273, 1131, 12, 474, 12, 20, 18, 2947, 380, 365, 18, 4963, 67, 3917, 3631, 670, 8085, ...
rlib_set_parameter_encoding = _librlib.rlib_set_parameter_encoding rlib_set_encodings = _librlib.rlib_set_encodings
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
7b56c048b782b32a6b49f4641de695a91d594c87 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/7b56c048b782b32a6b49f4641de695a91d594c87/librlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5328, 360, 67, 588, 1747, 12, 2890, 16, 1106, 67, 723, 16, 529, 4672, 707, 273, 667, 67, 723, 16186, 5328, 360, 67, 588, 5163, 25648, 588, 12, 529, 16, 7036, 13, 309, 707, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5328, 360, 67, 588, 1747, 12, 2890, 16, 1106, 67, 723, 16, 529, 4672, 707, 273, 667, 67, 723, 16186, 5328, 360, 67, 588, 5163, 25648, 588, 12, 529, 16, 7036, 13, 309, 707, 30, ...
This reduces the mounts to a set of unique devices, and uses self._mergeStatVfs to combine the results.
def create(self, path): """Find a home for a new file given by 'path'. This creates parent directories as necessary and returns the new absolute path where the file should go. This reduces the mounts to a set of unique devices, and uses self._mergeStatVfs to combine the results. """ raise NotImplementedError
fdea9b41608f03c7608766635a105c59f4678c1d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/fdea9b41608f03c7608766635a105c59f4678c1d/spreadfs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 589, 4672, 3536, 3125, 279, 6382, 364, 279, 394, 585, 864, 635, 296, 803, 10332, 1220, 3414, 982, 6402, 487, 4573, 471, 1135, 326, 394, 4967, 589, 1625, 326, 585, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 589, 4672, 3536, 3125, 279, 6382, 364, 279, 394, 585, 864, 635, 296, 803, 10332, 1220, 3414, 982, 6402, 487, 4573, 471, 1135, 326, 394, 4967, 589, 1625, 326, 585, 14...
'fund' : fields.boolean('Fund Raising Operations', help="This may help associations in their fund raising process and tracking."), 'claims' : fields.boolean('Claims', help="Manages the supplier and customers claims, including your corrective or preventive actions."), 'phonecall' : fields.boolean('Phone Calls', help="He...
'fund': fields.boolean('Fund Raising Operations', help="This may help associations in their fund raising process and tracking."), 'claims': fields.boolean('Claims', help="Manages the supplier and customers claims, including your corrective or preventive actions."), 'phonecall': fields.boolean('Phone Calls', help="Help ...
def onchange_case_id(self, cr, uid, ids, case_id, name, partner_id, context={}): if not case_id: return {} case = self.browse(cr, uid, case_id, context=context) value = {} if not name: value['name'] = case.name if (not partner_id) and case.partner_id: value['partner_id'] = case.partner_id.id if case.partner_address_id:...
7f170d648ce806a9582087e82434ea26e4f2d585 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/7f170d648ce806a9582087e82434ea26e4f2d585/crm_config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 3427, 67, 3593, 67, 350, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 648, 67, 350, 16, 508, 16, 19170, 67, 350, 16, 819, 12938, 4672, 309, 486, 648, 67, 350, 30, 327, 2618, 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, 603, 3427, 67, 3593, 67, 350, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 648, 67, 350, 16, 508, 16, 19170, 67, 350, 16, 819, 12938, 4672, 309, 486, 648, 67, 350, 30, 327, 2618, 64...
(LOCK_OBJECT_WRAPPER_INFO, lock_object_wrapped_functions_dict),]
(LOCK_OBJECT_WRAPPER_INFO, lock_object_wrapped_functions_dict)]
def _prepare_wrapped_functions_for_object_wrappers(): """ Wraps functions that will be used whenever a wrapped object is created. After this has been called, the dictionaries such as file_object_wrapped_functions_dict have been populated and therefore can be used by functions such as wrap_socket_obj(). """ objects_tupl...
21f3c0e95b7b1702eeb6283f53d4f9d7960179d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/21f3c0e95b7b1702eeb6283f53d4f9d7960179d0/namespace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9366, 67, 18704, 67, 10722, 67, 1884, 67, 1612, 67, 4113, 10422, 13332, 3536, 678, 7506, 4186, 716, 903, 506, 1399, 17334, 279, 5805, 733, 353, 2522, 18, 7360, 333, 711, 2118, 2566,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9366, 67, 18704, 67, 10722, 67, 1884, 67, 1612, 67, 4113, 10422, 13332, 3536, 678, 7506, 4186, 716, 903, 506, 1399, 17334, 279, 5805, 733, 353, 2522, 18, 7360, 333, 711, 2118, 2566,...
if newsize[col] != before[col]: self.SetColumnWidth(col, newsize[col])
width = newsize[col] if col == 0: width += self._extra_col0_padding if width != before[col]: self.SetColumnWidth(col, width)
def _ResizeColumns(self): """Private method to actually handle the column resizes. Don't call this from user code, this is an internal method that actually does the heavy lifting to resize all the columns. """ if not self._resize_dirty: return self.Freeze() allowed_offscreen = min(self._allowed_offscreen, self.GetCol...
055ab42b9c1c7f05265ee06a881bbc1daa13c924 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/055ab42b9c1c7f05265ee06a881bbc1daa13c924/column_autosize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12182, 3380, 12, 2890, 4672, 3536, 6014, 707, 358, 6013, 1640, 326, 1057, 400, 3128, 18, 225, 7615, 1404, 745, 333, 628, 729, 981, 16, 333, 353, 392, 2713, 707, 716, 6013, 1552, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12182, 3380, 12, 2890, 4672, 3536, 6014, 707, 358, 6013, 1640, 326, 1057, 400, 3128, 18, 225, 7615, 1404, 745, 333, 628, 729, 981, 16, 333, 353, 392, 2713, 707, 716, 6013, 1552, 3...
typecodes = "cubBhHiIlLfd"
typecodes = "ubBhHiIlLfd"
def __init__(self, typecode, newarg=None): array.array.__init__(typecode)
da4c9f2d991470392c851082ddc2bb3b1d41d78c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/da4c9f2d991470392c851082ddc2bb3b1d41d78c/test_array.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 618, 710, 16, 394, 3175, 33, 7036, 4672, 526, 18, 1126, 16186, 2738, 972, 12, 723, 710, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 618, 710, 16, 394, 3175, 33, 7036, 4672, 526, 18, 1126, 16186, 2738, 972, 12, 723, 710, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if self.swig_cpp or ('-c++' in self.swig_opts):
if self.swig_cpp or ('-c++' in self.swig_opts) or \ ('-c++' in extension.swig_opts):
def swig_sources (self, sources, extension):
f784d91215ae32c11309cab0b2ab2f11ae286140 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/f784d91215ae32c11309cab0b2ab2f11ae286140/build_ext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1352, 360, 67, 10141, 261, 2890, 16, 5550, 16, 2710, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1352, 360, 67, 10141, 261, 2890, 16, 5550, 16, 2710, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
result = self.__getJobPilotStatus(job)
result = self.__getJobPilotStatus( job )
def __failStalledJobs( self, failedTime ): """ Changes the Stalled status to Failed for jobs long in the Stalled status """ result = self.jobDB.selectJobs( {'Status':'Stalled'} ) failedCounter = 0 if not result['OK'] or not result['Value']: self.log.warn( result ) return result else: jobs = result['Value'] self.log....
1bc0d189cfa76ea128be98dcb17942841327a3d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/1bc0d189cfa76ea128be98dcb17942841327a3d2/StalledJobAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 6870, 510, 4502, 7276, 12, 365, 16, 2535, 950, 262, 30, 3536, 17776, 326, 934, 4502, 1267, 358, 11175, 364, 6550, 1525, 316, 326, 934, 4502, 1267, 3536, 225, 563, 273, 365, 18, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 6870, 510, 4502, 7276, 12, 365, 16, 2535, 950, 262, 30, 3536, 17776, 326, 934, 4502, 1267, 358, 11175, 364, 6550, 1525, 316, 326, 934, 4502, 1267, 3536, 225, 563, 273, 365, 18, 4...
S[vname] = eval(format[pc+2:pos-1],L,G)
S[vname] = eval(format[pc+2:pos-1],G,L)
def dictformat(_format, L={}, G={}): format = _format S = {} chunks = [] pos = 0 n = 0 while 1: pc = format.find("%", pos) if pc < 0: break nextchar = format[pc+1] if nextchar == "(": chunks.append(format[pos:pc]) pos, level = pc+2, 1 while level: match, pos = _matchorfail(format, pos) tstart, tend = match.regs[3] t...
da778f8992e91c54235e97029091ef08e31104e6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7053/da778f8992e91c54235e97029091ef08e31104e6/extformat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2065, 2139, 24899, 2139, 16, 511, 28793, 611, 12938, 4672, 740, 273, 389, 2139, 225, 348, 273, 2618, 6055, 273, 5378, 949, 273, 374, 290, 273, 374, 225, 1323, 404, 30, 6125, 273, 740, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2065, 2139, 24899, 2139, 16, 511, 28793, 611, 12938, 4672, 740, 273, 389, 2139, 225, 348, 273, 2618, 6055, 273, 5378, 949, 273, 374, 290, 273, 374, 225, 1323, 404, 30, 6125, 273, 740, ...
IPATH=['dtool/metalibs/dtoolconfig']
IPATH=['dtool/metalibs/dtoolconfig', PREFIX+"/tmp"]
if (val == 'UNDEF'): conf = conf + "#undef " + key + "\n"
8fd5a5147d54776cde7f8879cd333f478ebf3714 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/8fd5a5147d54776cde7f8879cd333f478ebf3714/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 1125, 422, 296, 2124, 12904, 11, 4672, 2195, 273, 2195, 397, 6619, 318, 536, 315, 397, 498, 397, 1548, 82, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 1125, 422, 296, 2124, 12904, 11, 4672, 2195, 273, 2195, 397, 6619, 318, 536, 315, 397, 498, 397, 1548, 82, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
def getColor(self, fg=None, bg=None, type=None):
def getColor(self, fg=None, bg=None, type=None, nextChar=None):
def getColor(self, fg=None, bg=None, type=None): if type is None: type = self.type if fg is None and bg is None: return self.reset() if fg is not None: fg = self.colorMap[self._normalizeColorName(fg)][type] if bg is not None: bg = self.colorMap[self._normalizeColorName(bg)][type]
1bc661d0d1bd4f217ec53f1e43c253602a2f6d26 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10942/1bc661d0d1bd4f217ec53f1e43c253602a2f6d26/colorlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15672, 12, 2890, 16, 10186, 33, 7036, 16, 7611, 33, 7036, 16, 618, 33, 7036, 16, 21865, 33, 7036, 4672, 309, 618, 353, 599, 30, 618, 273, 365, 18, 723, 309, 10186, 353, 599, 471, 761...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15672, 12, 2890, 16, 10186, 33, 7036, 16, 7611, 33, 7036, 16, 618, 33, 7036, 16, 21865, 33, 7036, 4672, 309, 618, 353, 599, 30, 618, 273, 365, 18, 723, 309, 10186, 353, 599, 471, 761...
OPTS=['DIR:panda/src/downloadertools', 'OPENSSL', 'ZLIB', 'ADVAPI']
OPTS=['DIR:panda/src/downloadertools', 'OPENSSL', 'ZLIB', 'ADVAPI', 'WINSOCK2', 'WINSHELL']
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n"
04bc76c62754947fe75c1051d479bfc854275698 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/04bc76c62754947fe75c1051d479bfc854275698/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 293, 464, 842, 722, 67, 76, 1011, 1548, 82, 7, 318, 536, 225, 453, 4307, 37, 67, 3932, 1653, 39, 6365, 67, 5757, 64, 82, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 293, 464, 842, 722, 67, 76, 1011, 1548, 82, 7, 318, 536, 225, 453, 4307, 37, 67, 3932, 1653, 39, 6365, 67, 5757, 64, 82, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def __init__(self, screenName=None, baseName=None, className='Tk'):
def __init__(self, screenName=None, baseName=None, className='Tix'):
def __init__(self, screenName=None, baseName=None, className='Tk'): Tkinter.Tk.__init__(self, screenName, baseName, className) tixlib = os.environ.get('TIX_LIBRARY') if tixlib is not None: self.tk.eval('global auto_path; lappend auto_path {%s}' % tixlib) self.tk.eval('global tcl_pkgPath; lappend tcl_pkgPath {%s}' % tix...
48af83dadc128720a7642beb50800c6971404eb9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/48af83dadc128720a7642beb50800c6971404eb9/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5518, 461, 33, 7036, 16, 16162, 33, 7036, 16, 2658, 2218, 56, 697, 11, 4672, 399, 79, 2761, 18, 56, 79, 16186, 2738, 972, 12, 2890, 16, 5518, 461, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5518, 461, 33, 7036, 16, 16162, 33, 7036, 16, 2658, 2218, 56, 697, 11, 4672, 399, 79, 2761, 18, 56, 79, 16186, 2738, 972, 12, 2890, 16, 5518, 461, 16, ...
Returns the Cartan Type.
Returns the Cartan type.
def cartan_type(self): """ Returns the Cartan Type.
40a1bdf0c8a0dea7ba5d2dd2b4dcc1a210f7c884 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/40a1bdf0c8a0dea7ba5d2dd2b4dcc1a210f7c884/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7035, 304, 67, 723, 12, 2890, 4672, 3536, 2860, 326, 17695, 304, 1412, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7035, 304, 67, 723, 12, 2890, 4672, 3536, 2860, 326, 17695, 304, 1412, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
'%(varname)s',
'&%(varname)s',
def is_id(typestr): # Remove protocol 'declarations' (id <NSObject, NSString>) typestr = PROT_MATCHER.sub('', typestr).strip() if typestr == 'id': return 1 elif typestr[-1] != '*': return 0 try: objc.lookup_class(typestr[:-1]) return 1 except: return 0
b2c37de87bd0f66cb5d8dfba455a70e2b771594a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/97/b2c37de87bd0f66cb5d8dfba455a70e2b771594a/func_builder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 350, 12, 2352, 313, 4672, 468, 3581, 1771, 296, 8840, 9642, 11, 261, 350, 411, 3156, 921, 16, 11472, 780, 23429, 1953, 313, 273, 4629, 56, 67, 11793, 654, 18, 1717, 2668, 2187...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 350, 12, 2352, 313, 4672, 468, 3581, 1771, 296, 8840, 9642, 11, 261, 350, 411, 3156, 921, 16, 11472, 780, 23429, 1953, 313, 273, 4629, 56, 67, 11793, 654, 18, 1717, 2668, 2187...
self.assert_(self.g1.test_overlap(self.g2) == True) self.assert_(self.g2.test_overlap(self.g1) == False)
self.assert_(self.g1.test_inside(self.g2) == True) self.assert_(self.g2.test_inside(self.g1) == False)
def runTest(self): # g1 and g2 are the same, so they exist inside each other. self.assert_(self.g1.test_inside(self.g2) == True) self.assert_(self.g2.test_inside(self.g1) == False)
7ea094a5a9369af6702e865d752b1bac938f2e5d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5978/7ea094a5a9369af6702e865d752b1bac938f2e5d/test_geometry.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 4709, 12, 2890, 4672, 468, 314, 21, 471, 314, 22, 854, 326, 1967, 16, 1427, 2898, 1005, 4832, 1517, 1308, 18, 365, 18, 11231, 67, 12, 2890, 18, 75, 21, 18, 3813, 67, 28091, 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, 1086, 4709, 12, 2890, 4672, 468, 314, 21, 471, 314, 22, 854, 326, 1967, 16, 1427, 2898, 1005, 4832, 1517, 1308, 18, 365, 18, 11231, 67, 12, 2890, 18, 75, 21, 18, 3813, 67, 28091, 12,...
value = values[i][0]
return values[i][0]
def on_get_value(self, node, column): (i, values) = node[-1] if column: value = values[i][1][column - 1] else: value = values[i][0]
d15df37768a4c23432162af0271f884e4701c03d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/d15df37768a4c23432162af0271f884e4701c03d/view_tree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 588, 67, 1132, 12, 2890, 16, 756, 16, 1057, 4672, 261, 77, 16, 924, 13, 273, 756, 18919, 21, 65, 309, 1057, 30, 460, 273, 924, 63, 77, 6362, 21, 6362, 2827, 300, 404, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 588, 67, 1132, 12, 2890, 16, 756, 16, 1057, 4672, 261, 77, 16, 924, 13, 273, 756, 18919, 21, 65, 309, 1057, 30, 460, 273, 924, 63, 77, 6362, 21, 6362, 2827, 300, 404, 65, ...
on_title = EqQuery('title', text) on_text = EqQuery('text', text) query = OrQuery(on_title, on_text)
query = [ OrQuery(EqQuery('title', word), EqQuery('text', word)) for word, kk in TextField.split(text) ] query = AndQuery(*query)
def site_search(self, context): root = context.root
edca640baf238dcd22f83733c763f57496bdc8b3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/edca640baf238dcd22f83733c763f57496bdc8b3/website.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2834, 67, 3072, 12, 2890, 16, 819, 4672, 1365, 273, 819, 18, 3085, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2834, 67, 3072, 12, 2890, 16, 819, 4672, 1365, 273, 819, 18, 3085, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
def derived_series(self): """ Return the derived series of this group as a list of permutation groups. EXAMPLES: These computations use pseudo-random numbers, so we set the seed for reproducible testing. sage: set_random_seed(0) sage: G = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]]) sage: G.derived_series() [Permutati...
def degree(self): """ Synonym for largest_moved_point().
e9624a3eb707f1c9d3a1b217906f1eb759cc73d4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e9624a3eb707f1c9d3a1b217906f1eb759cc73d4/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10782, 12, 2890, 4672, 3536, 16091, 6435, 364, 12756, 67, 81, 9952, 67, 1153, 7675, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10782, 12, 2890, 4672, 3536, 16091, 6435, 364, 12756, 67, 81, 9952, 67, 1153, 7675, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self.assertEqual(tcp1, tcp2, "packets should be equal but are not")
self.assertNotEqual(tcp1, tcp2, "instances SHOULD be equal") self.assertEqual(tcp1.bytes, tcp2.bytes, "packet data SHOULD be equal")
def test_tcpv4_compare(self): """Test the underlying __compare__ functionality of the packet. Two packets constructed from the same bytes should be equal and two that are not should not be equal.""" file = PcapConnector("wwwtcp.out") packet = file.read() ip = ipv4(packet[file.dloff:len(packet)]) #pydb.debugger() tcp1 ...
cb660adb956c0ea6984844f8516137a1249754da /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5910/cb660adb956c0ea6984844f8516137a1249754da/tcpv4test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 14832, 90, 24, 67, 9877, 12, 2890, 4672, 3536, 4709, 326, 6808, 1001, 9877, 972, 14176, 434, 326, 4414, 18, 225, 16896, 12640, 15688, 628, 326, 1967, 1731, 1410, 506, 3959, 471...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14832, 90, 24, 67, 9877, 12, 2890, 4672, 3536, 4709, 326, 6808, 1001, 9877, 972, 14176, 434, 326, 4414, 18, 225, 16896, 12640, 15688, 628, 326, 1967, 1731, 1410, 506, 3959, 471...
t_start = startOfInterval(t, t_length) print timestamp_to_string(t), t_length, timestamp_to_string(t_start) assert(time.localtime(t_start)[0:6] == (2009, 3, 4, 1, 00, 00)) t = time.mktime((2009, 3, 4, 1, 57, 17, 0, 0, 0))
t_test = time.mktime((2009, 3, 4, 1, 57, 17, 0, 0, 0)) t_ans = time.mktime((2009, 3, 4, 1, 00, 00, 0, 0, 0)) t_start = startOfInterval(t_test, t_length) print timestamp_to_string(t_test), t_length, timestamp_to_string(t_start) assert(t_start == t_ans)
def _get_object(module_class, *args, **kwargs): """Given a path to a class, instantiates an instance of the class with the given args and returns it.""" # Split the path into its parts parts = module_class.split('.') # Strip off the classname: module = '.'.join(parts[:-1]) # Import the top level module mod = __import_...
e7f837b0d6bf15754108508ecefa2a293f5150e1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6433/e7f837b0d6bf15754108508ecefa2a293f5150e1/weeutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1612, 12, 2978, 67, 1106, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 6083, 279, 589, 358, 279, 667, 16, 5934, 16020, 392, 791, 434, 326, 667, 598, 326, 864, 833, 471, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1612, 12, 2978, 67, 1106, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 6083, 279, 589, 358, 279, 667, 16, 5934, 16020, 392, 791, 434, 326, 667, 598, 326, 864, 833, 471, 1...
def test_suite(level=1): suites = [] if level > 0: suites.append( unittest.makeSuite(test_math,'check_') ) if level > 5: pass total_suite = unittest.TestSuite(suites) return total_suite def test(level=10,verbosity=1): all_tests = test_suite(level=level) runner = unittest.TextTestRunner(verbosity=verbosity) runner.run(...
def test_suite(level=1): suites = [] if level > 0: suites.append( unittest.makeSuite(test_math,'check_') ) if level > 5: pass total_suite = unittest.TestSuite(suites) return total_suite
983efca0da8abef90cb4ccaa376b0b83d7398225 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13163/983efca0da8abef90cb4ccaa376b0b83d7398225/test_math.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 30676, 12, 2815, 33, 21, 4672, 27208, 273, 5378, 309, 1801, 405, 374, 30, 27208, 18, 6923, 12, 2836, 3813, 18, 6540, 13587, 12, 3813, 67, 15949, 11189, 1893, 4623, 13, 262, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 30676, 12, 2815, 33, 21, 4672, 27208, 273, 5378, 309, 1801, 405, 374, 30, 27208, 18, 6923, 12, 2836, 3813, 18, 6540, 13587, 12, 3813, 67, 15949, 11189, 1893, 4623, 13, 262, 3...
def writedocs(path, pkgpath=''): if os.path.isdir(path): dir = path for file in os.listdir(dir): path = os.path.join(dir, file) if os.path.isdir(path): writedocs(path, file + '.' + pkgpath) if os.path.isfile(path): writedocs(path, pkgpath) if os.path.isfile(path): modname = modulename(path) if modname: writedoc(pkgpat...
def doc(thing): """Display documentation on an object (for interactive use).""" if type(thing) is type(""): try: path, x = locate(thing) except DocImportError, value: print 'problem in %s - %s' % (value.filename, value.args) return if x: thing = x else: print 'could not find or import %s' % repr(thing) return desc = d...
c59006cf0425a2636c8284ef2601f7f489fad815 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/c59006cf0425a2636c8284ef2601f7f489fad815/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 12, 4274, 4672, 3536, 4236, 7323, 603, 392, 733, 261, 1884, 12625, 999, 13, 12123, 309, 618, 12, 4274, 13, 353, 618, 2932, 6, 4672, 775, 30, 589, 16, 619, 273, 10627, 12, 4274, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 12, 4274, 4672, 3536, 4236, 7323, 603, 392, 733, 261, 1884, 12625, 999, 13, 12123, 309, 618, 12, 4274, 13, 353, 618, 2932, 6, 4672, 775, 30, 589, 16, 619, 273, 10627, 12, 4274, ...
elif platform == 'windows-xul': del VideoItems[5]
def getShortcut(self, action): all = self.getShortcuts(action) if len(all) > 0: return all[0] else: return ShortCut(None)
258b5fc6d8abb31d58380c824d119af206dbc025 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/258b5fc6d8abb31d58380c824d119af206dbc025/menubar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13157, 5150, 12, 2890, 16, 1301, 4672, 777, 273, 365, 18, 588, 15576, 87, 12, 1128, 13, 309, 562, 12, 454, 13, 405, 374, 30, 327, 777, 63, 20, 65, 469, 30, 327, 7925, 15812, 12, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13157, 5150, 12, 2890, 16, 1301, 4672, 777, 273, 365, 18, 588, 15576, 87, 12, 1128, 13, 309, 562, 12, 454, 13, 405, 374, 30, 327, 777, 63, 20, 65, 469, 30, 327, 7925, 15812, 12, 70...
self.graphics = graphics if graphics: from GtkWorker import EmitPublisher, Publisher self.publisher = EmitPublisher (self, "logged", Publisher.SEND_LIST) self.publisher.start()
self.publisher = EmitPublisher (self, "logged", Publisher.SEND_LIST) self.publisher.start()
def __init__ (self, logpath, graphics=False): gobject.GObject.__init__(self) self.file = open(logpath, "w") # We store everything in this list, so that the LogDialog, which is # imported a little later, will have all data ever given to Log. # When Dialog inits, it will set this list to None, and we will stop # append...
8bb9d06476fdd253f77e1ba086d7fd07c27362c0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5339/8bb9d06476fdd253f77e1ba086d7fd07c27362c0/Log.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 613, 803, 16, 17313, 33, 8381, 4672, 314, 1612, 18, 43, 921, 16186, 2738, 972, 12, 2890, 13, 225, 365, 18, 768, 273, 1696, 12, 1330, 803, 16, 315, 91,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 613, 803, 16, 17313, 33, 8381, 4672, 314, 1612, 18, 43, 921, 16186, 2738, 972, 12, 2890, 13, 225, 365, 18, 768, 273, 1696, 12, 1330, 803, 16, 315, 91,...
return JAVA_TYPE_MAP[self.type]
return JAVA_TYPE_MAP[self.type.replace('OME:', '')]
def _get_javaType(self): try: # Hand back the type of enumerations if self.isEnumeration: javaType = self.name if len(self.delegate.values) == 0: # As we have no directly defined possible values we have # no reason to qualify our type explicitly. return self.type if javaType == "Type": # One of the OME XML unspecific "...
5339c66c1514a9b3d1ce25a1c2e4f244895f7efe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/5339c66c1514a9b3d1ce25a1c2e4f244895f7efe/fu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 6290, 559, 12, 2890, 4672, 775, 30, 468, 2841, 1473, 326, 618, 434, 3557, 1012, 309, 365, 18, 291, 21847, 30, 29877, 273, 365, 18, 529, 309, 562, 12, 2890, 18, 22216, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6290, 559, 12, 2890, 4672, 775, 30, 468, 2841, 1473, 326, 618, 434, 3557, 1012, 309, 365, 18, 291, 21847, 30, 29877, 273, 365, 18, 529, 309, 562, 12, 2890, 18, 22216, 1...
def _value_of_string(self, value): return getattr(self, '_%s__value_of_string' % (self._mode,))(value)
def _value_of_string(self, text): return getattr(self, '_%s__value_of_string' % (self._mode,))(text)
def _value_of_string(self, value): return getattr(self, '_%s__value_of_string' % (self._mode,))(value)
334d69ecca497c5fe47c80c27d0fdaf764a8fe4a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5406/334d69ecca497c5fe47c80c27d0fdaf764a8fe4a/LiteralIntWidget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1132, 67, 792, 67, 1080, 12, 2890, 16, 460, 4672, 327, 3869, 12, 2890, 16, 2070, 9, 87, 972, 1132, 67, 792, 67, 1080, 11, 738, 261, 2890, 6315, 3188, 16, 3719, 12, 1132, 13, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1132, 67, 792, 67, 1080, 12, 2890, 16, 460, 4672, 327, 3869, 12, 2890, 16, 2070, 9, 87, 972, 1132, 67, 792, 67, 1080, 11, 738, 261, 2890, 6315, 3188, 16, 3719, 12, 1132, 13, 2...
else:
elif not options.nocheckdirs:
def Initialize(): global DEBUGON, logfile 'Initialize the directories (remove and extract)'
21da379211e1b6b873ca45bc8e88d13a39e0ab47 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1915/21da379211e1b6b873ca45bc8e88d13a39e0ab47/run_buildkernel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9190, 13332, 2552, 6369, 673, 16, 15204, 296, 7520, 326, 6402, 261, 4479, 471, 2608, 2506, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9190, 13332, 2552, 6369, 673, 16, 15204, 296, 7520, 326, 6402, 261, 4479, 471, 2608, 2506, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if None == os.getenv('DISPLAY'): sys.exit(_('Bleachbit requires a graphical display'))
def __init__(self): if None == os.getenv('DISPLAY'): sys.exit(_('Bleachbit requires a graphical display')) import RecognizeCleanerML rcml = RecognizeCleanerML.RecognizeCleanerML() import CleanerML CleanerML.load_cleaners() self.create_window() gtk.gdk.threads_init() if options.get("first_start"): pref = PreferencesDial...
227a4c8dd174644cf32a55771d1917309aaa544e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/227a4c8dd174644cf32a55771d1917309aaa544e/GUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 1930, 7776, 4198, 554, 7605, 264, 1495, 4519, 781, 273, 7776, 4198, 554, 7605, 264, 1495, 18, 22931, 554, 7605, 264, 1495, 1435, 1930, 9645, 264, 1495, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 1930, 7776, 4198, 554, 7605, 264, 1495, 4519, 781, 273, 7776, 4198, 554, 7605, 264, 1495, 18, 22931, 554, 7605, 264, 1495, 1435, 1930, 9645, 264, 1495, 9...
if r[self._fields_id] in res: res[r[self._fields_id]].append(r['id'])
res[r[self._fields_id]].append(r['id'])
def get(self, cr, obj, ids, name, user=None, offset=0, context=None, values=None): if not context: context = {} if self._context: context = context.copy() context.update(self._context) if not values: values = {}
092c4dff88f22a1cb0b59819399930c72663330d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/092c4dff88f22a1cb0b59819399930c72663330d/fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 4422, 16, 1081, 16, 3258, 16, 508, 16, 729, 33, 7036, 16, 1384, 33, 20, 16, 819, 33, 7036, 16, 924, 33, 7036, 4672, 309, 486, 819, 30, 819, 273, 2618, 309, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 4422, 16, 1081, 16, 3258, 16, 508, 16, 729, 33, 7036, 16, 1384, 33, 20, 16, 819, 33, 7036, 16, 924, 33, 7036, 4672, 309, 486, 819, 30, 819, 273, 2618, 309, 365, ...
print "Tarkistuspiste11\n"; print "Tarkistuspiste 12\n";
def formatAlnSeq(alns,names,starts,motifAln="",linelen=60): """Formats the DNA sequence alignment output""" outstr="\n".join(["Sequence %d: %s"%(seqI+1,iname) for (seqI,iname) in enumerate(names)])+"\n\n" n=len(alns[0]) poses=[xstart+1 for xstart in starts] for i in range(0,n,linelen): lines=[xaln[i:i+linelen] for xaln...
bc032a4656439ef0d7cfdf470d894358c59e2762 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11674/bc032a4656439ef0d7cfdf470d894358c59e2762/Output.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 1067, 82, 6926, 12, 287, 2387, 16, 1973, 16, 17514, 16, 18313, 430, 1067, 82, 1546, 3113, 7511, 292, 275, 33, 4848, 4672, 3536, 8976, 326, 463, 11277, 3102, 8710, 876, 8395, 596, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 1067, 82, 6926, 12, 287, 2387, 16, 1973, 16, 17514, 16, 18313, 430, 1067, 82, 1546, 3113, 7511, 292, 275, 33, 4848, 4672, 3536, 8976, 326, 463, 11277, 3102, 8710, 876, 8395, 596, ...
"""
"""
def fl_add_chart(type, x, y, w, h, label): """ fl_add_chart(type, x, y, w, h, label) -> object """ retval = _fl_add_chart(type, x, y, w, h, label) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 1289, 67, 11563, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 4672, 3536, 1183, 67, 1289, 67, 11563, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 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, 1183, 67, 1289, 67, 11563, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 4672, 3536, 1183, 67, 1289, 67, 11563, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 13, ...
if not msgUserName and not securityEngineID:
if not msgUserName and not msgAuthoritativeEngineID:
def processIncomingMsg( self, snmpEngine, messageProcessingModel, maxMessageSize, securityParameters, securityModel, securityLevel, wholeMsg, msg # XXX ): # 3.2.1 try: securityParameters, rest = decoder.decode( securityParameters, asn1Spec=self._securityParametersSpec ) except PyAsn1Error: snmpInASNParseErrs, = snmpEn...
ffab0a87ee018d8dd66a5dcbe0630c6fbab8f6c1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/587/ffab0a87ee018d8dd66a5dcbe0630c6fbab8f6c1/service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 20370, 3332, 12, 365, 16, 15366, 4410, 16, 883, 7798, 1488, 16, 943, 1079, 1225, 16, 4373, 2402, 16, 4373, 1488, 16, 4373, 2355, 16, 7339, 3332, 16, 1234, 225, 468, 11329, 262, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 20370, 3332, 12, 365, 16, 15366, 4410, 16, 883, 7798, 1488, 16, 943, 1079, 1225, 16, 4373, 2402, 16, 4373, 1488, 16, 4373, 2355, 16, 7339, 3332, 16, 1234, 225, 468, 11329, 262, 3...
except AttributeError:
except:
def putPage(self, text, comment = None, watchArticle = False, minorEdit = True, newPage = False, token = None, gettoken = False, sysop = False): """ Upload 'text' as new contents for this Page by filling out the edit page.
f7ca3f2d4d31795339178be982a554669101be23 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/f7ca3f2d4d31795339178be982a554669101be23/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 1964, 12, 2890, 16, 977, 16, 2879, 273, 599, 16, 4267, 7880, 273, 1083, 16, 8439, 4666, 273, 1053, 16, 394, 1964, 273, 1083, 16, 1147, 273, 599, 16, 336, 2316, 273, 1083, 16, 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, 1378, 1964, 12, 2890, 16, 977, 16, 2879, 273, 599, 16, 4267, 7880, 273, 1083, 16, 8439, 4666, 273, 1053, 16, 394, 1964, 273, 1083, 16, 1147, 273, 599, 16, 336, 2316, 273, 1083, 16, 2...
def process_result(result,total=None):
def process_result(result,total=None,found_item=None):
def process_result(result,total=None): if result == None: result = [] l = []
482df821e2d5847391d4880381c0bf1607381a30 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11626/482df821e2d5847391d4880381c0bf1607381a30/content_directory_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2088, 12, 2088, 16, 4963, 33, 7036, 16, 7015, 67, 1726, 33, 7036, 4672, 309, 563, 422, 599, 30, 563, 273, 5378, 328, 273, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 2088, 12, 2088, 16, 4963, 33, 7036, 16, 7015, 67, 1726, 33, 7036, 4672, 309, 563, 422, 599, 30, 563, 273, 5378, 328, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, ...
Comments are subsituted too:
Comments are subsituted too::
def strip_string_literals(code, state=None): r""" Returns a string with all literal quotes replaced with labels and a dict of labels for re-subsitution. This makes parsing much easier. EXAMPLES: sage: from sage.misc.preparser import strip_string_literals sage: s, literals, state = strip_string_literals(r'''['a', "b", ...
5a2c96c32563a398062508fd709c7a214197b32d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/5a2c96c32563a398062508fd709c7a214197b32d/preparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2569, 67, 1080, 67, 80, 11235, 12, 710, 16, 919, 33, 7036, 4672, 436, 8395, 2860, 279, 533, 598, 777, 7158, 10681, 8089, 598, 3249, 471, 279, 2065, 434, 3249, 364, 283, 17, 22284, 305,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2569, 67, 1080, 67, 80, 11235, 12, 710, 16, 919, 33, 7036, 4672, 436, 8395, 2860, 279, 533, 598, 777, 7158, 10681, 8089, 598, 3249, 471, 279, 2065, 434, 3249, 364, 283, 17, 22284, 305,...
sources.append(CudaSource(name))
sources.append(CudaSource(name, ptx))
def getAllCudaSources(path): sources = [] for dirpath, dirnames, filenames in os.walk(path): for filename in filenames: name = os.path.join(dirpath, filename) if os.path.isfile(name): split = name.rsplit('.', 1) extension = "" if len(split) == 2: extension = split[1] if extension == "cu": sources.append(CudaSource(name...
3531dff3318e49ba5a7525caed84e8171620ec0e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4467/3531dff3318e49ba5a7525caed84e8171620ec0e/CompileCudaTests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5514, 39, 13177, 8628, 12, 803, 4672, 5550, 273, 5378, 364, 17803, 16, 1577, 1973, 16, 9066, 316, 1140, 18, 11348, 12, 803, 4672, 364, 1544, 316, 9066, 30, 508, 273, 1140, 18, 803, 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, 5514, 39, 13177, 8628, 12, 803, 4672, 5550, 273, 5378, 364, 17803, 16, 1577, 1973, 16, 9066, 316, 1140, 18, 11348, 12, 803, 4672, 364, 1544, 316, 9066, 30, 508, 273, 1140, 18, 803, 18,...
func.prepared_async_call(arg._grid, arg.stream,
func.prepared_async_call(arg._grid, stream,
def frexp(arg): """Return a tuple `(significands, exponents)` such that `arg == significand * 2**exponent`. """ sig = gpuarray.GPUArray(arg.shape, arg.dtype) expt = gpuarray.GPUArray(arg.shape, arg.dtype) func = elementwise.get_frexp_kernel() func.set_block_shape(*arg._block) func.prepared_async_call(arg._grid, arg.st...
84eb5784b45852e41dd494156dc9dff4f17b32bd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12870/84eb5784b45852e41dd494156dc9dff4f17b32bd/cumath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22010, 23829, 12, 3175, 4672, 3536, 990, 279, 3193, 1375, 12, 2977, 1507, 5708, 16, 9100, 87, 22025, 4123, 716, 1375, 3175, 422, 1573, 1507, 464, 380, 576, 636, 24045, 8338, 3536, 3553, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22010, 23829, 12, 3175, 4672, 3536, 990, 279, 3193, 1375, 12, 2977, 1507, 5708, 16, 9100, 87, 22025, 4123, 716, 1375, 3175, 422, 1573, 1507, 464, 380, 576, 636, 24045, 8338, 3536, 3553, ...
if nodeType == xml.dom.core.COMMENT: start = start + 1 elif nodeType == xml.dom.core.TEXT:
if nodeType == xml.dom.core.TEXT:
def skip_leading_nodes(children, start, i): i = min(i, len(children)) while i > start: # skip over leading comments and whitespace: try: child = children[start] except IndexError: sys.stderr.write( "skip_leading_nodes() failed at index %d\n" % start) raise nodeType = child.nodeType if nodeType == xml.dom.core.COMMENT: ...
7dab6affba271fd9784c15fa0e867a8e91a45e83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7dab6affba271fd9784c15fa0e867a8e91a45e83/docfixer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2488, 67, 27200, 67, 4690, 12, 5906, 16, 787, 16, 277, 4672, 277, 273, 1131, 12, 77, 16, 562, 12, 5906, 3719, 1323, 277, 405, 787, 30, 468, 2488, 1879, 7676, 5678, 471, 7983, 30, 775...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2488, 67, 27200, 67, 4690, 12, 5906, 16, 787, 16, 277, 4672, 277, 273, 1131, 12, 77, 16, 562, 12, 5906, 3719, 1323, 277, 405, 787, 30, 468, 2488, 1879, 7676, 5678, 471, 7983, 30, 775...
def addTicket(self, time, changetime, component,
def addTicket(self, id, time, changetime, component,
def addTicket(self, time, changetime, component, severity, priority, owner, reporter, cc, version, milestone, status, resolution, summary, description, keywords): c = self.db().cursor()
5cddf387e67e89477fb9b954001b3573f8af2454 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/5cddf387e67e89477fb9b954001b3573f8af2454/bugzilla2trac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 13614, 12, 2890, 16, 612, 16, 813, 16, 9435, 2374, 16, 1794, 16, 11426, 16, 4394, 16, 3410, 16, 11528, 16, 4946, 16, 1177, 16, 28664, 16, 1267, 16, 7861, 16, 4916, 16, 2477, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 13614, 12, 2890, 16, 612, 16, 813, 16, 9435, 2374, 16, 1794, 16, 11426, 16, 4394, 16, 3410, 16, 11528, 16, 4946, 16, 1177, 16, 28664, 16, 1267, 16, 7861, 16, 4916, 16, 2477, 16,...
def _get_soname(f): if not f: return None cmd = "objdump -p -j .dynamic 2>/dev/null " + f res = re.search(r'\sSONAME\s+([^\s]+)', os.popen(cmd).read()) if not res: return None return res.group(1)
if sys.platform == "sunos5": def _get_soname(f): if not f: return None cmd = "/usr/ccs/bin/dump -Lpv 2>/dev/null " + f res = re.search(r'\[.*\]\sSONAME\s+([^\s]+)', os.popen(cmd).read()) if not res: return None return res.group(1) else: def _get_soname(f): if not f: return None cmd = "objdump -p -j .dynamic 2>/dev/n...
def _get_soname(f): # assuming GNU binutils / ELF if not f: return None cmd = "objdump -p -j .dynamic 2>/dev/null " + f res = re.search(r'\sSONAME\s+([^\s]+)', os.popen(cmd).read()) if not res: return None return res.group(1)
e61208a1b79459fd76aefad61449b0fe16f2c428 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/e61208a1b79459fd76aefad61449b0fe16f2c428/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 816, 339, 12, 74, 4672, 468, 15144, 611, 50, 57, 4158, 5471, 342, 512, 9105, 309, 486, 284, 30, 327, 599, 1797, 273, 315, 2603, 8481, 300, 84, 300, 78, 263, 14507, 576,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 816, 339, 12, 74, 4672, 468, 15144, 611, 50, 57, 4158, 5471, 342, 512, 9105, 309, 486, 284, 30, 327, 599, 1797, 273, 315, 2603, 8481, 300, 84, 300, 78, 263, 14507, 576,...
"A Last.fm XSPF playlist.""" uri = None def __init__(self, uri, network): _BaseObject.__init__(self, network) self.uri = uri def _get_params(self): return {'playlistURL': self.get_uri()} @_string_output def __repr__(self): return self.get_uri() def __eq__(self, other): return self.get_uri() == other.get_uri() de...
"A Last.fm XSPF playlist.""" uri = None def __init__(self, uri, network): _BaseObject.__init__(self, network) self.uri = uri def _get_params(self): return {'playlistURL': self.get_uri()} @_string_output def __repr__(self): return self.get_uri() def __eq__(self, other): return self.get_uri() == other.get_uri() de...
def get_members(self, limit=50): """ Returns a sequence of User objects if limit==None it will return all """ nodes = _collect_nodes(limit, self, "group.getMembers", False) users = [] for node in nodes: users.append(User(_extract(node, "name"), self.network)) return users
312230e30b9a32836e57d3014b7461a466a3dbed /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9926/312230e30b9a32836e57d3014b7461a466a3dbed/pylast.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7640, 12, 2890, 16, 1800, 33, 3361, 4672, 3536, 2860, 279, 3102, 434, 2177, 2184, 309, 1800, 631, 7036, 518, 903, 327, 777, 3536, 225, 2199, 273, 389, 14676, 67, 4690, 12, 359...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7640, 12, 2890, 16, 1800, 33, 3361, 4672, 3536, 2860, 279, 3102, 434, 2177, 2184, 309, 1800, 631, 7036, 518, 903, 327, 777, 3536, 225, 2199, 273, 389, 14676, 67, 4690, 12, 359...