rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
log_filename = ("scp-%s-%s.log" % (self.name, kvm_utils.generate_random_string(4)))
def copy_files_from(self, remote_path, local_path, nic_index=0, timeout=600): """ Transfer files from the guest.
e2977ee903f7ba9df5910096ad0633a51b664b36 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12268/e2977ee903f7ba9df5910096ad0633a51b664b36/kvm_vm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 2354, 67, 2080, 12, 2890, 16, 2632, 67, 803, 16, 1191, 67, 803, 16, 11562, 67, 1615, 33, 20, 16, 2021, 33, 28133, 4672, 3536, 12279, 1390, 628, 326, 13051, 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, 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, 1610, 67, 2354, 67, 2080, 12, 2890, 16, 2632, 67, 803, 16, 1191, 67, 803, 16, 11562, 67, 1615, 33, 20, 16, 2021, 33, 28133, 4672, 3536, 12279, 1390, 628, 326, 13051, 18, 2, -100, -10...
filenames.extend(tlines)
if tlines: filenames = tlines
def OnData(self, x, y, d): # when we are a drag source, we get blocked throughout the # drag, which means that our picked_cobject doesn't get # updated, which means that drops on glyphs don't get handled. # so here we make sure that the correct picked_cobject is # selected right before we actually handle the drop: self...
504f26146a701d7a86cb4abeab22a412290c9db7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4494/504f26146a701d7a86cb4abeab22a412290c9db7/graph_editor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 751, 12, 2890, 16, 619, 16, 677, 16, 302, 4672, 468, 1347, 732, 854, 279, 8823, 1084, 16, 732, 336, 14547, 3059, 659, 326, 468, 8823, 16, 1492, 4696, 716, 3134, 25534, 67, 71, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 751, 12, 2890, 16, 619, 16, 677, 16, 302, 4672, 468, 1347, 732, 854, 279, 8823, 1084, 16, 732, 336, 14547, 3059, 659, 326, 468, 8823, 16, 1492, 4696, 716, 3134, 25534, 67, 71, ...
table:style-name="table-default.cell-C4">
table:style-name="table-default.cell-C2">
def test_table_thead_no_tbody(self): """Test <thead> tag without <tbody>""" html = """<html xmlns="http://www.w3.org/1999/xhtml"> <table> <thead> <tr> <th>Cell1</th> <th>Cell2</th> </tr> </thead> <tr> <td>Cell3</td> <td>Cell4</td> </tr> </table> </html> """ odt = xhtml2odt(html) # remove namespaces odt = re.sub('(xmlns...
3cc3d03720f39c36a6c4059ab97c21fe3ef8f42c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7063/3cc3d03720f39c36a6c4059ab97c21fe3ef8f42c/test_tables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2121, 67, 24604, 67, 2135, 67, 20779, 12, 2890, 4672, 3536, 4709, 411, 24604, 34, 1047, 2887, 411, 20779, 2984, 3660, 1729, 273, 3536, 32, 2620, 12302, 1546, 2505, 2207, 5591, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2121, 67, 24604, 67, 2135, 67, 20779, 12, 2890, 4672, 3536, 4709, 411, 24604, 34, 1047, 2887, 411, 20779, 2984, 3660, 1729, 273, 3536, 32, 2620, 12302, 1546, 2505, 2207, 5591, ...
assy.addmol(mol) mol.moveto(curgrp) mol = None
mol = _addMolecule(mol, assy, curgrp)
def _readmmp(assy, filnam, isInsert = False): """The routine to actually reading a mmp file and save data into data structure """ #bruce 041011: added 'U' to file mode, for universal newline support. l=open(filnam,"rU").readlines() if not isInsert: assy.filename=filnam mol = None ndix={} assy.alist = [] #assy.tree = Gr...
fb6c9c504f671cac1731613196f6f8f4e6c84063 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/fb6c9c504f671cac1731613196f6f8f4e6c84063/fileIO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 81, 1291, 12, 428, 93, 16, 661, 17808, 16, 353, 4600, 273, 1083, 4672, 3536, 1986, 12245, 358, 6013, 6453, 279, 312, 1291, 585, 471, 1923, 501, 1368, 501, 3695, 3536, 468, 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, 389, 896, 81, 1291, 12, 428, 93, 16, 661, 17808, 16, 353, 4600, 273, 1083, 4672, 3536, 1986, 12245, 358, 6013, 6453, 279, 312, 1291, 585, 471, 1923, 501, 1368, 501, 3695, 3536, 468, 28...
pos3 = self.fp.tell()
def close(self): """Close the file, and for mode "w" and "a" write the ending records.""" if self.fp is None: return
1606943723c6c2fa513288a138401c1a8d31c650 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/1606943723c6c2fa513288a138401c1a8d31c650/zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 3536, 4605, 326, 585, 16, 471, 364, 1965, 315, 91, 6, 471, 315, 69, 6, 1045, 326, 11463, 3853, 12123, 309, 365, 18, 7944, 353, 599, 30, 327, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 3536, 4605, 326, 585, 16, 471, 364, 1965, 315, 91, 6, 471, 315, 69, 6, 1045, 326, 11463, 3853, 12123, 309, 365, 18, 7944, 353, 599, 30, 327, 2, -100, -100, -100...
log.debug(cmd)
log.info(cmd)
def execute(cmd, destDir=None, verbose=True): if verbose: log.debug(cmd) if destDir: rc = os.system('cd %s; %s' %(destDir, cmd)) else: rc = os.system(cmd) _handle_rc(rc, cmd)
ebb95a47b84d08505a99f15de6f577d7e037a8fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/ebb95a47b84d08505a99f15de6f577d7e037a8fd/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 4172, 16, 26231, 33, 7036, 16, 3988, 33, 5510, 4672, 309, 3988, 30, 613, 18, 1376, 12, 4172, 13, 309, 26231, 30, 4519, 273, 1140, 18, 4299, 2668, 4315, 738, 87, 31, 738, 87...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 4172, 16, 26231, 33, 7036, 16, 3988, 33, 5510, 4672, 309, 3988, 30, 613, 18, 1376, 12, 4172, 13, 309, 26231, 30, 4519, 273, 1140, 18, 4299, 2668, 4315, 738, 87, 31, 738, 87...
pen = self.loadItemPen(item) item.setPen(pen)
def addSeries(self, name, series, parent=None): """ Creates new controls and curve for an individual series.
14ad4626440885b949068a9ed1513d52a79f0e96 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3979/14ad4626440885b949068a9ed1513d52a79f0e96/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 6485, 12, 2890, 16, 508, 16, 4166, 16, 982, 33, 7036, 4672, 3536, 10210, 394, 11022, 471, 8882, 364, 392, 7327, 4166, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 6485, 12, 2890, 16, 508, 16, 4166, 16, 982, 33, 7036, 4672, 3536, 10210, 394, 11022, 471, 8882, 364, 392, 7327, 4166, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
gLogger.info("ReplicaManager.putAndRegister: Checksum information not provided. Calculating adler32.") checksum = fileAdler(file) gLogger.info("ReplicaManager.putAndRegister: Checksum calculated to be %s." % checksum) res = self.fileCatalogue.exists({lfn:guid})
gLogger.info( "ReplicaManager.putAndRegister: Checksum information not provided. Calculating adler32." ) checksum = fileAdler( file ) gLogger.info( "ReplicaManager.putAndRegister: Checksum calculated to be %s." % checksum ) res = self.fileCatalogue.exists( {lfn:guid} )
def putAndRegister(self,lfn,file,diracSE,guid=None,path=None,checksum=None,catalog=None): """ Put a local file to a Storage Element and register in the File Catalogues
9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 1876, 3996, 12, 2890, 16, 80, 4293, 16, 768, 16, 3211, 8836, 1090, 16, 14066, 33, 7036, 16, 803, 33, 7036, 16, 15149, 33, 7036, 16, 7199, 33, 7036, 4672, 3536, 4399, 279, 1191, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1378, 1876, 3996, 12, 2890, 16, 80, 4293, 16, 768, 16, 3211, 8836, 1090, 16, 14066, 33, 7036, 16, 803, 33, 7036, 16, 15149, 33, 7036, 16, 7199, 33, 7036, 4672, 3536, 4399, 279, 1191, ...
store.add((URIRef(uri), RDF['type'], SIOC['Post']))
store.add((URIRef(uri), RDF.type, SIOC['Post']))
def __toRDF(self): """ Dump mailing list into a RDF file """
fc657599e6e8dc5f41369b49f4acca66ed2532f8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5712/fc657599e6e8dc5f41369b49f4acca66ed2532f8/mailinglist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 869, 30137, 12, 2890, 4672, 3536, 18242, 4791, 310, 666, 1368, 279, 13539, 585, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 1001, 869, 30137, 12, 2890, 4672, 3536, 18242, 4791, 310, 666, 1368, 279, 13539, 585, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
tls_calcs.phenix_prep(pdbin, tlsins, phenixout)
tls_calcs.phenix_prep(pdbin, tlsins, phenixout)
def Refmac5RefinementPrep(webtlsmdd, job_id, chain_ntls): """Called with a list of tuples (chain_id, ntls). Generates PDB and TLSIN files for refinement with REFMAC5. Returns a single string if there is an error, otherwise a dictionary of results is returned. """ struct_id = webtlsmdd.job_get_structure_id(job_id) analy...
0049fea0a8babe00b08f3932abf09fa0bc010db6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10674/0049fea0a8babe00b08f3932abf09fa0bc010db6/webtlsmdd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3941, 5821, 25, 426, 926, 820, 15543, 12, 4875, 17116, 81, 449, 16, 1719, 67, 350, 16, 2687, 67, 496, 3251, 4672, 3536, 8185, 598, 279, 666, 434, 10384, 261, 5639, 67, 350, 16, 9513, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3941, 5821, 25, 426, 926, 820, 15543, 12, 4875, 17116, 81, 449, 16, 1719, 67, 350, 16, 2687, 67, 496, 3251, 4672, 3536, 8185, 598, 279, 666, 434, 10384, 261, 5639, 67, 350, 16, 9513, ...
hlr_utils.result_insert(result,res_descr,so2,None,"all")
hlr_utils.result_insert(result, res_descr, so2, None, "all")
def create_E_vs_Q(obj,E,k,px_separate=True,*args,**kwargs): """ This functions takes a SOM with a wavelength axis, energy and wavevector tuples and turns the SOs contained in the SOM to 2D SOs with E and Q axes. Parameters: ---------- -> obj is the input SOM -> E (E_f for IGS) is an energy tuple (value, err2) -> k (k_...
cf46b3f0500e4ffd75f0e930b33e4c4cb1695688 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/cf46b3f0500e4ffd75f0e930b33e4c4cb1695688/hlr_create_E_vs_Q.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 41, 67, 6904, 67, 53, 12, 2603, 16, 41, 16, 79, 16, 4430, 67, 16627, 340, 33, 5510, 16, 14, 1968, 16, 636, 4333, 4672, 3536, 1220, 4186, 5530, 279, 348, 1872, 598, 279, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 41, 67, 6904, 67, 53, 12, 2603, 16, 41, 16, 79, 16, 4430, 67, 16627, 340, 33, 5510, 16, 14, 1968, 16, 636, 4333, 4672, 3536, 1220, 4186, 5530, 279, 348, 1872, 598, 279, 21...
if on == 1 and sn != 2: return self._fix_nan(context) if sn == 1 and on != 2: return other._fix_nan(context)
if on == 1 and sn == 0: return self._fix(context) if sn == 1 and on == 0: return other._fix(context)
def max_mag(self, other, context=None): """Compares the values numerically with their sign ignored.""" other = _convert_other(other, raiseit=True)
3f122784a35b5a60fac3e946d1a99941b3f116c9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/3f122784a35b5a60fac3e946d1a99941b3f116c9/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 943, 67, 4527, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 19199, 326, 924, 6389, 1230, 598, 3675, 1573, 5455, 12123, 1308, 273, 389, 6283, 67, 3011, 12, 3011, 16, 1002, 305, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 943, 67, 4527, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 19199, 326, 924, 6389, 1230, 598, 3675, 1573, 5455, 12123, 1308, 273, 389, 6283, 67, 3011, 12, 3011, 16, 1002, 305, 33...
events = client.get_events(cal_user, start_date=dates[2], end_date=dates[3], title=options.title, query=options.query, expand_recurrence=False) try: client.delete_events(events, options.date, cal_user) except EventsNotFound: print 'No events found that match your options!'
for cal in cal_user_list: print 'For calendar ' + str(cal) events = client.get_events(cal.user, start_date=dates[2], end_date=dates[3], title=options.title, query=options.query, expand_recurrence=False) try: client.delete_events(events, options.date, cal.user) except EventsNotFound: print 'No events found that match yo...
def _run_delete(client, options, args): cal_user = client.get_calendar_user(options.cal) if not cal_user: print 'No calendar matches "' + options.cal + '"' return dates = get_start_and_end(options.date) events = client.get_events(cal_user, start_date=dates[2], end_date=dates[3], title=options.title, query=options.query...
f846a2afa8ac791418b89ed03bd00a3c62cf31be /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/f846a2afa8ac791418b89ed03bd00a3c62cf31be/service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2681, 67, 3733, 12, 2625, 16, 702, 16, 833, 4672, 1443, 67, 1355, 273, 1004, 18, 588, 67, 11650, 67, 1355, 12, 2116, 18, 771, 13, 309, 486, 1443, 67, 1355, 30, 1172, 296, 2279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2681, 67, 3733, 12, 2625, 16, 702, 16, 833, 4672, 1443, 67, 1355, 273, 1004, 18, 588, 67, 11650, 67, 1355, 12, 2116, 18, 771, 13, 309, 486, 1443, 67, 1355, 30, 1172, 296, 2279, ...
scaling_term -- default is 0.05. if nodes are getting chopped off, increase; if graph
scaling_term -- default is 0.05. if vertices are getting chopped off, increase; if graph
def show(self, pos=None, layout=None, vertex_labels=True, edge_labels=False, vertex_size=200, graph_border=False, vertex_colors=None, edge_colors=None, partition=None, scaling_term=0.05, talk=False, iterations=50, color_by_label=False, heights=None, **kwds): """ Shows the (di)graph.
139028392b54ae237314b7536b21897e9b1d7ed3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/139028392b54ae237314b7536b21897e9b1d7ed3/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 12, 2890, 16, 949, 33, 7036, 16, 3511, 33, 7036, 16, 5253, 67, 5336, 33, 5510, 16, 3591, 67, 5336, 33, 8381, 16, 5253, 67, 1467, 33, 6976, 16, 2667, 67, 8815, 33, 8381, 16, 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, 2405, 12, 2890, 16, 949, 33, 7036, 16, 3511, 33, 7036, 16, 5253, 67, 5336, 33, 5510, 16, 3591, 67, 5336, 33, 8381, 16, 5253, 67, 1467, 33, 6976, 16, 2667, 67, 8815, 33, 8381, 16, 5...
log.info("after configread at " + time.ctime())
def testSwampInterface(): logging.basicConfig(level=logging.DEBUG) wholelist = open("full_resamp.swamp").readlines() portionlist = wholelist[:10] test = [ "".join(portionlist), "".join(wholelist), testScript4] c = Config("swamp.conf") c.read() log.info("after configread at " + time.ctime()) fe = FakeExecutor() le = Lo...
2156f04bd5fc29e60fd70189ecd66684b607d5ed /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5203/2156f04bd5fc29e60fd70189ecd66684b607d5ed/swamp_common.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 6050, 931, 1358, 13332, 2907, 18, 13240, 809, 12, 2815, 33, 11167, 18, 9394, 13, 600, 355, 5449, 273, 1696, 2932, 2854, 67, 455, 931, 18, 5328, 931, 20387, 896, 3548, 1435, 14769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6050, 931, 1358, 13332, 2907, 18, 13240, 809, 12, 2815, 33, 11167, 18, 9394, 13, 600, 355, 5449, 273, 1696, 2932, 2854, 67, 455, 931, 18, 5328, 931, 20387, 896, 3548, 1435, 14769, ...
safe_remove(zipfile) safe_remove(tarfile) if src_files==[]: return src_files = string.join(src_files)
def find_src_files(L,d,N): if string.upper(os.path.basename(d))=='CVS': return #ignore all CVS for n in N: fn = os.path.normcase(os.path.normpath(os.path.join(d,n))) if os.path.isfile(fn): L.append(fn)
5c2936a55fe3894aa5b9cc5719900acb6e5b8e57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/5c2936a55fe3894aa5b9cc5719900acb6e5b8e57/daily.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 4816, 67, 2354, 12, 48, 16, 72, 16, 50, 4672, 309, 533, 18, 5797, 12, 538, 18, 803, 18, 13909, 12, 72, 3719, 18920, 39, 14640, 4278, 327, 202, 7, 6185, 777, 385, 14640, 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, 1104, 67, 4816, 67, 2354, 12, 48, 16, 72, 16, 50, 4672, 309, 533, 18, 5797, 12, 538, 18, 803, 18, 13909, 12, 72, 3719, 18920, 39, 14640, 4278, 327, 202, 7, 6185, 777, 385, 14640, 3...
print self.data['pub_date']
def save_changes(self): """Save the changes back to the database. This also adds a redirect if the slug changes. """ old_slug = self.post.slug old_parser = self.post.parser forms.set_fields(self.post, self.data, 'title', 'author', 'parser') if (self.data['text'] != self.post.text or self.data['parser'] != old_parser):...
f234fd379bc184d633cdf3d884a4a1a16466165a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12815/f234fd379bc184d633cdf3d884a4a1a16466165a/forms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 6329, 12, 2890, 4672, 3536, 4755, 326, 3478, 1473, 358, 326, 2063, 18, 225, 1220, 2546, 4831, 279, 3136, 309, 326, 4959, 3478, 18, 3536, 1592, 67, 6436, 273, 365, 18, 2767, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 6329, 12, 2890, 4672, 3536, 4755, 326, 3478, 1473, 358, 326, 2063, 18, 225, 1220, 2546, 4831, 279, 3136, 309, 326, 4959, 3478, 18, 3536, 1592, 67, 6436, 273, 365, 18, 2767, 1...
def test_init_alternate_auth_port(self):
def test_init_alternate_dns_port(self):
def test_init_alternate_auth_port(self): bob = BoB(None, 9999) self.assertEqual(bob.verbose, False) self.assertEqual(bob.msgq_socket_file, None) self.assertEqual(bob.auth_port, 9999) self.assertEqual(bob.cc_session, None) self.assertEqual(bob.address, None) self.assertEqual(bob.processes, {}) self.assertEqual(bob.dead_...
4cf1bd8a3477a1a7c68d0f7cdc7dedc4e9d40a77 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6792/4cf1bd8a3477a1a7c68d0f7cdc7dedc4e9d40a77/bind10_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2738, 67, 16025, 340, 67, 14926, 67, 655, 12, 2890, 4672, 800, 70, 273, 17980, 38, 12, 7036, 16, 30082, 13, 365, 18, 11231, 5812, 12, 70, 947, 18, 11369, 16, 1083, 13, 365,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2738, 67, 16025, 340, 67, 14926, 67, 655, 12, 2890, 4672, 800, 70, 273, 17980, 38, 12, 7036, 16, 30082, 13, 365, 18, 11231, 5812, 12, 70, 947, 18, 11369, 16, 1083, 13, 365,...
self.connect(stage2, ddc, demod, dst)
self.connect(stage2, ddc) self.connect(ddc, demod) self.connect(demod, dst)
def __init__(self): gr.top_block.__init__(self)
7eaa02555fa1f04ad4e8d854fbb03226267c73f0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9155/7eaa02555fa1f04ad4e8d854fbb03226267c73f0/btrx.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 3821, 18, 3669, 67, 2629, 16186, 2738, 972, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3821, 18, 3669, 67, 2629, 16186, 2738, 972, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
return S_OK()
return
def initialize( script = False, ignoreErrors = False, initializeMonitor = False, enableCommandLine = False ): global localCfg, scriptName, _isAlreadyInitialized #Please do not call initialize in every file if _isAlreadyInitialized: return S_OK() _isAlreadyInitialized = True userDisabled = not localCfg.isCSEnabled() i...
2ed659d24506e42ee8a85f3b991ed45e45688960 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/2ed659d24506e42ee8a85f3b991ed45e45688960/Script.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2728, 273, 1083, 16, 2305, 4229, 273, 1083, 16, 4046, 7187, 273, 1083, 16, 4237, 21391, 273, 1083, 262, 30, 2552, 1191, 8198, 16, 31008, 16, 389, 291, 9430, 11459, 225, 468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2728, 273, 1083, 16, 2305, 4229, 273, 1083, 16, 4046, 7187, 273, 1083, 16, 4237, 21391, 273, 1083, 262, 30, 2552, 1191, 8198, 16, 31008, 16, 389, 291, 9430, 11459, 225, 468, ...
return DAVConnection(self.url)
acct = osaf.framework.sharing.Sharing.getWebDavAccount() if acct.useSSL: return SSLDAVConnection(self.url, acct) return DAVConnection(self.url, acct)
def newConnection(self): return DAVConnection(self.url)
e3cfc89067d78a3e4b0063b94671a3d124dfcc8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/e3cfc89067d78a3e4b0063b94671a3d124dfcc8d/Dav.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 1952, 12, 2890, 4672, 327, 463, 5856, 1952, 12, 2890, 18, 718, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 394, 1952, 12, 2890, 4672, 327, 463, 5856, 1952, 12, 2890, 18, 718, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if my_ftype == "symlink" and ftype == "file":
if my_ftype == "symlink" and pf.ftype == "file":
def _ftype(mode): """ Given a "mode" return the name of the type of file. """ if stat.S_ISREG(mode): return "file" if stat.S_ISDIR(mode): return "directory" if stat.S_ISLNK(mode): return "symlink" if stat.S_ISFIFO(mode): return "fifo" if stat.S_ISCHR(mode): return "character device" if stat.S_ISBLK(mode): return "...
1f1a9c8f653cd8cc3aa77f966051de6095bdd390 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5445/1f1a9c8f653cd8cc3aa77f966051de6095bdd390/packages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 74, 723, 12, 3188, 4672, 3536, 16803, 279, 315, 3188, 6, 327, 326, 508, 434, 326, 618, 434, 585, 18, 3536, 309, 610, 18, 55, 67, 5127, 5937, 12, 3188, 4672, 225, 327, 315, 768, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 74, 723, 12, 3188, 4672, 3536, 16803, 279, 315, 3188, 6, 327, 326, 508, 434, 326, 618, 434, 585, 18, 3536, 309, 610, 18, 55, 67, 5127, 5937, 12, 3188, 4672, 225, 327, 315, 768, ...
self.message.set('\n'.join(rows))
return '\n'.join(rows) class EditorError(Exception): pass cmdargs = [editor, name] try: try: retcode = subprocess.call(" ".join(cmdargs), shell=True, stderr=subprocess.PIPE) except OSError, e: raise EditorError if retcode != 0: raise EditorError except EditorError: msg = _getMessageNoEditor() if msg is None: return...
def getMessageFromUser(self, prompt=''):
8cc5e38355fa1132b21bd8eb7d3007291efd377f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/8cc5e38355fa1132b21bd8eb7d3007291efd377f/changelog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2381, 1265, 1299, 12, 2890, 16, 6866, 2218, 11, 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, 1652, 2381, 1265, 1299, 12, 2890, 16, 6866, 2218, 11, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
return self.socket.bind (addr) def connect (self, address):
return self.socket.bind(addr) def connect(self, address):
def bind (self, addr): self.addr = addr return self.socket.bind (addr)
f7eb0d3f501f2e379b8719bda476d318d1e79160 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f7eb0d3f501f2e379b8719bda476d318d1e79160/asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1993, 261, 2890, 16, 3091, 4672, 365, 18, 4793, 273, 3091, 327, 365, 18, 7814, 18, 4376, 261, 4793, 13, 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, 1993, 261, 2890, 16, 3091, 4672, 365, 18, 4793, 273, 3091, 327, 365, 18, 7814, 18, 4376, 261, 4793, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if isinstance(self.parent.vals[self.parent.value], str): returnValue = _(self.parent.vals[self.parent.value]) else: returnValue = _(self.parent.vals[self.parent.value][1])
returnValue = _(self.parent.vals[self.parent.value]) if not isinstance(returnValue, str): returnValue = returnValue[0] if returnValue: returnValue = _(returnValue)
def __call__(self, selected): #needed by configlist self.checkValues() if isinstance(self.parent.vals[self.parent.value], str): returnValue = _(self.parent.vals[self.parent.value]) else: returnValue = _(self.parent.vals[self.parent.value][1]) return ("text", returnValue)
334e49f88bb558bb2f07d47c77c7900074d5b7b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/334e49f88bb558bb2f07d47c77c7900074d5b7b8/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 3170, 4672, 1082, 202, 7, 17471, 635, 642, 1098, 365, 18, 1893, 1972, 1435, 225, 7750, 273, 389, 12, 2890, 18, 2938, 18, 4524, 63, 2890, 18, 2938, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 3170, 4672, 1082, 202, 7, 17471, 635, 642, 1098, 365, 18, 1893, 1972, 1435, 225, 7750, 273, 389, 12, 2890, 18, 2938, 18, 4524, 63, 2890, 18, 2938, 18, ...
return map(str, re.split(r'\s+', flat)) if flat != "" else []
return map(int, re.split(r'\s+', flat)) if flat != "" else []
def cookie_recips(status): flat = urllib.unquote(req.COOKIES.get("recip-%s" % status, "")) return map(str, re.split(r'\s+', flat)) if flat != "" else []
314aa17b58695a5c9eaf80d92f66be919ca5a46d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/314aa17b58695a5c9eaf80d92f66be919ca5a46d/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3878, 67, 266, 3449, 87, 12, 2327, 4672, 3569, 273, 11527, 18, 318, 6889, 12, 3658, 18, 3865, 3141, 8805, 18, 588, 2932, 266, 3449, 6456, 87, 6, 738, 1267, 16, 1408, 3719, 327, 852, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3878, 67, 266, 3449, 87, 12, 2327, 4672, 3569, 273, 11527, 18, 318, 6889, 12, 3658, 18, 3865, 3141, 8805, 18, 588, 2932, 266, 3449, 6456, 87, 6, 738, 1267, 16, 1408, 3719, 327, 852, ...
'OC':(()),
'OC':(None,),
def __str__(self): result = [str(self.ruleid)] result.append(self.key_list('NAME',self.names,quoted=1)) result.append(self.key_attr('DESC',self.desc,quoted=1)) result.append({0:'',1:' OBSOLETE'}[self.obsolete]) result.append(self.key_attr('FORM',self.form,quoted=0)) result.append(self.key_list('SUP',self.sup,sep=' $ ')...
c72dca7955a21f0514dbdfa740ea8df04bf75f44 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4610/c72dca7955a21f0514dbdfa740ea8df04bf75f44/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 563, 273, 306, 701, 12, 2890, 18, 5345, 350, 25887, 563, 18, 6923, 12, 2890, 18, 856, 67, 1098, 2668, 1985, 2187, 2890, 18, 1973, 16, 15179, 33, 21, 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, 1001, 701, 972, 12, 2890, 4672, 563, 273, 306, 701, 12, 2890, 18, 5345, 350, 25887, 563, 18, 6923, 12, 2890, 18, 856, 67, 1098, 2668, 1985, 2187, 2890, 18, 1973, 16, 15179, 33, 21, 3...
ori t1, t1, (1 << 9)
limm t5, (1 << 9) or t1, t1, t5
def macroop LTR_R
eec6bfaa9de23b075762a62e57e46cd3f2f977ef /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6787/eec6bfaa9de23b075762a62e57e46cd3f2f977ef/segmentation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 511, 4349, 67, 54, 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, 11522, 556, 511, 4349, 67, 54, 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...
self.assertRaises(smtplib.SMTPConnectError, smtplib.SMTP, HOST, PORT)
self.assertRaises(smtplib.SMTPConnectError, smtplib.SMTP, HOST, PORT, 'localhost', 3)
def testFailingHELO(self): self.assertRaises(smtplib.SMTPConnectError, smtplib.SMTP, HOST, PORT)
221b34d59e4109e6912d6d0a112231b29655742d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/221b34d59e4109e6912d6d0a112231b29655742d/test_smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3754, 310, 3900, 1502, 12, 2890, 4672, 365, 18, 11231, 12649, 6141, 12, 87, 1010, 6673, 18, 55, 14636, 5215, 668, 16, 272, 1010, 6673, 18, 55, 14636, 16, 21425, 16, 20987, 13, 2,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3754, 310, 3900, 1502, 12, 2890, 4672, 365, 18, 11231, 12649, 6141, 12, 87, 1010, 6673, 18, 55, 14636, 5215, 668, 16, 272, 1010, 6673, 18, 55, 14636, 16, 21425, 16, 20987, 13, 2,...
self.updating = True self.package.setText(_("Package list update")) self.ipkg.startCmd(IpkgComponent.CMD_UPDATE)
self.updating = False
def __init__(self, session, args = None): Screen.__init__(self, session)
0fe25bffe34c9a5fd50528d5ff2eb576b149163b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/0fe25bffe34c9a5fd50528d5ff2eb576b149163b/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1339, 16, 833, 273, 599, 4672, 10146, 16186, 2738, 972, 12, 2890, 16, 1339, 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, 2738, 972, 12, 2890, 16, 1339, 16, 833, 273, 599, 4672, 10146, 16186, 2738, 972, 12, 2890, 16, 1339, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
from PyQt4.QtGui import QDialog, QStringListModel, QListView, QSplitter
from PyQt4.QtGui import QDialog, QStringListModel, QListView, QSplitter, QValidator
def handle(self, info=None): """handling the exception: show backtrace in browser""" cgitb.Hook.handle(self, info) webbrowser.open(self.tmpFileName)
93bf41dcf49cae215afcd24ea1052237ec6a25e0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1679/93bf41dcf49cae215afcd24ea1052237ec6a25e0/playfield.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 16, 225, 1123, 33, 7036, 4672, 3536, 26822, 326, 1520, 30, 2405, 13902, 316, 4748, 8395, 276, 6845, 70, 18, 5394, 18, 4110, 12, 2890, 16, 1123, 13, 3311, 11213, 18, 319...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 16, 225, 1123, 33, 7036, 4672, 3536, 26822, 326, 1520, 30, 2405, 13902, 316, 4748, 8395, 276, 6845, 70, 18, 5394, 18, 4110, 12, 2890, 16, 1123, 13, 3311, 11213, 18, 319...
allmatchingseries = self.config['tvdb_api']._getSeries(self.config['series_name'])
try: allmatchingseries = self.config['tvdb_api']._getSeries(self.config['series_name']) except Exception: sys.stderr.write(u"\nErrors while trying to contact thetvbd.com for Series (%s)\ntherefore a file rename is not possible.\n\n" % self.config['series_name']) return False
def returnFilename(self): """Return a single file name (excluding file extension and directory), limited by the current variables (sid, season name, season number ... etc). Typically used when writing a meta file or naming/renaming a video file after a TV show recording. return False and out put an error if there not e...
881a9111c0613ff73ff321ac94e0e0ed204b9de1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/881a9111c0613ff73ff321ac94e0e0ed204b9de1/jamu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 327, 5359, 12, 2890, 4672, 3536, 990, 279, 2202, 585, 508, 261, 338, 18596, 585, 2710, 471, 1867, 3631, 13594, 635, 326, 783, 3152, 261, 7453, 16, 15874, 508, 16, 15874, 1300, 1372, 5527...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 327, 5359, 12, 2890, 4672, 3536, 990, 279, 2202, 585, 508, 261, 338, 18596, 585, 2710, 471, 1867, 3631, 13594, 635, 326, 783, 3152, 261, 7453, 16, 15874, 508, 16, 15874, 1300, 1372, 5527...
if errors != []:
if len([e for e in errors if e.is_fatal()]) > 0:
def parse(str, errors = None, warnings = None): """ Return a DOM tree encoding the contents of an epytext string. Any errors or warnings generated during parsing will be stored in the C{errors} and C{warnings} parameters. @param str: The epytext string to parse. @type str: C{string} @param errors: A list where any er...
7bf7c136593a0f12e906094a55f7b8f591c5abaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7bf7c136593a0f12e906094a55f7b8f591c5abaf/epytext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 701, 16, 1334, 273, 599, 16, 5599, 273, 599, 4672, 3536, 2000, 279, 4703, 2151, 2688, 326, 2939, 434, 392, 425, 2074, 955, 533, 18, 5502, 1334, 578, 5599, 4374, 4982, 5811, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 701, 16, 1334, 273, 599, 16, 5599, 273, 599, 4672, 3536, 2000, 279, 4703, 2151, 2688, 326, 2939, 434, 392, 425, 2074, 955, 533, 18, 5502, 1334, 578, 5599, 4374, 4982, 5811, 9...
def restoreMapList(self, list): self.write(('mapList.clear',)) for l in list: self.write(('mapList.append', l)) self.write(('mapList.save',))
def restoreMapList(self, list): self.write(('mapList.clear',)) for l in list: self.write(('mapList.append', l)) self.write(('mapList.save',))
1b468cfdf08d399f830fcbb1e4c4adae994cbac8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12909/1b468cfdf08d399f830fcbb1e4c4adae994cbac8/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
hider.setWidgets([box6, box7])
box3.syncControls()
def __init__(self,parent=None, signalManager = None, name = "Linear Projection", graphClass = None): OWVisWidget.__init__(self, parent, signalManager, name, TRUE)
cbacee0aa84afb9bb2ddf1fa32442f23cd390f3b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/cbacee0aa84afb9bb2ddf1fa32442f23cd390f3b/OWLinProj.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 33, 7036, 16, 4277, 1318, 273, 599, 16, 508, 273, 315, 15982, 21288, 3113, 2667, 797, 273, 599, 4672, 18233, 3282, 4609, 16186, 2738, 972, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 33, 7036, 16, 4277, 1318, 273, 599, 16, 508, 273, 315, 15982, 21288, 3113, 2667, 797, 273, 599, 4672, 18233, 3282, 4609, 16186, 2738, 972, 12, 2890, ...
else: rev, path = chgset, None reponame = rm.get_default_repository(formatter.context) repos = rm.get_repository(reponame, authname)
if path == '/': path = None
def _format_changeset_link(self, formatter, ns, chgset, label, fullmatch=None): intertrac = formatter.shorthand_intertrac_helper(ns, chgset, label, fullmatch) if intertrac: return intertrac
3a32e2f48232fdd756bcbee44b126be6658a54c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9317/3a32e2f48232fdd756bcbee44b126be6658a54c1/changeset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2139, 67, 6329, 278, 67, 1232, 12, 2890, 16, 4453, 16, 3153, 16, 462, 75, 542, 16, 1433, 16, 1983, 1916, 33, 7036, 4672, 1554, 313, 1077, 273, 4453, 18, 674, 15830, 67, 2761, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2139, 67, 6329, 278, 67, 1232, 12, 2890, 16, 4453, 16, 3153, 16, 462, 75, 542, 16, 1433, 16, 1983, 1916, 33, 7036, 4672, 1554, 313, 1077, 273, 4453, 18, 674, 15830, 67, 2761, 31...
"""
"""
def getParameters(self): """ Created: 15.04.2006, KP Description: Return the list of parameters needed for configuring this GUI """ return [["Minimum object size (in pixels)", ("Threshold", )]]
6d7b572696d4ecdce2049b45a6e109836f3272c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/6d7b572696d4ecdce2049b45a6e109836f3272c9/SegmentationFilters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10028, 12, 2890, 4672, 3536, 12953, 30, 4711, 18, 3028, 18, 6976, 26, 16, 1475, 52, 6507, 30, 2000, 326, 666, 434, 1472, 3577, 364, 642, 4017, 333, 10978, 3536, 327, 306, 9614, 13042, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10028, 12, 2890, 4672, 3536, 12953, 30, 4711, 18, 3028, 18, 6976, 26, 16, 1475, 52, 6507, 30, 2000, 326, 666, 434, 1472, 3577, 364, 642, 4017, 333, 10978, 3536, 327, 306, 9614, 13042, ...
def __init__(self, type = ETH_P_IP, filter=None):
def __init__(self, type = ETH_P_IP, filter=None, promisc=None, iface=None):
def __init__(self, type = ETH_P_IP, filter=None): self.type = type self.ins = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(type)) self.ins.setsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF, 2**30) if filter is not None: attach_filter(self.ins, filter) self.outs = socket.socket(socket.AF_PACKET, socket.SOC...
ea674572065aeef03a6af7f9dcde6c13656862d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/ea674572065aeef03a6af7f9dcde6c13656862d2/scapy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 618, 273, 512, 2455, 67, 52, 67, 2579, 16, 1034, 33, 7036, 16, 3012, 291, 71, 33, 7036, 16, 9751, 33, 7036, 4672, 365, 18, 723, 273, 618, 365, 18, 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, 1001, 2738, 972, 12, 2890, 16, 618, 273, 512, 2455, 67, 52, 67, 2579, 16, 1034, 33, 7036, 16, 3012, 291, 71, 33, 7036, 16, 9751, 33, 7036, 4672, 365, 18, 723, 273, 618, 365, 18, 26...
self.components.append(Variator(self.gcomprisBoard.canvas, self.rootitem,
self.components.append(Rheostat(self.gcomprisBoard.canvas, self.rootitem,
def create_components(self):
a7fd9b10536f478ff50f802a77f6b1aeb3b67be0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/a7fd9b10536f478ff50f802a77f6b1aeb3b67be0/electric.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 8119, 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, 752, 67, 8119, 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...
return (1, "%s %s %s" % (CFG_WEBACCESS_WARNING_MSGS[1], (called_from and "%s %s" % (CFG_WEBACCESS_MSGS[0] % quote(user_info['uri']), CFG_WEBACCESS_MSGS[1]) or ""), make_apache_message(name_action, arguments, user_info.get('referer', None))))
return (1, "%s %s %s" % (CFG_WEBACCESS_WARNING_MSGS[1], (called_from and "%s %s" % (CFG_WEBACCESS_MSGS[0] % quote(user_info['uri']), CFG_WEBACCESS_MSGS[1]) or ""), make_apache_message(name_action, arguments, user_info['uri'])))
def acc_authorize_action(req, name_action, verbose=0, check_only_uid_p=False, **arguments): """Check if user is allowed to perform action with given list of arguments. Return (0, message) if authentication succeeds, (error code, error message) if it fails. The arguments are as follows: req - could be either one of th...
65ea7094ab75e683f85f6867dca65a9d596afbcc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/65ea7094ab75e683f85f6867dca65a9d596afbcc/access_control_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4078, 67, 22488, 67, 1128, 12, 3658, 16, 508, 67, 1128, 16, 3988, 33, 20, 16, 866, 67, 3700, 67, 1911, 67, 84, 33, 8381, 16, 2826, 7099, 4672, 3536, 1564, 309, 729, 353, 2935, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4078, 67, 22488, 67, 1128, 12, 3658, 16, 508, 67, 1128, 16, 3988, 33, 20, 16, 866, 67, 3700, 67, 1911, 67, 84, 33, 8381, 16, 2826, 7099, 4672, 3536, 1564, 309, 729, 353, 2935, 358, ...
keymap = {'channel': 'feed', 'items': 'entries', 'guid': 'id', 'date': 'updated', 'date_parsed': 'updated_parsed', 'description': ['subtitle', 'summary'], 'url': ['href'], 'modified': 'updated', 'modified_parsed': 'updated_parsed', 'issued': 'published', 'issued_parsed': 'published_parsed', 'copyright': 'rights', 'copy...
def __getitem__(self, key): keymap = {'channel': 'feed', 'items': 'entries', 'guid': 'id', 'date': 'updated', 'date_parsed': 'updated_parsed', 'description': ['subtitle', 'summary'], 'url': ['href'], 'modified': 'updated', 'modified_parsed': 'updated_parsed', 'issued': 'published', 'issued_parsed': 'published_parsed', ...
50cbe5fb44dbff087e8cca95d332bb7b7cc15747 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10695/50cbe5fb44dbff087e8cca95d332bb7b7cc15747/feedparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 498, 4672, 309, 498, 422, 296, 4743, 4278, 327, 2177, 5014, 16186, 31571, 972, 12, 2890, 16, 296, 4156, 6134, 63, 20, 23962, 6408, 3546, 309, 498, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31571, 972, 12, 2890, 16, 498, 4672, 309, 498, 422, 296, 4743, 4278, 327, 2177, 5014, 16186, 31571, 972, 12, 2890, 16, 296, 4156, 6134, 63, 20, 23962, 6408, 3546, 309, 498, 422, ...
help="URL of DOM Inspector repository to pull from (default: use hg default in mozilla/extensions/inspector/.hg/hgrc; or if that file doesn't exist, use \"" + DEFAULT_INSPECTOR_REPO + "\".)")
help="URL of DOM Inspector repository to pull from (default: use hg default in mozilla/extensions/inspector/.hg/hgrc; or if that file doesn't exist, use \"" + DEFAULTS['INSPECTOR_REPO'] + "\".)")
def check_retries_option(option, opt_str, value, parser): if value < 0: raise OptionValueError("%s option value needs to be positive (not '%d')" % (opt_str, value)) setattr(parser.values, option.dest, value)
bb77714db9931969ccbda06021d80525b7562c7a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11044/bb77714db9931969ccbda06021d80525b7562c7a/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 15215, 67, 3482, 12, 3482, 16, 2153, 67, 701, 16, 460, 16, 2082, 4672, 309, 460, 411, 374, 30, 1002, 2698, 23610, 27188, 87, 1456, 460, 4260, 358, 506, 6895, 261, 902, 1995, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 15215, 67, 3482, 12, 3482, 16, 2153, 67, 701, 16, 460, 16, 2082, 4672, 309, 460, 411, 374, 30, 1002, 2698, 23610, 27188, 87, 1456, 460, 4260, 358, 506, 6895, 261, 902, 1995, ...
'%s failed, found error pattern: ' '"%s"' % (command, regexp), result)
'%s failed, found error pattern: "%s"' % (command, regexp), result)
def run_grep(self, command, timeout=30, ignore_status=False, stdout_ok_regexp=None, stdout_err_regexp=None, stderr_ok_regexp=None, stderr_err_regexp=None, connect_timeout=30): """ Run a command on the remote host and look for regexp in stdout or stderr to determine if the command was successul or not.
5c04916cd0e1aca2cffa2895da52eaba47458edb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/5c04916cd0e1aca2cffa2895da52eaba47458edb/ssh_host.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 11556, 84, 12, 2890, 16, 1296, 16, 2021, 33, 5082, 16, 2305, 67, 2327, 33, 8381, 16, 3909, 67, 601, 67, 17745, 33, 7036, 16, 3909, 67, 370, 67, 17745, 33, 7036, 16, 4514, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 11556, 84, 12, 2890, 16, 1296, 16, 2021, 33, 5082, 16, 2305, 67, 2327, 33, 8381, 16, 3909, 67, 601, 67, 17745, 33, 7036, 16, 3909, 67, 370, 67, 17745, 33, 7036, 16, 4514, ...
udays = -1
udays = 10000
def split(self,job):
42396e8a8734fd697e4bd46d75a7d260f5b13284 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1488/42396e8a8734fd697e4bd46d75a7d260f5b13284/DQ2JobSplitter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 12, 2890, 16, 4688, 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, 1416, 12, 2890, 16, 4688, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
orig_request=request, extra_args=args,
orig_request=rq.request, extra_args=rq.args,
def ExpireRequests(self): """Delete all the expired requests.
71e114da4ce07bcbe76516069b621ac459da3d69 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/71e114da4ce07bcbe76516069b621ac459da3d69/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7784, 577, 6421, 12, 2890, 4672, 3536, 2613, 777, 326, 7708, 3285, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7784, 577, 6421, 12, 2890, 4672, 3536, 2613, 777, 326, 7708, 3285, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
notebook.append_page(windowbutton_box, gtk.Label(_("Window Button")))
notebook.append_page(windowbutton_box, gtk.Label(_("Window Item")))
def __init__ (self):
25580906cd313a0ce8d618137f7433f0450896b2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7075/25580906cd313a0ce8d618137f7433f0450896b2/dbx_preference.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 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, 261, 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, -...
EXAMPLES: These computations use pseudo-random numbers, so we set
EXAMPLES: These computations use pseudo-random numbers, so we set
def lower_central_series(self): """ Return the lower central series of this group as a list of permutation groups.
2d077a3331069892dd585070aa02c876686672d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/2d077a3331069892dd585070aa02c876686672d2/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2612, 67, 71, 12839, 67, 10222, 12, 2890, 4672, 3536, 2000, 326, 2612, 18291, 4166, 434, 333, 1041, 487, 279, 666, 434, 17440, 3252, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 2612, 67, 71, 12839, 67, 10222, 12, 2890, 4672, 3536, 2000, 326, 2612, 18291, 4166, 434, 333, 1041, 487, 279, 666, 434, 17440, 3252, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100...
build = None
def get_build_for_slave(self, name, properties): """Check whether one of the pending builds can be built by the build slave. :param name: the name of the slave :type name: `basestring` :param properties: the slave configuration :type properties: `dict` :return: the allocated build, or `None` if no build was found :rty...
c94787f5d7c70e1690f0a3dddd5ef573c2d72b7b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4547/c94787f5d7c70e1690f0a3dddd5ef573c2d72b7b/queue.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3510, 67, 1884, 67, 27352, 12, 2890, 16, 508, 16, 1790, 4672, 3536, 1564, 2856, 1245, 434, 326, 4634, 10736, 848, 506, 6650, 635, 326, 1361, 11735, 18, 225, 294, 891, 508, 30,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3510, 67, 1884, 67, 27352, 12, 2890, 16, 508, 16, 1790, 4672, 3536, 1564, 2856, 1245, 434, 326, 4634, 10736, 848, 506, 6650, 635, 326, 1361, 11735, 18, 225, 294, 891, 508, 30,...
'stopcomm':emulcomm.stopcomm,
'stopcomm':emulcomm.stopcomm,
def nonSafe_fork(): val = __orig_fork() if val == 0 and safe._builtin_globals_r != None: safe._builtin_restore() return val
67fd8a8a159df939f3417ec6b61891f1231d0db8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/67fd8a8a159df939f3417ec6b61891f1231d0db8/repy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1661, 9890, 67, 23335, 13332, 1244, 273, 1001, 4949, 67, 23335, 1435, 309, 1244, 422, 374, 471, 4183, 6315, 24553, 67, 16227, 67, 86, 480, 599, 30, 4183, 6315, 24553, 67, 13991, 1435, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1661, 9890, 67, 23335, 13332, 1244, 273, 1001, 4949, 67, 23335, 1435, 309, 1244, 422, 374, 471, 4183, 6315, 24553, 67, 16227, 67, 86, 480, 599, 30, 4183, 6315, 24553, 67, 13991, 1435, 32...
room = self.current_room()
def command_topic(self, args): """ /topic [new topic] """ subject = ' '.join(args) room = self.current_room() if not room.joined or room.name == "Info": return self.muc.change_subject(room.name, subject)
75c058dafc8dc13883168b413d22b31de1638148 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9814/75c058dafc8dc13883168b413d22b31de1638148/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1296, 67, 10476, 12, 2890, 16, 833, 4672, 3536, 342, 10476, 306, 2704, 3958, 65, 3536, 3221, 273, 296, 2418, 5701, 12, 1968, 13, 309, 486, 7725, 18, 5701, 329, 578, 7725, 18, 529, 422,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1296, 67, 10476, 12, 2890, 16, 833, 4672, 3536, 342, 10476, 306, 2704, 3958, 65, 3536, 3221, 273, 296, 2418, 5701, 12, 1968, 13, 309, 486, 7725, 18, 5701, 329, 578, 7725, 18, 529, 422,...
data = decoder._decode_string(node.attributes[attr])
data = decoder._decode_string(node.attributes[attr].nodeValue)
def _decode_into_dict(self, node): diction = {None:[]} for child in node.childNodes: if child.nodeType is child.TEXT_NODE or child.nodeType == child.CDATA_SECTION_NODE: diction[None].append(decoder._decode_string(child.data)) elif node.nodeType is child.ELEMENT_NODE: data = self._decode_into_dict(child) self._add_to_di...
aa701f9cc79648fdd166a7c1748b9a9fdf829398 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10801/aa701f9cc79648fdd166a7c1748b9a9fdf829398/tools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3922, 67, 18591, 67, 1576, 12, 2890, 16, 756, 4672, 302, 2228, 273, 288, 7036, 30, 8526, 97, 364, 1151, 316, 756, 18, 3624, 3205, 30, 309, 1151, 18, 2159, 559, 353, 1151, 18, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3922, 67, 18591, 67, 1576, 12, 2890, 16, 756, 4672, 302, 2228, 273, 288, 7036, 30, 8526, 97, 364, 1151, 316, 756, 18, 3624, 3205, 30, 309, 1151, 18, 2159, 559, 353, 1151, 18, 51...
[255, 0, 0, 0, 0, 0, 0, 32, 223, 255],
[255, 0, 0, 0, 0, 0, 0, 31, 223, 255],
def test_antialias_bevel(self): antialias = True width = 3 line_cap = kiva.CAP_BUTT line_join = kiva.JOIN_BEVEL gc = self.helper(antialias, width, line_cap, line_join) actual = gc.bmp_array[:,:,0] desired = array([[255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 127, 0, 0, 127, 255], [...
693c25b8cee266233747e042e57a3325b339258d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13166/693c25b8cee266233747e042e57a3325b339258d/join_stroke_path_test_case.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 970, 649, 1795, 67, 2196, 941, 12, 2890, 4672, 17841, 649, 1795, 273, 1053, 1835, 273, 890, 980, 67, 5909, 273, 417, 427, 69, 18, 17296, 67, 3000, 1470, 980, 67, 5701, 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, 1842, 67, 970, 649, 1795, 67, 2196, 941, 12, 2890, 4672, 17841, 649, 1795, 273, 1053, 1835, 273, 890, 980, 67, 5909, 273, 417, 427, 69, 18, 17296, 67, 3000, 1470, 980, 67, 5701, 273, ...
uri = req.uri if uri == '/': path = [''] else: uri = re_slashes.sub('/', uri) path = uri[1:].split('/') return root._traverse(req, path) except TraversalError:
if re_bibdoc_uri.match(req.uri): allowed_methods = ("GET", "POST", "HEAD", "OPTIONS") else: allowed_methods = ("GET", "POST", "OPTIONS") req.allow_methods(allowed_methods) if req.method not in allowed_methods: raise apache.SERVER_RETURN, apache.HTTP_METHOD_NOT_ALLOWED if req.method == 'OPTIONS': req.headers_out['Allow...
def _handler(req): """ This handler is invoked by mod_python with the apache request."""
e246d40ba02e9019cdc9b040122014b1d1a2b1d3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/e246d40ba02e9019cdc9b040122014b1d1a2b1d3/webinterface_handler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4176, 12, 3658, 4672, 3536, 1220, 1838, 353, 8187, 635, 681, 67, 8103, 598, 326, 12291, 590, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4176, 12, 3658, 4672, 3536, 1220, 1838, 353, 8187, 635, 681, 67, 8103, 598, 326, 12291, 590, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
users_online = User.objects.filter(id__in = users_cached.keys()) and users_cached or []
users_online = users_cached and User.objects.filter(id__in = users_cached.keys()) or []
def index(request, full=True): users_cached = cache.get('users_online', {}) users_online = User.objects.filter(id__in = users_cached.keys()) and users_cached or [] guests_cached = cache.get('guests_online', {}) guest_count = len(guests_cached) users_count = len(users_online) #users_total_online = guest_count + users_co...
885343d571bd6dbb8c5b43a652fe979988cadbd2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13701/885343d571bd6dbb8c5b43a652fe979988cadbd2/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 12, 2293, 16, 1983, 33, 5510, 4672, 3677, 67, 7097, 273, 1247, 18, 588, 2668, 5577, 67, 21026, 2187, 2618, 13, 3677, 67, 21026, 273, 3677, 67, 7097, 471, 2177, 18, 6911, 18, 2188,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 12, 2293, 16, 1983, 33, 5510, 4672, 3677, 67, 7097, 273, 1247, 18, 588, 2668, 5577, 67, 21026, 2187, 2618, 13, 3677, 67, 21026, 273, 3677, 67, 7097, 471, 2177, 18, 6911, 18, 2188,...
l = sum(self.readStats())
stats = self.readStats() print "nr_read", stats[0], "nr_write", stats[1] l = sum(stats) print "sum", l, "prev_sum", self.last_stat
def runIdle(self): if not self.max_idle_time: return t = time.time()
b6b788b0f8da7e1adcde03cebb464da484f48508 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/b6b788b0f8da7e1adcde03cebb464da484f48508/Harddisk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 13834, 12, 2890, 4672, 309, 486, 365, 18, 1896, 67, 20390, 67, 957, 30, 327, 268, 273, 813, 18, 957, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 13834, 12, 2890, 4672, 309, 486, 365, 18, 1896, 67, 20390, 67, 957, 30, 327, 268, 273, 813, 18, 957, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
scriptRef=weakref.ref(script) if (scriptTime-_lastScriptTime)<=0.5 and script==lastScriptRef:
scriptRef=weakref.ref(script.im_func) if (scriptTime-_lastScriptTime)<=0.5 and script.im_func==lastScriptRef:
def executeScript(script,keyPress): """Executes a given script (function) passing it the given keyPress. It also keeps track of the execution of duplicate scripts with in a certain amount of time, and counts how many times this happens. Use L{getLastScriptRepeatCount} to find out this count value. @param script: the fu...
03dd0faa19290339da970a1055812f437292b60a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/03dd0faa19290339da970a1055812f437292b60a/scriptHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 3651, 12, 4263, 16, 856, 11840, 4672, 3536, 9763, 279, 864, 2728, 261, 915, 13, 9588, 518, 326, 864, 498, 11840, 18, 2597, 2546, 20948, 3298, 434, 326, 4588, 434, 6751, 8873, 598, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 3651, 12, 4263, 16, 856, 11840, 4672, 3536, 9763, 279, 864, 2728, 261, 915, 13, 9588, 518, 326, 864, 498, 11840, 18, 2597, 2546, 20948, 3298, 434, 326, 4588, 434, 6751, 8873, 598, ...
role = endmatch.group(suffix)[1:-1]
role = endmatch.group('suffix')[1:-1]
def interpreted(self, before, after, endmatch, role, position, lineno, escaped, rawsource, text): suffix = self.groups.interpreted_or_phrase_ref.suffix if endmatch.group(suffix): if role: msg = self.reporter.warning('Multiple roles in interpreted ' 'text at line %s.' % lineno) return (before + rawsource, [], after, [ms...
6782c922e166489b456fc617b1d5765e9532726e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/6782c922e166489b456fc617b1d5765e9532726e/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19898, 12, 2890, 16, 1865, 16, 1839, 16, 679, 1916, 16, 2478, 16, 1754, 16, 7586, 16, 8345, 16, 1831, 3168, 16, 977, 4672, 3758, 273, 365, 18, 4650, 18, 24713, 329, 67, 280, 67, 9429...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19898, 12, 2890, 16, 1865, 16, 1839, 16, 679, 1916, 16, 2478, 16, 1754, 16, 7586, 16, 8345, 16, 1831, 3168, 16, 977, 4672, 3758, 273, 365, 18, 4650, 18, 24713, 329, 67, 280, 67, 9429...
self._init_utils() self.SetClientSize(wxSize(451, 455))
self.SetClientSize(wx.Size(485, 455))
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSi...
1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 16277, 87, 12, 2890, 16, 846, 496, 4672, 468, 4374, 707, 16, 2727, 1404, 3874, 7075, 6353, 16186, 2738, 972, 12, 2890, 16, 612, 33, 27226, 734, 67, 882, 39, 15066, 10776...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2738, 67, 16277, 87, 12, 2890, 16, 846, 496, 4672, 468, 4374, 707, 16, 2727, 1404, 3874, 7075, 6353, 16186, 2738, 972, 12, 2890, 16, 612, 33, 27226, 734, 67, 882, 39, 15066, 10776...
def writeinitialdefs(self): self.defsfile.write("def FOUR_CHAR_CODE(x): return x\n")
def writeinitialdefs(self): self.defsfile.write("def FOUR_CHAR_CODE(x): return x\n")
9b8b720d39a675b26c7ee02ef1bf901b835b2139 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/9b8b720d39a675b26c7ee02ef1bf901b835b2139/mltesupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 6769, 12537, 12, 2890, 4672, 365, 18, 12537, 768, 18, 2626, 2932, 536, 17634, 1099, 67, 7305, 67, 5572, 12, 92, 4672, 327, 619, 64, 82, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 6769, 12537, 12, 2890, 4672, 365, 18, 12537, 768, 18, 2626, 2932, 536, 17634, 1099, 67, 7305, 67, 5572, 12, 92, 4672, 327, 619, 64, 82, 7923, 2, -100, -100, -100, -100, -100, -10...
def on_row_deleted(self, model, path):
def on_row_deleted(self, model, path):
def on_row_deleted(self, model, path): parent_path = path[:-1] if len(parent_path) > 0: it = model.get_iter(parent_path) else: it = model.get_iter_root() nrows = model.iter_n_children(it) for i in xrange(path[-1], nrows): self.data2path[parent_path + (i,)] = \ self[parent_path + (i,)][self.data_col]
594f1c108ffe3bf5b4c53f58baae8e98bcb5a9b3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4738/594f1c108ffe3bf5b4c53f58baae8e98bcb5a9b3/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 492, 67, 8600, 12, 2890, 16, 938, 16, 589, 4672, 982, 67, 803, 273, 589, 10531, 17, 21, 65, 225, 309, 562, 12, 2938, 67, 803, 13, 405, 374, 30, 518, 273, 938, 18, 588, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 492, 67, 8600, 12, 2890, 16, 938, 16, 589, 4672, 982, 67, 803, 273, 589, 10531, 17, 21, 65, 225, 309, 562, 12, 2938, 67, 803, 13, 405, 374, 30, 518, 273, 938, 18, 588, 6...
print "New nick already exists!"
LOG.debug( "New nick already exists!" )
def changeNick(self, oldnick, newnick): try: u = self.users.pop(oldnick) except KeyError: print "Nick doesn't exist" return
1a57390c60627da9e810a0212997b3f88d2873a4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11503/1a57390c60627da9e810a0212997b3f88d2873a4/dtella_bridgeserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 29756, 12, 2890, 16, 1592, 17091, 16, 394, 17091, 4672, 775, 30, 582, 273, 365, 18, 5577, 18, 5120, 12, 1673, 17091, 13, 1335, 4999, 30, 1172, 315, 29756, 3302, 1404, 1005, 6, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2549, 29756, 12, 2890, 16, 1592, 17091, 16, 394, 17091, 4672, 775, 30, 582, 273, 365, 18, 5577, 18, 5120, 12, 1673, 17091, 13, 1335, 4999, 30, 1172, 315, 29756, 3302, 1404, 1005, 6, 32...
"""Initialize master list menus.""" if True: sortMenu = MenuLink(_("Sort by")) sortMenu.links.append(Mods_EsmsFirst()) sortMenu.links.append(SeparatorLink()) sortMenu.links.append(Files_SortBy('File')) sortMenu.links.append(Files_SortBy('Author')) sortMenu.links.append(Files_SortBy('Group')) sortMenu.links.append(File...
"""Initialize master list menus.""" if True: sortMenu = MenuLink(_("Sort by")) sortMenu.links.append(Mods_EsmsFirst()) sortMenu.links.append(SeparatorLink()) sortMenu.links.append(Files_SortBy('File')) sortMenu.links.append(Files_SortBy('Author')) sortMenu.links.append(Files_SortBy('Group')) sortMenu.links.append(File...
def InitMasterLinks(): """Initialize master list menus.""" #--MasterList: Column Links if True: #--Sort by sortMenu = MenuLink(_("Sort by")) sortMenu.links.append(Mods_EsmsFirst()) sortMenu.links.append(SeparatorLink()) sortMenu.links.append(Files_SortBy('File')) sortMenu.links.append(Files_SortBy('Author')) sortMenu.l...
3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4378, 7786, 7100, 13332, 3536, 7520, 4171, 666, 21374, 12123, 468, 413, 7786, 682, 30, 4753, 21771, 309, 1053, 30, 468, 413, 4416, 635, 1524, 4599, 273, 9809, 2098, 24899, 2932, 4416, 635,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4378, 7786, 7100, 13332, 3536, 7520, 4171, 666, 21374, 12123, 468, 413, 7786, 682, 30, 4753, 21771, 309, 1053, 30, 468, 413, 4416, 635, 1524, 4599, 273, 9809, 2098, 24899, 2932, 4416, 635,...
try: del e.__dict__ except (TypeError, AttributeError): pass else: self.fail("%r's __dict__ can be deleted" % e)
self.assertEqual(can_delete_dict(e), can_delete_dict(ValueError()))
def verify_dict_readonly(x): """ x has to be an instance of a class inheriting from Base. """ cant(x, {}) try: del x.__dict__ except (AttributeError, TypeError): pass else: self.fail("shouldn't allow del %r.__dict__" % x) dict_descr = Base.__dict__["__dict__"] try: dict_descr.__set__(x, {}) except (AttributeError, Type...
4a0d8c36fabcd955e24a465c9276c005529fa702 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/4a0d8c36fabcd955e24a465c9276c005529fa702/test_descr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 67, 1576, 67, 16365, 12, 92, 4672, 3536, 619, 711, 358, 506, 392, 791, 434, 279, 667, 6811, 310, 628, 3360, 18, 3536, 848, 88, 12, 92, 16, 2618, 13, 775, 30, 1464, 619, 16186, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 67, 1576, 67, 16365, 12, 92, 4672, 3536, 619, 711, 358, 506, 392, 791, 434, 279, 667, 6811, 310, 628, 3360, 18, 3536, 848, 88, 12, 92, 16, 2618, 13, 775, 30, 1464, 619, 16186, ...
self.bistream_prefix = 'smb-'
def __init__ (self): connection.__init__(self,"tcp") self.state = { 'lastcmd': None, 'readcount': 0, 'stop': False, } self.buf = b'' self.outbuf = None self.fids = {} self.bistream_prefix = 'smb-' self.printer = b'' # spoolss file "queue"
25421a24103a2dc32edc55a3aeaa6a6f22c72e4b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8801/25421a24103a2dc32edc55a3aeaa6a6f22c72e4b/smb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 4672, 1459, 16186, 2738, 972, 12, 2890, 10837, 14832, 7923, 365, 18, 2019, 273, 288, 296, 2722, 4172, 4278, 599, 16, 296, 896, 1883, 4278, 374, 16, 296, 5681,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 4672, 1459, 16186, 2738, 972, 12, 2890, 10837, 14832, 7923, 365, 18, 2019, 273, 288, 296, 2722, 4172, 4278, 599, 16, 296, 896, 1883, 4278, 374, 16, 296, 5681,...
@param capability: enumeration with the following options: - DRIVERVERSION - TECHNOLOGY - HORZSIZE - VERTSIZE - HORZRES - VERTRES - LOGPIXELSX - LOGPIXELSY @return: device capability @rtype: int @type capability: int
@return: Capability dictionary; note that to conform with ECMA documentation, the key names are in upper case: - B{DRIVERVERSION} - Device driver version number. Value is always 1. - B{TECHNOLOGY} - Device technology available. Always returns DT_METAFILE - B{HORZSIZE} - Horizontal size of reference device in millime...
def GetDeviceCaps(self,capability): """
688318604ffe18a54bb261a3bde4bf6e1784a8de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8136/688318604ffe18a54bb261a3bde4bf6e1784a8de/pyemf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31102, 24193, 12, 2890, 16, 13568, 4672, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 31102, 24193, 12, 2890, 16, 13568, 4672, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Container(id,SERIES_CONTAINER_ID, brand.find('./{http://purl.org/dc/elements/1.1/}title').text)
Container(id,self,SERIES_CONTAINER_ID,brand.find('./{http://purl.org/dc/elements/1.1/}title').text)
def parse_data(self, xml_data): root = xml_data.getroot()
b05ff0a9e7f655cfa0f1e793ec877c71f81adbdc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11626/b05ff0a9e7f655cfa0f1e793ec877c71f81adbdc/bbc_storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 892, 12, 2890, 16, 2025, 67, 892, 4672, 1365, 273, 2025, 67, 892, 18, 588, 3085, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 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, 1109, 67, 892, 12, 2890, 16, 2025, 67, 892, 4672, 1365, 273, 2025, 67, 892, 18, 588, 3085, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if connType & self.CONN_SSL and proxy.requestProtocol == 'conary':
if connType * self.CONN_SSL and proxy.protocol == 'http':
def _getConnectionTypeEndpointProxy(self, endpoint, proxy): m = URLOpener.ConnectionManager._getConnectionTypeEndpointProxy connType, selector = m(self, endpoint, proxy) if proxy.requestProtocol in self.ConaryProxyProtocols: if connType & self.CONN_TUNNEL: # Conary proxies don't implement tunneling, so clear the bit c...
e580ae3c2b33c030aa37e6519cdca52e7f68f63b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8747/e580ae3c2b33c030aa37e6519cdca52e7f68f63b/transport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 1952, 559, 3293, 3886, 12, 2890, 16, 2494, 16, 2889, 4672, 312, 273, 225, 1618, 1502, 84, 708, 18, 1952, 1318, 6315, 588, 1952, 559, 3293, 3886, 1487, 559, 16, 3451, 273, 312...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 1952, 559, 3293, 3886, 12, 2890, 16, 2494, 16, 2889, 4672, 312, 273, 225, 1618, 1502, 84, 708, 18, 1952, 1318, 6315, 588, 1952, 559, 3293, 3886, 1487, 559, 16, 3451, 273, 312...
preOps = [
postOps = [
def infSitesMutate(pop, param): '''Apply an infinite mutation model''' (startPos, endPos, rate) = param # for each individual for ind in pop.individuals(): # for each homologous copy of chromosomes for p in range(2): # using a geometric distribution to determine # the first mutation location loc = GetRNG().randGeometri...
505ded08bbab01d6828bb201d31e079f6d9e3b55 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/505ded08bbab01d6828bb201d31e079f6d9e3b55/userGuide.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8286, 17055, 7420, 340, 12, 5120, 16, 579, 4672, 9163, 7001, 392, 14853, 11934, 938, 26418, 261, 1937, 1616, 16, 19809, 16, 4993, 13, 273, 579, 468, 364, 1517, 7327, 364, 1547, 316, 1843...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8286, 17055, 7420, 340, 12, 5120, 16, 579, 4672, 9163, 7001, 392, 14853, 11934, 938, 26418, 261, 1937, 1616, 16, 19809, 16, 4993, 13, 273, 579, 468, 364, 1517, 7327, 364, 1547, 316, 1843...
def set_playlist(self):
def get_playlist(self):
def set_playlist(self): file_list = [] for root, dirs, files in os.walk(self.media_dir): for file in files: s = file.split('.') ext = s[len(s)-1] if ext.lower() == self.channel.format and not '/.' in file: file_list.append(root + os.sep + file) file_list.sort() self.playlist = file_list
b5e9ba95fb119a579c4d9baa04a915d54abc16d6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12047/b5e9ba95fb119a579c4d9baa04a915d54abc16d6/deefuzzer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1601, 1098, 12, 2890, 4672, 585, 67, 1098, 273, 5378, 364, 1365, 16, 7717, 16, 1390, 316, 1140, 18, 11348, 12, 2890, 18, 5829, 67, 1214, 4672, 364, 585, 316, 1390, 30, 272, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1601, 1098, 12, 2890, 4672, 585, 67, 1098, 273, 5378, 364, 1365, 16, 7717, 16, 1390, 316, 1140, 18, 11348, 12, 2890, 18, 5829, 67, 1214, 4672, 364, 585, 316, 1390, 30, 272, ...
cleaner = CleanerBackend.Cleaner()
cleaner = bleachbit.CleanerBackend.Cleaner()
def cb_shred_file(self, action): """Callback for shredding a file"""
172134923f18cf7e444d183a0a73ebddceee0fa3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/172134923f18cf7e444d183a0a73ebddceee0fa3/GUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2875, 67, 674, 1118, 67, 768, 12, 2890, 16, 1301, 4672, 3536, 2428, 364, 699, 266, 449, 310, 279, 585, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2875, 67, 674, 1118, 67, 768, 12, 2890, 16, 1301, 4672, 3536, 2428, 364, 699, 266, 449, 310, 279, 585, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def load_cache(filename):
def mangle_key(key): return key def load_cache(filename,get_key=mangle_key):
def load_cache(filename): cache={} if not os.path.exists(filename): return cache f=open(filename,'r') l=0 for line in f.readlines(): l+=1 fields=line.split(' ') if fields==None or not len(fields)==2 or fields[0][0]!=':': sys.stderr.write('Invalid file format in [%s], line %d\n' % (filename,l)) continue # put key:value ...
8551771d2b3ce508a6d901f7cde6818d4e20e361 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12824/8551771d2b3ce508a6d901f7cde6818d4e20e361/hg2git.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 4341, 67, 856, 12, 856, 4672, 327, 498, 225, 1652, 1262, 67, 2493, 12, 3459, 16, 588, 67, 856, 33, 81, 4341, 67, 856, 4672, 1247, 12938, 309, 486, 1140, 18, 803, 18, 1808, 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, 312, 4341, 67, 856, 12, 856, 4672, 327, 498, 225, 1652, 1262, 67, 2493, 12, 3459, 16, 588, 67, 856, 33, 81, 4341, 67, 856, 4672, 1247, 12938, 309, 486, 1140, 18, 803, 18, 1808, 12, ...
self._append(Failure())
self._buffer.append(Failure())
def _process(self): """ pull values from the iterable and add them to the buffer """ try: self._iterable = iter(self._iterable) except: self._append(Failure()) else: try: while 1: self._buffer.append(self._iterable.next()) except StopIteration: pass except: self._append(Failure()) self._stop = 1
6dea9c8aa51573693da7fc94c124b0fba9dc7b06 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/6dea9c8aa51573693da7fc94c124b0fba9dc7b06/flow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 12, 2890, 4672, 3536, 6892, 924, 628, 326, 6087, 471, 527, 2182, 358, 326, 1613, 3536, 775, 30, 365, 6315, 15364, 273, 1400, 12, 2890, 6315, 15364, 13, 1335, 30, 365, 6315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 12, 2890, 4672, 3536, 6892, 924, 628, 326, 6087, 471, 527, 2182, 358, 326, 1613, 3536, 775, 30, 365, 6315, 15364, 273, 1400, 12, 2890, 6315, 15364, 13, 1335, 30, 365, 6315, ...
if not self.headers.has_key("Proxy-Authorization"):
if not self.check_proxy_auth():
def __init__(self, client, request, headers, content, nofilter): self.client = client self.request = request self.headers = headers if config["proxyuser"]: if not self.headers.has_key("Proxy-Authorization"): self.error(407, _("Proxy Authentication Required")) return auth = self.headers['Proxy-Authorization'] # XXX more...
d6835cc5191913e3d2e6a5c36b16f6b076d9fc6c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/d6835cc5191913e3d2e6a5c36b16f6b076d9fc6c/ClientServerMatchmaker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1004, 16, 590, 16, 1607, 16, 913, 16, 290, 792, 1088, 4672, 365, 18, 2625, 273, 1004, 365, 18, 2293, 273, 590, 365, 18, 2485, 273, 1607, 309, 642, 9614...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1004, 16, 590, 16, 1607, 16, 913, 16, 290, 792, 1088, 4672, 365, 18, 2625, 273, 1004, 365, 18, 2293, 273, 590, 365, 18, 2485, 273, 1607, 309, 642, 9614...
"task-specific-name=", "runtime-limit=",
"name=", "limit=",
def _task_build_params( task_name, argv, description="", help_specific_usage="", version=__revision__, specific_params=("", []), task_submit_elaborate_specific_parameter_fnc=None, task_submit_check_options_fnc=None): """ Build the BibTask params. @param argv a list of string as in sys.argv @param description is the gen...
83bf104f28b02316d29d8cf6f2faa75ad4726d30 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12027/83bf104f28b02316d29d8cf6f2faa75ad4726d30/bibtask.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4146, 67, 3510, 67, 2010, 12, 1562, 67, 529, 16, 5261, 16, 2477, 1546, 3113, 2809, 67, 12524, 67, 9167, 1546, 3113, 1177, 33, 972, 13057, 972, 16, 2923, 67, 2010, 33, 2932, 3113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4146, 67, 3510, 67, 2010, 12, 1562, 67, 529, 16, 5261, 16, 2477, 1546, 3113, 2809, 67, 12524, 67, 9167, 1546, 3113, 1177, 33, 972, 13057, 972, 16, 2923, 67, 2010, 33, 2932, 3113, ...
self.top.wm_deiconify() self.top.tkraise()
def close(self): self.top.wm_deiconify() self.top.tkraise() reply = self.maybesave() if reply != "cancel": self._close() return reply
68bb5d8c6ac691185a1e0d23e1b9e98464d8fd68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/68bb5d8c6ac691185a1e0d23e1b9e98464d8fd68/EditorWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 4332, 273, 365, 18, 24877, 70, 281, 836, 1435, 309, 4332, 480, 315, 10996, 6877, 365, 6315, 4412, 1435, 327, 4332, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 1746, 12, 2890, 4672, 4332, 273, 365, 18, 24877, 70, 281, 836, 1435, 309, 4332, 480, 315, 10996, 6877, 365, 6315, 4412, 1435, 327, 4332, 2, -100, -100, -100, -100, -100, -100, -100, -100...
def VisualizeNet(net,xy,coloredvertices=False,equalsize=False,labels={},showAllNodes=True,vcolor=[1.0,1.0,1.0],vsize=1.0,nodeColors={},bgcolor='white',maxwidth=2.0,minwidth=0.2,uselabels='none',edgeColorMap='winter',weightLimits='none'):
def VisualizeNet(net,xy,figsize=(6,6),coloredvertices=False,equalsize=False,labels={},showAllNodes=True,vcolor=[1.0,1.0,1.0],vsize=1.0,nodeColors={},bgcolor='white',maxwidth=2.0,minwidth=0.2,uselabels='none',edgeColorMap='winter',weightLimits='none'):
def VisualizeNet(net,xy,coloredvertices=False,equalsize=False,labels={},showAllNodes=True,vcolor=[1.0,1.0,1.0],vsize=1.0,nodeColors={},bgcolor='white',maxwidth=2.0,minwidth=0.2,uselabels='none',edgeColorMap='winter',weightLimits='none'): ''' Visualizes a network. Inputs: net = network to be visualized (of type SymmNe...
c16fe22866cce6c3aabc203d3b2bf1cd6e8eb553 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/768/c16fe22866cce6c3aabc203d3b2bf1cd6e8eb553/visuals.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26832, 554, 7308, 12, 2758, 16, 1698, 16, 470, 1467, 28657, 26, 16, 26, 3631, 1293, 7653, 17476, 33, 8381, 16, 14963, 554, 33, 8381, 16, 5336, 28793, 4500, 1595, 3205, 33, 5510, 16, 90...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26832, 554, 7308, 12, 2758, 16, 1698, 16, 470, 1467, 28657, 26, 16, 26, 3631, 1293, 7653, 17476, 33, 8381, 16, 14963, 554, 33, 8381, 16, 5336, 28793, 4500, 1595, 3205, 33, 5510, 16, 90...
bpnum = int(args[0].strip())
try: bpnum = int(args[0].strip()) except ValueError: print >>self.stdout, \ 'Breakpoint index %r is not a number' % args[0]
def do_ignore(self,arg): """arg is bp number followed by ignore count.""" args = arg.split() bpnum = int(args[0].strip()) try: count = int(args[1].strip()) except: count = 0 bp = bdb.Breakpoint.bpbynumber[bpnum] if bp: bp.ignore = count if count > 0: reply = 'Will ignore next ' if count > 1: reply = reply + '%d crossin...
1e4bb440488e7b982c62fe117cd5409402818d02 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/1e4bb440488e7b982c62fe117cd5409402818d02/pdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 6185, 12, 2890, 16, 3175, 4672, 3536, 3175, 353, 9107, 1300, 10860, 635, 2305, 1056, 12123, 833, 273, 1501, 18, 4939, 1435, 775, 30, 9107, 2107, 273, 509, 12, 1968, 63, 20, 80...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 6185, 12, 2890, 16, 3175, 4672, 3536, 3175, 353, 9107, 1300, 10860, 635, 2305, 1056, 12123, 833, 273, 1501, 18, 4939, 1435, 775, 30, 9107, 2107, 273, 509, 12, 1968, 63, 20, 80...
product = self.pool.get('product.product').read(cr, uid, r['product_id'], [field_to_read,'standard_price'], context=c)
product = self.pool.get('product.product').read(cr, uid, r['product_id'], [field_to_read, 'standard_price'], context=c)
def product_detail(self, cr, uid, id, field, context={}): res = {} res[id] = {} final_value = 0.0 field_to_read = 'virtual_available' if field == 'stock_real_value': field_to_read = 'qty_available' cr.execute('select distinct product_id from stock_move where (location_id=%s) or (location_dest_id=%s)',(id,id)) result = ...
369221b47101072e094ad2d02fe2edd2b47690aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/369221b47101072e094ad2d02fe2edd2b47690aa/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3017, 67, 8992, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 652, 16, 819, 12938, 4672, 400, 273, 2618, 400, 63, 350, 65, 273, 2618, 727, 67, 1132, 273, 374, 18, 20, 652, 67, 869, 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, 3017, 67, 8992, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 652, 16, 819, 12938, 4672, 400, 273, 2618, 400, 63, 350, 65, 273, 2618, 727, 67, 1132, 273, 374, 18, 20, 652, 67, 869, 67...
if os.access(chapter.props.video_name, os.F_OK): print " video %s already exists" % chapter.props.video_name
if not chapter.remake and os.access(chapter.video_name, os.F_OK): print " video %s already exists" % chapter.video_name
def __check_video(self, chapter): print " creating video %s" % chapter.props.video_name yuv_cmd = "jpeg2yuv -v 0 -f 25 -I p -j '%s' " mpeg_cmd = "mpeg2enc -v 0 -a 2 -n p -f 4 -o '%s'" if os.access(chapter.props.video_name, os.F_OK): print " video %s already exists" % chapter.props.video_name return
197c33d735d49bab858cd4dda3c7f019e3dd0db3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2675/197c33d735d49bab858cd4dda3c7f019e3dd0db3/VideoCD.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1893, 67, 9115, 12, 2890, 16, 23580, 4672, 1172, 315, 4979, 6191, 738, 87, 6, 738, 23580, 18, 9693, 18, 9115, 67, 529, 677, 16303, 67, 4172, 273, 315, 14423, 22, 93, 16303, 300, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1893, 67, 9115, 12, 2890, 16, 23580, 4672, 1172, 315, 4979, 6191, 738, 87, 6, 738, 23580, 18, 9693, 18, 9115, 67, 529, 677, 16303, 67, 4172, 273, 315, 14423, 22, 93, 16303, 300, ...
The method name will be the lowercase version of field name. The method would return relationships in the same format of the PkgRel' rels property.
The method name will be the lowercase version of field name; '-' will be mangled as '_'. The method would return relationships in the same format of the PkgRel' rels property.
def rels(self): """Get raw package relationships
9a8f1b1d3c6e47c614d72d400455e2e43580e865 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12282/9a8f1b1d3c6e47c614d72d400455e2e43580e865/deb822.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19214, 12, 2890, 4672, 3536, 967, 1831, 2181, 11499, 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, 19214, 12, 2890, 4672, 3536, 967, 1831, 2181, 11499, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return s.replace(SAGE_BEGIN,'').replace(SAGE_END,'').replace(SC)
return s.replace(SAGE_BEGIN,'').replace(SAGE_END,'').replace(SC,'')
def _process_output(self, s): s = re.sub('\x08.','',s) s = self._strip_synchro_from_start_of_output(s) if SAGE_ERROR in s: i = s.rfind('>>>') if i >= 0: return s[:i-1] # Remove any control codes that might have not got stripped out. return s.replace(SAGE_BEGIN,'').replace(SAGE_END,'').replace(SC)
51910203590d9891b39901ce860aa12bc977ea30 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/51910203590d9891b39901ce860aa12bc977ea30/worksheet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 67, 2844, 12, 2890, 16, 272, 4672, 272, 273, 283, 18, 1717, 2668, 64, 92, 6840, 1093, 11189, 2187, 87, 13, 272, 273, 365, 6315, 6406, 67, 87, 2515, 303, 67, 2080, 67, 1937...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 67, 2844, 12, 2890, 16, 272, 4672, 272, 273, 283, 18, 1717, 2668, 64, 92, 6840, 1093, 11189, 2187, 87, 13, 272, 273, 365, 6315, 6406, 67, 87, 2515, 303, 67, 2080, 67, 1937...
\end{enumerate} \item Currently this function seems to allow you to ask for exp to
-- Currently this function seems to allow you to ask for exp to
def exp(self, prec = infinity): r""" Returns exp of this power series to the indicated precision.
0c96eb02e071f5846596c353978e1e2460db622c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/0c96eb02e071f5846596c353978e1e2460db622c/power_series_ring_element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1329, 12, 2890, 16, 13382, 273, 27272, 4672, 436, 8395, 2860, 1329, 434, 333, 7212, 4166, 358, 326, 17710, 6039, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1329, 12, 2890, 16, 13382, 273, 27272, 4672, 436, 8395, 2860, 1329, 434, 333, 7212, 4166, 358, 326, 17710, 6039, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return result
return result
def fleet_id_change(self, cr, uid, ids, order_fleet_id=False, fleet_id=False, product_id=False, maintenance_start_date=False, maintenance_product_qty=False): result = {} result['value'] = {} fleet_id = order_fleet_id or fleet_id if fleet_id: fleet = self.pool.get('stock.location').browse(cr, uid, fleet_id) if fleet.e...
1bb7cb71fd72ec0532c769a8014f977fe3ab88c2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/1bb7cb71fd72ec0532c769a8014f977fe3ab88c2/sale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19764, 67, 350, 67, 3427, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 1353, 67, 74, 8270, 67, 350, 33, 8381, 16, 19764, 67, 350, 33, 8381, 16, 3017, 67, 350, 33, 8381, 16, 18388, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19764, 67, 350, 67, 3427, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 1353, 67, 74, 8270, 67, 350, 33, 8381, 16, 19764, 67, 350, 33, 8381, 16, 3017, 67, 350, 33, 8381, 16, 18388, 6...
['C1_1S', 'C1_2S', 'C1_3S', 'C1_4XXXX', 'C2_1S']
['C1_S', 'C1_S', 'C1_S', 'C1_XXXX', 'C2_S', 'Si1_S']
def normalise_aonames(self,listoflines): """Normalise the aonames attribute to agree with the other parsers.
cf56ff91267bc593fd401851bb342d43a84b71c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8167/cf56ff91267bc593fd401851bb342d43a84b71c2/gamessparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25475, 67, 69, 265, 753, 12, 2890, 16, 1098, 792, 3548, 4672, 3536, 5506, 784, 326, 279, 265, 753, 1566, 358, 1737, 992, 598, 326, 1308, 14212, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 25475, 67, 69, 265, 753, 12, 2890, 16, 1098, 792, 3548, 4672, 3536, 5506, 784, 326, 279, 265, 753, 1566, 358, 1737, 992, 598, 326, 1308, 14212, 18, 2, -100, -100, -100, -100, -100, -10...
self.raw.tofile(str(url))
self.raw.tofile(str(url.path))
def save(self, url): if self.mmap: self.mmap.flush() self.mmap.sync() else: self.raw.tofile(str(url))
afd2203340ef7575d24329f58d8d35adc5a63ed2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/afd2203340ef7575d24329f58d8d35adc5a63ed2/cube.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 880, 4672, 309, 365, 18, 81, 1458, 30, 365, 18, 81, 1458, 18, 11330, 1435, 365, 18, 81, 1458, 18, 8389, 1435, 469, 30, 365, 18, 1899, 18, 869, 768, 12, 701, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 880, 4672, 309, 365, 18, 81, 1458, 30, 365, 18, 81, 1458, 18, 11330, 1435, 365, 18, 81, 1458, 18, 8389, 1435, 469, 30, 365, 18, 1899, 18, 869, 768, 12, 701, 12,...
self.setup_form()
def __init__(self, *args): base.Renderer.__init__(self, *args) self.setup_form()
3df24dfa5b26980d27bd0bae9649ed8069f962a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9843/3df24dfa5b26980d27bd0bae9649ed8069f962a7/channelsubscribe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 1026, 18, 6747, 16186, 2738, 972, 12, 2890, 16, 380, 1968, 13, 365, 18, 8401, 67, 687, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 1026, 18, 6747, 16186, 2738, 972, 12, 2890, 16, 380, 1968, 13, 365, 18, 8401, 67, 687, 1435, 2, -100, -100, -100, -100, -100, -100, -100...
if v.GetCaptured() > 2: t = time.millitimer() - t0 cd, st = v.GetCaptureData() data = cd.interleave(x, y) cd.UnlockCaptureData() buffer.append(data, t) else: time.millisleep(10) v.StopCapture() while v.GetCaptured() > 0: t = time.millitimer() - t0 cd, st = v.GetCaptureData() data = cd.interleave(x, y)
try: cd, id = v.GetCaptureData() except RuntimeError: time.millisleep(10) continue id = id + 2*rate lastid = id data = cd.InterleaveFields(1)
def record(v, filename, audiofilename): import thread x, y = gl.getsize() vout = VFile.VoutFile().init(filename) vout.format = 'rgb8' vout.width = x vout.height = y vout.writeheader() buffer = [] thread.start_new_thread(saveframes, (vout, buffer)) if audiofilename: initaudio(audiofilename, buffer) gl.wintitle('(rec) ' ...
15728b345d96a6162fd564e1c123ee9961ee23dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/15728b345d96a6162fd564e1c123ee9961ee23dc/Vrec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1409, 12, 90, 16, 1544, 16, 20232, 77, 792, 2550, 4672, 1930, 2650, 619, 16, 677, 273, 5118, 18, 588, 1467, 1435, 331, 659, 273, 776, 812, 18, 58, 659, 812, 7675, 2738, 12, 3459, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1409, 12, 90, 16, 1544, 16, 20232, 77, 792, 2550, 4672, 1930, 2650, 619, 16, 677, 273, 5118, 18, 588, 1467, 1435, 331, 659, 273, 776, 812, 18, 58, 659, 812, 7675, 2738, 12, 3459, 13,...
a : array_like of string_ or unicode_ Returns ------- out : ndarray Output array of booleans
a : array_like of str or unicode Returns ------- out : ndarray Output array of bools
def isspace(a): """ Returns true for each element if there are only whitespace characters in the string and there is at least one character, false otherwise. Calls `str.isspace` element-wise. For 8-bit strings, this method is locale-dependent. Parameters ---------- a : array_like of string_ or unicode_ Returns ----...
05324d0e986a1012a342e2650b3883e13a285029 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/05324d0e986a1012a342e2650b3883e13a285029/defchararray.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 2981, 12, 69, 4672, 3536, 2860, 638, 364, 1517, 930, 309, 1915, 854, 1338, 7983, 3949, 316, 326, 533, 471, 1915, 353, 622, 4520, 1245, 3351, 16, 629, 3541, 18, 225, 23665, 1375, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 2981, 12, 69, 4672, 3536, 2860, 638, 364, 1517, 930, 309, 1915, 854, 1338, 7983, 3949, 316, 326, 533, 471, 1915, 353, 622, 4520, 1245, 3351, 16, 629, 3541, 18, 225, 23665, 1375, 7...
raise Error, 'either pass a family arguement or call set_family on this object'
raise Error, 'either pass a family argument or call set_family on this object'
def _check_family(self, family): if family is not None: return family else: family = self.current if family is None: raise Error, 'either pass a family arguement or call set_family on this object' return family
2cc9feb07806c2cc82ccda483b99a1f4d8349049 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2558/2cc9feb07806c2cc82ccda483b99a1f4d8349049/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 9309, 12, 2890, 16, 6755, 4672, 309, 6755, 353, 486, 599, 30, 327, 6755, 469, 30, 6755, 273, 365, 18, 2972, 309, 6755, 353, 599, 30, 1002, 1068, 16, 296, 73, 2927, 134...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 1893, 67, 9309, 12, 2890, 16, 6755, 4672, 309, 6755, 353, 486, 599, 30, 327, 6755, 469, 30, 6755, 273, 365, 18, 2972, 309, 6755, 353, 599, 30, 1002, 1068, 16, 296, 73, 2927, 134...
self.labelWidgets[g].grid(column=colIndex*2, row=colCount%colParam+1, padx=10, rowspan = len(opt['chooseOneOf']), sticky=tk.E) self.entryWidgets[g] = tk.Listbox(self.app, width=40, selectmode=tk.SINGLE, \ exportselection=0, height=len(opt['chooseOneOf'])) self.entryWidgets[g].grid(column=colIndex*2+1, row=colCount%colP...
self.labelWidgets[g].grid(column=colIndex*2, row=rowIndex%numRows+1, padx=5, rowspan = height, sticky=tk.E) self.entryWidgets[g] = tk.Listbox(self.app, selectmode=tk.SINGLE, exportselection=0, height = height) self.entryWidgets[g].grid(column=colIndex*2+1, row=rowIndex%numRows+1, padx=5, rowspan = height) rowIndex += h...
def createDialog(self): self.app = tk.Tk() self.app.protocol('WM_DELETE_WINDOW', self.denyWindowManagerClose) self.app.title(self.title) self.app.iconname('Dialog') self.app.geometry("+300+200") # # the main window # self.entryWidgets = [None]*len(self.options) self.labelWidgets = [None]*len(self.options) self.app.bind...
b8dc92ef8ad792606f004235722b9585e2bbe014 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/401/b8dc92ef8ad792606f004235722b9585e2bbe014/simuOpt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 6353, 12, 2890, 4672, 365, 18, 2910, 273, 13030, 18, 56, 79, 1435, 365, 18, 2910, 18, 8373, 2668, 25173, 67, 6460, 67, 23407, 2187, 365, 18, 13002, 93, 3829, 1318, 4605, 13, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 6353, 12, 2890, 4672, 365, 18, 2910, 273, 13030, 18, 56, 79, 1435, 365, 18, 2910, 18, 8373, 2668, 25173, 67, 6460, 67, 23407, 2187, 365, 18, 13002, 93, 3829, 1318, 4605, 13, 365, ...
print 2
def undoMoves (self, moves, gamemodel): if self.ready: if self.mode not in (ANALYZING, INVERSE_ANALYZING): if self.board: print 1 self.movecon.acquire() print 2 try: self.hurry() self.force() self.movecon.wait() finally: self.movecon.release() else: self.force() self.changeLock.acquire() try: for i in xrange(moves): ...
5d88ea2ebdb97e54fd069ee3310d267ec4c8deba /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5339/5d88ea2ebdb97e54fd069ee3310d267ec4c8deba/CECPEngine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15436, 19297, 261, 2890, 16, 13934, 16, 7920, 2284, 4672, 309, 365, 18, 1672, 30, 309, 365, 18, 3188, 486, 316, 261, 1258, 19448, 62, 1360, 16, 2120, 28489, 67, 1258, 19448, 62, 1360, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15436, 19297, 261, 2890, 16, 13934, 16, 7920, 2284, 4672, 309, 365, 18, 1672, 30, 309, 365, 18, 3188, 486, 316, 261, 1258, 19448, 62, 1360, 16, 2120, 28489, 67, 1258, 19448, 62, 1360, ...
result=self.getUser(id) return result.__of__(self)
return self.getUser(id)
def getUserById(self, id, default=_marker): """Return the user corresponding to the given id. """ # The connection between getting by ID and by name is not a strong # one try: result=self.getUser(id) return result.__of__(self) # Wrap in our context except: if default is _marker: raise return default
99272e487ca4223ec3efc995fdf17d7add020fdd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/99272e487ca4223ec3efc995fdf17d7add020fdd/User.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4735, 5132, 12, 2890, 16, 612, 16, 805, 33, 67, 11145, 4672, 3536, 990, 326, 729, 4656, 358, 326, 864, 612, 18, 3536, 468, 1021, 1459, 3086, 8742, 635, 1599, 471, 635, 508, 353, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4735, 5132, 12, 2890, 16, 612, 16, 805, 33, 67, 11145, 4672, 3536, 990, 326, 729, 4656, 358, 326, 864, 612, 18, 3536, 468, 1021, 1459, 3086, 8742, 635, 1599, 471, 635, 508, 353, 486, ...
h = hash(a) h, d = divmod(h, 256) h = h & 0xffffff x = (x^h^d) & 255 h = h>>8 y = (y^h^d) & 255 h = h>>8 z = (z^h^d) & 255 whrandom.seed(x, y, z)
x = 69069 * x + hash(a) random.seed(x)
def main(): """Main program when invoked as a script. One argument: tabulate a single row. Two arguments: tabulate a range (inclusive). Extra arguments are used to seed the random generator. """ # default range (inclusive) k1 = 15 k2 = 19 if sys.argv[1:]: # one argument: single point k1 = k2 = int(sys.argv[1]) if sys...
8b6ec79b74284873696b24ab979fb1cb579b86f8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8b6ec79b74284873696b24ab979fb1cb579b86f8/sortperf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6376, 5402, 1347, 8187, 487, 279, 2728, 18, 225, 6942, 1237, 30, 3246, 6243, 279, 2202, 1027, 18, 16896, 1775, 30, 3246, 6243, 279, 1048, 261, 267, 9173, 2934, 13592, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5402, 1347, 8187, 487, 279, 2728, 18, 225, 6942, 1237, 30, 3246, 6243, 279, 2202, 1027, 18, 16896, 1775, 30, 3246, 6243, 279, 1048, 261, 267, 9173, 2934, 13592, ...
security.declareProtected(CMFCorePermissions.ModifyPortalContent,
security.declareProtected(permissions.ModifyPortalContent,
def _editMetadata(self , title=_marker , subject=_marker , description=_marker , contributors=_marker , effective_date=_marker , expiration_date=_marker , format=_marker , language=_marker , rights=_marker ): """ Update the editable metadata for this resource. """ if title is not _marker: self.setTitle( title ) if subj...
bffbf06ccb0e344dcf82f7addf15838da46c2ba5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/bffbf06ccb0e344dcf82f7addf15838da46c2ba5/ExtensibleMetadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4619, 2277, 12, 2890, 269, 2077, 33, 67, 11145, 269, 3221, 33, 67, 11145, 269, 2477, 33, 67, 11145, 269, 13608, 13595, 33, 67, 11145, 269, 11448, 67, 712, 33, 67, 11145, 269, 7686...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4619, 2277, 12, 2890, 269, 2077, 33, 67, 11145, 269, 3221, 33, 67, 11145, 269, 2477, 33, 67, 11145, 269, 13608, 13595, 33, 67, 11145, 269, 11448, 67, 712, 33, 67, 11145, 269, 7686...
FROM ticket t,enum p WHERE p.name=t.priority AND p.type='priority'
FROM ticket t LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority'
def get_reports(db): owner = db.concat('owner', "' *'") return (
ca75c5c2fb49333cbc034a710106bdf6d9009566 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/ca75c5c2fb49333cbc034a710106bdf6d9009566/db_default.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 20195, 12, 1966, 4672, 3410, 273, 1319, 18, 16426, 2668, 8443, 2187, 2491, 380, 4970, 13, 327, 261, 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, 336, 67, 20195, 12, 1966, 4672, 3410, 273, 1319, 18, 16426, 2668, 8443, 2187, 2491, 380, 4970, 13, 327, 261, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
debug(HURT_ME_PLENTY, "JS: read", len(data))
debug(HURT_ME_PLENTY, "JS: read", len(data), "<=", url)
def jsScriptData (self, data, url, ver): assert self.state=='wait' if data is None: if not self.script: print >> sys.stderr, "empty JS src", url elif self.jsScript(self.script, ver): print >> sys.stderr, "JS popup src", url else: self.buf.append([STARTTAG, "script", {'type': 'text/javascript'}]) self.buf.append([DATA, ...
89b79386924e75b2a16ac8ce4c732a86c3d9ed2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/89b79386924e75b2a16ac8ce4c732a86c3d9ed2d/Rewriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3828, 3651, 751, 261, 2890, 16, 501, 16, 880, 16, 1924, 4672, 1815, 365, 18, 2019, 18920, 7048, 11, 309, 501, 353, 599, 30, 309, 486, 365, 18, 4263, 30, 1172, 1671, 2589, 18, 11241, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3828, 3651, 751, 261, 2890, 16, 501, 16, 880, 16, 1924, 4672, 1815, 365, 18, 2019, 18920, 7048, 11, 309, 501, 353, 599, 30, 309, 486, 365, 18, 4263, 30, 1172, 1671, 2589, 18, 11241, ...
hash_a1 = md5.new(':'.join([pairs['username'], realm, password])).hexdigest() hash_a2 = md5.new(':'.join([self.command, pairs['uri']])).hexdigest()
hash_a1 = _new_md5(':'.join([pairs['username'], realm, password])).hexdigest() hash_a2 = _new_md5(':'.join([self.command, pairs['uri']])).hexdigest()
def AuthDigestHandler(self): """This handler tests 'Digest' authentication. It just sends a page with title 'user/pass' if you succeed."""
827fe44000f83d9801e04fd169054b99f5dc7068 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/827fe44000f83d9801e04fd169054b99f5dc7068/testserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3123, 9568, 1503, 12, 2890, 4672, 3536, 2503, 1838, 7434, 296, 9568, 11, 5107, 18, 225, 2597, 2537, 9573, 279, 1363, 598, 2077, 296, 1355, 19, 5466, 11, 309, 1846, 12897, 12123, 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, 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, 3123, 9568, 1503, 12, 2890, 4672, 3536, 2503, 1838, 7434, 296, 9568, 11, 5107, 18, 225, 2597, 2537, 9573, 279, 1363, 598, 2077, 296, 1355, 19, 5466, 11, 309, 1846, 12897, 12123, 2, -100,...
document.body[i : i+4] = substi
document.body[i:i + 4] = substi
def revert_vphantom(document): " Reverts vphantom to ERT " i = 0 j = 0 while True: i = find_token(document.body, "\\begin_inset Phantom VPhantom", i) if i == -1: return substi = document.body[i].replace('\\begin_inset Phantom VPhantom', \ '\\begin_inset ERT\nstatus collapsed\n\n' \ '\\begin_layout Plain Layout\n\n\n\\b...
bcd8b9a1f1241c461beb5db1d5a69424a9a25950 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7514/bcd8b9a1f1241c461beb5db1d5a69424a9a25950/lyx_2_0.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 90, 844, 16317, 12, 5457, 4672, 315, 868, 31537, 331, 844, 16317, 358, 4232, 56, 315, 277, 273, 374, 525, 273, 374, 1323, 1053, 30, 277, 273, 1104, 67, 2316, 12, 5457, 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, 15226, 67, 90, 844, 16317, 12, 5457, 4672, 315, 868, 31537, 331, 844, 16317, 358, 4232, 56, 315, 277, 273, 374, 525, 273, 374, 1323, 1053, 30, 277, 273, 1104, 67, 2316, 12, 5457, 18, ...
def sendCreateAccountEmail(self, p_name, p_email, p_username, REQUEST):
def sendCreateAccountEmail(self, p_to, p_name, p_email, p_organisation, p_username, p_location_path, p_location_title, p_comments):
def sendCreateAccountEmail(self, p_name, p_email, p_username, REQUEST): #sends a confirmation email to the newlly created account's owner email_template = self.getEmailTool()._getOb('email_createaccount') l_subject = email_template.title l_content = email_template.body l_content = l_content.replace('@@PORTAL_URL@@', se...
5fdb194b5cc07d6dac0cf0ddee3d4bfd8e6e814f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3287/5fdb194b5cc07d6dac0cf0ddee3d4bfd8e6e814f/CHMSite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 1684, 3032, 4134, 12, 2890, 16, 293, 67, 869, 16, 293, 67, 529, 16, 293, 67, 3652, 16, 293, 67, 22543, 10742, 16, 293, 67, 5053, 16, 293, 67, 3562, 67, 803, 16, 293, 67, 3562...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 1684, 3032, 4134, 12, 2890, 16, 293, 67, 869, 16, 293, 67, 529, 16, 293, 67, 3652, 16, 293, 67, 22543, 10742, 16, 293, 67, 5053, 16, 293, 67, 3562, 67, 803, 16, 293, 67, 3562...
self.ssl = self.metadata['url'].startswith('https:') url = self.metadata['url'][7:] path_start = url.find('/') if path_start == -1: self.host = url self.path = '/' else: self.host = url[:path_start] self.path = url[path_start:]
def __init__(self, input_file): try: # Read the configuration file config_path = os.path.expanduser('~/.zope-external-edit') self.config = Configuration(config_path)
8e7910ad15aeebcf5888219fb97f14d30975b27f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/8e7910ad15aeebcf5888219fb97f14d30975b27f/zopeedit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 810, 67, 768, 4672, 775, 30, 468, 2720, 326, 1664, 585, 642, 67, 803, 273, 1140, 18, 803, 18, 12320, 1355, 2668, 98, 15865, 94, 1306, 17, 9375, 17, 461...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 810, 67, 768, 4672, 775, 30, 468, 2720, 326, 1664, 585, 642, 67, 803, 273, 1140, 18, 803, 18, 12320, 1355, 2668, 98, 15865, 94, 1306, 17, 9375, 17, 461...