rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
DEBUG = 0
DEBUG = 1
def check_args(*args): for arg in args: assert isinstance(arg, (Box, Const))
7911540f124e54084aac2433bdb39e04dff0e471 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/7911540f124e54084aac2433bdb39e04dff0e471/pyjitpl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1968, 30857, 1968, 4672, 364, 1501, 316, 833, 30, 1815, 1549, 12, 3175, 16, 261, 3514, 16, 9333, 3719, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1968, 30857, 1968, 4672, 364, 1501, 316, 833, 30, 1815, 1549, 12, 3175, 16, 261, 3514, 16, 9333, 3719, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
activity = SystemActivity(system.user, 'VIA %s' % None, 'Provision', 'Distro', "", "Success: %s" % distro.install_name) system.activity.append(activity)
system.activity.append(SystemActivity(system.user, 'VIA %s' % None, 'Provision', 'Distro', "", "Success: %s" % distro.install_name))
def commandBoot(self, commands): """ NetBoot Compat layer for old RHTS Scheduler """ repos = [] bootargs = None kickstart = None packages = [] runtest_url = None testrepo = None hostname = None distro_name = None SETENV = re.compile(r'SetEnvironmentVar\s+([^\s]+)\s+"*([^"]+)') BOOTARGS = re.compile(r'BootArgs\s+(.*)') ...
cdcd12a006c980404e5955234d65249dae12765f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14755/cdcd12a006c980404e5955234d65249dae12765f/controllers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1296, 15817, 12, 2890, 16, 4364, 4672, 3536, 8503, 15817, 5427, 270, 3018, 364, 1592, 534, 5062, 55, 12620, 3536, 13686, 273, 5378, 4835, 1968, 273, 599, 23228, 1937, 273, 599, 5907, 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, 1296, 15817, 12, 2890, 16, 4364, 4672, 3536, 8503, 15817, 5427, 270, 3018, 364, 1592, 534, 5062, 55, 12620, 3536, 13686, 273, 5378, 4835, 1968, 273, 599, 23228, 1937, 273, 599, 5907, 273, ...
sock.write("%s %s %s\n" % (int(time.time()), win.active_server.tag, win.active.name))
sock.write("%s%s %s\n" % (int(time.time()), win.active_server.tag, win.active.name))
def timer(): win = irssi.active_win() if win.active and win.active_server: sock = open(statfile, "a") sock.write("%s %s %s\n" % (int(time.time()), win.active_server.tag, win.active.name)) sock.close() irssi.timeout_add(1000*60, timer)
8cd6f0cb81e4d2b5f99f83e4c2c31b85b536344e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11934/8cd6f0cb81e4d2b5f99f83e4c2c31b85b536344e/chanstat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5441, 13332, 5657, 273, 9482, 1049, 77, 18, 3535, 67, 8082, 1435, 309, 5657, 18, 3535, 471, 5657, 18, 3535, 67, 3567, 30, 7313, 273, 1696, 12, 5642, 768, 16, 315, 69, 7923, 7313, 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, 5441, 13332, 5657, 273, 9482, 1049, 77, 18, 3535, 67, 8082, 1435, 309, 5657, 18, 3535, 471, 5657, 18, 3535, 67, 3567, 30, 7313, 273, 1696, 12, 5642, 768, 16, 315, 69, 7923, 7313, 18, ...
if dtype.startswith('<') and dtype.endswith('>'):
if type(dtype) in [str,unicode] and dtype.startswith('<') and dtype.endswith('>'):
def _results2jsondict(self,results): bindings = results.getBindingNames() r_dict = {} r_dict['head'] = {'vars': bindings} r_dict['results'] = {'bindings':[]} for bindingSet in results: #self.log.debug(' BINDING SET %s'%str(bindingSet)) json_binding = {} for b in bindings: value = bindingSet.getValue(b) if type(value) i...
417866fba596bd20b3be0eaad5220fd47606239f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13812/417866fba596bd20b3be0eaad5220fd47606239f/sparqlsesame2apireader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4717, 22, 1977, 1576, 12, 2890, 16, 4717, 4672, 7394, 273, 1686, 18, 588, 5250, 1557, 1435, 436, 67, 1576, 273, 2618, 436, 67, 1576, 3292, 1978, 3546, 273, 13666, 4699, 4278, 7394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4717, 22, 1977, 1576, 12, 2890, 16, 4717, 4672, 7394, 273, 1686, 18, 588, 5250, 1557, 1435, 436, 67, 1576, 273, 2618, 436, 67, 1576, 3292, 1978, 3546, 273, 13666, 4699, 4278, 7394, ...
s = (_center(month_name[themonth] + ' ' + `theyear`,
s = ((month_name[themonth] + ' ' + `theyear`).center(
def month(theyear, themonth, w=0, l=0): """Return a month's calendar string (multi-line).""" w = max(2, w) l = max(1, l) s = (_center(month_name[themonth] + ' ' + `theyear`, 7 * (w + 1) - 1).rstrip() + '\n' * l + weekheader(w).rstrip() + '\n' * l) for aweek in monthcalendar(theyear, themonth): s = s + week(aweek, w).rs...
f5024853b80e29cb655731eeffba0ac48be6b5bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f5024853b80e29cb655731eeffba0ac48be6b5bb/calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3138, 12, 451, 402, 2091, 16, 2182, 2152, 16, 341, 33, 20, 16, 328, 33, 20, 4672, 3536, 990, 279, 3138, 1807, 5686, 533, 261, 7027, 17, 1369, 13, 12123, 341, 273, 943, 12, 22, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3138, 12, 451, 402, 2091, 16, 2182, 2152, 16, 341, 33, 20, 16, 328, 33, 20, 4672, 3536, 990, 279, 3138, 1807, 5686, 533, 261, 7027, 17, 1369, 13, 12123, 341, 273, 943, 12, 22, 16, ...
self.SetTitle("frame_2")
self.SetTitle("Ortho View") self.SetSize((480, 433))
def __set_properties(self): # begin wxGlade: orthoViewFrame.__set_properties self.SetTitle("frame_2") self.RWI.SetSize((-1, -1)) # end wxGlade
75d775c9e22f39c54ff64ed8ae22d4670fe36165 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/75d775c9e22f39c54ff64ed8ae22d4670fe36165/slice3dVWRFrames.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 67, 4738, 12, 2890, 4672, 468, 2376, 7075, 21308, 2486, 30, 16208, 83, 1767, 3219, 16186, 542, 67, 4738, 365, 18, 694, 4247, 2932, 1162, 451, 83, 4441, 7923, 365, 18, 694, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 67, 4738, 12, 2890, 4672, 468, 2376, 7075, 21308, 2486, 30, 16208, 83, 1767, 3219, 16186, 542, 67, 4738, 365, 18, 694, 4247, 2932, 1162, 451, 83, 4441, 7923, 365, 18, 694, 1...
self.Bind(stc.EVT_STC_DO_DROP, self.OnDoDrop) self.Bind(stc.EVT_STC_DRAG_OVER, self.OnDragOver) self.Bind(stc.EVT_STC_START_DRAG, self.OnStartDrag) self.Bind(stc.EVT_STC_MODIFIED, self.OnModified)
self.Bind(wx.stc.EVT_STC_DO_DROP, self.OnDoDrop) self.Bind(wx.stc.EVT_STC_DRAG_OVER, self.OnDragOver) self.Bind(wx.stc.EVT_STC_START_DRAG, self.OnStartDrag) self.Bind(wx.stc.EVT_STC_MODIFIED, self.OnModified)
def __init__(self, parent, refstc=None, copy=None): PeppyBaseSTC.__init__(self, parent, refstc=refstc, copy=copy)
23fa516b9f01b354a07ff082225e4c0b3b57b08d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/23fa516b9f01b354a07ff082225e4c0b3b57b08d/stcinterface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 1278, 334, 71, 33, 7036, 16, 1610, 33, 7036, 4672, 453, 881, 2074, 2171, 882, 39, 16186, 2738, 972, 12, 2890, 16, 982, 16, 1278, 334, 71, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 982, 16, 1278, 334, 71, 33, 7036, 16, 1610, 33, 7036, 4672, 453, 881, 2074, 2171, 882, 39, 16186, 2738, 972, 12, 2890, 16, 982, 16, 1278, 334, 71, 33, ...
req.add_header('Authorization', 'Basic %s' % auth)
req.add_header(self.header, 'Basic %s' % auth)
def retry_http_basic_auth(self, req, realm): if self.__current_realm is None: self.__current_realm = realm else: self.__current_realm = realm return None # XXX host isn't really the correct URI? host = req.get_host() user,pw = self.passwd.find_user_password(realm, host) if pw: raw = "%s:%s" % (user, pw) auth = base64.e...
c830d087127997925d660b4a2741fc35044208c6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c830d087127997925d660b4a2741fc35044208c6/urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3300, 67, 2505, 67, 13240, 67, 1944, 12, 2890, 16, 1111, 16, 11319, 4672, 309, 365, 16186, 2972, 67, 24056, 353, 599, 30, 365, 16186, 2972, 67, 24056, 273, 11319, 469, 30, 365, 16186, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3300, 67, 2505, 67, 13240, 67, 1944, 12, 2890, 16, 1111, 16, 11319, 4672, 309, 365, 16186, 2972, 67, 24056, 353, 599, 30, 365, 16186, 2972, 67, 24056, 273, 11319, 469, 30, 365, 16186, ...
if l_obj is not None:
if l_obj is not None and l_obj != 'NULL':
def GetLayer(self,iLayer=0): # If given a layer name, scan for it. if type(iLayer).__name__ == 'str': layer_count = self.GetLayerCount() for i in range(layer_count): if self.GetLayer(i).GetName() == iLayer: return self.GetLayer(i) return None l_obj = _gdal.OGR_DS_GetLayer( self._o, iLayer) if l_obj is not None: return...
3168cde22e4a9933a110dc046a57cda148cf2a16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10290/3168cde22e4a9933a110dc046a57cda148cf2a16/ogr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 4576, 12, 2890, 16, 77, 4576, 33, 20, 4672, 468, 971, 864, 279, 3018, 508, 16, 4135, 364, 518, 18, 309, 618, 12, 77, 4576, 2934, 972, 529, 972, 422, 296, 701, 4278, 3018, 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, 968, 4576, 12, 2890, 16, 77, 4576, 33, 20, 4672, 468, 971, 864, 279, 3018, 508, 16, 4135, 364, 518, 18, 309, 618, 12, 77, 4576, 2934, 972, 529, 972, 422, 296, 701, 4278, 3018, 67, ...
def __init__( self, getRPCClient = None ):
def __init__( self, getRPCClient = None ):
def __init__( self, getRPCClient = None ): self.getRPCClient = getRPCClient self.lastDataRetrievalTime = 0 self.sitesData = {}
8b93128e034ef05348fd34eb462c9c8f67173b1c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/8b93128e034ef05348fd34eb462c9c8f67173b1c/SiteMapClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 4170, 3513, 1227, 273, 599, 262, 30, 365, 18, 588, 8087, 1227, 273, 4170, 3513, 1227, 365, 18, 2722, 751, 27356, 950, 273, 374, 365, 18, 12180, 751, 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, 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, 365, 16, 4170, 3513, 1227, 273, 599, 262, 30, 365, 18, 588, 8087, 1227, 273, 4170, 3513, 1227, 365, 18, 2722, 751, 27356, 950, 273, 374, 365, 18, 12180, 751, 273, ...
ARG0 = self.graph.getargs()[0].concretetype
try: ARG0 = self.graph.getargs()[0].concretetype except IndexError: ARG0 = None
def render(self, ilasm): ilasm.begin_function('main', [('string[]', 'argv')], 'void', True, 'static')
132048bcee604a41a88a59768ad43fad5ed91f28 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/132048bcee604a41a88a59768ad43fad5ed91f28/runtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 277, 9521, 81, 4672, 277, 9521, 81, 18, 10086, 67, 915, 2668, 5254, 2187, 306, 2668, 1080, 8526, 2187, 296, 19485, 6134, 6487, 296, 6459, 2187, 1053, 16, 296, 3845, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1743, 12, 2890, 16, 277, 9521, 81, 4672, 277, 9521, 81, 18, 10086, 67, 915, 2668, 5254, 2187, 306, 2668, 1080, 8526, 2187, 296, 19485, 6134, 6487, 296, 6459, 2187, 1053, 16, 296, 3845, ...
data = fcntl.ioctl(s, 0x8B21, ifreq)[16:]
result = fcntl.ioctl(self.sock.fileno(), SIOCGIWRATE, data)[16:]
def GetCurrentBitrate(self, iwconfig=None): """ Get the current bitrate for the interface. """ if not self.iface: return "" data = (self.iface + '\0' * 32)[:32] s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) fmt = "ihbb" size = struct.calcsize(fmt) try: data = fcntl.ioctl(s, 0x8B21, ifreq)[16:]  # 0x8B21 is SIOCG...
1e65babbd91a128171b8b012ccfd017dab3b717f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12280/1e65babbd91a128171b8b012ccfd017dab3b717f/be-ioctl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 3935, 5775, 5141, 12, 2890, 16, 25522, 1425, 33, 7036, 4672, 3536, 968, 326, 783, 2831, 5141, 364, 326, 1560, 18, 3536, 309, 486, 365, 18, 31479, 30, 327, 1408, 501, 273, 261, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 3935, 5775, 5141, 12, 2890, 16, 25522, 1425, 33, 7036, 4672, 3536, 968, 326, 783, 2831, 5141, 364, 326, 1560, 18, 3536, 309, 486, 365, 18, 31479, 30, 327, 1408, 501, 273, 261, 289...
resolved = self.resolver.top(1)
resolved = content.resolved
def encode(self, node, content): """ Add (soap) encoding information @param node: The node to update. @type node: L{Element} @param content: The content for which proccessing has ended. @type content: L{Object} """ if content.type.any(): Typer.auto(node, content.value) return resolved = self.resolver.top(1) if resolved...
268a03f80e6f7419375b57cc3a660cd82a9f4084 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1242/268a03f80e6f7419375b57cc3a660cd82a9f4084/marshaller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 12, 2890, 16, 756, 16, 913, 4672, 3536, 1436, 261, 19215, 13, 2688, 1779, 632, 891, 756, 30, 1021, 756, 358, 1089, 18, 632, 723, 756, 30, 511, 95, 1046, 97, 632, 891, 913, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 12, 2890, 16, 756, 16, 913, 4672, 3536, 1436, 261, 19215, 13, 2688, 1779, 632, 891, 756, 30, 1021, 756, 358, 1089, 18, 632, 723, 756, 30, 511, 95, 1046, 97, 632, 891, 913, 30, ...
if self._columns[field]._type in ('many2many'): obj = self.pool.get(self._columns[field]._obj)
if fld_def._type in ('many2many'): obj = self.pool.get(fld_def._obj)
def default_get(self, cr, uid, fields, context=None): if not context: context={} value = {} # get the default values for the inherited fields for t in self._inherits.keys(): value.update(self.pool.get(t).default_get(cr, uid, fields, context))
5d6e36315df597bfeebe14302341e354951c9e20 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/5d6e36315df597bfeebe14302341e354951c9e20/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 1466, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 12938, 460, 273, 2618, 468, 336, 326, 805, 924, 364, 326, 12078, 1466, 364, 268...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 1466, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 12938, 460, 273, 2618, 468, 336, 326, 805, 924, 364, 326, 12078, 1466, 364, 268...
if on: if ' wikitail, kw['anchor'] = wikitail.split(' wikitail = wikiutil.url_unquote(wikitail) try: return self.pagelink(on, wikiutil.AbsPageName(self.request, self.page.page_name, wikitail), **kw) except: return self.pagelink(on, wikitail, **kw) else: return self.pagelink(0)
if ' wikitail, kw['anchor'] = wikitail.split(' wikitail = wikiutil.url_unquote(wikitail) try: pagename = wikiutil.AbsPageName(self.request, self.page.page_name, wikitail) except: pagename = wikitail return self.pagelink(on, pagename, **kw)
def interwikilink(self, on, interwiki='', pagename='', **kw): """ @keyword title: override using the interwiki wikiname as title """ wikitag, wikiurl, wikitail, wikitag_bad = wikiutil.resolve_wiki(self.request, '%s:"%s"' % (interwiki, pagename)) wikiurl = wikiutil.mapURL(self.request, wikiurl) if wikitag == 'Self': # f...
3437790783ab2743e0c109b360009af3219bce01 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/3437790783ab2743e0c109b360009af3219bce01/text_html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1554, 11999, 330, 754, 12, 2890, 16, 603, 16, 1554, 13044, 2218, 2187, 4262, 1069, 2218, 2187, 2826, 9987, 4672, 3536, 632, 11041, 2077, 30, 3849, 1450, 326, 1554, 13044, 341, 1766, 267, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1554, 11999, 330, 754, 12, 2890, 16, 603, 16, 1554, 13044, 2218, 2187, 4262, 1069, 2218, 2187, 2826, 9987, 4672, 3536, 632, 11041, 2077, 30, 3849, 1450, 326, 1554, 13044, 341, 1766, 267, ...
return (indent*' '+'<dt>'+children[0]+'</dt>\n'+ indent*' '+'<dd>\n'+''.join(children[1:])+ indent*' '+'</dd>\n') elif tree.tagName in ('epytext', 'section', 'tag', 'arg'):
return (indent*' '+children[0]+':\n'+ ''.join(children[1:])) elif tree.tagName in ('fieldlist', 'tag', 'arg', 'epytext', 'section', 'olist', 'ulist'):
def to_html(tree, indent=0, seclevel=0, **kwargs): """ Given the DOM tree for an epytext string (as returned by C{parse()}), return a string encoding it in HTML. This string does not include C{<HTML>} and C{</HTML>} tags. todo: doesn't honor ordered list bullets. """ if isinstance(tree, Text): return tree.toxml() if...
0cc72bd3422be83752480f57dbecac32d991815f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/0cc72bd3422be83752480f57dbecac32d991815f/epytext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 2620, 12, 3413, 16, 3504, 33, 20, 16, 1428, 2815, 33, 20, 16, 2826, 4333, 4672, 3536, 16803, 326, 4703, 2151, 364, 392, 425, 2074, 955, 533, 261, 345, 2106, 635, 385, 95, 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, 358, 67, 2620, 12, 3413, 16, 3504, 33, 20, 16, 1428, 2815, 33, 20, 16, 2826, 4333, 4672, 3536, 16803, 326, 4703, 2151, 364, 392, 425, 2074, 955, 533, 261, 345, 2106, 635, 385, 95, 26...
'\t': '\\t\t'
'\t': '\\t\t', '\\': '\\\\',
def replace(match): submap = { '\r\n': '\\r\\n\n', '\r': '\\r\n', '\n': '\\n\n', '\t': '\\t\t' } return submap[match.group()]
a16f4d3e04b30592a11e52465494b7460433fe40 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11388/a16f4d3e04b30592a11e52465494b7460433fe40/forms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 12, 1916, 4672, 720, 1458, 273, 288, 2337, 86, 64, 82, 4278, 3718, 86, 1695, 82, 64, 82, 2187, 2337, 86, 4278, 3718, 86, 64, 82, 2187, 2337, 82, 4278, 3718, 82, 64, 82, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 12, 1916, 4672, 720, 1458, 273, 288, 2337, 86, 64, 82, 4278, 3718, 86, 1695, 82, 64, 82, 2187, 2337, 86, 4278, 3718, 86, 64, 82, 2187, 2337, 82, 4278, 3718, 82, 64, 82, 2187, ...
c = self.tk.call(self._w, 'info', 'children', entry) return self.tk.splitlist(c)
c = self.tk.call(self._w, 'info', 'children', entry) return self.tk.splitlist(c)
def info_children(self, entry=None):
0049f0036898e656085d5c214ba07642a9c25a6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0049f0036898e656085d5c214ba07642a9c25a6e/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1123, 67, 5906, 12, 2890, 16, 1241, 33, 7036, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1123, 67, 5906, 12, 2890, 16, 1241, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if not sessionDict.hasKey('UserDir'):
if not sessionDict.has_key('UserDir'):
def doUserDirPost(sessionDict): #requestHandler.requestHandler.EndSession if not Configuration.userDir: return if not sessionDict.hasKey('UserDir'): return if not sessionDict['UserDir']: return Configuration.documentRoot = sessionDict['UserDirDocRoot'] Configuration.compileCacheRoot = sessionDict['UserDirCC'] del sess...
b7826d323e58d3db6619e8293129df067b0323c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5832/b7826d323e58d3db6619e8293129df067b0323c1/userdir.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 1299, 1621, 3349, 12, 3184, 5014, 4672, 468, 2293, 1503, 18, 2293, 1503, 18, 1638, 2157, 309, 486, 4659, 18, 1355, 1621, 30, 327, 309, 486, 1339, 5014, 18, 5332, 67, 856, 2668, 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, 1299, 1621, 3349, 12, 3184, 5014, 4672, 468, 2293, 1503, 18, 2293, 1503, 18, 1638, 2157, 309, 486, 4659, 18, 1355, 1621, 30, 327, 309, 486, 1339, 5014, 18, 5332, 67, 856, 2668, 12...
self.core_properties = None
def __init__(self): self.parts = {} self.base = '/' self.relationships = rels = Relationships(self, self) self[rels.name] = rels self.content_types = ContentTypes() self.content_types.add(ContentType.Default(rels.content_type, 'rels')) self.core_properties = None
7c6ba8e58e7d0fef024650b77e67a7a995988204 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/144/7c6ba8e58e7d0fef024650b77e67a7a995988204/basepack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 6019, 273, 2618, 365, 18, 1969, 273, 2023, 365, 18, 21632, 273, 19214, 273, 15463, 87, 12, 2890, 16, 365, 13, 365, 63, 2878, 87, 18, 529, 65...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 6019, 273, 2618, 365, 18, 1969, 273, 2023, 365, 18, 21632, 273, 19214, 273, 15463, 87, 12, 2890, 16, 365, 13, 365, 63, 2878, 87, 18, 529, 65...
def int_eq( scope, obj, arg ): if not arg.inherits( IntObject ): raise RuntimeError, "Cannot compare int to non-int." return make_int( 1 if obj.data==arg.data else 0 )
def int_eq( scope, obj, arg ): if not arg.inherits( IntObject ): raise RuntimeError, "Cannot compare int to non-int." return make_int( 1 if obj.data==arg.data else 0 )
c3eb52f34e4ae8a3d76b6dff2c5623c696aa6160 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10358/c3eb52f34e4ae8a3d76b6dff2c5623c696aa6160/yalie.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 509, 67, 11253, 12, 2146, 16, 1081, 16, 1501, 262, 30, 309, 486, 1501, 18, 267, 20038, 12, 3094, 921, 262, 30, 1002, 7265, 16, 315, 4515, 3400, 509, 358, 1661, 17, 474, 1199, 327, 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, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 509, 67, 11253, 12, 2146, 16, 1081, 16, 1501, 262, 30, 309, 486, 1501, 18, 267, 20038, 12, 3094, 921, 262, 30, 1002, 7265, 16, 315, 4515, 3400, 509, 358, 1661, 17, 474, 1199, 327, 12...
self.run_cmd_output_gui(gui, " chmod -R -w '%s'" % new_backup)
self.run_cmd_output_gui(gui, "chmod -w '%s'" % new_backup)
def backup(self, gui=True): if gui: backup_button = self.xml.get_widget('backup_button')
519f8cf570c88a471cc7aba19cf59d61395268cb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/317/519f8cf570c88a471cc7aba19cf59d61395268cb/flyback.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5114, 12, 2890, 16, 13238, 33, 5510, 4672, 309, 13238, 30, 5114, 67, 5391, 273, 365, 18, 2902, 18, 588, 67, 6587, 2668, 9572, 67, 5391, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5114, 12, 2890, 16, 13238, 33, 5510, 4672, 309, 13238, 30, 5114, 67, 5391, 273, 365, 18, 2902, 18, 588, 67, 6587, 2668, 9572, 67, 5391, 6134, 2, -100, -100, -100, -100, -100, -100, -10...
colorblue(prvpkg)
if prvpkg not in blues and prvpkg not in reds: blues[prvpkg] = True bluequeue.append(prvpkg)
def colorblue(bpkg): if bpkg not in blues and bpkg not in reds: blues[bpkg] = True bluequeue.append(bpkg)
ce45331e5fdae6bbaa196869d410c2b0eb36cfdc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/ce45331e5fdae6bbaa196869d410c2b0eb36cfdc/transaction.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2036, 14081, 12, 70, 10657, 4672, 309, 324, 10657, 486, 316, 2811, 3610, 471, 324, 10657, 486, 316, 1755, 87, 30, 2811, 3610, 63, 70, 10657, 65, 273, 1053, 8024, 4000, 18, 6923, 12, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2036, 14081, 12, 70, 10657, 4672, 309, 324, 10657, 486, 316, 2811, 3610, 471, 324, 10657, 486, 316, 1755, 87, 30, 2811, 3610, 63, 70, 10657, 65, 273, 1053, 8024, 4000, 18, 6923, 12, 70...
pathname3 = os.path.join(dir, __random_string(i + 1))
pathname3 = os.path.join(head, __random_string(i + 1))
def wipe_name(pathname1): """Wipe the original filename and return the new pathname""" (dir, file) = os.path.split(pathname1) # reference http://en.wikipedia.org/wiki/Comparison_of_file_systems#Limits maxlen = 226 # first, rename to a long name i = 0 while True: try: pathname2 = os.path.join(dir, __random_string(maxlen...
c5173833808990c4dc6a44eb9af5414b6cab3930 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7853/c5173833808990c4dc6a44eb9af5414b6cab3930/FileUtilities.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 3151, 67, 529, 12, 28336, 21, 4672, 3536, 59, 3151, 326, 2282, 1544, 471, 327, 326, 394, 9806, 8395, 261, 1214, 16, 585, 13, 273, 1140, 18, 803, 18, 4939, 12, 28336, 21, 13, 468...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 3151, 67, 529, 12, 28336, 21, 4672, 3536, 59, 3151, 326, 2282, 1544, 471, 327, 326, 394, 9806, 8395, 261, 1214, 16, 585, 13, 273, 1140, 18, 803, 18, 4939, 12, 28336, 21, 13, 468...
WordMorphism: a->ab, b->b WordMorphism: a->ba, b->a WordMorphism: a->ba, b->b
Iterator over all morphisms including erasing morphisms:: sage: W = Words('ab') sage: it = W.iter_morphisms(min_length=0) sage: for _ in range(7): print it.next() WordMorphism: a->, b-> WordMorphism: a->a, b-> WordMorphism: a->b, b-> WordMorphism: a->, b->a WordMorphism: a->, b->b WordMorphism: a->aa, b-> WordMorphis...
def iter_morphisms(self, l=None, codomain=None): r""" Returns an iterator over all non erasing morphisms or over all morphisms `\varphi` such that `|\varphi| = l` when ``l`` is given.
926107c9463c4f3102576118d78f30532571b867 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/926107c9463c4f3102576118d78f30532571b867/words.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 67, 81, 7657, 23749, 12, 2890, 16, 328, 33, 7036, 16, 11012, 1530, 33, 7036, 4672, 436, 8395, 2860, 392, 2775, 1879, 777, 1661, 6445, 11730, 14354, 23749, 578, 1879, 777, 14354, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 67, 81, 7657, 23749, 12, 2890, 16, 328, 33, 7036, 16, 11012, 1530, 33, 7036, 4672, 436, 8395, 2860, 392, 2775, 1879, 777, 1661, 6445, 11730, 14354, 23749, 578, 1879, 777, 14354, 23...
- ``f`` - a symbolic expression or function of two variables. - ``urange`` - a 3-tuple (u, u_min, u_max), the domain of the azimuth variable. - ``vrange`` - a 3-tuple (v, v_min, v_max), the domain of the elevation (z) variable.
- ``f`` - a symbolic expression or function of two variables, representing the radius from the `z`-axis. - ``urange`` - a 3-tuple (u, u_min, u_max), the domain of the azimuth variable. - ``vrange`` - a 3-tuple (v, v_min, v_max), the domain of the elevation (`z`) variable.
def cylindrical_plot3d(f, urange, vrange, **kwds): """ Takes a function and plots it in cylindrical coordinates in the domain specified by urange and vrange. This command is equivalent to:: sage: var('r,u,v') sage: T = (r*cos(u), r*sin(u), v, r) sage: plot3d(f, urange, vrange, transformation=T) INPUT: - ``f`` - a sy...
ae9bf5e0d28a56cbf9d189e5545c9a8340d806de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/ae9bf5e0d28a56cbf9d189e5545c9a8340d806de/plot3d.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27331, 728, 1512, 287, 67, 4032, 23, 72, 12, 74, 16, 8896, 726, 16, 331, 3676, 16, 2826, 25577, 4672, 3536, 23004, 279, 445, 471, 17931, 518, 316, 27331, 728, 1512, 287, 5513, 316, 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, 27331, 728, 1512, 287, 67, 4032, 23, 72, 12, 74, 16, 8896, 726, 16, 331, 3676, 16, 2826, 25577, 4672, 3536, 23004, 279, 445, 471, 17931, 518, 316, 27331, 728, 1512, 287, 5513, 316, 326...
author = sanitize_file_name(authors.split(',')[0][:self.PATH_LIMIT]).decode(filesystem_encoding) title = sanitize_file_name(self.title(id, index_is_id=True)[:self.PATH_LIMIT]).decode(filesystem_encoding)
author = sanitize_file_name(authors.split(',')[0][:self.PATH_LIMIT]).decode(filesystem_encoding, 'replace') title = sanitize_file_name(self.title(id, index_is_id=True)[:self.PATH_LIMIT]).decode(filesystem_encoding, 'replace')
def construct_file_name(self, id): ''' Construct the file name for this book based on its metadata. ''' authors = self.authors(id, index_is_id=True) if not authors: authors = _('Unknown') author = sanitize_file_name(authors.split(',')[0][:self.PATH_LIMIT]).decode(filesystem_encoding) title = sanitize_file_name(self.ti...
fbba5f5db479d23cbeb9bbe8c4cbebb090c97e0e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/fbba5f5db479d23cbeb9bbe8c4cbebb090c97e0e/database2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4872, 67, 768, 67, 529, 12, 2890, 16, 612, 4672, 9163, 14291, 326, 585, 508, 364, 333, 6978, 2511, 603, 2097, 1982, 18, 9163, 14494, 273, 365, 18, 19368, 12, 350, 16, 770, 67, 291, 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, 4872, 67, 768, 67, 529, 12, 2890, 16, 612, 4672, 9163, 14291, 326, 585, 508, 364, 333, 6978, 2511, 603, 2097, 1982, 18, 9163, 14494, 273, 365, 18, 19368, 12, 350, 16, 770, 67, 291, 6...
Outliers handling will change in version 1.2.
Outliers handling will change in version 1.2.
def histogram(a, bins=10, range=None, normed=False, weights=None, new=False): """Compute the histogram from a set of data. Parameters ---------- a : array The data to histogram. bins : int or sequence If an int, then the number of equal-width bins in the given range. If new=True, bins can also be the bin edges, allo...
46768e679bbb8f2beabdafff51696d76e7caa920 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/46768e679bbb8f2beabdafff51696d76e7caa920/function_base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8892, 12, 69, 16, 8963, 33, 2163, 16, 1048, 33, 7036, 16, 4651, 329, 33, 8381, 16, 5376, 33, 7036, 16, 394, 33, 8381, 4672, 3536, 7018, 326, 8892, 628, 279, 444, 434, 501, 18, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8892, 12, 69, 16, 8963, 33, 2163, 16, 1048, 33, 7036, 16, 4651, 329, 33, 8381, 16, 5376, 33, 7036, 16, 394, 33, 8381, 4672, 3536, 7018, 326, 8892, 628, 279, 444, 434, 501, 18, 225, ...
raise KeyError, "no worksheet with id %s"%id
return self.__worksheets[0]
def get_worksheet_with_id(self, id): for W in self.__worksheets.itervalues(): if W.id() == id: return W raise KeyError, "no worksheet with id %s"%id
ff37d9349bb8ef74695e0196c133389513e44dd0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/ff37d9349bb8ef74695e0196c133389513e44dd0/notebook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1252, 8118, 67, 1918, 67, 350, 12, 2890, 16, 612, 4672, 364, 678, 316, 365, 16186, 18597, 10245, 18, 2165, 2372, 13332, 309, 678, 18, 350, 1435, 422, 612, 30, 327, 678, 1002, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1252, 8118, 67, 1918, 67, 350, 12, 2890, 16, 612, 4672, 364, 678, 316, 365, 16186, 18597, 10245, 18, 2165, 2372, 13332, 309, 678, 18, 350, 1435, 422, 612, 30, 327, 678, 1002, ...
print >> sys.stderr, '\n\n\n' return 0
print >> sys.stderr raise RuntimeError, 'An error occured in AS_appdata.'
def _getAppData(self): if self._realAppData is None: # initialise AppData the first time it's actually needed try: self._realAppData = AppData(self._Application, self._path, self._pid, self._url, self._terms) except Exception, e: import sys, traceback print >> sys.stderr, '(A problem occured in AS_appdata; see first tr...
a5ccf51844814277bb32be555d595a5db88f17d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10961/a5ccf51844814277bb32be555d595a5db88f17d3/reference.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 3371, 751, 12, 2890, 4672, 309, 365, 6315, 7688, 3371, 751, 353, 599, 30, 468, 21301, 4677, 751, 326, 1122, 813, 518, 1807, 6013, 3577, 775, 30, 365, 6315, 7688, 3371, 751, 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, 389, 588, 3371, 751, 12, 2890, 4672, 309, 365, 6315, 7688, 3371, 751, 353, 599, 30, 468, 21301, 4677, 751, 326, 1122, 813, 518, 1807, 6013, 3577, 775, 30, 365, 6315, 7688, 3371, 751, 2...
return http.Response(stream=template('login.html', **template_dict))
return HTMLResponse(stream=template('login.html', **template_dict))
def render(self, ctx): template_dict = {'accounts': notebook.get_accounts(), 'default_user': notebook.default_user(), 'recovery': notebook.conf()['email']} return http.Response(stream=template('login.html', **template_dict))
39855fabbbbe971c1c1d64566b1625e9c1c6d482 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/39855fabbbbe971c1c1d64566b1625e9c1c6d482/twist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 4672, 1542, 67, 1576, 273, 13666, 13739, 4278, 14718, 18, 588, 67, 13739, 9334, 296, 1886, 67, 1355, 4278, 14718, 18, 1886, 67, 1355, 9334, 296, 23963, 4278, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 16, 1103, 4672, 1542, 67, 1576, 273, 13666, 13739, 4278, 14718, 18, 588, 67, 13739, 9334, 296, 1886, 67, 1355, 4278, 14718, 18, 1886, 67, 1355, 9334, 296, 23963, 4278, 14...
s.tk.call( s.plf._w, CMD, 'plaxes', x0, y0, xopt, xtick, nxsub, yopt, ytick, nysub )
s.cmd( 'plaxes', x0, y0, xopt, xtick, nxsub, yopt, ytick, nysub )
def plaxes( s, x0, y0, xopt, xtick, nxsub, yopt, ytick, nysub ):
5e1e7ef2c61ed08af7184e16b0bac6bebfbe213e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2933/5e1e7ef2c61ed08af7184e16b0bac6bebfbe213e/Plframe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 886, 10855, 12, 272, 16, 619, 20, 16, 677, 20, 16, 619, 3838, 16, 619, 6470, 16, 9264, 1717, 16, 677, 3838, 16, 677, 6470, 16, 15308, 1717, 262, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 886, 10855, 12, 272, 16, 619, 20, 16, 677, 20, 16, 619, 3838, 16, 619, 6470, 16, 9264, 1717, 16, 677, 3838, 16, 677, 6470, 16, 15308, 1717, 262, 30, 2, -100, -100, -100, -100, -100, ...
"""Return a TriSurface with all the elements where t>0.
"""Return a Mesh with all the elements where t>0.
def clip(self,t): """Return a TriSurface with all the elements where t>0.
1535ec04433cfb4131e357412c0648be4a5d903a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2499/1535ec04433cfb4131e357412c0648be4a5d903a/mesh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6807, 12, 2890, 16, 88, 4672, 3536, 990, 279, 10000, 11508, 598, 777, 326, 2186, 1625, 268, 34, 20, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6807, 12, 2890, 16, 88, 4672, 3536, 990, 279, 10000, 11508, 598, 777, 326, 2186, 1625, 268, 34, 20, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
hasContentChanged=self.hasContentChangedSinceLastSelection
hasContentChanged=getattr(self,'hasContentChangedSinceLastSelection',False)
def detectPossibleSelectionChange(self): """Detects if the selection has been changed, and if so it speaks the change. """ try: newInfo=self.makeTextInfo(textInfos.POSITION_SELECTION) except: # Just leave the old selection, which is usually better than nothing. return oldInfo=getattr(self,'_lastSelectionPos',None) self...
5b51b76b3dce5e69a159d111bc5acbbbba4b9db9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9340/5b51b76b3dce5e69a159d111bc5acbbbba4b9db9/editableText.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 13576, 6233, 3043, 12, 2890, 4672, 3536, 12081, 87, 309, 326, 4421, 711, 2118, 3550, 16, 471, 309, 1427, 518, 272, 22736, 326, 2549, 18, 3536, 775, 30, 394, 966, 33, 2890, 18, 65...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 13576, 6233, 3043, 12, 2890, 4672, 3536, 12081, 87, 309, 326, 4421, 711, 2118, 3550, 16, 471, 309, 1427, 518, 272, 22736, 326, 2549, 18, 3536, 775, 30, 394, 966, 33, 2890, 18, 65...
if ComplexNode.offsets(self) == 0:
if self.stride() == 0:
def offsets(self): if ComplexNode.offsets(self) == 0: return 0 else: return None
67c89cc6416f403aea70f83efafb2d60b0a315ca /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2040/67c89cc6416f403aea70f83efafb2d60b0a315ca/esotope-bfc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8738, 12, 2890, 4672, 309, 365, 18, 27937, 1435, 422, 374, 30, 327, 374, 469, 30, 327, 599, 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, 8738, 12, 2890, 4672, 309, 365, 18, 27937, 1435, 422, 374, 30, 327, 374, 469, 30, 327, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if height >= 0 or height == None:
if height is None or height >= 0:
def setup(**geometry): """ Sets the size and position of the main window. Keywords are width, height, startx and starty: width: either a size in pixels or a fraction of the screen. Default is 50% of screen. height: either the height in pixels or a fraction of the screen. Default is 75% of screen. Setting either widt...
101cf8d5daee46f2e1fdfb1a88259b5b19c684b6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/101cf8d5daee46f2e1fdfb1a88259b5b19c684b6/turtle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 636, 14330, 4672, 3536, 11511, 326, 963, 471, 1754, 434, 326, 2774, 2742, 18, 225, 1929, 3753, 854, 1835, 16, 2072, 16, 787, 92, 471, 787, 93, 30, 225, 1835, 30, 3344, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 636, 14330, 4672, 3536, 11511, 326, 963, 471, 1754, 434, 326, 2774, 2742, 18, 225, 1929, 3753, 854, 1835, 16, 2072, 16, 787, 92, 471, 787, 93, 30, 225, 1835, 30, 3344, 279, ...
self.failIf( skins_tool._setup_called )
self.failIf( site._skin_setup_called )
def test_parseXML_empty( self ):
602f054babd4fcf667987bd5ada457ed274c4361 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/602f054babd4fcf667987bd5ada457ed274c4361/test_skins.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2670, 4201, 67, 5531, 12, 365, 262, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2670, 4201, 67, 5531, 12, 365, 262, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
idnew = obj.create(cursor, user, act[1])
idnew = obj.create(cursor, user, act[1], context=context)
def set(self, cursor, obj, obj_id, name, values, user=None, context=None): if not values: return obj = obj.pool.get(self._obj) for act in values: if act[0] == 'create': idnew = obj.create(cursor, user, act[1]) cursor.execute('INSERT INTO "' + self._rel + '" ' \ '(' + self._id1 + ', ' + self._id2 + ') ' \ 'VALUES (%s, %...
81af21c376c365877e171169bbbf0be717301874 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/81af21c376c365877e171169bbbf0be717301874/fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 3347, 16, 1081, 16, 1081, 67, 350, 16, 508, 16, 924, 16, 729, 33, 7036, 16, 819, 33, 7036, 4672, 309, 486, 924, 30, 327, 1081, 273, 1081, 18, 6011, 18, 588, 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, 444, 12, 2890, 16, 3347, 16, 1081, 16, 1081, 67, 350, 16, 508, 16, 924, 16, 729, 33, 7036, 16, 819, 33, 7036, 4672, 309, 486, 924, 30, 327, 1081, 273, 1081, 18, 6011, 18, 588, 12, ...
install_paver=True, more_text=""):
install_paver=True, more_text="", dest_dir='.', no_site_packages=False, unzip_setuptools=False):
def _create_bootstrap(script_name, packages_to_install, paver_command_line, install_paver=True, more_text=""): if install_paver: paver_install = (_easy_install_template % ('bin_dir', 'paver==%s' % setup_meta['version'])) else: paver_install = "" extra_text = """def adjust_options(options, args):
0419bba2ae3446c2ad992fcbd42de644991c5daa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14074/0419bba2ae3446c2ad992fcbd42de644991c5daa/virtual.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 12722, 12, 4263, 67, 529, 16, 5907, 67, 869, 67, 5425, 16, 6790, 502, 67, 3076, 67, 1369, 16, 3799, 67, 8774, 502, 33, 5510, 16, 1898, 67, 955, 1546, 3113, 1570, 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, 2640, 67, 12722, 12, 4263, 67, 529, 16, 5907, 67, 869, 67, 5425, 16, 6790, 502, 67, 3076, 67, 1369, 16, 3799, 67, 8774, 502, 33, 5510, 16, 1898, 67, 955, 1546, 3113, 1570, 67, ...
self.hidden = hidden
self.hidden = hidden
def __init__(self, author=None, category=None, content=None, atom_id=None, link=None, published=None, title=None, updated=None, color=None, access_level=None, hidden=None, timezone=None, selected=None, where=None, extension_elements=None, extension_attributes=None, text=None): gdata.GDataEntry.__init__(self, author=aut...
b441c0ccc7da55ff31f704dc6779ec676da299f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10620/b441c0ccc7da55ff31f704dc6779ec676da299f1/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2869, 33, 7036, 16, 3150, 33, 7036, 16, 913, 33, 7036, 16, 3179, 67, 350, 33, 7036, 16, 1692, 33, 7036, 16, 9487, 33, 7036, 16, 2077, 33, 7036, 16, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2869, 33, 7036, 16, 3150, 33, 7036, 16, 913, 33, 7036, 16, 3179, 67, 350, 33, 7036, 16, 1692, 33, 7036, 16, 9487, 33, 7036, 16, 2077, 33, 7036, 16, 3...
def __init__(self, usernameSlot, passwordSlot, authFile, loginPage): SessionAuthBase.__init__(self, usernameSlot, passwordSlot)
def __init__(self, usernameSlot, authFile, loginPage): SessionAuthBase.__init__(self, usernameSlot)
def __init__(self, usernameSlot, passwordSlot, authFile, loginPage): SessionAuthBase.__init__(self, usernameSlot, passwordSlot) AuthFileBase.__init__(self, authFile) RespAuthBase.__init__(self, loginPage)
2c4e82456bf6c6a150058970527532ee8643eaef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5832/2c4e82456bf6c6a150058970527532ee8643eaef/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2718, 8764, 16, 1357, 812, 16, 3925, 1964, 4672, 3877, 1730, 2171, 16186, 2738, 972, 12, 2890, 16, 2718, 8764, 13, 3123, 812, 2171, 16186, 2738, 972, 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, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2718, 8764, 16, 1357, 812, 16, 3925, 1964, 4672, 3877, 1730, 2171, 16186, 2738, 972, 12, 2890, 16, 2718, 8764, 13, 3123, 812, 2171, 16186, 2738, 972, 12, ...
def cleanup_version(version): """Check if the version looks like a development version.""" for w in WRONG_IN_VERSION: if version.find(w) != -1: logger.debug("Version indicates development: %s.", version) version = version[:version.find(w)].strip() logger.debug("Removing debug indicators: %r", version) return version
def fix_rst_heading(heading, below): """If the 'below' line looks like a reST line, give it the correct length. This allows for different characters being used as header lines. """ if len(below) == 0: return below first = below[0] if first not in '-=`~': return below below = first * len(heading) return below
abd9a8e8778b52b5cb76d524da0d1b1670596016 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12067/abd9a8e8778b52b5cb76d524da0d1b1670596016/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 67, 16114, 67, 19948, 12, 19948, 16, 5712, 4672, 3536, 2047, 326, 296, 27916, 11, 980, 10192, 3007, 279, 283, 882, 980, 16, 8492, 518, 326, 3434, 769, 18, 225, 1220, 5360, 364, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 67, 16114, 67, 19948, 12, 19948, 16, 5712, 4672, 3536, 2047, 326, 296, 27916, 11, 980, 10192, 3007, 279, 283, 882, 980, 16, 8492, 518, 326, 3434, 769, 18, 225, 1220, 5360, 364, 3...
except Exception, e: print "Exception calling SWSE:", str(e)
except Exception: print "Exception calling SWSE"
def query(self, query): """ SWSE Query @param query: sparql query @return: results """
ddcc5aecef3f0a57f013e8b862c2823d7d77b501 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5712/ddcc5aecef3f0a57f013e8b862c2823d7d77b501/swse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 12, 2890, 16, 843, 4672, 3536, 16392, 1090, 2770, 225, 632, 891, 843, 30, 272, 25366, 843, 632, 2463, 30, 1686, 3536, 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, 843, 12, 2890, 16, 843, 4672, 3536, 16392, 1090, 2770, 225, 632, 891, 843, 30, 272, 25366, 843, 632, 2463, 30, 1686, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
invalid option value: (option: "align"; value: u'top')
invalid option value: (option: "align"; value: 'top')
def suite(): s = DocutilsTestSupport.ParserTestSuite() s.generateTests(totest) return s
3c184ef514957a306a7d7eba405b38503738c4fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/3c184ef514957a306a7d7eba405b38503738c4fa/test_figures.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11371, 13332, 272, 273, 3521, 5471, 4709, 6289, 18, 2678, 4709, 13587, 1435, 272, 18, 7163, 14650, 12, 3307, 395, 13, 327, 272, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 11371, 13332, 272, 273, 3521, 5471, 4709, 6289, 18, 2678, 4709, 13587, 1435, 272, 18, 7163, 14650, 12, 3307, 395, 13, 327, 272, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
return self._numObs
if self._numObs == None: return 1 else: return self._numObs
def numObs(self): '''Return the number of obervations (same for each variable).''' return self._numObs
0c4594eaf3644dd309cb4bb3993709ce81639fc5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2720/0c4594eaf3644dd309cb4bb3993709ce81639fc5/storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 818, 27637, 12, 2890, 4672, 9163, 990, 326, 1300, 434, 320, 744, 16882, 261, 14307, 364, 1517, 2190, 14851, 6309, 309, 365, 6315, 2107, 27637, 422, 599, 30, 327, 404, 469, 30, 327, 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, 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, 818, 27637, 12, 2890, 4672, 9163, 990, 326, 1300, 434, 320, 744, 16882, 261, 14307, 364, 1517, 2190, 14851, 6309, 309, 365, 6315, 2107, 27637, 422, 599, 30, 327, 404, 469, 30, 327, 365, ...
lines.append([]) lines_size.append(0)
lines.append( [] ) lines_size.append( 0 )
def drawstringframedsoft(self, string, x, y, width, height, fgcolor=None, bgcolor=None, font=None, ptsize=0, align_h='left', align_v='top', layer=None, ellipses='...'):
f9be34fe6bf36d18d76b59cccedd089b5c4584eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/f9be34fe6bf36d18d76b59cccedd089b5c4584eb/osd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 1080, 74, 1940, 329, 9269, 12, 2890, 16, 533, 16, 619, 16, 677, 16, 1835, 16, 2072, 16, 10186, 3266, 33, 7036, 16, 31509, 33, 7036, 16, 3512, 33, 7036, 16, 5818, 1467, 33, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 1080, 74, 1940, 329, 9269, 12, 2890, 16, 533, 16, 619, 16, 677, 16, 1835, 16, 2072, 16, 10186, 3266, 33, 7036, 16, 31509, 33, 7036, 16, 3512, 33, 7036, 16, 5818, 1467, 33, 20, ...
self.dial += "/{$ARG1}"
self.dial += "/${ARG1}"
def createAsteriskConfig(self): needModule("res_crypto") needModule("chan_sip")
cdc0cd8b97e3a5db9d07c5dc609ba080cdd32f3c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2627/cdc0cd8b97e3a5db9d07c5dc609ba080cdd32f3c/cfg_trunk_sip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 37, 8190, 10175, 809, 12, 2890, 4672, 1608, 3120, 2932, 455, 67, 18489, 7923, 1608, 3120, 2932, 7472, 67, 28477, 7923, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 37, 8190, 10175, 809, 12, 2890, 4672, 1608, 3120, 2932, 455, 67, 18489, 7923, 1608, 3120, 2932, 7472, 67, 28477, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
'name': fields.char('Auction date', size=64, required=True),
'name': fields.char('Auction Name', size=64, required=True),
def name_get(self, cr, uid, ids, context={}): if not len(ids): return [] reads = self.read(cr, uid, ids, ['name', 'auction1'], context) name = [(r['id'],'['+r['auction1']+'] '+ r['name']) for r in reads] return name
fa8a34a438eef052b9d349a3e7116306598e0163 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/fa8a34a438eef052b9d349a3e7116306598e0163/auction.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 309, 486, 562, 12, 2232, 4672, 327, 5378, 6838, 273, 365, 18, 896, 12, 3353, 16, 4555, 16, 3258, 16, 10228...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 309, 486, 562, 12, 2232, 4672, 327, 5378, 6838, 273, 365, 18, 896, 12, 3353, 16, 4555, 16, 3258, 16, 10228...
""" Allows dictionary-style access to an HDF5 object's attributes.
""" Allows dictionary-style access to an HDF5 object's attributes.
def __repr__(self): if not self: return "<Closed HDF5 dataset>" namestr = '"%s"' % _extras.basename(self.name) if self.name is not None else "(anonymous)" return '<HDF5 dataset %s: shape %s, type "%s">' % \ (namestr, self.shape, self.dtype.str)
dc5aa8abe322bbb898f373e27c214f89038c1138 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10380/dc5aa8abe322bbb898f373e27c214f89038c1138/highlevel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 309, 486, 365, 30, 327, 3532, 7395, 21673, 25, 3709, 2984, 1257, 313, 273, 22563, 87, 5187, 738, 389, 23687, 18, 13909, 12, 2890, 18, 529, 13, 309, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 309, 486, 365, 30, 327, 3532, 7395, 21673, 25, 3709, 2984, 1257, 313, 273, 22563, 87, 5187, 738, 389, 23687, 18, 13909, 12, 2890, 18, 529, 13, 309, 36...
SsynthLabelString = 'Ssynth: %+.3f' % self.dicts[self.stPt]['Sres']
SsynthLabelString = 'Ssynth: %+.3fs' % self.dicts[self.stPt]['Sres']
def drawSsynthLabel(self): if not self.dicts[self.stPt].has_key('Ssynth'): return SsynthLabelString = 'Ssynth: %+.3f' % self.dicts[self.stPt]['Sres'] self.SsynthLabel = self.axs[0].text(self.dicts[self.stPt]['Ssynth'], 1 - 0.08 * len(self.axs), '\n ' + SsynthLabelString, transform = self.trans[0], color=self.dictPhase...
e3cbfd70f9175004acca4efdf96cb210893ee944 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/e3cbfd70f9175004acca4efdf96cb210893ee944/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 55, 11982, 451, 2224, 12, 2890, 4672, 309, 486, 365, 18, 16287, 63, 2890, 18, 334, 16484, 8009, 5332, 67, 856, 2668, 55, 11982, 451, 11, 4672, 327, 348, 11982, 451, 2224, 780, 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, 3724, 55, 11982, 451, 2224, 12, 2890, 4672, 309, 486, 365, 18, 16287, 63, 2890, 18, 334, 16484, 8009, 5332, 67, 856, 2668, 55, 11982, 451, 11, 4672, 327, 348, 11982, 451, 2224, 780, 27...
result = self.settings.collapse_preview and self.preview and \ not self.columns[-1].has_preview() and self.stretch_ratios if result: return True if self.columns[-1].target: target = self.columns[-1].target
if not self.settings.collapse_preview or not self.preview \ or not self.stretch_ratios: return False result = not self.columns[-1].has_preview() target = self.columns[-1].target if not result and target and target.is_file:
def _collapse(self): # Should the last column be cut off? (Because there is no preview) result = self.settings.collapse_preview and self.preview and \ not self.columns[-1].has_preview() and self.stretch_ratios if result: return True if self.columns[-1].target: target = self.columns[-1].target try: result = not self.fm....
2bcb509a0834828829b8ca01d5679ee22c416267 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5729/2bcb509a0834828829b8ca01d5679ee22c416267/browserview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 21405, 12, 2890, 4672, 468, 9363, 326, 1142, 1057, 506, 6391, 3397, 35, 261, 38, 11884, 1915, 353, 1158, 10143, 13, 309, 486, 365, 18, 4272, 18, 21405, 67, 12102, 578, 486, 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, 389, 21405, 12, 2890, 4672, 468, 9363, 326, 1142, 1057, 506, 6391, 3397, 35, 261, 38, 11884, 1915, 353, 1158, 10143, 13, 309, 486, 365, 18, 4272, 18, 21405, 67, 12102, 578, 486, 365, 1...
class refdoc_translator(html4_frames.frame_pages_translator): tocframe_width = 25 def __init__(self, document, index_page, page_files_dir, extension): self.docframe += ' refmanual' self.__super = html4_frames.frame_pages_translator self.__super.__init__(self, document, index_page, page_files_dir, extension) self.pa...
def __init__(self): self.__super = html4_frames.Writer self.__super.__init__(self) self.translator = refdoc_translator
e1c57fa7774a52c78466fbbff89561da8da99e85 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9982/e1c57fa7774a52c78466fbbff89561da8da99e85/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 16186, 9565, 273, 1729, 24, 67, 10278, 18, 2289, 365, 16186, 9565, 16186, 2738, 972, 12, 2890, 13, 365, 18, 17879, 273, 1278, 2434, 67, 17879, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 16186, 9565, 273, 1729, 24, 67, 10278, 18, 2289, 365, 16186, 9565, 16186, 2738, 972, 12, 2890, 13, 365, 18, 17879, 273, 1278, 2434, 67, 17879, 2, ...
raise ValueError('expected 1 starting point, got %i' * len(x0))
raise ValueError('expected 1 starting point, got %i' % len(x0))
def __init__(self, f, x0, **kwargs): if not len(x0) == 1: raise ValueError('expected 1 starting point, got %i' * len(x0)) self.x0 = x0[0] self.f = f if not 'df' in kwargs: def df(x): return diff(f, x) else: df = kwargs['df'] self.df = df def phi(x): return x - f(x) / df(x) self.phi = phi self.verbose = kwargs['verbose'...
238e7967fe6ad8de6958ff89eafb2d0c50d3f344 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11851/238e7967fe6ad8de6958ff89eafb2d0c50d3f344/optimization.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 284, 16, 619, 20, 16, 2826, 4333, 4672, 309, 486, 562, 12, 92, 20, 13, 422, 404, 30, 1002, 2068, 2668, 3825, 404, 5023, 1634, 16, 2363, 738, 77, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 284, 16, 619, 20, 16, 2826, 4333, 4672, 309, 486, 562, 12, 92, 20, 13, 422, 404, 30, 1002, 2068, 2668, 3825, 404, 5023, 1634, 16, 2363, 738, 77, 11, ...
if not attrs.has_key('align'):
if not attrs.has_key('align') and \ not (attrs.has_key('style') and 'text-align' in attrs['style'].lower()):
def _table_repl(self, word): """Handle table cell separator.""" if self.in_table: result = [] # check for attributes attrs, attrerr = self._getTableAttrs(word)
3e2c42a3b6124fa8847c5dd71359b039037f81c6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/3e2c42a3b6124fa8847c5dd71359b039037f81c6/text_moin_wiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2121, 67, 26745, 12, 2890, 16, 2076, 4672, 3536, 3259, 1014, 2484, 4182, 12123, 309, 365, 18, 267, 67, 2121, 30, 563, 273, 5378, 468, 866, 364, 1677, 3422, 16, 1604, 370, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2121, 67, 26745, 12, 2890, 16, 2076, 4672, 3536, 3259, 1014, 2484, 4182, 12123, 309, 365, 18, 267, 67, 2121, 30, 563, 273, 5378, 468, 866, 364, 1677, 3422, 16, 1604, 370, 273, 365...
query = """select sum(nb_register) from crm_case c left join crm_case_section s on (c.section_id=s.id) right join event_event e on (e.section_id=s.id) right join event_registration r on (r.case_id=c.id) where e.section_id = %s and c.state in ('open','done') group by c.state,s.name""" % event.section_id.id
query = """select sum(nb_register) from crm_case c left join crm_case_section s on (c.section_id=s.id) right join event_event e on (e.section_id=s.id) right join event_registration r on (r.case_id=c.id) where e.section_id = %s and c.state in ('open','done')""" % event.section_id.id
def _get_register(self, cr, uid, ids, name, args, context=None): res={} for event in self.browse(cr, uid, ids, context):
b4a2ee60413b682b4df69b4e10589aa6bee11927 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/b4a2ee60413b682b4df69b4e10589aa6bee11927/event.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 4861, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 33, 7036, 4672, 400, 12938, 364, 871, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4861, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 33, 7036, 4672, 400, 12938, 364, 871, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, ...
}
}
def outParamForm(name, type): type = unaliasType(type) if type.kind == 'builtin': return '&' + name elif type.kind == 'native': if type.modifier == 'ref': return name else: return '&' + name else: return 'getter_AddRefs(%s)' % name
02e311e09e016912c1edae8536a5044940633ef1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/02e311e09e016912c1edae8536a5044940633ef1/qsgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 596, 786, 1204, 12, 529, 16, 618, 4672, 618, 273, 640, 4930, 559, 12, 723, 13, 309, 618, 18, 9224, 422, 296, 24553, 4278, 327, 9824, 397, 508, 1327, 618, 18, 9224, 422, 296, 13635, 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, 596, 786, 1204, 12, 529, 16, 618, 4672, 618, 273, 640, 4930, 559, 12, 723, 13, 309, 618, 18, 9224, 422, 296, 24553, 4278, 327, 9824, 397, 508, 1327, 618, 18, 9224, 422, 296, 13635, 4...
rawdata = open(datafilename).read()
def process(datafilename, notes=0, handout=0, cols=0, verbose=0, outDir=None): "Process one PythonPoint source file." from reportlab.tools.pythonpoint.stdparser import PPMLParser parser = PPMLParser() parser.sourceFilename = datafilename rawdata = open(datafilename).read() parser.feed(rawdata) pres = parser.getPresenta...
b4313d504cd51f70b053b3b310ed5c2d8ac3ef09 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/b4313d504cd51f70b053b3b310ed5c2d8ac3ef09/pythonpoint.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 892, 3459, 16, 10913, 33, 20, 16, 948, 659, 33, 20, 16, 5347, 33, 20, 16, 3988, 33, 20, 16, 596, 1621, 33, 7036, 4672, 315, 2227, 1245, 6600, 2148, 1084, 585, 1199, 628, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 892, 3459, 16, 10913, 33, 20, 16, 948, 659, 33, 20, 16, 5347, 33, 20, 16, 3988, 33, 20, 16, 596, 1621, 33, 7036, 4672, 315, 2227, 1245, 6600, 2148, 1084, 585, 1199, 628, ...
changesettag=self.showtag("changesettag",n),
changesettag=showtags,
def diff(**map): yield self.diff(tmpl, p1, n, None)
8255f7247ae66644f7705df05a94f2c7585b5bbc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/8255f7247ae66644f7705df05a94f2c7585b5bbc/hgweb_mod.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3122, 12, 636, 1458, 4672, 2824, 365, 18, 5413, 12, 24717, 16, 293, 21, 16, 290, 16, 599, 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, ...
[ 1, 1, 1, 1, 1, 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, 3122, 12, 636, 1458, 4672, 2824, 365, 18, 5413, 12, 24717, 16, 293, 21, 16, 290, 16, 599, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
def error_line(f):
def error_line(filename): """Get the last line of filename for error messages""" result = ""
def error_line(f): try: ff = file(f) try: lines = ff.readlines() if len(lines) > 0: return ": %s" % (lines[-1]) else: return "" finally: ff.close() except: return ""
3e3df38f1e52c70022c8b8d12e88f5772a29641f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/197/3e3df38f1e52c70022c8b8d12e88f5772a29641f/brokertest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 555, 67, 1369, 12, 3459, 4672, 3536, 967, 326, 1142, 980, 434, 1544, 364, 555, 2743, 8395, 563, 273, 1408, 775, 30, 6875, 273, 585, 12, 74, 13, 775, 30, 2362, 273, 6875, 18, 896, 354...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 555, 67, 1369, 12, 3459, 4672, 3536, 967, 326, 1142, 980, 434, 1544, 364, 555, 2743, 8395, 563, 273, 1408, 775, 30, 6875, 273, 585, 12, 74, 13, 775, 30, 2362, 273, 6875, 18, 896, 354...
aCpu = numpy.random.randn(size).astype(numpy.float32) bCpu = numpy.random.randn(size).astype(numpy.float32)
a_cpu = numpy.random.randn(size).astype(numpy.float32) b_cpu = numpy.random.randn(size).astype(numpy.float32)
def main(): drv.init() assert drv.Device.count() >= 1 ctx = drv.Device(0).make_context() import pycuda.gpuarray as gpuarray # make sure all the kernels are compiled gpuarray.GPUArray.compile_kernels() print "done compiling" sizes = [] times = [] flops = [] flopsCPU = [] timesCPU = [] for power in range(10, 25): # 2...
055a09257e2bd88ee7af05b640f4da2d43cfda2f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12870/055a09257e2bd88ee7af05b640f4da2d43cfda2f/test_gpuarray_speed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 302, 4962, 18, 2738, 1435, 1815, 302, 4962, 18, 3654, 18, 1883, 1435, 1545, 404, 1103, 273, 302, 4962, 18, 3654, 12, 20, 2934, 6540, 67, 2472, 1435, 225, 1930, 2395, 71, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 302, 4962, 18, 2738, 1435, 1815, 302, 4962, 18, 3654, 18, 1883, 1435, 1545, 404, 1103, 273, 302, 4962, 18, 3654, 12, 20, 2934, 6540, 67, 2472, 1435, 225, 1930, 2395, 71, 1...
var = self._dict[key] if isinstance(key, unicode): key = unicode_to_str(key) new_prefix = prefix if not isinstance(self._schema, Var) and not isinstance(self, List): new_prefix += '.' ret.append(var._cfg_string(new_prefix, print_desc))
ret.append(self._dict[key]._cfg_string(prefix, print_desc))
def _cfg_string(self, prefix, print_desc=True): """ Convert object into a string to write into a config file. """ ret = [] prefix = prefix + self._name if type(self._schema) == Var and print_desc: # TODO: more detailed comments, show full spec of var and some examples. ret.append('#\n# %s\n# %s\n#\n' % (prefix, unicode...
7564504359a58bf3c53ed875a81c21949f0d85b0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11722/7564504359a58bf3c53ed875a81c21949f0d85b0/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7066, 67, 1080, 12, 2890, 16, 1633, 16, 1172, 67, 5569, 33, 5510, 4672, 3536, 4037, 733, 1368, 279, 533, 358, 1045, 1368, 279, 642, 585, 18, 3536, 325, 273, 5378, 1633, 273, 1633,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7066, 67, 1080, 12, 2890, 16, 1633, 16, 1172, 67, 5569, 33, 5510, 4672, 3536, 4037, 733, 1368, 279, 533, 358, 1045, 1368, 279, 642, 585, 18, 3536, 325, 273, 5378, 1633, 273, 1633,...
"menubar=1,scrollbars=1,width=700,height=600");
"menubar=1,scrollbars=1,width=800,height=600,resizable=1");
def javascript(): s = r"""
af1cee52397a7c2a0495960edbce6a1a6ddc969d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/af1cee52397a7c2a0495960edbce6a1a6ddc969d/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, -...
subjectMatch = re.match('\s*\[Bug (\d+)\]\s+(New:)?', _get_header(message['Subject']))
subjectMatch = re.search('\s*\[Bug (\d+)\]\s+(New:)?', _get_header(message['Subject']))
def __init__(self, message): # Make sure this is actually a bug mail if not message['X-Bugzilla-Product']: raise NotBugmailException, 'Email lacks X-Bugzilla-Product header' # Initialize fields used lower that aren't always set self.dupe_of = None self.attach_id = None
4e4771a86887620cdc6a8544fcf215c991df8dd4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3483/4e4771a86887620cdc6a8544fcf215c991df8dd4/bugmail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 883, 4672, 468, 4344, 3071, 333, 353, 6013, 279, 7934, 4791, 309, 486, 883, 3292, 60, 17, 19865, 15990, 17, 4133, 3546, 30, 1002, 2288, 19865, 4408, 503, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 883, 4672, 468, 4344, 3071, 333, 353, 6013, 279, 7934, 4791, 309, 486, 883, 3292, 60, 17, 19865, 15990, 17, 4133, 3546, 30, 1002, 2288, 19865, 4408, 503, ...
while (firstrun or ((time.time() - start) < 180.0)):
origsize = os.path.getsize(file) while (not found and (firstrun or ((time.time() - start) < 180.0))):
def __init__(self, source_dir, files, show_all_leaks=False): '''Reads in a set of files.
eba205b39a4a369569f3d7b7b0eb35e9f8d30214 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/eba205b39a4a369569f3d7b7b0eb35e9f8d30214/memcheck_analyze.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1084, 67, 1214, 16, 1390, 16, 2405, 67, 454, 67, 298, 581, 87, 33, 8381, 4672, 9163, 7483, 316, 279, 444, 434, 1390, 18, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1084, 67, 1214, 16, 1390, 16, 2405, 67, 454, 67, 298, 581, 87, 33, 8381, 4672, 9163, 7483, 316, 279, 444, 434, 1390, 18, 2, -100, -100, -100, -100, -10...
element = _encode(element)
def simpleElement(self, element, value=None): if value: element = _encode(element) value = _encode(value) self.writeln("<%s>%s</%s>" % (element, value, element)) else: self.writeln("<%s/>" % element)
16ef39eac00a8e7427e308005cddbc7d29a1e9f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/16ef39eac00a8e7427e308005cddbc7d29a1e9f5/plistlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4143, 1046, 12, 2890, 16, 930, 16, 460, 33, 7036, 4672, 309, 460, 30, 460, 273, 389, 3015, 12, 1132, 13, 365, 18, 5363, 292, 82, 2932, 32, 9, 87, 9822, 87, 1757, 9, 87, 2984, 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, 4143, 1046, 12, 2890, 16, 930, 16, 460, 33, 7036, 4672, 309, 460, 30, 460, 273, 389, 3015, 12, 1132, 13, 365, 18, 5363, 292, 82, 2932, 32, 9, 87, 9822, 87, 1757, 9, 87, 2984, 738, ...
if len(X) == self.n:
if len(X) == self.m:
def __call__(self, X): r""" Apply substitution to X.
dd81b4a97db8b232434d8623d237dba45e418834 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/dd81b4a97db8b232434d8623d237dba45e418834/sbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1139, 4672, 436, 8395, 5534, 12785, 358, 1139, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1139, 4672, 436, 8395, 5534, 12785, 358, 1139, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
p_nodes = [] for k in ligolwInspinjfindNode.keys(): p_nodes.append(ligolwSqliteNodeInjXMLtoDB[k]) for k in sqliteNodeCluster.keys(): p_nodes.append(sqliteNodeCluster[k]) for cat in cats:
p_nodes[cat].append(ligolwSqliteNodeInjXMLtoDB[type+cat])
def grep_pieces_and_append(string, inname, outname, append_cache=None): expr = re.compile(string) new_list = filter(expr.search,open(inname).readlines()) new_list.sort() print len(new_list) outnames = [] try: os.mkdir(outname) except: pass # To make sure that includes slides and zero lag for i in range(len(new_list)): ...
0b97313a1079214d63930999cbf916815e37ccaf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/0b97313a1079214d63930999cbf916815e37ccaf/highmass_post_process.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23366, 67, 31016, 67, 464, 67, 6923, 12, 1080, 16, 316, 529, 16, 596, 529, 16, 714, 67, 2493, 33, 7036, 4672, 3065, 273, 283, 18, 11100, 12, 1080, 13, 394, 67, 1098, 273, 1034, 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, 23366, 67, 31016, 67, 464, 67, 6923, 12, 1080, 16, 316, 529, 16, 596, 529, 16, 714, 67, 2493, 33, 7036, 4672, 3065, 273, 283, 18, 11100, 12, 1080, 13, 394, 67, 1098, 273, 1034, 12, ...
Returns information of all dictionaries as xml file
Returns information of all dictionaries as xml file (type string)
def dicts2XML(self): """ Returns information of all dictionaries as xml file """ xml = Element("event") Sub(Sub(xml, "event_id"), "value").text = self.dictEvent['xmlEventID'] event_type = Sub(xml, "event_type") Sub(event_type, "value").text = "manual" Sub(event_type, "user").text = self.username Sub(event_type, "publi...
08072571b11b984a33e9ee53ba52401ff881eaff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/08072571b11b984a33e9ee53ba52401ff881eaff/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15838, 22, 4201, 12, 2890, 4672, 3536, 2860, 1779, 434, 777, 16176, 487, 2025, 585, 261, 723, 533, 13, 3536, 2025, 273, 225, 3010, 2932, 2575, 7923, 2592, 12, 1676, 12, 2902, 16, 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, 15838, 22, 4201, 12, 2890, 4672, 3536, 2860, 1779, 434, 777, 16176, 487, 2025, 585, 261, 723, 533, 13, 3536, 2025, 273, 225, 3010, 2932, 2575, 7923, 2592, 12, 1676, 12, 2902, 16, 315, ...
time0 = self.names[0],self.formatTime(self.getDeciSeconds(0)) layout0 = self.create_pango_layout("%s: %s" % (time0))
time0 = self.names[0],self.formatTime(self.getDeciSeconds(0)) layout0 = self.create_pango_layout(" %s: %s " % (time0))
def draw(self, context): self.dark = self.get_style().dark[gtk.STATE_NORMAL] self.light = self.get_style().light[gtk.STATE_NORMAL] hpad, vpad = 7, 1 #FIXME: The clock will always redraw everything, #while the next line is outcommented #Problem is that saving the redrawingAll in self, #will make natural redraws, as whe...
2acae0ecedcbae24d727a712ea9375809b03ce61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5339/2acae0ecedcbae24d727a712ea9375809b03ce61/ChessClock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 16, 819, 4672, 365, 18, 25045, 273, 365, 18, 588, 67, 4060, 7675, 25045, 63, 4521, 79, 18, 7998, 67, 15480, 65, 365, 18, 5099, 273, 365, 18, 588, 67, 4060, 7675, 5099...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 16, 819, 4672, 365, 18, 25045, 273, 365, 18, 588, 67, 4060, 7675, 25045, 63, 4521, 79, 18, 7998, 67, 15480, 65, 365, 18, 5099, 273, 365, 18, 588, 67, 4060, 7675, 5099...
R = 0.354 Delta = 0.153
R = 0.354 * nm Delta = 0.153 * nm
def rho(r): R = 0.354 Delta = 0.153 R1 = R - Delta / 2 R2 = R + Delta / 2 return rho0 * (theta(R2-r) - theta(r-R1))
b75544167810c12e843d28ad14e98aa9fbb65a57 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13923/b75544167810c12e843d28ad14e98aa9fbb65a57/density.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10360, 12, 86, 4672, 534, 273, 374, 18, 4763, 24, 380, 8442, 17799, 273, 374, 18, 30305, 380, 8442, 534, 21, 273, 534, 300, 17799, 342, 576, 534, 22, 273, 534, 397, 17799, 342, 576, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10360, 12, 86, 4672, 534, 273, 374, 18, 4763, 24, 380, 8442, 17799, 273, 374, 18, 30305, 380, 8442, 534, 21, 273, 534, 300, 17799, 342, 576, 534, 22, 273, 534, 397, 17799, 342, 576, ...
for value in vlist: if not all_props.has_key(value):
for vcn, vid in vlist: if vid == '-1': vid = None if not (vid or all_props.has_key((vcn, vid))):
def _editnodes(self, all_props, all_links): ''' Use the props in all_props to perform edit and creation, then use the link specs in all_links to do linking. ''' # figure dependencies and re-work links deps = {} links = {} for cn, nodeid, propname, vlist in all_links: if not all_props.has_key((cn, nodeid)): # link item ...
c818093380b13c4a57125762fb43f13178da1f43 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1906/c818093380b13c4a57125762fb43f13178da1f43/actions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4619, 4690, 12, 2890, 16, 777, 67, 9693, 16, 777, 67, 7135, 4672, 9163, 2672, 326, 3458, 316, 777, 67, 9693, 358, 3073, 3874, 471, 6710, 16, 1508, 999, 326, 1692, 10607, 316, 777,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4619, 4690, 12, 2890, 16, 777, 67, 9693, 16, 777, 67, 7135, 4672, 9163, 2672, 326, 3458, 316, 777, 67, 9693, 358, 3073, 3874, 471, 6710, 16, 1508, 999, 326, 1692, 10607, 316, 777,...
def _queryInsertID(self, conn, table, idName, id, names, values):
def _queryInsertID(self, conn, soInstance, id, names, values):
def _queryInsertID(self, conn, table, idName, id, names, values): """Firebird uses 'generators' to create new ids for a table. The users needs to create a generator named GEN_<tablename> for each table this method to work.""" table = soInstance._table idName = soInstance._idName sequenceName = getattr(soInstance, '_idS...
63839d98b975a4ae6b7a9bf97d1aba01088115e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8798/63839d98b975a4ae6b7a9bf97d1aba01088115e7/firebirdconnection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2271, 4600, 734, 12, 2890, 16, 1487, 16, 1427, 1442, 16, 612, 16, 1257, 16, 924, 4672, 3536, 9723, 31245, 4692, 296, 25959, 11, 358, 752, 394, 3258, 364, 279, 1014, 18, 1021, 3677...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2271, 4600, 734, 12, 2890, 16, 1487, 16, 1427, 1442, 16, 612, 16, 1257, 16, 924, 4672, 3536, 9723, 31245, 4692, 296, 25959, 11, 358, 752, 394, 3258, 364, 279, 1014, 18, 1021, 3677...
def __dynamicThroughput(self,sourceSEs,destSEs):
def __dynamicThroughput( self, sourceSEs, destSEs ):
def __dynamicThroughput(self,sourceSEs,destSEs): """ This creates a replication tree based on observed throughput on the channels """ res = self.__getTimeToStart() if not res['OK']: gLogger.error(res['Message']) return {} channelInfo = res['Value']
9005c0a96ba1bc0698c543bcb4c1886f4eeee344 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9005c0a96ba1bc0698c543bcb4c1886f4eeee344/ReplicationScheduler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 14507, 24478, 12, 365, 16, 1084, 1090, 87, 16, 1570, 1090, 87, 262, 30, 3536, 1220, 3414, 279, 11335, 2151, 2511, 603, 12117, 24677, 603, 326, 5750, 3536, 400, 273, 365, 16186, 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, 1001, 14507, 24478, 12, 365, 16, 1084, 1090, 87, 16, 1570, 1090, 87, 262, 30, 3536, 1220, 3414, 279, 11335, 2151, 2511, 603, 12117, 24677, 603, 326, 5750, 3536, 400, 273, 365, 16186, 588...
def _reduce_using_macaulay2(self, f): I = self._macaulay2_() M2 = I.parent() R = self.ring() g = M2(R(f)) try: k = M2('%s %% %s'%(g.name(), I.name())) except TypeError: return f return R(k)
def _reduce_using_macaulay2(self, f): I = self._macaulay2_() M2 = I.parent() R = self.ring() g = M2(R(f)) try: k = M2('%s %% %s'%(g.name(), I.name())) except TypeError: # This is OK, since f is in the right ring -- type error # just means it's in base ring (e.g., a constant) return f return R(k)
4d5fc433022f95252275cc744a20d05dc9c02152 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/4d5fc433022f95252275cc744a20d05dc9c02152/multi_polynomial_ideal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12498, 67, 9940, 67, 5821, 69, 332, 528, 22, 12, 2890, 16, 284, 4672, 467, 273, 365, 6315, 5821, 69, 332, 528, 22, 67, 1435, 490, 22, 273, 467, 18, 2938, 1435, 534, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12498, 67, 9940, 67, 5821, 69, 332, 528, 22, 12, 2890, 16, 284, 4672, 467, 273, 365, 6315, 5821, 69, 332, 528, 22, 67, 1435, 490, 22, 273, 467, 18, 2938, 1435, 534, 273, 365, ...
prefix = block[-6:]
prefix = block[-6:]
def get_document_info(stream): """ Extract the \info block from an RTF file. Return the info block as a string and the position in the file at which it starts. @param stream: File like object pointing to the RTF file. """ block_size = 4096 stream.seek(0) found, block = False, "" while not found: prefix = block[-6:] blo...
48b99181d19bd3f7566610ff184885312a3f7ebf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/48b99181d19bd3f7566610ff184885312a3f7ebf/rtf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5457, 67, 1376, 12, 3256, 4672, 3536, 8152, 326, 521, 1376, 1203, 628, 392, 13060, 42, 585, 18, 2000, 326, 1123, 1203, 487, 279, 533, 471, 326, 1754, 316, 326, 585, 622, 1492,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5457, 67, 1376, 12, 3256, 4672, 3536, 8152, 326, 521, 1376, 1203, 628, 392, 13060, 42, 585, 18, 2000, 326, 1123, 1203, 487, 279, 533, 471, 326, 1754, 316, 326, 585, 622, 1492,...
name = 'depart_' + self.__class__.__name__ method = getattr(visitor, name, visitor.unknown_departure) visitor.document.reporter.debug( name, category='nodes.Node.walkabout') method(self)
visitor.document.reporter.debug(self.__class__.__name__, category='nodes.Node.walkabout') visitor.dispatch_depart(self, self.__class__.__name__)
def walkabout(self, visitor): """ Perform a tree traversal similarly to `Node.walk()` (which see), except also call ``depart_...`` methods before exiting each node. If there is no ``depart_particular_node`` method for a node of type ``particular_node``, the ``unknown_departure`` method is called.
5f61b1a9b47ca28d544232f9f82b373f45fe9d32 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/5f61b1a9b47ca28d544232f9f82b373f45fe9d32/nodes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5442, 21071, 12, 2890, 16, 8000, 4672, 3536, 11217, 279, 2151, 15940, 7281, 715, 358, 1375, 907, 18, 11348, 20338, 261, 12784, 2621, 3631, 1335, 2546, 745, 12176, 323, 2680, 67, 2777, 1033...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5442, 21071, 12, 2890, 16, 8000, 4672, 3536, 11217, 279, 2151, 15940, 7281, 715, 358, 1375, 907, 18, 11348, 20338, 261, 12784, 2621, 3631, 1335, 2546, 745, 12176, 323, 2680, 67, 2777, 1033...
if not self.__skeleton__[table].has_key(col_name): raise ValueError("Table %s has no column %s."%(table,col_name))
if not self.__skeleton__[table_name].has_key(col_name): raise ValueError("Table %s has no column %s."%(table_name,col_name))
def make_index(self, col_name, table_name, unique=False): if not self.__skeleton__.has_key(table_name): raise ValueError("Database has no table %s."%table_name) if not self.__skeleton__[table].has_key(col_name): raise ValueError("Table %s has no column %s."%(table,col_name))
ccd462ba82c8e638768d9aaffb11ed63f3c9a76d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/ccd462ba82c8e638768d9aaffb11ed63f3c9a76d/database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 1615, 12, 2890, 16, 645, 67, 529, 16, 1014, 67, 529, 16, 3089, 33, 8381, 4672, 309, 486, 365, 16186, 7771, 12143, 25648, 5332, 67, 856, 12, 2121, 67, 529, 4672, 1002, 2068, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1615, 12, 2890, 16, 645, 67, 529, 16, 1014, 67, 529, 16, 3089, 33, 8381, 4672, 309, 486, 365, 16186, 7771, 12143, 25648, 5332, 67, 856, 12, 2121, 67, 529, 4672, 1002, 2068, ...
imObj = self.imObjFromKeyVar(keyVar) if imObj == None: return
def updGuideMode(self, guideMode, isCurrent, keyVar): """New guideMode data found. """ #print "%s updGuideMode(guideMode=%r, isCurrent=%r)" % (self.actor, guideMode, isCurrent) self.setGuideState() if not isCurrent: return
484da39f9f78050a0c3ecbfa1b6b24bec3b0bb09 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6354/484da39f9f78050a0c3ecbfa1b6b24bec3b0bb09/GuideWdg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2166, 17424, 2309, 12, 2890, 16, 7343, 2309, 16, 25694, 16, 498, 1537, 4672, 3536, 1908, 7343, 2309, 501, 1392, 18, 3536, 468, 1188, 2213, 87, 2166, 17424, 2309, 12, 12118, 2309, 5095, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2166, 17424, 2309, 12, 2890, 16, 7343, 2309, 16, 25694, 16, 498, 1537, 4672, 3536, 1908, 7343, 2309, 501, 1392, 18, 3536, 468, 1188, 2213, 87, 2166, 17424, 2309, 12, 12118, 2309, 5095, 8...
eventHandler.manageEvent("stateChange",focus)
obj=focus else: obj=NVDAObjects.JAB.JAB(JABObject) eventHandler.manageEvent("stateChange",focus)
def event_stateChange(vmID,accContext,oldState,newState): JABObject=JABObjectWrapper(vmID=vmID,accContext=accContext) focus=api.getFocusObject() if isinstance(focus,NVDAObjects.JAB.JAB) and focus.JABObject==JABObject: eventHandler.manageEvent("stateChange",focus)
f9b2d952a134b24cb8df520045da349463f0008c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/f9b2d952a134b24cb8df520045da349463f0008c/JABHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 871, 67, 2019, 3043, 12, 3489, 734, 16, 8981, 1042, 16, 1673, 1119, 16, 2704, 1119, 4672, 804, 2090, 921, 33, 46, 2090, 921, 3611, 12, 3489, 734, 33, 3489, 734, 16, 8981, 1042, 33, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 871, 67, 2019, 3043, 12, 3489, 734, 16, 8981, 1042, 16, 1673, 1119, 16, 2704, 1119, 4672, 804, 2090, 921, 33, 46, 2090, 921, 3611, 12, 3489, 734, 33, 3489, 734, 16, 8981, 1042, 33, 8...
self.add_text(textwrap.fill(txt))
self.add_text(textwrap.fill(txt, break_long_words=False))
def parse_Text(self, node): txt = node.data txt = txt.replace('\\', r'\\\\') txt = txt.replace('"', r'\"') # ignore pure whitespace m = self.space_re.match(txt) if m and len(m.group()) == len(txt): pass else: self.add_text(textwrap.fill(txt))
d30baf081d85edb86e66350de0ee4cbd45f493f0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13995/d30baf081d85edb86e66350de0ee4cbd45f493f0/doxy2swig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1528, 12, 2890, 16, 756, 4672, 6463, 273, 756, 18, 892, 6463, 273, 6463, 18, 2079, 2668, 1695, 2187, 436, 11, 13011, 6134, 6463, 273, 6463, 18, 2079, 22076, 2187, 436, 11, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1528, 12, 2890, 16, 756, 4672, 6463, 273, 756, 18, 892, 6463, 273, 6463, 18, 2079, 2668, 1695, 2187, 436, 11, 13011, 6134, 6463, 273, 6463, 18, 2079, 22076, 2187, 436, 11, 24...
children.appendleft(self.source[0:start])
if self.children: children.appendleft(self.source[0:start])
def _handle(self, node, base_children, eat_parens=False, eat_spaces=False): if hasattr(node, 'region'): # ???: The same node was seen twice; what should we do? warnings.warn( 'Node <%s> has been already patched; please report!' % node.__class__.__name__, RuntimeWarning) return base_children = collections.deque(base_chi...
71999508e8d0016077293b23caae941293cb6074 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8286/71999508e8d0016077293b23caae941293cb6074/patchedast.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 12, 2890, 16, 756, 16, 1026, 67, 5906, 16, 20729, 67, 1848, 2387, 33, 8381, 16, 20729, 67, 9554, 33, 8381, 4672, 309, 3859, 12, 2159, 16, 296, 6858, 11, 4672, 468, 5317, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 12, 2890, 16, 756, 16, 1026, 67, 5906, 16, 20729, 67, 1848, 2387, 33, 8381, 16, 20729, 67, 9554, 33, 8381, 4672, 309, 3859, 12, 2159, 16, 296, 6858, 11, 4672, 468, 5317, 3...
class DbInvocationExporter(bulkloader.Exporter):
class AppEngineDbInvocationExporter(bulkloader.Exporter):
def __init__(self): bulkloader.Loader.__init__(self, 'DbInvocation', [('who', db.Key), ('startTime', long), ('endTime', long) ])
f52986380d28d283aa7e99a55fe860d0af45b9b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10256/f52986380d28d283aa7e99a55fe860d0af45b9b6/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 8280, 6714, 18, 2886, 16186, 2738, 972, 12, 2890, 16, 296, 4331, 9267, 2187, 306, 2668, 3350, 83, 2187, 1319, 18, 653, 3631, 7707, 1937, 950, 2187, 1525,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 8280, 6714, 18, 2886, 16186, 2738, 972, 12, 2890, 16, 296, 4331, 9267, 2187, 306, 2668, 3350, 83, 2187, 1319, 18, 653, 3631, 7707, 1937, 950, 2187, 1525,...
ifp.close()
ifp.close()
def binhex(inp, out): """(infilename, outfilename) - Create binhex-encoded copy of a file""" finfo = getfileinfo(inp) ofp = BinHex(finfo, out) ifp = open(inp, 'rb') # XXXX Do textfile translation on non-mac systems d = ifp.read() ofp.write(d) ofp.close_data() ifp.close() ifp = openrsrc(inp, 'rb') d = ifp.read() ofp.w...
a220e67a9ed94d66b81e393a3bb9e6acd10068c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a220e67a9ed94d66b81e393a3bb9e6acd10068c1/binhex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4158, 7118, 12, 31647, 16, 596, 4672, 3536, 12, 267, 3459, 16, 596, 3459, 13, 300, 1788, 4158, 7118, 17, 10787, 1610, 434, 279, 585, 8395, 15190, 273, 336, 768, 1376, 12, 31647, 13, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4158, 7118, 12, 31647, 16, 596, 4672, 3536, 12, 267, 3459, 16, 596, 3459, 13, 300, 1788, 4158, 7118, 17, 10787, 1610, 434, 279, 585, 8395, 15190, 273, 336, 768, 1376, 12, 31647, 13, 43...
for signature, data in crashes.items(): crashes[signature]['total'] = data['win'] + data['mac'] + data['lin'] crashes[signature]['uptime_average'] = crashes[signature]['uptime'] / crash_count[signature]
for pvCombo, data in crashes.items(): for signature, signatureData in crashes[pvCombo].items(): fullKey = (pvCombo[0], pvCombo[1], signature) signatureData['total'] = signatureData['win'] + signatureData['mac'] + signatureData['lin'] signatureData['uptime_average'] = signatureData['uptime'] / crash_count[fullKey]
def calc_tots(crashes, crash_count): """ Calculate the total number of crashes per signature combo, as well as uptime averages. """ for signature, data in crashes.items(): crashes[signature]['total'] = data['win'] + data['mac'] + data['lin'] crashes[signature]['uptime_average'] = crashes[signature]['uptime'] / crash_co...
9bf1bf92f169afaf9c9e74b04c6f95339c786a69 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12383/9bf1bf92f169afaf9c9e74b04c6f95339c786a69/topcrashes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 3307, 87, 12, 3353, 7690, 16, 17053, 67, 1883, 4672, 3536, 9029, 326, 2078, 1300, 434, 4422, 7690, 1534, 3372, 16778, 16, 487, 5492, 487, 23251, 23713, 1023, 18, 3536, 364, 977...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 3307, 87, 12, 3353, 7690, 16, 17053, 67, 1883, 4672, 3536, 9029, 326, 2078, 1300, 434, 4422, 7690, 1534, 3372, 16778, 16, 487, 5492, 487, 23251, 23713, 1023, 18, 3536, 364, 977...
print "" + module + " needs updating"
log.write("%s needs updating\n" % module)
def changesInSVN(workingDir, log): changesDict = {}
dfae3c6d7c661343c29977b75019e1f250d4e44d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/dfae3c6d7c661343c29977b75019e1f250d4e44d/fullchandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3478, 382, 23927, 50, 12, 20478, 1621, 16, 613, 4672, 3478, 5014, 273, 2618, 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, 3478, 382, 23927, 50, 12, 20478, 1621, 16, 613, 4672, 3478, 5014, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
notes_posn = 'top'
notes_posn = 'top'
def __init__ (self, document): LaTeXTranslator.__init__ (self, document) # record the the settings for codeblocks self.cb_use_pygments = document.settings.cb_use_pygments self.cb_replace_tabs = document.settings.cb_replace_tabs self.cb_default_lang = document.settings.cb_default_lang self.head_prefix = [x for x in se...
37db8ffa549b63ebad9bbc3310aeafe2a276f03b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5620/37db8ffa549b63ebad9bbc3310aeafe2a276f03b/rst2beamer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 1668, 4672, 21072, 21575, 60, 12233, 16186, 2738, 972, 261, 2890, 16, 1668, 13, 225, 468, 1409, 326, 326, 1947, 364, 981, 7996, 365, 18, 7358, 67, 1202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 1668, 4672, 21072, 21575, 60, 12233, 16186, 2738, 972, 261, 2890, 16, 1668, 13, 225, 468, 1409, 326, 326, 1947, 364, 981, 7996, 365, 18, 7358, 67, 1202, ...
nodes = [] nodes.append(self.expr) nodes.extend(flatten_nodes(self.quals)) return tuple(nodes)
nodelist = [] nodelist.append(self.expr) nodelist.extend(flatten_nodes(self.quals)) return tuple(nodelist)
def getChildNodes(self): nodes = [] nodes.append(self.expr) nodes.extend(flatten_nodes(self.quals)) return tuple(nodes)
101b9307b0d9de62f324ef9ffa6e83f8040af642 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/101b9307b0d9de62f324ef9ffa6e83f8040af642/ast.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23895, 12, 2890, 4672, 2199, 273, 5378, 2199, 18, 6923, 12, 2890, 18, 8638, 13, 2199, 18, 14313, 12, 16940, 67, 4690, 12, 2890, 18, 6360, 3719, 327, 3193, 12, 4690, 13, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23895, 12, 2890, 4672, 2199, 273, 5378, 2199, 18, 6923, 12, 2890, 18, 8638, 13, 2199, 18, 14313, 12, 16940, 67, 4690, 12, 2890, 18, 6360, 3719, 327, 3193, 12, 4690, 13, 2, -100, -100, ...
error("package name with empty name or version part")
bb.error("package name with empty name or version part")
def pkgsplit(mypkg, silent=1): """This function can be used as a package verification function. If it is a valid name, pkgsplit will return a list containing: [pkgname, pkgversion(norev), pkgrev ]. >>> pkgsplit('') >>> pkgsplit('x') >>> pkgsplit('x-') >>> pkgsplit('-1') >>> pkgsplit('glibc-1.2-8.9-r7') >>> pkgsplit('...
8f83be3338d7aef4b6fcef5ea89dc69fa587c1f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8123/8f83be3338d7aef4b6fcef5ea89dc69fa587c1f6/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16922, 1127, 12, 81, 879, 14931, 16, 10404, 33, 21, 4672, 225, 3536, 2503, 445, 848, 506, 1399, 487, 279, 2181, 11805, 445, 18, 971, 518, 353, 279, 923, 508, 16, 16922, 1127, 903, 327,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16922, 1127, 12, 81, 879, 14931, 16, 10404, 33, 21, 4672, 225, 3536, 2503, 445, 848, 506, 1399, 487, 279, 2181, 11805, 445, 18, 971, 518, 353, 279, 923, 508, 16, 16922, 1127, 903, 327,...
client.upload_docs(args, title=options.title, folder=options.folder)
client.upload_docs(args, title=options.title, folder=options.folder, format=options.format)
def _run_upload(client, options, args): if not args: print 'Need to tell me what to upload!' return client.upload_docs(args, title=options.title, folder=options.folder)
61a4b8d4493db218ea9e22fefe2e7474032ac77c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/61a4b8d4493db218ea9e22fefe2e7474032ac77c/service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2681, 67, 6327, 12, 2625, 16, 702, 16, 833, 4672, 309, 486, 833, 30, 1172, 296, 14112, 358, 9276, 1791, 4121, 358, 3617, 5124, 327, 1004, 18, 6327, 67, 8532, 12, 1968, 16, 2077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2681, 67, 6327, 12, 2625, 16, 702, 16, 833, 4672, 309, 486, 833, 30, 1172, 296, 14112, 358, 9276, 1791, 4121, 358, 3617, 5124, 327, 1004, 18, 6327, 67, 8532, 12, 1968, 16, 2077, ...
cur.execute('SELECT %s FROM packages WHERE pkgKey="%s"' % (tag, pkg.pkgKey))
cur.execute('SELECT %s FROM packages WHERE pkgKey=?' % tag, (pkg.pkgKey,))
def getPkgTag(self, pkg, tag): tag = self.PKG2DB.get(tag, tag) if tag not in self.COLUMNS_LOOKUP: return None cur = self._primarydb.cursor() cur.execute('SELECT %s FROM packages WHERE pkgKey="%s"' % (tag, pkg.pkgKey)) return cur.fetchone()[0]
1bd6adee371af6defb14a869c8d6fece65e51000 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/1bd6adee371af6defb14a869c8d6fece65e51000/sqliterepodb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1689, 14931, 1805, 12, 2890, 16, 3475, 16, 1047, 4672, 1047, 273, 365, 18, 8784, 43, 22, 2290, 18, 588, 12, 2692, 16, 1047, 13, 309, 1047, 486, 316, 365, 18, 25936, 67, 1502, 31581, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1689, 14931, 1805, 12, 2890, 16, 3475, 16, 1047, 4672, 1047, 273, 365, 18, 8784, 43, 22, 2290, 18, 588, 12, 2692, 16, 1047, 13, 309, 1047, 486, 316, 365, 18, 25936, 67, 1502, 31581, ...
o += "\n%s
if a.getType(): o += "\n%s a.getType().getName())
o = '\n%sdef %s(self, %s):' % (ID1, op.getName(), iargs)
625fe7d84a5449dd257a695e5fecb2467bccf05f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/625fe7d84a5449dd257a695e5fecb2467bccf05f/wsdl2dispatch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 320, 225, 273, 2337, 82, 9, 87, 536, 738, 87, 12, 2890, 16, 738, 87, 13, 2497, 738, 261, 734, 21, 16, 1061, 18, 17994, 9334, 277, 1968, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 320, 225, 273, 2337, 82, 9, 87, 536, 738, 87, 12, 2890, 16, 738, 87, 13, 2497, 738, 261, 734, 21, 16, 1061, 18, 17994, 9334, 277, 1968, 13, 2, -100, -100, -100, -100, -100, -100, -100, -...
m=getattr(self,mname) r=m(uri) return r
m=getattr(self,mname) r=m(uri) return r
def get_prop(self,uri,ns,propname): """ return the value of a given property
9de3e0cfafc1651bc3dc3871f884c5c8b56c39e6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4009/9de3e0cfafc1651bc3dc3871f884c5c8b56c39e6/iface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5986, 12, 2890, 16, 1650, 16, 2387, 16, 5986, 529, 4672, 3536, 327, 326, 460, 434, 279, 864, 1272, 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, 336, 67, 5986, 12, 2890, 16, 1650, 16, 2387, 16, 5986, 529, 4672, 3536, 327, 326, 460, 434, 279, 864, 1272, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if (0 <= new_position < len(self.playlist)):
if self.playlist is not None and (0 <= new_position < len(self.playlist)):
def _play_current(self, new_position=None, save_resume_time=True): """If you pass in new_position, then this will attempt to play that and will update self.position ONLY if the new_position doesn't exceed the bounds of the playlist. """ if new_position == None: new_position = self.position
9244961d32a391dc735dbd0cd61455c0f0bbbac7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/9244961d32a391dc735dbd0cd61455c0f0bbbac7/playback.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1601, 67, 2972, 12, 2890, 16, 394, 67, 3276, 33, 7036, 16, 1923, 67, 25158, 67, 957, 33, 5510, 4672, 3536, 2047, 1846, 1342, 316, 394, 67, 3276, 16, 1508, 333, 903, 4395, 358, 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, 389, 1601, 67, 2972, 12, 2890, 16, 394, 67, 3276, 33, 7036, 16, 1923, 67, 25158, 67, 957, 33, 5510, 4672, 3536, 2047, 1846, 1342, 316, 394, 67, 3276, 16, 1508, 333, 903, 4395, 358, 6...
magic_letters = 'ABCDEFGHIJKLMNOPRSTUVWY'
magic_letters = 'QABCDEFGHIJKLMNOPRSTUVWY'
def _get_prefix(number): """By convention: Q is used for the unique Id of a document X for a long prefix Z for a stemmed word """ magic_letters = 'ABCDEFGHIJKLMNOPRSTUVWY' size = len(magic_letters) result = 'X'*(number/size) return result+magic_letters[number%size]
a4de8a4a8e289eb1099fb76981c29e81c5f06e48 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/a4de8a4a8e289eb1099fb76981c29e81c5f06e48/catalog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 3239, 12, 2696, 4672, 3536, 858, 15797, 30, 2238, 353, 1399, 364, 326, 3089, 3124, 434, 279, 1668, 1139, 364, 279, 1525, 1633, 2285, 364, 279, 13119, 2937, 2076, 3536, 225,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 3239, 12, 2696, 4672, 3536, 858, 15797, 30, 2238, 353, 1399, 364, 326, 3089, 3124, 434, 279, 1668, 1139, 364, 279, 1525, 1633, 2285, 364, 279, 13119, 2937, 2076, 3536, 225,...
return dl_prob + d_prob + util.safelog(prob / nsamples, -util.INF)
return dl_prob + d_prob + util.safelog(prob / nsamples)
def prob_dlcoal_recon_topology(coal_tree, coal_recon, locus_tree, locus_recon, locus_events, daughters, stree, n, duprate, lossrate, pretime=None, premean=None, maxdoom=20, nsamples=100, add_spec=True): """ Probability of a reconcile gene tree in the DLCoal model. coal_tree -- coalescent tree coal_recon -- reconc...
f97e996acfdbe702a5ae09cef4cb25391e05ee64 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8482/f97e996acfdbe702a5ae09cef4cb25391e05ee64/dlcoal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3137, 67, 5761, 2894, 287, 67, 266, 591, 67, 25572, 12, 2894, 287, 67, 3413, 16, 1825, 287, 67, 266, 591, 16, 22896, 67, 3413, 16, 22896, 67, 266, 591, 16, 22896, 67, 5989, 16, 5248,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3137, 67, 5761, 2894, 287, 67, 266, 591, 67, 25572, 12, 2894, 287, 67, 3413, 16, 1825, 287, 67, 266, 591, 16, 22896, 67, 3413, 16, 22896, 67, 266, 591, 16, 22896, 67, 5989, 16, 5248,...
stampedProxy.allDay = True
stampedProxy.anyTime = True
def FinishDrag(self): self.fileDragPosition = None currentCanvasItem = self.dragState.currentDragBox if not currentCanvasItem.CanDrag(): return
ded1dbcffe067794736465d582ee63a6cf07b0e6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/ded1dbcffe067794736465d582ee63a6cf07b0e6/AllDayCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18560, 11728, 12, 2890, 4672, 365, 18, 768, 11728, 2555, 273, 599, 783, 12971, 1180, 273, 365, 18, 15997, 1119, 18, 2972, 11728, 3514, 309, 486, 783, 12971, 1180, 18, 2568, 11728, 13332, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18560, 11728, 12, 2890, 4672, 365, 18, 768, 11728, 2555, 273, 599, 783, 12971, 1180, 273, 365, 18, 15997, 1119, 18, 2972, 11728, 3514, 309, 486, 783, 12971, 1180, 18, 2568, 11728, 13332, ...
self.linenum = token.startline + 1 def _repr(self, typ): RANGE = 20
CONTEXT_RANGE = 20 def __str__(self): RANGE = self.CONTEXT_RANGE if self._fatal: typ = 'Error' else: typ = 'Warning'
def __init__(self, descr, token, charnum): """ Construct a new colorizing exception. @param descr: A short description of the error. @type descr: C{string} @param token: The token where the error occured @type token: L{Token} @param charnum: The character index of the position in C{token} where the error occured. @typ...
36ace726c8fc4e9c1a450d16c75087d594ead7cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/36ace726c8fc4e9c1a450d16c75087d594ead7cf/epytext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 18426, 16, 1147, 16, 1149, 2107, 4672, 3536, 14291, 279, 394, 2036, 6894, 1520, 18, 225, 632, 891, 18426, 30, 432, 3025, 2477, 434, 326, 555, 18, 632, 72...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18426, 16, 1147, 16, 1149, 2107, 4672, 3536, 14291, 279, 394, 2036, 6894, 1520, 18, 225, 632, 891, 18426, 30, 432, 3025, 2477, 434, 326, 555, 18, 632, 72...
continue
game = 'Non-Steam Game'
def response(self, nick, args, kwargs): try: group_page = geturl(self.group_url) ids = {} for id, name, status in self.member_re.findall(group_page): ids[id] = dict(name=name, status=status) for id, link in self.link_re.findall(group_page): ids[id]['link'] = link ingame = [] online = [] for data in ids.values(): if dat...
0de2a70e16e482e00396c96a8bb1fb59315c8b69 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10942/0de2a70e16e482e00396c96a8bb1fb59315c8b69/steam.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 766, 12, 2890, 16, 10909, 16, 833, 16, 1205, 4672, 775, 30, 1041, 67, 2433, 273, 336, 718, 12, 2890, 18, 1655, 67, 718, 13, 3258, 273, 2618, 364, 612, 16, 508, 16, 1267, 316, 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, 766, 12, 2890, 16, 10909, 16, 833, 16, 1205, 4672, 775, 30, 1041, 67, 2433, 273, 336, 718, 12, 2890, 18, 1655, 67, 718, 13, 3258, 273, 2618, 364, 612, 16, 508, 16, 1267, 316, 365, ...
repr(sys.version))
repr(sys_version))
def _sys_version(): """ Returns a parsed version of Python's sys.version as tuple (name, version, branch, revision, buildno, builddate, compiler) referring to the Python implementation name, version, branch, revision, build number, build date/time as string and the compiler identification string. Note that unlike the...
2be9d43c18213be2387f3cdaf9d7bf02fdd37e8d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/2be9d43c18213be2387f3cdaf9d7bf02fdd37e8d/platform.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9499, 67, 1589, 13332, 225, 3536, 2860, 279, 2707, 1177, 434, 6600, 1807, 2589, 18, 1589, 487, 3193, 261, 529, 16, 1177, 16, 3803, 16, 6350, 16, 1361, 2135, 16, 25666, 330, 449, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9499, 67, 1589, 13332, 225, 3536, 2860, 279, 2707, 1177, 434, 6600, 1807, 2589, 18, 1589, 487, 3193, 261, 529, 16, 1177, 16, 3803, 16, 6350, 16, 1361, 2135, 16, 25666, 330, 449, 3...
sage: bessel_J(2,1.1) 0.136564153956658000 sage: bessel_J(0,1.1) 0.719622018527510801 sage: bessel_J(0,1) 0.765197686557966605
sage: bessel_J(2,1.1) 0.13656415395665... sage: bessel_J(0,1.1) 0.71962201852751... sage: bessel_J(0,1) 0.76519768655796...
def bessel_J(nu,z,alg="pari",prec=53): r""" Return value of the "J-Bessel function", or "Bessel function, 1st kind", with index (or "order") nu and argument z. \begin{verbatim} Defn: Maxima: inf ==== - nu - 2 k nu + 2 k \ (-1)^k 2 z > ------------------------- / k! Gamma(nu + k + 1) =...
0fb37ff99a113a9a0b53b260456b3ff8fa211fee /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0fb37ff99a113a9a0b53b260456b3ff8fa211fee/special.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 403, 292, 67, 46, 12, 13053, 16, 94, 16, 18413, 1546, 1065, 77, 3113, 4036, 33, 8643, 4672, 436, 8395, 2000, 460, 434, 326, 315, 46, 17, 38, 403, 292, 445, 3113, 578, 315, 38, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 403, 292, 67, 46, 12, 13053, 16, 94, 16, 18413, 1546, 1065, 77, 3113, 4036, 33, 8643, 4672, 436, 8395, 2000, 460, 434, 326, 315, 46, 17, 38, 403, 292, 445, 3113, 578, 315, 38, ...