rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
if feat.GetStyleString() != 'LABEL(f:"Arial",t:"Test",a:30,s:5g,p:7,c:
if feat.GetStyleString() != 'LABEL(f:"Arial",t:"Test",a:30,s:5g,p:7,c:
def ogr_dxf_6(): feat = gdaltest.dxf_layer.GetNextFeature() if ogrtest.check_feature_geometry( feat, 'POINT (84 126 0)' ): return 'fail' if feat.GetStyleString() != 'LABEL(f:"Arial",t:"Test",a:30,s:5g,p:7,c:#ffffff)': print(feat.GetStyleString()) gdaltest.post_reason( 'got wrong style string' ) return 'fail' feat.D...
1946400d008d9fc47da2f312a081d8c4bbd496e4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10290/1946400d008d9fc47da2f312a081d8c4bbd496e4/ogr_dxf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 320, 3197, 67, 72, 5841, 67, 26, 13332, 225, 11002, 273, 15551, 2390, 395, 18, 72, 5841, 67, 6363, 18, 967, 2134, 4595, 1435, 225, 309, 320, 3197, 3813, 18, 1893, 67, 7238, 67, 14330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 320, 3197, 67, 72, 5841, 67, 26, 13332, 225, 11002, 273, 15551, 2390, 395, 18, 72, 5841, 67, 6363, 18, 967, 2134, 4595, 1435, 225, 309, 320, 3197, 3813, 18, 1893, 67, 7238, 67, 14330, ...
partyName = u"Assembly summer 2009"
partyName = config.partyName
def __call__(self, filename, _prefix=None): return grokcore.view.components.PageTemplate( filename=filename, _prefix=_prefix )
83cde407d7d48e759eec11ec4adf76344bff6e4b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/111/83cde407d7d48e759eec11ec4adf76344bff6e4b/app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1544, 16, 389, 3239, 33, 7036, 4672, 327, 314, 3250, 3644, 18, 1945, 18, 8119, 18, 1964, 2283, 12, 1544, 33, 3459, 16, 389, 3239, 33, 67, 3239, 262, 2,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1544, 16, 389, 3239, 33, 7036, 4672, 327, 314, 3250, 3644, 18, 1945, 18, 8119, 18, 1964, 2283, 12, 1544, 33, 3459, 16, 389, 3239, 33, 67, 3239, 262, 2,...
self.parser.phase.processStartTag(name, attributes)
self.parser.phase.processEndTag(name)
def endTagTable(self, name): self.parser.parseError() ignoreEndTag = self.ignoreEndTagCaption() self.parser.phase.processEndTag("caption") if not ignoreEndTag: self.parser.phase.processStartTag(name, attributes)
046a1fd80b554501d89802bc9123c41b1e1558a3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4487/046a1fd80b554501d89802bc9123c41b1e1558a3/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 1388, 12, 2890, 16, 508, 4672, 365, 18, 4288, 18, 2670, 668, 1435, 2305, 25633, 273, 365, 18, 6185, 25633, 21158, 1435, 365, 18, 4288, 18, 13961, 18, 2567, 25633, 2932, 15386, 792...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 1388, 12, 2890, 16, 508, 4672, 365, 18, 4288, 18, 2670, 668, 1435, 2305, 25633, 273, 365, 18, 6185, 25633, 21158, 1435, 365, 18, 4288, 18, 13961, 18, 2567, 25633, 2932, 15386, 792...
default=None, help="target build arch")
default=None, help="target build arch")
def command_parse(): """return options and args from parsing the command line""" usage = """ usage: mock [options] /path/to/srpm optional commands: chroot - run the specified command within the chroot clean - clean out the specified chroot init - initialize the chroot, do not build anything""" parser = OptionParser(us...
0da82906230f2f357462d9d3c9cd62ce6a934eec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7328/0da82906230f2f357462d9d3c9cd62ce6a934eec/mock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1296, 67, 2670, 13332, 3536, 2463, 702, 471, 833, 628, 5811, 326, 1296, 980, 8395, 225, 4084, 273, 3536, 4084, 30, 5416, 306, 2116, 65, 342, 803, 19, 869, 19, 11254, 7755, 3129, 4364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2670, 13332, 3536, 2463, 702, 471, 833, 628, 5811, 326, 1296, 980, 8395, 225, 4084, 273, 3536, 4084, 30, 5416, 306, 2116, 65, 342, 803, 19, 869, 19, 11254, 7755, 3129, 4364, ...
selected = self.__get_selected_row_metadata(treeview)
selected = self.get_selected_row_metadata()
def on_drag_data_get(self, treeview, drag_context, data, info, time): selected = self.__get_selected_row_metadata(treeview) d = [] for metadata in selected: d.append(metadata.encode_as_string()) data_string = "&&".join(d) if DEBUG: debug_trace("on_drag_data_get: send data %s" % data_string, sender=self) data.set(data.t...
c53ab5980eab6bc66121ddbad3807ad1581e7164 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2271/c53ab5980eab6bc66121ddbad3807ad1581e7164/MTPnavigatorGui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 15997, 67, 892, 67, 588, 12, 2890, 16, 2151, 1945, 16, 8823, 67, 2472, 16, 501, 16, 1123, 16, 813, 4672, 3170, 273, 365, 18, 588, 67, 8109, 67, 492, 67, 4165, 1435, 302, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 15997, 67, 892, 67, 588, 12, 2890, 16, 2151, 1945, 16, 8823, 67, 2472, 16, 501, 16, 1123, 16, 813, 4672, 3170, 273, 365, 18, 588, 67, 8109, 67, 492, 67, 4165, 1435, 302, 2...
mapping=dict(numberadded=str(added),))
mapping=dict(numberadded=str(added),))
def _addItem(self, data): """imports csv and returns message
6a225131d5814f4fcaf8f720f43c7e7816ee8a6b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9843/6a225131d5814f4fcaf8f720f43c7e7816ee8a6b/channel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 1180, 12, 2890, 16, 501, 4672, 3536, 21350, 6101, 471, 1135, 883, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 1180, 12, 2890, 16, 501, 4672, 3536, 21350, 6101, 471, 1135, 883, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for format in ('%Y-%m-%d',
for format in ('%Y-%m-%d %H:%M:%S', '%Y-%m-%d',
def _dateConvertFromDB(d): if d==None: return None for format in ('%Y-%m-%d', # Y/M/D '%H:%M:%S', # hh:mm:ss '%H:%M', # hh:mm '%Y-%m'): # Y-M try: return DateTime.strptime(d, format) except: pass dashind = max(d.rfind('-'), d.rfind('+')) tz = d[dashind:] d = d[:dashind] #maybe it has a miliseconds ? dotind = ...
49e9959848d7e2577a2030348a986cd20779dbf7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5832/49e9959848d7e2577a2030348a986cd20779dbf7/postconn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 712, 2723, 1265, 2290, 12, 72, 4672, 309, 302, 631, 7036, 30, 327, 599, 225, 364, 740, 316, 7707, 9, 61, 6456, 81, 6456, 72, 738, 44, 5319, 49, 5319, 55, 2187, 1995, 61, 6456, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 712, 2723, 1265, 2290, 12, 72, 4672, 309, 302, 631, 7036, 30, 327, 599, 225, 364, 740, 316, 7707, 9, 61, 6456, 81, 6456, 72, 738, 44, 5319, 49, 5319, 55, 2187, 1995, 61, 6456, ...
c.query = self.form_result.get("serp_q")
c.query = self.form_result.get("serp_q", u"*")
def query(self): require.proposal.index() c.query = self.form_result.get("serp_q") self._query_pager() return formencode.htmlfill.render(render("search/results.html"), {'q': c.query, 'serp_q': c.query})
56f5e57ba62d4b4764e451041152bb3e3b1734ac /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10360/56f5e57ba62d4b4764e451041152bb3e3b1734ac/search.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 12, 2890, 4672, 2583, 18, 685, 8016, 18, 1615, 1435, 276, 18, 2271, 273, 365, 18, 687, 67, 2088, 18, 588, 2932, 550, 84, 67, 85, 3113, 582, 6, 7388, 13, 365, 6315, 2271, 67, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 12, 2890, 4672, 2583, 18, 685, 8016, 18, 1615, 1435, 276, 18, 2271, 273, 365, 18, 687, 67, 2088, 18, 588, 2932, 550, 84, 67, 85, 3113, 582, 6, 7388, 13, 365, 6315, 2271, 67, 2...
command = config["transfers"]["afterfolder"].replace("$", utils.escapeCommand(folder)) os.system("%s &" % command)
command = [x.replace("$", folder) for x in config["transfers"]["afterfolder"].split(' ')] proc = Popen(command)
def FileDownload(self, msg): """ A file download is in progress""" needupdate = 1 config = self.eventprocessor.config.sections for i in self.downloads: if i.conn != msg.conn: continue try: if i.transfertimer is not None: i.transfertimer.cancel() curtime = time.time() i.currentbytes = msg.file.tell() if i.lastbytes is N...
0d0924480854d90f7d8e3057496ba8dab38cb4a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/0d0924480854d90f7d8e3057496ba8dab38cb4a7/transfers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1387, 7109, 12, 2890, 16, 1234, 4672, 3536, 432, 585, 4224, 353, 316, 4007, 8395, 1608, 2725, 273, 404, 642, 273, 365, 18, 2575, 8700, 18, 1425, 18, 11657, 364, 277, 316, 365, 18, 7813...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1387, 7109, 12, 2890, 16, 1234, 4672, 3536, 432, 585, 4224, 353, 316, 4007, 8395, 1608, 2725, 273, 404, 642, 273, 365, 18, 2575, 8700, 18, 1425, 18, 11657, 364, 277, 316, 365, 18, 7813...
scope["dependents"],
expected_dependents,
def VerifyDependents(pe_name, dependents, delay_loaded, list_file, verbose): """Compare the actual dependents to the expected ones.""" scope = {} try: execfile(list_file, scope) except: raise Error("Failed to load " + list_file) if verbose: print "Expected dependents:" print "\n".join(scope["dependents"]) print "Expect...
3b89a9d679792f6875be3f1a7051ff0275d88306 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/3b89a9d679792f6875be3f1a7051ff0275d88306/dependencies.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8553, 4584, 4877, 12, 347, 67, 529, 16, 2447, 4877, 16, 4624, 67, 4230, 16, 666, 67, 768, 16, 3988, 4672, 3536, 8583, 326, 3214, 2447, 4877, 358, 326, 2665, 5945, 12123, 2146, 273, 261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8553, 4584, 4877, 12, 347, 67, 529, 16, 2447, 4877, 16, 4624, 67, 4230, 16, 666, 67, 768, 16, 3988, 4672, 3536, 8583, 326, 3214, 2447, 4877, 358, 326, 2665, 5945, 12123, 2146, 273, 261...
outfile.write(outstr)
outfile.write(outstr.encode('utf-8'))
def run(self, path_to_output, opts, db): from calibre.utils.logging import Log
03c5a395f3f74199dbaa7968f18150e9d9aaf50b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/03c5a395f3f74199dbaa7968f18150e9d9aaf50b/catalog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 589, 67, 869, 67, 2844, 16, 1500, 16, 1319, 4672, 628, 26139, 266, 18, 5471, 18, 11167, 1930, 1827, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 589, 67, 869, 67, 2844, 16, 1500, 16, 1319, 4672, 628, 26139, 266, 18, 5471, 18, 11167, 1930, 1827, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
tags[self.tagnum]['artist'] = fileref.tag().artist
tags[self.tagnum]['artist'] = tag.artist
def tags_win_update(self, window, tags, entries, entries_names): self.updating_edit_entries = True # Populate tags(). Note that we only retrieve info from the # file if the info hasn't already been changed: fileref = tagpy.FileRef(tags[self.tagnum]['fullpath']) if not tags[self.tagnum]['title-changed']: tags[self.tagnu...
f46c857512301d1836864c51b4a0d938e9c1cf02 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/f46c857512301d1836864c51b4a0d938e9c1cf02/tagedit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2342, 67, 8082, 67, 2725, 12, 2890, 16, 2742, 16, 2342, 16, 3222, 16, 3222, 67, 1973, 4672, 365, 18, 5533, 1776, 67, 4619, 67, 8219, 273, 1053, 468, 22254, 2342, 7675, 3609, 716, 732, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2342, 67, 8082, 67, 2725, 12, 2890, 16, 2742, 16, 2342, 16, 3222, 16, 3222, 67, 1973, 4672, 365, 18, 5533, 1776, 67, 4619, 67, 8219, 273, 1053, 468, 22254, 2342, 7675, 3609, 716, 732, ...
"--report_dir=%s" % (self._report_dir),
def __init__(self, options, args, test): # the known list of tests self._test_list = {"test_shell": self.TestTestShell, "unit": self.TestUnit, "net": self.TestNet, "ipc": self.TestIpc, "base": self.TestBase, "layout": self.TestLayout, "dll": self.TestDll, "layout_all": self.TestLayoutAll, "ui": self.TestUI}
80ed27631dfc12248faa97fe3e11cdf477a2ea19 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/80ed27631dfc12248faa97fe3e11cdf477a2ea19/chrome_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 702, 16, 833, 16, 1842, 4672, 468, 326, 4846, 666, 434, 7434, 365, 6315, 3813, 67, 1098, 273, 12528, 3813, 67, 10304, 6877, 365, 18, 4709, 4709, 13220, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 702, 16, 833, 16, 1842, 4672, 468, 326, 4846, 666, 434, 7434, 365, 6315, 3813, 67, 1098, 273, 12528, 3813, 67, 10304, 6877, 365, 18, 4709, 4709, 13220, 1...
def check_format(ui, repo, hooktype, node, parent1, parent2):
def check_format(ui, repo, hooktype, node, parent1, parent2, **kwargs):
def check_format(ui, repo, hooktype, node, parent1, parent2): if hooktype != 'pretxncommit': raise AttributeError, \ "This hook is only meant for pretxncommit, not %s" % hooktype modified, added, removed, deleted, unknown, ignore, clean = repo.status() verbose = 0 stats = ValidationStats() for f in modified + added: ...
08043c777f1f05f5e14581950013461f328965be /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6787/08043c777f1f05f5e14581950013461f328965be/style.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2139, 12, 4881, 16, 3538, 16, 3953, 723, 16, 756, 16, 982, 21, 16, 982, 22, 16, 2826, 4333, 4672, 309, 3953, 723, 480, 296, 1484, 24790, 7371, 4278, 1002, 6394, 16, 521, 315...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2139, 12, 4881, 16, 3538, 16, 3953, 723, 16, 756, 16, 982, 21, 16, 982, 22, 16, 2826, 4333, 4672, 309, 3953, 723, 480, 296, 1484, 24790, 7371, 4278, 1002, 6394, 16, 521, 315...
self.attr_content.append(AttributeGroupDefinition(self))
self.attr_content.append(AttributeGroupReference(self))
def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) indx = 0 num = len(contents) #XXX ugly if not num: return component = SplitQName(contents[indx].getTagName())[1] if component == 'annotation': self.annotation = Annotation(self) self.annotation.fromDom(contents[indx]) indx += 1 compone...
5b20f2b0904cc43a45210136aca4b3c019980b52 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5b20f2b0904cc43a45210136aca4b3c019980b52/XMLSchema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 8832, 12, 2890, 16, 756, 4672, 365, 18, 542, 2498, 12, 2159, 13, 2939, 273, 365, 18, 588, 6323, 12, 2159, 13, 225, 24732, 273, 374, 818, 273, 562, 12, 3980, 13, 468, 15639, 2692...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 8832, 12, 2890, 16, 756, 4672, 365, 18, 542, 2498, 12, 2159, 13, 2939, 273, 365, 18, 588, 6323, 12, 2159, 13, 225, 24732, 273, 374, 818, 273, 562, 12, 3980, 13, 468, 15639, 2692...
self.processEndTag(impliedTagToken("p")) self.tree.insertElement(token) self.parser.framesetOK = False self.parser.phase = self.parser.phases["inTable"] def startTagVoidFormatting(self, token): self.tree.reconstructActiveFormattingElements() self.tree.insertElement(token) self.tree.openElements.pop() token["selfClosin...
self.endTagP(impliedTagToken("p")) self.tree.reconstructActiveFormattingElements() self.parser.framesetOK = False self.parser.parseRCDataRawtext(token, "RAWTEXT") def startTagTable(self, token): if self.parser.compatMode != "quirks": if self.tree.elementInScope("p"): self.processEndTag(impliedTagToken("p")) self.tree....
def startTagTable(self, token): if self.parser.compatMode != "quirks": if self.tree.elementInScope("p"): self.processEndTag(impliedTagToken("p")) self.tree.insertElement(token) self.parser.framesetOK = False self.parser.phase = self.parser.phases["inTable"]
5cc56a5db432ce478d90ee0dd744811935854947 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10463/5cc56a5db432ce478d90ee0dd744811935854947/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1805, 1388, 12, 2890, 16, 1147, 4672, 309, 365, 18, 4288, 18, 16239, 2309, 480, 315, 372, 31926, 6877, 309, 365, 18, 3413, 18, 2956, 382, 3876, 2932, 84, 6, 4672, 365, 18, 2567, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1805, 1388, 12, 2890, 16, 1147, 4672, 309, 365, 18, 4288, 18, 16239, 2309, 480, 315, 372, 31926, 6877, 309, 365, 18, 3413, 18, 2956, 382, 3876, 2932, 84, 6, 4672, 365, 18, 2567, ...
path = [module.__filename__]
head, tail = os.path.split(module.__filename__) path = [head]
def reload(self, module, path=None): if path is None and hasattr(module, '__filename__'): path = [module.__filename__] return ihooks.ModuleImporter.reload(self, module, path)
18596003572b715d57ecb6d357cebc4257c0bb31 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/18596003572b715d57ecb6d357cebc4257c0bb31/rexec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7749, 12, 2890, 16, 1605, 16, 589, 33, 7036, 4672, 309, 589, 353, 599, 471, 3859, 12, 2978, 16, 4940, 3459, 7250, 4672, 910, 16, 5798, 273, 1140, 18, 803, 18, 4939, 12, 2978, 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, 7749, 12, 2890, 16, 1605, 16, 589, 33, 7036, 4672, 309, 589, 353, 599, 471, 3859, 12, 2978, 16, 4940, 3459, 7250, 4672, 910, 16, 5798, 273, 1140, 18, 803, 18, 4939, 12, 2978, 16186, ...
schedule.removeEvent(self.name)
schedule.removeEvent(self.name())
def die(self): global queue if self.db: try: self.db.close() except: pass try: self.thread_timer.cancel() except: pass queue.clear() try: schedule.removeEvent(self.name) except: pass
e60e72a6204dc1ea7e88a82fb46f79c4b759e244 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3124/e60e72a6204dc1ea7e88a82fb46f79c4b759e244/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10387, 12, 2890, 4672, 2552, 2389, 309, 365, 18, 1966, 30, 775, 30, 365, 18, 1966, 18, 4412, 1435, 1335, 30, 1342, 775, 30, 365, 18, 5930, 67, 12542, 18, 10996, 1435, 1335, 30, 1342, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10387, 12, 2890, 4672, 2552, 2389, 309, 365, 18, 1966, 30, 775, 30, 365, 18, 1966, 18, 4412, 1435, 1335, 30, 1342, 775, 30, 365, 18, 5930, 67, 12542, 18, 10996, 1435, 1335, 30, 1342, ...
long_description = 'M2Crypto is a wrapper for OpenSSL using SWIG.',
long_description = '''\ M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA, DSA, DH, EC, HMACs, message digests, symmetric ciphers (including AES); SSL functionality to implement clients and servers; HTTPS extensions to Python's httplib, urllib, and xmlrpclib; unforgeable HMAC'ing AuthCookies for we...
def swig_sources (self, sources):
f688b68aa174b1af3f9b9b6172785dbc4cdf41d5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10522/f688b68aa174b1af3f9b9b6172785dbc4cdf41d5/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1352, 360, 67, 10141, 261, 2890, 16, 5550, 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, ...
[ 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, 1352, 360, 67, 10141, 261, 2890, 16, 5550, 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...
managerKind = self.rep['manager'] assistantManager = managerKind.newItem('assistant', self.rep)
def testDictReferenceAttributes(self): """Test dictionary valued bidirectional references""" (managerKind, employeeKind) = self._createManagerAndEmployeeKinds('dict')
8c432c03e73d471728ad37bb90bd05aa0215764e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/8c432c03e73d471728ad37bb90bd05aa0215764e/TestReferenceAttributes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 5014, 2404, 2498, 12, 2890, 4672, 3536, 4709, 3880, 31037, 9949, 24699, 5351, 8395, 261, 4181, 5677, 16, 24539, 1340, 5677, 13, 273, 365, 6315, 2640, 1318, 1876, 41, 27520, 5677, 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, 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, 5014, 2404, 2498, 12, 2890, 4672, 3536, 4709, 3880, 31037, 9949, 24699, 5351, 8395, 261, 4181, 5677, 16, 24539, 1340, 5677, 13, 273, 365, 6315, 2640, 1318, 1876, 41, 27520, 5677, 87,...
import spambayes.message
def reversed(seq): seq = list(seq[:]) seq.reverse() return iter(seq)
92e4effa0b9de0f61a09c5361c64d1f3784b872f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/92e4effa0b9de0f61a09c5361c64d1f3784b872f/sb_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9553, 12, 5436, 4672, 3833, 273, 666, 12, 5436, 10531, 5717, 3833, 18, 9845, 1435, 327, 1400, 12, 5436, 13, 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, 9553, 12, 5436, 4672, 3833, 273, 666, 12, 5436, 10531, 5717, 3833, 18, 9845, 1435, 327, 1400, 12, 5436, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
A :py:class:`ElfFileHeader` represeing the byte order and word size dependent portion of the ELF format file header.
A :py:class:`ElfFileHeader` representing the byte order and word size dependent portion of the ELF format file header.
def __ne__(self, other): return not self.__eq__(other)
5c9e4f8403ad11464cdd6769d261ac9ea6b7b84a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5904/5c9e4f8403ad11464cdd6769d261ac9ea6b7b84a/elffile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4644, 972, 12, 2890, 16, 1308, 4672, 327, 486, 365, 16186, 11253, 972, 12, 3011, 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, 4644, 972, 12, 2890, 16, 1308, 4672, 327, 486, 365, 16186, 11253, 972, 12, 3011, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
sale_order_line()
sale_order_line()
def invoice_line_create(self, cr, uid, ids, context={}): create_ids = super(sale_order_line,self).invoice_line_create(cr, uid, ids, context) sale_line_obj = self.browse(cr, uid, ids[0], context) pool_inv_line = self.pool.get('account.invoice.line') for line in pool_inv_line.browse(cr, uid, create_ids, context): rec = ...
c4a5925fb0ea6191531b93530d7f14b03542b013 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/c4a5925fb0ea6191531b93530d7f14b03542b013/account_analytic_default.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9179, 67, 1369, 67, 2640, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 752, 67, 2232, 273, 2240, 12, 87, 5349, 67, 1019, 67, 1369, 16, 2890, 2934, 16119, 67, 1369, 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, 9179, 67, 1369, 67, 2640, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 752, 67, 2232, 273, 2240, 12, 87, 5349, 67, 1019, 67, 1369, 16, 2890, 2934, 16119, 67, 1369, 6...
search = self.get_handler(search_name)
search = self.get_object(search_name)
def view(self, context): # Set Style css = Path(self.abspath).get_pathto('/ui/tracker/tracker.css') context.styles.append(str(css))
1fa77be5b783398ca5fc70ac4c6bcf0d082732e2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/1fa77be5b783398ca5fc70ac4c6bcf0d082732e2/tracker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1476, 12, 2890, 16, 819, 4672, 468, 1000, 9767, 3747, 273, 2666, 12, 2890, 18, 5113, 803, 2934, 588, 67, 803, 869, 2668, 19, 4881, 19, 16543, 19, 16543, 18, 5212, 6134, 819, 18, 10218,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1476, 12, 2890, 16, 819, 4672, 468, 1000, 9767, 3747, 273, 2666, 12, 2890, 18, 5113, 803, 2934, 588, 67, 803, 869, 2668, 19, 4881, 19, 16543, 19, 16543, 18, 5212, 6134, 819, 18, 10218,...
(a.bbababbaaba.bba)
(a, bbababbaaba, bba) sage: Word([1,2,1,3,1,2,1]).lyndon_factorization() (1213, 12, 1)
def lyndon_factorization(self): r""" Returns the Lyndon factorization of self. The *Lyndon factorization* of a finite word `w` is the unique factorization of `w` as a non-increasing product of Lyndon words, i.e., `w = l_1\cdots l_n` where each `l_i` is a Lyndon word and `l_1\geq \cdots \geq l_n`. See for instance [1]....
b0ba0fe22bb130cc7503f5abe181d318f232b48e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/b0ba0fe22bb130cc7503f5abe181d318f232b48e/word.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 328, 878, 19752, 67, 6812, 1588, 12, 2890, 4672, 436, 8395, 2860, 326, 511, 878, 19752, 5578, 1588, 434, 365, 18, 225, 1021, 380, 48, 878, 19752, 5578, 1588, 14, 434, 279, 25922, 2076, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 328, 878, 19752, 67, 6812, 1588, 12, 2890, 4672, 436, 8395, 2860, 326, 511, 878, 19752, 5578, 1588, 434, 365, 18, 225, 1021, 380, 48, 878, 19752, 5578, 1588, 14, 434, 279, 25922, 2076, ...
node_list = self.acquired_locks[locking.LEVEL_NODE] valid_nodes = [node for node in self.cfg.GetOnlineNodeList() if node in node_list]
valid_nodes = [node for node in self.cfg.GetOnlineNodeList()]
def Exec(self, feedback_fn): """Compute the list of OSes.
a6ab004bb9e1789599bf904390e5a3f2bad00beb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/a6ab004bb9e1789599bf904390e5a3f2bad00beb/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3889, 12, 2890, 16, 10762, 67, 4293, 4672, 3536, 7018, 326, 666, 434, 5932, 281, 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, ...
[ 1, 1, 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, 3889, 12, 2890, 16, 10762, 67, 4293, 4672, 3536, 7018, 326, 666, 434, 5932, 281, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
return
return 'break'
def check_module_event(self, event): filename = self.getfilename() if not filename: return if not self.checksyntax(filename): return if not self.tabnanny(filename): return
1adb239ef3ebf62b7cd46fc2588e4c8920d11370 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/1adb239ef3ebf62b7cd46fc2588e4c8920d11370/ScriptBinding.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2978, 67, 2575, 12, 2890, 16, 871, 4672, 1544, 273, 365, 18, 588, 3459, 1435, 309, 486, 1544, 30, 327, 296, 8820, 11, 309, 486, 365, 18, 12366, 5392, 12, 3459, 4672, 327, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2978, 67, 2575, 12, 2890, 16, 871, 4672, 1544, 273, 365, 18, 588, 3459, 1435, 309, 486, 1544, 30, 327, 296, 8820, 11, 309, 486, 365, 18, 12366, 5392, 12, 3459, 4672, 327, 29...
log_view.connect ("notify::model", self.handle_log_view_notify_model)
def attach (self, window): self.line_view = window.widgets.line_view self.line_view.connect ("row-activated", self.handle_line_view_row_activated)
10e3fc489ba276a6d19ca633159bb353ce440945 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12310/10e3fc489ba276a6d19ca633159bb353ce440945/GUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3306, 261, 2890, 16, 2742, 4672, 225, 365, 18, 1369, 67, 1945, 273, 2742, 18, 18148, 18, 1369, 67, 1945, 365, 18, 1369, 67, 1945, 18, 3612, 7566, 492, 17, 18836, 3113, 365, 18, 4110, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3306, 261, 2890, 16, 2742, 4672, 225, 365, 18, 1369, 67, 1945, 273, 2742, 18, 18148, 18, 1369, 67, 1945, 365, 18, 1369, 67, 1945, 18, 3612, 7566, 492, 17, 18836, 3113, 365, 18, 4110, ...
stats['years'][year] = 0 stats['years'][year] += (trip['finishdate']-year_start).days
stats['years'][year] = { 'duration': 0, 'trips': 0 } stats['years'][year]['duration'] += (trip['finishdate']-year_start).days
def build_stats(trip_list, traveller_info): # TODO break this apart and/or do similar things in subroutines # TODO build more year metadata stats = {'countries': {}, 'cities': {}, 'years': {}, 'home': { 'trips': 0, 'duration':0, }, 'away': { 'trips': 0, 'duration':0, }, 'future': 0, 'types': {}...
1c67bb5808334c681c6ba34ea3f5485a4f220770 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11110/1c67bb5808334c681c6ba34ea3f5485a4f220770/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 5296, 12, 25125, 67, 1098, 16, 29090, 749, 67, 1376, 4672, 468, 2660, 898, 333, 513, 485, 471, 19, 280, 741, 7281, 9198, 316, 720, 7028, 1465, 468, 2660, 1361, 1898, 3286, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 5296, 12, 25125, 67, 1098, 16, 29090, 749, 67, 1376, 4672, 468, 2660, 898, 333, 513, 485, 471, 19, 280, 741, 7281, 9198, 316, 720, 7028, 1465, 468, 2660, 1361, 1898, 3286, 19...
self.resource_index[prefix] = 1 return self.resource_index[prefix]
self.key_cache['idx_' + prefix] = '1'; return self.key_cache['idx_' + prefix]
def get_next_resource_index(self, prefix): if self.resource_index.has_key(prefix): self.resource_index[prefix] += 1 else: self.resource_index[prefix] = 1 return self.resource_index[prefix]
02cf5291fc029decc1161f03e51e28c2900474a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4788/02cf5291fc029decc1161f03e51e28c2900474a0/json2rdf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4285, 67, 3146, 67, 1615, 12, 2890, 16, 1633, 4672, 309, 365, 18, 3146, 67, 1615, 18, 5332, 67, 856, 12, 3239, 4672, 365, 18, 3146, 67, 1615, 63, 3239, 65, 1011, 404, 469, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4285, 67, 3146, 67, 1615, 12, 2890, 16, 1633, 4672, 309, 365, 18, 3146, 67, 1615, 18, 5332, 67, 856, 12, 3239, 4672, 365, 18, 3146, 67, 1615, 63, 3239, 65, 1011, 404, 469, ...
if ch not in '0123456789.':
if ch not in '0123456789.-':
def ParseFromCodeElements(self, CodeElements, ProcName, Procedures): ErrProcName = ProcName or 'global' elemtype = CodeElements[0][0] # check for the easy ones first if elemtype == ElemType.QUOTED_WORD: elem = CodeElements.pop(0) self.ArgType = ParamType.QUOTEDWORD self.Elements.append(Element(ElemType.QUOTED_WORD, ele...
49a0e390992c4152d88037a0e815bd6293fcec1f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2419/49a0e390992c4152d88037a0e815bd6293fcec1f/tt_instruction.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2884, 1265, 1085, 3471, 12, 2890, 16, 3356, 3471, 16, 18470, 461, 16, 1186, 23382, 4672, 1926, 15417, 461, 273, 18470, 461, 578, 296, 6347, 11, 3659, 723, 273, 3356, 3471, 63, 20, 6362, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2884, 1265, 1085, 3471, 12, 2890, 16, 3356, 3471, 16, 18470, 461, 16, 1186, 23382, 4672, 1926, 15417, 461, 273, 18470, 461, 578, 296, 6347, 11, 3659, 723, 273, 3356, 3471, 63, 20, 6362, ...
return round(math.exp(dx / SCALE) * rescale)
return round(exp(dx / SCALE) * rescale)
def _calc_log(dx): """ C and D scales """ rescale = 1 if dx < 0: rescale = 0.1 dx += SWIDTH - (2.0 * OFFSET) return round(math.exp(dx / SCALE) * rescale)
5fa09bcbc8e023850510305ca87bc00a475677be /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5595/5fa09bcbc8e023850510305ca87bc00a475677be/window.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12448, 67, 1330, 12, 13437, 4672, 3536, 385, 471, 463, 18211, 3536, 30323, 273, 404, 309, 6633, 411, 374, 30, 30323, 273, 374, 18, 21, 6633, 1011, 348, 10023, 300, 261, 22, 18, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12448, 67, 1330, 12, 13437, 4672, 3536, 385, 471, 463, 18211, 3536, 30323, 273, 404, 309, 6633, 411, 374, 30, 30323, 273, 374, 18, 21, 6633, 1011, 348, 10023, 300, 261, 22, 18, 20...
'date': fields.datetime('Date Planned', required=True, help="Scheduled date for the movement of the products or real date if the move is done."),
'date': fields.datetime('Date ', required=True, help="Scheduled date for the movement of the products or real date if the move is done."),
def _check_product_lot(self, cr, uid, ids): """ Checks whether move is done or not and production lot is assigned to that move. @return: True or False """ for move in self.browse(cr, uid, ids): if move.prodlot_id and move.state == 'done' and (move.prodlot_id.product_id.id != move.product_id.id): return False return Tru...
cec285803f60dbc6936e9033a2466184277695a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/cec285803f60dbc6936e9033a2466184277695a0/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 5896, 67, 23372, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 4672, 3536, 13074, 2856, 3635, 353, 2731, 578, 486, 471, 12449, 17417, 353, 6958, 358, 716, 3635, 18, 632, 2463, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1893, 67, 5896, 67, 23372, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 4672, 3536, 13074, 2856, 3635, 353, 2731, 578, 486, 471, 12449, 17417, 353, 6958, 358, 716, 3635, 18, 632, 2463, ...
raise AutotestError("No cpuset support; please reboot")
raise AutotestError('No cpuset support; please reboot')
def __init__(self, name, job_size, job_pid, cpus = None, root = "", cleanup = 1): # Create a cpuset container and move job_pid into it # Allocate the list "cpus" of cpus to that container
2ac58557e6c7f67ec6179d552758aacdd5e082af /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/2ac58557e6c7f67ec6179d552758aacdd5e082af/cpuset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 1719, 67, 1467, 16, 1719, 67, 6610, 16, 20620, 273, 599, 16, 1365, 273, 23453, 6686, 273, 404, 4672, 468, 1788, 279, 20620, 278, 1478, 471, 3635...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 1719, 67, 1467, 16, 1719, 67, 6610, 16, 20620, 273, 599, 16, 1365, 273, 23453, 6686, 273, 404, 4672, 468, 1788, 279, 20620, 278, 1478, 471, 3635...
def getchild(self, child_name='', role=''): matches = self._remote_getchild(child_name, role, True) if matches: if role: return [Component(self._window_name, matches[0])] else: return Component(self._window_name, matches[0]) else: return None
def getchild(self, child_name='', role=''): # TODO: Bad API choice. Inconsistent, should return object or list, # not both. UPDATE: Only returns first match. matches = self._remote_getchild(child_name, role, True) if matches: if role: return [Component(self._window_name, matches[0])] else: return Component(self._window...
013692654065af9a83de517d76b3e3ef6da24f65 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11266/013692654065af9a83de517d76b3e3ef6da24f65/_context.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 3624, 12, 2890, 16, 1151, 67, 529, 2218, 2187, 2478, 2218, 11, 4672, 468, 2660, 30, 6107, 1491, 6023, 18, 657, 16952, 16, 1410, 327, 733, 578, 666, 16, 468, 486, 3937, 18, 11028, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3624, 12, 2890, 16, 1151, 67, 529, 2218, 2187, 2478, 2218, 11, 4672, 468, 2660, 30, 6107, 1491, 6023, 18, 657, 16952, 16, 1410, 327, 733, 578, 666, 16, 468, 486, 3937, 18, 11028, ...
log.error("cannot open file")
if must_exist: log.error("cannot open file")
def updateFromFile( self, filename ): filename = os.path.expanduser(filename) log.debug("DeviceList::updateFromFile(%s)" % filename) if not os.path.exists( filename ): log.error("cannot open file") return f = open( filename, "r" )
48c2633ecc007e78f6acbf2057c447f0b85090e5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11526/48c2633ecc007e78f6acbf2057c447f0b85090e5/ffado_configuration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 13087, 12, 365, 16, 1544, 262, 30, 1544, 273, 1140, 18, 803, 18, 12320, 1355, 12, 3459, 13, 613, 18, 4148, 2932, 3654, 682, 2866, 2725, 13087, 9275, 87, 2225, 738, 1544, 13, 309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 13087, 12, 365, 16, 1544, 262, 30, 1544, 273, 1140, 18, 803, 18, 12320, 1355, 12, 3459, 13, 613, 18, 4148, 2932, 3654, 682, 2866, 2725, 13087, 9275, 87, 2225, 738, 1544, 13, 309,...
branch})
'branch': branch})
def mass_branch(self, branch): '''Mass branch all packages listed as non-blocked in koji to the pkgdb.
440c5a282ae0f064b7d2e079e8595945d028218d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9953/440c5a282ae0f064b7d2e079e8595945d028218d/collections.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8039, 67, 7500, 12, 2890, 16, 3803, 4672, 9163, 18060, 3803, 777, 5907, 12889, 487, 1661, 17, 23156, 316, 417, 10089, 358, 326, 3475, 1966, 18, 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, 0, 0, 0, 0, 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, 8039, 67, 7500, 12, 2890, 16, 3803, 4672, 9163, 18060, 3803, 777, 5907, 12889, 487, 1661, 17, 23156, 316, 417, 10089, 358, 326, 3475, 1966, 18, 2, -100, -100, -100, -100, -100, -100, -10...
template = MarkupTemplate(open(self.templateFilename).read())
template = MarkupTemplate(open("output.xml").read())
def generateResponseStream(self, source, tree): template = MarkupTemplate(open(self.templateFilename).read()) treeHighlighter = ParseTreeHighlighter() htmlHighlighter = InnerHTMLHighlighter()
3b14c655b07ad4ef53f5808b444994bf55d99683 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5033/3b14c655b07ad4ef53f5808b444994bf55d99683/parsetree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 1064, 1228, 12, 2890, 16, 1084, 16, 2151, 4672, 1542, 273, 26420, 2283, 12, 3190, 2932, 2844, 18, 2902, 20387, 896, 10756, 2151, 8573, 23624, 273, 2884, 2471, 8573, 23624, 1435, 1729...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2103, 1064, 1228, 12, 2890, 16, 1084, 16, 2151, 4672, 1542, 273, 26420, 2283, 12, 3190, 2932, 2844, 18, 2902, 20387, 896, 10756, 2151, 8573, 23624, 273, 2884, 2471, 8573, 23624, 1435, 1729...
if m.t == 0:
if m.t == False:
def CalculateStats(self): self.Reset() for msg in msginfoDB.db.keys(): self.total += 1 m = self.__empty_msg() m.id = msg msginfoDB._getState(m) if m.c == 's': self.cls_spam += 1 if m.t == 0: self.fp += 1 elif m.c == 'h': self.cls_ham += 1 if m.t == 1: self.fn += 1 elif m.c == 'u': self.cls_unsure += 1 if m.t == 0: self...
51a6f5ed8ec5cb7e073dfc40ca20067578f180de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/51a6f5ed8ec5cb7e073dfc40ca20067578f180de/Stats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9029, 4195, 12, 2890, 4672, 365, 18, 7013, 1435, 364, 1234, 316, 1234, 1376, 2290, 18, 1966, 18, 2452, 13332, 365, 18, 4963, 1011, 404, 312, 273, 365, 16186, 5531, 67, 3576, 1435, 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, 9029, 4195, 12, 2890, 4672, 365, 18, 7013, 1435, 364, 1234, 316, 1234, 1376, 2290, 18, 1966, 18, 2452, 13332, 365, 18, 4963, 1011, 404, 312, 273, 365, 16186, 5531, 67, 3576, 1435, 312, ...
if var == fld or (var == True and fld) or (fld == True and var):
if var == fld:
def tmpl_is_selected(self, var, fld): """ Checks if *var* and *fld* are equal, and if yes, returns ' selected'. Useful for select boxes.
2a6e158305f7ee6a2932326b0e81fcbe279f205f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/2a6e158305f7ee6a2932326b0e81fcbe279f205f/websearch_templates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 291, 67, 8109, 12, 2890, 16, 569, 16, 9880, 4672, 3536, 13074, 309, 380, 1401, 14, 471, 380, 19794, 14, 854, 3959, 16, 471, 309, 12465, 16, 1135, 296, 3170, 10332, 225, 1925...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 291, 67, 8109, 12, 2890, 16, 569, 16, 9880, 4672, 3536, 13074, 309, 380, 1401, 14, 471, 380, 19794, 14, 854, 3959, 16, 471, 309, 12465, 16, 1135, 296, 3170, 10332, 225, 1925...
print 'Patch directory %s is not empty.' % self.__name
print 'Patch directory %s is not empty.' % self.__patch_dir
def convert(self): """Either convert to use a separate patch directory, or unconvert to place the patches in the same directory with series control files """ if self.__patch_dir == self._dir(): print 'Converting old-style to new-style...', sys.stdout.flush()
737f3549994c21182fe9339910ccdbdb9fcde3c7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12366/737f3549994c21182fe9339910ccdbdb9fcde3c7/stack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 12, 2890, 4672, 3536, 26091, 1765, 358, 999, 279, 9004, 4729, 1867, 16, 578, 23980, 1097, 358, 3166, 326, 16482, 316, 326, 1967, 1867, 598, 4166, 3325, 1390, 3536, 309, 365, 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, 1765, 12, 2890, 4672, 3536, 26091, 1765, 358, 999, 279, 9004, 4729, 1867, 16, 578, 23980, 1097, 358, 3166, 326, 16482, 316, 326, 1967, 1867, 598, 4166, 3325, 1390, 3536, 309, 365, 16186, ...
MAXSDK[version] = top + "maxsdk\\"
MAXSDK[version] = top + "maxsdk"
def parseopts(args): global PREFIX,COMPILER,OPTIMIZE,OMIT,THIRDPARTY,INSTALLER,PPGAME global COPYEXTRAS,VERSION,COMPRESSOR,DIRECTXSDK,VERBOSE longopts = [ "help","package-info","prefix=","compiler=","directx-sdk=","thirdparty=", "optimize=","everything","nothing","installer","ppgame=","quiet","verbose", "complete","ver...
e67374215c757b3208e2aa687cbf52979d46b26f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/e67374215c757b3208e2aa687cbf52979d46b26f/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 4952, 12, 1968, 4672, 2552, 17154, 16, 31075, 14668, 16, 15620, 3445, 15641, 16, 1872, 1285, 16, 2455, 7937, 40, 2778, 5538, 16, 28865, 654, 16, 6584, 43, 1642, 2552, 27776, 22639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4952, 12, 1968, 4672, 2552, 17154, 16, 31075, 14668, 16, 15620, 3445, 15641, 16, 1872, 1285, 16, 2455, 7937, 40, 2778, 5538, 16, 28865, 654, 16, 6584, 43, 1642, 2552, 27776, 22639, ...
error_handler=log.err)
error_handler=d.errback)
def get_format_cb(fmt): self.failUnlessIn(fmt, [0, 1]) d.callback(True)
45c00959c14e666ef31b3f93137f14e6d66959e4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12036/45c00959c14e666ef31b3f93137f14e6d66959e4/test_dbus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2139, 67, 7358, 12, 8666, 4672, 365, 18, 6870, 984, 2656, 382, 12, 8666, 16, 306, 20, 16, 404, 5717, 302, 18, 3394, 12, 5510, 13, 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, 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, 336, 67, 2139, 67, 7358, 12, 8666, 4672, 365, 18, 6870, 984, 2656, 382, 12, 8666, 16, 306, 20, 16, 404, 5717, 302, 18, 3394, 12, 5510, 13, 2, -100, -100, -100, -100, -100, -100, -100...
lines[:] = str(doc).split("\n")
lines[:] = unicode(doc).split(u"\n")
def mangle_docstrings(app, what, name, obj, options, lines, reference_offset=[0]): if what == 'module': # Strip top title title_re = re.compile(r'^\s*[#*=]{4,}\n[a-z0-9 -]+\n[#*=]{4,}\s*', re.I|re.S) lines[:] = title_re.sub('', "\n".join(lines)).split("\n") else: doc = get_doc_object(obj, what, "\n".join(lines)) doc.u...
c3a0fb9711a119ac303d18719cea702efeff408f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/c3a0fb9711a119ac303d18719cea702efeff408f/numpydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 4341, 67, 2434, 10219, 12, 2910, 16, 4121, 16, 508, 16, 1081, 16, 702, 16, 2362, 16, 2114, 67, 3348, 22850, 20, 65, 4672, 225, 309, 4121, 422, 296, 2978, 4278, 468, 15589, 1760, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2434, 10219, 12, 2910, 16, 4121, 16, 508, 16, 1081, 16, 702, 16, 2362, 16, 2114, 67, 3348, 22850, 20, 65, 4672, 225, 309, 4121, 422, 296, 2978, 4278, 468, 15589, 1760, ...
def __init__(self, n):
def __init__(self, n, max_entry=None):
def __init__(self, n): """ TESTS:: sage: SST = SemistandardTableaux(3) sage: SST == loads(dumps(SST)) True """ self.n = n
6ec7d5a4cd0b83ae5413f0375d51a0339f12b4b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/6ec7d5a4cd0b83ae5413f0375d51a0339f12b4b7/tableau.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 290, 16, 943, 67, 4099, 33, 7036, 4672, 3536, 22130, 55, 2866, 225, 272, 410, 30, 348, 882, 273, 15661, 376, 2958, 1388, 18196, 12, 23, 13, 272, 410, 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, 2738, 972, 12, 2890, 16, 290, 16, 943, 67, 4099, 33, 7036, 4672, 3536, 22130, 55, 2866, 225, 272, 410, 30, 348, 882, 273, 15661, 376, 2958, 1388, 18196, 12, 23, 13, 272, 410, 3...
if l[0] == 0:
if not l or l[0] == 0:
def isValid(self): l = self.l.getCurrentSelection() if l[0] == 0: return False else: return True
8d7ab3b08ec975b1acf8e65478ed38613d0b24cc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/8d7ab3b08ec975b1acf8e65478ed38613d0b24cc/downloader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4908, 12, 2890, 4672, 328, 273, 365, 18, 80, 18, 588, 3935, 6233, 1435, 309, 486, 328, 578, 328, 63, 20, 65, 422, 374, 30, 327, 1083, 469, 30, 327, 1053, 2, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4908, 12, 2890, 4672, 328, 273, 365, 18, 80, 18, 588, 3935, 6233, 1435, 309, 486, 328, 578, 328, 63, 20, 65, 422, 374, 30, 327, 1083, 469, 30, 327, 1053, 2, -100, -100, -100, -100, ...
from networkx_graph import networkx_plot, NetworkXGraph as GraphicPrimitive_NetworkXGraph
def generate_plot_points(f, xrange, plot_points=5, adaptive_tolerance=0.01, adaptive_recursion=5, randomize = True): r""" Calculate plot points for a function f in the interval xrange. The adaptive refinement algorithm for plotting a function f. See the docstring for plot for a description of the algorithm. INPUT: f -...
f41497be7f4fc09cd21a821e798c82253016dac0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f41497be7f4fc09cd21a821e798c82253016dac0/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 4032, 67, 4139, 12, 74, 16, 12314, 16, 3207, 67, 4139, 33, 25, 16, 5855, 688, 67, 25456, 33, 20, 18, 1611, 16, 5855, 688, 67, 31347, 33, 25, 16, 2744, 554, 273, 1053, 467...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 4032, 67, 4139, 12, 74, 16, 12314, 16, 3207, 67, 4139, 33, 25, 16, 5855, 688, 67, 25456, 33, 20, 18, 1611, 16, 5855, 688, 67, 31347, 33, 25, 16, 2744, 554, 273, 1053, 467...
return p.flush(finish=True)
p.flush() p.tagbuf2data() return p.getoutput()
def finish (self, data, **attrs): if not attrs.has_key('rewriter_filter'): return data p = attrs['rewriter_filter'] # note: feed even if data is empty p.feed(data) return p.flush(finish=True)
cdd629b0e83c1aa1f79e7ba238d04956ce9feecc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/cdd629b0e83c1aa1f79e7ba238d04956ce9feecc/Rewriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4076, 261, 2890, 16, 501, 16, 2826, 7039, 4672, 309, 486, 3422, 18, 5332, 67, 856, 2668, 266, 6299, 67, 2188, 11, 4672, 327, 501, 293, 273, 3422, 3292, 266, 6299, 67, 2188, 3546, 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, 4076, 261, 2890, 16, 501, 16, 2826, 7039, 4672, 309, 486, 3422, 18, 5332, 67, 856, 2668, 266, 6299, 67, 2188, 11, 4672, 327, 501, 293, 273, 3422, 3292, 266, 6299, 67, 2188, 3546, 468, ...
if self._filter and self._filter(args) and self._counter > 0:
if self._filter and self._filter(result) and self._counter > 0:
def finish(self, result, args): """ Invoked when any one of the InProgress objects passed to the constructor have finished. """ self._counter -= 1 if self._filter and self._filter(args) and self._counter > 0: # Result is filtered and there are other InProgress candidates, # so we'll wait for them. return
f2645e8bfd4a8d52fb3445cbf8581763cbe80794 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11722/f2645e8bfd4a8d52fb3445cbf8581763cbe80794/async.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4076, 12, 2890, 16, 563, 16, 833, 4672, 3536, 5454, 14276, 1347, 1281, 1245, 434, 326, 657, 5491, 2184, 2275, 358, 326, 3885, 1240, 6708, 18, 3536, 365, 6315, 7476, 3947, 404, 309, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4076, 12, 2890, 16, 563, 16, 833, 4672, 3536, 5454, 14276, 1347, 1281, 1245, 434, 326, 657, 5491, 2184, 2275, 358, 326, 3885, 1240, 6708, 18, 3536, 365, 6315, 7476, 3947, 404, 309, 365, ...
ph = q.readheaders(parent)
ph = patchheader(q.join(parent))
def fold(ui, repo, *files, **opts): """fold the named patches into the current patch Patches must not yet be applied. Each patch will be successively applied to the current patch in the order given. If all the patches apply successfully, the current patch will be refreshed with the new cumulative patch, and the folded...
f0a2f47b4524f2b75cdde495bdc655cc18dab94f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/f0a2f47b4524f2b75cdde495bdc655cc18dab94f/mq.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11590, 12, 4881, 16, 3538, 16, 380, 2354, 16, 2826, 4952, 4672, 3536, 16007, 326, 4141, 16482, 1368, 326, 783, 4729, 225, 12042, 281, 1297, 486, 4671, 506, 6754, 18, 8315, 4729, 903, 506...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11590, 12, 4881, 16, 3538, 16, 380, 2354, 16, 2826, 4952, 4672, 3536, 16007, 326, 4141, 16482, 1368, 326, 783, 4729, 225, 12042, 281, 1297, 486, 4671, 506, 6754, 18, 8315, 4729, 903, 506...
arc = CaselessLiteral('arc') + OneOrMore(arcProperty) + end
arc = Group(CaselessLiteral('arc') + OneOrMore(arcProperty) + end)
def getGrammar (self): if self.grammar is None: comment = Literal('#') + Optional (restOfLine) float = Combine(Word('+-'+nums, nums) + Optional(Literal('.') + Optional(Word(nums))) + Optional(CaselessLiteral('E') + Word('+-'+nums, nums))) TwoDPoint = float + float ThreeDPoint = float + float + float globalReference = W...
2eaae342cdc2eaef1c83d142450f4aa028025c7c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/2eaae342cdc2eaef1c83d142450f4aa028025c7c/Reader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7162, 5627, 261, 2890, 4672, 309, 365, 18, 31628, 353, 599, 30, 2879, 273, 14392, 2668, 7, 6134, 397, 4055, 261, 8792, 951, 1670, 13, 1431, 273, 23949, 12, 3944, 2668, 15, 6627, 15, 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, 7162, 5627, 261, 2890, 4672, 309, 365, 18, 31628, 353, 599, 30, 2879, 273, 14392, 2668, 7, 6134, 397, 4055, 261, 8792, 951, 1670, 13, 1431, 273, 23949, 12, 3944, 2668, 15, 6627, 15, 21...
if data: data = iter(data) self.stack.append((state, None, None,data, stop)) else: if data is stop: continue if not state: (state, data) = data if data is stop: continue stack.append((state, data, None, None, stop)) trace("end flow") def __str__(self,indlvl=0): indent = "\n" + " " * indlvl indent2 = indent + " ...
iterator = iter(data) param = (iterator, stop, link.next) stack.append((_STACK_ITERATOR,param)) continue stack.append((_STACK_STAGE,(link.next,data))) def __call__(self, data): self.run(data) def testFlow(): ''' Test basic Flow operation ''' def dataSource(data): return [1, 1+data, 1+data*2] def addOne(data): return...
def run(self, data = None, state=initialState): ''' This executes the current flow, given empty starting data and the default initial state. ''' trace("running flow") stack = self.stack if not(stack): stack.append((state, data, None, None, None)) while stack: (state, data, finish, itr, stop) = stack[-1] if finish: fini...
4cf3103eb894bde67fe5e1250725e8ef11de7f5a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/4cf3103eb894bde67fe5e1250725e8ef11de7f5a/flow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 501, 273, 599, 16, 919, 33, 6769, 1119, 4672, 9163, 1220, 11997, 326, 783, 4693, 16, 864, 1008, 5023, 501, 471, 326, 805, 2172, 919, 18, 9163, 2606, 2932, 8704, 469...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 501, 273, 599, 16, 919, 33, 6769, 1119, 4672, 9163, 1220, 11997, 326, 783, 4693, 16, 864, 1008, 5023, 501, 471, 326, 805, 2172, 919, 18, 9163, 2606, 2932, 8704, 469...
django.dispatch.dispatcher.disconnect( django.db._rollback_on_exception, django.core.signals.got_request_exception)
django.core.signals.got_request_exception.disconnect( django.db._rollback_on_exception)
def log_exception(*args, **kwds): """Django signal handler to log an exception.""" cls, err = sys.exc_info()[:2] logging.exception('Exception in request: %s: %s', cls.__name__, err)
2d25ef5fdec0813412b8b4d452f1979f0eaca1d5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/476/2d25ef5fdec0813412b8b4d452f1979f0eaca1d5/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 67, 4064, 30857, 1968, 16, 2826, 25577, 4672, 3536, 40, 9142, 4277, 1838, 358, 613, 392, 1520, 12123, 2028, 16, 393, 273, 2589, 18, 10075, 67, 1376, 1435, 10531, 22, 65, 2907, 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, 613, 67, 4064, 30857, 1968, 16, 2826, 25577, 4672, 3536, 40, 9142, 4277, 1838, 358, 613, 392, 1520, 12123, 2028, 16, 393, 273, 2589, 18, 10075, 67, 1376, 1435, 10531, 22, 65, 2907, 18, ...
options.platformID = 'osx'
options.platformID = 'ppc-osx'
def buildPlatform(options): options.platformName = 'Unknown' options.platformID = '' options.platformSubID = '' rv = True if os.name == 'nt': options.platformName = 'Windows' options.platformID = 'win' elif os.name == 'posix': if sys.platform == 'darwin': if platform.machine() == 'i386': options.platformName = ...
4669154547fc68081ed24e017e30fdcc5a628a80 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/4669154547fc68081ed24e017e30fdcc5a628a80/distribute.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 8201, 12, 2116, 4672, 702, 18, 9898, 461, 225, 273, 296, 4874, 11, 702, 18, 9898, 734, 565, 273, 875, 702, 18, 9898, 1676, 734, 273, 875, 225, 5633, 273, 1053, 225, 309, 1140, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 8201, 12, 2116, 4672, 702, 18, 9898, 461, 225, 273, 296, 4874, 11, 702, 18, 9898, 734, 565, 273, 875, 702, 18, 9898, 1676, 734, 273, 875, 225, 5633, 273, 1053, 225, 309, 1140, ...
opts, args = getopt.getopt(sys.argv[1:], None, ["bind_host=", "bind_port=", "remote_host=", "remote_port=", "max_conns=", "log_level="])
opts, unused_arg = getopt.getopt( sys.argv[1:], None, ["bind_host=", "bind_port=", "remote_host=", "remote_port=", "max_conns=", "log_level="])
def main(): try: opts, args = getopt.getopt(sys.argv[1:], None, ["bind_host=", "bind_port=", "remote_host=", "remote_port=", "max_conns=", "log_level="]) except getopt.GetoptError: print Usage() sys.exit(1) bind_port = 8080 remote_port = 80 max_conns = 5 bind_host = None remote_host = None level = logging.INFO for opt...
faeca0c600847fd7ee1236faac6883a0573dd5d9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6393/faeca0c600847fd7ee1236faac6883a0573dd5d9/reverse_proxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 775, 30, 1500, 16, 10197, 67, 3175, 273, 336, 3838, 18, 588, 3838, 12, 2589, 18, 19485, 63, 21, 30, 6487, 599, 16, 8247, 4376, 67, 2564, 1546, 16, 315, 4376, 67, 655, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 775, 30, 1500, 16, 10197, 67, 3175, 273, 336, 3838, 18, 588, 3838, 12, 2589, 18, 19485, 63, 21, 30, 6487, 599, 16, 8247, 4376, 67, 2564, 1546, 16, 315, 4376, 67, 655, 15...
test_eq(flagdata2(vis=self.vis, summary=True, selectdata=True, antenna='2'), 196434, 55944)
test_eq(flagdata2(vis=self.vis, summary=True, selectdata=True, antenna='2'), 203994, 55944)
def test_uvrange(self): '''Flagdata2: uvrange=200~400m manualflag=true''' flagdata2(vis=self.vis, selectdata=True, uvrange='200~400m', manualflag=True) test_eq(flagdata2(vis=self.vis, summary=True, selectdata=True, antenna='2'), 196434, 55944)
05385c9baca107ae37130d13ada12822cc89d8d5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2098/05385c9baca107ae37130d13ada12822cc89d8d5/test_flagdata2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 16303, 3676, 12, 2890, 4672, 9163, 4678, 892, 22, 30, 14303, 3676, 33, 6976, 98, 16010, 81, 11297, 6420, 33, 3767, 26418, 2982, 892, 22, 12, 3516, 33, 2890, 18, 3516, 16, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16303, 3676, 12, 2890, 4672, 9163, 4678, 892, 22, 30, 14303, 3676, 33, 6976, 98, 16010, 81, 11297, 6420, 33, 3767, 26418, 2982, 892, 22, 12, 3516, 33, 2890, 18, 3516, 16, 202...
if not self.call.can_update(person):
if not self.caller.can_update(person):
def call(self, auth, person_tag_id, value): person_tags = PersonTags(self.api, [person_tag_id]) if not person_tags: raise PLCInvalidArgument, "No such person setting %r"%person_tag_id person_tag = person_tags[0]
dc7f532351ff9a9fa145e9a2483be89086e0ae04 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7598/dc7f532351ff9a9fa145e9a2483be89086e0ae04/UpdatePersonTag.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 12, 2890, 16, 1357, 16, 6175, 67, 2692, 67, 350, 16, 460, 4672, 6175, 67, 4156, 273, 11573, 3453, 12, 2890, 18, 2425, 16, 306, 12479, 67, 2692, 67, 350, 5717, 309, 486, 6175, 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, 745, 12, 2890, 16, 1357, 16, 6175, 67, 2692, 67, 350, 16, 460, 4672, 6175, 67, 4156, 273, 11573, 3453, 12, 2890, 18, 2425, 16, 306, 12479, 67, 2692, 67, 350, 5717, 309, 486, 6175, 67...
pagetitle = self.localize("User Page for: %s", request.username)
pagetitle = self.localize("User Page for: %s", request.user.username)
def __init__(self, request): self.potree = pan_app.get_po_tree() self.request = request self.tr_lang = request.tr_lang self.localize = request.localize self.nlocalize = request.nlocalize pagetitle = self.localize("User Page for: %s", request.username) templatename = "home" optionslink = self.localize("Change options") ...
e4c5fea5290038471c06f9a418afc0d0f083fd92 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11388/e4c5fea5290038471c06f9a418afc0d0f083fd92/indexpage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 590, 4672, 365, 18, 13130, 992, 273, 2800, 67, 2910, 18, 588, 67, 1631, 67, 3413, 1435, 365, 18, 2293, 273, 590, 365, 18, 313, 67, 4936, 273, 590, 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, 2738, 972, 12, 2890, 16, 590, 4672, 365, 18, 13130, 992, 273, 2800, 67, 2910, 18, 588, 67, 1631, 67, 3413, 1435, 365, 18, 2293, 273, 590, 365, 18, 313, 67, 4936, 273, 590, 18, ...
okButton.Enable(False) applyButton.Enable(False)
panel.EnableButtons(False)
def Configure(self, link=None): panel = eg.ConfigPanel(resizable=True) okButton = panel.dialog.buttonRow.okButton applyButton = panel.dialog.buttonRow.applyButton if link is not None: searchItem = link.target else: searchItem = None link = eg.TreeLink(eg.currentConfigureItem) tree = eg.TreeItemBrowseCtrl( panel, self....
0267a740c8f7191a04922b0afb4347b57f936787 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8076/0267a740c8f7191a04922b0afb4347b57f936787/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11758, 12, 2890, 16, 1692, 33, 7036, 4672, 6594, 273, 9130, 18, 809, 5537, 12, 455, 6934, 33, 5510, 13, 1529, 3616, 273, 6594, 18, 12730, 18, 5391, 1999, 18, 601, 3616, 2230, 3616, 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, 11758, 12, 2890, 16, 1692, 33, 7036, 4672, 6594, 273, 9130, 18, 809, 5537, 12, 455, 6934, 33, 5510, 13, 1529, 3616, 273, 6594, 18, 12730, 18, 5391, 1999, 18, 601, 3616, 2230, 3616, 273...
if 'form.button.addcriteria' or 'removecriteria' in form:
if 'form.button.addcriteria' in form or 'removecriteria' in form:
def process_form(self, instance, field, form, empty_marker=None, emptyReturnsMarker=False, validating=True): """A custom implementation for the widget form processing.""" value = form.get(field.getName()) # check if form.button.addcriteria is in request, # this only happends when javascript is disabled if 'form.button...
8d0aaa1dd7f52b047372937811a779a3b05dcd21 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12192/8d0aaa1dd7f52b047372937811a779a3b05dcd21/querywidget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 687, 12, 2890, 16, 791, 16, 652, 16, 646, 16, 1008, 67, 11145, 33, 7036, 16, 1008, 1356, 7078, 33, 8381, 16, 18075, 33, 5510, 4672, 3536, 37, 1679, 4471, 364, 326, 3604, 64...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 687, 12, 2890, 16, 791, 16, 652, 16, 646, 16, 1008, 67, 11145, 33, 7036, 16, 1008, 1356, 7078, 33, 8381, 16, 18075, 33, 5510, 4672, 3536, 37, 1679, 4471, 364, 326, 3604, 64...
try:
for thisType in [int, long, float, complex]:
def seval(item): """ Strips parens from item prior to calling eval in an attempt to make it safer """ return eval(item.replace('(', '').replace(')', ''))
6ea653a6b2a8bbfc133116d87ed74132f74ed63f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6ea653a6b2a8bbfc133116d87ed74132f74ed63f/csv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 695, 1125, 12, 1726, 4672, 3536, 3978, 7146, 30821, 628, 761, 6432, 358, 4440, 5302, 316, 392, 4395, 358, 1221, 518, 7864, 586, 3536, 327, 5302, 12, 1726, 18, 2079, 2668, 12, 2187, 875, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 695, 1125, 12, 1726, 4672, 3536, 3978, 7146, 30821, 628, 761, 6432, 358, 4440, 5302, 316, 392, 4395, 358, 1221, 518, 7864, 586, 3536, 327, 5302, 12, 1726, 18, 2079, 2668, 12, 2187, 875, ...
cursor_mate.setPosition( cursor.position(),
cursor_mate.setPosition( curPos,
def cursorPosChanged( self ): """ Slot called when the cursor position of the strand textEdit changes. When this happens, this method also changes the cursor position of the 'Mate' text edit. Because of this, both the text edit widgets in the Sequence Editor scroll 'in sync'. """ strandSequence = self.sequenceTextEdit....
23d006ab9680cc4562266b6c6d274182f0b75c7b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/23d006ab9680cc4562266b6c6d274182f0b75c7b/ProteinSequenceEditor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3347, 1616, 5033, 12, 365, 262, 30, 3536, 23195, 2566, 1347, 326, 3347, 1754, 434, 326, 16706, 977, 4666, 3478, 18, 5203, 333, 10555, 16, 333, 707, 2546, 3478, 326, 3347, 1754, 434, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3347, 1616, 5033, 12, 365, 262, 30, 3536, 23195, 2566, 1347, 326, 3347, 1754, 434, 326, 16706, 977, 4666, 3478, 18, 5203, 333, 10555, 16, 333, 707, 2546, 3478, 326, 3347, 1754, 434, 326,...
contents = [self.formattree( inspect.getclasstree(classlist, 1), name, cdict)]
contents = [ self.formattree(inspect.getclasstree(classlist, 1), name)]
def docmodule(self, object, name=None, mod=None): """Produce HTML documentation for a module object.""" name = object.__name__ # ignore the passed-in name parts = split(name, '.') links = [] for i in range(len(parts)-1): links.append( '<a href="%s.html"><font color="#ffffff">%s</font></a>' % (join(parts[:i+1], '.'), pa...
b7a48300cd653964c82ae34eae9fab9bebef3578 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b7a48300cd653964c82ae34eae9fab9bebef3578/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 2978, 12, 2890, 16, 733, 16, 508, 33, 7036, 16, 681, 33, 7036, 4672, 3536, 25884, 3982, 7323, 364, 279, 1605, 733, 12123, 508, 273, 733, 16186, 529, 972, 468, 2305, 326, 2275, 17,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 2978, 12, 2890, 16, 733, 16, 508, 33, 7036, 16, 681, 33, 7036, 4672, 3536, 25884, 3982, 7323, 364, 279, 1605, 733, 12123, 508, 273, 733, 16186, 529, 972, 468, 2305, 326, 2275, 17,...
s = 'MatrixAlgebra(%s,%s)'%(K, self.__nrows)
s = 'MatrixAlgebra(%s,%s)'%(K.name(), self.__nrows)
def _magma_init_(self, magma): r""" EXAMPLES: We first coerce a square matrix. :: sage: magma(MatrixSpace(QQ,3)) # optional - magma Full Matrix Algebra of degree 3 over Rational Field :: sage: magma(MatrixSpace(Integers(8),2,3)) # optional - magma Full RMatrixSpace of 2 by 3 matrices ...
2ef75a10f526d80ade3547c83356ba80aad8ccba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/2ef75a10f526d80ade3547c83356ba80aad8ccba/matrix_space.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4527, 2540, 67, 2738, 67, 12, 2890, 16, 4447, 2540, 4672, 436, 8395, 5675, 8900, 11386, 30, 1660, 1122, 12270, 279, 8576, 3148, 18, 225, 493, 225, 272, 410, 30, 4447, 2540, 12, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4527, 2540, 67, 2738, 67, 12, 2890, 16, 4447, 2540, 4672, 436, 8395, 5675, 8900, 11386, 30, 1660, 1122, 12270, 279, 8576, 3148, 18, 225, 493, 225, 272, 410, 30, 4447, 2540, 12, 46...
for bit in user.userbit_all().filter(Q(startdate__isnull=True) | Q(startdate__gt=now), Q(enddate__isnull=True) | Q(enddate__lt=now)):
for bit in user.userbit_set.all().filter(Q(startdate__isnull=True) | Q(startdate__gt=now), Q(enddate__isnull=True) | Q(enddate__lt=now)):
def UserHasPerms(user, qsc, verb, now = datetime.now()): """ Given a user, a permission, and a subject, return True if the user, or all users, has been Granted [subject] on [permission]; False otherwise """ if user != None: for bit in user.userbit_all().filter(Q(startdate__isnull=True) | Q(startdate__gt=now), Q(enddate...
d1233fb938c052c083f6672fa965a0f3260e246c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12041/d1233fb938c052c083f6672fa965a0f3260e246c/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2177, 5582, 27256, 12, 1355, 16, 1043, 1017, 16, 6405, 16, 2037, 273, 3314, 18, 3338, 1435, 4672, 3536, 16803, 279, 729, 16, 279, 4132, 16, 471, 279, 3221, 16, 327, 1053, 309, 326, 729...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2177, 5582, 27256, 12, 1355, 16, 1043, 1017, 16, 6405, 16, 2037, 273, 3314, 18, 3338, 1435, 4672, 3536, 16803, 279, 729, 16, 279, 4132, 16, 471, 279, 3221, 16, 327, 1053, 309, 326, 729...
hop2.args_v[0] = hop2.llops.genop('same_as', [hop2.args_v[0]], resulttype=hop.args_r[0])
hop2.args_v[0] = hop.inputarg(self, 0)
def rtype_simple_call(self, hop): s_function = annmodel.SomePBC({self.function: True}) hop2 = hop.copy() hop2.args_s[0] = self.s_im_self # make the 1st arg stand for 'im_self' hop2.args_r[0] = self.r_im_self # (same lowleveltype as 'self') if isinstance(hop2.args_v[0], Constant): hop2.args_v[0] = hop2.llops.genop('...
b90a36a5b0f9675e48eab4b8de74efe90d55021a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/b90a36a5b0f9675e48eab4b8de74efe90d55021a/rpbc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9328, 67, 9647, 67, 1991, 12, 2890, 16, 19055, 4672, 272, 67, 915, 273, 8226, 2284, 18, 17358, 52, 16283, 12590, 2890, 18, 915, 30, 1053, 6792, 19055, 22, 273, 19055, 18, 3530, 1435, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9328, 67, 9647, 67, 1991, 12, 2890, 16, 19055, 4672, 272, 67, 915, 273, 8226, 2284, 18, 17358, 52, 16283, 12590, 2890, 18, 915, 30, 1053, 6792, 19055, 22, 273, 19055, 18, 3530, 1435, 1...
return isinstance(f, os_mock.FakeSymlink)
return type(f) == os_mock.FakeSymlink
def islink(path): f = os_mock._findFileFromPath(path) return isinstance(f, os_mock.FakeSymlink)
6d1553d710a84aa33b2dd4302a9d09ec74019279 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10739/6d1553d710a84aa33b2dd4302a9d09ec74019279/os_path_mock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 1232, 12, 803, 4672, 284, 273, 1140, 67, 22851, 6315, 4720, 812, 23064, 12, 803, 13, 327, 618, 12, 74, 13, 422, 1140, 67, 22851, 18, 25462, 18475, 282, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 1232, 12, 803, 4672, 284, 273, 1140, 67, 22851, 6315, 4720, 812, 23064, 12, 803, 13, 327, 618, 12, 74, 13, 422, 1140, 67, 22851, 18, 25462, 18475, 282, 2, -100, -100, -100, -100, ...
lines[i:i+1] = ["\\begin_inset Note", "collapsed true", "", "\layout Standard", ""]
txt = string.lstrip(lines[i][18:]) new = ["\\begin_inset Note", "collapsed true", ""] if len(txt) > 0: new = new + ["\layout Standard", "", txt] j = find_token(lines, "\\end_inset", i) if j == -1: break for k in range(i+1, j): new = new + ["\layout Standard", ""] tmp = string.split(lines[k], '\\') new = new + [tmp[0]] ...
def change_infoinset(lines): i = 0 while 1: i = find_token(lines, "\\begin_inset Info", i) if i == -1: break lines[i:i+1] = ["\\begin_inset Note", "collapsed true", "", "\layout Standard", ""] i = i+5
a8063760341954928dcdf85c177d1f68720b54f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7514/a8063760341954928dcdf85c177d1f68720b54f7/lyxconvert_218.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 67, 1376, 267, 542, 12, 3548, 4672, 277, 273, 374, 1323, 404, 30, 277, 273, 1104, 67, 2316, 12, 3548, 16, 8422, 10086, 67, 267, 542, 3807, 3113, 277, 13, 309, 277, 422, 300, 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, 2549, 67, 1376, 267, 542, 12, 3548, 4672, 277, 273, 374, 1323, 404, 30, 277, 273, 1104, 67, 2316, 12, 3548, 16, 8422, 10086, 67, 267, 542, 3807, 3113, 277, 13, 309, 277, 422, 300, 21...
for key,val in fields_def[field[len(prefix)]]['selection']: if key==line[i]:
if isinstance(fields_def[field[len(prefix)]]['selection'], (tuple, list)): sel = fields_def[field[len(prefix)]]['selection'] else: sel = fields_def[field[len(prefix)]]['selection'](self, cr, uid, context) for key, val in sel: if key == line[i]:
def process_liness(self, datas, prefix, fields_def, position=0): line = datas[position] row = {} translate = {} todo = [] warning = '' data_id= False # # Import normal fields # for i in range(len(fields)): if i>=len(line): raise Exception, 'Please check that all your lines have %d cols.' % (len(fields),) field = fields...
750be3f162aa171b717f40bceb2c8a8f7cbc3814 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/750be3f162aa171b717f40bceb2c8a8f7cbc3814/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 80, 6336, 12, 2890, 16, 5386, 16, 1633, 16, 1466, 67, 536, 16, 1754, 33, 20, 4672, 980, 273, 5386, 63, 3276, 65, 1027, 273, 2618, 4204, 273, 2618, 10621, 273, 5378, 3436, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 80, 6336, 12, 2890, 16, 5386, 16, 1633, 16, 1466, 67, 536, 16, 1754, 33, 20, 4672, 980, 273, 5386, 63, 3276, 65, 1027, 273, 2618, 4204, 273, 2618, 10621, 273, 5378, 3436, 2...
zipopen1 = zipfp.open(TESTFN) while True: read_data = zipopen1.read(randint(1, 1024)) if not read_data: break zipdata1.append(read_data)
with zipfp.open(TESTFN) as zipopen1: while True: read_data = zipopen1.read(randint(1, 1024)) if not read_data: break zipdata1.append(read_data)
def zip_random_open_test(self, f, compression): self.make_test_archive(f, compression)
df64e4ebf884a9041c9514c1c88905dd4793c799 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/df64e4ebf884a9041c9514c1c88905dd4793c799/test_zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3144, 67, 9188, 67, 3190, 67, 3813, 12, 2890, 16, 284, 16, 9154, 4672, 365, 18, 6540, 67, 3813, 67, 10686, 12, 74, 16, 9154, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3144, 67, 9188, 67, 3190, 67, 3813, 12, 2890, 16, 284, 16, 9154, 4672, 365, 18, 6540, 67, 3813, 67, 10686, 12, 74, 16, 9154, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
def _send_raw_message(self, message, content_typa, failure_report=None, success_report=None):
def _send_raw_message(self, message, content_type, failure_report=None, success_report=None):
def _send_raw_message(self, message, content_typa, failure_report=None, success_report=None): """Send raw MSRP message. For IM prefer send_message.
0da24be390d17a75c608d005baa7cffdaabc7e76 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/0da24be390d17a75c608d005baa7cffdaabc7e76/msrp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4661, 67, 1899, 67, 2150, 12, 2890, 16, 883, 16, 913, 67, 723, 16, 5166, 67, 6006, 33, 7036, 16, 2216, 67, 6006, 33, 7036, 4672, 3536, 3826, 1831, 9238, 54, 52, 883, 18, 2457, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 4661, 67, 1899, 67, 2150, 12, 2890, 16, 883, 16, 913, 67, 723, 16, 5166, 67, 6006, 33, 7036, 16, 2216, 67, 6006, 33, 7036, 4672, 3536, 3826, 1831, 9238, 54, 52, 883, 18, 2457, ...
if not Particle.IsParticleNode(first_elt, 'attributeGroup', 'attribute'):
if not Particle.IsParticleNode(first_elt, 'attributeGroup', 'attribute', 'anyAttribute'):
def __setContentFromDOM (self, node, **kw): schema = kw.get('schema') assert schema is not None self.__prohibitedSubstitutions = schema.blockForNode(node, self._DM_Map) self.__final = schema.finalForNode(node, self._DM_Map)
de09598389957b51dc0330473d4740f70e2e2177 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/de09598389957b51dc0330473d4740f70e2e2177/structures.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1350, 1265, 8168, 261, 2890, 16, 756, 16, 2826, 9987, 4672, 1963, 273, 5323, 18, 588, 2668, 4821, 6134, 1815, 1963, 353, 486, 599, 365, 16186, 685, 29993, 1676, 30892, 273, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1350, 1265, 8168, 261, 2890, 16, 756, 16, 2826, 9987, 4672, 1963, 273, 5323, 18, 588, 2668, 4821, 6134, 1815, 1963, 353, 486, 599, 365, 16186, 685, 29993, 1676, 30892, 273, 19...
title = "debug: run py code" label = "one line of python to exec in GLPane.py's globals()\n(or use @@@ to fake \\n for more lines)\n(or use execfile)" text, ok = QInputDialog.getText(title, label) if ok: command = str(text) command = command.replace("@@@",'\n') debug_run_command(command, source = "debug menu") else: p...
from debug import debug_runpycode_from_a_dialog debug_runpycode_from_a_dialog( source = "GLPane debug menu")
def _debug_runpycode(self): title = "debug: run py code" label = "one line of python to exec in GLPane.py's globals()\n(or use @@@ to fake \\n for more lines)\n(or use execfile)" text, ok = QInputDialog.getText(title, label) if ok: # fyi: type(text) == <class '__main__.qt.QString'> command = str(text) #k not yet well t...
58014ed45f5e3515fdd119ffc5f12b1270e5cb07 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/58014ed45f5e3515fdd119ffc5f12b1270e5cb07/GLPane.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4148, 67, 2681, 2074, 710, 12, 2890, 4672, 2077, 273, 315, 4148, 30, 1086, 2395, 981, 6, 1433, 273, 315, 476, 980, 434, 5790, 358, 1196, 316, 10252, 8485, 18, 2074, 1807, 10941, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4148, 67, 2681, 2074, 710, 12, 2890, 4672, 2077, 273, 315, 4148, 30, 1086, 2395, 981, 6, 1433, 273, 315, 476, 980, 434, 5790, 358, 1196, 316, 10252, 8485, 18, 2074, 1807, 10941, 1...
request.theme.add_msg(_("[Template %s not found]") % (template_page, ), 'warning')
request.theme.add_msg(_("[Template %s not found]") % (template_page_escaped, ), 'warning')
def sendEditor(self, **kw): """ Send the editor form page.
33473aac36554b90e9102b9fa170fd420e493eb7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/888/33473aac36554b90e9102b9fa170fd420e493eb7/PageEditor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 6946, 12, 2890, 16, 2826, 9987, 4672, 3536, 2479, 326, 4858, 646, 1363, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 6946, 12, 2890, 16, 2826, 9987, 4672, 3536, 2479, 326, 4858, 646, 1363, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if 0 != os.system(cmd)
if os.system(cmd) != 0:
def getInputSandbox(src_dir,dest_dir='.'): """Get all input sandbox_files from tarball and write them to the workdir. This function is called by wrapper script at the run time. Arguments: 'src_dir': a source directory with InputSandbox files. 'dest_dir': a destination directory """ cmd = "tar chf - -C %s . | tar xf -...
d57be370df3e48a6ed2a98ad732f9066ea0e968f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/d57be370df3e48a6ed2a98ad732f9066ea0e968f/WNSandbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12353, 17881, 12, 4816, 67, 1214, 16, 10488, 67, 1214, 2218, 1093, 4672, 3536, 967, 777, 810, 15202, 67, 2354, 628, 29441, 471, 1045, 2182, 358, 326, 22231, 18, 1220, 445, 353, 2566, 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, 12353, 17881, 12, 4816, 67, 1214, 16, 10488, 67, 1214, 2218, 1093, 4672, 3536, 967, 777, 810, 15202, 67, 2354, 628, 29441, 471, 1045, 2182, 358, 326, 22231, 18, 1220, 445, 353, 2566, 635...
if isinstance(var_doc.value, RoutineDoc): if summary: summary = '<br />'+summary self.write_function_summary_line(out, var_doc, tr_class, summary) else: self.write_variable_summary_line(out, var_doc, tr_class, summary) write_function_summary_line = compile_template( """ write_function_summary_line(self, out, var_doc...
self._write_summary_line(out, typ, description, tr_class) _write_summary_line = compile_template( """ _write_summary_line(self, out, typ, description, tr_class)
def write_summary_line(self, out, var_doc, container): """ Generate HTML code for a single line of a summary table, and write it to C{out}. See L{write_summary_table} for more information. @param var_doc: The API documentation for the variable that should be described by this line of the summary table. @param contain...
5c410b5b6e25df3bdbc6da266f7773518165cb02 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/5c410b5b6e25df3bdbc6da266f7773518165cb02/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 7687, 67, 1369, 12, 2890, 16, 596, 16, 569, 67, 2434, 16, 1478, 4672, 3536, 6654, 3982, 981, 364, 279, 2202, 980, 434, 279, 4916, 1014, 16, 471, 1045, 518, 358, 385, 95, 65...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 7687, 67, 1369, 12, 2890, 16, 596, 16, 569, 67, 2434, 16, 1478, 4672, 3536, 6654, 3982, 981, 364, 279, 2202, 980, 434, 279, 4916, 1014, 16, 471, 1045, 518, 358, 385, 95, 65...
if isinstance(right, basestring):
def _get_expression(field_obj,cr, uid, left, right, operator, context=None): if context is None: context = {}
def _rec_convert(ids): if field_obj == table: return ids return self.__execute_recursive_in(cr, field._id1, field._rel, field._id2, ids, operator, field._type)
4ab96967d08049b60156a136841f49426255bb5b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/4ab96967d08049b60156a136841f49426255bb5b/expression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3927, 67, 6283, 12, 2232, 4672, 309, 652, 67, 2603, 422, 1014, 30, 327, 3258, 327, 365, 16186, 8837, 67, 10543, 67, 267, 12, 3353, 16, 652, 6315, 350, 21, 16, 652, 6315, 2878, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3927, 67, 6283, 12, 2232, 4672, 309, 652, 67, 2603, 422, 1014, 30, 327, 3258, 327, 365, 16186, 8837, 67, 10543, 67, 267, 12, 3353, 16, 652, 6315, 350, 21, 16, 652, 6315, 2878, 1...
ts.get_available_actions(self.req,
self._ts_get_available_actions(ts,
def test_available_actions_chgprop_only(self): # CHGPROP is not enough for changing a ticket's state (#3289) ts = TicketSystem(self.env) self.perm.grant_permission('anonymous', 'TICKET_CHGPROP') self.req.perm = perm.PermissionCache(self.env) self.assertEqual(['leave'], ts.get_available_actions(self.req, {'status': 'new...
4b1c974fc51a3689f934bd513f21feadc4fe0a2a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9317/4b1c974fc51a3689f934bd513f21feadc4fe0a2a/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5699, 67, 4905, 67, 343, 75, 5986, 67, 3700, 12, 2890, 4672, 468, 6469, 43, 15811, 353, 486, 7304, 364, 12770, 279, 9322, 1807, 919, 23885, 1578, 6675, 13, 3742, 273, 22023, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5699, 67, 4905, 67, 343, 75, 5986, 67, 3700, 12, 2890, 4672, 468, 6469, 43, 15811, 353, 486, 7304, 364, 12770, 279, 9322, 1807, 919, 23885, 1578, 6675, 13, 3742, 273, 22023, ...
self.literal_block = 0
def depart_literal_block(self, node): if self.verbatim: self.body.append('\n\\end{verbatim}\n') self.verbatim = 0 elif self.active_table.is_open(): self.body.append('\n}\n') else: self.body.append('\n') self.body.append('\\end{flushleft}') self.body.append('\\end{ttfamily}\n') self.insert_none_breaking_blanks = 0 # obe...
2794cbe7ffe26caeae085e89ccda3dd6f08a3d28 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/2794cbe7ffe26caeae085e89ccda3dd6f08a3d28/latex2e.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 13107, 67, 2629, 12, 2890, 16, 756, 4672, 309, 365, 18, 16629, 22204, 30, 365, 18, 3432, 18, 6923, 2668, 64, 82, 1695, 409, 95, 16629, 22204, 6280, 82, 6134, 365, 18, 16629,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 13107, 67, 2629, 12, 2890, 16, 756, 4672, 309, 365, 18, 16629, 22204, 30, 365, 18, 3432, 18, 6923, 2668, 64, 82, 1695, 409, 95, 16629, 22204, 6280, 82, 6134, 365, 18, 16629,...
__version__='$Revision: 1.53 $'[11:-2]
__version__='$Revision: 1.54 $'[11:-2]
def taste(spam): "a favorable reviewer" return spam,'yum yum, I like ' + spam
e30df7f7307b319c1beffb3e9dd071fe09e39f2f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/e30df7f7307b319c1beffb3e9dd071fe09e39f2f/Publish.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 14725, 12, 1752, 301, 4672, 315, 69, 18552, 429, 10725, 264, 6, 327, 24824, 11189, 93, 379, 677, 379, 16, 467, 3007, 296, 397, 24824, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 14725, 12, 1752, 301, 4672, 315, 69, 18552, 429, 10725, 264, 6, 327, 24824, 11189, 93, 379, 677, 379, 16, 467, 3007, 296, 397, 24824, 225, 2, -100, -100, -100, -100, -100, -100, -...
def __str__(self): return "%x%x%x%x%x" % struct.unpack("!5I", self.s)
def freeze(self): return struct.pack("!5I", int(self.s[ 0: 8], 16), int(self.s[ 8:16], 16), int(self.s[16:24], 16), int(self.s[24:32], 16), int(self.s[32:40], 16)) def thaw(self, data): if data: self.s = "%08x%08x%08x%08x%08x" % struct.unpack("!5I", data)
def __init__(self, s = ''):
e2373a608287a3a2b9eb07f5d0982ec0a5eea3ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/e2373a608287a3a2b9eb07f5d0982ec0a5eea3ee/streams.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 272, 273, 875, 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, 1001, 2738, 972, 12, 2890, 16, 272, 273, 875, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
| GT
| GT
def p_overloadable(t): '''overloadable : EQUALS | PLUS | MINUS | TIMES | DIVIDE | MOD | INCREMENT | DECREMENT | EQ | NE | GT | LT | GTE | LTE | LOGNOT | LOGAND | LOGOR | BITNOT | BITAND | BITOR | BITXOR | BITLEFT | BITRIGHT | ASSIGNOPER | SUBSCRIPT | OPFUNCALL | MEMBERPTR''' t[0] = t[1]
b18bfa4c727ef99b17e34b711a2fa7debc2d1459 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13661/b18bfa4c727ef99b17e34b711a2fa7debc2d1459/blt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 67, 1643, 945, 429, 12, 88, 4672, 9163, 1643, 945, 429, 294, 27557, 571, 22443, 3378, 571, 6989, 3378, 571, 8721, 55, 571, 27355, 10385, 571, 8663, 571, 2120, 23923, 571, 2030, 2392...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 67, 1643, 945, 429, 12, 88, 4672, 9163, 1643, 945, 429, 294, 27557, 571, 22443, 3378, 571, 6989, 3378, 571, 8721, 55, 571, 27355, 10385, 571, 8663, 571, 2120, 23923, 571, 2030, 2392...
if self.songindex >= 0: item = self.GetItem(self.songindex) item.SetFont(self.font) self.SetItem(item) self.songindex = newindex if newindex >= 0: item = self.GetItem(self.songindex) item.SetFont(self.bold_font) self.SetItem(item) self.EnsureVisible(newindex) self.resizeColumns()
try: if self.songindex >= 0: item = self.GetItem(self.songindex) item.SetFont(self.font) self.SetItem(item) self.songindex = newindex if newindex >= 0: item = self.GetItem(self.songindex) item.SetFont(self.bold_font) self.SetItem(item) self.EnsureVisible(newindex) self.resizeColumns() except: pass
def highlightSong(self, newindex): if newindex == self.songindex: return if self.songindex >= 0: item = self.GetItem(self.songindex) item.SetFont(self.font) self.SetItem(item) self.songindex = newindex if newindex >= 0: item = self.GetItem(self.songindex) item.SetFont(self.bold_font) self.SetItem(item) self.EnsureVisi...
5d0654c6ed59c9ed6c325bb83e8a022b3bc88ff9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/5d0654c6ed59c9ed6c325bb83e8a022b3bc88ff9/mpd_major_mode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8839, 55, 932, 12, 2890, 16, 394, 1615, 4672, 309, 394, 1615, 422, 365, 18, 816, 75, 1615, 30, 327, 225, 775, 30, 309, 365, 18, 816, 75, 1615, 1545, 374, 30, 761, 273, 365, 18, 967...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8839, 55, 932, 12, 2890, 16, 394, 1615, 4672, 309, 394, 1615, 422, 365, 18, 816, 75, 1615, 30, 327, 225, 775, 30, 309, 365, 18, 816, 75, 1615, 1545, 374, 30, 761, 273, 365, 18, 967...
fmt = '<hhqq'
fmt = '<HHQQ'
def FileHeader(self): """Return the per-file header as a string.""" dt = self.date_time dosdate = (dt[0] - 1980) << 9 | dt[1] << 5 | dt[2] dostime = dt[3] << 11 | dt[4] << 5 | (dt[5] // 2) if self.flag_bits & 0x08: # Set these to zero because we write them after the file data CRC = compress_size = file_size = 0 else: C...
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, 1387, 1864, 12, 2890, 4672, 3536, 990, 326, 1534, 17, 768, 1446, 487, 279, 533, 12123, 3681, 273, 365, 18, 712, 67, 957, 16153, 712, 273, 261, 7510, 63, 20, 65, 300, 5342, 3672, 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, 1387, 1864, 12, 2890, 4672, 3536, 990, 326, 1534, 17, 768, 1446, 487, 279, 533, 12123, 3681, 273, 365, 18, 712, 67, 957, 16153, 712, 273, 261, 7510, 63, 20, 65, 300, 5342, 3672, 13, ...
if result.has_key('Value'):
if result.has_key('Failed'):
def getInputDataCatalog(self,lfns,siteName='',fileName='pool_xml_catalog.xml',ignoreMissing=False): """This utility will create a pool xml catalogue slice for the specified LFNs using the full input data resolution policy plugins for the VO.
c0569361fb5467b91d09306ec758a42f00a5f4e1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/c0569361fb5467b91d09306ec758a42f00a5f4e1/Dirac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12353, 751, 9769, 12, 2890, 16, 20850, 2387, 16, 4256, 461, 2218, 2187, 17812, 2218, 6011, 67, 2902, 67, 7199, 18, 2902, 2187, 6185, 4841, 33, 8381, 4672, 3536, 2503, 12788, 903, 752, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12353, 751, 9769, 12, 2890, 16, 20850, 2387, 16, 4256, 461, 2218, 2187, 17812, 2218, 6011, 67, 2902, 67, 7199, 18, 2902, 2187, 6185, 4841, 33, 8381, 4672, 3536, 2503, 12788, 903, 752, 27...
self.showTask(tid)
self.showTaskCommandsByRow(entry[0])
def showState(self): cur = self.cursor() # look for tasks cur.execute("select * from tasks;") ttable = cur.fetchall() taskdict = {} if ttable == []: print "No Tasks in DB" else: for row in ttable: taskid = row[0] if taskid not in taskdict: taskdict[taskid] = (1, row[3]) else: entry = taskdict[taskid] taskdict[taskid] =...
3cd301b01a645d1a52aac27ed91a3a3acfbc9bc7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5203/3cd301b01a645d1a52aac27ed91a3a3acfbc9bc7/ssdap_dbutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 1119, 12, 2890, 4672, 662, 273, 365, 18, 9216, 1435, 468, 2324, 364, 4592, 662, 18, 8837, 2932, 4025, 380, 628, 4592, 4868, 13, 268, 2121, 273, 662, 18, 5754, 454, 1435, 1562, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1119, 12, 2890, 4672, 662, 273, 365, 18, 9216, 1435, 468, 2324, 364, 4592, 662, 18, 8837, 2932, 4025, 380, 628, 4592, 4868, 13, 268, 2121, 273, 662, 18, 5754, 454, 1435, 1562, 15...
kpt = self.get_bz_k_points()[k]
kpt_c = self.get_bz_k_points()[kpt]
def get_pseudo_wave_function(self, band=0, kpt=0, spin=0, pad=True): kpt = self.get_bz_k_points()[k] state = self.calc.GetElectronicStates().GetState(band=n, spin=s, kptindex=k)
aa4d5cc37cc3ac184ba76ba4c4396932f889d1b4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5735/aa4d5cc37cc3ac184ba76ba4c4396932f889d1b4/dacapo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 26023, 67, 17838, 67, 915, 12, 2890, 16, 8937, 33, 20, 16, 417, 337, 33, 20, 16, 12490, 33, 20, 16, 4627, 33, 5510, 4672, 417, 337, 67, 71, 273, 365, 18, 588, 67, 25292, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26023, 67, 17838, 67, 915, 12, 2890, 16, 8937, 33, 20, 16, 417, 337, 33, 20, 16, 12490, 33, 20, 16, 4627, 33, 5510, 4672, 417, 337, 67, 71, 273, 365, 18, 588, 67, 25292, ...
finally: try: self.cache_mgr._delete_path(path) except KeyError: pass
try: self.cache_mgr._delete_path(path) except KeyError: pass
def delete_handler(self, filecmd): path = filecmd.path try: del self.inventory[self.bzr_file_id(path)] except errors.NoSuchId: self.warning("ignoring delete of %s as not in inventory", path) finally: try: self.cache_mgr._delete_path(path) except KeyError: pass
e0886d39716999f977a46782a2f9c2065e41c9d8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8703/e0886d39716999f977a46782a2f9c2065e41c9d8/generic_processor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 4176, 12, 2890, 16, 585, 4172, 4672, 589, 273, 585, 4172, 18, 803, 775, 30, 1464, 365, 18, 26024, 63, 2890, 18, 25292, 86, 67, 768, 67, 350, 12, 803, 25887, 1335, 1334, 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, 1430, 67, 4176, 12, 2890, 16, 585, 4172, 4672, 589, 273, 585, 4172, 18, 803, 775, 30, 1464, 365, 18, 26024, 63, 2890, 18, 25292, 86, 67, 768, 67, 350, 12, 803, 25887, 1335, 1334, 18,...
print "start step", start, step, self.editCtrl.exec_mark print "start line", self.editCtrl.GetLine(start) code = self.GenerateStream(step) code.print_code() stop = self.app.ExecuteStream(code, start)
if self.editCtrl.IsBreakSet(start): self.editCtrl.MarkerDelete(start, 0) code = self.GenerateStream(start) self.editCtrl.MarkerAdd(start, 0) stop = self.app.ExecuteStream(code, start) codelen = len(code) - 1 while stop < codelen and isinstance(code[stop + 1], spe.Label): stop += 1 if step == None: start = sto...
def OnToolClick(self, event): id = event.GetId()
4f7cf094f743cc1258da61338293d78c609f2898 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9699/4f7cf094f743cc1258da61338293d78c609f2898/ispugui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 6364, 6563, 12, 2890, 16, 871, 4672, 612, 273, 871, 18, 967, 548, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 6364, 6563, 12, 2890, 16, 871, 4672, 612, 273, 871, 18, 967, 548, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.addnstr(txt, len(txt), curses.color_pair(theme.COLOR_INFORMATION_BAR))
self.addstr(txt, curses.color_pair(theme.COLOR_INFORMATION_BAR))
def write_role(self, room): """ Write our own role and affiliation """ own_user = None for user in room.users: if user.nick == room.own_nick: own_user = user break if not own_user: return txt = ' (' if own_user.affiliation != 'none': txt += own_user.affiliation+', ' txt += own_user.role+')' self.addnstr(txt, len(txt), ...
53a5536cf12cbe8474f37b1c8e31b60489b2b62f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9814/53a5536cf12cbe8474f37b1c8e31b60489b2b62f/window.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 4615, 12, 2890, 16, 7725, 4672, 3536, 2598, 3134, 4953, 2478, 471, 7103, 16278, 3536, 4953, 67, 1355, 273, 599, 364, 729, 316, 7725, 18, 5577, 30, 309, 729, 18, 17091, 422, 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, 1045, 67, 4615, 12, 2890, 16, 7725, 4672, 3536, 2598, 3134, 4953, 2478, 471, 7103, 16278, 3536, 4953, 67, 1355, 273, 599, 364, 729, 316, 7725, 18, 5577, 30, 309, 729, 18, 17091, 422, 7...
self.__singular = singular.ring("(complex,I)", _vars, order=order)
precision = self.base_ring().precision() digits = sage.misc.functional.ceil((2*precision - 2)/7.0) self.__singular = singular.ring("(complex,%d,0,I)"%digits, _vars, order=order)
def _singular_init_(self, singular=singular_default): """ Return a newly created Singular ring matching this ring. """ if not self._can_convert_to_singular(): raise TypeError, "no conversion of %s to a Singular ring defined"%self if self.ngens()==1: _vars = str(self.gen()) order = 'lp' else: _vars = str(self.gens()) o...
73d04e6a6a3a189b4546507ef107a2660edf9f9d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/73d04e6a6a3a189b4546507ef107a2660edf9f9d/polynomial_singular_interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 17835, 67, 2738, 67, 12, 2890, 16, 10048, 33, 17835, 67, 1886, 4672, 3536, 2000, 279, 10894, 2522, 348, 17830, 9221, 3607, 333, 9221, 18, 3536, 309, 486, 365, 6315, 4169, 67, 6283, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17835, 67, 2738, 67, 12, 2890, 16, 10048, 33, 17835, 67, 1886, 4672, 3536, 2000, 279, 10894, 2522, 348, 17830, 9221, 3607, 333, 9221, 18, 3536, 309, 486, 365, 6315, 4169, 67, 6283, ...
cal_file = string.strip(self.__cp.get('calibration','H2-1'))
cal_file = self.job().get_config('calibration','H2-1')
def calibration(self): """ Set the path to the calibration cache file for the given IFO. During S2 the Hanford 2km IFO had two calibration epochs, so if the start time is during S2, we use the correct cache file. """ cal_path = string.strip(self.__cp.get('calibration','path'))
243cce9ec378a43e681624907856e03a7b823a1a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/243cce9ec378a43e681624907856e03a7b823a1a/pipeline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15344, 12, 2890, 4672, 3536, 1000, 326, 589, 358, 326, 15344, 1247, 585, 364, 326, 864, 467, 3313, 18, 463, 4017, 348, 22, 326, 670, 304, 31836, 576, 18353, 467, 3313, 9323, 2795, 15344,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15344, 12, 2890, 4672, 3536, 1000, 326, 589, 358, 326, 15344, 1247, 585, 364, 326, 864, 467, 3313, 18, 463, 4017, 348, 22, 326, 670, 304, 31836, 576, 18353, 467, 3313, 9323, 2795, 15344,...
_new_entry_boilerplate = '''2009-08-19 Eric Seidel <eric@webkit.org>
def latest_entry(self): changelog_file = open(self.path) try: return self._parse_latest_entry_from_file(changelog_file) finally: changelog_file.close()
def _read_file_contents(file_path): file = open(file_path) contents = file.read() file.close() return contents
ca4cad9f45fb5f85c7c9551aaec86d179a83bef8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/ca4cad9f45fb5f85c7c9551aaec86d179a83bef8/changelogs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 768, 67, 3980, 12, 768, 67, 803, 4672, 585, 273, 1696, 12, 768, 67, 803, 13, 2939, 273, 585, 18, 896, 1435, 585, 18, 4412, 1435, 327, 2939, 2, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 768, 67, 3980, 12, 768, 67, 803, 4672, 585, 273, 1696, 12, 768, 67, 803, 13, 2939, 273, 585, 18, 896, 1435, 585, 18, 4412, 1435, 327, 2939, 2, -100, -100, -100, -100, ...
""" % {'diracPilotFileName':self.diracPilotFileName,'options':pilotOptionString} fopen = open(pilotFileName,'w') fopen.write(fileContent)
""" % {'diracPilotFileName':self.diracPilotFileName, 'options':pilotOptionString} fopen = open( pilotFileName, 'w' ) fopen.write( fileContent )
def __createPilotFile(self):
364464017f61dc703439c7a2235a47d4ba35aafe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/364464017f61dc703439c7a2235a47d4ba35aafe/DiracSiteAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2640, 52, 22797, 812, 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,...
[ 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, 1001, 2640, 52, 22797, 812, 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, -10...
assert(len(wl)==15) aac = wl[14]
assert(len(wl)==12) aac = wl[11]
def isLastArgMax(l): argmax = 0 maxval = 0.0 argn = 0 for p in l: if maxval<p[1]: maxval = p[1] argmax = argn argn += 1 return argmax==(argn-1)
525610922bf97a49dc921ee3d6f19cb70ac9706b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10249/525610922bf97a49dc921ee3d6f19cb70ac9706b/SPCTools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23075, 4117, 2747, 12, 80, 4672, 20828, 273, 374, 30443, 273, 374, 18, 20, 1501, 82, 273, 374, 364, 293, 316, 328, 30, 309, 30443, 32, 84, 63, 21, 14542, 30443, 273, 293, 63, 21, 65,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23075, 4117, 2747, 12, 80, 4672, 20828, 273, 374, 30443, 273, 374, 18, 20, 1501, 82, 273, 374, 364, 293, 316, 328, 30, 309, 30443, 32, 84, 63, 21, 14542, 30443, 273, 293, 63, 21, 65,...
t, p, remainder = self.step(segment, t, remainder)
if segment < n-1: t, p, remainder = self.step(segment, t, remainder)
def calculatePath(self): """ generate a flight path for of steps of length dl """
267e750861571459622004dc4ba011a2cd076daa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12580/267e750861571459622004dc4ba011a2cd076daa/EndoscopyGUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4604, 743, 12, 2890, 4672, 3536, 2103, 279, 25187, 589, 364, 434, 6075, 434, 769, 8910, 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, ...
[ 1, 1, 1, 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, 4604, 743, 12, 2890, 4672, 3536, 2103, 279, 25187, 589, 364, 434, 6075, 434, 769, 8910, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
try: _ins = None code.compile_command(importstr) exec importstr if _ins is None: logging.error('Unable to create instrument') return None self.add(_ins, create_args=kwargs) except Exception, e: logging.error('Error: %s', str(e)) return None
_ins = None code.compile_command(importstr) exec importstr if _ins is None: logging.error('Unable to create instrument') return None self.add(_ins, create_args=kwargs)
def create(self, name, instype, **kwargs): ''' Create an instrument called 'name' of type 'type'.
144e4622ffb232ffd4636c7b86894903acad098f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6471/144e4622ffb232ffd4636c7b86894903acad098f/instruments.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 508, 16, 1804, 388, 16, 2826, 4333, 4672, 9163, 1788, 392, 10353, 2566, 296, 529, 11, 434, 618, 296, 723, 10332, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 508, 16, 1804, 388, 16, 2826, 4333, 4672, 9163, 1788, 392, 10353, 2566, 296, 529, 11, 434, 618, 296, 723, 10332, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
fh = repo.opener('.queues.new', 'w')
fh = repo.opener('patches.queues.new', 'w')
def _addqueue(name): fh = repo.opener(_allqueues, 'a') fh.write('%s\n' % (name,)) fh.close()
be5b25050e2f30b6cbab9a45c4d52a40d92ab18e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/be5b25050e2f30b6cbab9a45c4d52a40d92ab18e/mq.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 4000, 12, 529, 4672, 7625, 273, 3538, 18, 25098, 24899, 454, 18924, 16, 296, 69, 6134, 7625, 18, 2626, 29909, 87, 64, 82, 11, 738, 261, 529, 16, 3719, 7625, 18, 4412, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1289, 4000, 12, 529, 4672, 7625, 273, 3538, 18, 25098, 24899, 454, 18924, 16, 296, 69, 6134, 7625, 18, 2626, 29909, 87, 64, 82, 11, 738, 261, 529, 16, 3719, 7625, 18, 4412, 1435, ...
fd, name = tempfile.mkstemp() fileobj = os.fdopen(fd, "w+b") try: writer = csv.writer(fileobj) writer.writerow([1,2,3]) fileobj.seek(0) self.assertEqual(fileobj.read(), "1,2,3\r\n") finally: fileobj.close() os.unlink(name) fd, name = tempfile.mkstemp() fileobj = os.fdopen(fd, "w+b") try: writer = csv.writer(fileobj, t...
self.compare_dialect_123("1,2,3\r\n") self.compare_dialect_123("1\t2\t3\r\n", testA) self.compare_dialect_123("1:2:3\r\n", dialect=testB()) self.compare_dialect_123("1|2|3\r\n", dialect='testC') self.compare_dialect_123("1;2;3\r\n", dialect=testA, delimiter=';') self.compare_dialect_123("1\u039B2\u039B3\r\n", dialect=t...
def test_dialect_apply(self): class testA(csv.excel): delimiter = "\t" class testB(csv.excel): delimiter = ":" class testC(csv.excel): delimiter = "|"
2837440cd7e82f53ee7e194e97a8b6ffcc4e97cf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/2837440cd7e82f53ee7e194e97a8b6ffcc4e97cf/test_csv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 25909, 386, 67, 9010, 12, 2890, 4672, 667, 1842, 37, 12, 6715, 18, 24121, 4672, 5654, 273, 1548, 88, 6, 667, 1842, 38, 12, 6715, 18, 24121, 4672, 5654, 273, 6153, 667, 1842, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 67, 25909, 386, 67, 9010, 12, 2890, 4672, 667, 1842, 37, 12, 6715, 18, 24121, 4672, 5654, 273, 1548, 88, 6, 667, 1842, 38, 12, 6715, 18, 24121, 4672, 5654, 273, 6153, 667, 1842, ...
self.save_journal(cn, cols, nodeid, journaldate,
self.save_journal(cn, cols, nodeid, dc(journaldate),
def add_new_columns_v2(self): '''While we're adding the actor column, we need to update the tables to have the correct datatypes.''' for klass in self.classes.values(): cn = klass.classname properties = klass.getprops() old_spec = self.database_schema['tables'][cn]
5f95dd34105d9fa54d471617dd14823905eabd07 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/5f95dd34105d9fa54d471617dd14823905eabd07/back_mysql.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2704, 67, 5112, 67, 90, 22, 12, 2890, 4672, 9163, 15151, 732, 4565, 6534, 326, 8327, 1057, 16, 732, 1608, 358, 1089, 326, 4606, 358, 1240, 326, 3434, 14760, 1093, 6309, 364, 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, 527, 67, 2704, 67, 5112, 67, 90, 22, 12, 2890, 4672, 9163, 15151, 732, 4565, 6534, 326, 8327, 1057, 16, 732, 1608, 358, 1089, 326, 4606, 358, 1240, 326, 3434, 14760, 1093, 6309, 364, 7...