rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
all = self.db.guess_all_extensions('text/plain', strict=True) all.sort() eq(all, ['.bat', '.c', '.h', '.ksh', '.pl', '.txt'])
unless = self.failUnless all = Set(self.db.guess_all_extensions('text/plain', strict=True)) unless(all >= Set(['.bat', '.c', '.h', '.ksh', '.pl', '.txt']))
def test_guess_all_types(self): eq = self.assertEqual # First try strict all = self.db.guess_all_extensions('text/plain', strict=True) all.sort() eq(all, ['.bat', '.c', '.h', '.ksh', '.pl', '.txt']) # And now non-strict all = self.db.guess_all_extensions('image/jpg', strict=False) all.sort() eq(all, ['.jpg']) # And now...
555743164917b1292f01f2d1ede56ac40922d179 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/555743164917b1292f01f2d1ede56ac40922d179/test_mimetypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 20885, 67, 454, 67, 2352, 12, 2890, 4672, 7555, 273, 365, 18, 11231, 5812, 468, 5783, 775, 5490, 28502, 273, 365, 18, 6870, 984, 2656, 565, 777, 273, 1000, 12, 2890, 18, 1966...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20885, 67, 454, 67, 2352, 12, 2890, 4672, 7555, 273, 365, 18, 11231, 5812, 468, 5783, 775, 5490, 28502, 273, 365, 18, 6870, 984, 2656, 565, 777, 273, 1000, 12, 2890, 18, 1966...
def printV1(str="", tup=()):
def printV1(str="", tup=(), printLine = True):
def printV1(str="", tup=()): if verbose>=1: print str % tup
9ef61b5fe23b958aa80a57e1aa7994be56216f18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/9ef61b5fe23b958aa80a57e1aa7994be56216f18/pyxtract.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 58, 21, 12, 701, 1546, 3113, 15822, 33, 9334, 1172, 1670, 273, 1053, 4672, 309, 3988, 34, 33, 21, 30, 1172, 609, 738, 15822, 225, 2, 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, 1172, 58, 21, 12, 701, 1546, 3113, 15822, 33, 9334, 1172, 1670, 273, 1053, 4672, 309, 3988, 34, 33, 21, 30, 1172, 609, 738, 15822, 225, 2, -100, -100, -100, -100, -100, -100, -100, -10...
lattice = farray([ [float(x)* BOHR for x in row[0:3]] for row in map(string.split, lattice_lines) ])
if lattice_lines != []: lattice = farray([ [float(x)* BOHR for x in row[0:3]] for row in map(string.split, lattice_lines) ]) else: if atoms_ref is None: raise ValueError('No lattice in .geom file and atoms_ref not present') else: lattice = atoms_ref.lattice[:]
def CastepGeomReader(source): """Generator to read frames from CASTEP .geom file""" if type(source) == type(''): source = open(source, 'r') source = iter(source) while True: lines = [] line = source.next().strip() # raises StopIteration at end of file # Skip header if present if line.startswith('BEGIN header'): whil...
ec8807b76757684570a516cf1219a2030cb3b7d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/ec8807b76757684570a516cf1219a2030cb3b7d0/castep.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19782, 881, 16972, 2514, 12, 3168, 4672, 3536, 3908, 358, 855, 7793, 628, 6425, 26951, 263, 10049, 585, 8395, 225, 309, 618, 12, 3168, 13, 422, 618, 2668, 11, 4672, 1084, 273, 1696, 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, 19782, 881, 16972, 2514, 12, 3168, 4672, 3536, 3908, 358, 855, 7793, 628, 6425, 26951, 263, 10049, 585, 8395, 225, 309, 618, 12, 3168, 13, 422, 618, 2668, 11, 4672, 1084, 273, 1696, 12, ...
filename = self.model.filename
filename = self.model.assertLocalFile()
def deleteBreakPoint(self, lineNo): if Preferences.useDebugger == 'new': self.breaks.deleteBreakpoints(lineNo) debugger = self.model.editor.debugger if debugger: # Try to apply to the running debugger. filename = self.model.filename #string.lower(self.model.filename) debugger.deleteBreakpoints(filename, lineNo) self.Ma...
a278e70d9fcdc5da539495de8ca5a2ce08caf5cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/a278e70d9fcdc5da539495de8ca5a2ce08caf5cd/PySourceView.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 7634, 2148, 12, 2890, 16, 980, 2279, 4672, 309, 28310, 18, 1202, 24113, 422, 296, 2704, 4278, 365, 18, 29292, 18, 3733, 7634, 4139, 12, 1369, 2279, 13, 19977, 273, 365, 18, 2284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 7634, 2148, 12, 2890, 16, 980, 2279, 4672, 309, 28310, 18, 1202, 24113, 422, 296, 2704, 4278, 365, 18, 29292, 18, 3733, 7634, 4139, 12, 1369, 2279, 13, 19977, 273, 365, 18, 2284, ...
self.tries = 0 self.maxtries = 10
def __init__(self, *args): apply(urllib.FancyURLopener.__init__, (self,) + args) self.errcode = 200 self.tries = 0 self.maxtries = 10
3375ab0caac67b977cc26065d6a9c2c1d47b3786 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3375ab0caac67b977cc26065d6a9c2c1d47b3786/robotparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 2230, 12, 718, 2941, 18, 42, 12514, 1785, 25098, 16186, 2738, 972, 16, 261, 2890, 16, 13, 397, 833, 13, 365, 18, 25093, 273, 4044, 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, 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, 2230, 12, 718, 2941, 18, 42, 12514, 1785, 25098, 16186, 2738, 972, 16, 261, 2890, 16, 13, 397, 833, 13, 365, 18, 25093, 273, 4044, 365, ...
id = str(self.get_pathto(object))
real = self.get_real_handler() id = str(real.get_pathto(object))
def _browse_namespace(self, object, icon_size): line = {} id = str(self.get_pathto(object)) line['id'] = id title = object.get_title() line['title_or_name'] = title firstview = object.get_firstview() if firstview is None: href = None else: href = '%s/;%s' % (id, firstview) line['name'] = (object.name, href) line['forma...
dcc9430af84ea2f8be2b16d69f48a7f01127d5d8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/dcc9430af84ea2f8be2b16d69f48a7f01127d5d8/folder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 25731, 67, 4937, 12, 2890, 16, 733, 16, 4126, 67, 1467, 4672, 980, 273, 2618, 2863, 273, 365, 18, 588, 67, 7688, 67, 4176, 1435, 612, 273, 609, 12, 7688, 18, 588, 67, 803, 869, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25731, 67, 4937, 12, 2890, 16, 733, 16, 4126, 67, 1467, 4672, 980, 273, 2618, 2863, 273, 365, 18, 588, 67, 7688, 67, 4176, 1435, 612, 273, 609, 12, 7688, 18, 588, 67, 803, 869, ...
_ssl_closing = False
def handle_error(self): raise
68adf34dac99a2bddd10b96d239aefb9dad2f932 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/68adf34dac99a2bddd10b96d239aefb9dad2f932/test_ftplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 1636, 12, 2890, 4672, 1002, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 1636, 12, 2890, 4672, 1002, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.optimize_loop(ops, 'Not', expected)
expected = """ [p0] jump(p0) """ self.optimize_loop(ops, 'Not', expected, expected_preamble=preamble)
def test_remove_guard_class_1(self): ops = """ [p0] guard_class(p0, ConstClass(node_vtable)) [] guard_class(p0, ConstClass(node_vtable)) [] jump(p0) """ expected = """ [p0] guard_class(p0, ConstClass(node_vtable)) [] jump(p0) """ self.optimize_loop(ops, 'Not', expected)
b8f4f394c788b5511a3a79afa64cbb07f9ccb2ae /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/b8f4f394c788b5511a3a79afa64cbb07f9ccb2ae/test_optimizeopt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4479, 67, 24594, 67, 1106, 67, 21, 12, 2890, 4672, 6727, 273, 3536, 306, 84, 20, 65, 11026, 67, 1106, 12, 84, 20, 16, 9333, 797, 12, 2159, 67, 90, 2121, 3719, 5378, 11026, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4479, 67, 24594, 67, 1106, 67, 21, 12, 2890, 4672, 6727, 273, 3536, 306, 84, 20, 65, 11026, 67, 1106, 12, 84, 20, 16, 9333, 797, 12, 2159, 67, 90, 2121, 3719, 5378, 11026, ...
raise ioe
raise
def copyfile(srcpath, dstpath, copy_mode_from_dst=True, run_restorecon=True): """Copy srcpath to dstpath. Abort operation if e.g. not enough space is available. Attempt to atomically replace dstpath if it exists.""" if issamefile(srcpath, dstpath, catch_stat_exceptions=OSError): return dstpath = os.path.realpath(ds...
96cf07ab007d182d05a2e2837ceb841654bfeea6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2838/96cf07ab007d182d05a2e2837ceb841654bfeea6/files.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29310, 12, 4816, 803, 16, 3046, 803, 16, 1610, 67, 3188, 67, 2080, 67, 11057, 33, 5510, 16, 1086, 67, 13991, 591, 33, 5510, 4672, 3536, 2951, 1705, 803, 358, 3046, 803, 18, 225, 14263,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29310, 12, 4816, 803, 16, 3046, 803, 16, 1610, 67, 3188, 67, 2080, 67, 11057, 33, 5510, 16, 1086, 67, 13991, 591, 33, 5510, 4672, 3536, 2951, 1705, 803, 358, 3046, 803, 18, 225, 14263,...
if not sys.modules.has_key('logging'): import logging logging.basicConfig()
def _configure_logging(): if not sys.modules.has_key('logging'): import logging logging.basicConfig()
def _exec(cmd): '''Prints the time it takes to execute 'cmd'.''' if os.environ.get('X', None): start = time.time() exec cmd _print('(%.3fs)' % (time.time() - start))
f8c45562b7ce76e16b3ca098b95a6ff1e22605e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/f8c45562b7ce76e16b3ca098b95a6ff1e22605e6/ZopeLite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4177, 12, 4172, 4672, 9163, 15402, 326, 813, 518, 5530, 358, 1836, 296, 4172, 11, 1093, 6309, 309, 1140, 18, 28684, 18, 588, 2668, 60, 2187, 599, 4672, 787, 273, 813, 18, 957, 143...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4177, 12, 4172, 4672, 9163, 15402, 326, 813, 518, 5530, 358, 1836, 296, 4172, 11, 1093, 6309, 309, 1140, 18, 28684, 18, 588, 2668, 60, 2187, 599, 4672, 787, 273, 813, 18, 957, 143...
self.config.setting["clear_existing_tags"] = \ self.ui.clear_existing_tags.isChecked() self.config.setting["write_id3v1"] = \ self.ui.write_id3v1.isChecked() self.config.setting["write_id3v23"] = \ self.ui.write_id3v23.isChecked()
self.config.setting["clear_existing_tags"] = self.ui.clear_existing_tags.isChecked() self.config.setting["write_id3v1"] = self.ui.write_id3v1.isChecked() self.config.setting["write_id3v23"] = self.ui.write_id3v23.isChecked()
def save_options(self): self.config.setting["clear_existing_tags"] = \ self.ui.clear_existing_tags.isChecked() self.config.setting["write_id3v1"] = \ self.ui.write_id3v1.isChecked() self.config.setting["write_id3v23"] = \ self.ui.write_id3v23.isChecked() if self.ui.enc_iso88591.isChecked(): self.config.setting["id3v2_e...
d68d7863d1b9df374786d5ea775de5ff1a821e01 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12415/d68d7863d1b9df374786d5ea775de5ff1a821e01/tags.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 2116, 12, 2890, 4672, 365, 18, 1425, 18, 8920, 9614, 8507, 67, 11711, 67, 4156, 11929, 273, 365, 18, 4881, 18, 8507, 67, 11711, 67, 4156, 18, 291, 11454, 1435, 365, 18, 1425,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 2116, 12, 2890, 4672, 365, 18, 1425, 18, 8920, 9614, 8507, 67, 11711, 67, 4156, 11929, 273, 365, 18, 4881, 18, 8507, 67, 11711, 67, 4156, 18, 291, 11454, 1435, 365, 18, 1425,...
available_from = validators.DateConverter(format='%d/%m/%y') available_until = validators.DateConverter(format='%d/%m/%y')
available_from = validators.DateConverter(month_style='dd/mm/yyyy') available_until = validators.DateConverter(month_style='dd/mm/yyyy')
def validate_python(self, value, state): ceiling = Ceiling.find_by_name(value['ceiling']['name']) if ceiling != None and ceiling != c.ceiling: raise Invalid("Ceiling name already in use", value, state)
60883bd6058fc0cdc47a5dc617add4573ca8a7ba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12856/60883bd6058fc0cdc47a5dc617add4573ca8a7ba/ceiling.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 67, 8103, 12, 2890, 16, 460, 16, 919, 4672, 5898, 4973, 273, 29898, 4973, 18, 4720, 67, 1637, 67, 529, 12, 1132, 3292, 311, 4973, 21712, 529, 19486, 309, 5898, 4973, 480, 599, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 67, 8103, 12, 2890, 16, 460, 16, 919, 4672, 5898, 4973, 273, 29898, 4973, 18, 4720, 67, 1637, 67, 529, 12, 1132, 3292, 311, 4973, 21712, 529, 19486, 309, 5898, 4973, 480, 599, 47...
You can import a patch straight from a mail message. Even patches as attachments work (body part must be type text/plain or text/x-patch to be used). From and Subject headers of email message are used as default committer and commit message. All text/plain body parts before first diff are added to commit message.
def import_patch(self, filename, options): """ Import an ordered set of patches from patch file, i.e., a plain text file created using the export command.
1c979fd6388b592ca79c6997980b75e1c6408749 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/1c979fd6388b592ca79c6997980b75e1c6408749/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 2272, 12, 2890, 16, 1544, 16, 702, 4672, 3536, 6164, 392, 5901, 444, 434, 16482, 628, 4729, 585, 16, 277, 18, 73, 12990, 279, 7351, 977, 585, 2522, 1450, 326, 3359, 1296, 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, 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, 1930, 67, 2272, 12, 2890, 16, 1544, 16, 702, 4672, 3536, 6164, 392, 5901, 444, 434, 16482, 628, 4729, 585, 16, 277, 18, 73, 12990, 279, 7351, 977, 585, 2522, 1450, 326, 3359, 1296, 18,...
if self.anchorType == 'parentNode': self.parent.domHandler.addItemAtEnd(self.currentXML(obj), self.anchorId) if self.anchorType == 'nextSibling': self.parent.domHandler.addItemBefore(self.currentXML(obj), self.anchorId)
self.toAdd.append(obj) self.addCallback()
def onAdd(self, obj, id): if self.parent.domHandler: next = self.view.getNextID(id) if next == None: # Adding it at the end of the list. Must add it relative to # the anchor. if self.anchorType == 'parentNode': self.parent.domHandler.addItemAtEnd(self.currentXML(obj), self.anchorId) if self.anchorType == 'nextSibling':...
d14ca417ed0b2f4daf41ce093e284bd4f9e3a142 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/d14ca417ed0b2f4daf41ce093e284bd4f9e3a142/template.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 986, 12, 2890, 16, 1081, 16, 612, 4672, 309, 365, 18, 2938, 18, 9859, 1503, 30, 1024, 273, 365, 18, 1945, 18, 588, 2134, 734, 12, 350, 13, 309, 1024, 422, 599, 30, 468, 21240, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 986, 12, 2890, 16, 1081, 16, 612, 4672, 309, 365, 18, 2938, 18, 9859, 1503, 30, 1024, 273, 365, 18, 1945, 18, 588, 2134, 734, 12, 350, 13, 309, 1024, 422, 599, 30, 468, 21240, ...
if self.__token == TOKEN_EQUAL:
if self.__options['_expect_string'] in [TOKEN_EQUAL, TOKEN_SEMICOLON]:
def get_next_token(self): '''Consumes and returns one token from the input file.
77c090311aef9eb9eaa59a57cdc22e94c207719a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/766/77c090311aef9eb9eaa59a57cdc22e94c207719a/tdbparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4285, 67, 2316, 12, 2890, 4672, 9163, 11911, 281, 471, 1135, 1245, 1147, 628, 326, 810, 585, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4285, 67, 2316, 12, 2890, 4672, 9163, 11911, 281, 471, 1135, 1245, 1147, 628, 326, 810, 585, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
account_id, end_period_ids, datas['form']['posted'], context)
account_id, list(set(end_period_ids).difference( set(start_period_ids))), datas['form']['posted'], context)
def parse(self, cursor, user, report, objects, datas, context): if context is None: context = {} context = context.copy() account_obj = self.pool.get('account.account') period_obj = self.pool.get('account.period') company_obj = self.pool.get('company.company')
ab493505e0d75b7acf28f517cfa7b874331d8cc4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9290/ab493505e0d75b7acf28f517cfa7b874331d8cc4/account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 3347, 16, 729, 16, 2605, 16, 2184, 16, 5386, 16, 819, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 819, 273, 819, 18, 3530, 1435, 2236, 67, 2603, 273, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 3347, 16, 729, 16, 2605, 16, 2184, 16, 5386, 16, 819, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 819, 273, 819, 18, 3530, 1435, 2236, 67, 2603, 273, 365, 18, ...
pManager.manager.DebugStr('cProxyHandler '+ __version__ +': Closing Socket (iOwl-Command).', 4)
def handle(self): """Get called by cProxyCore for each request"""
1df9930976970a9de10e02efd7c2e7c886090355 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2853/1df9930976970a9de10e02efd7c2e7c886090355/cProxyHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 4672, 3536, 967, 2566, 635, 276, 3886, 4670, 364, 1517, 590, 8395, 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, 1640, 12, 2890, 4672, 3536, 967, 2566, 635, 276, 3886, 4670, 364, 1517, 590, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
raise SystemExit, """Cannot locate command, "sdl-config". Default SDL compile flags have been used, which will likely require a little editing."""
print """Error running "sdl-config". Default SDL compile flags have been used, which may require a little editing. (E.g. If you are using the Mac OS X SDL binary framework install, try appending -Xlinker "/Users/YOUR_USERNAME/Library/Frameworks" to the SDL line in the file Setup)""" configinfo = "-framework SDL"
def main(): global DEPS print 'calling "sdl-config"' configinfo = "-I/usr/local/include -framework SDL" # This line is in case sdl-config not found but SDL installed (not likely) try: configinfo = os.popen(configcommand).readlines() print 'Found SDL version:', configinfo[0] configinfo = ' '.join(configinfo[1:]) config...
3a3c0653360d63e7ac10f254afdab7a96885c003 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1298/3a3c0653360d63e7ac10f254afdab7a96885c003/config_darwin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2552, 2030, 5857, 225, 1172, 296, 31623, 315, 87, 5761, 17, 1425, 5187, 642, 1376, 273, 3701, 45, 19, 13640, 19, 3729, 19, 6702, 300, 12303, 17157, 6, 468, 1220, 980, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2552, 2030, 5857, 225, 1172, 296, 31623, 315, 87, 5761, 17, 1425, 5187, 642, 1376, 273, 3701, 45, 19, 13640, 19, 3729, 19, 6702, 300, 12303, 17157, 6, 468, 1220, 980, 353, ...
def onChainBoxClicked (self, chainbox): pass
def onFinger (self, fm, finger): if not finger.getName() == self.connection.getUsername(): return self.finger = finger self.__updateYourRatingHBox()
1344bbdcf9209127ef2134a21ca15defeec75720 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5339/1344bbdcf9209127ef2134a21ca15defeec75720/ICLounge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 42, 6658, 261, 2890, 16, 10940, 16, 28206, 4672, 309, 486, 28206, 18, 17994, 1435, 422, 365, 18, 4071, 18, 588, 8575, 13332, 327, 365, 18, 74, 6658, 273, 28206, 365, 16186, 2725, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 603, 42, 6658, 261, 2890, 16, 10940, 16, 28206, 4672, 309, 486, 28206, 18, 17994, 1435, 422, 365, 18, 4071, 18, 588, 8575, 13332, 327, 365, 18, 74, 6658, 273, 28206, 365, 16186, 2725, ...
We ignore function values that are infinite or NaN.
We ignore function values that are infinite or NaN::
def plot_vector_field((f, g), xrange, yrange, **options): r""" \code{plot_vector_field} takes two functions of two variables xvar and yvar (for instance, if the variables are $x$ and $y$, take $(f(x,y), g(x,y))$) and plots vector arrows of the function over the specified ranges, with xrange being of xvar between xmin ...
94a24998aaad8dc6b7e6faed7105bce7d769ef4b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/94a24998aaad8dc6b7e6faed7105bce7d769ef4b/plot_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 67, 7737, 67, 1518, 12443, 74, 16, 314, 3631, 12314, 16, 677, 3676, 16, 2826, 2116, 4672, 436, 8395, 225, 521, 710, 95, 4032, 67, 7737, 67, 1518, 97, 5530, 2795, 4186, 434, 2795,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 67, 7737, 67, 1518, 12443, 74, 16, 314, 3631, 12314, 16, 677, 3676, 16, 2826, 2116, 4672, 436, 8395, 225, 521, 710, 95, 4032, 67, 7737, 67, 1518, 97, 5530, 2795, 4186, 434, 2795,...
if context['stock_date_end'] <= date_obj.today(cursor, user,
if context['stock_date_end'] < date_obj.today(cursor, user,
def products_by_location(self, cursor, user, location_ids, product_ids=None, with_childs=False, skip_zero=True, context=None): """ Return a dict like : {(location, product): qty} for each location and product given as argument, the implicit uom is the default uom on the product. The keys stock_date_end stock_date_start...
346cb7915b9fae7b60410c9f08365d4c4b721d58 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9298/346cb7915b9fae7b60410c9f08365d4c4b721d58/product.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10406, 67, 1637, 67, 3562, 12, 2890, 16, 3347, 16, 729, 16, 2117, 67, 2232, 16, 3017, 67, 2232, 33, 7036, 16, 598, 67, 3624, 87, 33, 8381, 16, 2488, 67, 7124, 33, 5510, 16, 819, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10406, 67, 1637, 67, 3562, 12, 2890, 16, 3347, 16, 729, 16, 2117, 67, 2232, 16, 3017, 67, 2232, 33, 7036, 16, 598, 67, 3624, 87, 33, 8381, 16, 2488, 67, 7124, 33, 5510, 16, 819, 33...
return self.__node_for_path(node_id, path) else: return None
toreturn = self.__node_for_path(node_id, path) else: toreturn = None return toreturn
def __node_for_path(self,basenode_id,path): if len(path) == 0: return basenode_id elif path[0] < self.node_n_children(basenode_id): if len(path) == 1: return self.node_nth_child(basenode_id,path[0]) else: node_id = self.node_nth_child(basenode_id,path[0]) path = path[1:] return self.__node_for_path(node_id, path) else:...
d1e2e3781c819eab079c7a3534f1638eeb7d7317 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/d1e2e3781c819eab079c7a3534f1638eeb7d7317/filteredtree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2159, 67, 1884, 67, 803, 12, 2890, 16, 9157, 20680, 67, 350, 16, 803, 4672, 309, 562, 12, 803, 13, 422, 374, 30, 327, 2580, 20680, 67, 350, 1327, 589, 63, 20, 65, 411, 365, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2159, 67, 1884, 67, 803, 12, 2890, 16, 9157, 20680, 67, 350, 16, 803, 4672, 309, 562, 12, 803, 13, 422, 374, 30, 327, 2580, 20680, 67, 350, 1327, 589, 63, 20, 65, 411, 365, 1...
data["resources"] = package.data.resources
data["resources"] = package.data.resources data["translations"] = package.data.translations data["locales"] = package.data.locales
def getPackageData(package): data = {} data["resources"] = package.data.resources data = json.dumpsCode(data) data += ';\n' return data
403a885ced351ae9bd9bdb5d7d8a04c9a0b756ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/403a885ced351ae9bd9bdb5d7d8a04c9a0b756ee/CodeGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11506, 751, 12, 5610, 4672, 501, 273, 2618, 501, 9614, 4683, 11929, 565, 273, 2181, 18, 892, 18, 4683, 501, 9614, 13457, 11929, 273, 2181, 18, 892, 18, 13457, 501, 9614, 22638, 11929, 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, 11506, 751, 12, 5610, 4672, 501, 273, 2618, 501, 9614, 4683, 11929, 565, 273, 2181, 18, 892, 18, 4683, 501, 9614, 13457, 11929, 273, 2181, 18, 892, 18, 13457, 501, 9614, 22638, 11929, 13...
minx = min(self.currSel.x(), self.currSelEnd.x()) maxx = max(self.currSel.x(), self.currSelEnd.x()) miny = min(self.currSel.y(), self.currSelEnd.y()) maxy = max(self.currSel.y(), self.currSelEnd.y()) if (minx==maxx) and (miny==maxy): maxx+=1 maxy+=1 self.selection += [(QPoint(minx, miny),QPoint(maxx,maxy))]
self.selection += [self.currSel.united(self.currSelEnd).normalized()]
def SelEnd(self): minx = min(self.currSel.x(), self.currSelEnd.x()) maxx = max(self.currSel.x(), self.currSelEnd.x())
a33bbf6907f2e84b961c7aadc4d138664d7d1b60 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/a33bbf6907f2e84b961c7aadc4d138664d7d1b60/OWDistanceMap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4352, 1638, 12, 2890, 4672, 31407, 273, 1131, 12, 2890, 18, 17016, 1877, 18, 92, 9334, 365, 18, 17016, 1877, 1638, 18, 92, 10756, 943, 92, 273, 943, 12, 2890, 18, 17016, 1877, 18, 92, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4352, 1638, 12, 2890, 4672, 31407, 273, 1131, 12, 2890, 18, 17016, 1877, 18, 92, 9334, 365, 18, 17016, 1877, 1638, 18, 92, 10756, 943, 92, 273, 943, 12, 2890, 18, 17016, 1877, 18, 92, ...
damage = self.scaledamage(char, None, 48, 45, 5) chars = wolfpack.chars(char.pos.x, char.pos.y, char.pos.map, 8)
spellrange = 1 + int(char.skill[MAGERY] / 150.0) chars = wolfpack.chars(char.pos.x, char.pos.y, char.pos.map, spellrange)
def cast(self, char, mode, args): if not self.consumerequirements(char, mode): return
465ee9b8c16675e42082615f9be4d40d682521fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/465ee9b8c16675e42082615f9be4d40d682521fb/circle8.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4812, 12, 2890, 16, 1149, 16, 1965, 16, 833, 4672, 309, 486, 365, 18, 17664, 822, 1039, 1346, 12, 3001, 16, 1965, 4672, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4812, 12, 2890, 16, 1149, 16, 1965, 16, 833, 4672, 309, 486, 365, 18, 17664, 822, 1039, 1346, 12, 3001, 16, 1965, 4672, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
haveRow = self.db.Next()
haveRow = self.db.next()
def testNsecsTAI(self): nsecsTai = 1192755506000000000L self.db.outColumn("taiToUtc(%d)" % nsecsTai) self.db.outColumn("utcToTai(taiToUtc(%d))" % nsecsTai) self.db.outColumn("taiToMjdUtc(%d)" % nsecsTai) self.db.query() haveRow = self.db.Next() self.assert_(haveRow) self.assertEqual(self.db.getColumnByPosInt64(0), 1192...
ea289479734855451b69bd03ff80fc28dbc441a3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6558/ea289479734855451b69bd03ff80fc28dbc441a3/timeFuncs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 50, 21317, 9833, 45, 12, 2890, 4672, 290, 21317, 56, 10658, 273, 404, 3657, 5324, 2539, 3361, 26, 2787, 11706, 48, 365, 18, 1966, 18, 659, 1494, 2932, 2351, 77, 774, 57, 5111, 92...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 50, 21317, 9833, 45, 12, 2890, 4672, 290, 21317, 56, 10658, 273, 404, 3657, 5324, 2539, 3361, 26, 2787, 11706, 48, 365, 18, 1966, 18, 659, 1494, 2932, 2351, 77, 774, 57, 5111, 92...
script = "import os; print(repr(os.getenv(%s)))" % repr(key)
script = "import os; print(ascii(os.getenv(%s)))" % repr(key)
def test_undecodable_env(self): for key, value in (('test', 'abc\uDCFF'), ('test\uDCFF', '42')): # test str with surrogates script = "import os; print(repr(os.getenv(%s)))" % repr(key) env = os.environ.copy() env[key] = value stdout = subprocess.check_output( [sys.executable, "-c", script], env=env) stdout = stdout.rst...
323108a68ec1f3a26044b238cafc5bdaac1673d8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/323108a68ec1f3a26044b238cafc5bdaac1673d8/test_subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 318, 323, 1559, 429, 67, 3074, 12, 2890, 4672, 364, 498, 16, 460, 316, 261, 2668, 3813, 2187, 296, 18947, 64, 89, 5528, 2246, 19899, 7707, 3813, 64, 89, 5528, 2246, 2187, 296...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 318, 323, 1559, 429, 67, 3074, 12, 2890, 4672, 364, 498, 16, 460, 316, 261, 2668, 3813, 2187, 296, 18947, 64, 89, 5528, 2246, 19899, 7707, 3813, 64, 89, 5528, 2246, 2187, 296...
cProfile.run("testit(%s, %s)" % (importdir, testdir), sort=2)
cProfile.run("testit('%s', '%s')" % (importdir, testdir), sort=2)
def testit(importdir='', testdir=''): """Run all tests in testdir while importing from importdir.""" if importdir: sys.path.insert(1, importdir) if testdir: sys.path.insert(1, testdir) if "-py" in sys.argv: sys.argv.remove('-py') import py py.test.cmdline.main() else: import glob import os.path from time import clock m...
f2eee68beb8c5dfa17484db5b7cd9608d831e2e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11851/f2eee68beb8c5dfa17484db5b7cd9608d831e2e9/runtests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 305, 12, 5666, 1214, 2218, 2187, 1842, 1214, 2218, 11, 4672, 3536, 1997, 777, 7434, 316, 1842, 1214, 1323, 25077, 628, 1930, 1214, 12123, 309, 1930, 1214, 30, 2589, 18, 803, 18, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 305, 12, 5666, 1214, 2218, 2187, 1842, 1214, 2218, 11, 4672, 3536, 1997, 777, 7434, 316, 1842, 1214, 1323, 25077, 628, 1930, 1214, 12123, 309, 1930, 1214, 30, 2589, 18, 803, 18, 63...
bb.msg.error(bb.msg.domain.Provider, "Conflicting PREFERRED_PROVIDERS entries were found which resulted in an attempt to select multiple providers (%s) for runtime dependecy %s\nThe entries resulting in this conflict were: %s" % (preferred, item, preferred_vars))
bb.msg.error(bb.msg.domain.Provider, "Conflicting PREFERRED_PROVIDER entries were found which resulted in an attempt to select multiple providers (%s) for runtime dependecy %s\nThe entries resulting in this conflict were: %s" % (preferred, item, preferred_vars))
def filterProvidersRunTime(providers, item, cfgData, dataCache): """ Take a list of providers and filter/reorder according to the environment variables and previous build results Takes a "runtime" target item """ eligible = _filterProviders(providers, item, cfgData, dataCache) # Should use dataCache.preferred here? p...
b658daae2bf35ad2e72a6d4fb0602a213de60563 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2672/b658daae2bf35ad2e72a6d4fb0602a213de60563/providers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 10672, 1997, 950, 12, 17520, 16, 761, 16, 2776, 751, 16, 501, 1649, 4672, 3536, 17129, 279, 666, 434, 9165, 471, 1034, 19, 266, 1019, 4888, 358, 326, 3330, 3152, 471, 2416, 1361, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 10672, 1997, 950, 12, 17520, 16, 761, 16, 2776, 751, 16, 501, 1649, 4672, 3536, 17129, 279, 666, 434, 9165, 471, 1034, 19, 266, 1019, 4888, 358, 326, 3330, 3152, 471, 2416, 1361, ...
if not data: break
if not data: break
def printsumfp(fp, filename, out = sys.stdout): m = md5.new() try: while 1: data = fp.read(bufsize) if not data: break m.update(data) except IOError, msg: sys.stderr.write('%s: I/O error: %s\n' % (filename, msg)) return 1 out.write('%s %s\n' % (m.hexdigest(), filename)) return 0
1a3abcb648565b1c521c41d49ecd7c93a45c6d97 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1a3abcb648565b1c521c41d49ecd7c93a45c6d97/md5sum.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 1364, 7944, 12, 7944, 16, 1544, 16, 596, 273, 2589, 18, 10283, 4672, 312, 273, 3481, 25, 18, 2704, 1435, 775, 30, 1323, 404, 30, 501, 273, 4253, 18, 896, 12, 4385, 1467, 13, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 1364, 7944, 12, 7944, 16, 1544, 16, 596, 273, 2589, 18, 10283, 4672, 312, 273, 3481, 25, 18, 2704, 1435, 775, 30, 1323, 404, 30, 501, 273, 4253, 18, 896, 12, 4385, 1467, 13, 30...
for item in selection:
for item in unwatched:
def mark_watched(): for item in selection: messages.MarkItemWatched(item.id).send_to_backend()
841888bd2d8fb6b7cd9bf7de6ed4a4a6328edb5c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/841888bd2d8fb6b7cd9bf7de6ed4a4a6328edb5c/itemcontextmenu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2267, 67, 7585, 329, 13332, 364, 761, 316, 640, 7585, 329, 30, 2743, 18, 3882, 1180, 5234, 329, 12, 1726, 18, 350, 2934, 4661, 67, 869, 67, 9993, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2267, 67, 7585, 329, 13332, 364, 761, 316, 640, 7585, 329, 30, 2743, 18, 3882, 1180, 5234, 329, 12, 1726, 18, 350, 2934, 4661, 67, 869, 67, 9993, 1435, 2, -100, -100, -100, -100, -100,...
fp.close()
filep.close()
def process_file(self, filename): """ Read the file specified by filename and look for class and function definitions
16399b3c4557910ddce8de8763601cb390df134e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12113/16399b3c4557910ddce8de8763601cb390df134e/create_py_tags.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 768, 12, 2890, 16, 1544, 4672, 3536, 2720, 326, 585, 1269, 635, 1544, 471, 2324, 364, 667, 471, 445, 6377, 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, 1207, 67, 768, 12, 2890, 16, 1544, 4672, 3536, 2720, 326, 585, 1269, 635, 1544, 471, 2324, 364, 667, 471, 445, 6377, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return getattr(date, lookup_type)
return getattr(date, lookup_type.lower())
def extract(lookup_type, date): if date is None: return None try: datepart, timepart = date.split(" ") year, month, day = map(int, datepart.split("-")) timepart_full = timepart.split(".") hours, minutes, seconds = map(int, timepart_full[0].split(":")) if len(timepart_full) == 2: microseconds = int(timepart_full[1]) dat...
7ca46f23fab09f3018284f30eeb645698fc0bae3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9266/7ca46f23fab09f3018284f30eeb645698fc0bae3/database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 12, 8664, 67, 723, 16, 1509, 4672, 309, 1509, 353, 599, 30, 327, 599, 775, 30, 1509, 2680, 16, 813, 2680, 273, 1509, 18, 4939, 2932, 9369, 3286, 16, 3138, 16, 2548, 273, 852, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 12, 8664, 67, 723, 16, 1509, 4672, 309, 1509, 353, 599, 30, 327, 599, 775, 30, 1509, 2680, 16, 813, 2680, 273, 1509, 18, 4939, 2932, 9369, 3286, 16, 3138, 16, 2548, 273, 852, 1...
sim.getRNG().setSeed(12345)
sim.getRNG().set(seed=12345)
def func(*fields): return 0.4*sum(fields)
205f55f8c6cd28aed704d70838912648f07ac340 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/205f55f8c6cd28aed704d70838912648f07ac340/userGuide.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1326, 30857, 2821, 4672, 327, 374, 18, 24, 14, 1364, 12, 2821, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 1326, 30857, 2821, 4672, 327, 374, 18, 24, 14, 1364, 12, 2821, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
'en_US', 'model', res_id))
'en_US', 'model', res_id, module))
def import_record(self, model, values, fs_id):
e9d29e509f40c9bc039bf0fec526e928c2aaca35 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/e9d29e509f40c9bc039bf0fec526e928c2aaca35/convert.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 3366, 12, 2890, 16, 938, 16, 924, 16, 2662, 67, 350, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 3366, 12, 2890, 16, 938, 16, 924, 16, 2662, 67, 350, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
"""
r"""
def fourier_series_cosine_coefficient(self,n,L): """ Returns the n-th Fourier series coefficient of $\cos(n\pi x/L)$, $a_n$.
6ea58891b00cf77041a2de69465efb2ab507dcd2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/6ea58891b00cf77041a2de69465efb2ab507dcd2/piecewise.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12792, 2453, 67, 10222, 67, 14445, 558, 67, 8075, 8714, 12, 2890, 16, 82, 16, 48, 4672, 436, 8395, 2860, 326, 290, 17, 451, 478, 24775, 4166, 16554, 434, 271, 64, 14445, 12, 82, 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, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12792, 2453, 67, 10222, 67, 14445, 558, 67, 8075, 8714, 12, 2890, 16, 82, 16, 48, 4672, 436, 8395, 2860, 326, 290, 17, 451, 478, 24775, 4166, 16554, 434, 271, 64, 14445, 12, 82, 64, ...
self.workspace={ 'config' : ConfigParser.ConfigParser() , 'file' : "" , 'openfiles' : [], 'defaultconfig' : ConfigParser.ConfigParser() }
self.workspace=self.emptyWorkspace()
def __init__(self, parent, openFiles=[], splash=None, redirect=1, path=PATH, size = SIZE,**settings): wx.Notebook.__init__(self,parent=parent,id=wx.ID_ANY,style=STYLE,size=size) self.__paths__(path) self.__settings__(openFiles,redirect,**settings) self.__findReplaceEvents__() # Todo: make this a real class instead of t...
9a904d5d362a98a26683e7fd8257f07128c93f4d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2464/9a904d5d362a98a26683e7fd8257f07128c93f4d/Parent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 1696, 2697, 22850, 6487, 6121, 961, 33, 7036, 16, 3136, 33, 21, 16, 589, 33, 4211, 16, 963, 273, 11963, 16, 636, 4272, 4672, 7075, 18, 19751, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 1696, 2697, 22850, 6487, 6121, 961, 33, 7036, 16, 3136, 33, 21, 16, 589, 33, 4211, 16, 963, 273, 11963, 16, 636, 4272, 4672, 7075, 18, 19751, ...
155,(3-4) : 251-263, 2008.
155 (2008) 251-263.
def reduced_rauzy_graph(self, n): r""" Returns the reduced Rauzy graph of order `n` of self.
ad384197990a1f7a894a75fbf3b0c0f4163c34fc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/ad384197990a1f7a894a75fbf3b0c0f4163c34fc/word.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13162, 67, 354, 89, 21832, 67, 4660, 12, 2890, 16, 290, 4672, 436, 8395, 2860, 326, 13162, 534, 8377, 21832, 2667, 434, 1353, 1375, 82, 68, 434, 365, 18, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 13162, 67, 354, 89, 21832, 67, 4660, 12, 2890, 16, 290, 4672, 436, 8395, 2860, 326, 13162, 534, 8377, 21832, 2667, 434, 1353, 1375, 82, 68, 434, 365, 18, 2, -100, -100, -100, -100, -10...
, _ba("AzAperp", [ ( 2,1,2, 1,-sqrt(6./5.)) ] ) , _ba("AzApar", [ ( 2,1,2,-2,sqrt(6./5.)) ] )
, _ba("AzAperp", [ ( 2,1,2, 1, sqrt(6./5.)) ] ) , _ba("AzApar", [ ( 2,1,2,-2,-sqrt(6./5.)) ] )
def _ba(name,comp) : n = name + '_basis' s = RooArgSet() for c in comp : s.add( ab(name,c[0],c[1],c[2],c[3],c[4]) ) ws.put(RooAddition_( n, n, s ) ) return ws.function(n)
ef24d73a833baed87aa27e84be065a0022ae7c19 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7060/ef24d73a833baed87aa27e84be065a0022ae7c19/ModelBuilders.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12124, 12, 529, 16, 2919, 13, 294, 290, 273, 508, 397, 2070, 23774, 11, 272, 273, 534, 5161, 4117, 694, 1435, 364, 276, 316, 1161, 294, 272, 18, 1289, 12, 1223, 12, 529, 16, 71,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12124, 12, 529, 16, 2919, 13, 294, 290, 273, 508, 397, 2070, 23774, 11, 272, 273, 534, 5161, 4117, 694, 1435, 364, 276, 316, 1161, 294, 272, 18, 1289, 12, 1223, 12, 529, 16, 71,...
if callback: callback() elif type == "listBox": type, widget, value, callback = self._guiElements[index]
else: newValue = "Pressed button %s" % (str(self.caption())) elif elementType == "listBox": elementType, widget, value, callback = self._guiElements[index]
def randomlyChangeSettings(self): if len(self._guiElements) == 0: return try: index = random.randint(0, len(self._guiElements)-1) type, widget = self._guiElements[index][0], self._guiElements[index][1]
0e491378e71212a6a34471826031736d4a3a8cd6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/0e491378e71212a6a34471826031736d4a3a8cd6/OWBaseWidget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20153, 3043, 2628, 12, 2890, 4672, 309, 562, 12, 2890, 6315, 20292, 3471, 13, 422, 374, 30, 327, 225, 775, 30, 770, 273, 2744, 18, 7884, 474, 12, 20, 16, 562, 12, 2890, 6315, 20292, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20153, 3043, 2628, 12, 2890, 4672, 309, 562, 12, 2890, 6315, 20292, 3471, 13, 422, 374, 30, 327, 225, 775, 30, 770, 273, 2744, 18, 7884, 474, 12, 20, 16, 562, 12, 2890, 6315, 20292, ...
geoAndData[geo] = (joints,weightData)
geoAndData[geo] = (joints,jointHierarchies,weightData)
def saveWeights( geos, filepath=DEFAULT_PATH ): start = time.clock() miscData = {'version':TOOL_VERSION,\ 'file':cmd.file(q=True,sn=True),\ 'computer':resolvePath('%COMPUTERNAME%'),\ 'user':resolvePath('%USERNAME%'),\ 'date':datetime.date.today()} geoAndData = {} for geo in geos: verts = cmd.ls(cmd.polyListComponentCo...
2ade017cab8b7824a24175b7b016a28e5619e2c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1810/2ade017cab8b7824a24175b7b016a28e5619e2c6/skinWeights.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 16595, 12, 8244, 538, 16, 3608, 33, 5280, 67, 4211, 262, 30, 787, 273, 813, 18, 18517, 1435, 20448, 751, 273, 13666, 1589, 4278, 26263, 67, 5757, 17211, 296, 768, 4278, 4172, 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, 1923, 16595, 12, 8244, 538, 16, 3608, 33, 5280, 67, 4211, 262, 30, 787, 273, 813, 18, 18517, 1435, 20448, 751, 273, 13666, 1589, 4278, 26263, 67, 5757, 17211, 296, 768, 4278, 4172, 18, ...
cacheSelected = cacheSelected.sieve(segment=segments.segment(math.floor(float(time)), math.ceil(float(time))))
if math.floor(float(time)) != math.ceil(float(time)): cacheSelected = cacheSelected.sieve(segment=segments.segment(math.floor(float(time)), math.ceil(float(time)))) else: cacheSelected = cacheSelected.sieve(segment=segments.segment(math.floor(float(time))-0.5, math.floor(float(time))+0.5))
def getParamsFromCache(fileName,type,ifo=None,time=None): qscanList = [] cacheList = lal.Cache.fromfile(open(fileName)) if not cacheList: return qscanList cacheSelected = cacheList.sieve(description=type,ifos=ifo) if time: cacheSelected = cacheSelected.sieve(segment=segments.segment(math.floor(float(time)), math.ceil(f...
1d06c8f74136eb0c234bbd1f0b42590561f3cbb9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/1d06c8f74136eb0c234bbd1f0b42590561f3cbb9/stfu_pipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13281, 19800, 12, 17812, 16, 723, 16, 20299, 33, 7036, 16, 957, 33, 7036, 4672, 1043, 9871, 682, 273, 5378, 1247, 682, 273, 328, 287, 18, 1649, 18, 2080, 768, 12, 3190, 12, 17812, 3719...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13281, 19800, 12, 17812, 16, 723, 16, 20299, 33, 7036, 16, 957, 33, 7036, 4672, 1043, 9871, 682, 273, 5378, 1247, 682, 273, 328, 287, 18, 1649, 18, 2080, 768, 12, 3190, 12, 17812, 3719...
zope.component.getServices.sethook(getServices_hook)
def getServices_hook(context=None): if context is None: return siteinfo.services # Deprecated support for a context that isn't adaptable to # IServiceService. Return the default service manager. try: return trustedRemoveSecurityProxy(IServiceService(context, serviceManager)) except ComponentLookupError: return servi...
9a946a6be008892c2742d587d28ebcd07907a914 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9537/9a946a6be008892c2742d587d28ebcd07907a914/hooks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31252, 67, 4476, 12, 2472, 33, 7036, 4672, 225, 309, 819, 353, 599, 30, 327, 2834, 1376, 18, 8387, 225, 468, 9336, 2865, 364, 279, 819, 716, 5177, 1404, 5855, 429, 358, 468, 467, 1179,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31252, 67, 4476, 12, 2472, 33, 7036, 4672, 225, 309, 819, 353, 599, 30, 327, 2834, 1376, 18, 8387, 225, 468, 9336, 2865, 364, 279, 819, 716, 5177, 1404, 5855, 429, 358, 468, 467, 1179,...
edit = Edit(ob, prevEdit.rev + 1, newDocstring, user,
edit = Edit(tob, prevEdit.rev + 1, newDocstring, user,
def newDocstring(self, user, ob, newDocstring): tob = ob.doctarget if tob.parentMod not in self.editsbymod: self.editsbymod[tob.parentMod] = []
059e48bbbb8ec1749f88fdca03ad60b306d69461 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5471/059e48bbbb8ec1749f88fdca03ad60b306d69461/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 1759, 1080, 12, 2890, 16, 729, 16, 3768, 16, 394, 1759, 1080, 4672, 358, 70, 273, 3768, 18, 2896, 299, 826, 309, 358, 70, 18, 2938, 1739, 486, 316, 365, 18, 329, 1282, 1637, 171...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 394, 1759, 1080, 12, 2890, 16, 729, 16, 3768, 16, 394, 1759, 1080, 4672, 358, 70, 273, 3768, 18, 2896, 299, 826, 309, 358, 70, 18, 2938, 1739, 486, 316, 365, 18, 329, 1282, 1637, 171...
'''
"""
def context(client, template=None, classname=None, request=None): """Return the rendering context dictionary The dictionary includes following symbols: *context* this is one of three things: 1. None - we're viewing a "home" page 2. The current class of item being displayed. This is an HTMLClass instance. 3. The curr...
16a3ebf380b95607b344181655488d818a27791f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1906/16a3ebf380b95607b344181655488d818a27791f/templating.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 819, 12, 2625, 16, 1542, 33, 7036, 16, 7479, 33, 7036, 16, 590, 33, 7036, 4672, 3536, 990, 326, 9782, 819, 3880, 225, 1021, 3880, 6104, 3751, 7963, 30, 225, 380, 2472, 14, 333, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 819, 12, 2625, 16, 1542, 33, 7036, 16, 7479, 33, 7036, 16, 590, 33, 7036, 4672, 3536, 990, 326, 9782, 819, 3880, 225, 1021, 3880, 6104, 3751, 7963, 30, 225, 380, 2472, 14, 333, 353, ...
if key in ['realm','nonce','qop','cipher']: value=value[1:-1]
if value[:1]=='"' and value[-1:]=='"': value=value[1:-1]
def SASLHandler(self,conn,challenge): if challenge.getNamespace()<>NS_SASL: return if challenge.getName()=='failure': self.startsasl='failure' try: reason=challenge.getChildren()[0] except: reason=challenge self._owner.DEBUG(DBG_SASL,'Failed SASL authentification: %s'%reason,'error') return elif challenge.getName()=='s...
e8defae5f6aeebdb10b563c4466ad10a06fe6c00 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7194/e8defae5f6aeebdb10b563c4466ad10a06fe6c00/auth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24380, 48, 1503, 12, 2890, 16, 4646, 16, 25092, 4672, 309, 12948, 18, 588, 3402, 1435, 29667, 3156, 67, 55, 3033, 48, 30, 327, 309, 12948, 18, 17994, 1435, 18920, 12251, 4278, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24380, 48, 1503, 12, 2890, 16, 4646, 16, 25092, 4672, 309, 12948, 18, 588, 3402, 1435, 29667, 3156, 67, 55, 3033, 48, 30, 327, 309, 12948, 18, 17994, 1435, 18920, 12251, 4278, 365, 18, ...
if str(err) != "'MainWindow' object has no attribute 'track'":
if str(err) != "'MainWindow' object has no attribute '_track'":
def _onResetScore(self, e): try: self._logger.info("Resetting track's score.") self._db.setUnscored(self._track) self.refreshSelectedTrack() except AttributeError as err: if str(err) != "'MainWindow' object has no attribute 'track'": raise err self._logger.error("No track selected.") return
32d2be7a761f5a44ec49a5927d8e7b1690f9ce3f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8545/32d2be7a761f5a44ec49a5927d8e7b1690f9ce3f/GUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 265, 7013, 7295, 12, 2890, 16, 425, 4672, 775, 30, 365, 6315, 4901, 18, 1376, 2932, 7013, 1787, 3298, 1807, 4462, 1199, 13, 365, 6315, 1966, 18, 542, 984, 6355, 72, 12, 2890, 6315...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 265, 7013, 7295, 12, 2890, 16, 425, 4672, 775, 30, 365, 6315, 4901, 18, 1376, 2932, 7013, 1787, 3298, 1807, 4462, 1199, 13, 365, 6315, 1966, 18, 542, 984, 6355, 72, 12, 2890, 6315...
//a little timeout.
//a little timeout. Safari also has this problem.
def javascript(): s = async_lib() s+= r"""
40481c1b15104046a00992f4301d508a3d319d6e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/40481c1b15104046a00992f4301d508a3d319d6e/js.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11341, 13332, 272, 273, 4326, 67, 2941, 1435, 272, 15, 33, 436, 8395, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 11341, 13332, 272, 273, 4326, 67, 2941, 1435, 272, 15, 33, 436, 8395, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
users = acl_folder.findUser(search_param='uid', search_term=p_username) if len(users) > 0: return unicode(users[0].get('mail', ''), 'iso-8859-1').encode('utf-8')
user = self._get_user_by_uid(p_username, acl_folder) if user is not None: return unicode(user.get('mail', ''), 'iso-8859-1').encode('utf-8')
def getUserEmail(self, p_username, acl_folder): #return the email of the given user id users = acl_folder.findUser(search_param='uid', search_term=p_username) if len(users) > 0: return unicode(users[0].get('mail', ''), 'iso-8859-1').encode('utf-8') else: return ''
694b739e3712fd4da316c3fef8d8fbb8b4df202c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3287/694b739e3712fd4da316c3fef8d8fbb8b4df202c/plugLDAPUserFolder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4735, 4134, 12, 2890, 16, 293, 67, 5053, 16, 7895, 67, 5609, 4672, 468, 2463, 326, 2699, 434, 326, 864, 729, 612, 729, 273, 365, 6315, 588, 67, 1355, 67, 1637, 67, 1911, 12, 84, 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, 4735, 4134, 12, 2890, 16, 293, 67, 5053, 16, 7895, 67, 5609, 4672, 468, 2463, 326, 2699, 434, 326, 864, 729, 612, 729, 273, 365, 6315, 588, 67, 1355, 67, 1637, 67, 1911, 12, 84, 67, ...
self.assertEqual( image, IECore.Reader.create( "test/IECoreRI/data/sxOutput/shadePlaneImage.exr" ).read() )
expectedImage = IECore.Reader.create( "test/IECoreRI/data/sxOutput/shadePlaneImage.exr" ).read() self.assertEqual( IECore.ImageDiffOp()( imageA=image, imageB=expectedImage, maxError=0 ), IECore.BoolData( False ) )
def testPlaneShade( self ) : r = IECoreRI.SXRenderer() self.assertEqual( os.system( "shaderdl -o test/IECoreRI/shaders/sxStTest.sdl test/IECoreRI/shaders/sxStTest.sl" ), 0 ) r.shader( "surface", "test/IECoreRI/shaders/sxStTest.sdl", {} ) data = r.shadePlane( IECore.V2i( 64, 64 ) ) del data["P"] del data["N"] self.as...
c33d540ce98eb8cc8ea707a39fe4b8212b6438ff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9042/c33d540ce98eb8cc8ea707a39fe4b8212b6438ff/SXRendererTest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 19505, 1555, 2486, 12, 365, 262, 294, 225, 436, 273, 10897, 4670, 2259, 18, 55, 60, 6747, 1435, 225, 365, 18, 11231, 5812, 12, 1140, 18, 4299, 12, 315, 674, 1143, 5761, 300, 83, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19505, 1555, 2486, 12, 365, 262, 294, 225, 436, 273, 10897, 4670, 2259, 18, 55, 60, 6747, 1435, 225, 365, 18, 11231, 5812, 12, 1140, 18, 4299, 12, 315, 674, 1143, 5761, 300, 83, ...
def fs2ftp(self, node):
def fs2ftp(self, node):
def fs2ftp(self, node): res = node and ('/' + node.cr.dbname + '/' + _to_decode(node.path)) or '/' return res
c882bf7db62b8e88398de75c35611c7330aaf528 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/c882bf7db62b8e88398de75c35611c7330aaf528/abstracted_fs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2662, 22, 11727, 12, 2890, 16, 756, 4672, 400, 273, 756, 471, 7707, 2473, 397, 756, 18, 3353, 18, 20979, 397, 2023, 397, 389, 869, 67, 3922, 12, 2159, 18, 803, 3719, 578, 2023, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2662, 22, 11727, 12, 2890, 16, 756, 4672, 400, 273, 756, 471, 7707, 2473, 397, 756, 18, 3353, 18, 20979, 397, 2023, 397, 389, 869, 67, 3922, 12, 2159, 18, 803, 3719, 578, 2023, 327, ...
if task.info("USER_interactive"):
if task.default("USER_interactive"):
def ttyloop(task, nodeset, gather, timeout, label, verbosity): """Manage the interactive prompt to run command""" has_readline = False if task.info("USER_interactive"): assert sys.stdin.isatty() readline_avail = False try: import readline readline_setup() readline_avail = True except ImportError: pass if verbosity >= V...
b1a858775a0c2d9702d6d8c6329507066a5d4dd6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11479/b1a858775a0c2d9702d6d8c6329507066a5d4dd6/clush.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21520, 6498, 12, 4146, 16, 2199, 278, 16, 11090, 16, 2021, 16, 1433, 16, 11561, 4672, 3536, 21258, 326, 12625, 6866, 358, 1086, 1296, 8395, 711, 67, 896, 1369, 273, 1083, 309, 1562, 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, 21520, 6498, 12, 4146, 16, 2199, 278, 16, 11090, 16, 2021, 16, 1433, 16, 11561, 4672, 3536, 21258, 326, 12625, 6866, 358, 1086, 1296, 8395, 711, 67, 896, 1369, 273, 1083, 309, 1562, 18, ...
self.gridlayout16 = QtGui.QGridLayout(self.groupBox_3) self.gridlayout16.setMargin(9) self.gridlayout16.setSpacing(6) self.gridlayout16.setObjectName("gridlayout16") self.hboxlayout23 = QtGui.QHBoxLayout() self.hboxlayout23.setMargin(0) self.hboxlayout23.setSpacing(6) self.hboxlayout23.setObjectName("hboxlayout23")
self.gridlayout23 = QtGui.QGridLayout(self.groupBox_3) self.gridlayout23.setMargin(9) self.gridlayout23.setSpacing(6) self.gridlayout23.setObjectName("gridlayout23") self.hboxlayout24 = QtGui.QHBoxLayout() self.hboxlayout24.setMargin(0) self.hboxlayout24.setSpacing(6) self.hboxlayout24.setObjectName("hboxlayout24")
def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,917,661).size()).expandedTo(UserPrefsDialog.minimumSizeHint()))
752b48c67dcf97437d2cb83fa267b09487665da0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/752b48c67dcf97437d2cb83fa267b09487665da0/UserPrefsDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 18,...
k = _RegOpenKeyEx(base,K)
k = RegOpenKeyEx(base,K)
def get_msvc_paths (path, version='6.0', platform='x86'): """Get a list of devstudio directories (include, lib or path). Return a list of strings; will be empty list if unable to access the registry or appropriate registry keys not found.""" if not _can_read_reg: return [] L = [] if path=='lib': path= 'Library' path...
2f60430e0909b2e5da8b0cca0f12721fa270d324 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2f60430e0909b2e5da8b0cca0f12721fa270d324/msvccompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 959, 4227, 67, 4481, 261, 803, 16, 1177, 2218, 26, 18, 20, 2187, 4072, 2218, 92, 5292, 11, 4672, 3536, 967, 279, 666, 434, 4461, 334, 4484, 6402, 261, 6702, 16, 2561, 578, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 959, 4227, 67, 4481, 261, 803, 16, 1177, 2218, 26, 18, 20, 2187, 4072, 2218, 92, 5292, 11, 4672, 3536, 967, 279, 666, 434, 4461, 334, 4484, 6402, 261, 6702, 16, 2561, 578, 5...
if ap['channel'] == None:
if ap['channel'] == None:
def _ParseAccessPoint(self, cell): """ Parse a single cell from the output of iwlist.
6f0faa1ac2c9bae4d122f4d6babe96248aee11b5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12280/6f0faa1ac2c9bae4d122f4d6babe96248aee11b5/wnettools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3201, 1862, 2148, 12, 2890, 16, 2484, 4672, 3536, 2884, 279, 2202, 2484, 628, 326, 876, 434, 25522, 1098, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3201, 1862, 2148, 12, 2890, 16, 2484, 4672, 3536, 2884, 279, 2202, 2484, 628, 326, 876, 434, 25522, 1098, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
warning = ''
warning = []
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...
def __init__(self, sock, debuglevel=0, strict=0): httplib.HTTPResponse.__init__(self, sock, debuglevel)
def __init__(self, sock, debuglevel=0, strict=0, method=None): if method: httplib.HTTPResponse.__init__(self, sock, debuglevel, method) else: httplib.HTTPResponse.__init__(self, sock, debuglevel)
def __init__(self, sock, debuglevel=0, strict=0): httplib.HTTPResponse.__init__(self, sock, debuglevel) self.fileno = sock.fileno self._rbuf = '' self._rbufsize = 8096 self._handler = None # inserted by the handler later self._host = None # (same) self._url = None # (same)
742eb827a493f3c8de9f2df83755e842b75ead58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/742eb827a493f3c8de9f2df83755e842b75ead58/keepalive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7313, 16, 1198, 2815, 33, 20, 16, 5490, 33, 20, 16, 707, 33, 7036, 4672, 309, 707, 30, 15851, 6673, 18, 3693, 1064, 16186, 2738, 972, 12, 2890, 16, 731...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7313, 16, 1198, 2815, 33, 20, 16, 5490, 33, 20, 16, 707, 33, 7036, 4672, 309, 707, 30, 15851, 6673, 18, 3693, 1064, 16186, 2738, 972, 12, 2890, 16, 731...
return list(out)
out_list = list(out) out_list.sort() return list(out_list)
def get_nearest_terms_in_bibrec(p, f, n_below, n_above): """Return list of nearest terms and counts from bibrec table. p is usually a date, and f either datecreated or datemodified. Note: below/above count is very approximative, not really respected. """ col = 'creation_date' if f == 'datemodified': col = 'modificatio...
de48ba8884d133c6ed8c94594af863c30f6957cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/de48ba8884d133c6ed8c94594af863c30f6957cd/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 25785, 67, 10112, 67, 267, 67, 70, 495, 3927, 12, 84, 16, 284, 16, 290, 67, 27916, 16, 290, 67, 25998, 4672, 3536, 990, 666, 434, 11431, 6548, 471, 6880, 628, 25581, 3927, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25785, 67, 10112, 67, 267, 67, 70, 495, 3927, 12, 84, 16, 284, 16, 290, 67, 27916, 16, 290, 67, 25998, 4672, 3536, 990, 666, 434, 11431, 6548, 471, 6880, 628, 25581, 3927, 1...
q = (self.base_ring()).characteristic()
q = (self.base_ring()).order()
def zeta_polynomial(self,name = "T"): r""" Returns the Duursma zeta polynomial of the code C.
86a7bb2b8df4358a00d44150f860746eda3dba19 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/86a7bb2b8df4358a00d44150f860746eda3dba19/linear_code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 998, 1066, 67, 3915, 13602, 12, 2890, 16, 529, 273, 315, 56, 6, 4672, 436, 8395, 2860, 326, 463, 89, 25152, 2540, 998, 1066, 16991, 434, 326, 981, 385, 18, 2, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 998, 1066, 67, 3915, 13602, 12, 2890, 16, 529, 273, 315, 56, 6, 4672, 436, 8395, 2860, 326, 463, 89, 25152, 2540, 998, 1066, 16991, 434, 326, 981, 385, 18, 2, -100, -100, -100, -100, ...
os.close(self.ext_r) os.close(self.ext_w)
def _create(self): # Creating pipes [self.ext_r, self.int_w] = os.pipe() [self.int_r, self.ext_w] = os.pipe()
bf291c1c46a94087b5d6a33aea2672704b43731a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2934/bf291c1c46a94087b5d6a33aea2672704b43731a/child.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 12, 2890, 4672, 468, 21837, 16062, 306, 2890, 18, 408, 67, 86, 16, 365, 18, 474, 67, 91, 65, 273, 1140, 18, 14772, 1435, 306, 2890, 18, 474, 67, 86, 16, 365, 18, 408, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 12, 2890, 4672, 468, 21837, 16062, 306, 2890, 18, 408, 67, 86, 16, 365, 18, 474, 67, 91, 65, 273, 1140, 18, 14772, 1435, 306, 2890, 18, 474, 67, 86, 16, 365, 18, 408, 67...
return x in SemistandardTableaux_all() and x in SemistandardTableaux(map(len, x), self.mu)
return x in SemistandardTableaux_pmu(map(len, x), self.mu)
def __contains__(self, x): """ TESTS:: sage: SST = SemistandardTableaux(6, [2,2,2]) sage: all([sst in SST for sst in SST]) True sage: all([sst in SST for sst in SemistandardTableaux([3,2,1],[2,2,2])]) True """ return x in SemistandardTableaux_all() and x in SemistandardTableaux(map(len, x), self.mu)
dc756d26ea922387ee74781c3b99359e739e8c01 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/dc756d26ea922387ee74781c3b99359e739e8c01/tableau.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12298, 972, 12, 2890, 16, 619, 4672, 3536, 22130, 55, 2866, 225, 272, 410, 30, 348, 882, 273, 15661, 376, 2958, 1388, 18196, 12, 26, 16, 306, 22, 16, 22, 16, 22, 5717, 272, 410...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12298, 972, 12, 2890, 16, 619, 4672, 3536, 22130, 55, 2866, 225, 272, 410, 30, 348, 882, 273, 15661, 376, 2958, 1388, 18196, 12, 26, 16, 306, 22, 16, 22, 16, 22, 5717, 272, 410...
w = self.d.GetDialogWindow() w.BringToFront() w.SetWTitle(newstr)
self.w.BringToFront() self.w.SetWTitle(newstr)
def title(self, newstr=""): """title(text) - Set title of progress window""" w = self.d.GetDialogWindow() w.BringToFront() w.SetWTitle(newstr)
0bcf9416d9970e28428dd0af7801902cd5398c1e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0bcf9416d9970e28428dd0af7801902cd5398c1e/EasyDialogs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2077, 12, 2890, 16, 394, 701, 1546, 6, 4672, 3536, 2649, 12, 955, 13, 300, 1000, 2077, 434, 4007, 2742, 8395, 365, 18, 91, 18, 38, 8022, 774, 9580, 1435, 365, 18, 91, 18, 694, 59, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2077, 12, 2890, 16, 394, 701, 1546, 6, 4672, 3536, 2649, 12, 955, 13, 300, 1000, 2077, 434, 4007, 2742, 8395, 365, 18, 91, 18, 38, 8022, 774, 9580, 1435, 365, 18, 91, 18, 694, 59, ...
if userdesc_overrides is not None: userdesc += userdesc_overrides
if isinstance(context, UserDesc): userdesc += context
def ProcessConfirmation(self, cookie, userdesc_overrides=None): data = Pending.confirm(cookie) if data is None: raise Errors.MMBadConfirmation, 'data is None' try: op = data[0] data = data[1:] except ValueError: raise Errors.MMBadConfirmation, 'op-less data %s' % (data,) if op == Pending.SUBSCRIPTION: try: addr, fullna...
aec38fef609e79c2b930b06a178523c1ab1dc04c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/aec38fef609e79c2b930b06a178523c1ab1dc04c/MailList.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4389, 17597, 12, 2890, 16, 3878, 16, 729, 5569, 67, 19775, 33, 7036, 4672, 501, 273, 16034, 18, 10927, 12, 8417, 13, 309, 501, 353, 599, 30, 1002, 9372, 18, 8206, 6434, 17597, 16, 296,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4389, 17597, 12, 2890, 16, 3878, 16, 729, 5569, 67, 19775, 33, 7036, 4672, 501, 273, 16034, 18, 10927, 12, 8417, 13, 309, 501, 353, 599, 30, 1002, 9372, 18, 8206, 6434, 17597, 16, 296,...
self.SetColumnWidth(numCols-1, self._lastColMinWidth)
self.SetColumnWidth(resizeCol-1, self._resizeColMinWidth)
def _doResize(self): """ Resize the last column as appropriate.
27ed367cb23b71ba64c7176044f4b8dc33e753dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/27ed367cb23b71ba64c7176044f4b8dc33e753dd/listctrl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 12182, 12, 2890, 4672, 3536, 24033, 326, 1142, 1057, 487, 5505, 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, ...
[ 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, 389, 2896, 12182, 12, 2890, 4672, 3536, 24033, 326, 1142, 1057, 487, 5505, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.body.append( '\\includegraphics%s{%s}' % ( options, attrs['uri'] ) ) self.body.extend( post )
self.body.append('\\includegraphics%s{%s}' % (options, attrs['uri'])) self.body.extend(post)
def visit_image(self, node): self.requirements['graphicx'] = self.graphicx_package attrs = node.attributes # Add image URI to dependency list, assuming that it's # referring to a local file. self.settings.record_dependencies.add(attrs['uri']) pre = [] # in reverse order post = [] include_graphics...
ed598cd6757b811933f52a8921093176419ccbdb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8194/ed598cd6757b811933f52a8921093176419ccbdb/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2730, 12, 2890, 16, 756, 4672, 365, 18, 16175, 3292, 4660, 335, 92, 3546, 273, 365, 18, 4660, 335, 92, 67, 5610, 3422, 273, 756, 18, 4350, 468, 1436, 1316, 3699, 358, 4904, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2730, 12, 2890, 16, 756, 4672, 365, 18, 16175, 3292, 4660, 335, 92, 3546, 273, 365, 18, 4660, 335, 92, 67, 5610, 3422, 273, 756, 18, 4350, 468, 1436, 1316, 3699, 358, 4904, ...
srcdir = cmdOutput('cygpath -w ' + srcdir).replace(r'\\', '')
srcdir = cmdOutput('cygpath -m ' + srcdir)
def checkCygwinPath(): ''' Adjust PATH for Win32 (Cygwin) ''' if sys.platform == 'cygwin': from tempfile import mkstemp fd, tmpfname = mkstemp(suffix='.ltx') os.write(fd, r'''
7f6a2747424dc1ff1cce7f3c683da43ffed37724 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7514/7f6a2747424dc1ff1cce7f3c683da43ffed37724/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 39, 4338, 8082, 743, 13332, 9163, 17720, 7767, 364, 21628, 1578, 261, 39, 4338, 8082, 13, 9163, 309, 2589, 18, 9898, 422, 296, 2431, 75, 8082, 4278, 628, 13275, 1930, 5028, 19781, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 39, 4338, 8082, 743, 13332, 9163, 17720, 7767, 364, 21628, 1578, 261, 39, 4338, 8082, 13, 9163, 309, 2589, 18, 9898, 422, 296, 2431, 75, 8082, 4278, 628, 13275, 1930, 5028, 19781, 8...
try: argtype, argname = fieldarg.split(None, 1) except ValueError: pass else: types.setdefault(typename, {})[argname] = nodes.Text(argtype) fieldarg = argname
if typedesc.is_typed: try: argtype, argname = fieldarg.split(None, 1) except ValueError: pass else: types.setdefault(typename, {})[argname] = \ [nodes.Text(argtype)] fieldarg = argname
def transform(self, node): """Transform a single field list *node*.""" typemap = self.typemap
f78f0e616faaac1c878d4830729d38c5d3618bbf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5532/f78f0e616faaac1c878d4830729d38c5d3618bbf/docfields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2510, 12, 2890, 16, 756, 4672, 3536, 4059, 279, 2202, 652, 666, 380, 2159, 14, 12123, 618, 1458, 273, 365, 18, 723, 1458, 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, 0, 0, 0, 0, 0, 0, 0, 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, 2510, 12, 2890, 16, 756, 4672, 3536, 4059, 279, 2202, 652, 666, 380, 2159, 14, 12123, 618, 1458, 273, 365, 18, 723, 1458, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.assertEqual(x,y)
self.assertEqual(x, y)
def test_for_sanity(self): """ bibrecord - demo file sanity test (xml -> create records -> xml)""" f=open(tmpdir + '/demobibdata.xml','r') xmltext = f.read() f.close() # let's try to reproduce the demo XML MARC file by parsing it and printing it back: recs = map((lambda x:x[0]), bibrecord.create_records(xmltext)) xmlte...
2f66588a97ca15909477d0a2e7e1dae76f187c9d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/2f66588a97ca15909477d0a2e7e1dae76f187c9d/bibrecord_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1884, 67, 87, 10417, 12, 2890, 4672, 3536, 25581, 3366, 300, 21477, 585, 16267, 1842, 261, 2902, 317, 752, 3853, 317, 2025, 15574, 284, 33, 3190, 12, 5645, 1214, 397, 1173, 191...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1884, 67, 87, 10417, 12, 2890, 4672, 3536, 25581, 3366, 300, 21477, 585, 16267, 1842, 261, 2902, 317, 752, 3853, 317, 2025, 15574, 284, 33, 3190, 12, 5645, 1214, 397, 1173, 191...
self.image_id = self.server.ec2.register_image('%s/%s.manifest.xml' % (bucket, prefix))
self.image_id = self.server.ec2.register_image(name=prefix, image_location='%s/%s.manifest.xml' % (bucket, prefix))
def bundle(self, bucket=None, prefix=None, key_file=None, cert_file=None, size=None, ssh_key=None, fp=None, clear_history=True): iobject = IObject() if not bucket: bucket = iobject.get_string('Name of S3 bucket') if not prefix: prefix = iobject.get_string('Prefix for AMI file') if not key_file: key_file = iobject.get_f...
05d1febbc997d57cdcdff56afa99864b37115371 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1098/05d1febbc997d57cdcdff56afa99864b37115371/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3440, 12, 2890, 16, 2783, 33, 7036, 16, 1633, 33, 7036, 16, 498, 67, 768, 33, 7036, 16, 3320, 67, 768, 33, 7036, 16, 963, 33, 7036, 16, 7056, 67, 856, 33, 7036, 16, 4253, 33, 7036,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3440, 12, 2890, 16, 2783, 33, 7036, 16, 1633, 33, 7036, 16, 498, 67, 768, 33, 7036, 16, 3320, 67, 768, 33, 7036, 16, 963, 33, 7036, 16, 7056, 67, 856, 33, 7036, 16, 4253, 33, 7036,...
get_NA_rate_for_one_col = classmethod(get_NA_rate_for_one_col)
@classmethod
def get_NA_rate_for_one_col(cls, data_matrix, col_index): """ 2008-05-06 calculate independent no_of_NAs, no_of_totals """ return QualityControl.get_NA_rate_for_one_slice(data_matrix, col_index, by_col=1)
c13cb33cb1a6b269be23f22968b5981b73c60e17 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9645/c13cb33cb1a6b269be23f22968b5981b73c60e17/TwoSNPData.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11277, 67, 5141, 67, 1884, 67, 476, 67, 1293, 12, 6429, 16, 501, 67, 5667, 16, 645, 67, 1615, 4672, 3536, 4044, 28, 17, 6260, 17, 7677, 4604, 14807, 1158, 67, 792, 67, 50, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11277, 67, 5141, 67, 1884, 67, 476, 67, 1293, 12, 6429, 16, 501, 67, 5667, 16, 645, 67, 1615, 4672, 3536, 4044, 28, 17, 6260, 17, 7677, 4604, 14807, 1158, 67, 792, 67, 50, ...
for e in f2.xml_select(u'*[not(self::folder or self::title)]'):
for e in f2.xml_select(u'*[not(self::folder or self::title or self::info)]'):
def merge(f1, f2): folders = sorted(itertools.chain(f1.folder or [], f2.folder or []), key=title_getter) folder_groups = itertools.groupby(folders, title_getter) for ftitle, folders in folder_groups: main = folders.next() rest = list(folders) for f in rest: merge(main, f) if main.xml_parent != f1: f1.xml_append(main) #...
a4c6e141afc947a55436d7b43392eea334b0694c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14078/a4c6e141afc947a55436d7b43392eea334b0694c/test_three.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2691, 12, 74, 21, 16, 284, 22, 4672, 9907, 273, 3115, 12, 2165, 6642, 18, 5639, 12, 74, 21, 18, 5609, 578, 5378, 16, 284, 22, 18, 5609, 578, 5378, 3631, 498, 33, 2649, 67, 11990, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2691, 12, 74, 21, 16, 284, 22, 4672, 9907, 273, 3115, 12, 2165, 6642, 18, 5639, 12, 74, 21, 18, 5609, 578, 5378, 16, 284, 22, 18, 5609, 578, 5378, 3631, 498, 33, 2649, 67, 11990, 1...
line = [ '%s' % x for x in line ]
line = [ '"%s"' % x for x in line ]
def to_unicode(self): s = u'' for line in self.lines: line = [ '%s' % x for x in line ] s += ','.join(line) + '\n' return s
eb5e6cddc08efdac2e0ff8cb925f18d559f961ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/eb5e6cddc08efdac2e0ff8cb925f18d559f961ec/CSV.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 9124, 12, 2890, 4672, 272, 273, 582, 6309, 364, 980, 316, 365, 18, 3548, 30, 980, 273, 306, 22563, 87, 5187, 738, 619, 364, 619, 316, 980, 308, 272, 1011, 3316, 18, 5701, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 9124, 12, 2890, 4672, 272, 273, 582, 6309, 364, 980, 316, 365, 18, 3548, 30, 980, 273, 306, 22563, 87, 5187, 738, 619, 364, 619, 316, 980, 308, 272, 1011, 3316, 18, 5701, 12...
try: catalog_obj.manage_addIndex(self.gl_get_language_name(language), 'TextIndexNG2',index_extra)
try: catalog_obj.manage_addIndex(language_name, 'TextIndexNG2',index_extra)
def gl_add_site_language_custom(self, language): #this is called to handle other types of multilanguage objects catalog_tool = self.getCatalogTool() for b in self.getCatalogedBrains(meta_type=[METATYPE_NYPHOTOFOLDER, METATYPE_NYPHOTO]): x = catalog_tool.getobject(b.data_record_id_) try: x.add_language(language) except:...
590b0b28628de99243a396c6b5388cb46af0517b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3287/590b0b28628de99243a396c6b5388cb46af0517b/CHMSite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5118, 67, 1289, 67, 4256, 67, 4923, 67, 3662, 12, 2890, 16, 2653, 4672, 468, 2211, 353, 2566, 358, 1640, 1308, 1953, 434, 1778, 330, 1701, 2184, 6222, 67, 6738, 273, 365, 18, 588, 9769...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5118, 67, 1289, 67, 4256, 67, 4923, 67, 3662, 12, 2890, 16, 2653, 4672, 468, 2211, 353, 2566, 358, 1640, 1308, 1953, 434, 1778, 330, 1701, 2184, 6222, 67, 6738, 273, 365, 18, 588, 9769...
{'abmho':'Defined to be 10^9 siemens.', 'mho':'Equivalent to siemens.', 'siemens':'SI derived unit of conductance.\nDefined to be an ampere per volt or 1/ohm.'},
{'abmho':'Defined to be 10^9 siemens.', 'mho':'Equivalent to siemens.', 'siemens':'SI derived unit of conductance.\nDefined to be an ampere per volt or 1/ohm.'},
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
36d2f28c044694ad73a4a70a9d869366d0e39ec4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/36d2f28c044694ad73a4a70a9d869366d0e39ec4/units.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5302, 4873, 1576, 13332, 3536, 6910, 777, 326, 533, 924, 434, 326, 2836, 1576, 2190, 635, 3675, 12697, 10138, 16, 471, 10736, 2690, 1308, 4606, 364, 28769, 434, 999, 18, 1220, 445, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5302, 4873, 1576, 13332, 3536, 6910, 777, 326, 533, 924, 434, 326, 2836, 1576, 2190, 635, 3675, 12697, 10138, 16, 471, 10736, 2690, 1308, 4606, 364, 28769, 434, 999, 18, 1220, 445, 353, ...
self.conn = self.connect(invalidate = True)
self.conn = self.connect() self.redo()
def redoJob(self, jobName): """ __redoJob__ Flag job to be redone Only succesfully finished jobs can be re-executed or failed jobs with invalid input files.
f6d38da4b0910650112bd5df8a6e148fb35b760b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8887/f6d38da4b0910650112bd5df8a6e148fb35b760b/MergeSensorDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24524, 2278, 12, 2890, 16, 17833, 4672, 3536, 1001, 1118, 83, 2278, 972, 225, 9960, 1719, 358, 506, 1755, 476, 225, 5098, 8667, 764, 4095, 6708, 6550, 848, 506, 283, 17, 4177, 4817, 578,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24524, 2278, 12, 2890, 16, 17833, 4672, 3536, 1001, 1118, 83, 2278, 972, 225, 9960, 1719, 358, 506, 1755, 476, 225, 5098, 8667, 764, 4095, 6708, 6550, 848, 506, 283, 17, 4177, 4817, 578,...
return pywikibot.comms.data.request(self, path)
return http.request(self, path)
def getUrl(self, path, retry=True, sysop=False, data=None, compress=True, no_hostname=False, cookie_only=False): """DEPRECATED.
409e3c2e653057fbcea6603535cec0fb3658a3b3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9005/409e3c2e653057fbcea6603535cec0fb3658a3b3/site.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8928, 12, 2890, 16, 589, 16, 3300, 33, 5510, 16, 2589, 556, 33, 8381, 16, 501, 33, 7036, 16, 8099, 33, 5510, 16, 1158, 67, 10358, 33, 8381, 16, 3878, 67, 3700, 33, 8381, 4672, 3536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8928, 12, 2890, 16, 589, 16, 3300, 33, 5510, 16, 2589, 556, 33, 8381, 16, 501, 33, 7036, 16, 8099, 33, 5510, 16, 1158, 67, 10358, 33, 8381, 16, 3878, 67, 3700, 33, 8381, 4672, 3536, ...
sage: EK.regulator_of_points([P,T])
sage: EK.regulator_of_points([P,T])
def regulator_of_points(self, points=[], precision=None): """ Returns the regulator of the given points on this curve.
a147dc602aa8a027c74c8a26df5bafcdc60444c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/a147dc602aa8a027c74c8a26df5bafcdc60444c0/ell_number_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 960, 11775, 67, 792, 67, 4139, 12, 2890, 16, 3143, 22850, 6487, 6039, 33, 7036, 4672, 3536, 2860, 326, 960, 11775, 434, 326, 864, 3143, 603, 333, 8882, 18, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 960, 11775, 67, 792, 67, 4139, 12, 2890, 16, 3143, 22850, 6487, 6039, 33, 7036, 4672, 3536, 2860, 326, 960, 11775, 434, 326, 864, 3143, 603, 333, 8882, 18, 2, -100, -100, -100, -100, -...
s.append(_('Product {')) s.append(_('\tHash ......... = %s') % self.getHash()) s.append(_('\tName ......... = %s') % self.getName()) s.append(_('\tVariant ...... = %s') % self.getVariant()) s.append(_('\tArchitecture . = %s') % self.getArch()) s.append(_('\tVersion ...... = %s') % self.getVersion())
s.append('Product {') s.append('\tHash ......... = %s' % self.getHash()) s.append('\tName ......... = %s' % self.getName()) s.append('\tVariant ...... = %s' % self.getVariant()) s.append('\tArchitecture . = %s' % self.getArch()) s.append('\tVersion ...... = %s' % self.getVersion())
def __str__(self): s = [] s.append(_('Product {')) s.append(_('\tHash ......... = %s') % self.getHash()) s.append(_('\tName ......... = %s') % self.getName()) s.append(_('\tVariant ...... = %s') % self.getVariant()) s.append(_('\tArchitecture . = %s') % self.getArch()) s.append(_('\tVersion ...... = %s') % self.getVers...
5935221abc238b068bfc526c81a42619407e5eef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11040/5935221abc238b068bfc526c81a42619407e5eef/certificate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 272, 273, 5378, 272, 18, 6923, 2668, 4133, 288, 6134, 272, 18, 6923, 2668, 64, 88, 2310, 1372, 6265, 838, 273, 738, 87, 11, 738, 365, 18, 588, 2310, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 272, 273, 5378, 272, 18, 6923, 2668, 4133, 288, 6134, 272, 18, 6923, 2668, 64, 88, 2310, 1372, 6265, 838, 273, 738, 87, 11, 738, 365, 18, 588, 2310, 1...
page = director.retrievePage( 'gulpHarmonic' )
page = director.retrieveSecurePage( 'gulpHarmonic' )
def gulpHarmonic(self, director): try: page = director.retrievePage( 'gulpHarmonic' ) except AuthenticationError, err: return err.page main = page._body._content._main document = main.document(title="") document.byline = '<a href="http://danse.us">DANSE</a>' formcomponent = self.retrieveFormToShow( 'gulpHarmonic') for...
cb1eaacdd3ce3b1d0a0895ae903ff064f66cb070 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/578/cb1eaacdd3ce3b1d0a0895ae903ff064f66cb070/ScatteringKernelInput.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18568, 44, 297, 2586, 335, 12, 2890, 16, 2657, 280, 4672, 775, 30, 1363, 273, 2657, 280, 18, 17466, 12834, 1964, 12, 296, 75, 14290, 44, 297, 2586, 335, 11, 262, 1335, 8665, 668, 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, 18568, 44, 297, 2586, 335, 12, 2890, 16, 2657, 280, 4672, 775, 30, 1363, 273, 2657, 280, 18, 17466, 12834, 1964, 12, 296, 75, 14290, 44, 297, 2586, 335, 11, 262, 1335, 8665, 668, 16, ...
def add_storage(self, s):
def add_storage(self, key, val = None):
def add_storage(self, s): """ Add a reference to an object used during execution of the instruction stream. This cache keeps locally allocated objects from being garbage collected once the stream is built. """ self._storage.append(s) return
ea8fe5605ff094f493b98507c234ba28d8f01555 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9699/ea8fe5605ff094f493b98507c234ba28d8f01555/spe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 5697, 12, 2890, 16, 498, 16, 1244, 273, 599, 4672, 3536, 1436, 279, 2114, 358, 392, 733, 1399, 4982, 4588, 434, 326, 7592, 1407, 18, 225, 1220, 1247, 20948, 13760, 11977, 2184, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 5697, 12, 2890, 16, 498, 16, 1244, 273, 599, 4672, 3536, 1436, 279, 2114, 358, 392, 733, 1399, 4982, 4588, 434, 326, 7592, 1407, 18, 225, 1220, 1247, 20948, 13760, 11977, 2184, ...
(options, files) = getopt.getopt(sys.argv[1:], sh, long)
(options, files) = getopt.getopt (sys.argv[1:], sh, long)
def gen_pixel_font (filename, metric, magnification): """ Generate a GF file for FILENAME, such that `magnification'*mfscale (default 1000 * 1.0) pixels fit on the designsize. """ base_dpi = 600 size = metric.design_size size_points = size * 1/72.27 * base_dpi mag = magnification / size_points prod = mag * base_dp...
d96cc8339091f674ea0fc313632dcc5c333eeb78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11856/d96cc8339091f674ea0fc313632dcc5c333eeb78/mftrace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 67, 11743, 67, 5776, 261, 3459, 16, 3999, 16, 28160, 1480, 4672, 3536, 6654, 279, 611, 42, 585, 225, 364, 7527, 1985, 16, 4123, 716, 1375, 4527, 82, 1480, 11, 14, 81, 2556, 1869,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 67, 11743, 67, 5776, 261, 3459, 16, 3999, 16, 28160, 1480, 4672, 3536, 6654, 279, 611, 42, 585, 225, 364, 7527, 1985, 16, 4123, 716, 1375, 4527, 82, 1480, 11, 14, 81, 2556, 1869,...
(re.compile("(<\s*[aA]\s+.*\/)\s*>"),
(re.compile("(<a\s+.*?)/>|<a/>", re.IGNORECASE),
def __init__(self, ns, css, memory, dpi, fonts, font_delta=0): src = ns.string if hasattr(ns, 'string') else ns src = re.sub(r'\s{2,}', ' ', src) # Remove multiple spaces for pat, repl in Span.rules: src = pat.sub(repl, src) if not src: raise ConversionError('No point in adding an empty string to a Span') attrs = Span...
1a36564830b8e747e6f0a1245f422fde89507104 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/1a36564830b8e747e6f0a1245f422fde89507104/convert_from.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3153, 16, 3747, 16, 3778, 16, 16361, 16, 16450, 16, 3512, 67, 9878, 33, 20, 4672, 1705, 273, 3153, 18, 1080, 309, 3859, 12, 2387, 16, 296, 1080, 6134, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3153, 16, 3747, 16, 3778, 16, 16361, 16, 16450, 16, 3512, 67, 9878, 33, 20, 4672, 1705, 273, 3153, 18, 1080, 309, 3859, 12, 2387, 16, 296, 1080, 6134, ...
def autostart(reason, **kwargs): if reason is True: iSoftwareTools.startSoftwareTools()
def autostart(reason, **kwargs): if reason is True: iSoftwareTools.startSoftwareTools()
233b4b8d8791a0b79c368cdbeef6296f1c83fce7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/233b4b8d8791a0b79c368cdbeef6296f1c83fce7/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
field_values += doc.field_value(field)
field_values += doc.field_values(field)
def _standard_field_values(self, doc): """ @return: A list of epytext field values that includes all fields that are common to all L{ObjDoc}s. C{_standard_field_values} is used by L{_extract_term_index}. @rtype: C{list} of L{xml.dom.minidom.Document} """ field_values = [] for field in doc.fields(): field_values += doc....
8f24852c950a066a730545d7f2f1e4914eba4d1b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/8f24852c950a066a730545d7f2f1e4914eba4d1b/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10005, 67, 1518, 67, 2372, 12, 2890, 16, 997, 4672, 3536, 632, 2463, 30, 432, 666, 434, 425, 2074, 955, 652, 924, 716, 6104, 777, 1466, 716, 854, 2975, 358, 777, 511, 95, 2675, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10005, 67, 1518, 67, 2372, 12, 2890, 16, 997, 4672, 3536, 632, 2463, 30, 432, 666, 434, 425, 2074, 955, 652, 924, 716, 6104, 777, 1466, 716, 854, 2975, 358, 777, 511, 95, 2675, ...
return [self.data[key] for key in self.field_order]
return list(self.itervalues())
def values(self): """obj.values() -> list of values, ordered by self.field_order""" return [self.data[key] for key in self.field_order]
27fde5c4b68dac86423571af9d2fc928f1736654 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13713/27fde5c4b68dac86423571af9d2fc928f1736654/MythBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 924, 12, 2890, 4672, 3536, 2603, 18, 2372, 1435, 317, 666, 434, 924, 16, 5901, 635, 365, 18, 1518, 67, 1019, 8395, 327, 666, 12, 2890, 18, 2165, 2372, 10756, 225, 2, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 924, 12, 2890, 4672, 3536, 2603, 18, 2372, 1435, 317, 666, 434, 924, 16, 5901, 635, 365, 18, 1518, 67, 1019, 8395, 327, 666, 12, 2890, 18, 2165, 2372, 10756, 225, 2, -100, -100, -100, ...
"""%locals(), AllTests.__dict__);
"""%locals() in AllTests.__dict__
exec("""def __%(method)s__(self, *args): print "__%(method)s__:", args
5dffb78decad48601ff65224a338d1b4c463bf22 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/5dffb78decad48601ff65224a338d1b4c463bf22/test_class.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1196, 2932, 3660, 536, 1001, 17105, 2039, 13, 87, 972, 12, 2890, 16, 380, 1968, 4672, 1172, 10425, 17105, 2039, 13, 87, 972, 2773, 16, 833, 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, 0, 0, 0, 0, 0, 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, 1196, 2932, 3660, 536, 1001, 17105, 2039, 13, 87, 972, 12, 2890, 16, 380, 1968, 4672, 1172, 10425, 17105, 2039, 13, 87, 972, 2773, 16, 833, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
word_to_skip_translated = wikipedia.translate(self.site, word_to_skip)
word_to_skip_translated = pywikibot.translate(self.site, word_to_skip)
def useHashGenerator(self): # http://toolserver.org/~multichill/nowcommons.php?language=it&page=2&filter= lang = self.site.lang num_page = 0 word_to_skip_translated = wikipedia.translate(self.site, word_to_skip) images_processed = list() while 1: url = 'http://toolserver.org/~multichill/nowcommons.php?language=%s&page=...
3e7506930193ed64965aabc3e2d1d58bf15e5c6b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/3e7506930193ed64965aabc3e2d1d58bf15e5c6b/nowcommons.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 999, 2310, 3908, 12, 2890, 4672, 468, 1062, 2207, 6738, 3567, 18, 3341, 19, 98, 5421, 1354, 737, 19, 3338, 6054, 87, 18, 2684, 35, 4923, 33, 305, 10, 2433, 33, 22, 10, 2188, 33, 3303...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 999, 2310, 3908, 12, 2890, 4672, 468, 1062, 2207, 6738, 3567, 18, 3341, 19, 98, 5421, 1354, 737, 19, 3338, 6054, 87, 18, 2684, 35, 4923, 33, 305, 10, 2433, 33, 22, 10, 2188, 33, 3303...
file_name = upload_file.name
if not isinstance(upload_file.name, unicode): file_name = unicode(upload_file.name, 'utf-8') else: file_name = upload_file.name
def _get_uploaded_info(upload_file): file_name = upload_file.name type = guess_media_type(file_name) upload_file.rename() res_id = upload_file.get_res_id() return (file_name, type, res_id)
58bc17db4eb3803776dddc51d36ac3210e00beb5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4589/58bc17db4eb3803776dddc51d36ac3210e00beb5/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 23249, 67, 1376, 12, 6327, 67, 768, 4672, 309, 486, 1549, 12, 6327, 67, 768, 18, 529, 16, 5252, 4672, 585, 67, 529, 273, 5252, 12, 6327, 67, 768, 18, 529, 16, 296, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 23249, 67, 1376, 12, 6327, 67, 768, 4672, 309, 486, 1549, 12, 6327, 67, 768, 18, 529, 16, 5252, 4672, 585, 67, 529, 273, 5252, 12, 6327, 67, 768, 18, 529, 16, 296, 31...
if result and type(result) == dict :
if result and type(result) == dict:
def _getmacCB(result): if result and type(result) == dict : client = self._getXMLRPCClient() func = 'imaging.injectInventory' args = (result['uuid'], Inventory) d = client.callRemote(func, *args) d.addCallbacks(lambda x : True, client.onError, errbackArgs = (func, args, 0)) return d self.logger.warn('Imaging: Failed re...
433412e00fa04ae64b63408fab93248fec79b319 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/433412e00fa04ae64b63408fab93248fec79b319/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 5821, 8876, 12, 2088, 4672, 309, 563, 471, 618, 12, 2088, 13, 422, 2065, 30, 1004, 273, 365, 6315, 588, 4201, 8087, 1227, 1435, 1326, 273, 296, 381, 5755, 18, 22170, 15059, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5821, 8876, 12, 2088, 4672, 309, 563, 471, 618, 12, 2088, 13, 422, 2065, 30, 1004, 273, 365, 6315, 588, 4201, 8087, 1227, 1435, 1326, 273, 296, 381, 5755, 18, 22170, 15059, 1...
(old and new) of the object in conflict. (Serial numbers are closely related [equal?] to transaction IDs; a ConflictError may be triggered by a serial number mismatch.)
related to conflict. The first is the revision of object that is in conflict, the second is the revision of that the current transaction read when it started.
def __str__(self): return _fmt_oid(self.args[0])
0b0b84d2e290a95e3fc88b0c062d150d60cc5e8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/0b0b84d2e290a95e3fc88b0c062d150d60cc5e8b/POSException.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 389, 8666, 67, 839, 12, 2890, 18, 1968, 63, 20, 5717, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 389, 8666, 67, 839, 12, 2890, 18, 1968, 63, 20, 5717, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
raise web.seeother(readable_path.encode('utf-8') + web.ctx.query.encode('utf-8'))
raise web.seeother(web.safeunicode(readable_path) + web.safeunicode(web.ctx.query))
def __call__(self, handler): real_path, readable_path = self.get_readable_path(web.ctx.path, encoding=web.ctx.encoding)
9c8e13be48944ece83775cc906d4dbf147a6b580 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3913/9c8e13be48944ece83775cc906d4dbf147a6b580/processors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1838, 4672, 2863, 67, 803, 16, 7471, 67, 803, 273, 365, 18, 588, 67, 11018, 67, 803, 12, 4875, 18, 5900, 18, 803, 16, 2688, 33, 4875, 18, 5900, 18, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1838, 4672, 2863, 67, 803, 16, 7471, 67, 803, 273, 365, 18, 588, 67, 11018, 67, 803, 12, 4875, 18, 5900, 18, 803, 16, 2688, 33, 4875, 18, 5900, 18, 5...
m.append(m2) print 'iteration %02d/%02d: %d pages used' % (i+1, N, m2)
print 'iteration %02d/%02d: %d pages used (%+d)' % (i+1, options.max_iterations, m2, m2-m1) m1 = m2 if m2 > max_mem: max_mem = m2 max_mem_stable = 0 else: max_mem_stable += 1 if max_mem_stable == options.required: print 'maximum was stable for', max_mem_stable, 'iterations' no_leak = True break
def leakTest_generic(func): print 'memory leak test', func.__name__ check_garbage() doc = document.Document() #gc.set_debug(gc.DEBUG_LEAK) m = [] N = 21 for i in range(N): func(doc, i) if options.debug: if i == 3: check_garbage() helpers.record_memory_leak_status() if i == 4: helpers.record_memory_leak_status(print_d...
abe84cab53908d32f7c67b51497ecc1323f8bb01 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7129/abe84cab53908d32f7c67b51497ecc1323f8bb01/test_memory_leak.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20891, 4709, 67, 13540, 12, 644, 4672, 1172, 296, 7858, 20891, 1842, 2187, 1326, 16186, 529, 972, 866, 67, 75, 12332, 1435, 225, 997, 273, 1668, 18, 2519, 1435, 468, 13241, 18, 542, 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, 20891, 4709, 67, 13540, 12, 644, 4672, 1172, 296, 7858, 20891, 1842, 2187, 1326, 16186, 529, 972, 866, 67, 75, 12332, 1435, 225, 997, 273, 1668, 18, 2519, 1435, 468, 13241, 18, 542, 67, ...
if not exists(join(root, subdir, 'MT')): raise TargetInitializationFailure("Please setup %s as a monotone working directory." % root)
def _initializeWorkingDir(self, root, repository, module, subdir): """ Setup the monotone working copy The user must setup a monotone working directory himself. Then we simply use 'monotone commit', without having to specify a database file or branch. Monotone looks up the database and branch in it's MT directory. """
b2f9902b127996b2c171f1afba402b14e4a52a50 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/b2f9902b127996b2c171f1afba402b14e4a52a50/monotone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11160, 14836, 1621, 12, 2890, 16, 1365, 16, 3352, 16, 1605, 16, 16921, 4672, 3536, 10939, 326, 6921, 352, 476, 5960, 1610, 225, 1021, 729, 1297, 3875, 279, 6921, 352, 476, 5960, 186...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11160, 14836, 1621, 12, 2890, 16, 1365, 16, 3352, 16, 1605, 16, 16921, 4672, 3536, 10939, 326, 6921, 352, 476, 5960, 1610, 225, 1021, 729, 1297, 3875, 279, 6921, 352, 476, 5960, 186...
print 4
def parsetext(text): """ parsetext(text) -> dict() Tokenizes a body of text and returns a dictionary containing a set of features located within the text. 'start': the byte offset of '<s>' tags found in the text. 'end': the byte offset of '</s>' tags found in the text. 'email': the byte offset and text of ...
c9bff2a47221cbe589c7c2da84104eab2fe9431c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6959/c9bff2a47221cbe589c7c2da84104eab2fe9431c/copyright_library.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 779, 542, 408, 12, 955, 4672, 3536, 779, 542, 408, 12, 955, 13, 317, 2065, 1435, 225, 3155, 3128, 279, 1417, 434, 977, 471, 1135, 279, 3880, 4191, 279, 444, 434, 4467, 13801, 3470, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 779, 542, 408, 12, 955, 4672, 3536, 779, 542, 408, 12, 955, 13, 317, 2065, 1435, 225, 3155, 3128, 279, 1417, 434, 977, 471, 1135, 279, 3880, 4191, 279, 444, 434, 4467, 13801, 3470, 326...
Num = SecNum
Index = 0
def GenSection(self, OutputPath, ModuleName, SecNum, KeyStringList, FfsInf = None) : """Prepare the parameter of GenSection""" if FfsInf != None : InfFileName = FfsInf.InfFileName SectionType = FfsInf.__ExtendMarco__(self.SectionType) Filename = FfsInf.__ExtendMarco__(self.FileName) """print 'Buile Num: %s' %self.Build...
7c5dfadde3009a03816588c8522112fb8b4346ae /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/7c5dfadde3009a03816588c8522112fb8b4346ae/EfiSection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10938, 5285, 12, 2890, 16, 3633, 743, 16, 5924, 461, 16, 3232, 2578, 16, 1929, 780, 682, 16, 478, 2556, 13149, 273, 599, 13, 294, 3536, 7543, 326, 1569, 434, 10938, 5285, 8395, 309, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10938, 5285, 12, 2890, 16, 3633, 743, 16, 5924, 461, 16, 3232, 2578, 16, 1929, 780, 682, 16, 478, 2556, 13149, 273, 599, 13, 294, 3536, 7543, 326, 1569, 434, 10938, 5285, 8395, 309, 47...
content_type = IsComposingMessage.content_type
def send_composing_indication(self, state, refresh, last_active=None, remote_identity=None): if self.direction == 'recvonly': raise ChatStreamError('Cannot send message on recvonly stream') content_type = IsComposingMessage.content_type if state not in ('active', 'idle'): raise ValueError('Invalid value for composing i...
a7710a42c8a6589fb3a18d218810c506b9a41220 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/a7710a42c8a6589fb3a18d218810c506b9a41220/msrp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 832, 24014, 67, 728, 829, 12, 2890, 16, 919, 16, 4460, 16, 1142, 67, 3535, 33, 7036, 16, 2632, 67, 10781, 33, 7036, 4672, 309, 365, 18, 9855, 422, 296, 18334, 3700, 4278, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 832, 24014, 67, 728, 829, 12, 2890, 16, 919, 16, 4460, 16, 1142, 67, 3535, 33, 7036, 16, 2632, 67, 10781, 33, 7036, 4672, 309, 365, 18, 9855, 422, 296, 18334, 3700, 4278, 1...
(r'(\s|.)', Text),
(r'(\s|.)', Text)
def word_callback(lexer, match): word = match.group()
9c5ca917dfe1bfdbc163608e8673107dd92263fe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6148/9c5ca917dfe1bfdbc163608e8673107dd92263fe/other.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2076, 67, 3394, 12, 31731, 16, 845, 4672, 2076, 273, 845, 18, 1655, 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, ...
[ 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, 2076, 67, 3394, 12, 31731, 16, 845, 4672, 2076, 273, 845, 18, 1655, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if '.' not in path: path.insert(0,'.')
if not noCWD and '.' not in path: path.insert(0,'.')
def recursiveImport(modulename, baseDir=None): """Dynamically imports possible packagized module, or raises ImportError""" import imp parts = string.split(modulename, '.') part = parts[0] path = list(baseDir and (type(baseDir) not in SeqTypes and [baseDir] or filter(None,baseDir)) or None) if '.' not in path: path.inse...
523bad38145a0961601736e24b1bef20c19fd585 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/523bad38145a0961601736e24b1bef20c19fd585/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5904, 5010, 12, 1711, 332, 1069, 16, 14078, 33, 7036, 4672, 3536, 9791, 1230, 10095, 3323, 2298, 346, 1235, 1605, 16, 578, 14183, 11308, 8395, 1930, 1646, 2140, 273, 533, 18, 4939, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5904, 5010, 12, 1711, 332, 1069, 16, 14078, 33, 7036, 4672, 3536, 9791, 1230, 10095, 3323, 2298, 346, 1235, 1605, 16, 578, 14183, 11308, 8395, 1930, 1646, 2140, 273, 533, 18, 4939, 12, 1...
regexOnCommons = r"\n\*\[\[:Image:%s\]\] is also on '''Commons''': \[\[commons:Image:.*?\]\](?: \(same name\)|)$" % self.imageName
regexOnCommons = r"\n\*\[\[:Image:%s\]\] is also on '''Commons''': \[\[commons:Image:.*?\]\](?: \(same name\)|)$" % re.escape(self.imageName)
def checkImageOnCommons(self): """ Checking if the image is on commons """ wikipedia.output(u'Checking if %s is on commons...' % self.imageName) commons_site = wikipedia.getSite('commons', 'commons') regexOnCommons = r"\n\*\[\[:Image:%s\]\] is also on '''Commons''': \[\[commons:Image:.*?\]\](?: \(same name\)|)$" % self...
1ecddcfa85fe19e5195be1e2bacefbc54f9f19b8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/1ecddcfa85fe19e5195be1e2bacefbc54f9f19b8/checkimages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 2040, 1398, 6517, 87, 12, 2890, 4672, 3536, 24471, 309, 326, 1316, 353, 603, 24021, 3536, 21137, 18, 2844, 12, 89, 11, 14294, 309, 738, 87, 353, 603, 24021, 7821, 738, 365, 18, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 2040, 1398, 6517, 87, 12, 2890, 4672, 3536, 24471, 309, 326, 1316, 353, 603, 24021, 3536, 21137, 18, 2844, 12, 89, 11, 14294, 309, 738, 87, 353, 603, 24021, 7821, 738, 365, 18, 27...
self._out.write('<?%s %s?>' % (target, data))
self._write('<?%s %s?>' % (target, data))
def processingInstruction(self, target, data): self._out.write('<?%s %s?>' % (target, data))
7b93fef6bf0bea5e35b2c1567752fbb0d0dea6cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/7b93fef6bf0bea5e35b2c1567752fbb0d0dea6cf/saxutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4929, 11983, 12, 2890, 16, 1018, 16, 501, 4672, 365, 6315, 659, 18, 2626, 2668, 12880, 9, 87, 738, 87, 35, 1870, 738, 261, 3299, 16, 501, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4929, 11983, 12, 2890, 16, 1018, 16, 501, 4672, 365, 6315, 659, 18, 2626, 2668, 12880, 9, 87, 738, 87, 35, 1870, 738, 261, 3299, 16, 501, 3719, 2, -100, -100, -100, -100, -100, -100, ...