rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
'If multiple files are given, they are put into a single paste.' % SERVICE_URL)
'If multiple files are given, they are put into a single paste.')
def main(): """Main script entry point.""" usage = ('Usage: %%prog [options] [FILE ...]\n\n' 'Read the files and paste their contents to %s.\n' 'If no file is given, read from standard input.\n' 'If multiple files are given, they are put into a single paste.' % SERVICE_URL) parser = OptionParser(usage=usage) settings...
b75206fd8de1f7f74e3150b949de916ec5b50ca3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11759/b75206fd8de1f7f74e3150b949de916ec5b50ca3/lodgeit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6376, 2728, 1241, 1634, 12123, 225, 4084, 273, 7707, 5357, 30, 26510, 14654, 306, 2116, 65, 306, 3776, 1372, 13944, 82, 64, 82, 11, 296, 1994, 326, 1390, 471, 19401, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6376, 2728, 1241, 1634, 12123, 225, 4084, 273, 7707, 5357, 30, 26510, 14654, 306, 2116, 65, 306, 3776, 1372, 13944, 82, 64, 82, 11, 296, 1994, 326, 1390, 471, 19401, 3...
'deactivated', config.name)
'deactivated', config.name, build.rev, build.platform)
def get_next_pending_build(self, available_slaves): """Check whether one of the pending builds can be built by one of the available build slaves. If such a build is found, this method returns a C{(build, slave)} tuple, where C{build} is the L{bitten.model.Build} object and C{slave} is the name of the build slave that ...
0fb344376f3e49926a0c493b2320ebaeb0a9ff66 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4547/0fb344376f3e49926a0c493b2320ebaeb0a9ff66/queue.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4285, 67, 9561, 67, 3510, 12, 2890, 16, 2319, 67, 2069, 6606, 4672, 3536, 1564, 2856, 1245, 434, 326, 4634, 10736, 848, 506, 6650, 635, 1245, 434, 326, 2319, 1361, 30403, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4285, 67, 9561, 67, 3510, 12, 2890, 16, 2319, 67, 2069, 6606, 4672, 3536, 1564, 2856, 1245, 434, 326, 4634, 10736, 848, 506, 6650, 635, 1245, 434, 326, 2319, 1361, 30403, 18, ...
carry += z._getshort(i + j) + b._getshort(j) * f z._setshort(i + j, carry & MASK)
carry += z.digits[i + j] + b.digits[j] * f z.digits[i + j] = carry & MASK
def _x_mul(a, b): size_a = len(a.digits) * 2 size_b = len(b.digits) * 2 z = W_LongObject(a.space, [r_uint(0)] * ((size_a + size_b) // 2), 1) i = 0 while i < size_a: carry = r_uint(0) f = a._getshort(i) j = 0 while j < size_b: carry += z._getshort(i + j) + b._getshort(j) * f z._setshort(i + j, carry & MASK) carry = carr...
ad929a678777d2ef2df66adef7cd3564d723bca6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/ad929a678777d2ef2df66adef7cd3564d723bca6/longobject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 92, 67, 16411, 12, 69, 16, 324, 4672, 963, 67, 69, 273, 562, 12, 69, 18, 16649, 13, 380, 576, 963, 67, 70, 273, 562, 12, 70, 18, 16649, 13, 380, 576, 998, 273, 678, 67, 3708...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 92, 67, 16411, 12, 69, 16, 324, 4672, 963, 67, 69, 273, 562, 12, 69, 18, 16649, 13, 380, 576, 963, 67, 70, 273, 562, 12, 70, 18, 16649, 13, 380, 576, 998, 273, 678, 67, 3708...
print "show vor:" + str(self._settings.col_dialog_geometry)
def _showSetColumnDialogSlot(self): set_column_dialog = SetColumnDialog(self._headers, self) set_column_dialog.setGeometry(self._settings.col_dialog_geometry) print "show vor:" + str(self._settings.col_dialog_geometry) set_column_dialog.exec_() if set_column_dialog.result() == QtGui.QDialog.Accepted: self._headers = se...
304aa230f4b28f037ade99ea04bd389628e5813c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4919/304aa230f4b28f037ade99ea04bd389628e5813c/MainWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4500, 694, 1494, 6353, 8764, 12, 2890, 4672, 444, 67, 2827, 67, 12730, 273, 1000, 1494, 6353, 12, 2890, 6315, 2485, 16, 365, 13, 444, 67, 2827, 67, 12730, 18, 542, 9823, 12, 2890,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4500, 694, 1494, 6353, 8764, 12, 2890, 4672, 444, 67, 2827, 67, 12730, 273, 1000, 1494, 6353, 12, 2890, 6315, 2485, 16, 365, 13, 444, 67, 2827, 67, 12730, 18, 542, 9823, 12, 2890,...
out += '<tr><td>'+scite+'</td></tr>'
out += '<tr><td>'+scite+'</td></tr>'
def tmpl_detailed_record_citations(self, recID, ln, citinglist, citationhistory, cociting,selfcited): """Returns the citations page of a record
8c44a32f71b1b9e39f27a9f6c8b27b4d0b85a27f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/8c44a32f71b1b9e39f27a9f6c8b27b4d0b85a27f/websearch_templates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 72, 6372, 67, 3366, 67, 71, 18282, 12, 2890, 16, 1950, 734, 16, 7211, 16, 276, 305, 310, 1098, 16, 21145, 8189, 16, 276, 504, 305, 310, 16, 2890, 71, 16261, 4672, 3536, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 72, 6372, 67, 3366, 67, 71, 18282, 12, 2890, 16, 1950, 734, 16, 7211, 16, 276, 305, 310, 1098, 16, 21145, 8189, 16, 276, 504, 305, 310, 16, 2890, 71, 16261, 4672, 3536, 13...
jobname = str(int(prod)).zfill(8)+'_'+str(jobid).zfill(8)
if jobid.find('No JobID assigned') == -1: jobname = str(int(prod)).zfill(8)+'_'+str(jobid).zfill(8) else: jobname = str(jobid)
def do_getFiles(self,args): """Get files for the given production
1c866681af95440306406c585e7034208e2fbfd3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/1c866681af95440306406c585e7034208e2fbfd3/TransformationDBCLI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 588, 2697, 12, 2890, 16, 1968, 4672, 3536, 967, 1390, 364, 326, 864, 12449, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 588, 2697, 12, 2890, 16, 1968, 4672, 3536, 967, 1390, 364, 326, 864, 12449, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
socket.setdefaulttimeout(10)
setdefaulttimeout(10)
def __init__(self): self.tmp_dir = tempfile.mkdtemp() self.init_base_style_sheet() self.image_not_found_path = get_abspath('missing.png') self.toc_place = None self.cpt_toc_ref = 0 self.toc_high_level = 3 self.current_object_path = [] self.css = None css_file = get_abspath('html.css') self.add_css_from_file(css_file) s...
50a7a182524186cc9f1bf07ae6fde517d7642da6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12681/50a7a182524186cc9f1bf07ae6fde517d7642da6/pml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 5645, 67, 1214, 273, 13275, 18, 24816, 72, 5814, 1435, 365, 18, 2738, 67, 1969, 67, 4060, 67, 8118, 1435, 365, 18, 2730, 67, 902, 67, 7015, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 5645, 67, 1214, 273, 13275, 18, 24816, 72, 5814, 1435, 365, 18, 2738, 67, 1969, 67, 4060, 67, 8118, 1435, 365, 18, 2730, 67, 902, 67, 7015, ...
self.assertRaises(ValueError, zlib.decompressobj, 0)
self.assertRaises(ValueError, zlib.decompressobj, -1)
def test_baddecompressobj(self): # verify failure on building decompress object with bad params self.assertRaises(ValueError, zlib.decompressobj, 0)
a28f255a192b0bf6a04373446f08aaad50fd2dd0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/a28f255a192b0bf6a04373446f08aaad50fd2dd0/test_zlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8759, 323, 14706, 2603, 12, 2890, 4672, 468, 3929, 5166, 603, 10504, 16824, 733, 598, 5570, 859, 365, 18, 11231, 12649, 6141, 12, 23610, 16, 24220, 18, 323, 14706, 2603, 16, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 67, 8759, 323, 14706, 2603, 12, 2890, 4672, 468, 3929, 5166, 603, 10504, 16824, 733, 598, 5570, 859, 365, 18, 11231, 12649, 6141, 12, 23610, 16, 24220, 18, 323, 14706, 2603, 16, 37...
options = self.Options() gclient.os.path.exists(os.path.join(self.root_dir, name, '.git') ).AndReturn(False) gclient.os.path.exists(os.path.join(self.root_dir, options.entries_filename) ).AndReturn(False) gclient_scm.CreateSCM(self.url, self.root_dir, name).AndReturn( gclient_scm.CreateSCM) gclient_scm.CreateSCM.RunCo...
entries_content2 = ( "entries = \\\n" "{'%s': '%s'}\n" ) % (name, self.url) options = self.Options() gclient.os.path.exists(gclient.os.path.join(self.root_dir, name, '.git') ).AndReturn(False) gclient.os.path.exists( gclient.os.path.join(self.root_dir, options.entries_filename) ).AndReturn(False) gclient.gclient_scm....
def testRunOnDepsSuccess(self): # Fake .gclient file. name = 'testRunOnDepsSuccess_solution_name' gclient_config = """solutions = [ {
90ba161b70b445eba62b2a376e4fa2f508854e13 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6076/90ba161b70b445eba62b2a376e4fa2f508854e13/gclient_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1997, 1398, 14430, 4510, 12, 2890, 4672, 468, 11551, 263, 75, 2625, 585, 18, 508, 273, 296, 3813, 1997, 1398, 14430, 4510, 67, 13385, 67, 529, 11, 314, 2625, 67, 1425, 273, 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, 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, 1842, 1997, 1398, 14430, 4510, 12, 2890, 4672, 468, 11551, 263, 75, 2625, 585, 18, 508, 273, 296, 3813, 1997, 1398, 14430, 4510, 67, 13385, 67, 529, 11, 314, 2625, 67, 1425, 273, 3536, ...
return self.obj.jabContext.getAccessibleTextRange(start,end-1)
text=self.obj.jabContext.getAccessibleTextRange(start,end-1) return text
def _getTextRange(self,start,end): #Java needs end of range as last character, not one past the last character return self.obj.jabContext.getAccessibleTextRange(start,end-1)
91002299b918e8e26702b70bdaa8a7203f8009b0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/91002299b918e8e26702b70bdaa8a7203f8009b0/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 1528, 2655, 12, 2890, 16, 1937, 16, 409, 4672, 468, 5852, 4260, 679, 434, 1048, 487, 1142, 3351, 16, 486, 1245, 8854, 326, 1142, 3351, 327, 365, 18, 2603, 18, 78, 378, 1042, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 588, 1528, 2655, 12, 2890, 16, 1937, 16, 409, 4672, 468, 5852, 4260, 679, 434, 1048, 487, 1142, 3351, 16, 486, 1245, 8854, 326, 1142, 3351, 327, 365, 18, 2603, 18, 78, 378, 1042, ...
return self.run_command("git log --pretty=oneline head...trunk").splitlines()
return self.run_command('git', 'log', '--pretty=oneline', 'HEAD...trunk').splitlines()
def local_commits(self): return self.run_command("git log --pretty=oneline head...trunk").splitlines()
47776b014bbf74781b60545bb5f16d07a3aa548e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/47776b014bbf74781b60545bb5f16d07a3aa548e/scm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 67, 27000, 12, 2890, 4672, 327, 365, 18, 2681, 67, 3076, 2932, 6845, 613, 1493, 19073, 33, 265, 3027, 910, 2777, 26133, 20387, 4939, 3548, 1435, 225, 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, 0, 0, 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, 1191, 67, 27000, 12, 2890, 4672, 327, 365, 18, 2681, 67, 3076, 2932, 6845, 613, 1493, 19073, 33, 265, 3027, 910, 2777, 26133, 20387, 4939, 3548, 1435, 225, 2, -100, -100, -100, -100, -10...
self.list_win.resize( opth, optw+3 )
self.list_win.resize( opth, shared.optw+3 )
def calc_lsize(r): """Calculate the size required on screen to display the list."""
bcb1496c968881715634380c9e6bc4206a4388d6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6932/bcb1496c968881715634380c9e6bc4206a4388d6/bpython.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 80, 1467, 12, 86, 4672, 3536, 8695, 326, 963, 1931, 603, 5518, 358, 2562, 326, 666, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 80, 1467, 12, 86, 4672, 3536, 8695, 326, 963, 1931, 603, 5518, 358, 2562, 326, 666, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
(fileDescriptor, tempPath) = tempfile.mkstemp(text=True)
(fileDescriptor, tempPath) = tempfile.mkstemp(text=True, dir=os.curdir)
def combine(self, combined, files, horizontal): self._console.indent() montage_cmd = "montage -geometry +0+0 -gravity NorthWest -tile %s -background None %s %s" if horizontal: orientation = "x1" else: orientation = "1x"
2133d5fb0625377d6018e5840876097ff1899e28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/2133d5fb0625377d6018e5840876097ff1899e28/ImageClipping.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8661, 12, 2890, 16, 8224, 16, 1390, 16, 10300, 4672, 365, 6315, 8698, 18, 9355, 1435, 312, 1580, 410, 67, 4172, 273, 315, 81, 1580, 410, 300, 14330, 397, 20, 15, 20, 300, 2752, 16438, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8661, 12, 2890, 16, 8224, 16, 1390, 16, 10300, 4672, 365, 6315, 8698, 18, 9355, 1435, 312, 1580, 410, 67, 4172, 273, 315, 81, 1580, 410, 300, 14330, 397, 20, 15, 20, 300, 2752, 16438, ...
self.lshwinfo["system"])
self.lshwinfo["system"], self.lshwinfo["core"] )
def specs(self): print( u'Προδιαγραφές ⇛ %s │ RAM %s MiB │ %s│ Μητρική: %s' % (self.lshwinfo["cpu"], self.lshwinfo["memory"], self.lshwinfo["display"], self.lshwinfo["system"]) )
878403e8eee37163ecc1da12dca5fbb217c19857 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13895/878403e8eee37163ecc1da12dca5fbb217c19857/ubuntu-gr_forum_signature.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10607, 12, 2890, 4672, 1172, 12, 582, 11, 143, 259, 144, 228, 143, 128, 143, 117, 143, 122, 143, 114, 143, 116, 144, 228, 143, 114, 144, 233, 143, 260, 144, 229, 225, 163, 234, 254, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10607, 12, 2890, 4672, 1172, 12, 582, 11, 143, 259, 144, 228, 143, 128, 143, 117, 143, 122, 143, 114, 143, 116, 144, 228, 143, 114, 144, 233, 143, 260, 144, 229, 225, 163, 234, 254, ...
values = ["'%s'" % p.get_value_for_datastore(obj) for p in obj.properties(hidden=False)]
values = [] for property in obj.properties(hidden=False): value = property.get_value_for_datastore(obj) if value: value = self.encode_value(property, value) values.append("'%s'" % value)
def _build_insert_qs(self, obj): fields = ['"%s"' % p.name for p in obj.properties(hidden=False)] values = ["'%s'" % p.get_value_for_datastore(obj) for p in obj.properties(hidden=False)] qs = 'INSERT INTO "%s" (id,' % self.db_table qs += ','.join(fields) qs += ") VALUES ('%s'," % obj.id qs += ','.join(values) qs += ');...
a3fcc6fe1e813e473d1e5357dab55740d3754598 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1098/a3fcc6fe1e813e473d1e5357dab55740d3754598/pgmanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3510, 67, 6387, 67, 12926, 12, 2890, 16, 1081, 4672, 1466, 273, 306, 4970, 9, 87, 5187, 738, 293, 18, 529, 364, 293, 316, 1081, 18, 4738, 12, 6345, 33, 8381, 25887, 924, 273, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3510, 67, 6387, 67, 12926, 12, 2890, 16, 1081, 4672, 1466, 273, 306, 4970, 9, 87, 5187, 738, 293, 18, 529, 364, 293, 316, 1081, 18, 4738, 12, 6345, 33, 8381, 25887, 924, 273, 53...
return " " + " ".join(map(str,nums))
assert nums is not None return " " + " ".join(map(str, nums))
def _mmp_record_last_part(self, mapping): """ Last part of the record. Subclass can override this method to provide specific version of this part. @note: If it returns anything other than empty, make sure to put one extra space character at the front. """ # [Huaicai 9/21/05: split this from mmp_record, so the last part...
652882f47e2450b7dedbe963952897e6ef1e04ce /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/652882f47e2450b7dedbe963952897e6ef1e04ce/jigs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 81, 1291, 67, 3366, 67, 2722, 67, 2680, 12, 2890, 16, 2874, 4672, 3536, 6825, 1087, 434, 326, 1409, 18, 2592, 1106, 848, 3849, 333, 707, 358, 5615, 2923, 1177, 434, 333, 1087, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 81, 1291, 67, 3366, 67, 2722, 67, 2680, 12, 2890, 16, 2874, 4672, 3536, 6825, 1087, 434, 326, 1409, 18, 2592, 1106, 848, 3849, 333, 707, 358, 5615, 2923, 1177, 434, 333, 1087, 18,...
replacement_word = h;
replacement_word = trim(h);
def javascript(): s = r"""
5e6486eeb42c495b088c98463827706b6db5627d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/5e6486eeb42c495b088c98463827706b6db5627d/js.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11341, 13332, 272, 273, 436, 8395, 282, 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, 11341, 13332, 272, 273, 436, 8395, 282, 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, -...
r = re.compile(r'
r = re.compile(r'
def create_tabs (string): "Create a number of tabs according to the length of string" x = '' lim = (32 - len(string) + 7) / 8 if lim <= 0: lim = 1 for i in range(0, lim): x += "\t" return x
ed449a906113028b067d078325c31da4f4598e79 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4046/ed449a906113028b067d078325c31da4f4598e79/patch-headers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 16056, 261, 1080, 4672, 315, 1684, 279, 1300, 434, 10920, 4888, 358, 326, 769, 434, 533, 6, 619, 273, 875, 20167, 273, 261, 1578, 300, 562, 12, 1080, 13, 397, 2371, 13, 342, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 16056, 261, 1080, 4672, 315, 1684, 279, 1300, 434, 10920, 4888, 358, 326, 769, 434, 533, 6, 619, 273, 875, 20167, 273, 261, 1578, 300, 562, 12, 1080, 13, 397, 2371, 13, 342, ...
b = bytearray([C(), C(1), C(254), C(255)])
b = self.type2test([C(), C(1), C(254), C(255)])
def __index__(self): return self.i
510711d598f1432afb021a01c2457b14334c6157 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/510711d598f1432afb021a01c2457b14334c6157/test_bytes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1615, 972, 12, 2890, 4672, 327, 365, 18, 77, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1615, 972, 12, 2890, 4672, 327, 365, 18, 77, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
prefix = hashlib.md5(os.urandom(32)).hexdigest()[0:16]
prefix = os.path.join(DESTINATION, hashlib.md5(os.urandom(32)).hexdigest()[0:16])
def generate_image(d): """ Generates an image accoording to given configuration. """ print d if d['imagebuilder'] not in IMAGEBUILDERS: raise Exception("Invalid imagebuilder specified!") x = OpenWrtConfig() x.setOpenwrtVersion(d['openwrt_ver']) x.setArch(d['arch']) x.setWifiIface(d['iface_wifi'], d['driver'], d['chann...
a772cf2f3f5855dc797f75eeab9ac32f64ef2e0f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11345/a772cf2f3f5855dc797f75eeab9ac32f64ef2e0f/gennyd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 2730, 12, 72, 4672, 3536, 31902, 392, 1316, 4078, 83, 517, 310, 358, 864, 1664, 18, 3536, 1172, 302, 309, 302, 3292, 2730, 9574, 3546, 486, 316, 10757, 3000, 2627, 4179, 55, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 2730, 12, 72, 4672, 3536, 31902, 392, 1316, 4078, 83, 517, 310, 358, 864, 1664, 18, 3536, 1172, 302, 309, 302, 3292, 2730, 9574, 3546, 486, 316, 10757, 3000, 2627, 4179, 55, ...
return mask_and_ovr(3)
return mask_and_ovr(3, 'NEAREST')
def mask_17(): return mask_and_ovr(3)
2290f5053a6335229804dd7016bad15e629e2315 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10290/2290f5053a6335229804dd7016bad15e629e2315/mask.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3066, 67, 4033, 13332, 327, 3066, 67, 464, 67, 1527, 86, 12, 23, 16, 296, 5407, 9332, 882, 6134, 225, 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, 3066, 67, 4033, 13332, 327, 3066, 67, 464, 67, 1527, 86, 12, 23, 16, 296, 5407, 9332, 882, 6134, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
TESTS::
EXAMPLES::
def key_schedule(self, kj, i): """ Return `k_i` for a given `i` and `k_j` with `j = i-1`. TESTS:: sage: sr = mq.SR(10, 4, 4, 8, star=True, allow_zero_inversions=True) sage: ki = sr.state_array() sage: for i in range(10): ... ki = sr.key_schedule(ki, i+1) sage: print sr.hex_str_matrix(ki) B4 3E 23 6F EF 92 E9 8F 5B E...
d2531bfd55e8dc010cd9c1e87cc62d2c514562d4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/d2531bfd55e8dc010cd9c1e87cc62d2c514562d4/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 498, 67, 10676, 12, 2890, 16, 417, 78, 16, 277, 4672, 3536, 2000, 1375, 79, 67, 77, 68, 364, 279, 864, 1375, 77, 68, 471, 1375, 79, 67, 78, 68, 598, 1375, 78, 273, 277, 17, 21, 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, 498, 67, 10676, 12, 2890, 16, 417, 78, 16, 277, 4672, 3536, 2000, 1375, 79, 67, 77, 68, 364, 279, 864, 1375, 77, 68, 471, 1375, 79, 67, 78, 68, 598, 1375, 78, 273, 277, 17, 21, 8...
str(start) + "-" + \ str(end - start) + ".txt"
str(start) + "-" + str(end - start) + ".txt"
def veto_segments(ifo, config, categories, generateVetoes): """ generate veto segments for the given ifo @param ifo : name of the ifo @param config : the configParser object with analysis details @param categories : list of veto categories @param generateVetoes: generate the veto files """ start = confi...
dca59c95b4a0d7462413eb45051aac6b80fc0285 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/dca59c95b4a0d7462413eb45051aac6b80fc0285/inspiralutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 331, 11453, 67, 12838, 12, 20299, 16, 642, 16, 6477, 16, 2103, 58, 11453, 281, 4672, 3536, 2103, 331, 11453, 5155, 364, 326, 864, 21479, 225, 632, 891, 21479, 540, 294, 508, 434, 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, 331, 11453, 67, 12838, 12, 20299, 16, 642, 16, 6477, 16, 2103, 58, 11453, 281, 4672, 3536, 2103, 331, 11453, 5155, 364, 326, 864, 21479, 225, 632, 891, 21479, 540, 294, 508, 434, 326, ...
yield UInt32(self, "creation_time", "??", text_handler=timestampMSDOS) yield UInt16(self, "arc_name_size", "??", text_handler=humanFilesize) yield UInt16(self, "user_name_size", "??", text_handler=humanFilesize)
yield UInt32(self, "creation_time", text_handler=timestampMSDOS) yield UInt16(self, "arc_name_size", text_handler=humanFilesize) yield UInt16(self, "user_name_size", text_handler=humanFilesize)
def signatureHeader(self): yield UInt32(self, "creation_time", "??", text_handler=timestampMSDOS) yield UInt16(self, "arc_name_size", "??", text_handler=humanFilesize) yield UInt16(self, "user_name_size", "??", text_handler=humanFilesize)
a9c108cfa3009177581752043b9da12659e5c31a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/a9c108cfa3009177581752043b9da12659e5c31a/rar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3372, 1864, 12, 2890, 4672, 2824, 29810, 1578, 12, 2890, 16, 315, 17169, 67, 957, 3113, 977, 67, 4176, 33, 5508, 3537, 3191, 55, 13, 2824, 29810, 2313, 12, 2890, 16, 315, 11828, 67, 52...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3372, 1864, 12, 2890, 4672, 2824, 29810, 1578, 12, 2890, 16, 315, 17169, 67, 957, 3113, 977, 67, 4176, 33, 5508, 3537, 3191, 55, 13, 2824, 29810, 2313, 12, 2890, 16, 315, 11828, 67, 52...
"short" : { key.get("type"): key.text for key in tree.findall("/keys/short/key") }, "full" : { key.get("type"): key.text for key in tree.findall("/keys/full/key") }
"Short" : { key.get("type"): key.text for key in tree.findall("/keys/short/key") }, "Full" : { key.get("type"): key.text for key in tree.findall("/keys/full/key") }
def __init__(self, locale): pstart() logging.info("Preparing locale %s" % locale) splits = locale.split("_") # Store for internal usage self.__locale = locale self.__language = splits[0] self.__territory = splits[1] if len(splits) > 1 else None
0449da46d56db0af7dbfd9f24d9304ce5d7225e2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/0449da46d56db0af7dbfd9f24d9304ce5d7225e2/LocaleData.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2573, 4672, 293, 1937, 1435, 2907, 18, 1376, 2932, 1386, 12583, 2573, 738, 87, 6, 738, 2573, 13, 11019, 273, 2573, 18, 4939, 2932, 67, 7923, 225, 468, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2573, 4672, 293, 1937, 1435, 2907, 18, 1376, 2932, 1386, 12583, 2573, 738, 87, 6, 738, 2573, 13, 11019, 273, 2573, 18, 4939, 2932, 67, 7923, 225, 468, 49...
>>> okRequest1 = RequestPasswordReset(u'mpj17@onlinegroups.net')
>>> okRequest1 = RequestPasswordReset('mpj17@onlinegroups.net')
... def __init__(self, email):
8f458dcf19119f271c2cde0c87dacd12a12a146f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6273/8f458dcf19119f271c2cde0c87dacd12a12a146f/test_emailEntry.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 377, 1652, 1001, 2738, 972, 12, 2890, 16, 2699, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 377, 1652, 1001, 2738, 972, 12, 2890, 16, 2699, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
result = shellCall(0,cmd)
result = shellCall( 0, cmd )
def __runCommand(self,cmd): """Wrapper around shellCall to return S_OK(stdout) or S_ERROR(message) """ result = shellCall(0,cmd) if not result['OK']: return result status = result['Value'][0] stdout = result['Value'][1] stderr = result['Value'][2]
b590345882082ff68315923d410c01c4d6437735 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/b590345882082ff68315923d410c01c4d6437735/LSFTimeLeft.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2681, 2189, 12, 2890, 16, 4172, 4672, 3536, 3611, 6740, 5972, 1477, 358, 327, 348, 67, 3141, 12, 10283, 13, 578, 348, 67, 3589, 12, 2150, 13, 3536, 563, 273, 5972, 1477, 12, 374,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2681, 2189, 12, 2890, 16, 4172, 4672, 3536, 3611, 6740, 5972, 1477, 358, 327, 348, 67, 3141, 12, 10283, 13, 578, 348, 67, 3589, 12, 2150, 13, 3536, 563, 273, 5972, 1477, 12, 374,...
M = Matrix(k,r,r,[a+1,a,a,a+1])
M = Matrix(k, r, r, [a+1, a, a, a+1])
def mix_columns_matrix(self): """ Return the MixColumns matrix.
cd82551727ddbae04c5b28f55b59ec14654a84ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/cd82551727ddbae04c5b28f55b59ec14654a84ab/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6843, 67, 5112, 67, 5667, 12, 2890, 4672, 3536, 2000, 326, 31043, 3380, 3148, 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, ...
[ 1, 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, 6843, 67, 5112, 67, 5667, 12, 2890, 4672, 3536, 2000, 326, 31043, 3380, 3148, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
"publishTime": unicode(publish_time.isoformat()).encode("utf-8")}
}
def post(self): """Publish the given blog post to the configured Ning Network"""
354a706ced0ded4ee16caf2383adf46fdc13fad2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14358/354a706ced0ded4ee16caf2383adf46fdc13fad2/blogs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 12, 2890, 4672, 3536, 6024, 326, 864, 10700, 1603, 358, 326, 4351, 423, 310, 5128, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 12, 2890, 4672, 3536, 6024, 326, 864, 10700, 1603, 358, 326, 4351, 423, 310, 5128, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if ctype.count('/') <> 1: raise ValueError, 'No subtype found in: %s' % ctype
def get_content_subtype(self): """Returns the message's sub content type.
a1582f2541853ec773a6d26a0ae0be12e177651f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a1582f2541853ec773a6d26a0ae0be12e177651f/Message.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1745, 67, 21974, 12, 2890, 4672, 3536, 1356, 326, 883, 1807, 720, 913, 618, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1745, 67, 21974, 12, 2890, 4672, 3536, 1356, 326, 883, 1807, 720, 913, 618, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if argSet or not args or len(args) > 2: return self.usage()
if argSet or not args or len(args) > 1: return self.usage()
def runCommand(self, cfg, argSet, args, profile = False, callback = None, repos = None): args = args[1:] if argSet or not args or len(args) > 2: return self.usage()
6459db821faf9762e7753329369f513683194a77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/6459db821faf9762e7753329369f513683194a77/cvc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31933, 12, 2890, 16, 2776, 16, 1501, 694, 16, 833, 16, 3042, 273, 1083, 16, 1348, 273, 599, 16, 13686, 273, 599, 4672, 833, 273, 833, 63, 21, 26894, 309, 1501, 694, 578, 486, 833, 57...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31933, 12, 2890, 16, 2776, 16, 1501, 694, 16, 833, 16, 3042, 273, 1083, 16, 1348, 273, 599, 16, 13686, 273, 599, 4672, 833, 273, 833, 63, 21, 26894, 309, 1501, 694, 578, 486, 833, 57...
self.memory = memory
self.memory = memory + 1
def __init__(self, atoms, restart=None, logfile='-', trajectory=None, maxstep=None, dR=0.1, memory=25, damping=1., initial_hessian=None):
dce2828be21b5eb4edfb247e4647203cf88c887a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5735/dce2828be21b5eb4edfb247e4647203cf88c887a/lbfgs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 9006, 16, 7870, 33, 7036, 16, 15204, 2218, 17, 2187, 27016, 33, 7036, 16, 943, 4119, 33, 7036, 16, 302, 54, 33, 20, 18, 21, 16, 3778, 33, 2947, 16, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 9006, 16, 7870, 33, 7036, 16, 15204, 2218, 17, 2187, 27016, 33, 7036, 16, 943, 4119, 33, 7036, 16, 302, 54, 33, 20, 18, 21, 16, 3778, 33, 2947, 16, 3...
'logrotate': '1',
'logrotate': True,
def __init__(self, fname=None): self.options = { 'email_from':False, 'xmlrpc_interface': '', # this will bind the server to all interfaces 'xmlrpc_port': 8069, 'netrpc_interface': '', 'netrpc_port': 8070, 'xmlrpcs_interface': '', # this will bind the server to all interfaces 'xmlrpcs_port': 8071, 'db_host': False...
417f87440ec5b4bc42abe1f51f61b2309e111672 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/417f87440ec5b4bc42abe1f51f61b2309e111672/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5299, 33, 7036, 4672, 365, 18, 2116, 273, 288, 296, 3652, 67, 2080, 4278, 8381, 16, 296, 2902, 7452, 67, 5831, 4278, 10226, 565, 468, 333, 903, 1993, 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, 1001, 2738, 972, 12, 2890, 16, 5299, 33, 7036, 4672, 365, 18, 2116, 273, 288, 296, 3652, 67, 2080, 4278, 8381, 16, 296, 2902, 7452, 67, 5831, 4278, 10226, 565, 468, 333, 903, 1993, 326...
lis = [] for each in self.dict.values(): if len( each ) == 1 : lis.append(each[0]) else: lis.append(each) return lis
result = [] for value in self.dict.values(): if len(value) == 1: result.append(value[0]) else: result.append(value) return result
def values(self): lis = [] for each in self.dict.values(): if len( each ) == 1 : lis.append(each[0]) else: lis.append(each) return lis
577e004d95c9196437c824fbb55b80e4410b47a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/577e004d95c9196437c824fbb55b80e4410b47a7/cgi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 924, 12, 2890, 4672, 328, 291, 273, 5378, 364, 1517, 316, 365, 18, 1576, 18, 2372, 13332, 309, 562, 12, 1517, 262, 422, 404, 294, 328, 291, 18, 6923, 12, 13798, 63, 20, 5717, 469, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 924, 12, 2890, 4672, 328, 291, 273, 5378, 364, 1517, 316, 365, 18, 1576, 18, 2372, 13332, 309, 562, 12, 1517, 262, 422, 404, 294, 328, 291, 18, 6923, 12, 13798, 63, 20, 5717, 469, 30...
--num-slides 50 --zero-data exclude_play --cluster-time 10 --cluster-infinity"
--num-slides 50 --zero-data exclude_play "+\ "--cluster-infinity --coinc-stat " +stat_dict["statistic"] + \ " --h1-bittenl-a "+stat_dict["bittenl_a"]+ " --h1-bittenl-b "+stat_dict["bittenl_b"]+\ " --h2-bittenl-a "+stat_dict["bittenl_a"]+ " --h2-bittenl-b "+stat_dict["bittenl_b"]+\ " --l1-bittenl-a "+stat_dict["bittenl...
def symlinksafe( target, linkname ): """ Creates a link, does not nag about when it already exists """ try: os.symlink( target, linkname ) except OSError, (errno, strerror): if errno==17: print "WARNING: link %s already exist" % (linkname) else: raise
6ad3c83b17a791224c0765a4003cd99798d403c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/6ad3c83b17a791224c0765a4003cd99798d403c1/upperlimit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10563, 4626, 12, 1018, 16, 1692, 529, 262, 30, 3536, 10210, 279, 1692, 16, 1552, 486, 290, 346, 2973, 1347, 518, 1818, 1704, 3536, 775, 30, 1140, 18, 21278, 12, 1018, 16, 1692, 529, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10563, 4626, 12, 1018, 16, 1692, 529, 262, 30, 3536, 10210, 279, 1692, 16, 1552, 486, 290, 346, 2973, 1347, 518, 1818, 1704, 3536, 775, 30, 1140, 18, 21278, 12, 1018, 16, 1692, 529, 26...
cont contribute to the TLS analysis.
can't contribute to the TLS analysis.
def calc_include_atom(atm, reject_messages = False): """Filter out atoms from the model which will cause problems or cont contribute to the TLS analysis. """ if atm.position == None: return False if atm.occupancy < 0.1: if reject_messages == True: console.stdoutln("calc_include_atom(%s): rejected because of low occupa...
822a7929bc5735f3faa1c4e7b88608212094b6f4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10674/822a7929bc5735f3faa1c4e7b88608212094b6f4/atom_selection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 6702, 67, 7466, 12, 270, 81, 16, 4925, 67, 6833, 273, 1083, 4672, 3536, 1586, 596, 9006, 628, 326, 938, 1492, 903, 4620, 9688, 578, 848, 1404, 356, 887, 358, 326, 8098, 6285,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 6702, 67, 7466, 12, 270, 81, 16, 4925, 67, 6833, 273, 1083, 4672, 3536, 1586, 596, 9006, 628, 326, 938, 1492, 903, 4620, 9688, 578, 848, 1404, 356, 887, 358, 326, 8098, 6285,...
print "pwd", oneLiner("pwd")[0]
print "pwd", listResults("pwd")[0]
def _addModuleToZip(self, archFile, module): """First, rename *.zip file, and then create a directory, unzip *.zip into that directory, copy module into that directory (Windows only)""" print "\n------------------------------------------------------\nAdding Module to ZIP File" import zipfile, unzip os.chdir(self.curren...
1149f877e38afd883f96dbeacf9254dc26b30779 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/1149f877e38afd883f96dbeacf9254dc26b30779/autoBuild.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 3120, 774, 9141, 12, 2890, 16, 6637, 812, 16, 1605, 4672, 3536, 3759, 16, 6472, 380, 18, 4450, 585, 16, 471, 1508, 752, 279, 1867, 16, 20259, 380, 18, 4450, 1368, 716, 1867,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1289, 3120, 774, 9141, 12, 2890, 16, 6637, 812, 16, 1605, 4672, 3536, 3759, 16, 6472, 380, 18, 4450, 585, 16, 471, 1508, 752, 279, 1867, 16, 20259, 380, 18, 4450, 1368, 716, 1867,...
return "init_failed"
CopyLog(os.path.join(releaseModeDir, logPath), log) if releaseMode == "debug": continue else return "init_failed"
def Start(hardhatScript, workingDir, cvsVintage, buildVersion, clobber, log): # make sure workingDir is absolute, remove it, and create it workingDir = os.path.abspath(workingDir) if not os.path.exists(workingDir): os.mkdir(workingDir) os.chdir(workingDir) # remove outputDir and create it outputDir = os.path.join(wor...
a277706207b9d19f36c30f7be0d8708f3c8acf1e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/a277706207b9d19f36c30f7be0d8708f3c8acf1e/chandler-newbuild.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3603, 12, 20379, 11304, 3651, 16, 5960, 1621, 16, 276, 6904, 58, 474, 410, 16, 1361, 1444, 16, 30152, 16, 613, 4672, 225, 468, 1221, 3071, 5960, 1621, 353, 4967, 16, 1206, 518, 16, 471...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3603, 12, 20379, 11304, 3651, 16, 5960, 1621, 16, 276, 6904, 58, 474, 410, 16, 1361, 1444, 16, 30152, 16, 613, 4672, 225, 468, 1221, 3071, 5960, 1621, 353, 4967, 16, 1206, 518, 16, 471...
log.debug( 'appending parent:\n%s\ncontent:\n%s', parent, content)
log.debug('appending parent:\n%s\ncontent:\n%s', parent, content)
def append(self, parent, content): """ Append the specified L{content} to the I{parent}. @param content: The content to append. @type content: L{Object} """ log.debug( 'appending parent:\n%s\ncontent:\n%s', parent, content) self.start(content) self.__append(parent, content) self.end(content)
d55226fa07194473ea4fb8fba35c4df0849913a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1242/d55226fa07194473ea4fb8fba35c4df0849913a6/marshaller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 12, 2890, 16, 982, 16, 913, 4672, 3536, 6181, 326, 1269, 511, 95, 1745, 97, 358, 326, 467, 95, 2938, 5496, 632, 891, 913, 30, 1021, 913, 358, 714, 18, 632, 723, 913, 30, 511, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 12, 2890, 16, 982, 16, 913, 4672, 3536, 6181, 326, 1269, 511, 95, 1745, 97, 358, 326, 467, 95, 2938, 5496, 632, 891, 913, 30, 1021, 913, 358, 714, 18, 632, 723, 913, 30, 511, ...
byte = decode_byte(data[i+1])
byte = decode_byte(data[i])
def decode_vint(data): byte = decode_byte(data[0]) x = byte & 0x7F i = 1 while byte & 0x80: byte = decode_byte(data[i+1]) x |= (byte & 0x7F) << (i * 7) i = i + 1 # Being a variable length value, it returns a tuple, where the first # item is the decoded value and the second one is the data that remains # to analyze. re...
690ad55d32197ab14b5f590373efeb6c6cfbcf0f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/690ad55d32197ab14b5f590373efeb6c6cfbcf0f/IO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 67, 90, 474, 12, 892, 4672, 1160, 273, 2495, 67, 7229, 12, 892, 63, 20, 5717, 619, 273, 1160, 473, 374, 92, 27, 42, 225, 277, 273, 404, 1323, 1160, 473, 374, 92, 3672, 30, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 67, 90, 474, 12, 892, 4672, 1160, 273, 2495, 67, 7229, 12, 892, 63, 20, 5717, 619, 273, 1160, 473, 374, 92, 27, 42, 225, 277, 273, 404, 1323, 1160, 473, 374, 92, 3672, 30, 11...
from osaf.framework import MasterPassword MasterPassword.beforeBackup(self.itsView)
def exportToChex(self, obfuscate=False, path=os.path.join( Globals.options.profileDir, 'backup.chex')): from osaf.framework import MasterPassword MasterPassword.beforeBackup(self.itsView) prefs = schema.ns('osaf.app', wx.GetApp().UIRepositoryView).prefs def OnCheckBox(event): prefs.backupOnQuit = event.EventObject.Va...
e7bead122cdeda46fbfd7e9fc71b22ee0ddab49c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9228/e7bead122cdeda46fbfd7e9fc71b22ee0ddab49c/Main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 774, 782, 338, 12, 2890, 16, 29004, 340, 33, 8381, 16, 589, 33, 538, 18, 803, 18, 5701, 12, 18901, 1031, 18, 2116, 18, 5040, 1621, 16, 296, 9572, 18, 343, 338, 26112, 30, 15503...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 774, 782, 338, 12, 2890, 16, 29004, 340, 33, 8381, 16, 589, 33, 538, 18, 803, 18, 5701, 12, 18901, 1031, 18, 2116, 18, 5040, 1621, 16, 296, 9572, 18, 343, 338, 26112, 30, 15503...
return res def action_consume(self, cr, uid, ids, quantity, location_id=False, context=None):
return res def action_consume(self, cr, uid, ids, quantity, location_id=False, context=None):
def action_split(self, cr, uid, ids, quantity, split_by_qty=1, prefix=False, with_lot=True, context=None): ''' Split Stock Move lines into production lot which specified split by quantity. @ param cr: the database cursor @ param uid: the user id @ param ids: ids of stock move object to be splited @ param split_by_qty ...
18be8e52469417aa8e0ec02e033c0942d0ad805f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/18be8e52469417aa8e0ec02e033c0942d0ad805f/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 4939, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 10457, 16, 1416, 67, 1637, 67, 85, 4098, 33, 21, 16, 1633, 33, 8381, 16, 598, 67, 23372, 33, 5510, 16, 819, 33, 7036, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 4939, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 10457, 16, 1416, 67, 1637, 67, 85, 4098, 33, 21, 16, 1633, 33, 8381, 16, 598, 67, 23372, 33, 5510, 16, 819, 33, 7036, 46...
try: deps = source.get_deps(meta, pkgname) except: continue for rpkg in deps: if rpkg in pkgnames: redundant.add(rpkg)
if source.is_pkg(meta, current): try: deps = source.get_deps(meta, pkgname) except: continue for rpkg in deps: if rpkg in pkgnames: redundant.add(rpkg)
def make_non_redundant(self, meta, plname=None, plist=None): '''build a non-redundant version of a list of packages
d57ed55d8effce27305e2d5e8fdd99cfe930ac42 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11867/d57ed55d8effce27305e2d5e8fdd99cfe930ac42/Packages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 5836, 67, 1118, 15362, 12, 2890, 16, 2191, 16, 886, 529, 33, 7036, 16, 21074, 33, 7036, 4672, 9163, 3510, 279, 1661, 17, 1118, 15362, 1177, 434, 279, 666, 434, 5907, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 5836, 67, 1118, 15362, 12, 2890, 16, 2191, 16, 886, 529, 33, 7036, 16, 21074, 33, 7036, 4672, 9163, 3510, 279, 1661, 17, 1118, 15362, 1177, 434, 279, 666, 434, 5907, 2, -100,...
assert self.dprint("Adding tab %s" % mode)
before = self.GetPageCount() assert self.dprint("
def addTab(self,mode): assert self.dprint("Adding tab %s" % mode) self.AddPage(mode, mode.getTabName(), bitmap=getIconBitmap(mode.icon)) index=self.GetPageIndex(mode) self.SetSelection(index)
13c3ec8fb9b2bf29e8f1b9d325fd62a2fb2b1ffc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/13c3ec8fb9b2bf29e8f1b9d325fd62a2fb2b1ffc/buffers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 5661, 12, 2890, 16, 3188, 4672, 1865, 273, 365, 18, 967, 1964, 1380, 1435, 1815, 365, 18, 72, 1188, 2932, 365, 18, 986, 1964, 12, 3188, 16, 1965, 18, 588, 5661, 461, 9334, 9389, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5661, 12, 2890, 16, 3188, 4672, 1865, 273, 365, 18, 967, 1964, 1380, 1435, 1815, 365, 18, 72, 1188, 2932, 365, 18, 986, 1964, 12, 3188, 16, 1965, 18, 588, 5661, 461, 9334, 9389, ...
if classParameter is MissingClass: classParameter = sidebar.filterClass if issubclass(classParameter, pim.Stamp): stampClass = classParameter else: stampClass = MissingClass
def onNewItemEvent(self, event): # Create a new Content Item allCollection = schema.ns('osaf.pim', self).allCollection sidebar = Block.findBlockByName("Sidebar") classParameter = event.classParameter
788d4ccb20856dfeaf1ab81182c695f89712b57b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/788d4ccb20856dfeaf1ab81182c695f89712b57b/Main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 1908, 1180, 1133, 12, 2890, 16, 871, 4672, 468, 1788, 279, 394, 3697, 4342, 225, 777, 2532, 273, 1963, 18, 2387, 2668, 538, 1727, 18, 84, 381, 2187, 365, 2934, 454, 2532, 23364, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 1908, 1180, 1133, 12, 2890, 16, 871, 4672, 468, 1788, 279, 394, 3697, 4342, 225, 777, 2532, 273, 1963, 18, 2387, 2668, 538, 1727, 18, 84, 381, 2187, 365, 2934, 454, 2532, 23364, 2...
for dbname in name:
for n in name:
def whats(self, name): """Preforms a fame "whats" command on the provided series""" if type(name) == type(""): name = [name]
e780a121cafdc2b96c39b9165ac8164fb607907a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/e780a121cafdc2b96c39b9165ac8164fb607907a/fame.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 600, 2323, 12, 2890, 16, 508, 4672, 3536, 1386, 9741, 279, 284, 339, 315, 3350, 2323, 6, 1296, 603, 326, 2112, 4166, 8395, 309, 618, 12, 529, 13, 422, 618, 2932, 6, 4672, 508, 273, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 600, 2323, 12, 2890, 16, 508, 4672, 3536, 1386, 9741, 279, 284, 339, 315, 3350, 2323, 6, 1296, 603, 326, 2112, 4166, 8395, 309, 618, 12, 529, 13, 422, 618, 2932, 6, 4672, 508, 273, 3...
def user(self, uri, user):
def user(self, uri):
def user(self, uri, user): box = '<table class="box">\n' if uri.username > '': user = lampadas.users[uri.username] box = box + '<form method=GET action="data/save/user" name="user">\n' else: user = User() box = box + '<form method=GET action="data/save/newuser" name="user">\n' box = box + '<input name="username" type=h...
6efc6f83ba6800b47b358e60fa2060d690e67ccb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1319/6efc6f83ba6800b47b358e60fa2060d690e67ccb/HTML.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 729, 12, 2890, 16, 2003, 4672, 3919, 273, 2368, 2121, 667, 1546, 2147, 6, 5333, 82, 11, 309, 2003, 18, 5053, 405, 875, 30, 729, 273, 328, 931, 361, 345, 18, 5577, 63, 1650, 18, 5053,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 729, 12, 2890, 16, 2003, 4672, 3919, 273, 2368, 2121, 667, 1546, 2147, 6, 5333, 82, 11, 309, 2003, 18, 5053, 405, 875, 30, 729, 273, 328, 931, 361, 345, 18, 5577, 63, 1650, 18, 5053,...
oldfiles = []
def start(self): # we index private dirs first because public overrides private existingFiles = self.runIndexer(isPrivate=True) existingFiles.union(self.runIndexer(isPrivate=False)) indexedFiles = Set(self.serverProxy.getIndexedFiles(self.cnxId)) oldFiles = indexedFiles - existingFiles oldfiles = [] for filename in old...
a6ba7d16ca53c7ee13beee7686e484e6f3860dda /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2259/a6ba7d16ca53c7ee13beee7686e484e6f3860dda/indexer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 468, 732, 770, 3238, 7717, 1122, 2724, 1071, 9515, 3238, 2062, 2697, 273, 365, 18, 2681, 20877, 12, 291, 6014, 33, 5510, 13, 2062, 2697, 18, 18910, 12, 2890, 18, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 468, 732, 770, 3238, 7717, 1122, 2724, 1071, 9515, 3238, 2062, 2697, 273, 365, 18, 2681, 20877, 12, 291, 6014, 33, 5510, 13, 2062, 2697, 18, 18910, 12, 2890, 18, 2...
isize = U32(read32(self.fileobj)) if U32(crc32) != U32(self.crc): raise IOError("CRC check failed %s != %s" % (hex(U32(crc32)), hex(U32(self.crc)))) elif isize != LOWU32(self.size):
isize = read32(self.fileobj) if crc32 != self.crc: raise IOError("CRC check failed %s != %s" % (hex(crc32), hex(self.crc))) elif isize != self.size:
def _read_eof(self): # We've read to the end of the file, so we have to rewind in order # to reread the 8 bytes containing the CRC and the file size. # We check the that the computed CRC and size of the # uncompressed data matches the stored values. Note that the size # stored is the true file size mod 2**32. self.fil...
b89f2d2678f1fca7a4d86c238af02858955efd8e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/b89f2d2678f1fca7a4d86c238af02858955efd8e/gzip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 9339, 12, 2890, 4672, 468, 1660, 8081, 855, 358, 326, 679, 434, 326, 585, 16, 1427, 732, 1240, 358, 12881, 316, 1353, 468, 358, 436, 264, 684, 326, 1725, 1731, 4191, 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, 389, 896, 67, 9339, 12, 2890, 4672, 468, 1660, 8081, 855, 358, 326, 679, 434, 326, 585, 16, 1427, 732, 1240, 358, 12881, 316, 1353, 468, 358, 436, 264, 684, 326, 1725, 1731, 4191, 326,...
exit() rospy.spin() else: rospy.spin()
rospy.signal_shutdown("Quitting") rospy.spin()
def stateCb(self, msg): l_sum_tucked = 0 l_sum_untucked = 0 r_sum_tucked = 0 r_sum_untucked = 0 for name_state, name_desi, value_state, value_l_tucked, value_l_untucked, value_r_tucked, value_r_untucked in zip(msg.joint_names, joint_names, msg.actual.positions , l_arm_tucked, l_arm_untucked, r_arm_tucked, r_arm_untucke...
24ea94a3950f4dbbbedf71c3f6bd5b7996f6c3ff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8822/24ea94a3950f4dbbbedf71c3f6bd5b7996f6c3ff/tuck_arms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 919, 15237, 12, 2890, 16, 1234, 4672, 328, 67, 1364, 67, 88, 9031, 329, 273, 374, 328, 67, 1364, 67, 10032, 9031, 329, 273, 374, 436, 67, 1364, 67, 88, 9031, 329, 273, 374, 436, 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, 919, 15237, 12, 2890, 16, 1234, 4672, 328, 67, 1364, 67, 88, 9031, 329, 273, 374, 328, 67, 1364, 67, 10032, 9031, 329, 273, 374, 436, 67, 1364, 67, 88, 9031, 329, 273, 374, 436, 67, ...
print 'REMOVED FRAME ATOM RELATIVE TO FRAME CENTER:' for neighbor in new.children[0].yield_neighbors(): fragment_neighbor = neighbor break start_vector = new.children[0].references[0].translation_relative_to(new) print start_vector print 'CLICKED ATOM:' for neighbor in gl_object.yield_neighbors(): clicked_neighbor = ne...
Bond = context.application.plugins.get_node("Bond") if len(gl_object.references) == 1 and isinstance(gl_object.references[0].parent, Bond): bond1 = gl_object.references[0].parent direction1 = bond1.shortest_vector_relative_to(parent) if bond1.children[0].target != gl_object: direction1 *= -1 bond2 = new.children[0].re...
def replace(self, gl_object): if not gl_object.get_fixed(): state = gl_object.__getstate__() state.pop("name", None) state.pop("transformation", None) new = self.get_new(gl_object.transformation.t)
94395141aa69ec0eef9fef336029c379b8b0f853 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11052/94395141aa69ec0eef9fef336029c379b8b0f853/sketch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 12, 2890, 16, 5118, 67, 1612, 4672, 309, 486, 5118, 67, 1612, 18, 588, 67, 12429, 13332, 919, 273, 5118, 67, 1612, 16186, 588, 2019, 972, 1435, 919, 18, 5120, 2932, 529, 3113, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 12, 2890, 16, 5118, 67, 1612, 4672, 309, 486, 5118, 67, 1612, 18, 588, 67, 12429, 13332, 919, 273, 5118, 67, 1612, 16186, 588, 2019, 972, 1435, 919, 18, 5120, 2932, 529, 3113, 59...
or Extension == ".sa
or Extension == ".sa"
def Callback(Arg, Directory, Names): if (os.path.basename(Directory).endswith("-symbols")): return for Name in Names: Extension = os.path.splitext(Name)[1].lower() if (Extension == ".pdb"): shutil.move(os.path.join(Directory, Name), SymbolsRoot) elif (Extension == ".m3" or Extension == ".m3web" or Extension == ".sa ): ...
4fd8ffeb7b132f88c809863650fb251cd8654957 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9328/4fd8ffeb7b132f88c809863650fb251cd8654957/make-dist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8444, 12, 4117, 16, 8930, 16, 5276, 4672, 309, 261, 538, 18, 803, 18, 13909, 12, 2853, 2934, 5839, 1918, 2932, 17, 15536, 6, 3719, 30, 327, 364, 1770, 316, 5276, 30, 10021, 273, 1140, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8444, 12, 4117, 16, 8930, 16, 5276, 4672, 309, 261, 538, 18, 803, 18, 13909, 12, 2853, 2934, 5839, 1918, 2932, 17, 15536, 6, 3719, 30, 327, 364, 1770, 316, 5276, 30, 10021, 273, 1140, ...
"""
r""" Plots solution of ODE
def eulers_method_2x2_plot(f,g, t0, x0, y0, h, t1): """ This plots the soln in the rectangle ``(xrange[0],xrange[1]) x (yrange[0],yrange[1])`` and plots using Euler's method the numerical solution of the 1st order ODEs `x' = f(t,x,y)`, `x(a)=x_0`, `y' = g(t,x,y)`, `y(a) = y_0`. *For pedagogical purposes only.* EXAMPL...
9902f1225cf51ac05097f8e749c306b7e620fc70 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/9902f1225cf51ac05097f8e749c306b7e620fc70/desolvers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 425, 332, 414, 67, 2039, 67, 22, 92, 22, 67, 4032, 12, 74, 16, 75, 16, 268, 20, 16, 619, 20, 16, 677, 20, 16, 366, 16, 268, 21, 4672, 436, 8395, 3008, 6968, 6959, 434, 531, 1639,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 425, 332, 414, 67, 2039, 67, 22, 92, 22, 67, 4032, 12, 74, 16, 75, 16, 268, 20, 16, 619, 20, 16, 677, 20, 16, 366, 16, 268, 21, 4672, 436, 8395, 3008, 6968, 6959, 434, 531, 1639,...
mn = self.manifest.add(m1, mf1, tr, linkrev, c1[0], c2[0], (new,remove))
mn = self.manifest.add(m1, mf1, tr, linkrev, c1[0], c2[0], (new, remove))
def commit(self, files = None, text = "", user = None, date = None): commit = [] remove = [] if files: for f in files: s = self.dirstate.state(f) if s in 'nmai': commit.append(f) elif s == 'r': remove.append(f) else: self.ui.warn("%s not tracked!\n" % f) else: (c, a, d, u) = self.changes() commit = c + a remove = d
b74c369a3cda5e3af5f3e7663c06b715452bf139 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/b74c369a3cda5e3af5f3e7663c06b715452bf139/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3294, 12, 2890, 16, 1390, 273, 599, 16, 977, 273, 23453, 729, 273, 599, 16, 1509, 273, 599, 4672, 3294, 273, 5378, 1206, 273, 5378, 309, 1390, 30, 364, 284, 316, 1390, 30, 272, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3294, 12, 2890, 16, 1390, 273, 599, 16, 977, 273, 23453, 729, 273, 599, 16, 1509, 273, 599, 4672, 3294, 273, 5378, 1206, 273, 5378, 309, 1390, 30, 364, 284, 316, 1390, 30, 272, 273, ...
p = p - 1 / len(self.lines)
def randomdrop_independant(self): p = self.p
ce4b91c109c6b0b3731840ed74df9a0dd88d9c2f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7514/ce4b91c109c6b0b3731840ed74df9a0dd88d9c2f/keytest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2744, 7285, 67, 267, 5817, 970, 12, 2890, 4672, 293, 273, 365, 18, 84, 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, 2744, 7285, 67, 267, 5817, 970, 12, 2890, 4672, 293, 273, 365, 18, 84, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
args = self._LoadTestNamesFrom(pyauto_tests_file) args = args * self._options.repeat logging.debug("Loading %d tests from %s", len(args), args) loaded_tests = unittest.defaultTestLoader.loadTestsFromNames(args) return loaded_tests def _LoadTestNamesFrom(self, filename): modules= PyUITest.EvalDataFrom(filename)
args = self._ExpandTestNamesFrom(pyauto_tests_file, self._options.suite) return args def _ExpandTestNamesFrom(self, filename, suite): """Load test names from the given file. Args: filename: the file to read the tests from suite: the name of the suite to load from |filename|. Returns: a list of test names [module.tes...
def _LoadTests(self, args): """Returns a suite of tests loaded from the given args.
acb10270e823c9642805757c0060ee77239a8a17 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/acb10270e823c9642805757c0060ee77239a8a17/pyauto.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2563, 14650, 12, 2890, 16, 833, 4672, 3536, 1356, 279, 11371, 434, 7434, 4203, 628, 326, 864, 833, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2563, 14650, 12, 2890, 16, 833, 4672, 3536, 1356, 279, 11371, 434, 7434, 4203, 628, 326, 864, 833, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
print "msg: ", posMsg
def onTouch(Event): global OSCClient global sendContour global g_TrackSize try: if Event.type == avg.CURSORDOWN: Type = "c" elif Event.type == avg.CURSORUP: Type = "d" elif Event.type == avg.CURSORMOTION: Type = "m" else: print Event.type if Event.source == avg.TOUCH: posMsg = OSC.Message() posMsg.setAddress('/tuio/2...
4470dd5bc83b0e21ebfffc696a802ef7e64b4113 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7300/4470dd5bc83b0e21ebfffc696a802ef7e64b4113/remote.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 10491, 12, 1133, 4672, 2552, 531, 2312, 1227, 2552, 1366, 660, 477, 2552, 314, 67, 4402, 1225, 225, 775, 30, 309, 2587, 18, 723, 422, 11152, 18, 7509, 55, 916, 12711, 30, 1412, 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, 603, 10491, 12, 1133, 4672, 2552, 531, 2312, 1227, 2552, 1366, 660, 477, 2552, 314, 67, 4402, 1225, 225, 775, 30, 309, 2587, 18, 723, 422, 11152, 18, 7509, 55, 916, 12711, 30, 1412, 27...
(?: (?![ ]) (.+?) %s \|
( (?![ ]) (?P<name>.+?) %s \|
def build_table_row(self, rowdata, tableline): row = nodes.row() for cell in rowdata: if cell is None: continue morerows, morecols, offset, cellblock = cell attributes = {} if morerows: attributes['morerows'] = morerows if morecols: attributes['morecols'] = morecols entry = nodes.entry(**attributes) row += entry if ''....
039645ec5706bfe06b64e66663e62db9bc1abf30 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/039645ec5706bfe06b64e66663e62db9bc1abf30/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 2121, 67, 492, 12, 2890, 16, 1027, 892, 16, 3246, 80, 3027, 4672, 1027, 273, 2199, 18, 492, 1435, 364, 2484, 316, 1027, 892, 30, 309, 2484, 353, 599, 30, 1324, 312, 8922, 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, 1361, 67, 2121, 67, 492, 12, 2890, 16, 1027, 892, 16, 3246, 80, 3027, 4672, 1027, 273, 2199, 18, 492, 1435, 364, 2484, 316, 1027, 892, 30, 309, 2484, 353, 599, 30, 1324, 312, 8922, 5...
if (new_worksheet_name == null) return;
if (new_worksheet_name == null || new_worksheet_name == "") return;
def notebook_lib(): s= r"""
269d2fd186e6945e6c720111d55cdd1bc3a9f14c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/269d2fd186e6945e6c720111d55cdd1bc3a9f14c/js.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14718, 67, 2941, 13332, 272, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 14718, 67, 2941, 13332, 272, 33, 436, 8395, 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...
status = True result = "no error information"
def BlockdevAssemble(disk, owner, as_primary): """Activate a block device for an instance. This is a wrapper over _RecursiveAssembleBD. @rtype: str or boolean @return: a C{/dev/...} path for primary nodes, and C{True} for secondary nodes """ status = True result = "no error information" try: result = _RecursiveAssem...
afdc3985644be8d2b91d9f0e37dfda391a30d036 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/afdc3985644be8d2b91d9f0e37dfda391a30d036/backend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3914, 5206, 1463, 10045, 12, 10863, 16, 3410, 16, 487, 67, 8258, 4672, 3536, 21370, 279, 1203, 2346, 364, 392, 791, 18, 225, 1220, 353, 279, 4053, 1879, 389, 10483, 1463, 10045, 18096, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3914, 5206, 1463, 10045, 12, 10863, 16, 3410, 16, 487, 67, 8258, 4672, 3536, 21370, 279, 1203, 2346, 364, 392, 791, 18, 225, 1220, 353, 279, 4053, 1879, 389, 10483, 1463, 10045, 18096, 1...
""" c = [[] for x in range(n)] return Poset(c)
TESTS: Check that sage: Posets.AntichainPoset(0) Finite poset containing 0 elements sage: C = Posets.AntichainPoset(1); C Finite poset containing 1 elements sage: C.cover_relations() [] sage: C = Posets.AntichainPoset(2); C Finite poset containing 2 elements sage: C.cover_relations() [] """ return Poset((range(n), [...
def AntichainPoset(self, n): """ Returns an antichain (a poset with no comparable elements) containing ``n`` elements.
b032b0345bd293a97a5c2d704129f7946f61a4de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/b032b0345bd293a97a5c2d704129f7946f61a4de/poset_examples.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18830, 1354, 530, 1616, 278, 12, 2890, 16, 290, 4672, 3536, 2860, 392, 17841, 1354, 530, 261, 69, 949, 278, 598, 1158, 25949, 2186, 13, 4191, 12176, 82, 10335, 2186, 18, 2, 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, 18830, 1354, 530, 1616, 278, 12, 2890, 16, 290, 4672, 3536, 2860, 392, 17841, 1354, 530, 261, 69, 949, 278, 598, 1158, 25949, 2186, 13, 4191, 12176, 82, 10335, 2186, 18, 2, -100, -100, ...
icon_size = sysconf.get("gtk-icon-size")
try: icon_size = sysconf.get("gtk-icon-size") except AttributeError: icon_size = None
def getPixbuf(name): if name not in _pixbuf: filename = getImagePath(name) if os.path.isfile(filename): icon_size = sysconf.get("gtk-icon-size") if icon_size: pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(filename, icon_size, icon_size) else: pixbuf = gtk.gdk.pixbuf_new_from_file(filename) _pixbuf[name] = pixbuf else: ...
f72f6bf1c9253eb9557eac06e98eaa91e12397cf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8317/f72f6bf1c9253eb9557eac06e98eaa91e12397cf/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1689, 697, 4385, 12, 529, 4672, 309, 508, 486, 316, 389, 14861, 4385, 30, 1544, 273, 10567, 743, 12, 529, 13, 309, 1140, 18, 803, 18, 291, 768, 12, 3459, 4672, 775, 30, 4126, 67, 146...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1689, 697, 4385, 12, 529, 4672, 309, 508, 486, 316, 389, 14861, 4385, 30, 1544, 273, 10567, 743, 12, 529, 13, 309, 1140, 18, 803, 18, 291, 768, 12, 3459, 4672, 775, 30, 4126, 67, 146...
res['name']='________________________________________' res['price_subtotal']='_______________________' res['currency']='_______'
res['name']='_______________________________________________' res['price_subtotal']='____________' res['currency']='____'
def invoice_lines(self,invoice):
4ea53181bba0a9e956c7e008e15a7974ed2f2eaf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/4ea53181bba0a9e956c7e008e15a7974ed2f2eaf/report_account_invoice_layout.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9179, 67, 3548, 12, 2890, 16, 16119, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9179, 67, 3548, 12, 2890, 16, 16119, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
state_lock.release()
def _scheduler(self): """Waits for submissions to the task list, then submits them to the interface.""" while not self._finished: global state_lock state_lock.acquire() next_task = self._task_list.wait_pop() # Wait for a task submission if next_task is not None: next_task._execute_time = time.time() worker = self._inte...
32059522bfc18c2df901624619dc4cbc0f350ef8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8868/32059522bfc18c2df901624619dc4cbc0f350ef8/pymw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 19972, 12, 2890, 4672, 3536, 26153, 364, 22071, 358, 326, 1562, 666, 16, 1508, 720, 22679, 2182, 358, 326, 1560, 12123, 1323, 486, 365, 6315, 13527, 30, 2552, 919, 67, 739, 919, 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, 389, 19972, 12, 2890, 4672, 3536, 26153, 364, 22071, 358, 326, 1562, 666, 16, 1508, 720, 22679, 2182, 358, 326, 1560, 12123, 1323, 486, 365, 6315, 13527, 30, 2552, 919, 67, 739, 919, 67,...
console.stdoutln("NOTE: Skipping Histogram section")
console.stdoutln("NOTE: Skipping Histogram section")
def write_all_files(self): """Writes analysis details of each TLS group. """ title = "Chain %s Partitioned by %d TLS Groups" % (self.chain_id, self.ntls) path = "%s_CHAIN%s_ANALYSIS.html" % (self.struct_id, self.chain_id)
80aaf2a14dfcc5b684aad61f8ca72e81b353162c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10674/80aaf2a14dfcc5b684aad61f8ca72e81b353162c/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 454, 67, 2354, 12, 2890, 4672, 3536, 8368, 6285, 3189, 434, 1517, 8098, 1041, 18, 3536, 2077, 273, 315, 3893, 738, 87, 12598, 329, 635, 738, 72, 8098, 14712, 6, 738, 261, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 454, 67, 2354, 12, 2890, 4672, 3536, 8368, 6285, 3189, 434, 1517, 8098, 1041, 18, 3536, 2077, 273, 315, 3893, 738, 87, 12598, 329, 635, 738, 72, 8098, 14712, 6, 738, 261, 289...
def setmark(self, (id, pos, name)):
def setmark(self, id, pos, name):
def setmark(self, (id, pos, name)): if id <= 0: raise Error, 'marker ID must be > 0' if pos < 0: raise Error, 'marker position must be >= 0' if type(name) != type(''): raise Error, 'marker name must be a string' for i in range(len(self._markers)): if id == self._markers[i][0]: self._markers[i] = id, pos, name return se...
0485f1945fdf9b50deeb5fdd34ce2554f8c00a6a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0485f1945fdf9b50deeb5fdd34ce2554f8c00a6a/aifc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 3355, 12, 2890, 16, 612, 16, 949, 16, 508, 4672, 309, 612, 1648, 374, 30, 1002, 1068, 16, 296, 11145, 1599, 1297, 506, 405, 374, 11, 309, 949, 411, 374, 30, 1002, 1068, 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, 444, 3355, 12, 2890, 16, 612, 16, 949, 16, 508, 4672, 309, 612, 1648, 374, 30, 1002, 1068, 16, 296, 11145, 1599, 1297, 506, 405, 374, 11, 309, 949, 411, 374, 30, 1002, 1068, 16, 296,...
self.tk.call(self._w, 'update')
self.tk.call(self._w, 'update')
def update(self):
86af7ef7e3f4448abc89aa941517a84075d99a38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/86af7ef7e3f4448abc89aa941517a84075d99a38/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
else
else:
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 301) else quickfix.IntField.__init__(self, 301, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 26403, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 26403, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 9...
if chunk.isStrandChunk():
font_scale = int(500.0/glpane.scale) if sys.platform == "darwin": font_scale *= 2 if font_scale<9: font_scale = 9 if font_scale>50: font_scale = 50 if chunk.isStrandChunk():
def drawchunk_realtime(self, glpane, chunk): """ Draws the chunk style that may depend on a current view. These are experimental features, work in progress as of 080319. For the DNA style, draws base orientation indicators and strand labels. 080321 piotr: added better label positioning and """ from utilities.constants ...
fa2693b26ceef2777006115304d0a340bfb6e06a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/fa2693b26ceef2777006115304d0a340bfb6e06a/DnaCylinderChunks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 6551, 67, 7688, 957, 12, 2890, 16, 5118, 29009, 16, 2441, 4672, 3536, 10184, 87, 326, 2441, 2154, 716, 2026, 2447, 603, 279, 783, 1476, 18, 8646, 854, 23070, 4467, 16, 1440, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 6551, 67, 7688, 957, 12, 2890, 16, 5118, 29009, 16, 2441, 4672, 3536, 10184, 87, 326, 2441, 2154, 716, 2026, 2447, 603, 279, 783, 1476, 18, 8646, 854, 23070, 4467, 16, 1440, 316, ...
super_index = model.line_index_to_super (super_index)
yield model
def line_index_to_top (self, line_index):
9f861d2f394f3af1067b299d5e87f62ebb289a8e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12310/9f861d2f394f3af1067b299d5e87f62ebb289a8e/GUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 980, 67, 1615, 67, 869, 67, 3669, 261, 2890, 16, 980, 67, 1615, 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, 980, 67, 1615, 67, 869, 67, 3669, 261, 2890, 16, 980, 67, 1615, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
host, fname = url[8:].split("/", 1)
host, fname = url[9:].split("/", 1)
def map_input_stream(stream, size, url, params): host, fname = url[8:].split("/", 1) if (host == Task.host) != params.islocal: err("Input is at %s but the node is %s " "when locality was forced to be %s" % (host, Task.host, params.islocal)) return cStringIO.StringIO(host), len(host), url
bc037f4cc28906edb98eec5be565a2b5b766772b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/373/bc037f4cc28906edb98eec5be565a2b5b766772b/test_forcesched.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 852, 67, 2630, 67, 3256, 12, 3256, 16, 963, 16, 880, 16, 859, 4672, 1479, 16, 5299, 273, 880, 63, 29, 30, 8009, 4939, 2932, 19, 3113, 404, 13, 309, 261, 2564, 422, 3837, 18, 2564, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 852, 67, 2630, 67, 3256, 12, 3256, 16, 963, 16, 880, 16, 859, 4672, 1479, 16, 5299, 273, 880, 63, 29, 30, 8009, 4939, 2932, 19, 3113, 404, 13, 309, 261, 2564, 422, 3837, 18, 2564, ...
q.system.process.kill(str(proc.pid))
q.system.process.kill(proc.pid)
def kill(self, fromm, jobguid): if self._processManager.hasJob(fromm, jobguid): proc = self._processManager.getProcess(fromm, jobguid) q.system.process.kill(str(proc.pid)) else: q.logger.log("[SCRIPTEXECUTOR] Error: job from '" + fromm + "' with id '" + jobguid + "' does not exist: cannot kill the job", 3)
f3841dfa7a20d4070157ecd88b201be692568f70 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/511/f3841dfa7a20d4070157ecd88b201be692568f70/scriptexecutor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 12, 2890, 16, 628, 81, 16, 1719, 14066, 4672, 309, 365, 6315, 2567, 1318, 18, 5332, 2278, 12, 2080, 81, 16, 1719, 14066, 4672, 5418, 273, 365, 6315, 2567, 1318, 18, 588, 2227, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 12, 2890, 16, 628, 81, 16, 1719, 14066, 4672, 309, 365, 6315, 2567, 1318, 18, 5332, 2278, 12, 2080, 81, 16, 1719, 14066, 4672, 5418, 273, 365, 6315, 2567, 1318, 18, 588, 2227, 12...
if cursor.rowcount >= 1:
if cursor.rowcount:
def _login(self, sql): # Client login client = self.user.createClient() self.assert_(connectClient(client))
344d5297257c861d594400e7a0c3062909da18e0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10929/344d5297257c861d594400e7a0c3062909da18e0/test_mysql.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5819, 12, 2890, 16, 1847, 4672, 468, 2445, 3925, 1004, 273, 365, 18, 1355, 18, 2640, 1227, 1435, 365, 18, 11231, 67, 12, 3612, 1227, 12, 2625, 3719, 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, 389, 5819, 12, 2890, 16, 1847, 4672, 468, 2445, 3925, 1004, 273, 365, 18, 1355, 18, 2640, 1227, 1435, 365, 18, 11231, 67, 12, 3612, 1227, 12, 2625, 3719, 2, -100, -100, -100, -100, -10...
e = 'Function', func, 'too complicated:' err(e + (a_type, a_mode, a_factor, a_sub))
err('Function', func, 'too complicated:', a_type, a_mode, a_factor, a_sub)
def generate(type, func, database): # # Check that we can handle this case: # no variable size reply arrays yet # n_in_args = 0 n_out_args = 0 # for a_type, a_mode, a_factor, a_sub in database: if a_mode == 's': n_in_args = n_in_args + 1 elif a_mode == 'r': n_out_args = n_out_args + 1 else: # Can't happen raise arg_err...
b3cd624d37722ab10e96a171eaab52d3f3f536bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b3cd624d37722ab10e96a171eaab52d3f3f536bb/cgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 723, 16, 1326, 16, 2063, 4672, 468, 468, 2073, 716, 732, 848, 1640, 333, 648, 30, 468, 1158, 2190, 963, 4332, 5352, 4671, 468, 290, 67, 267, 67, 1968, 273, 374, 290, 67, 65...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 723, 16, 1326, 16, 2063, 4672, 468, 468, 2073, 716, 732, 848, 1640, 333, 648, 30, 468, 1158, 2190, 963, 4332, 5352, 4671, 468, 290, 67, 267, 67, 1968, 273, 374, 290, 67, 65...
option_parser.add_option('-s', '--skip_rebuild_archive', action='store_true', default=False, help='Skip re-building Chrome.7z archive if it exists.')
option_parser.add_option('-s', '--skip_rebuild_archive', default="False", help='Skip re-building Chrome.7z archive if it exists.')
def main(options): """Main method that reads input file, creates archive file and write resource input file. """ print options print os.environ current_version = BuildVersion(options.output_dir) config = Readconfig(options.output_dir, options.input_file, current_version) staging_dir = MakeStagingDirectory(options.out...
af0db7def48af6eaa85a1a068fd723a4bd29e9f2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5060/af0db7def48af6eaa85a1a068fd723a4bd29e9f2/create_installer_archive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 4672, 3536, 6376, 707, 716, 6838, 810, 585, 16, 3414, 5052, 585, 471, 1045, 1058, 810, 585, 18, 3536, 1172, 702, 1172, 1140, 18, 28684, 783, 67, 1589, 273, 3998, 1444, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2116, 4672, 3536, 6376, 707, 716, 6838, 810, 585, 16, 3414, 5052, 585, 471, 1045, 1058, 810, 585, 18, 3536, 1172, 702, 1172, 1140, 18, 28684, 783, 67, 1589, 273, 3998, 1444, ...
raise
def initialize(self, session, direction): try: self.session = session settings = SIPSimpleSettings() outgoing = direction == 'outgoing' if (outgoing and self.account.nat_traversal.use_msrp_relay_for_outbound) or (not outgoing and self.account.nat_traversal.use_msrp_relay_for_inbound): if self.account.nat_traversal.msrp...
7426ae2cdbd3e4d6acdb27a63d2d82db1b095660 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/7426ae2cdbd3e4d6acdb27a63d2d82db1b095660/msrpstream.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 16, 1339, 16, 4068, 4672, 775, 30, 365, 18, 3184, 273, 1339, 1947, 273, 348, 2579, 5784, 2628, 1435, 12902, 273, 4068, 422, 296, 31891, 11, 309, 261, 31891, 471, 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, 4046, 12, 2890, 16, 1339, 16, 4068, 4672, 775, 30, 365, 18, 3184, 273, 1339, 1947, 273, 348, 2579, 5784, 2628, 1435, 12902, 273, 4068, 422, 296, 31891, 11, 309, 261, 31891, 471, 365, 1...
try: fp = open(tempname, 'wb') except IOError, msg: print "Can't create %s: %s" % (tempname, str(msg)) continue if verbose: print 'Retrieving %s from %s as %s...' % \ (filename, pwd, fullname) if verbose: fp1 = LoggingFile(fp, 1024, sys.stdout)
if mode[0] == 'l': if verbose: print "Creating symlink %s -> %s" % ( `filename`, `linkto`) try: os.symlink(linkto, tempname) except IOError, msg: print "Can't create %s: %s" % ( `tempname`, str(msg)) continue
def mirrorsubdir(f, localdir): pwd = f.pwd() if localdir and not os.path.isdir(localdir): if verbose: print 'Creating local directory', localdir try: makedir(localdir) except os.error, msg: print "Failed to establish local directory", localdir return infofilename = os.path.join(localdir, '.mirrorinfo') try: text = open...
b295df44a3cc9054e9b2a0ec48ba4f9c34fd0b88 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b295df44a3cc9054e9b2a0ec48ba4f9c34fd0b88/ftpmirror.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 27026, 373, 1214, 12, 74, 16, 1191, 1214, 4672, 14720, 273, 284, 18, 27487, 1435, 309, 1191, 1214, 471, 486, 1140, 18, 803, 18, 291, 1214, 12, 3729, 1214, 4672, 309, 3988, 30, 117...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 27026, 373, 1214, 12, 74, 16, 1191, 1214, 4672, 14720, 273, 284, 18, 27487, 1435, 309, 1191, 1214, 471, 486, 1140, 18, 803, 18, 291, 1214, 12, 3729, 1214, 4672, 309, 3988, 30, 117...
A subgraph of ``self`` corresponding to a (directed if ``self`` is directed) longest path. If ``weighted == True``, a pair ``weight, path`` is returned.
A subgraph of ``self`` corresponding to a (directed if ``self`` is directed) longest path. If ``weighted == True``, a pair ``weight, path`` is returned.
def longest_path(self, s=None, t=None, weighted=False, algorithm="MILP", solver=None, verbose=0): r""" Returns a longest path of ``self``.
2844860c71e96d19faf73b53215f4ac4a13b1f2b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/2844860c71e96d19faf73b53215f4ac4a13b1f2b/generic_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12163, 67, 803, 12, 2890, 16, 272, 33, 7036, 16, 268, 33, 7036, 16, 13747, 33, 8381, 16, 4886, 1546, 49, 2627, 52, 3113, 12776, 33, 7036, 16, 3988, 33, 20, 4672, 436, 8395, 2860, 279...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12163, 67, 803, 12, 2890, 16, 272, 33, 7036, 16, 268, 33, 7036, 16, 13747, 33, 8381, 16, 4886, 1546, 49, 2627, 52, 3113, 12776, 33, 7036, 16, 3988, 33, 20, 4672, 436, 8395, 2860, 279...
def __init__(self, player_ui, navigator, title="ASPY Player"): self.player_ui = player_ui
def __init__(self, quit_handler, navigator, title="ASPY Player"): self.quit_handler = quit_handler
def __init__(self, player_ui, navigator, title="ASPY Player"): self.player_ui = player_ui self.navigator = navigator self.title = unicode(title) self.body = None self.menu = [] self.as_presenter = None appuifw.app.screen = "normal"
43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5169/43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd/aspyplayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 9706, 67, 4176, 16, 19796, 16, 2077, 1546, 3033, 16235, 19185, 6, 4672, 365, 18, 27176, 67, 4176, 273, 9706, 67, 4176, 365, 18, 82, 13061, 273, 19796, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9706, 67, 4176, 16, 19796, 16, 2077, 1546, 3033, 16235, 19185, 6, 4672, 365, 18, 27176, 67, 4176, 273, 9706, 67, 4176, 365, 18, 82, 13061, 273, 19796, 36...
def __repr__(self):
def _repr_(self):
def __repr__(self): """ TESTS::
37d130246c10e7b0112af26e2825fcf33c637b30 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/37d130246c10e7b0112af26e2825fcf33c637b30/tableau.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12715, 67, 12, 2890, 4672, 3536, 22130, 55, 2866, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12715, 67, 12, 2890, 4672, 3536, 22130, 55, 2866, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if not username and not password:
if not username or not password:
def __init__(self, madcow=None): try: username = madcow.config.delicious.username password = madcow.config.delicious.password except: username = '' password = '' if not username and not password: self.enabled = False return self.delicious = Delicious(username, password)
e1e0c5af007d9f723119a5dd33c7873fca6205fe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10942/e1e0c5af007d9f723119a5dd33c7873fca6205fe/delicious.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 312, 361, 71, 543, 33, 7036, 4672, 775, 30, 2718, 273, 312, 361, 71, 543, 18, 1425, 18, 3771, 28728, 18, 5053, 2201, 273, 312, 361, 71, 543, 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, 1001, 2738, 972, 12, 2890, 16, 312, 361, 71, 543, 33, 7036, 4672, 775, 30, 2718, 273, 312, 361, 71, 543, 18, 1425, 18, 3771, 28728, 18, 5053, 2201, 273, 312, 361, 71, 543, 18, 1425, ...
error = conn.pop_channel_error (); return False;
error = conn.pop_channel_error () return False
def test_04 (): # call to initialize a context ctx = vortex.Ctx (); # call to init ctx if not ctx.init (): error ("Failed to init Vortex context"); return False; # call to create a connection conn = vortex.Connection (ctx, host, port); # check connection status after if if not conn.is_ok (): error ("Expected to find...
44bc361f3b497230e1d601079e2df89085d4b1cd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1306/44bc361f3b497230e1d601079e2df89085d4b1cd/vortex-regression-client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3028, 1832, 30, 468, 745, 358, 4046, 279, 819, 1103, 273, 331, 20873, 18, 6442, 261, 1769, 225, 468, 745, 358, 1208, 1103, 309, 486, 1103, 18, 2738, 1832, 30, 555, 7566, 2925...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3028, 1832, 30, 468, 745, 358, 4046, 279, 819, 1103, 273, 331, 20873, 18, 6442, 261, 1769, 225, 468, 745, 358, 1208, 1103, 309, 486, 1103, 18, 2738, 1832, 30, 555, 7566, 2925...
TixWidget.__init__(self, master, 'tixControl', ['options'], cnf, kw) self.subwidget_list['incr'] = _dummyButton(self, 'incr') self.subwidget_list['decr'] = _dummyButton(self, 'decr') self.subwidget_list['label'] = _dummyLabel(self, 'label') self.subwidget_list['entry'] = _dummyEntry(self, 'entry')
TixWidget.__init__(self, master, 'tixControl', ['options'], cnf, kw) self.subwidget_list['incr'] = _dummyButton(self, 'incr') self.subwidget_list['decr'] = _dummyButton(self, 'decr') self.subwidget_list['label'] = _dummyLabel(self, 'label') self.subwidget_list['entry'] = _dummyEntry(self, 'entry')
def __init__ (self, master=None, cnf={}, **kw):
86af7ef7e3f4448abc89aa941517a84075d99a38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/86af7ef7e3f4448abc89aa941517a84075d99a38/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 4171, 33, 7036, 16, 23118, 28793, 2826, 9987, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 4171, 33, 7036, 16, 23118, 28793, 2826, 9987, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
nullptr = ctypes.py_object() ctypes.pythonapi.PyThreadState_SetAsyncExc(tid, nullptr)
null_ptr = ctypes.py_object() ctypes.pythonapi.PyThreadState_SetAsyncExc(long_tid, null_ptr)
def _raise_exception_in_thread(tid, exctype): """ Raises an exception in the threads with id tid. """ if not inspect.isclass(exctype): raise TypeError('Only types can be raised (not instances)') # NOTE this returns the number of threads that it modified, which should # only be 1 or 0 (if the thread id wasn't found) exc...
848318d570fb2ae180c415d178999a9a3a724172 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/848318d570fb2ae180c415d178999a9a3a724172/thread.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11628, 67, 4064, 67, 267, 67, 5930, 12, 18081, 16, 431, 12387, 4672, 3536, 20497, 392, 1520, 316, 326, 7403, 598, 612, 11594, 18, 3536, 309, 486, 5334, 18, 291, 1106, 12, 338, 123...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11628, 67, 4064, 67, 267, 67, 5930, 12, 18081, 16, 431, 12387, 4672, 3536, 20497, 392, 1520, 316, 326, 7403, 598, 612, 11594, 18, 3536, 309, 486, 5334, 18, 291, 1106, 12, 338, 123...
(inner_r, min_z),
(inner_r, min_z),
def make_extrusion_with_fine_core(rz, inner_r, max_volume_inner=1e-4, max_volume_outer=5e-2, radial_subdiv=20): min_z = min(rz_pt[1] for rz_pt in rz) max_z = max(rz_pt[1] for rz_pt in rz) from meshpy.tet import MeshInfo, build from meshpy.geometry import generate_surface_of_revolution MINUS_Z_MARKER = 1 PLUS_Z_MARKE...
592adeeb615eb5497b4dae9329f92c603720e638 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12869/592adeeb615eb5497b4dae9329f92c603720e638/geometry.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 14523, 7063, 67, 1918, 67, 74, 558, 67, 3644, 12, 86, 94, 16, 3443, 67, 86, 16, 943, 67, 9491, 67, 7872, 33, 21, 73, 17, 24, 16, 943, 67, 9491, 67, 14068, 33, 25, 73, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 14523, 7063, 67, 1918, 67, 74, 558, 67, 3644, 12, 86, 94, 16, 3443, 67, 86, 16, 943, 67, 9491, 67, 7872, 33, 21, 73, 17, 24, 16, 943, 67, 9491, 67, 14068, 33, 25, 73, ...
def UpdateStatus(self, message, count=None, total=None, error=False):
def UpdateStatus(self, message, count=None, total=None, error=False, debug=False):
def UpdateStatus(self, message, count=None, total=None, error=False): """Update the status message at the bottom of the window.""" if error: return self.displayError(message, error) if total: state = '%s [%s/%s]' % (message, count, total) elif count: state = '%s%s' % (message, '.' * count) else: state = message
aa48c61714cf27501fd7491644adc99966db0168 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4170/aa48c61714cf27501fd7491644adc99966db0168/controller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2315, 1482, 12, 2890, 16, 883, 16, 1056, 33, 7036, 16, 2078, 33, 7036, 16, 555, 33, 8381, 16, 1198, 33, 8381, 4672, 3536, 1891, 326, 1267, 883, 622, 326, 5469, 434, 326, 2742, 12123, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2315, 1482, 12, 2890, 16, 883, 16, 1056, 33, 7036, 16, 2078, 33, 7036, 16, 555, 33, 8381, 16, 1198, 33, 8381, 4672, 3536, 1891, 326, 1267, 883, 622, 326, 5469, 434, 326, 2742, 12123, ...
result = _Wait.wait(d, timeout)
result = _wait(d, timeout)
def deferredError(d, timeout=None): """ Waits for deferred to fail, and it returns the Failure. If the deferred succeeds, raises FailTest. """ result = _Wait.wait(d, timeout) if isinstance(result, failure.Failure): return result else: from twisted.trial import unittest raise unittest.FailTest, "Deferred did not fail: ...
2bc6cc19533bf27c3579c33806a5fb1126b9b71a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/2bc6cc19533bf27c3579c33806a5fb1126b9b71a/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7045, 668, 12, 72, 16, 2021, 33, 7036, 4672, 3536, 678, 12351, 364, 7045, 358, 2321, 16, 471, 518, 1135, 326, 13436, 18, 225, 971, 326, 7045, 21933, 16, 14183, 8911, 4709, 18, 3536, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7045, 668, 12, 72, 16, 2021, 33, 7036, 4672, 3536, 678, 12351, 364, 7045, 358, 2321, 16, 471, 518, 1135, 326, 13436, 18, 225, 971, 326, 7045, 21933, 16, 14183, 8911, 4709, 18, 3536, 56...
print title
def search_request_to_server(request, type): try: items_per_page = int(request.GET['items_per_page']) except KeyError: items_per_page = 20 try: page = int(request.GET['page']) start_index = items_per_page * page except KeyError: page = 1 start_index = 0 next = page + 1 q = Q() try: # search in title, author.name, alia...
4141d24da2a3f0c8cabe06ef50b7f916cfbd65fa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4508/4141d24da2a3f0c8cabe06ef50b7f916cfbd65fa/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 2293, 67, 869, 67, 3567, 12, 2293, 16, 618, 4672, 775, 30, 1516, 67, 457, 67, 2433, 273, 509, 12, 2293, 18, 3264, 3292, 3319, 67, 457, 67, 2433, 19486, 1335, 4999, 30, 1516...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 2293, 67, 869, 67, 3567, 12, 2293, 16, 618, 4672, 775, 30, 1516, 67, 457, 67, 2433, 273, 509, 12, 2293, 18, 3264, 3292, 3319, 67, 457, 67, 2433, 19486, 1335, 4999, 30, 1516...
return line3d([(self.xmin, self.ymin, 0), (self.xmax, self.ymax, 0)], arrow_head=True, **options)
return line3d([(self.xtail, self.ytail, 0), (self.xhead, self.yhead, 0)], arrow_head=True, **options)
def plot3d(self, **kwds): """ EXAMPLE: sage: arrow((0,0),(1,1)).plot3d() """ from sage.plot.plot3d.shapes2 import line3d options = self._plot3d_options() options.update(kwds) return line3d([(self.xmin, self.ymin, 0), (self.xmax, self.ymax, 0)], arrow_head=True, **options)
6942445bd66f38e595fafb79a120a8709a142bb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/6942445bd66f38e595fafb79a120a8709a142bb9/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 23, 72, 12, 2890, 16, 2826, 25577, 4672, 3536, 5675, 21373, 30, 272, 410, 30, 12274, 12443, 20, 16, 20, 3631, 12, 21, 16, 21, 13, 2934, 4032, 23, 72, 1435, 3536, 628, 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, 3207, 23, 72, 12, 2890, 16, 2826, 25577, 4672, 3536, 5675, 21373, 30, 272, 410, 30, 12274, 12443, 20, 16, 20, 3631, 12, 21, 16, 21, 13, 2934, 4032, 23, 72, 1435, 3536, 628, 272, 410,...
tcmapiternext2 = cfunc('tcmapiternext2', libtc, tc_char_p,
tcmapiternext2 = cfunc('tcmapiternext2', libtc, c_char_p,
def __del__(self): if self and libtc: libtc.tcmapdel(self)
3912d0245434cfb5fdf388a16e298477a2eb4660 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4926/3912d0245434cfb5fdf388a16e298477a2eb4660/tc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 972, 12, 2890, 4672, 309, 365, 471, 2561, 5111, 30, 2561, 5111, 18, 5111, 1458, 3771, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 972, 12, 2890, 4672, 309, 365, 471, 2561, 5111, 30, 2561, 5111, 18, 5111, 1458, 3771, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
def fl_create_slider(type, x, y, w, h, label): """ fl_create_slider(type, x, y, w, h, label) -> object """ retval = _fl_create_slider(type, x, y, w, h, label)
def fl_create_slider(slider_type, x, y, w, h, label): """ fl_create_slider(slider_type, x, y, w, h, label) -> pObject """ retval = _fl_create_slider(slider_type, x, y, w, h, label)
def fl_create_slider(type, x, y, w, h, label): """ fl_create_slider(type, x, y, w, h, label) -> object """ retval = _fl_create_slider(type, x, y, w, h, label) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 2640, 67, 28372, 12, 28372, 67, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 4672, 3536, 1183, 67, 2640, 67, 28372, 12, 28372, 67, 723, 16, 619, 16, 677, 16, 341, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 2640, 67, 28372, 12, 28372, 67, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 4672, 3536, 1183, 67, 2640, 67, 28372, 12, 28372, 67, 723, 16, 619, 16, 677, 16, 341, 1...
assert len(rows) is 1 if rows[0][0] is (count-1):
assert len(rows) == 1 curcount = int(rows[0][0]) + 1 if curcount == count: print >>open("/tmp/foo1","a"), "ok to del",concretename
def updateDeleteTracker(self, inputlist): """inputlist is a list of tuples of (concretename, usagecount) where usagecount is the number of times this file is consumed during the dataflow """ fetch = "SELECT count FROM useList WHERE concretename=?;" deleteList = [] updateList = [] setList = [] for (concretename, count) ...
1e0be2acc6c3f85f8c7a1ffdb5cf2ec47e391385 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5203/1e0be2acc6c3f85f8c7a1ffdb5cf2ec47e391385/ssdap_dbutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 2613, 8135, 12, 2890, 16, 810, 1098, 4672, 3536, 2630, 1098, 353, 279, 666, 434, 10384, 434, 261, 11504, 1349, 1069, 16, 4084, 1883, 13, 1625, 4084, 1883, 353, 326, 1300, 434, 4124...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 2613, 8135, 12, 2890, 16, 810, 1098, 4672, 3536, 2630, 1098, 353, 279, 666, 434, 10384, 434, 261, 11504, 1349, 1069, 16, 4084, 1883, 13, 1625, 4084, 1883, 353, 326, 1300, 434, 4124...
if (self.pinned and len(self.windows)==1):
if len(self.windows)==1:
def add_window(self,window): if window in self.windows: return wb = WindowButton(window) self.windows[window] = wb self.winlist.pack_start(wb.window_button, False) if window.is_minimized(): self.minimized_windows_count += 1 if (self.pinned and len(self.windows)==1): if self.name is None: self.update_name() self.icon_fa...
93c078d332da19d553e661cd0f8a1588d612ace1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7075/93c078d332da19d553e661cd0f8a1588d612ace1/groupbutton.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 5668, 12, 2890, 16, 5668, 4672, 309, 2742, 316, 365, 18, 13226, 30, 327, 17298, 273, 6076, 3616, 12, 5668, 13, 365, 18, 13226, 63, 5668, 65, 273, 17298, 365, 18, 8082, 1098, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5668, 12, 2890, 16, 5668, 4672, 309, 2742, 316, 365, 18, 13226, 30, 327, 17298, 273, 6076, 3616, 12, 5668, 13, 365, 18, 13226, 63, 5668, 65, 273, 17298, 365, 18, 8082, 1098, ...
opts, argv = getopt.getopt(sys.argv[1:], "c:h?", ["config=", "help"])
opts, argv = getopt.getopt(sys.argv[1:], "c:hv?", ["config=", "help", "verbose"])
def __init__(self):
b83dcaf16606d099acccb827ad95627a55d9c805 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/119/b83dcaf16606d099acccb827ad95627a55d9c805/debug-roas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
gobject.idle_add(self.update_display_idle_event,self.displayed_data[0][:])
gobject.idle_add(self.update_display_idle_event,self.displayed_data[0][:],priority=gobject.PRIORITY_DEFAULT_IDLE)
def datastructures_listener(self, event): """ do fast work selecting important events """ if event.origin is not self.displayed_data[1]: return self.update_counter+=1 gobject.idle_add(self.update_display_idle_event,self.displayed_data[0][:])
8cfb945bcbab96bfc7671d387f337fc762028162 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2646/8cfb945bcbab96bfc7671d387f337fc762028162/DamarisGUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5386, 8813, 1823, 67, 12757, 12, 2890, 16, 871, 4672, 3536, 741, 4797, 1440, 24674, 10802, 2641, 3536, 309, 871, 18, 10012, 353, 486, 365, 18, 5417, 329, 67, 892, 63, 21, 14542, 327, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5386, 8813, 1823, 67, 12757, 12, 2890, 16, 871, 4672, 3536, 741, 4797, 1440, 24674, 10802, 2641, 3536, 309, 871, 18, 10012, 353, 486, 365, 18, 5417, 329, 67, 892, 63, 21, 14542, 327, 3...
mock = PyPycLoaderMock({name: 'path/to/mod'})
mock = PyPycLoaderMock({name: os.path.join('path', 'to', 'mod')})
def test_bytecode_path_ImportError(self): # An ImportError from bytecode_path should trigger an ImportError. name = 'mod' mock = PyPycLoaderMock({name: 'path/to/mod'}) bad_meth = types.MethodType(raise_ImportError, mock) mock.bytecode_path = bad_meth with util.uncache(name): self.assertRaises(ImportError, mock.load_mod...
1f5dd752f4d6cb8dff4cf083a6e7c9587747a2d7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/1f5dd752f4d6cb8dff4cf083a6e7c9587747a2d7/test_abc_loader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1637, 16651, 67, 803, 67, 5010, 668, 12, 2890, 4672, 468, 1922, 11308, 628, 22801, 67, 803, 1410, 3080, 392, 11308, 18, 508, 273, 296, 1711, 11, 5416, 273, 4707, 9413, 71, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1637, 16651, 67, 803, 67, 5010, 668, 12, 2890, 4672, 468, 1922, 11308, 628, 22801, 67, 803, 1410, 3080, 392, 11308, 18, 508, 273, 296, 1711, 11, 5416, 273, 4707, 9413, 71, 28...
Traceback (most recent call last): ... ArithmeticError: a cannot be raised to the negative power m
1/8
def generic_power(a, m, one=1): """ The m-th power of a, where m is a non-negative integer and a is a Python object on which multiplication is defined. The exponentiation is done using the standard binary powering algorithm. EXAMPLES: sage: generic_power(2,5) 32 sage: generic_power(RealField()('2.5'),4) 39.0625000000...
3c7118e47b971d1d2da392d244a7a99ec20ee4b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/3c7118e47b971d1d2da392d244a7a99ec20ee4b1/arith.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5210, 67, 12238, 12, 69, 16, 312, 16, 1245, 33, 21, 4672, 3536, 1021, 312, 17, 451, 7212, 434, 279, 16, 1625, 312, 353, 279, 1661, 17, 13258, 3571, 471, 279, 353, 279, 6600, 733, 603...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5210, 67, 12238, 12, 69, 16, 312, 16, 1245, 33, 21, 4672, 3536, 1021, 312, 17, 451, 7212, 434, 279, 16, 1625, 312, 353, 279, 1661, 17, 13258, 3571, 471, 279, 353, 279, 6600, 733, 603...
Format SAGE documentation for viewing with IPython.
Format Sage documentation ``s`` for viewing with IPython. This calls ``detex`` on ``s`` to convert LaTeX commands to plain text, and if ``s`` contains a string of the form "<<<obj>>>", then it replaces it with the docstring for "obj". INPUT: ``s`` - string OUTPUT: string EXAMPLES:: sage: from sage.misc.sagedoc imp...
def format(s): """ Format SAGE documentation for viewing with IPython. """ if not isinstance(s, str): raise TypeError, "s must be a string" # parse directives at beginning of docstring # currently, only 'nodetex' is supported # eventually, 'nodoctest' might be supported first_newline = s.find('\n') if first_newline > ...
86690287bdd90597f2ca529e792048095ab48b5c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/86690287bdd90597f2ca529e792048095ab48b5c/sagedoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 12, 87, 4672, 3536, 4077, 348, 410, 7323, 12176, 87, 10335, 364, 1476, 310, 598, 26085, 18, 225, 1220, 4097, 12176, 8238, 338, 10335, 603, 12176, 87, 10335, 358, 1765, 21072, 21575, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 12, 87, 4672, 3536, 4077, 348, 410, 7323, 12176, 87, 10335, 364, 1476, 310, 598, 26085, 18, 225, 1220, 4097, 12176, 8238, 338, 10335, 603, 12176, 87, 10335, 358, 1765, 21072, 21575, ...
stat = os.stat_result((0, 0, 0, 0, 0, 0, 0, 0, then, 0))
listing = ls.lsLine( 'foo', os.stat_result((0, 0, 0, 0, 0, 0, 0, 0, then, 0)))
def test_oldSingleDigitDayOfMonth(self): """ A file with a high-resolution timestamp which falls on a day of the month which can be represented by one decimal digit is formatted with one padding 0 to preserve the columns which come after it. """ # A point about 7 months in the past, tweaked to fall on the first of a # ...
0dd8e714974bc19faedb2b523952ac2e5dc85cd2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12595/0dd8e714974bc19faedb2b523952ac2e5dc85cd2/test_cftp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1673, 5281, 10907, 4245, 14941, 12, 2890, 4672, 3536, 432, 585, 598, 279, 3551, 17, 19182, 2858, 1492, 21714, 603, 279, 2548, 434, 326, 3138, 1492, 848, 506, 10584, 635, 1245, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1673, 5281, 10907, 4245, 14941, 12, 2890, 4672, 3536, 432, 585, 598, 279, 3551, 17, 19182, 2858, 1492, 21714, 603, 279, 2548, 434, 326, 3138, 1492, 848, 506, 10584, 635, 1245, ...
if os.access(path, os.R_OK):
if os.access(path, os.R_OK) and os.path.isfile(path):
def parse_tag(self, tag, parent_css): try: tagname = tag.name.lower() except AttributeError: if not isinstance(tag, HTMLConverter.IGNORED_TAGS): self.add_text(tag, parent_css, {}) return tag_css, tag_pseudo_css = self.tag_css(tag, parent_css=parent_css) try: # Skip element if its display attribute is set to none if tag...
2e52d6dfe34d581cf37a65a4b03909a18d938c95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/2e52d6dfe34d581cf37a65a4b03909a18d938c95/convert_from.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2692, 12, 2890, 16, 1047, 16, 982, 67, 5212, 4672, 775, 30, 25586, 273, 1047, 18, 529, 18, 8167, 1435, 1335, 6394, 30, 309, 486, 1549, 12, 2692, 16, 3982, 5072, 18, 3047, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2692, 12, 2890, 16, 1047, 16, 982, 67, 5212, 4672, 775, 30, 25586, 273, 1047, 18, 529, 18, 8167, 1435, 1335, 6394, 30, 309, 486, 1549, 12, 2692, 16, 3982, 5072, 18, 3047, 3...