rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
return newPacket(self.pubTag, self._bodyStream, minHeaderLen = minHeaderLen)
return self._msgClass.newPacket(self.pubTag, self._bodyStream, minHeaderLen = minHeaderLen)
def toPublicKey(self, minHeaderLen = 2): return newPacket(self.pubTag, self._bodyStream, minHeaderLen = minHeaderLen)
4fd56e701ef4706d42981fa85285185ee22dae57 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/4fd56e701ef4706d42981fa85285185ee22dae57/openpgpfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 9632, 12, 2890, 16, 1131, 1864, 2891, 273, 576, 4672, 327, 394, 6667, 12, 2890, 18, 10174, 1805, 16, 365, 6315, 3432, 1228, 16, 1131, 1864, 2891, 273, 1131, 1864, 2891, 13, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 9632, 12, 2890, 16, 1131, 1864, 2891, 273, 576, 4672, 327, 394, 6667, 12, 2890, 18, 10174, 1805, 16, 365, 6315, 3432, 1228, 16, 1131, 1864, 2891, 273, 1131, 1864, 2891, 13, 2, -10...
return xpcom.server.WrapObject(DefaultClassInfo(self._obj_.__class__), iid, bWrapClient = 0)
return GetClassInfoForClass(self._obj_.__class__)
def _QueryInterface_(self, com_object, iid): # Framework allows us to return a single boolean integer, # or a COM object. if iid in self._nominated_interfaces_: # We return the underlying object re-wrapped # in a new gateway - which is desirable, as one gateway should only support # one interface (this wont affect the ...
25cc439a6634e0648bc276f5c054d9dabfa560ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13067/25cc439a6634e0648bc276f5c054d9dabfa560ca/policy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1138, 1358, 67, 12, 2890, 16, 532, 67, 1612, 16, 22819, 4672, 468, 13472, 5360, 584, 358, 327, 279, 2202, 1250, 3571, 16, 468, 578, 279, 5423, 733, 18, 309, 22819, 316, 365, 6315,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1138, 1358, 67, 12, 2890, 16, 532, 67, 1612, 16, 22819, 4672, 468, 13472, 5360, 584, 358, 327, 279, 2202, 1250, 3571, 16, 468, 578, 279, 5423, 733, 18, 309, 22819, 316, 365, 6315,...
if self.originalTrackNumber is not None: ET.SubElement(root, 'upnp:originalTrackNumber').text = \ str(self.originalTrackNumber)
def toElement(self,**kwargs):
e302bd87db2a38b1a1be9d8bf77e3411b0db4ee6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11626/e302bd87db2a38b1a1be9d8bf77e3411b0db4ee6/DIDLLite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 1046, 12, 2890, 16, 636, 4333, 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, 358, 1046, 12, 2890, 16, 636, 4333, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if count_words(self.target_f.strings):
if filter(None, self.target_f.strings):
def markfuzzy(self, value=True): if self.state <= OBSOLETE: return
2c35e62ffe3ab5e1666ed936af78198262141082 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11388/2c35e62ffe3ab5e1666ed936af78198262141082/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2267, 74, 13903, 12, 2890, 16, 460, 33, 5510, 4672, 309, 365, 18, 2019, 1648, 9730, 3584, 4311, 30, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2267, 74, 13903, 12, 2890, 16, 460, 33, 5510, 4672, 309, 365, 18, 2019, 1648, 9730, 3584, 4311, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
vetoed = metaio.new_from_template(self) keep = metaio.new_from_template(self)
vetoed = table.new_from_template(self) keep = table.new_from_template(self)
def veto(self,seglist): vetoed = metaio.new_from_template(self) keep = metaio.new_from_template(self) for row in self.rows: time = row.get_end() if time in seglist: vetoed.append(event) else: keep.append(event)
e61476db1c18ebe56acdb203a807e6f90b1dfe1e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/e61476db1c18ebe56acdb203a807e6f90b1dfe1e/lsctables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 331, 11453, 12, 2890, 16, 5680, 1098, 4672, 331, 11453, 329, 273, 1014, 18, 2704, 67, 2080, 67, 3202, 12, 2890, 13, 3455, 273, 1014, 18, 2704, 67, 2080, 67, 3202, 12, 2890, 13, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 331, 11453, 12, 2890, 16, 5680, 1098, 4672, 331, 11453, 329, 273, 1014, 18, 2704, 67, 2080, 67, 3202, 12, 2890, 13, 3455, 273, 1014, 18, 2704, 67, 2080, 67, 3202, 12, 2890, 13, 364, ...
code[skipno] = len(code) - skipno else: code[skipyes] = len(code) - skipyes + 1
code[skipno] = _len(code) - skipno else: code[skipyes] = _len(code) - skipyes + 1
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
2177055b902a7e649c7988bb4499ab5115b4ea1d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2177055b902a7e649c7988bb4499ab5115b4ea1d/sre_compile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 416, 12, 13107, 16, 2943, 33, 7133, 4672, 327, 389, 87, 266, 18, 588, 8167, 12, 13107, 16, 2943, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 416, 12, 13107, 16, 2943, 33, 7133, 4672, 327, 389, 87, 266, 18, 588, 8167, 12, 13107, 16, 2943, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
(pin, pout) = popen2(cmd, 'b') def writer(): try: pin.write(s) pin.close() except IOError, inst: if inst.errno != errno.EPIPE: raise w = threading.Thread(target=writer) w.start() f = pout.read() pout.close() w.join() return f
p = subprocess.Popen(cmd, shell=True, close_fds=closefds, stdin=subprocess.PIPE, stdout=subprocess.PIPE) pout, perr = p.communicate(s) return pout
def pipefilter(s, cmd): '''filter string S through command CMD, returning its output''' (pin, pout) = popen2(cmd, 'b') def writer(): try: pin.write(s) pin.close() except IOError, inst: if inst.errno != errno.EPIPE: raise # we should use select instead on UNIX, but this will work on most # systems, including Windows w ...
2ca5ed62752f2a3c9ca8f8a51141a164fd23c336 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/2ca5ed62752f2a3c9ca8f8a51141a164fd23c336/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6010, 2188, 12, 87, 16, 1797, 4672, 9163, 2188, 533, 348, 3059, 1296, 18052, 16, 5785, 2097, 876, 26418, 261, 13097, 16, 293, 659, 13, 273, 30925, 22, 12, 4172, 16, 296, 70, 6134, 1652...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6010, 2188, 12, 87, 16, 1797, 4672, 9163, 2188, 533, 348, 3059, 1296, 18052, 16, 5785, 2097, 876, 26418, 261, 13097, 16, 293, 659, 13, 273, 30925, 22, 12, 4172, 16, 296, 70, 6134, 1652...
var update_timeout = -1;
var update_time = -1;
def javascript(): s = r"""
da2842effe3912283a0cf2046f64d4c6d1af156b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/da2842effe3912283a0cf2046f64d4c6d1af156b/js.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11341, 13332, 272, 273, 436, 8395, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11341, 13332, 272, 273, 436, 8395, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if Lockable.wl_isLocked(ob):
if wl_isLocked(ob):
def index_html(self, REQUEST, RESPONSE): """Publish the object to the external editor helper app""" security = getSecurityManager() parent = self.aq_parent try: ob = parent[REQUEST['target']] # Try getitem except KeyError: ob = getattr(parent, REQUEST['target']) # Try getattr except AttributeError: # Handle objects th...
d129504c8fd3481c106ac552932369c5e889fa98 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/d129504c8fd3481c106ac552932369c5e889fa98/ExternalEditor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 67, 2620, 12, 2890, 16, 12492, 16, 20645, 4672, 3536, 6024, 326, 733, 358, 326, 3903, 4858, 4222, 595, 8395, 225, 4373, 273, 19288, 1318, 1435, 982, 273, 365, 18, 69, 85, 67, 2938...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 67, 2620, 12, 2890, 16, 12492, 16, 20645, 4672, 3536, 6024, 326, 733, 358, 326, 3903, 4858, 4222, 595, 8395, 225, 4373, 273, 19288, 1318, 1435, 982, 273, 365, 18, 69, 85, 67, 2938...
newnet=pynet.SymmFullNet(N)
newnet=pynet.SymmFullNet(len(keep_these_nodes)) nodedict={} for i,node in enumerate(keep_these_nodes): nodedict[node]=i edges=list(net.edges) for edge in edges: if (edge[0] in keep_these_nodes) and (edge[1] in keep_these_nodes): newnet[nodedict[edge[0]]][nodedict[edge[1]]]=edge[2] copyproperties=hasa...
def filterNet(net,keep_these_nodes): '''Takes a network net, and returns a network newnet with only those nodes listed in keep_these_nodes. Node properties etc are left untouched.''' N=len(net._nodes) if (isinstance(net,pynet.SymmFullNet)): newnet=pynet.SymmFullNet(N) else: newnet=pynet.SymmNet() edges=list(net.edg...
59548869b8741c35adccd2efb3f0b4458aa29be2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/768/59548869b8741c35adccd2efb3f0b4458aa29be2/transforms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 7308, 12, 2758, 16, 10102, 67, 451, 3392, 67, 4690, 4672, 9163, 11524, 279, 2483, 2901, 16, 471, 1135, 279, 2483, 394, 2758, 598, 1338, 5348, 2199, 12889, 316, 3455, 67, 451, 3392,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 7308, 12, 2758, 16, 10102, 67, 451, 3392, 67, 4690, 4672, 9163, 11524, 279, 2483, 2901, 16, 471, 1135, 279, 2483, 394, 2758, 598, 1338, 5348, 2199, 12889, 316, 3455, 67, 451, 3392,...
self.s.shutdown()
self.s.shutdown(hacksessconfcheckpoint=False)
def OnExit(self): print >>sys.stderr,"main: ONEXIT" self.shuttingdown = True self.remove_downloads_in_vodmode_if_not_complete()
9f1204bf39e3e79b0d277edaa7bac4b04657ad2f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9686/9f1204bf39e3e79b0d277edaa7bac4b04657ad2f/BaseApp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 6767, 12, 2890, 4672, 1172, 1671, 9499, 18, 11241, 10837, 5254, 30, 6229, 28682, 6, 365, 18, 674, 25387, 2378, 273, 1053, 365, 18, 4479, 67, 7813, 87, 67, 267, 67, 90, 369, 3188,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2755, 6767, 12, 2890, 4672, 1172, 1671, 9499, 18, 11241, 10837, 5254, 30, 6229, 28682, 6, 365, 18, 674, 25387, 2378, 273, 1053, 365, 18, 4479, 67, 7813, 87, 67, 267, 67, 90, 369, 3188,...
if res['Value']['Successful'].has_key(pfn): gLogger.info("RemovalAgent.execute: Successfully requested retransfer of %s." % pfn) oRequest.setSubRequestFileAttributeValue(ind,'removal',lfn,'Status','Done')
if res['Value']['Successful'].has_key( pfn ): gLogger.info( "RemovalAgent.execute: Successfully requested retransfer of %s." % pfn ) oRequest.setSubRequestFileAttributeValue( ind, 'removal', lfn, 'Status', 'Done' )
def executeRequest(self): ################################################ # Get a request from request DB gMonitor.addMark( "Iteration", 1 ) res = self.RequestDBClient.getRequest('removal') if not res['OK']: gLogger.info("RemovalAgent.execute: Failed to get request from database.") return S_OK() elif not res['Value']:...
639c184ef75c7730d44d5168750f1731c63bf98b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/639c184ef75c7730d44d5168750f1731c63bf98b/RemovalAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 691, 12, 2890, 4672, 19709, 26487, 13151, 468, 968, 279, 590, 628, 590, 2383, 314, 7187, 18, 1289, 3882, 12, 315, 10795, 3113, 404, 262, 400, 273, 365, 18, 691, 2290, 1227, 18, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 691, 12, 2890, 4672, 19709, 26487, 13151, 468, 968, 279, 590, 628, 590, 2383, 314, 7187, 18, 1289, 3882, 12, 315, 10795, 3113, 404, 262, 400, 273, 365, 18, 691, 2290, 1227, 18, 5...
self.sock.settimeout(120) self.sock.connect((host, int(port)))
self.sock.settimeout(TIMEOUT) self.sock.connect((host, int(port)))
def connect(self, host, port=False): if not port: buf = host.split('//')[1] host, port = buf.rsplit(':', 1) hostname = host if host in DNS_CACHE: host = DNS_CACHE[host] self.sock = None if socket.has_ipv6: try: socket.getaddrinfo(host, int(port), socket.AF_INET6) self.sock = socket.socket(socket.AF_INET6, socket.SOCK_S...
cec83d810f50a36a699a964d066d5807288b14e6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/cec83d810f50a36a699a964d066d5807288b14e6/pysocket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 12, 2890, 16, 1479, 16, 1756, 33, 8381, 4672, 309, 486, 1756, 30, 1681, 273, 1479, 18, 4939, 2668, 759, 6134, 63, 21, 65, 1479, 16, 1756, 273, 1681, 18, 86, 4939, 2668, 30, 218...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 12, 2890, 16, 1479, 16, 1756, 33, 8381, 4672, 309, 486, 1756, 30, 1681, 273, 1479, 18, 4939, 2668, 759, 6134, 63, 21, 65, 1479, 16, 1756, 273, 1681, 18, 86, 4939, 2668, 30, 218...
self.BMP_WITH_TEXT = wx.Bitmap(os.path.join(const.ICON_DIR,"text.png")) self.BMP_WITHOUT_TEXT =\ wx.Bitmap(os.path.join(const.ICON_DIR,"text_inverted.png"))
self.BMP_WITH_TEXT = wx.Bitmap(os.path.join(const.ICON_DIR,"text.gif"), wx.BITMAP_TYPE_GIF) self.BMP_WITHOUT_TEXT = wx.Bitmap(os.path.join(const.ICON_DIR,"text_inverted.png"))
def __init_items(self):
6392b159e2d8e275dd552ebd6080770df4d6b40a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/6392b159e2d8e275dd552ebd6080770df4d6b40a/frame.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 67, 3319, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 67, 3319, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
import lib lib.epdb.st()
def _orderComponents(compGraph): # returns a topological sort of compGraph order = [] seen = [ False ] * len(compGraph) nextIndex = 0 while (nextIndex < len(compGraph)): if not seen[nextIndex]: _orderDFS(compGraph, nextIndex, seen, order)
b7d5c98293ff1c55dfcd58a10d9ac124486c1d7d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/b7d5c98293ff1c55dfcd58a10d9ac124486c1d7d/deptable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1019, 7171, 12, 2919, 4137, 4672, 468, 1135, 279, 1760, 18224, 1524, 434, 1161, 4137, 1353, 273, 5378, 5881, 273, 306, 1083, 308, 380, 562, 12, 2919, 4137, 13, 22262, 273, 374, 1323...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1019, 7171, 12, 2919, 4137, 4672, 468, 1135, 279, 1760, 18224, 1524, 434, 1161, 4137, 1353, 273, 5378, 5881, 273, 306, 1083, 308, 380, 562, 12, 2919, 4137, 13, 22262, 273, 374, 1323...
print "Parsing: %s" % self.original_file.name.val
log.info("Parsing: %s" % self.original_file.name.val)
def parse(self): print "Parsing: %s" % self.original_file.name.val provider = self.original_file_provider data = provider.get_original_file_data(self.original_file) try: et = ElementTree(file=data) finally: data.close() root = et.getroot() areas = root.findall(self.AREA_XPATH) print "Area count: %d" % len(areas) for i,...
2abc05f6ec4c7dd58ee9bb618f839a4be9554279 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/2abc05f6ec4c7dd58ee9bb618f839a4be9554279/populate_roi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 4672, 613, 18, 1376, 2932, 13963, 30, 738, 87, 6, 738, 365, 18, 8830, 67, 768, 18, 529, 18, 1125, 13, 2893, 273, 365, 18, 8830, 67, 768, 67, 6778, 501, 273, 2893, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 4672, 613, 18, 1376, 2932, 13963, 30, 738, 87, 6, 738, 365, 18, 8830, 67, 768, 18, 529, 18, 1125, 13, 2893, 273, 365, 18, 8830, 67, 768, 67, 6778, 501, 273, 2893, 1...
self.assertTrue(len(dirs), 2)
self.assertEqual(len(dirs), 2)
def test_getsitepackages(self): site.PREFIXES = ['xoxo'] dirs = site.getsitepackages()
d71f4c72792df2d0174e18e8322c73afda8056c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/d71f4c72792df2d0174e18e8322c73afda8056c3/test_site.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 14665, 305, 881, 484, 1023, 12, 2890, 4672, 2834, 18, 6307, 3991, 273, 10228, 92, 2409, 83, 3546, 7717, 273, 2834, 18, 14665, 305, 881, 484, 1023, 1435, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 14665, 305, 881, 484, 1023, 12, 2890, 4672, 2834, 18, 6307, 3991, 273, 10228, 92, 2409, 83, 3546, 7717, 273, 2834, 18, 14665, 305, 881, 484, 1023, 1435, 2, -100, -100, -100, ...
if self.max_requests > 0: self.max_requests -= 1 if self.max_requests <= 0: self.log(1, "reached max_requests, exiting") break
def run(self): self.log(1, "Server.run()") web_server_addrs = os.environ.get("FCGI_WEB_SERVER_ADDRS", "").split(",") self.log(1, "web_server_addrs = %s" % `web_server_addrs`) sock = socket.fromfd(sys.stdin.fileno(), socket.AF_INET, socket.SOCK_STREAM) try: sock.getpeername() except socket.error, x: if x[0] != errno.ENO...
b44edd7a32a18c2b21123c7d5cf82c04058f6897 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/506/b44edd7a32a18c2b21123c7d5cf82c04058f6897/fcgi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 365, 18, 1330, 12, 21, 16, 315, 2081, 18, 2681, 1435, 7923, 3311, 67, 3567, 67, 23305, 273, 1140, 18, 28684, 18, 588, 2932, 4488, 13797, 67, 14778, 67, 4370, 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, 1086, 12, 2890, 4672, 365, 18, 1330, 12, 21, 16, 315, 2081, 18, 2681, 1435, 7923, 3311, 67, 3567, 67, 23305, 273, 1140, 18, 28684, 18, 588, 2932, 4488, 13797, 67, 14778, 67, 4370, 67, ...
assert len(rc()) == 0
self.assertEquals(len(rc()), 0)
def test_folderishDeleteCleanup(self): self.folder.invokeFactory(type_name="Folder", id="reftest") folder = getattr(self.folder, "reftest")
86089dd5ecda849baf4811c4a444c82c5f916c42 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/86089dd5ecda849baf4811c4a444c82c5f916c42/test_referenceable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5609, 1468, 2613, 15007, 12, 2890, 4672, 365, 18, 5609, 18, 14407, 1733, 12, 723, 67, 529, 1546, 3899, 3113, 612, 1546, 266, 1222, 395, 7923, 3009, 273, 3869, 12, 2890, 18, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 67, 5609, 1468, 2613, 15007, 12, 2890, 4672, 365, 18, 5609, 18, 14407, 1733, 12, 723, 67, 529, 1546, 3899, 3113, 612, 1546, 266, 1222, 395, 7923, 3009, 273, 3869, 12, 2890, 18, 5...
elif isinstance(obj, unittest.TestSuite):
elif isinstance(obj, TestSuite):
def loadTestsFromName(self, name, module=None): """Return a suite of all tests cases given a string specifier.
574b8d8adedfa3567f2e1195fa1c0b57337f7057 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/574b8d8adedfa3567f2e1195fa1c0b57337f7057/unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 14650, 29732, 12, 2890, 16, 508, 16, 1605, 33, 7036, 4672, 3536, 990, 279, 11371, 434, 777, 7434, 6088, 864, 279, 533, 24562, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 1262, 14650, 29732, 12, 2890, 16, 508, 16, 1605, 33, 7036, 4672, 3536, 990, 279, 11371, 434, 777, 7434, 6088, 864, 279, 533, 24562, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
print 'ERROR %s' % ( result['Message'] )
print 'ERROR: ', result['Message']
def usage(): print 'Usage: %s <LFN> <DESTINATION SE> [<SOURCE SE> <LOCAL CACHE>]' % ( Script.scriptName ) DIRAC.exit( 2 )
b9f96435258060e88c9ef35602a74c9e16f7165b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/b9f96435258060e88c9ef35602a74c9e16f7165b/dirac-dms-replicate-lfn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 296, 5357, 30, 738, 87, 411, 9105, 50, 34, 411, 29451, 3174, 34, 306, 32, 6537, 3174, 34, 411, 14922, 13669, 34, 3864, 738, 261, 7739, 18, 4263, 461, 262, 18544, 222...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4084, 13332, 1172, 296, 5357, 30, 738, 87, 411, 9105, 50, 34, 411, 29451, 3174, 34, 306, 32, 6537, 3174, 34, 411, 14922, 13669, 34, 3864, 738, 261, 7739, 18, 4263, 461, 262, 18544, 222...
currentNegWeight = 0 for negtech in negweight: currentNegWeight = min(currentNegWeight,negweight[negtech]) currentNegSlots = 0 for negtech in negslots: currentNegSlots = min(currentNegSlots,negslots[negtech])
def makeShipFullSpec(player, name, hullID, eqIDs, improvements, raiseExs = True): if not hullID: raise GameException("Ship's hull must be specified.") hull = Rules.techs[hullID] if not hull.isShipHull: raise GameException("Ship's hull must be specified.") ship = IDataHolder() ship.type = T_SHIP # initial values techEff...
e36f6837ef1b365a4e49a58cc4e5c3712ecafe5e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/503/e36f6837ef1b365a4e49a58cc4e5c3712ecafe5e/ShipUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 26358, 5080, 1990, 12, 14872, 16, 508, 16, 22474, 734, 16, 7555, 5103, 16, 13069, 90, 17110, 16, 1002, 424, 87, 273, 1053, 4672, 309, 486, 22474, 734, 30, 1002, 14121, 503, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 26358, 5080, 1990, 12, 14872, 16, 508, 16, 22474, 734, 16, 7555, 5103, 16, 13069, 90, 17110, 16, 1002, 424, 87, 273, 1053, 4672, 309, 486, 22474, 734, 30, 1002, 14121, 503, 2932, ...
modeOverride = kwds.get('modeOverride', None) forceUpdate = kwds.get('forceUpdate', None)
def silentCallback(*args, **kwds): # Simply return the interrupt flag return interrupt_flag == IMMEDIATE_STOP
f1b62db6d8b3c28cab8cdd7839f8900fd1db3964 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/f1b62db6d8b3c28cab8cdd7839f8900fd1db3964/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10404, 2428, 30857, 1968, 16, 2826, 25577, 4672, 468, 9587, 1283, 327, 326, 13123, 2982, 327, 13123, 67, 6420, 422, 6246, 15971, 1777, 67, 17513, 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, 0, 0, 0, 0, 0, 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, 10404, 2428, 30857, 1968, 16, 2826, 25577, 4672, 468, 9587, 1283, 327, 326, 13123, 2982, 327, 13123, 67, 6420, 422, 6246, 15971, 1777, 67, 17513, 2, -100, -100, -100, -100, -100, -100, -10...
r""" Bipartite graph. INPUT: 1. Empty: creates a zero vertex bipartite graph. sage: B = BipartiteGraph() sage: type(B) <class 'sage.graphs.bipartite_graph.BipartiteGraph'> sage: B.order() 0 2. From a graph: without any more information, finds a bipartition. sage: B = BipartiteGraph( graphs.CycleGraph(4) ) sage: B =...
def __init__(self, *args, **kwds): r""" Bipartite graph.
c5cd1ded92bd4e8e22136bbf3f302bd89ac4dd74 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/c5cd1ded92bd4e8e22136bbf3f302bd89ac4dd74/bipartite_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 25577, 4672, 436, 8395, 605, 5762, 1137, 2667, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 25577, 4672, 436, 8395, 605, 5762, 1137, 2667, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
for node in doc.childNodes: if node.nodeType == xml.dom.core.ELEMENT \ and node.tagName == "section": create_module_info(doc, node)
for node in find_all_elements(doc, "section"): create_module_info(doc, node)
def cleanup_synopses(doc): for node in doc.childNodes: if node.nodeType == xml.dom.core.ELEMENT \ and node.tagName == "section": create_module_info(doc, node)
d0d0e6321e87f7a7674d00a59071ba5b1fe090c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d0d0e6321e87f7a7674d00a59071ba5b1fe090c5/docfixer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6686, 67, 11982, 556, 2420, 12, 2434, 4672, 364, 756, 316, 1104, 67, 454, 67, 6274, 12, 2434, 16, 315, 3464, 6, 4672, 752, 67, 2978, 67, 1376, 12, 2434, 16, 756, 13, 282, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6686, 67, 11982, 556, 2420, 12, 2434, 4672, 364, 756, 316, 1104, 67, 454, 67, 6274, 12, 2434, 16, 315, 3464, 6, 4672, 752, 67, 2978, 67, 1376, 12, 2434, 16, 756, 13, 282, 2, -100, ...
location_qties.append((location, qty))
if qty != 0.0: location_qties.append((location, qty))
def assign_try(self, cursor, user, id, context=None): location_obj = self.pool.get('stock.location') move_obj = self.pool.get('stock.move') product_obj = self.pool.get('product.product') uom_obj = self.pool.get('product.uom')
29491748f4db140813da38fb21884dc4bf06af10 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9298/29491748f4db140813da38fb21884dc4bf06af10/packing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2683, 67, 698, 12, 2890, 16, 3347, 16, 729, 16, 612, 16, 819, 33, 7036, 4672, 2117, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 15381, 18, 3562, 6134, 3635, 67, 2603, 273, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2683, 67, 698, 12, 2890, 16, 3347, 16, 729, 16, 612, 16, 819, 33, 7036, 4672, 2117, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 15381, 18, 3562, 6134, 3635, 67, 2603, 273, 365, 18, ...
_store.dumpNested(workingContext, _outSink)
if option_outputStyle == "-ugly": _store.dumpChronological(workingContext, _outSink) elif option_outputStyle == "-bySubject": _store.dumpBySubject(workingContext, _outSink) elif option_outputStyle == "-no": pass else: _store.dumpNested(workingContext, _outSink)
def doCommand(): """Command line RDF/N3 tool <command> <options> <inputURIs>
a7d0c800568125609e0fc58e331b9a6f318031c6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/a7d0c800568125609e0fc58e331b9a6f318031c6/cwm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 2189, 13332, 3536, 2189, 980, 13539, 19, 50, 23, 5226, 225, 411, 3076, 34, 411, 2116, 34, 411, 2630, 1099, 2520, 34, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 2189, 13332, 3536, 2189, 980, 13539, 19, 50, 23, 5226, 225, 411, 3076, 34, 411, 2116, 34, 411, 2630, 1099, 2520, 34, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for p in self.element.findall("Profile"): self.profiles[p.attrib['name']] = Profile(p) for c in self.element.findall("Client"): self.clients[c.attrib['name']] = (c.attrib['image'], c.attrib['profile']) for c in self.element.findall("Class"): self.classes[c.attrib['name']] = [x.attrib['name'] for x in c.findall("Bundle"...
for prof in self.element.findall("Profile"): self.profiles[prof.attrib['name']] = Profile(prof) for cli in self.element.findall("Client"): self.clients[cli.attrib['name']] = (cli.attrib['image'], cli.attrib['profile']) for cls in self.element.findall("Class"): self.classes[cls.attrib['name']] = [bundle.attrib['name'] f...
def Index(self): self.element = XML(self.data) self.defaults = {} self.clients = {} self.profiles = {} self.classes = {} for p in self.element.findall("Profile"): self.profiles[p.attrib['name']] = Profile(p) for c in self.element.findall("Client"): self.clients[c.attrib['name']] = (c.attrib['image'], c.attrib['profile'...
8ce27b3c73b1f4b17f1b558f7e5f1d4f57c2559d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/8ce27b3c73b1f4b17f1b558f7e5f1d4f57c2559d/Metadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3340, 12, 2890, 4672, 365, 18, 2956, 273, 3167, 12, 2890, 18, 892, 13, 365, 18, 7606, 273, 2618, 365, 18, 16931, 273, 2618, 365, 18, 18314, 273, 2618, 365, 18, 4701, 273, 2618, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3340, 12, 2890, 4672, 365, 18, 2956, 273, 3167, 12, 2890, 18, 892, 13, 365, 18, 7606, 273, 2618, 365, 18, 16931, 273, 2618, 365, 18, 18314, 273, 2618, 365, 18, 4701, 273, 2618, 364, ...
if Auto in (self.valueAxis.valueMin, self.valueAxis.valueMax): y = self.valueAxis.scale(self._findMinMaxValues()[0]) elif self.valueAxis.valueMin <= 0 <= self.valueAxis.valueMax: y = self.valueAxis.scale(0) elif 0 < self.valueAxis.valueMin: y = self.valueAxis.scale(self.valueAxis.valueMin) elif self.valueAxis.valueMax ...
scale = self.valueAxis.scale vm, vM = self.valueAxis.valueMin, self.valueAxis.valueMax if Auto in (vm, vM): y = scale(self._findMinMaxValues()[0]) elif vm <= 0 <= vM: y = scale(0) elif 0 < vm: y = scale(vm) elif vM < 0: y = scale(vM)
def calcBarPositions(self): """Works out where they go.
40c058808accb2ea1c7dbd9e07048bb60043efa2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/40c058808accb2ea1c7dbd9e07048bb60043efa2/barchart1.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 5190, 11024, 12, 2890, 4672, 3536, 16663, 596, 1625, 2898, 1960, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 5190, 11024, 12, 2890, 4672, 3536, 16663, 596, 1625, 2898, 1960, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
v.getPipeline('quadric')
v.getPipeline('final')
def test2(self): import vistrail import xml_parser parser = xml_parser.XMLParser() parser.openVistrail('test_files/vtk_book_3rd_p189.xml') v = parser.getVistrail() parser.closeVistrail() p1 = v.getPipeline('final') v.getPipeline('quadric') p2 = v.getPipeline('final') m1s = p1.modules.items() m2s = p2.modules.items() m...
7272e3972f68b6d3d3d89c4b133856f30edaecd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6341/7272e3972f68b6d3d3d89c4b133856f30edaecd7/vis_action.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 22, 12, 2890, 4672, 1930, 2281, 15565, 1930, 2025, 67, 4288, 2082, 273, 2025, 67, 4288, 18, 4201, 2678, 1435, 2082, 18, 3190, 3282, 15565, 2668, 3813, 67, 2354, 19, 11734, 79, 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, 1842, 22, 12, 2890, 4672, 1930, 2281, 15565, 1930, 2025, 67, 4288, 2082, 273, 2025, 67, 4288, 18, 4201, 2678, 1435, 2082, 18, 3190, 3282, 15565, 2668, 3813, 67, 2354, 19, 11734, 79, 67, ...
collections[cat_name] = [] collections_lpaths[cat_name] = set() if lpath in collections_lpaths[cat_name]: continue collections_lpaths[cat_name].add(lpath)
collections[cat_name] = {}
def get_collections(self, collection_attributes): from calibre.devices.usbms.driver import debug_print debug_print('Starting get_collections:', prefs['manage_device_metadata']) debug_print('Renaming rules:', tweaks['sony_collection_renaming_rules'])
bcd1d79352d584b33c4d09cb755712aadd3f1139 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/bcd1d79352d584b33c4d09cb755712aadd3f1139/books.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 19246, 12, 2890, 16, 1849, 67, 4350, 4672, 628, 26139, 266, 18, 12506, 18, 25525, 959, 18, 7407, 1930, 1198, 67, 1188, 1198, 67, 1188, 2668, 11715, 336, 67, 19246, 30, 2187, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 19246, 12, 2890, 16, 1849, 67, 4350, 4672, 628, 26139, 266, 18, 12506, 18, 25525, 959, 18, 7407, 1930, 1198, 67, 1188, 1198, 67, 1188, 2668, 11715, 336, 67, 19246, 30, 2187, 1...
for ua in ua_applets: tokens = ua.split("::") applets.insert(int(tokens[1]), ua)
for ua in ua_applets: tokens = ua.split("::") applets.insert(int(tokens[1]), ua)
def make_active_model (self): self.active_model = gtk.ListStore(gtk.gdk.Pixbuf, str, str, str) self.active_model.connect("row-changed", self.applet_reorder)
30bb56994f49caaea99383c3cdc7f4e2a2d375f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8416/30bb56994f49caaea99383c3cdc7f4e2a2d375f1/awnClass.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 3535, 67, 2284, 261, 2890, 4672, 365, 18, 3535, 67, 2284, 273, 22718, 18, 682, 2257, 12, 4521, 79, 18, 75, 2883, 18, 21816, 4385, 16, 609, 16, 609, 16, 609, 13, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 3535, 67, 2284, 261, 2890, 4672, 365, 18, 3535, 67, 2284, 273, 22718, 18, 682, 2257, 12, 4521, 79, 18, 75, 2883, 18, 21816, 4385, 16, 609, 16, 609, 16, 609, 13, 365, 18, ...
@keyword package: A string that specifies the package, component, or package
@keyword package: A string that specifies the package, component, or package
def __init__(self, recipe, *args, **keywords):
bbf56a2c6ce326846b9cfaed245edce8bd904567 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/bbf56a2c6ce326846b9cfaed245edce8bd904567/source.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 16100, 16, 380, 1968, 16, 2826, 11771, 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, ...
[ 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, 1001, 2738, 972, 12, 2890, 16, 16100, 16, 380, 1968, 16, 2826, 11771, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
"""Return the names of the groups that the user is a member of"""
"""Return the names of the groups that the user is a member of. Return an empty list if the user doesn't belong to any group."""
def getParentGroups(): """Return the names of the groups that the user is a member of"""
11f8e10f2aff02a461d77f35c8bd2fdc6ad61e72 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/11f8e10f2aff02a461d77f35c8bd2fdc6ad61e72/IUserFolder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5089, 3621, 13332, 3536, 990, 326, 1257, 434, 326, 3252, 716, 326, 729, 353, 279, 3140, 434, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5089, 3621, 13332, 3536, 990, 326, 1257, 434, 326, 3252, 716, 326, 729, 353, 279, 3140, 434, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return S_OK(localFile) gLogger.error("ReplicaManager.getFile: Failed to get local copy from any replicas.",lfn) return S_ERROR("ReplicaManager.getFile: Failed to get local copy from any replicas.") def _getSEProximity(self,ses):
return S_OK( localFile ) gLogger.error( "ReplicaManager.getFile: Failed to get local copy from any replicas.", lfn ) return S_ERROR( "ReplicaManager.getFile: Failed to get local copy from any replicas." ) def _getSEProximity( self, ses ):
def __getFile(self,lfn,replicas,metadata,destinationDir): if not replicas: gLogger.error("No accessible replicas found") return S_ERROR("No accessible replicas found") # Determine the best replicas res = self._getSEProximity(replicas.keys()) if not res['OK']: return res for storageElementName in res['Value']: physicalF...
9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 29925, 12, 2890, 16, 80, 4293, 16, 266, 10528, 16, 4165, 16, 10590, 1621, 4672, 309, 486, 21545, 30, 314, 3328, 18, 1636, 2932, 2279, 12718, 21545, 1392, 7923, 327, 348, 67, 3589, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29925, 12, 2890, 16, 80, 4293, 16, 266, 10528, 16, 4165, 16, 10590, 1621, 4672, 309, 486, 21545, 30, 314, 3328, 18, 1636, 2932, 2279, 12718, 21545, 1392, 7923, 327, 348, 67, 3589, ...
l = [1, 2, 3, 4, 5] * (size // 5)
l = [1, 2, 3, 4, 5] * size
def test_reverse(self, size): l = [1, 2, 3, 4, 5] * (size // 5) l.reverse() self.assertEquals(len(l), size) self.assertEquals(l[-5:], [5, 4, 3, 2, 1]) self.assertEquals(l[:5], [5, 4, 3, 2, 1])
58ac820523228252b5516333377d351fed0a2095 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/58ac820523228252b5516333377d351fed0a2095/test_bigmem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9845, 12, 2890, 16, 963, 4672, 328, 273, 306, 21, 16, 576, 16, 890, 16, 1059, 16, 1381, 65, 380, 963, 328, 18, 9845, 1435, 365, 18, 11231, 8867, 12, 1897, 12, 80, 3631, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9845, 12, 2890, 16, 963, 4672, 328, 273, 306, 21, 16, 576, 16, 890, 16, 1059, 16, 1381, 65, 380, 963, 328, 18, 9845, 1435, 365, 18, 11231, 8867, 12, 1897, 12, 80, 3631, 9...
self.specScan = scan
def setFromSpec(self, scan, mon = 'Monitor'): """Set the filenames from a SpecScan instance
8862dcf26a4225de67d49c677cfa7010b7a8e0ce /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8436/8862dcf26a4225de67d49c677cfa7010b7a8e0ce/transformations.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22012, 1990, 12, 2890, 16, 4135, 16, 6921, 273, 296, 7187, 11, 4672, 3536, 694, 326, 9066, 628, 279, 4185, 7972, 791, 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, 0, 0, 0, 0, 0, 0, 0, 0, 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, 22012, 1990, 12, 2890, 16, 4135, 16, 6921, 273, 296, 7187, 11, 4672, 3536, 694, 326, 9066, 628, 279, 4185, 7972, 791, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
return FiniteField_ext_pariElement(self.__parent, self.__value)
return FiniteField_ext_pariElement(self.__parent, self.__value, check=False)
def copy(self): """ Return a copy of this element.
a8b0bc86f67092c8d164d155afff81c6830223eb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a8b0bc86f67092c8d164d155afff81c6830223eb/finite_field_element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 4672, 3536, 2000, 279, 1610, 434, 333, 930, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 4672, 3536, 2000, 279, 1610, 434, 333, 930, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print LibFiles if EasyDialogs.AskYesNoCancel('Proceed with creating new ones?') <= 0: sys.exit(0) for dst, src in goals: if src in LibFiles: mkalias(src, dst) else: EasyDialogs.Message(dst+' not created: '+src+' not found') EasyDialogs.Message('All done!') if __name__ == '__main__': main()
def main(): # Ask the user for the plugins directory dir, ok = macfs.GetDirectory() if not ok: sys.exit(0) os.chdir(dir.as_pathname()) # Remove old .slb aliases and collect a list of .slb files if EasyDialogs.AskYesNoCancel('Proceed with removing old aliases?') <= 0: sys.exit(0) LibFiles = [] allfiles = os.listdir(':'...
d406b3a24aeb43d3a0c6a02edd948c36ebd76106 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d406b3a24aeb43d3a0c6a02edd948c36ebd76106/fixfiletypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 25747, 326, 729, 364, 326, 4799, 1867, 1577, 16, 1529, 273, 5318, 2556, 18, 967, 2853, 1435, 309, 486, 1529, 30, 2589, 18, 8593, 12, 20, 13, 1140, 18, 343, 1214, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 25747, 326, 729, 364, 326, 4799, 1867, 1577, 16, 1529, 273, 5318, 2556, 18, 967, 2853, 1435, 309, 486, 1529, 30, 2589, 18, 8593, 12, 20, 13, 1140, 18, 343, 1214, 12, ...
thumbDict[sngl.ifo]=fnmatch.filter(wikiFileFinder.get_RDS_R_L1_SEIS(),\
thumbDict[sngl.ifo]=fnmatch.filter(filesOmega,\
def prepareChecklist(wikiFilename=None,wikiCoinc=None,wikiTree=None,file2URL=None): """ Method to prepare a checklist where data products are isolated in directory. """ endOfS5=int(875232014) wikiFileFinder=findFileType(wikiTree,wikiCoinc) # Check to see if wiki file with name already exists maxCount=0 while os.path.ex...
fb84ac33aba836b8fcb61075cfaec34ced2846c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fb84ac33aba836b8fcb61075cfaec34ced2846c0/makeCheckListWiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 1564, 1098, 12, 13044, 5359, 33, 7036, 16, 13044, 27055, 71, 33, 7036, 16, 13044, 2471, 33, 7036, 16, 768, 22, 1785, 33, 7036, 4672, 3536, 2985, 358, 2911, 279, 866, 1098, 1625, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 1564, 1098, 12, 13044, 5359, 33, 7036, 16, 13044, 27055, 71, 33, 7036, 16, 13044, 2471, 33, 7036, 16, 768, 22, 1785, 33, 7036, 4672, 3536, 2985, 358, 2911, 279, 866, 1098, 1625, ...
start, end = active_widgets[editor]
start, end = editor.buffer.get_bounds()
def on_replace_all_activate(button, editor, widget): if editor not in active_widgets: return search = active_widgets[editor].entry.get_text() ignore_case = active_widgets[editor].ignore_case.get_active() regex = active_widgets[editor].regex.get_active() replace = unicode(active_widgets[editor].replace_entry.get_text()...
57205993d808a70c5241ed91b7052ec7eed97c51 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14800/57205993d808a70c5241ed91b7052ec7eed97c51/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 2079, 67, 454, 67, 10014, 12, 5391, 16, 4858, 16, 3604, 4672, 309, 4858, 486, 316, 2695, 67, 18148, 30, 327, 225, 1623, 273, 2695, 67, 18148, 63, 9177, 8009, 4099, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2079, 67, 454, 67, 10014, 12, 5391, 16, 4858, 16, 3604, 4672, 309, 4858, 486, 316, 2695, 67, 18148, 30, 327, 225, 1623, 273, 2695, 67, 18148, 63, 9177, 8009, 4099, 18, 588, ...
raise ValueError, 'unknown message digest'
raise ValueError, ('unknown message digest', d)
def __init__(self, alg, key, iv, op, key_as_bytes=0, d='md5', salt='', i=1): cipher = getattr(m2, alg) if not cipher: raise ValueError, 'unknown cipher' self.cipher=cipher() if key_as_bytes: kmd = getattr(m2, d) if not kmd: raise ValueError, 'unknown message digest' key = m2.bytes_to_key(self.cipher, kmd(), key, salt, ...
7d7f2149adadc77030ca56b706fde9ba0a74467d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/7d7f2149adadc77030ca56b706fde9ba0a74467d/EVP.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 11989, 16, 498, 16, 4674, 16, 1061, 16, 498, 67, 345, 67, 3890, 33, 20, 16, 302, 2218, 1264, 25, 2187, 4286, 2218, 2187, 277, 33, 21, 4672, 5867, 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, 1001, 2738, 972, 12, 2890, 16, 11989, 16, 498, 16, 4674, 16, 1061, 16, 498, 67, 345, 67, 3890, 33, 20, 16, 302, 2218, 1264, 25, 2187, 4286, 2218, 2187, 277, 33, 21, 4672, 5867, 273, ...
([\s\S]*?)</table>''', fr).group(1)
([\s\S]*?)</table>''', fr) if gp == 'privsec0018_2006-05-09.html': assert not Mppstext return "SKIPTHIS", None if not Mppstext: print gp ppstext = Mppstext.group(1)
def ParsePrivSecPage(fr, gp): # extract the updated date and time frupdated = re.search('<td class="lastupdated">\s*Updated\s*([\d/]*)&nbsp;([\d:]*)\s*</td>', fr) lsudate = re.match("(\d\d)/(\d\d)/(\d\d)$", frupdated.group(1)) y2k = int(lsudate.group(3)) < 50 and "20" or "19" sudate = "%s%s-%s-%s" % (y2k, lsudate.group...
4bcbb0fc7a72d6b8890dd9eda1d95e4d872728d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8428/4bcbb0fc7a72d6b8890dd9eda1d95e4d872728d6/minpostparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2884, 15475, 2194, 1964, 12, 4840, 16, 4178, 4672, 468, 2608, 326, 3526, 1509, 471, 813, 3812, 7007, 273, 283, 18, 3072, 2668, 32, 4465, 667, 1546, 2722, 7007, 6, 5333, 87, 14, 7381, 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, 2884, 15475, 2194, 1964, 12, 4840, 16, 4178, 4672, 468, 2608, 326, 3526, 1509, 471, 813, 3812, 7007, 273, 283, 18, 3072, 2668, 32, 4465, 667, 1546, 2722, 7007, 6, 5333, 87, 14, 7381, 6...
= self.calculateBarLength( value ) aIndicator = (value / (float)(10**(self.theMultiplier))) \
= self.calculateBarLength( aValue ) aIndicator = (aValue / (float)(10**(self.theMultiplier))) \
def update( self ): aString = str( self.theFullPN()[ID] ) aString += ':\n' + str( self.theFullPN()[PROPERTY] ) self.theIDEntry.set_text ( aString )
d6afe4061131c3989292a58918940112ac0c8b2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d6afe4061131c3989292a58918940112ac0c8b2d/BargraphWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 365, 262, 30, 225, 279, 780, 273, 609, 12, 365, 18, 5787, 5080, 15124, 1435, 63, 734, 65, 262, 279, 780, 1011, 4290, 64, 82, 11, 397, 609, 12, 365, 18, 5787, 5080, 15124, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 365, 262, 30, 225, 279, 780, 273, 609, 12, 365, 18, 5787, 5080, 15124, 1435, 63, 734, 65, 262, 279, 780, 1011, 4290, 64, 82, 11, 397, 609, 12, 365, 18, 5787, 5080, 15124, ...
args = [decodeArg(sys.argv[0]) ] + [decodeArg('"%s"' % s) for s in sys.argv[1:]]
args = [decodeArg(modname)] + [decodeArg('"%s"' % s) for s in sys.argv[1:]]
def writeToCommandLogFile(): """ Save the name of the called module along with all parameters to logs/commands.log so that the user can look it up later to track errors or report bugs. """ # put quotation marks around all parameters args = [decodeArg(sys.argv[0]) ] + [decodeArg('"%s"' % s) for s in sys.argv[1:]] comman...
1193a3d70006d1b334af19ee49cc92fa5e63991f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/1193a3d70006d1b334af19ee49cc92fa5e63991f/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12870, 2189, 19103, 13332, 3536, 7074, 326, 508, 434, 326, 2566, 1605, 7563, 598, 777, 1472, 358, 5963, 19, 7847, 18, 1330, 1427, 716, 326, 729, 848, 2324, 518, 731, 5137, 358, 3298, 133...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12870, 2189, 19103, 13332, 3536, 7074, 326, 508, 434, 326, 2566, 1605, 7563, 598, 777, 1472, 358, 5963, 19, 7847, 18, 1330, 1427, 716, 326, 729, 848, 2324, 518, 731, 5137, 358, 3298, 133...
-0.00000000000074992740280181431112064614366496792309675391526978827185055
-0.00000000000074992740280181431112064614366622348652078895136533593355718
def nintegral(self, x, a, b, desired_relative_error='1e-8', maximum_num_subintervals=200): r""" Return a floating point machine precision numerical approximation to the integral of self from a to b, computed using floating point arithmetic and the GSL scientific library.
4b26dcc2bd8e78b8213e37fc98bb329900126eb2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/4b26dcc2bd8e78b8213e37fc98bb329900126eb2/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 290, 14970, 23811, 12, 2890, 16, 619, 16, 279, 16, 324, 16, 6049, 67, 11626, 67, 1636, 2218, 21, 73, 17, 28, 2187, 4207, 67, 2107, 67, 1717, 19812, 33, 6976, 4672, 436, 8395, 2000, 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, 290, 14970, 23811, 12, 2890, 16, 619, 16, 279, 16, 324, 16, 6049, 67, 11626, 67, 1636, 2218, 21, 73, 17, 28, 2187, 4207, 67, 2107, 67, 1717, 19812, 33, 6976, 4672, 436, 8395, 2000, 2...
gLogger.info("TransferAgent.execute: Attempting to execute %s sub-request." % operation)
gLogger.info( "TransferAgent.execute: Attempting to execute %s sub-request." % operation )
def executeRequest(self): ################################################ # Get a request from request DB gMonitor.addMark( "Iteration", 1 ) res = self.RequestDBClient.getRequest('transfer') if not res['OK']: gLogger.info("TransferAgent.execute: Failed to get request from database.") return S_OK() elif not res['Value'...
e9b27a9be4536012e60823ee81099deb0a1fbe85 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/e9b27a9be4536012e60823ee81099deb0a1fbe85/TransferAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 691, 12, 2890, 4672, 19709, 26487, 13151, 468, 968, 279, 590, 628, 590, 2383, 314, 7187, 18, 1289, 3882, 12, 315, 10795, 3113, 404, 262, 400, 273, 365, 18, 691, 2290, 1227, 18, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 691, 12, 2890, 4672, 19709, 26487, 13151, 468, 968, 279, 590, 628, 590, 2383, 314, 7187, 18, 1289, 3882, 12, 315, 10795, 3113, 404, 262, 400, 273, 365, 18, 691, 2290, 1227, 18, 5...
i = string.find(sys.version, prefix)
i = sys.version.find(prefix)
def get_platform (): """Return a string that identifies the current platform. This is used mainly to distinguish platform-specific build directories and platform-specific built distributions. Typically includes the OS name and version and the architecture (as supplied by 'os.uname()'), although the exact information ...
c49a8d0dc091a213d4117981931f3d1357ba1d02 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/c49a8d0dc091a213d4117981931f3d1357ba1d02/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 9898, 1832, 30, 3536, 990, 279, 533, 716, 25283, 326, 783, 4072, 18, 225, 1220, 353, 1399, 31457, 358, 23926, 4072, 17, 12524, 1361, 6402, 471, 4072, 17, 12524, 6650, 23296, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 9898, 1832, 30, 3536, 990, 279, 533, 716, 25283, 326, 783, 4072, 18, 225, 1220, 353, 1399, 31457, 358, 23926, 4072, 17, 12524, 1361, 6402, 471, 4072, 17, 12524, 6650, 23296, 18,...
def closeEvent(self,ce):
def closeEvent(self,ce):
def closeEvent(self,ce): if not self.assy.modified: ce.accept() return rc = QMessageBox.warning( self, self.name(), "The part has been changed since the last save.\n" "Do you want to save the changes before exiting?", "&Save", "&Discard", "Cancel", 0, # Enter == button 0 2 ) # Escape == button 2
c1cfa0a31ca5d9e14873b5fbcd2cb04f892ddc6d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/c1cfa0a31ca5d9e14873b5fbcd2cb04f892ddc6d/MWsemantics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 1133, 12, 2890, 16, 311, 4672, 225, 309, 486, 365, 18, 428, 93, 18, 7342, 30, 5898, 18, 9436, 1435, 327, 225, 4519, 273, 30728, 18, 8551, 12, 365, 16, 365, 18, 529, 9334, 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, 1746, 1133, 12, 2890, 16, 311, 4672, 225, 309, 486, 365, 18, 428, 93, 18, 7342, 30, 5898, 18, 9436, 1435, 327, 225, 4519, 273, 30728, 18, 8551, 12, 365, 16, 365, 18, 529, 9334, 315, ...
'<td>%5.2f</td>' % (tls.rmsd_b),
'<td>%5.2f</td>' % (tls.rmsd_b),
def html_tls_group_table(ntls, chain, cpartition, report_root = None): """Generate HTML for a table containing the details of the ntls-group partitioning of the given chain. """ ## inspect the first tls group dictionary to determine TLS model type try: tls = cpartition.tls_list[0] except IndexError: return "" tls_mode...
81092918682cb3b404793cc6abd4020f9621498a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10674/81092918682cb3b404793cc6abd4020f9621498a/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 67, 17116, 67, 1655, 67, 2121, 12, 496, 3251, 16, 2687, 16, 276, 10534, 16, 2605, 67, 3085, 273, 599, 4672, 3536, 4625, 3982, 364, 279, 1014, 4191, 326, 3189, 434, 326, 9513, 325...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 67, 17116, 67, 1655, 67, 2121, 12, 496, 3251, 16, 2687, 16, 276, 10534, 16, 2605, 67, 3085, 273, 599, 4672, 3536, 4625, 3982, 364, 279, 1014, 4191, 326, 3189, 434, 326, 9513, 325...
self.enable_call_buttons(len(selected_items)==1 and type(self.contact_model.data(selected_items[0])) is Contact)
self.enable_call_buttons(len(selected_items)==1 and isinstance(self.contact_model.data(selected_items[0]), Contact))
def contact_list_selection_changed(self, selected, deselected): selected_items = self.contact_list.selectionModel().selectedIndexes() self.enable_call_buttons(len(selected_items)==1 and type(self.contact_model.data(selected_items[0])) is Contact)
5c1ff76abe25b8278678e2d1609706e6b125ef66 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3447/5c1ff76abe25b8278678e2d1609706e6b125ef66/mainwindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5388, 67, 1098, 67, 10705, 67, 6703, 12, 2890, 16, 3170, 16, 2832, 292, 828, 4672, 3170, 67, 3319, 273, 365, 18, 8994, 67, 1098, 18, 10705, 1488, 7675, 8109, 8639, 1435, 365, 18, 7589,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5388, 67, 1098, 67, 10705, 67, 6703, 12, 2890, 16, 3170, 16, 2832, 292, 828, 4672, 3170, 67, 3319, 273, 365, 18, 8994, 67, 1098, 18, 10705, 1488, 7675, 8109, 8639, 1435, 365, 18, 7589,...
rv_generic.__init__(self)
super(rv_generic,self).__init__()
def __init__(self, a=0, b=inf, name=None, badvalue=None, moment_tol=1e-8,values=None,inc=1,longname=None, shapes=None, extradoc=None):
8b3a4224a0eebc7cef8c46d42fde0301ea131ef1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12971/8b3a4224a0eebc7cef8c46d42fde0301ea131ef1/distributions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 279, 33, 20, 16, 324, 33, 10625, 16, 508, 33, 7036, 16, 5570, 1132, 33, 7036, 16, 10382, 67, 3490, 33, 21, 73, 17, 28, 16, 2372, 33, 7036, 16, 9523, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 279, 33, 20, 16, 324, 33, 10625, 16, 508, 33, 7036, 16, 5570, 1132, 33, 7036, 16, 10382, 67, 3490, 33, 21, 73, 17, 28, 16, 2372, 33, 7036, 16, 9523, ...
'start' : 0, 'reason' : 'ordinal not in range(128)'}),
'start' : 0, 'reason' : 'ordinal not in range'}),
def testAttributes(self): # test that exception attributes are happy try: str(u'Hello \u00E1') except Exception, e: sampleUnicodeEncodeError = e
0ab94afc7a8f9a3238729fdb056a83090166af3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0ab94afc7a8f9a3238729fdb056a83090166af3f/test_exceptions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2498, 12, 2890, 4672, 468, 1842, 716, 1520, 1677, 854, 5622, 2074, 775, 30, 609, 12, 89, 11, 18601, 521, 89, 713, 41, 21, 6134, 1335, 1185, 16, 425, 30, 3296, 16532, 5509, 668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2498, 12, 2890, 4672, 468, 1842, 716, 1520, 1677, 854, 5622, 2074, 775, 30, 609, 12, 89, 11, 18601, 521, 89, 713, 41, 21, 6134, 1335, 1185, 16, 425, 30, 3296, 16532, 5509, 668, ...
isBracketAligned = True
isBracketAligned = False
def apply(self, lines): vList = [] # don't enforce this for line continuation of argument lists or other parenthesized statements inParentheses = False if (self.getFiletype() in self.getTypeList()): for line in lines: if (re.search("\([^\)]+$", line.stripped)): inParentheses = True m = re.search("^(\s*)[^\s]", line.s...
5432dc4fee5b9db163a86ec3ee3f1ecc4222856d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6529/5432dc4fee5b9db163a86ec3ee3f1ecc4222856d/style.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 12, 2890, 16, 2362, 4672, 331, 682, 273, 5378, 225, 468, 2727, 1404, 12980, 333, 364, 980, 17378, 434, 1237, 6035, 578, 1308, 15231, 1235, 6317, 316, 17880, 281, 273, 1083, 309, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 12, 2890, 16, 2362, 4672, 331, 682, 273, 5378, 225, 468, 2727, 1404, 12980, 333, 364, 980, 17378, 434, 1237, 6035, 578, 1308, 15231, 1235, 6317, 316, 17880, 281, 273, 1083, 309, 26...
self._getbitmap(filename)
return self._getbitmap(filename)
def loadbitmap(self, filename): self._getbitmap(filename)
6df99dc53926dc524a71e80f5983fd1dff419351 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/6df99dc53926dc524a71e80f5983fd1dff419351/osd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 3682, 1458, 12, 2890, 16, 1544, 4672, 327, 365, 6315, 588, 3682, 1458, 12, 3459, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 3682, 1458, 12, 2890, 16, 1544, 4672, 327, 365, 6315, 588, 3682, 1458, 12, 3459, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.open_internal(xcodeproj_filepath(), 'open')
self.open_internal(self.xcodeproj_filepath(), 'open')
def open(self): generator = self.get_generator_from_config() if generator.startswith('Visual Studio'): print 'Opening with %s...' % generator self.open_internal(self.sln_filepath()) elif generator.startswith('Xcode'): print 'Opening with %s...' % generator self.open_internal(xcodeproj_filepath(), 'open') else: raise ...
27fbda691225030ecaa4bb35a59e3fda2d092cc2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6688/27fbda691225030ecaa4bb35a59e3fda2d092cc2/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 12, 2890, 4672, 4456, 273, 365, 18, 588, 67, 8812, 67, 2080, 67, 1425, 1435, 309, 4456, 18, 17514, 1918, 2668, 25780, 934, 4484, 11, 4672, 1172, 296, 21378, 598, 738, 87, 7821, 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, 1696, 12, 2890, 4672, 4456, 273, 365, 18, 588, 67, 8812, 67, 2080, 67, 1425, 1435, 309, 4456, 18, 17514, 1918, 2668, 25780, 934, 4484, 11, 4672, 1172, 296, 21378, 598, 738, 87, 7821, 7...
self.intended_tags = self.get_selected_tags() treeview.set_cursor(old_path, old_col, 0)
def on_tag_treeview_button_press_event(self, treeview, event): if event.button == 3: x = int(event.x) y = int(event.y) time = event.time pthinfo = treeview.get_path_at_pos(x, y) if pthinfo is not None: path, col, cellx, celly = pthinfo #pylint: disable-msg=W0612 treeview.grab_focus() # Stores the currently selected ite...
bfe6d5b75538050c23bfc2e0d6b76f4cf341af5d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/bfe6d5b75538050c23bfc2e0d6b76f4cf341af5d/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 2692, 67, 3413, 1945, 67, 5391, 67, 1028, 67, 2575, 12, 2890, 16, 2151, 1945, 16, 871, 4672, 309, 871, 18, 5391, 422, 890, 30, 619, 273, 509, 12, 2575, 18, 92, 13, 677, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 2692, 67, 3413, 1945, 67, 5391, 67, 1028, 67, 2575, 12, 2890, 16, 2151, 1945, 16, 871, 4672, 309, 871, 18, 5391, 422, 890, 30, 619, 273, 509, 12, 2575, 18, 92, 13, 677, 27...
return new Node(t, LET)
return Node(t, LET)
def LET__build(t): return new Node(t, LET)
c7acf93c85d2480e1e64e292c2f42ae1721eefbe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/c7acf93c85d2480e1e64e292c2f42ae1721eefbe/Builder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 511, 1584, 972, 3510, 12, 88, 4672, 327, 394, 2029, 12, 88, 16, 511, 1584, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 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, 511, 1584, 972, 3510, 12, 88, 4672, 327, 394, 2029, 12, 88, 16, 511, 1584, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if self.debugging: print '<-- file', `file`
print '!'*self.debugging, '<-- file', `file`
def do_include(self, args): file = args file = os.path.join(self.includedir, file) try: fp = open(file, 'r') except IOError, msg: print '*** Can\'t open include file', `file` return if self.debugging: print '--> file', `file` save_done = self.done save_skip = self.skip save_stack = self.stack self.includedepth = self.i...
db6f5c4045c0343f80223a59ad6975c71dc11049 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/db6f5c4045c0343f80223a59ad6975c71dc11049/texi2html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 6702, 12, 2890, 16, 833, 4672, 585, 273, 833, 585, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 20405, 481, 16, 585, 13, 775, 30, 4253, 273, 1696, 12, 768, 16, 296, 86, 613...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 6702, 12, 2890, 16, 833, 4672, 585, 273, 833, 585, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 20405, 481, 16, 585, 13, 775, 30, 4253, 273, 1696, 12, 768, 16, 296, 86, 613...
print "* ",som2[0] print "* ",som2[1]
print "* ", som2[0] print "* ", som2[1]
def energy_transfer(left,right,**kwargs): """ This function takes a tuple and a SOM, a tuple and a SO or two tuples and calculates the energy transfer in units of THz. The SOM principle axis must be in units of meV. The SO and tuples are assumed to be in units of meV. Parameters: ---------- -> left is a SOM, SO or tup...
6616e35e539c4c6226057c57a0d82efcc16edee3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/6616e35e539c4c6226057c57a0d82efcc16edee3/hlr_energy_transfer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12929, 67, 13866, 12, 4482, 16, 4083, 16, 636, 4333, 4672, 3536, 1220, 445, 5530, 279, 3193, 471, 279, 348, 1872, 16, 279, 3193, 471, 279, 7460, 578, 2795, 10384, 471, 17264, 326, 12929,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12929, 67, 13866, 12, 4482, 16, 4083, 16, 636, 4333, 4672, 3536, 1220, 445, 5530, 279, 3193, 471, 279, 348, 1872, 16, 279, 3193, 471, 279, 7460, 578, 2795, 10384, 471, 17264, 326, 12929,...
html.write('var aSearchHosts = %s;' % data) html.write('mkSearchAddField("mk_side_search_field", "main", "%s");</script>' % defaults.checkmk_web_uri)
html.write("aSearchHosts = %s;\n" % data) html.write('</script>')
def render_searchform(): html.write('<script type="text/javascript" src="%s/search.js"></script>' % defaults.checkmk_web_uri) html.write('<div id="mk_side_search">') html.write('<input id="mk_side_search_field" type="text" name="search" />') html.write('</div>') html.write('<script type="text/javascript">') # Store (u...
0077cf4d96a72bbf7908ea2594e5fda902550f2d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/0077cf4d96a72bbf7908ea2594e5fda902550f2d/search.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 3072, 687, 13332, 1729, 18, 2626, 2668, 32, 4263, 618, 1546, 955, 19, 11242, 6, 1705, 11613, 87, 19, 3072, 18, 2924, 13762, 4263, 1870, 738, 3467, 18, 1893, 24816, 67, 4875, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 3072, 687, 13332, 1729, 18, 2626, 2668, 32, 4263, 618, 1546, 955, 19, 11242, 6, 1705, 11613, 87, 19, 3072, 18, 2924, 13762, 4263, 1870, 738, 3467, 18, 1893, 24816, 67, 4875, ...
self._editTime = None
self._editTime = '0' self._startTime = '0'
def __init__(self, site, title, insite=None, defaultNamespace=0): try: # if _editrestriction is True, it means that the page has been found # to have an edit restriction, but we do not know yet whether the # restriction affects us or not self._editrestriction = False
9eceded4974ba66395f58e066c1ae11283615f99 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/9eceded4974ba66395f58e066c1ae11283615f99/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2834, 16, 2077, 16, 2763, 1137, 33, 7036, 16, 805, 3402, 33, 20, 4672, 775, 30, 468, 309, 389, 4619, 23954, 353, 1053, 16, 518, 4696, 716, 326, 1363, 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, 1001, 2738, 972, 12, 2890, 16, 2834, 16, 2077, 16, 2763, 1137, 33, 7036, 16, 805, 3402, 33, 20, 4672, 775, 30, 468, 309, 389, 4619, 23954, 353, 1053, 16, 518, 4696, 716, 326, 1363, 7...
if not hasfunc and not self.fault_tolerance: raise ModuleUnloadeableException(module.__name__, "Module did not have attribute named %s" % name) if not func_is_func and not self.fault_tolerance: raise ModuleUnloadeableException(module.__name__, "Module attribute %s was not a function" % name) if not func_has_correct_pa...
def validate_execution_hook(self, module, name, num_args): if self.debug_output >= DEBUG_ALL: print "Module %s has attribute %s: %s " % (module, name, hasattr(module, name)) print "Module attribute %s is of type 'func_code': %s" % (name, hasattr(module.__dict__[name], "func_code")) print "Module function %s has %d args...
ac8394e492ea52df689e85bed76504f07ab8ee23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/635/ac8394e492ea52df689e85bed76504f07ab8ee23/moduleloader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 67, 16414, 67, 4476, 12, 2890, 16, 1605, 16, 508, 16, 818, 67, 1968, 4672, 309, 365, 18, 4148, 67, 2844, 1545, 6369, 67, 4685, 30, 1172, 315, 3120, 738, 87, 711, 1566, 738, 87,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 67, 16414, 67, 4476, 12, 2890, 16, 1605, 16, 508, 16, 818, 67, 1968, 4672, 309, 365, 18, 4148, 67, 2844, 1545, 6369, 67, 4685, 30, 1172, 315, 3120, 738, 87, 711, 1566, 738, 87,...
self.muc.sayTo(to, auto_decode(message))
if self.xmpp_c != None: self.muc.sayTo(to, auto_decode(message)) elif self.irc_connection == None: if self.bridge.mode != 'normal': self.bridge.getParticipant(to).sayOnXMPPTo(self.nickname, 'Sorry but cross-protocol private messages are disabled in '+self.bridge.mode+' mode.') else: self.bridge.getParticipant(to).sayOn...
def sayOnXMPPTo(self, to, message): if self.protocol == 'xmpp': raise Exception('[Internal Error] "'+self.nickname+'" comes from XMPP') try: self.muc.sayTo(to, auto_decode(message)) except EncodingException: self.bridge.say('[Warning] "'+self.nickname+'" is sending messages using an unknown encoding')
d96bf24efa4ff6b4c74a1fdc2610fadf512c84fe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9915/d96bf24efa4ff6b4c74a1fdc2610fadf512c84fe/participant.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12532, 1398, 60, 19388, 774, 12, 2890, 16, 358, 16, 883, 4672, 309, 365, 18, 8373, 422, 296, 92, 24109, 4278, 1002, 1185, 2668, 63, 3061, 1068, 65, 2491, 15, 2890, 18, 17091, 529, 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, 12532, 1398, 60, 19388, 774, 12, 2890, 16, 358, 16, 883, 4672, 309, 365, 18, 8373, 422, 296, 92, 24109, 4278, 1002, 1185, 2668, 63, 3061, 1068, 65, 2491, 15, 2890, 18, 17091, 529, 15, ...
raise osv.except_osv(_('Data Insufficient !'),
raise osv.except_osv(_('Data Insufficient !'),
def action_confirm(self, cr, uid, ids, context={}): """ Confirms procurement and writes exception message if any. @return: True """ move_obj = self.pool.get('stock.move') for procurement in self.browse(cr, uid, ids): if procurement.product_qty <= 0.00: raise osv.except_osv(_('Data Insufficient !'), _('Please check the ...
be16348523df3d3f4769b71419d143ad492f98b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/be16348523df3d3f4769b71419d143ad492f98b4/procurement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 10927, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 3536, 9675, 481, 959, 5418, 594, 475, 471, 7262, 1520, 883, 309, 1281, 18, 632, 2463, 30, 1053, 3536, 363...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 10927, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 3536, 9675, 481, 959, 5418, 594, 475, 471, 7262, 1520, 883, 309, 1281, 18, 632, 2463, 30, 1053, 3536, 363...
"'ascii' codec can't encode character '\\xfc' in position 1: ouch"
"'ascii' codec can't encode character u'\\xfc' in position 1: ouch"
def test_unicodeencodeerror(self): self.check_exceptionobjectargs( UnicodeEncodeError, ["ascii", u"g\xfcrk", 1, 2, "ouch"], "'ascii' codec can't encode character '\\xfc' in position 1: ouch" ) self.check_exceptionobjectargs( UnicodeEncodeError, ["ascii", u"g\xfcrk", 1, 4, "ouch"], "'ascii' codec can't encode characters...
98297cb7539a203e5469af40bd7bee10634456e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/98297cb7539a203e5469af40bd7bee10634456e8/test_codeccallbacks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9124, 3015, 1636, 12, 2890, 4672, 365, 18, 1893, 67, 4064, 1612, 1968, 12, 9633, 5509, 668, 16, 8247, 9184, 3113, 582, 6, 75, 64, 5841, 3353, 79, 3113, 404, 16, 576, 16, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9124, 3015, 1636, 12, 2890, 4672, 365, 18, 1893, 67, 4064, 1612, 1968, 12, 9633, 5509, 668, 16, 8247, 9184, 3113, 582, 6, 75, 64, 5841, 3353, 79, 3113, 404, 16, 576, 16, 31...
rev_display = ' (to revision %s)' % rev
rev_display = ' (to %s)' % rev
def obtain(self, dest): url, rev = self.get_url_rev() if rev: rev_options = [rev] rev_display = ' (to revision %s)' % rev else: rev_options = ['origin/master'] rev_display = '' if self.check_destination(dest, url, rev_options, rev_display): logger.notify('Cloning %s%s to %s' % (url, rev_display, display_path(dest))) ca...
a8de40cac1efc1e64dff6e62ad6939499027ed0d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12982/a8de40cac1efc1e64dff6e62ad6939499027ed0d/pip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7161, 12, 2890, 16, 1570, 4672, 880, 16, 5588, 273, 365, 18, 588, 67, 718, 67, 9083, 1435, 309, 5588, 30, 5588, 67, 2116, 273, 306, 9083, 65, 5588, 67, 5417, 273, 296, 261, 869, 738,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7161, 12, 2890, 16, 1570, 4672, 880, 16, 5588, 273, 365, 18, 588, 67, 718, 67, 9083, 1435, 309, 5588, 30, 5588, 67, 2116, 273, 306, 9083, 65, 5588, 67, 5417, 273, 296, 261, 869, 738,...
print self.datafile_dir
def update_pathconfig(self): # Write the new location to the pathconfig.py file. pathconfig = os.path.join(self.build_lib, self.package, 'pathconfig.py') if self.datafile_dir is None: # Make sure that we have installed the data files self.run_command('install_data') # Get the location of the installed data try: data_fi...
7e86c9ed7a2671f488d0391e7d7ede4a68f750b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/7e86c9ed7a2671f488d0391e7d7ede4a68f750b4/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 803, 1425, 12, 2890, 4672, 468, 2598, 326, 394, 2117, 358, 326, 589, 1425, 18, 2074, 585, 18, 589, 1425, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 3510, 67, 2941, 16, 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, 1089, 67, 803, 1425, 12, 2890, 4672, 468, 2598, 326, 394, 2117, 358, 326, 589, 1425, 18, 2074, 585, 18, 589, 1425, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 3510, 67, 2941, 16, 365...
def get_complete_name(self, cursor, user, ids, name, arg, context): res = self.name_get(cursor, user, ids, context)
def get_complete_name(self, cursor, user, ids, name, arg, context=None): res = self.name_get(cursor, user, ids, context=context)
def get_complete_name(self, cursor, user, ids, name, arg, context): res = self.name_get(cursor, user, ids, context) return dict(res)
42aa0bce747ae29172a353d508b48191e3e818cb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/533/42aa0bce747ae29172a353d508b48191e3e818cb/category.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 6226, 67, 529, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 508, 16, 1501, 16, 819, 33, 7036, 4672, 400, 273, 365, 18, 529, 67, 588, 12, 9216, 16, 729, 16, 3258, 16, 819, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 6226, 67, 529, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 508, 16, 1501, 16, 819, 33, 7036, 4672, 400, 273, 365, 18, 529, 67, 588, 12, 9216, 16, 729, 16, 3258, 16, 819, ...
self.exit_rstr.add_restriction(ExitPolicyRestriction("255.255.255.255", 80))
def reconfigure(self, sorted_r): """This function is called after a configuration change, to rebuild the RestrictionLists.""" if self.use_all_exits: self.path_rstr = PathRestrictionList([UniqueRestriction()]) else: self.path_rstr = PathRestrictionList( [Subnet16Restriction(), UniqueRestriction()]) if self.use_guards: ...
4b763ab6ae8784d9f66a654e970b49853ea92450 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3224/4b763ab6ae8784d9f66a654e970b49853ea92450/PathSupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 14895, 12, 2890, 16, 3115, 67, 86, 4672, 3536, 2503, 445, 353, 2566, 1839, 279, 1664, 2549, 16, 358, 13419, 326, 1124, 6192, 7432, 12123, 309, 365, 18, 1202, 67, 454, 67, 338, 128...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 14895, 12, 2890, 16, 3115, 67, 86, 4672, 3536, 2503, 445, 353, 2566, 1839, 279, 1664, 2549, 16, 358, 13419, 326, 1124, 6192, 7432, 12123, 309, 365, 18, 1202, 67, 454, 67, 338, 128...
warn("tables rebuilt because of dependencies updated: '" \
warn("Tables rebuilt because of dependencies updated: '" \
def build(self, tables): """ Builds the given tables.
e8e9b1566ed97c2e61c03da42d88ea3809b5a0f1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11128/e8e9b1566ed97c2e61c03da42d88ea3809b5a0f1/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 12, 2890, 16, 4606, 4672, 3536, 3998, 87, 326, 864, 4606, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 12, 2890, 16, 4606, 4672, 3536, 3998, 87, 326, 864, 4606, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
OUTPUT: a free ZZ-module of rank 4
OUTPUT: a free `\\ZZ`-module of rank 4
def free_module(self): """ Return the free ZZ-module that corresponds to this order inside the vector space corresponding to the ambient quaternion algebra.
1ec65dfa0c3aab294b8ecca3f5f5493e154b7172 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/1ec65dfa0c3aab294b8ecca3f5f5493e154b7172/quaternion_algebra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4843, 67, 2978, 12, 2890, 4672, 3536, 2000, 326, 4843, 2285, 62, 17, 2978, 716, 13955, 358, 333, 1353, 4832, 326, 3806, 3476, 4656, 358, 326, 13232, 1979, 26774, 524, 29087, 18, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4843, 67, 2978, 12, 2890, 4672, 3536, 2000, 326, 4843, 2285, 62, 17, 2978, 716, 13955, 358, 333, 1353, 4832, 326, 3806, 3476, 4656, 358, 326, 13232, 1979, 26774, 524, 29087, 18, 2, -100,...
for attDict,count in result['Value']:
for attDict, count in result['Value']:
def getUserSummaryWeb(self,selectDict, sortList, startItem, maxItems): """ Get the summary of user jobs in a standard form for the Web portal. Pagination and global sorting is supported. """
99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4735, 4733, 4079, 12, 2890, 16, 4025, 5014, 16, 1524, 682, 16, 787, 1180, 16, 943, 3126, 4672, 3536, 968, 326, 4916, 434, 729, 6550, 316, 279, 4529, 646, 364, 326, 2999, 11899, 18, 169...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4735, 4733, 4079, 12, 2890, 16, 4025, 5014, 16, 1524, 682, 16, 787, 1180, 16, 943, 3126, 4672, 3536, 968, 326, 4916, 434, 729, 6550, 316, 279, 4529, 646, 364, 326, 2999, 11899, 18, 169...
self.text_view.set_size_request(900, 350)
self.text_view.set_size_request(0, int(SIZE_Y * 0.5))
def __init__(self, handle): """Set up the Pippy activity.""" super(PippyActivity, self).__init__(handle) self._logger = logging.getLogger('pippy-activity')
022d096d4933fb8b27ead24e0904a67e14e88379 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7610/022d096d4933fb8b27ead24e0904a67e14e88379/pippy_app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1640, 4672, 3536, 694, 731, 326, 29305, 2074, 5728, 12123, 2240, 12, 24925, 2074, 6193, 16, 365, 2934, 972, 2738, 972, 12, 4110, 13, 365, 6315, 4901, 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, 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, 1640, 4672, 3536, 694, 731, 326, 29305, 2074, 5728, 12123, 2240, 12, 24925, 2074, 6193, 16, 365, 2934, 972, 2738, 972, 12, 4110, 13, 365, 6315, 4901, 273, ...
_cache[key] = weakref.ref(R)
_cache[key] = R
def _save_in_cache(key, R): """ EXAMPLES: sage: from sage.rings.polynomial.laurent_polynomial_ring import _save_in_cache, _get_from_cache sage: L = LaurentPolynomialRing(QQ,2,'x') sage: _save_in_cache('testkey', L) sage: _get_from_cache('testkey') Multivariate Laurent Polynomial Ring in x0, x1 over Rational Field sage:...
957c3b07fd0e4f4010a0f424b7337249535c58ce /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/957c3b07fd0e4f4010a0f424b7337249535c58ce/laurent_polynomial_ring.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5688, 67, 267, 67, 2493, 12, 856, 16, 534, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 628, 272, 410, 18, 86, 899, 18, 3915, 13602, 18, 80, 8377, 547, 67, 3915, 13602, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5688, 67, 267, 67, 2493, 12, 856, 16, 534, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 628, 272, 410, 18, 86, 899, 18, 3915, 13602, 18, 80, 8377, 547, 67, 3915, 13602, 67, ...
raise Unauthorized, '''
author = anonid if not self.db.security.hasPermission('Email Access', author): if author == anonid: raise Unauthorized, '''
def handle_message(self, message): ''' message - a Message instance
d707f9bfdb46f60188adeb8fefab434f16a66f3d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/d707f9bfdb46f60188adeb8fefab434f16a66f3d/mailgw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 2150, 12, 2890, 16, 883, 4672, 9163, 883, 300, 279, 2350, 791, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 2150, 12, 2890, 16, 883, 4672, 9163, 883, 300, 279, 2350, 791, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
screen = fsm.something[0] screen.cursor_save_attrs()
screen = fsm.something[0] screen.cursor_save_attrs()
def DoCursorSave (fsm): screen = fsm.something[0] screen.cursor_save_attrs()
cfa572ed6a74538df062e539442271b2ff84abec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9386/cfa572ed6a74538df062e539442271b2ff84abec/ansi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2256, 6688, 4755, 261, 2556, 81, 4672, 5518, 273, 26957, 18, 30289, 63, 20, 65, 5518, 18, 9216, 67, 5688, 67, 7039, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2256, 6688, 4755, 261, 2556, 81, 4672, 5518, 273, 26957, 18, 30289, 63, 20, 65, 5518, 18, 9216, 67, 5688, 67, 7039, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if self._shared_activity: self.connect('joined', self._joined_cb) self._shared_activity.connect('buddy-joined', self._buddy_joined_cb) self._shared_activity.connect('buddy-left', self._buddy_left_cb) if self.get_shared(): self._joined_cb()
self.connect('joined', self._joined_cb)
def __init__(self, handle): activity.Activity.__init__(self, handle)
dbc8c5f13d2b8e09cca0503a87da58c7acf16254 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6691/dbc8c5f13d2b8e09cca0503a87da58c7acf16254/poll.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1640, 4672, 5728, 18, 6193, 16186, 2738, 972, 12, 2890, 16, 1640, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1640, 4672, 5728, 18, 6193, 16186, 2738, 972, 12, 2890, 16, 1640, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
other = self._convert_other(other) ans = self._check_nans(other, context) if ans: return ans
def __mul__(self, other, context=None): """Return self * other.
323d0b30a64964b89a85e1b02e8fcc4017ce9fa7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/323d0b30a64964b89a85e1b02e8fcc4017ce9fa7/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 16411, 972, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 990, 365, 380, 1308, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 16411, 972, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 990, 365, 380, 1308, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
doc = Request(self, self.ws_prefix + '.getTags', self.api_key, params, True, self.secret).execute()
doc = _Request(self, self.ws_prefix + '.getTags', self.api_key, params, True, self.secret).execute()
def getTags(self): """Returns a list of the user-set tags to this object.""" params = self._getParams() doc = Request(self, self.ws_prefix + '.getTags', self.api_key, params, True, self.secret).execute() if not doc: return None tag_names = self._extract_all(doc, 'name') tags = [] for tag in tag_names: tags.append(Ta...
903c9b1622fe56617e5099f20abdc69f2090f8e0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9926/903c9b1622fe56617e5099f20abdc69f2090f8e0/pylast.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17388, 12, 2890, 4672, 3536, 1356, 279, 666, 434, 326, 729, 17, 542, 2342, 358, 333, 733, 12123, 225, 859, 273, 365, 6315, 588, 1370, 1435, 997, 273, 389, 691, 12, 2890, 16, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17388, 12, 2890, 4672, 3536, 1356, 279, 666, 434, 326, 729, 17, 542, 2342, 358, 333, 733, 12123, 225, 859, 273, 365, 6315, 588, 1370, 1435, 997, 273, 389, 691, 12, 2890, 16, 365, 18, ...
self.assertEqual(result, inputdata)
self.assertEqual(result, [self.stampedrow,])
def testWrite(self): 'Tests fileio.write() method.'
bc636e57612bcfa0da2d1cabdb5fb65dcc503873 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9837/bc636e57612bcfa0da2d1cabdb5fb65dcc503873/test-libra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3067, 12, 2890, 4672, 296, 14650, 585, 1594, 18, 2626, 1435, 707, 1093, 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, 1842, 3067, 12, 2890, 4672, 296, 14650, 585, 1594, 18, 2626, 1435, 707, 1093, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self.manager.classifier_data.message_db.store_msg(msg)
self.manager.classifier_data.message_db.store_msg(msgstore_message)
def OnClick(self, button, cancel): msgstore = self.manager.message_store msgstore_messages = self.explorer.GetSelectedMessages(True) if not msgstore_messages: return # If we are not yet enabled, tell the user. # (This is better than disabling the button as a) the user may not # understand why it is disabled, and b) as ...
ccfb175f884b2f5cb378ec21c0edb3433c9e0451 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/ccfb175f884b2f5cb378ec21c0edb3433c9e0451/addin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 6563, 12, 2890, 16, 3568, 16, 3755, 4672, 1234, 2233, 273, 365, 18, 4181, 18, 2150, 67, 2233, 1234, 2233, 67, 6833, 273, 365, 18, 338, 11766, 18, 967, 7416, 5058, 12, 5510, 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, 2755, 6563, 12, 2890, 16, 3568, 16, 3755, 4672, 1234, 2233, 273, 365, 18, 4181, 18, 2150, 67, 2233, 1234, 2233, 67, 6833, 273, 365, 18, 338, 11766, 18, 967, 7416, 5058, 12, 5510, 13, ...
elif self.lineno is None:
elif self.lineno is None or arg == '.':
def do_list(self, arg): self.lastcmd = 'list' last = None if arg: try: x = eval(arg, {}, {}) if type(x) == type(()): first, last = x first = int(first) last = int(last) if last < first: # Assume it's a count last = first + last else: first = max(1, int(x) - 5) except: print('*** Error in argument:', repr(arg), file=sel...
a91a94b7c054a01b26bc76a1f3ccaefc6395f077 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/a91a94b7c054a01b26bc76a1f3ccaefc6395f077/pdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 1098, 12, 2890, 16, 1501, 4672, 365, 18, 2722, 4172, 273, 296, 1098, 11, 1142, 273, 599, 309, 1501, 30, 775, 30, 619, 273, 5302, 12, 3175, 16, 10615, 2618, 13, 309, 618, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 1098, 12, 2890, 16, 1501, 4672, 365, 18, 2722, 4172, 273, 296, 1098, 11, 1142, 273, 599, 309, 1501, 30, 775, 30, 619, 273, 5302, 12, 3175, 16, 10615, 2618, 13, 309, 618, 12,...
this = apply(_quickfix.new_MaturityDate, args)
this = _quickfix.new_MaturityDate(*args)
def __init__(self, *args): this = apply(_quickfix.new_MaturityDate, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 15947, 2336, 1626, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 15947, 2336, 1626, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, ...
for letter in freq_info.keys(): freq_info[letter] = freq_info[letter] / total_count
if total_count == 0 : for letter in freq_info.keys(): assert freq_info[letter] == 0 else : for letter in freq_info.keys(): freq_info[letter] = freq_info[letter] / total_count
def _get_letter_freqs(self, residue_num, all_records, letters, to_ignore): """Determine the frequency of specific letters in the alignment.
7a987bbfe5616cfbe91efc69918a09ab8b7b9679 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/7a987bbfe5616cfbe91efc69918a09ab8b7b9679/AlignInfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 13449, 67, 10212, 87, 12, 2890, 16, 14765, 67, 2107, 16, 777, 67, 7094, 16, 13768, 16, 358, 67, 6185, 4672, 3536, 8519, 326, 8670, 434, 2923, 13768, 316, 326, 8710, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 13449, 67, 10212, 87, 12, 2890, 16, 14765, 67, 2107, 16, 777, 67, 7094, 16, 13768, 16, 358, 67, 6185, 4672, 3536, 8519, 326, 8670, 434, 2923, 13768, 316, 326, 8710, 18, ...
if out.find("Output not yet Ready") != -1 : obj.runningJob.errors.append("Not yet Ready")
def getOutput( self, obj, outdir='' ): """ retrieve job output """
db5bc68a73a296563e8769af888171214d3df710 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8886/db5bc68a73a296563e8769af888171214d3df710/SchedulerGLite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11062, 12, 365, 16, 1081, 16, 15398, 2218, 11, 262, 30, 3536, 4614, 1719, 876, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 11062, 12, 365, 16, 1081, 16, 15398, 2218, 11, 262, 30, 3536, 4614, 1719, 876, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
print (phi,theta,psi)
def make_hdr(self): "Pack a NIFTI format header." # (un)rotation is handled like this: take the image as transformed with # 2 rotations, S, Rb (S is the xform from scanner space into the # data-ordering in the FID file, Rb is the xform applied by slicing # coronal-wise, sagital-wise, etc) # then I = Rb(psi)*Rb(theta)*R...
0395d9b55ef60e733032416a11c6431e6c96a9c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7241/0395d9b55ef60e733032416a11c6431e6c96a9c2/nifti.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 16587, 12, 2890, 4672, 315, 4420, 279, 423, 17925, 45, 740, 1446, 1199, 468, 261, 318, 13, 18807, 353, 7681, 3007, 333, 30, 4862, 326, 1316, 487, 10220, 598, 468, 576, 31157, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 16587, 12, 2890, 4672, 315, 4420, 279, 423, 17925, 45, 740, 1446, 1199, 468, 261, 318, 13, 18807, 353, 7681, 3007, 333, 30, 4862, 326, 1316, 487, 10220, 598, 468, 576, 31157, ...
print pprint.pp.process(g.outputs[0])
print pprint(g.outputs[0])
def test_muldiv(self): x, y, z = matrices('xyz') a, b, c, d = matrices('abcd')
8bac635aa52a9bd662a2bb534b37246d68e24b85 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12438/8bac635aa52a9bd662a2bb534b37246d68e24b85/test_opt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 16411, 2892, 12, 2890, 4672, 619, 16, 677, 16, 998, 273, 16415, 2668, 17177, 6134, 279, 16, 324, 16, 276, 16, 302, 273, 16415, 2668, 378, 4315, 6134, 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, 1842, 67, 16411, 2892, 12, 2890, 4672, 619, 16, 677, 16, 998, 273, 16415, 2668, 17177, 6134, 279, 16, 324, 16, 276, 16, 302, 273, 16415, 2668, 378, 4315, 6134, 2, -100, -100, -100, -10...
key = encode_page(key)
if isinstance(key, unicode): key = encode_page(key)
def __setattr__(self, key, value): key = encode_page(key) self.__dict__[key] = value
56d4bd00e29c4d0d242d0d73f0ee688019315e15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/56d4bd00e29c4d0d242d0d73f0ee688019315e15/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1747, 972, 12, 2890, 16, 498, 16, 460, 4672, 225, 309, 1549, 12, 856, 16, 5252, 4672, 498, 273, 2017, 67, 2433, 12, 856, 13, 365, 16186, 1576, 972, 63, 856, 65, 273, 460, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 542, 1747, 972, 12, 2890, 16, 498, 16, 460, 4672, 225, 309, 1549, 12, 856, 16, 5252, 4672, 498, 273, 2017, 67, 2433, 12, 856, 13, 365, 16186, 1576, 972, 63, 856, 65, 273, 460, ...
prune_filenodes(fname, filerevlog) msng_filenode_lst = msng_filenode_set[fname].keys()
if msng_filenode_set.has_key(fname): prune_filenodes(fname, filerevlog) msng_filenode_lst = msng_filenode_set[fname].keys() else: msng_filenode_lst = []
def gengroup(): # The set of changed files starts empty. changedfiles = {} # Create a changenode group generator that will call our functions # back to lookup the owning changenode and collect information. group = cl.group(msng_cl_lst, identity, manifest_and_file_collector(changedfiles)) for chnk in group: yield chnk
832548130f1d3e93bef9c1c34bd0cfd71a3804cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/832548130f1d3e93bef9c1c34bd0cfd71a3804cd/localrepo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 1655, 13332, 468, 1021, 444, 434, 3550, 1390, 2542, 1008, 18, 3550, 2354, 273, 2618, 468, 1788, 279, 9435, 20680, 1041, 4456, 716, 903, 745, 3134, 4186, 468, 1473, 358, 3689, 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, 3157, 1655, 13332, 468, 1021, 444, 434, 3550, 1390, 2542, 1008, 18, 3550, 2354, 273, 2618, 468, 1788, 279, 9435, 20680, 1041, 4456, 716, 903, 745, 3134, 4186, 468, 1473, 358, 3689, 326, ...
"""Retrieve the real component of this number.
"""Retrieve the imaginary component of this number.
def imag(self): """Retrieve the real component of this number.
5793e6f4b02b3c377906c639e5d5412f942837d4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/5793e6f4b02b3c377906c639e5d5412f942837d4/numbers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8902, 12, 2890, 4672, 3536, 5767, 326, 2863, 1794, 434, 333, 1300, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8902, 12, 2890, 4672, 3536, 5767, 326, 2863, 1794, 434, 333, 1300, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
desc = _('Convert book %d of %d (%s)') % (i + 1, total, repr(mi.title))
try: dtitle = unicode(mi.title) except: dtitle = repr(mi.title) desc = _('Convert book %d of %d (%s)') % (i + 1, total, dtitle)
def convert_single_ebook(parent, db, book_ids, auto_conversion=False, out_format=None): changed = False jobs = [] bad = [] total = len(book_ids) if total == 0: return None, None, None parent.status_bar.showMessage(_('Starting conversion of %d books') % total, 2000) for i, book_id in enumerate(book_ids): temp_files = ...
f0d3fe56b48cfa2ef025c167c20c677b47ac98e4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/f0d3fe56b48cfa2ef025c167c20c677b47ac98e4/tools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 7526, 67, 73, 3618, 12, 2938, 16, 1319, 16, 6978, 67, 2232, 16, 3656, 67, 20990, 33, 8381, 16, 596, 67, 2139, 33, 7036, 4672, 3550, 273, 1083, 6550, 273, 5378, 5570, 273, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 7526, 67, 73, 3618, 12, 2938, 16, 1319, 16, 6978, 67, 2232, 16, 3656, 67, 20990, 33, 8381, 16, 596, 67, 2139, 33, 7036, 4672, 3550, 273, 1083, 6550, 273, 5378, 5570, 273, 5...
def make_proxy(global_conf, address, allowed_request_methods=""):
def make_proxy(global_conf, address, allowed_request_methods="", suppress_http_headers=""):
def make_proxy(global_conf, address, allowed_request_methods=""): """ Make a WSGI application that proxies to another address -- 'address' should be the full URL ending with a trailing / 'allowed_request_methods' is a space seperated list of request methods """ from paste.deploy.converters import aslist allowed_request...
e8e8c440bd9f31e7b8409229f28a70383b87e33c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11400/e8e8c440bd9f31e7b8409229f28a70383b87e33c/proxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 5656, 12, 6347, 67, 3923, 16, 1758, 16, 2935, 67, 2293, 67, 5163, 1546, 3113, 12257, 67, 2505, 67, 2485, 1546, 6, 4672, 3536, 4344, 279, 7649, 13797, 2521, 716, 13263, 358, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 5656, 12, 6347, 67, 3923, 16, 1758, 16, 2935, 67, 2293, 67, 5163, 1546, 3113, 12257, 67, 2505, 67, 2485, 1546, 6, 4672, 3536, 4344, 279, 7649, 13797, 2521, 716, 13263, 358, 4...
print "Including extra troves to resolve dependencies" print " %s" % " ".join(suggMap.itervalues())
print "Including extra troves to resolve dependencies:" print " ", for suggList in suggMap.itervalues(): print "%s" % (" ".join([x[0] for x in suggList])), print
def doUpdate(repos, cfg, pkgList, replaceFiles = False, tagScript = None, keepExisting = False, depCheck = True, recurse = True): client = conaryclient.ConaryClient(repos, cfg) applyList = [] if type(pkgList) is str: pkgList = ( pkgList, ) for pkgStr in pkgList: if os.path.exists(pkgStr) and os.path.isfile(pkgStr): t...
88498ebca11f8092ae5ac30dda91836b2ad19ed2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/88498ebca11f8092ae5ac30dda91836b2ad19ed2/updatecmd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 1891, 12, 15564, 16, 2776, 16, 3475, 682, 16, 1453, 2697, 273, 1083, 16, 1047, 3651, 273, 599, 16, 3455, 9895, 273, 1083, 16, 5993, 1564, 273, 1053, 16, 11502, 273, 1053, 4672, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 1891, 12, 15564, 16, 2776, 16, 3475, 682, 16, 1453, 2697, 273, 1083, 16, 1047, 3651, 273, 599, 16, 3455, 9895, 273, 1083, 16, 5993, 1564, 273, 1053, 16, 11502, 273, 1053, 4672, 10...
if os.path.split(tarinfo.name)[1] in ('desc','depends'):
fname = os.path.split(tarinfo.name)[1] if fname in dbfiles:
def parse_repo(repopath): """ Parses an Arch repo db file, and returns a list of Pkg objects. Arguments: repopath -- The path of a repository db file. """ logger.info("Starting repo parsing") if not os.path.exists(repopath): logger.error("Could not read file %s", repopath) logger.info("Reading repo tarfile %s", repo...
8eff04788d0c62af01848a22a91efe74b87380b2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11256/8eff04788d0c62af01848a22a91efe74b87380b2/reporead.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 7422, 12, 266, 5120, 421, 4672, 3536, 2280, 2420, 392, 16959, 3538, 1319, 585, 16, 471, 1135, 279, 666, 434, 453, 14931, 2184, 18, 225, 13599, 30, 2071, 556, 421, 1493, 1021, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 7422, 12, 266, 5120, 421, 4672, 3536, 2280, 2420, 392, 16959, 3538, 1319, 585, 16, 471, 1135, 279, 666, 434, 453, 14931, 2184, 18, 225, 13599, 30, 2071, 556, 421, 1493, 1021, ...
if platform not in ['cygwin']: exts.append( Extension('resource', ['resource.c']) )
exts.append( Extension('resource', ['resource.c']) )
def detect_modules(self): # Ensure that /usr/local is always used if '/usr/local/lib' not in self.compiler.library_dirs: self.compiler.library_dirs.insert(0, '/usr/local/lib') if '/usr/local/include' not in self.compiler.include_dirs: self.compiler.include_dirs.insert(0, '/usr/local/include' )
821415e27911f631fc5df823beeced92b282c74f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/821415e27911f631fc5df823beeced92b282c74f/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 309, 1173, 13640, 19, 3729, 19, 2941, 11, 486, 316, 365, 18, 9576, 18, 12083, 67, 8291, 30, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 309, 1173, 13640, 19, 3729, 19, 2941, 11, 486, 316, 365, 18, 9576, 18, 12083, 67, 8291, 30, 365, ...
self._mac1, self._mac2, self._ip1, self._ip2 = None, None, None, None
self._mac1, self._mac2 = None, None self._ip1, self._ip2 = None, None self.linktype = None
def __init__(self, dev1, dev2=None, bpf_filter=None, \ skip_forwarded=True, unoffensive=False, capmethod=0): BaseAuditContext.__init__(self, dev1, dev2, bpf_filter, capmethod)
5c13d0d057581caab1db6e48b06519b077c2311b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11468/5c13d0d057581caab1db6e48b06519b077c2311b/audit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4461, 21, 16, 4461, 22, 33, 7036, 16, 9107, 74, 67, 2188, 33, 7036, 16, 521, 2488, 67, 1884, 11804, 33, 5510, 16, 640, 3674, 14315, 33, 8381, 16, 3523,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4461, 21, 16, 4461, 22, 33, 7036, 16, 9107, 74, 67, 2188, 33, 7036, 16, 521, 2488, 67, 1884, 11804, 33, 5510, 16, 640, 3674, 14315, 33, 8381, 16, 3523,...
self.assertEqual(-(0x7fffffff), -2147483647)
if platform_long_is_32_bits: self.assertEqual(-(0x7fffffff), -2147483647) else: self.assertEqual(-(0x7fffffffffffffff), -9223372036854775807)
def test_hex_baseline(self): # Baseline tests self.assertEqual(0x0, 0) self.assertEqual(0x10, 16) self.assertEqual(0x7fffffff, 2147483647) # Ditto with a minus sign and parentheses self.assertEqual(-(0x0), 0) self.assertEqual(-(0x10), -16) self.assertEqual(-(0x7fffffff), -2147483647) # Ditto with a minus sign and NO pa...
9f9d6e6c1d506067db8a1309e91d568018bef591 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/9f9d6e6c1d506067db8a1309e91d568018bef591/test_hexoct.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7118, 67, 27818, 12, 2890, 4672, 468, 605, 345, 3027, 7434, 365, 18, 11231, 5812, 12, 20, 92, 20, 16, 374, 13, 365, 18, 11231, 5812, 12, 20, 92, 2163, 16, 2872, 13, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7118, 67, 27818, 12, 2890, 4672, 468, 605, 345, 3027, 7434, 365, 18, 11231, 5812, 12, 20, 92, 20, 16, 374, 13, 365, 18, 11231, 5812, 12, 20, 92, 2163, 16, 2872, 13, 365, ...
self.s.append(r - r_old) self.y.append(-(f - f_old)) self.rho.append(1 / np.vdot(self.y[ITR],self.s[ITR]))
stemp = r - r_old ytemp = -(f - f_old) if (ytemp * stemp < 0.0).any(): ytemp = np.zeros_like(ytemp) stemp = np.zeros_like(stemp) rhotemp = 0.0 else: rhotemp = 1 / np.vdot(ytemp , stemp) self.s.append(stemp) self.y.append(ytemp) self.rho.append(rhotemp)
def update(self, r, f, r_old, f_old): a = np.zeros(self.memory + 1, 'd') self.tmp = self.atoms if not self.ITR: self.ITR = 1 self.s = [1.] # The 0'th element is not actually used # The point is to use 1-indexation self.y = [1.] self.rho = [1.] else: a1 = abs (np.vdot(f, f_old)) a2 = np.vdot(f_old, f_old) reset_flag = s...
bc3efb9267548f28c85bf11e1c0f7d7bcda39eea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1380/bc3efb9267548f28c85bf11e1c0f7d7bcda39eea/lbfgs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 436, 16, 284, 16, 436, 67, 1673, 16, 284, 67, 1673, 4672, 279, 273, 1130, 18, 22008, 12, 2890, 18, 7858, 397, 404, 16, 296, 72, 6134, 365, 18, 5645, 273, 365, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 436, 16, 284, 16, 436, 67, 1673, 16, 284, 67, 1673, 4672, 279, 273, 1130, 18, 22008, 12, 2890, 18, 7858, 397, 404, 16, 296, 72, 6134, 365, 18, 5645, 273, 365, 1...
print "Dumped invalid XML to sax_parse_bug.dat"
print >>sys.stderr, "Dumped invalid XML to sax_parse_bug.dat"
def run(self): dt=15 while 1: try: data = self.getData() except socket.error: # Print the traceback of the caught exception print ''.join(traceback.format_exception(*sys.exc_info())) output(u'DBG> got socket error in GetAll.run. Sleeping for %d seconds'%dt) time.sleep(dt) dt *= 2 else: break handler = WikimediaXmlHandl...
8d387c54be5bbb6cc9194b41b1629ac1de056332 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/8d387c54be5bbb6cc9194b41b1629ac1de056332/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3681, 33, 3600, 1323, 404, 30, 775, 30, 501, 273, 365, 18, 588, 751, 1435, 1335, 2987, 18, 1636, 30, 468, 3038, 326, 10820, 434, 326, 13537, 1520, 1172, 875, 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, 1086, 12, 2890, 4672, 3681, 33, 3600, 1323, 404, 30, 775, 30, 501, 273, 365, 18, 588, 751, 1435, 1335, 2987, 18, 1636, 30, 468, 3038, 326, 10820, 434, 326, 13537, 1520, 1172, 875, 18, ...