rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
def mqlread(self, sq, asof=None):
def mqlread(self, sq, asof=None, headers=None):
def mqlread(self, sq, asof=None): """read a structure query. For a more complete description, see http://www.freebase.com/view/en/api_service_mqlread""" subq = dict(query=sq, escape=False) if asof: subq['as_of_time'] = asof if isinstance(sq, list): subq['cursor'] = True service = '/api/service/mqlread' self.log.info...
6947e2e18a5eb9fc8d84060a388f51d20c20d28d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11603/6947e2e18a5eb9fc8d84060a388f51d20c20d28d/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 1217, 896, 12, 2890, 16, 4744, 16, 487, 792, 33, 7036, 16, 1607, 33, 7036, 4672, 3536, 896, 279, 3695, 843, 18, 2457, 279, 1898, 3912, 2477, 16, 2621, 1062, 2207, 5591, 18, 9156, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 1217, 896, 12, 2890, 16, 4744, 16, 487, 792, 33, 7036, 16, 1607, 33, 7036, 4672, 3536, 896, 279, 3695, 843, 18, 2457, 279, 1898, 3912, 2477, 16, 2621, 1062, 2207, 5591, 18, 9156, ...
if text.startswith('tell ') and ' about ' in text: _target = text[5:].strip().split(None,1)[0]
if text.startswith('tell '): text = ' ' + text if ' tell ' in text and ' about ' in text: _target = text[text.find(' tell ')+6:].strip().split(None,1)[0]
def doPrivmsg(self, irc, msg): recipient, text = msg.args text = addressed(recipient, text, irc) if not text: return display_info = False target = msg.args[0] if target[0] != '#': target = msg.nick channel = msg.args[0]
988dbf24e3b75029c492ce98281bff259153324f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3105/988dbf24e3b75029c492ce98281bff259153324f/plugin_ng.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 15475, 3576, 12, 2890, 16, 277, 1310, 16, 1234, 4672, 8027, 16, 977, 273, 1234, 18, 1968, 977, 273, 527, 4638, 12, 20367, 16, 977, 16, 277, 1310, 13, 309, 486, 977, 30, 327, 256...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15475, 3576, 12, 2890, 16, 277, 1310, 16, 1234, 4672, 8027, 16, 977, 273, 1234, 18, 1968, 977, 273, 527, 4638, 12, 20367, 16, 977, 16, 277, 1310, 13, 309, 486, 977, 30, 327, 256...
self.data = {} self.showMetas = True
self.data = {} self.showMetas = {}
def __init__(self, parent=None, signalManager = None): OWWidget.__init__(self, parent, signalManager, "Data Table")
6c70040c8f9763b5589969a34c79b423e8d75fab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/6c70040c8f9763b5589969a34c79b423e8d75fab/OWDataTable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 33, 7036, 16, 4277, 1318, 273, 599, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318, 16, 315, 751, 3555, 7923, 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, 1001, 2738, 972, 12, 2890, 16, 982, 33, 7036, 16, 4277, 1318, 273, 599, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318, 16, 315, 751, 3555, 7923, 2, -100, -100,...
'-d', '--days', dest='days', type='int',
'-d', '--days', dest='days', type='int', default=1,
def gc_command(args=None): if args is None: args = sys.argv[1:] parser = optparse.OptionParser("usage: %prog [options] config1 [config2]") parser.add_option( '-d', '--days', dest='days', type='int', help='Number of trailing days to treat as non-garbage') options, args = parser.parse_args(args) if not args or len(args...
710f636d20110b254b274c75d4a5a9d62854e89a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5364/710f636d20110b254b274c75d4a5a9d62854e89a/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8859, 67, 3076, 12, 1968, 33, 7036, 4672, 309, 833, 353, 599, 30, 833, 273, 2589, 18, 19485, 63, 21, 26894, 2082, 273, 2153, 2670, 18, 1895, 2678, 2932, 9167, 30, 738, 14654, 306, 2116...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8859, 67, 3076, 12, 1968, 33, 7036, 4672, 309, 833, 353, 599, 30, 833, 273, 2589, 18, 19485, 63, 21, 26894, 2082, 273, 2153, 2670, 18, 1895, 2678, 2932, 9167, 30, 738, 14654, 306, 2116...
s = interwikiFormat(new, incode = mylang)
s = interwikiFormat(new)
def replaceLanguageLinks(oldtext, new): """Replace the interwiki language links given in the wikitext given in oldtext by the new links given in new. 'new' should be a dictionary with the language names as keys, and either PageLink objects or the link-names of the pages as values. """ s = interwikiFormat(new, incode =...
563c8911333c6ae247074fa0f4245297aafa3f5b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/563c8911333c6ae247074fa0f4245297aafa3f5b/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 3779, 7100, 12, 1673, 955, 16, 394, 4672, 3536, 5729, 326, 1554, 13044, 2653, 4716, 864, 316, 326, 341, 1766, 305, 408, 864, 316, 1592, 955, 635, 326, 394, 4716, 864, 316, 394, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3779, 7100, 12, 1673, 955, 16, 394, 4672, 3536, 5729, 326, 1554, 13044, 2653, 4716, 864, 316, 326, 341, 1766, 305, 408, 864, 316, 1592, 955, 635, 326, 394, 4716, 864, 316, 394, 1...
server.addjob (title, cmd, dir, priority, retry, affinity, dependencies) print("job added")
num=server.addjob (title, cmd, dir, priority, retry, affinity, dependencies) print(num)
def output (str): if verbose: print (str)
ef52a24a29bf92845c4d088660b4190024f47e37 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1233/ef52a24a29bf92845c4d088660b4190024f47e37/control.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 876, 261, 701, 4672, 309, 3988, 30, 1172, 261, 701, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 876, 261, 701, 4672, 309, 3988, 30, 1172, 261, 701, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Implementation detail of ProtocolSwitchCommand: I am a JuiceBox which sets
Implementation detail of ProtocolSwitchCommand: I am a AmpBox which sets
def _sendTo(self, proto): """ Immediately call loseConnection after sending. """ super(QuitBox, self)._sendTo(proto) proto.transport.loseConnection()
a07858a1d3f348c2cfc333d8963f71ed63041f9b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12595/a07858a1d3f348c2cfc333d8963f71ed63041f9b/amp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4661, 774, 12, 2890, 16, 3760, 4672, 3536, 2221, 7101, 745, 29612, 1952, 1839, 5431, 18, 3536, 2240, 12, 25365, 3514, 16, 365, 2934, 67, 4661, 774, 12, 9393, 13, 3760, 18, 13049, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4661, 774, 12, 2890, 16, 3760, 4672, 3536, 2221, 7101, 745, 29612, 1952, 1839, 5431, 18, 3536, 2240, 12, 25365, 3514, 16, 365, 2934, 67, 4661, 774, 12, 9393, 13, 3760, 18, 13049, ...
Using the -r option, revert the given files or directories to their contents as of a specific revision. This can be helpful to"roll
Using the -r option, revert the given files or directories to their contents as of a specific revision. This can be helpful to "roll
def revert(ui, repo, *pats, **opts): """revert files or dirs to their states as of some revision With no revision specified, revert the named files or directories to the contents they had in the parent of the working directory. This restores the contents of the affected files to an unmodified state. If the working di...
50784bf1d832efe56cfe59a4cee37738c3c9d428 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/50784bf1d832efe56cfe59a4cee37738c3c9d428/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 12, 4881, 16, 3538, 16, 380, 84, 2323, 16, 2826, 4952, 4672, 3536, 266, 1097, 1390, 578, 7717, 358, 3675, 5493, 487, 434, 2690, 6350, 225, 3423, 1158, 6350, 1269, 16, 15226, 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, 15226, 12, 4881, 16, 3538, 16, 380, 84, 2323, 16, 2826, 4952, 4672, 3536, 266, 1097, 1390, 578, 7717, 358, 3675, 5493, 487, 434, 2690, 6350, 225, 3423, 1158, 6350, 1269, 16, 15226, 326, ...
raise "Unknown Fit type %s" % (fitType,)
raise "Unknown Fit type %s" % (fitType,)
def bookmarkPage(self, key, fitType="Fit", left=None, top=None, bottom=None, right=None, zoom=None ): """ This creates a bookmark to the current page which can be referred to with the given key elsewhere.
60f52e5ef18896e2f4e75f2977dfeb9e704c9da0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/60f52e5ef18896e2f4e75f2977dfeb9e704c9da0/canvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13696, 1964, 12, 2890, 16, 498, 16, 4845, 559, 1546, 14219, 3113, 2002, 33, 7036, 16, 1760, 33, 7036, 16, 5469, 33, 7036, 16, 2145, 33, 7036, 16, 7182, 33, 7036, 262, 30, 3536, 1220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13696, 1964, 12, 2890, 16, 498, 16, 4845, 559, 1546, 14219, 3113, 2002, 33, 7036, 16, 1760, 33, 7036, 16, 5469, 33, 7036, 16, 2145, 33, 7036, 16, 7182, 33, 7036, 262, 30, 3536, 1220, ...
if SMALL_DF in p.stopdict.keys():
if p.istop not in p.stopdict: p.stopdict[p.istop] = True if SMALL_DF in p.stopdict:
def restoreProb(): p.Aeq, p.beq, p.nbeq = Aeq_r, beq_r, nbeq_r #if nEQ != 0: restore lb, ub
9867258881a4577ca162ebe4821801a693d0a0f5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6196/9867258881a4577ca162ebe4821801a693d0a0f5/ralg_oo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5217, 9152, 13332, 293, 18, 37, 11253, 16, 293, 18, 2196, 85, 16, 293, 18, 82, 2196, 85, 273, 432, 11253, 67, 86, 16, 506, 85, 67, 86, 16, 290, 2196, 85, 67, 86, 468, 430, 290, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5217, 9152, 13332, 293, 18, 37, 11253, 16, 293, 18, 2196, 85, 16, 293, 18, 82, 2196, 85, 273, 432, 11253, 67, 86, 16, 506, 85, 67, 86, 16, 290, 2196, 85, 67, 86, 468, 430, 290, 2...
pu = prop_obj.sm_price
price = prop_obj.sm_price * (1 + (stp * pprog_obj.percent_prog)) + (stp * pprog_obj.fixed_prog)
def _select_prices_prog(self, cr, uid, data, context): if context.has_key('prices_prog_id'): prices_prog_id = context['prices_prog_id'] else : prices_prog_id = data['form']['prices_progression']
890f4eea704c7c7d3b66aa51b31e1bed28f55b1d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/890f4eea704c7c7d3b66aa51b31e1bed28f55b1d/dm_proposition_products.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4025, 67, 683, 1242, 67, 14654, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 309, 819, 18, 5332, 67, 856, 2668, 683, 1242, 67, 14654, 67, 350, 11, 4672, 19827, 67, 1465...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4025, 67, 683, 1242, 67, 14654, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 309, 819, 18, 5332, 67, 856, 2668, 683, 1242, 67, 14654, 67, 350, 11, 4672, 19827, 67, 1465...
return S_ERROR(lfc.sstrerror(lfc.cvar.serrno)) def __getDirectoryContents(self,path,verbose=False):
return S_ERROR( lfc.sstrerror( lfc.cvar.serrno ) ) def __getDirectoryContents( self, path, verbose = False ):
def __closeDirectory(self,oDirectory): value = lfc.lfc_closedir(oDirectory) if value == 0: return S_OK() else: return S_ERROR(lfc.sstrerror(lfc.cvar.serrno))
6280f3782654b93320f684f56a83a6624459bcec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/6280f3782654b93320f684f56a83a6624459bcec/LcgFileCatalogClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4412, 2853, 12, 2890, 16, 83, 2853, 4672, 460, 273, 328, 7142, 18, 80, 7142, 67, 12204, 481, 12, 83, 2853, 13, 309, 460, 422, 374, 30, 327, 348, 67, 3141, 1435, 469, 30, 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, 1001, 4412, 2853, 12, 2890, 16, 83, 2853, 4672, 460, 273, 328, 7142, 18, 80, 7142, 67, 12204, 481, 12, 83, 2853, 13, 309, 460, 422, 374, 30, 327, 348, 67, 3141, 1435, 469, 30, 327, ...
bookmark = self.tree.activeFormattingElements.\ index(node) + 1 cite = node.parent if node.hasContent(): clone = node.cloneNode() self.tree.activeFormattingElements[ self.tree.activeFormattingElements.index(node)] = clone self.tree.openElements[ self.tree.openElements.index(node)] = clone node = clone
bookmark = (self.tree.activeFormattingElements.index(node) + 1) clone = node.cloneNode() self.tree.activeFormattingElements[ self.tree.activeFormattingElements.index(node)] = clone self.tree.openElements[ self.tree.openElements.index(node)] = clone node = clone
def endTagFormatting(self, token): """The much-feared adoption agency algorithm""" # http://www.whatwg.org/specs/web-apps/current-work/#adoptionAgency # XXX Better parseError messages appreciated. name = token["name"] while True: # Step 1 paragraph 1 afeElement = self.tree.elementInActiveFormattingElements( token["name...
ef2c545bcdefb0b7e6eec38b73b5ad4fbf25401a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9368/ef2c545bcdefb0b7e6eec38b73b5ad4fbf25401a/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 23974, 12, 2890, 16, 1147, 4672, 3536, 1986, 9816, 17, 3030, 2258, 1261, 3482, 1737, 2075, 4886, 8395, 468, 1062, 2207, 5591, 18, 23770, 18197, 18, 3341, 19, 15115, 19, 4875, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 23974, 12, 2890, 16, 1147, 4672, 3536, 1986, 9816, 17, 3030, 2258, 1261, 3482, 1737, 2075, 4886, 8395, 468, 1062, 2207, 5591, 18, 23770, 18197, 18, 3341, 19, 15115, 19, 4875, 17, ...
extra_args = ext.extra_compile_args
extra_args = ext.extra_compile_args or []
def build_extensions (self):
50c9bee5077b37c4163e29248e6fc77454001c13 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/50c9bee5077b37c4163e29248e6fc77454001c13/build_ext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 9489, 261, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 9489, 261, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
LOG('ZODB FS',WARNING, "%s warn: %s\n" % (packed_version, (message % data)))
LOG('ZODB FS', WARNING, "%s warn: %s\n" % (packed_version, (message % data)))
def warn(message, *data): LOG('ZODB FS',WARNING, "%s warn: %s\n" % (packed_version, (message % data)))
ad85dfb9cd6957f764453d68c5aa78663f064355 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/ad85dfb9cd6957f764453d68c5aa78663f064355/FileStorage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1894, 12, 2150, 16, 380, 892, 4672, 2018, 2668, 62, 19786, 9247, 2187, 9744, 16, 2213, 87, 225, 1894, 30, 738, 87, 64, 82, 6, 738, 261, 2920, 329, 67, 1589, 16, 261, 2150, 738, 501, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1894, 12, 2150, 16, 380, 892, 4672, 2018, 2668, 62, 19786, 9247, 2187, 9744, 16, 2213, 87, 225, 1894, 30, 738, 87, 64, 82, 6, 738, 261, 2920, 329, 67, 1589, 16, 261, 2150, 738, 501, ...
alpha=None, beta=None,
def gradients_wrt_atomic_parameters(self, selection=None, site=False, u_iso=False, u_aniso=False, occupancy=False, alpha=None, beta=None, tan_b_iso_max=None, u_iso_refinable_params=None): manager = self.manager xray_structure = manager.xray_structure if (selection is not None): xray_structure = xray_structure.select(se...
dad46e29e2058fe8ac41e0da65abc4a4148eea56 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/dad46e29e2058fe8ac41e0da65abc4a4148eea56/f_model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21921, 67, 91, 3797, 67, 27718, 67, 3977, 12, 2890, 16, 4421, 33, 7036, 16, 2834, 33, 8381, 16, 582, 67, 9699, 33, 8381, 16, 582, 67, 304, 9699, 33, 8381, 16, 18928, 12514, 33, 8381,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21921, 67, 91, 3797, 67, 27718, 67, 3977, 12, 2890, 16, 4421, 33, 7036, 16, 2834, 33, 8381, 16, 582, 67, 9699, 33, 8381, 16, 582, 67, 304, 9699, 33, 8381, 16, 18928, 12514, 33, 8381,...
if(not in_braket): counter += 1
if(not in_braket): counter += 1 in_braket = False
def partial_line(line, allowed_line_lenght): assert len(line) > 0 brakets = [] found_l, found_r = False, False n_l, n_r = None, None for i_seq, item in enumerate(line): if(item == "<"): found_l = True n_l = i_seq assert not found_r and n_r is None if(item == ">"): found_r = True n_r = i_seq assert found_l and n_l is no...
fe5344ca05b9020a2b9a31e2e21730727a2a37ab /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/fe5344ca05b9020a2b9a31e2e21730727a2a37ab/as_html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4702, 67, 1369, 12, 1369, 16, 2935, 67, 1369, 67, 1897, 75, 647, 4672, 1815, 562, 12, 1369, 13, 405, 374, 16430, 79, 2413, 273, 5378, 1392, 67, 80, 16, 1392, 67, 86, 273, 1083, 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, 4702, 67, 1369, 12, 1369, 16, 2935, 67, 1369, 67, 1897, 75, 647, 4672, 1815, 562, 12, 1369, 13, 405, 374, 16430, 79, 2413, 273, 5378, 1392, 67, 80, 16, 1392, 67, 86, 273, 1083, 16, ...
self._cont_handler.startElement(tup, None, xmlreader.AttributesImpl(attrs, None))
self._cont_handler.startElementNS(pair, None, self._attrs)
def start_element_ns(self, name, attrs): pair = name.split() if len(pair) == 1: tup = (None, name) else: tup = pair
f43cf31f4a60091af8b2146f4589be53a6d76b8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f43cf31f4a60091af8b2146f4589be53a6d76b8c/expatreader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 2956, 67, 2387, 12, 2890, 16, 508, 16, 3422, 4672, 3082, 273, 508, 18, 4939, 1435, 309, 562, 12, 6017, 13, 422, 404, 30, 15822, 273, 261, 7036, 16, 508, 13, 469, 30, 15822, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 787, 67, 2956, 67, 2387, 12, 2890, 16, 508, 16, 3422, 4672, 3082, 273, 508, 18, 4939, 1435, 309, 562, 12, 6017, 13, 422, 404, 30, 15822, 273, 261, 7036, 16, 508, 13, 469, 30, 15822, ...
q = q.filter(Q(review_requests__public=True) | Q(review_requests__submitter=user) & Q(review_requests__submitter__is_active=True) & Q(review_requests__status='P'))
q = q.filter((Q(review_requests__public=True) | Q(review_requests__submitter=user)) & Q(review_requests__submitter__is_active=True) & Q(review_requests__status='P'))
def load_extra_state(self, profile): group = self.request.GET.get('group', '') view = self.request.GET.get('view', self.default_view) user = self.request.user
60e84c853e899500210532ce81fe7ea68798faeb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1600/60e84c853e899500210532ce81fe7ea68798faeb/datagrids.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 7763, 67, 2019, 12, 2890, 16, 3042, 4672, 1041, 273, 365, 18, 2293, 18, 3264, 18, 588, 2668, 1655, 2187, 28707, 1476, 273, 365, 18, 2293, 18, 3264, 18, 588, 2668, 1945, 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, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 7763, 67, 2019, 12, 2890, 16, 3042, 4672, 1041, 273, 365, 18, 2293, 18, 3264, 18, 588, 2668, 1655, 2187, 28707, 1476, 273, 365, 18, 2293, 18, 3264, 18, 588, 2668, 1945, 2187,...
nc = '\\newcommand'
def get_style_defs(self, arg=''): """ Return the \\newcommand sequences needed to define the commands used to format text in the verbatim environment. ``arg`` is ignored. """ nc = '\\newcommand' cp = self.commandprefix return ( '%s\\%sZat{@}\n%s\\%sZlb{[}\n%s\\%sZrb{]}\n' % (nc, cp, nc, cp, nc, cp) + '\n'.join(['\\newc...
4d385e994dd93f663c8e5897bfa9d153388d863a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6148/4d385e994dd93f663c8e5897bfa9d153388d863a/latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4060, 67, 12537, 12, 2890, 16, 1501, 2218, 11, 4672, 3536, 2000, 326, 1736, 2704, 3076, 8463, 3577, 358, 4426, 326, 4364, 1399, 358, 740, 977, 316, 326, 29526, 3330, 18, 12176, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4060, 67, 12537, 12, 2890, 16, 1501, 2218, 11, 4672, 3536, 2000, 326, 1736, 2704, 3076, 8463, 3577, 358, 4426, 326, 4364, 1399, 358, 740, 977, 316, 326, 29526, 3330, 18, 12176, ...
def _julianday(self,yr,mo,dy): y,m,d=long(yr),long(mo),long(dy) if m > 12L: y=y+m/12L m=m%12L elif m < 1L: m=-m y=y-m/12L-1L m=12L-m%12L if y > 0L: yr_correct=0L else: yr_correct=3L if m < 3L: y, m=y-1L,m+12L if y*10000L+m*100L+d > 15821014L: b=2L-y/100L+y/400L else: b=0L return (1461L*y-yr_correct)/4L+306001L*(m+...
def _julianday(self,yr,mo,dy): y,m,d=long(yr),long(mo),long(dy) if m > 12L: y=y+m/12L m=m%12L elif m < 1L: m=-m y=y-m/12L-1L m=12L-m%12L if y > 0L: yr_correct=0L else: yr_correct=3L if m < 3L: y, m=y-1L,m+12L if y*10000L+m*100L+d > 15821014L: b=2L-y/100L+y/400L else: b=0L return (1461L*y-yr_correct)/4L+306001L*(m+...
befc802c3f8f99550f565b61586bed86f5a03c2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/befc802c3f8f99550f565b61586bed86f5a03c2d/DateTime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 28034, 464, 528, 12, 2890, 16, 30468, 16, 8683, 16, 15680, 4672, 677, 16, 81, 16, 72, 33, 5748, 12, 30468, 3631, 5748, 12, 8683, 3631, 5748, 12, 15680, 13, 309, 312, 405, 2593, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28034, 464, 528, 12, 2890, 16, 30468, 16, 8683, 16, 15680, 4672, 677, 16, 81, 16, 72, 33, 5748, 12, 30468, 3631, 5748, 12, 8683, 3631, 5748, 12, 15680, 13, 309, 312, 405, 2593, ...
all_proc_results = [script] + args
environ=clean_environ(self.environ)
def run(self, script, *args, **kw): """ Run the command, with the given arguments. The ``script`` argument can have space-separated arguments, or you can use the positional arguments.
c39d56b5208d2509cb30fe1ab8fb1f4136b925f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8710/c39d56b5208d2509cb30fe1ab8fb1f4136b925f2/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 2728, 16, 380, 1968, 16, 2826, 9987, 4672, 3536, 1939, 326, 1296, 16, 598, 326, 864, 1775, 18, 225, 1021, 12176, 4263, 10335, 1237, 848, 1240, 3476, 17, 24622, 1775, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 12, 2890, 16, 2728, 16, 380, 1968, 16, 2826, 9987, 4672, 3536, 1939, 326, 1296, 16, 598, 326, 864, 1775, 18, 225, 1021, 12176, 4263, 10335, 1237, 848, 1240, 3476, 17, 24622, 1775, ...
authors = web.ctx.site.things({'key~': '/a/OL*', 'sort': '-id', 'limit': 1}) key = '/a/OL%dA' % (1 + int(web.numify(authors[0])))
authors = web.query("select key from thing where site_id=1 and key LIKE '/a/OL%%A' order by cast(ltrim(rtrim(key, 'A'), '/a/OL') as int) desc limit 1") a = authors[0].key key = '/a/OL%dA' % (1 + int(web.numify(a)))
def POST(self): i = web.input("name") if len(i.name) < 2: return web.badrequest() authors = web.ctx.site.things({'key~': '/a/OL*', 'sort': '-id', 'limit': 1}) key = '/a/OL%dA' % (1 + int(web.numify(authors[0]))) web.ctx.site.write({'create': 'unless_exists', 'key': key, 'name': i.name, 'type': dict(key='/type/author')}...
723f98d84c06ff73ca4ae4855d2854cb21cf775b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3913/723f98d84c06ff73ca4ae4855d2854cb21cf775b/code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5485, 12, 2890, 4672, 277, 273, 3311, 18, 2630, 2932, 529, 7923, 309, 562, 12, 77, 18, 529, 13, 411, 576, 30, 327, 3311, 18, 8759, 2293, 1435, 225, 14494, 273, 3311, 18, 2271, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5485, 12, 2890, 4672, 277, 273, 3311, 18, 2630, 2932, 529, 7923, 309, 562, 12, 77, 18, 529, 13, 411, 576, 30, 327, 3311, 18, 8759, 2293, 1435, 225, 14494, 273, 3311, 18, 2271, 2932, ...
web_page_url = mm_cfg.DEFAULT_URL_PATTERN % mm_cfg.DEFAULT_URL_HOST mailhost = mm_cfg.DEFAULT_EMAIL_HOST
web_page_url = config.DEFAULT_URL_PATTERN % config.DEFAULT_URL_HOST mailhost = config.DEFAULT_EMAIL_HOST
def fix_url(mlist, *args): try: opts, args = getopt.getopt(args, 'u:v', ['urlhost=', 'verbose']) except getopt.error, msg: usage(1, msg) verbose = 0 urlhost = mailhost = None for opt, arg in opts: if opt in ('-u', '--urlhost'): urlhost = arg elif opt in ('-v', '--verbose'): verbose = 1 if urlhost: web_page_url = mm_c...
fcb5f465c4f69b41e131cc177baa39db7693bb44 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/fcb5f465c4f69b41e131cc177baa39db7693bb44/fix_url.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 67, 718, 12, 781, 376, 16, 380, 1968, 4672, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 1968, 16, 296, 89, 30, 90, 2187, 10228, 718, 2564, 33, 2187, 296, 11369, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 718, 12, 781, 376, 16, 380, 1968, 4672, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 1968, 16, 296, 89, 30, 90, 2187, 10228, 718, 2564, 33, 2187, 296, 11369, ...
self.statemachine.node += self.unindentwarning()
self.statemachine.node += self.unindent_warning( 'Enumerated list')
def enumerator(self, match, context, nextstate): """Enumerated List Item""" format, sequence, text, ordinal = self.parse_enumerator(match) if ordinal is None: msg = self.statemachine.memo.reporter.error( ('Enumerated list start value invalid at line %s: ' '%r (sequence %r)' % (self.statemachine.abslineno(), text, seque...
519a9371a95abd6fdb5d1592e8f592b84dddf678 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/519a9371a95abd6fdb5d1592e8f592b84dddf678/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24679, 12, 2890, 16, 845, 16, 819, 16, 1024, 2019, 4672, 3536, 3572, 19007, 987, 4342, 8395, 740, 16, 3102, 16, 977, 16, 12675, 273, 365, 18, 2670, 67, 7924, 7385, 12, 1916, 13, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24679, 12, 2890, 16, 845, 16, 819, 16, 1024, 2019, 4672, 3536, 3572, 19007, 987, 4342, 8395, 740, 16, 3102, 16, 977, 16, 12675, 273, 365, 18, 2670, 67, 7924, 7385, 12, 1916, 13, 309, ...
[ 'Strings', TERMINATED_UCS16_Array, dict(count = lambda x: x['NumStrings'])],
[ 'Strings', TERMINATED_UCS16_Array, dict(count = lambda x: x['NumStrings'], offset= lambda x: int(x['StringOffset']))],
def size(self): """ The size of this structure is determined by the size element """ return self['size'].get_value()
8055dae454cf701f7154aa41278f30f57d45d553 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5568/8055dae454cf701f7154aa41278f30f57d45d553/EVTLog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 963, 12, 2890, 4672, 3536, 1021, 963, 434, 333, 3695, 353, 11383, 635, 326, 963, 930, 3536, 327, 365, 3292, 1467, 29489, 588, 67, 1132, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 963, 12, 2890, 4672, 3536, 1021, 963, 434, 333, 3695, 353, 11383, 635, 326, 963, 930, 3536, 327, 365, 3292, 1467, 29489, 588, 67, 1132, 1435, 225, 2, -100, -100, -100, -100, -100, -100, ...
for part in visitor_attributes:
for part in self.visitor_attributes:
def translate(self): visitor = self.translator_class(self.document) self.document.walkabout(visitor) # copy parts for part in visitor_attributes: setattr(self, part, getattr(visitor, part)) self.output = self.apply_template()
1a925b6a0b029e2b3f887bb89ccada59f19555b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1532/1a925b6a0b029e2b3f887bb89ccada59f19555b7/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4204, 12, 2890, 4672, 8000, 273, 365, 18, 17879, 67, 1106, 12, 2890, 18, 5457, 13, 365, 18, 5457, 18, 11348, 21071, 12, 3516, 1811, 13, 468, 1610, 2140, 364, 1087, 316, 365, 18, 3516, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4204, 12, 2890, 4672, 8000, 273, 365, 18, 17879, 67, 1106, 12, 2890, 18, 5457, 13, 365, 18, 5457, 18, 11348, 21071, 12, 3516, 1811, 13, 468, 1610, 2140, 364, 1087, 316, 365, 18, 3516, ...
prev_frac_int = string.atoi(rev_frac_str) - 1;
try: prev_frac_int = string.atoi(rev_frac_str) - 1; except: return "the patch must be created manually"
def BuildPatch(revision, rcs_file): import os, string # NB this needs work we only handle the special cases here. rev_int_str = revision[:string.find(revision, '.')] rev_frac_str = revision[string.find(revision, '.')+1:] prev_frac_int = string.atoi(rev_frac_str) - 1; prev_revision = rev_int_str + '.' + `prev_frac_int` ...
94186666fdb583b5026fe18f78efd884100c39fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/675/94186666fdb583b5026fe18f78efd884100c39fc/cvs2log.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3998, 7332, 12, 13057, 16, 436, 2143, 67, 768, 4672, 1930, 1140, 16, 533, 468, 20096, 333, 4260, 1440, 732, 1338, 1640, 326, 4582, 6088, 2674, 18, 5588, 67, 474, 67, 701, 273, 6350, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3998, 7332, 12, 13057, 16, 436, 2143, 67, 768, 4672, 1930, 1140, 16, 533, 468, 20096, 333, 4260, 1440, 732, 1338, 1640, 326, 4582, 6088, 2674, 18, 5588, 67, 474, 67, 701, 273, 6350, 10...
Returns the Duursama data `v` and `m` of this formally s.d. code `C`
Returns the Duursma data `v` and `m` of this formally s.d. code `C`
def sd_duursma_data(C, i): r""" Returns the Duursama data `v` and `m` of this formally s.d. code `C` and the type number `i` in (1,2,3,4). Does *not* check if this code is actually sd. INPUT: - ``i`` - Type number OUTPUT: - Pair ``(v, m)`` as in Duursama [D]_ REFERENCES: - [D] - I. Duursma, "Extremal weight enum...
f1481b520156da7cdd4d6adefe31299a038fab0a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/f1481b520156da7cdd4d6adefe31299a038fab0a/linear_code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8349, 67, 2544, 25152, 2540, 67, 892, 12, 39, 16, 277, 4672, 436, 8395, 2860, 326, 463, 89, 25152, 2540, 501, 1375, 90, 68, 471, 1375, 81, 68, 434, 333, 646, 1230, 272, 18, 72, 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, 8349, 67, 2544, 25152, 2540, 67, 892, 12, 39, 16, 277, 4672, 436, 8395, 2860, 326, 463, 89, 25152, 2540, 501, 1375, 90, 68, 471, 1375, 81, 68, 434, 333, 646, 1230, 272, 18, 72, 18, ...
return StringIO.StringIO(self.text)
return self.fileclass(self.text) class NoEOFStringIO(StringIO.StringIO): """Like StringIO, but raises AssertionError on EOF. This is used below to test that httplib doesn't try to read more from the underlying file than it should. """ def read(self, n=-1): data = StringIO.StringIO.read(self, n) if data == '': raise A...
def makefile(self, mode, bufsize=None): if mode != 'r' and mode != 'rb': raise httplib.UnimplementedFileMode() return StringIO.StringIO(self.text)
396af79b56ec1b3fbed9b33e28f1ffa85dc11241 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/396af79b56ec1b3fbed9b33e28f1ffa85dc11241/test_httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 768, 12, 2890, 16, 1965, 16, 1681, 1467, 33, 7036, 4672, 309, 1965, 480, 296, 86, 11, 471, 1965, 480, 296, 6731, 4278, 1002, 15851, 6673, 18, 984, 21099, 812, 2309, 1435, 327, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 768, 12, 2890, 16, 1965, 16, 1681, 1467, 33, 7036, 4672, 309, 1965, 480, 296, 86, 11, 471, 1965, 480, 296, 6731, 4278, 1002, 15851, 6673, 18, 984, 21099, 812, 2309, 1435, 327, 15...
mock.util.do( ["tar"] + self.compressArgs + ["-cf", self.rootCacheFile, "-C", self.rootObj.makeChrootPath(), "."], shell=False )
try: mock.util.do( ["tar"] + self.compressArgs + ["-cf", self.rootCacheFile, "-C", self.rootObj.makeChrootPath(), "."], shell=False ) except: if os.path.exists(self.rootCacheFile): os.remove(self.rootCacheFile) raise
def _rootCachePostInitHook(self): try: self._rootCacheLock(shared=0) # nuke any rpmdb tmp files for tmp in glob(self.rootObj.makeChrootPath('var/lib/rpm/__db*')): os.unlink(tmp)
6bbecd75ebd1d9c484387f2a77443205bfb34b6f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7328/6bbecd75ebd1d9c484387f2a77443205bfb34b6f/root_cache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3085, 1649, 3349, 2570, 5394, 12, 2890, 4672, 775, 30, 365, 6315, 3085, 1649, 2531, 12, 11574, 33, 20, 13, 468, 9244, 4491, 1281, 8715, 27574, 1853, 1390, 364, 1853, 316, 4715, 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, 389, 3085, 1649, 3349, 2570, 5394, 12, 2890, 4672, 775, 30, 365, 6315, 3085, 1649, 2531, 12, 11574, 33, 20, 13, 468, 9244, 4491, 1281, 8715, 27574, 1853, 1390, 364, 1853, 316, 4715, 12, ...
def createTestInstance(name): """Looks up and calls a callable object by its string name, which should include its module name, e.g. 'widgettests.WidgetTestSuite'. """ if '.' not in name: raise ValueError,"Incomplete name; expected 'package.suiteobj'" dotPos = string.rfind(name,'.') last = name[dotPos+1:] if not len(la...
class _VerboseTextTestResult(TestResult): """A test result class that can print formatted text results to a stream. Used by VerboseTextTestRunner. """ def __init__(self, stream, descriptions): TestResult.__init__(self) self.stream = stream self.lastFailure = None self.descriptions = descriptions def startTest(se...
def createTestInstance(name): """Looks up and calls a callable object by its string name, which should include its module name, e.g. 'widgettests.WidgetTestSuite'. """ if '.' not in name: raise ValueError,"Incomplete name; expected 'package.suiteobj'" dotPos = string.rfind(name,'.') last = name[dotPos+1:] if not len(la...
fac958bd81e4609cbbce6fe5e9a0e95fb8305459 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/fac958bd81e4609cbbce6fe5e9a0e95fb8305459/unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 4709, 1442, 12, 529, 4672, 3536, 20475, 731, 471, 4097, 279, 4140, 733, 635, 2097, 533, 508, 16, 1492, 1410, 2341, 2097, 1605, 508, 16, 425, 18, 75, 18, 296, 6587, 16341, 18, 4609...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 4709, 1442, 12, 529, 4672, 3536, 20475, 731, 471, 4097, 279, 4140, 733, 635, 2097, 533, 508, 16, 1492, 1410, 2341, 2097, 1605, 508, 16, 425, 18, 75, 18, 296, 6587, 16341, 18, 4609...
for angle in angles: sa = sin(angle)*radius ca = cos(angle)*radius spoke = Line(centerx, centery, centerx + ca, centery + sa, strokeWidth = 0.5)
csa = [] angle = self.startAngle*pi/180 direction = self.direction == "clockwise" and -1 or 1 angleBetween = direction*(2 * pi)/n for i in xrange(n): car = cos(angle)*radius sar = sin(angle)*radius csa.append((car,sar,angle)) spoke = Line(centerx, centery, centerx + car, centery + sar, strokeWidth = 0.5)
def draw(self): # normalize slice data g = self.makeBackground() or Group()
7560fdfa0895186c8f0183a636ad5504edbdd459 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/7560fdfa0895186c8f0183a636ad5504edbdd459/spider.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 4672, 468, 3883, 2788, 501, 314, 273, 365, 18, 6540, 8199, 1435, 578, 3756, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3724, 12, 2890, 4672, 468, 3883, 2788, 501, 314, 273, 365, 18, 6540, 8199, 1435, 578, 3756, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
F = N.zeros(3, dtype=N.float64); Z = N.zeros(3, dtype=N.float64);
F = NP.zeros(3, dtype=NP.float64); Z = NP.zeros(3, dtype=NP.float64);
def build_scale_image(image, scale): # # rescale the 'mat' (voxel to physical mapping matrix) # (layers, rows, cols) = image['data'].shape M = image['mat'] * scale # dimensions D = N.zeros(3, dtype=N.int32); # Gaussian kernel - fill in with build_fwhm() F = N.zeros(3, dtype=N.float64); Z = N.zeros(3, dtype=N.float64); ...
de681f926e982b0212f2f58bf637917926737f89 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/de681f926e982b0212f2f58bf637917926737f89/_registration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 5864, 67, 2730, 12, 2730, 16, 3159, 4672, 468, 468, 30323, 326, 296, 7373, 11, 261, 90, 2409, 292, 358, 11640, 2874, 3148, 13, 468, 261, 10396, 16, 2595, 16, 5347, 13, 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, 1361, 67, 5864, 67, 2730, 12, 2730, 16, 3159, 4672, 468, 468, 30323, 326, 296, 7373, 11, 261, 90, 2409, 292, 358, 11640, 2874, 3148, 13, 468, 261, 10396, 16, 2595, 16, 5347, 13, 273, ...
context=context)
context=local_context)
def get_shortage(self, cursor, user, location_id, product_id, min_date, max_date, min_date_qty, order_point=None, context=None): """ Return between min_date and max_date the first date where the stock quantity is less than the minimal quantity and the smallest stock quantity in the interval or None if there is no date...
85c9b59dfc44b1ef05c2fbb439e5e4ad0798357a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9299/85c9b59dfc44b1ef05c2fbb439e5e4ad0798357a/purchase_request.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 6620, 410, 12, 2890, 16, 3347, 16, 729, 16, 2117, 67, 350, 16, 3017, 67, 350, 16, 1131, 67, 712, 16, 943, 67, 712, 16, 1131, 67, 712, 67, 85, 4098, 16, 1353, 67, 1153, 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, 336, 67, 6620, 410, 12, 2890, 16, 3347, 16, 729, 16, 2117, 67, 350, 16, 3017, 67, 350, 16, 1131, 67, 712, 16, 943, 67, 712, 16, 1131, 67, 712, 67, 85, 4098, 16, 1353, 67, 1153, 3...
def readline(self, delay=0): line = self._winpipe.readline(delay)
def readline(self, timeout=0): line = self._winpipe.readline(timeout)
def readline(self, delay=0): line = self._winpipe.readline(delay) return line
259b0e2d22d7af57897e28e9b1496a75999fa29f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6471/259b0e2d22d7af57897e28e9b1496a75999fa29f/gnuplotpipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 16, 2021, 33, 20, 4672, 980, 273, 365, 6315, 8082, 14772, 18, 896, 1369, 12, 4538, 13, 327, 980, 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, 12023, 12, 2890, 16, 2021, 33, 20, 4672, 980, 273, 365, 6315, 8082, 14772, 18, 896, 1369, 12, 4538, 13, 327, 980, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
self._check_buildset(t, bsid, now)
self._check_buildset(t, bsid, now)
def cancel_buildrequests(self, brids): # TODO: we aren't entirely sure if it'd be safe to just delete the # buildrequest: what else might be waiting on it that would then just # hang forever?. _check_buildset() should handle it well (an empty # buildset will appear complete and SUCCESS-ful). But we haven't # thought i...
f337ea7aea2e58d32a4fcb0475f7157c81e9d385 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12355/f337ea7aea2e58d32a4fcb0475f7157c81e9d385/connector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3755, 67, 3510, 11420, 12, 2890, 16, 324, 1691, 87, 4672, 225, 468, 2660, 30, 732, 11526, 1404, 21658, 3071, 309, 518, 14271, 506, 4183, 358, 2537, 1430, 326, 468, 1361, 2293, 30, 4121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3755, 67, 3510, 11420, 12, 2890, 16, 324, 1691, 87, 4672, 225, 468, 2660, 30, 732, 11526, 1404, 21658, 3071, 309, 518, 14271, 506, 4183, 358, 2537, 1430, 326, 468, 1361, 2293, 30, 4121, ...
return self.pool.get('sale.order.line').product_id_change(cr, uid, ids, pricelist, product, qty=0, uom=False, qty_uos=0, uos=False, name='', partner_id=False, lang=False, update_tax=True, date_order=False)
return self.pool.get('sale.order.line').product_id_change(cr, uid, ids, pricelist, product, qty=qty, uom=uom, qty_uos=qty_uos, uos=uos, name=name, partner_id=partner_id, fiscal_position=fiscal_position, lang=lang, update_tax=update_tax, date_order=date_order)
def product_id_change(self, cr, uid, ids, pricelist, product, qty=0, uom=False, qty_uos=0, uos=False, name='', partner_id=False, lang=False, update_tax=True, date_order=False): return self.pool.get('sale.order.line').product_id_change(cr, uid, ids, pricelist, product, qty=0, uom=False, qty_uos=0, uos=False, name='', p...
c3ecae300b51b41e529e87af3b8a4554a185c2e7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/c3ecae300b51b41e529e87af3b8a4554a185c2e7/hotel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3017, 67, 350, 67, 3427, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 846, 335, 5449, 16, 3017, 16, 26667, 33, 20, 16, 582, 362, 33, 8381, 16, 26667, 67, 89, 538, 33, 20, 16, 582, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3017, 67, 350, 67, 3427, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 846, 335, 5449, 16, 3017, 16, 26667, 33, 20, 16, 582, 362, 33, 8381, 16, 26667, 67, 89, 538, 33, 20, 16, 582, ...
^ ^ ^ ^ ^ ^ ^
def complex(a, b): c = zeros(a.shape, dtype=complex_)
59b4e95f7f51e2949dfc41d870520dd7f49c95eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/59b4e95f7f51e2949dfc41d870520dd7f49c95eb/test_numexpr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7233, 12, 69, 16, 324, 4672, 276, 273, 4922, 12, 69, 18, 4867, 16, 3182, 33, 14259, 67, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 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, 7233, 12, 69, 16, 324, 4672, 276, 273, 4922, 12, 69, 18, 4867, 16, 3182, 33, 14259, 67, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
elif item.description.find('Hobbyist') > -1:
elif item.description.find('Hobbyist') > -1 or item.description.find('Hobbiest') > -1:
def _registration_badge_data(self, registration, stamp = False): if registration: dinner_tickets = 0 ticket = '' for invoice in registration.person.invoices: if invoice.paid() and not invoice.void: for item in invoice.items: if item.description.startswith('Dinner Ticket'): dinner_tickets += item.qty elif item.descripti...
aac98a34f245cd9aa34c908086db67ee60797cf2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12856/aac98a34f245cd9aa34c908086db67ee60797cf2/registration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14170, 67, 21245, 67, 892, 12, 2890, 16, 7914, 16, 14429, 273, 1083, 4672, 309, 7914, 30, 302, 7872, 67, 6470, 2413, 273, 374, 9322, 273, 875, 364, 9179, 316, 7914, 18, 12479, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14170, 67, 21245, 67, 892, 12, 2890, 16, 7914, 16, 14429, 273, 1083, 4672, 309, 7914, 30, 302, 7872, 67, 6470, 2413, 273, 374, 9322, 273, 875, 364, 9179, 316, 7914, 18, 12479, 18,...
os.system("mv *.tar.gz %s" % dir)
for name in glob("*.tar.gz"): old_location = os.path.join(".", name) shutil.move(old_location, dir)
def package(dir, version, s3bucket, src_filename, sample_filename): if not os.path.exists(dir): os.makedirs(dir) _substitute("src/plugins/coily-template", "src/plugins/coily", [("version", version)]) os.system("chmod 755 src/plugins/coily") build("src", version, s3bucket, src_filename) build("samples", version, s3buck...
c4bb3a4fa4dc75c0cbd920598cc37b6465bc6d5a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7713/c4bb3a4fa4dc75c0cbd920598cc37b6465bc6d5a/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2181, 12, 1214, 16, 1177, 16, 272, 23, 7242, 16, 1705, 67, 3459, 16, 3296, 67, 3459, 4672, 309, 486, 1140, 18, 803, 18, 1808, 12, 1214, 4672, 1140, 18, 81, 9477, 10539, 12, 1214, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2181, 12, 1214, 16, 1177, 16, 272, 23, 7242, 16, 1705, 67, 3459, 16, 3296, 67, 3459, 4672, 309, 486, 1140, 18, 803, 18, 1808, 12, 1214, 4672, 1140, 18, 81, 9477, 10539, 12, 1214, 13,...
Bd = np.dot(vh[:-2,:].T, np.dot(diag(1.0/s),u.T))
Bd = dot(vh[:-2,:].T, dot(np.diag(1.0/s),u.T))
def _find_smoothest3(xk, yk): N = len(xk)-1 Np1 = N+1 Nm1 = N-1 dk = np.diff(xk) # find B and then take pseudo-inverse B = np.zeros((Nm1,Np1)) _setdiag(B,0,dk[:-1]) _setdiag(B,1,2*(dk[1:]+dk[:-1])) _setdiag(B,2,dk[1:]) u,s,vh = np.dual.svd(B) V2 = vh[-2:,:].T Bd = np.dot(vh[:-2,:].T, np.dot(diag(1.0/s),u.T)) b0 = np.di...
8bc5f1be89a559ce7e2cf0390ae819158ba045a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/8bc5f1be89a559ce7e2cf0390ae819158ba045a1/interpolate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 67, 26647, 395, 23, 12, 92, 79, 16, 677, 79, 4672, 423, 273, 562, 12, 92, 79, 24950, 21, 423, 84, 21, 273, 423, 15, 21, 423, 81, 21, 273, 423, 17, 21, 20320, 273, 1130...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4720, 67, 26647, 395, 23, 12, 92, 79, 16, 677, 79, 4672, 423, 273, 562, 12, 92, 79, 24950, 21, 423, 84, 21, 273, 423, 15, 21, 423, 81, 21, 273, 423, 17, 21, 20320, 273, 1130...
commentStart = messageBody.index("\n\n\n", diffStart)
commentStart = messageBody.find("\n\n\n", diffStart) or diffStart
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
b5104f10e1adbd9066199d0f1152edc65ef0543a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3483/b5104f10e1adbd9066199d0f1152edc65ef0543a/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, ...
pass
sec.setRepeats(2)
def updateAdvanced(self, slotid): sec = eDVBSatelliteEquipmentControl.getInstance() lnbSat = {} for x in range(1,33): lnbSat[x] = [] for x in self.NimManager.satList: lnb = config.Nims[slotid].advanced.sat[x[1]].lnb.value if lnb != 0: lnbSat[lnb].append(x[1]) for x in range(1,33): if len(lnbSat[x]) > 0: currLnb = confi...
45b15800295dbe7e8aa64c7c97e62ed7a9f0a137 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/45b15800295dbe7e8aa64c7c97e62ed7a9f0a137/NimManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 23618, 12, 2890, 16, 4694, 350, 4672, 1428, 273, 425, 30199, 12692, 270, 19345, 13142, 11568, 3367, 18, 588, 1442, 1435, 328, 6423, 15163, 273, 2618, 364, 619, 316, 1048, 12, 21, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 23618, 12, 2890, 16, 4694, 350, 4672, 1428, 273, 425, 30199, 12692, 270, 19345, 13142, 11568, 3367, 18, 588, 1442, 1435, 328, 6423, 15163, 273, 2618, 364, 619, 316, 1048, 12, 21, 1...
figure(1) plot(xr2.keys(),xr2.values()) plot(xi2.keys(),xi2.values(),'r')
keys = xr2.keys() keys.sort() plot(keys,[xr2[k] for k in keys]) keys = xi2.keys() keys.sort() plot(keys,[xi2[k] for k in keys])
def plot_systematics(filelist,cp,dir,epoch,dag,opts): flist = [] for file in filelist: if os.path.split(file)[-1][:8] == "out-bin-": flist.append(file) freq = [] freqfile = cp.get('noisecomp','freq-file') for line in open(freqfile,'r').readlines(): freq.append(float(line.strip())) hfr1 = {} hfi1 = {} htr1 = {} hti1 = ...
da21469de3d5dc0444d38910fa554bbd3b46754d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/da21469de3d5dc0444d38910fa554bbd3b46754d/strain.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 67, 4299, 270, 2102, 12, 7540, 5449, 16, 4057, 16, 1214, 16, 12015, 16, 30204, 16, 4952, 4672, 284, 1098, 273, 5378, 364, 585, 316, 26204, 30, 309, 1140, 18, 803, 18, 4939, 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, 3207, 67, 4299, 270, 2102, 12, 7540, 5449, 16, 4057, 16, 1214, 16, 12015, 16, 30204, 16, 4952, 4672, 284, 1098, 273, 5378, 364, 585, 316, 26204, 30, 309, 1140, 18, 803, 18, 4939, 12, ...
task.curdirnode = self.path
def apply_tex(self): if not getattr(self, 'type', None) in ['latex', 'pdflatex']: self.type = 'pdflatex' tree = self.bld outs = Utils.to_list(getattr(self, 'outs', [])) # prompt for incomplete files (else the batchmode is used) self.env['PROMPT_LATEX'] = getattr(self, 'prompt', 1) deps_lst = [] if getattr(self, 'de...
60e1bd8c71f95504ca26d77d60fa5849f3f6351a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2886/60e1bd8c71f95504ca26d77d60fa5849f3f6351a/tex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 21763, 12, 2890, 4672, 309, 486, 3869, 12, 2890, 16, 296, 723, 2187, 599, 13, 316, 10228, 26264, 2187, 296, 7699, 26264, 3546, 30, 365, 18, 723, 273, 296, 7699, 26264, 11, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 21763, 12, 2890, 4672, 309, 486, 3869, 12, 2890, 16, 296, 723, 2187, 599, 13, 316, 10228, 26264, 2187, 296, 7699, 26264, 3546, 30, 365, 18, 723, 273, 296, 7699, 26264, 11, 22...
'/usr/lib',
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
05d4d562d70568469b12cb2b45dfc78886f8c5d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/05d4d562d70568469b12cb2b45dfc78886f8c5d9/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
continue if filter_child.localName == 'filter':
continue if filter_child.localName == 'filter':
def get_domain(self, cr, filters): res = [] dirobj = self.context._dirobj uid = self.context.uid ctx = self.context.context.copy() ctx.update(self.dctx) calendar_obj = dirobj.pool.get('basic.calendar') if not filters: return res if filters.localName == 'calendar-query': res = [] for filter_child in filters.childNodes: ...
fe0ee384c7b5a64c12f8725027352df173701456 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/fe0ee384c7b5a64c12f8725027352df173701456/caldav_node.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4308, 12, 2890, 16, 4422, 16, 3415, 4672, 400, 273, 5378, 4314, 303, 441, 273, 365, 18, 2472, 6315, 3211, 303, 441, 4555, 273, 365, 18, 2472, 18, 1911, 1103, 273, 365, 18, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4308, 12, 2890, 16, 4422, 16, 3415, 4672, 400, 273, 5378, 4314, 303, 441, 273, 365, 18, 2472, 6315, 3211, 303, 441, 4555, 273, 365, 18, 2472, 18, 1911, 1103, 273, 365, 18, 2...
href = spine0.abshref(img.get('src'))
href = hcover.abshref(img.get('src'))
def _ensure_cover_image(self): cover = None spine0 = self.spine[0] html = spine0.data if self.metadata.cover: id = str(self.metadata.cover[0]) cover = self.manifest.ids[id] elif MS_COVER_TYPE in self.guide: href = self.guide[MS_COVER_TYPE].href cover = self.manifest.hrefs[href] elif xpath(html, '//h:img[position()=1]')...
c3cffa07fe2ecb41921b6d1a1c59ad9b8c9a60ba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/c3cffa07fe2ecb41921b6d1a1c59ad9b8c9a60ba/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 15735, 67, 3165, 67, 2730, 12, 2890, 4672, 5590, 273, 599, 1694, 558, 20, 273, 365, 18, 1752, 558, 63, 20, 65, 1729, 273, 1694, 558, 20, 18, 892, 309, 365, 18, 4165, 18, 3165, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15735, 67, 3165, 67, 2730, 12, 2890, 4672, 5590, 273, 599, 1694, 558, 20, 273, 365, 18, 1752, 558, 63, 20, 65, 1729, 273, 1694, 558, 20, 18, 892, 309, 365, 18, 4165, 18, 3165, ...
w['layers'].set_markup("<i>%s</i>" % self._layers[4])
w['layers'].set_markup("<i>%s</i>" % self._layers[0])
def set_details(self, item=None):#{{{ from loan import get_loan_info, get_loan_history if item is None: item = {} if item.has_key('movie_id') and item['movie_id']: self._movie_id = item['movie_id'] else: self._movie_id = None w = self.widgets['movie'] if item.has_key('number') and item['number']: w['number'].set_text(...
6bf3ef37d253dfa0b2e01515cabf753b1818bcf3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2687/6bf3ef37d253dfa0b2e01515cabf753b1818bcf3/main_treeview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 6395, 12, 2890, 16, 761, 33, 7036, 4672, 3642, 12187, 628, 28183, 1930, 336, 67, 383, 304, 67, 1376, 16, 336, 67, 383, 304, 67, 8189, 309, 761, 353, 599, 30, 761, 273, 2618,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 6395, 12, 2890, 16, 761, 33, 7036, 4672, 3642, 12187, 628, 28183, 1930, 336, 67, 383, 304, 67, 1376, 16, 336, 67, 383, 304, 67, 8189, 309, 761, 353, 599, 30, 761, 273, 2618,...
assume("We're assuming author (%s) will live to age %d, the same as the oldest person ever in Canada so far." % \ (aname, OLDEST_PERSON_EVER_IN_CANADA))
assume("We're assuming the author will live to age %d, the same as the oldest person ever in Canada so far." % OLDEST_PERSON_EVER_IN_CANADA)
def y(author, attr): """Extract attribute (i.e. a string-valued date field) from author and convert it to integer. If field is absent or no valid conversion, return None.""" r = author.get(attr, None) try: return int(r) except (ValueError, AttributeError, TypeError): return None
b082f9d88a04dc6649bd6ce6878fc48099b9042b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3913/b082f9d88a04dc6649bd6ce6878fc48099b9042b/ca.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 677, 12, 4161, 16, 1604, 4672, 3536, 4976, 1566, 261, 77, 18, 73, 18, 279, 533, 17, 4531, 329, 1509, 652, 13, 628, 2869, 471, 1765, 518, 358, 3571, 18, 225, 971, 652, 353, 17245, 578...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 677, 12, 4161, 16, 1604, 4672, 3536, 4976, 1566, 261, 77, 18, 73, 18, 279, 533, 17, 4531, 329, 1509, 652, 13, 628, 2869, 471, 1765, 518, 358, 3571, 18, 225, 971, 652, 353, 17245, 578...
target_file=libtbx.path.norm_join(self.bin_path, file_name))
target_file=file_name)
def refresh(self): self.assemble_pythonpath() self.write_setpath_files() if (len(self.missing_for_build) == 0): self.write_SConstruct() if (os.name != "nt"): self.write_run_tests_csh() if (not os.path.isdir(self.bin_path)): os.makedirs(self.bin_path) for file_name in ("libtbx.python", "python"): self.write_dispatcher( ...
80bc448b40bcc935e44fa4ac71d36288a12de176 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/80bc448b40bcc935e44fa4ac71d36288a12de176/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 12, 2890, 4672, 365, 18, 29676, 67, 8103, 803, 1435, 365, 18, 2626, 67, 542, 803, 67, 2354, 1435, 309, 261, 1897, 12, 2890, 18, 7337, 67, 1884, 67, 3510, 13, 422, 374, 4672, 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, 4460, 12, 2890, 4672, 365, 18, 29676, 67, 8103, 803, 1435, 365, 18, 2626, 67, 542, 803, 67, 2354, 1435, 309, 261, 1897, 12, 2890, 18, 7337, 67, 1884, 67, 3510, 13, 422, 374, 4672, 36...
self.assertIsInstance(outputFile, AtomicFile)
self.assertTrue(isinstance(outputFile, AtomicFile))
def _makeThumbnail( inputFile, outputFile, thumbnailSize, outputFormat='jpeg'): makeThumbnailCalls.append(( inputFile, outputFile, thumbnailSize, outputFormat))
04af3c57d88c9abaaaa4d29fd2380ed41d0c633e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6980/04af3c57d88c9abaaaa4d29fd2380ed41d0c633e/test_people.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6540, 16270, 12, 22014, 16, 15047, 16, 9134, 1225, 16, 27205, 2218, 14423, 11, 4672, 1221, 16270, 10125, 18, 6923, 12443, 22014, 16, 15047, 16, 9134, 1225, 16, 27205, 3719, 2, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6540, 16270, 12, 22014, 16, 15047, 16, 9134, 1225, 16, 27205, 2218, 14423, 11, 4672, 1221, 16270, 10125, 18, 6923, 12443, 22014, 16, 15047, 16, 9134, 1225, 16, 27205, 3719, 2, -100, ...
rep_text_license_fake = u"\n*[[:Image:%s]] seems to have a ''fake license'', license detected: {{tl|%s}}." % (self.imageName, license_found) regexFakeLicense = r"\* ?\[\[:Image:%s\]\] seems to have a ''fake license'', license detected: \{\{tl\|%s\}\}\.$" % (self.imageName, license_found)
rep_text_license_fake = u"\n*[[:Image:%s]] seems to have a ''fake license'', license detected: <nowiki>%s</nowiki>" % (self.imageName, license_found) regexFakeLicense = r"\* ?\[\[:Image:%s\]\] seems to have a ''fake license'', license detected: <nowiki>%s</nowiki>$" % (self.imageName, license_found)
def smartDetection(self, image_text): """ The bot instead of checking if there's a simple template in the image's description, checks also if that template is a license or something else. In this sense this type of check is smart. """ seems_ok = False license_found = None regex_find_licenses = re.compile(r'\{\{(?:[Tt]e...
eba945ebb162ebe546e6c3387209e268c72327ae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/eba945ebb162ebe546e6c3387209e268c72327ae/checkimages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13706, 10214, 12, 2890, 16, 1316, 67, 955, 4672, 3536, 1021, 2512, 3560, 434, 6728, 309, 1915, 1807, 279, 4143, 1542, 316, 326, 1316, 1807, 2477, 16, 4271, 2546, 309, 716, 1542, 353, 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, 13706, 10214, 12, 2890, 16, 1316, 67, 955, 4672, 3536, 1021, 2512, 3560, 434, 6728, 309, 1915, 1807, 279, 4143, 1542, 316, 326, 1316, 1807, 2477, 16, 4271, 2546, 309, 716, 1542, 353, 279...
Extension('Bio.KDTree._CKDTree', ["Bio/KDTree/KDTree.cpp", "Bio/KDTree/KDTree.swig.cpp"], libraries=["stdc++"], language="c++" ),
def is_reportlab_installed(): return can_import("reportlab")
a573247d8dab5e2102e9fc6281b9cc72d84ab8cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/a573247d8dab5e2102e9fc6281b9cc72d84ab8cd/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 6006, 7411, 67, 13435, 13332, 327, 848, 67, 5666, 2932, 6006, 7411, 7923, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 6006, 7411, 67, 13435, 13332, 327, 848, 67, 5666, 2932, 6006, 7411, 7923, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Popup = popups.Default
def create_widgets(self): Composed.create_widgets(self) table = gtk.Table(self.suffices.shape[0], self.suffices.shape[1]*4 - 1) table.set_row_spacings(6) table.set_col_spacings(6) for row_index, row in enumerate(self.fields_array): for col_index, field in enumerate(row): if field.high_widget: if self.short: container =...
3777d4940f9f7ced42f3d961fb447d82d1e9d09d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11052/3777d4940f9f7ced42f3d961fb447d82d1e9d09d/composed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 18148, 12, 2890, 4672, 1286, 7423, 18, 2640, 67, 18148, 12, 2890, 13, 1014, 273, 22718, 18, 1388, 12, 2890, 18, 87, 3809, 1242, 18, 4867, 63, 20, 6487, 365, 18, 87, 3809, 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, 752, 67, 18148, 12, 2890, 4672, 1286, 7423, 18, 2640, 67, 18148, 12, 2890, 13, 1014, 273, 22718, 18, 1388, 12, 2890, 18, 87, 3809, 1242, 18, 4867, 63, 20, 6487, 365, 18, 87, 3809, 12...
msg = '%s: missing %s' % (path, repr(expr.pattern))
msg = '%s: missing %s' % (fpath, repr(expr.pattern))
def find_missing(self): result = [] for dirpath, dirnames, filenames in os.walk(self.directory): for fname in filenames: fpath = os.path.join(dirpath, fname) if self.remove_this(fname, fpath): result.remove(fname) elif self.search_this(fpath): body = open(path, 'r').read() for expr in self.expressions: if not expr.sear...
b01a52e9b26fb7d1cd40af4355d06015d21b8412 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12817/b01a52e9b26fb7d1cd40af4355d06015d21b8412/test_strings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 7337, 12, 2890, 4672, 563, 273, 5378, 364, 17803, 16, 1577, 1973, 16, 9066, 316, 1140, 18, 11348, 12, 2890, 18, 5149, 4672, 364, 5299, 316, 9066, 30, 13543, 273, 1140, 18, 80...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 7337, 12, 2890, 4672, 563, 273, 5378, 364, 17803, 16, 1577, 1973, 16, 9066, 316, 1140, 18, 11348, 12, 2890, 18, 5149, 4672, 364, 5299, 316, 9066, 30, 13543, 273, 1140, 18, 80...
by reducing the poits modulo all primes of good reduction up
by reducing the points modulo all primes of good reduction up
def saturate(self, max_prime=-1, odd_primes_only=False): r""" Saturate this subgroup of the Mordell-Weil group. INPUT: - ``max_prime`` (int, default -1) -- saturation is performed for all primes up to `max_prime`. If `-1` (default) then an upper bound is computed for the primes at which the subgroup may not be satura...
8b53e056cc765e689493ec9632c441ee03a3206a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/8b53e056cc765e689493ec9632c441ee03a3206a/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5942, 295, 340, 12, 2890, 16, 943, 67, 16382, 29711, 21, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 436, 8395, 25793, 295, 340, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5942, 295, 340, 12, 2890, 16, 943, 67, 16382, 29711, 21, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 436, 8395, 25793, 295, 340, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, ...
connection.unlock_completely()
connection.unlock()
def onepass(self): connection=self.connection()
2ecea56fec4a466c983e0862abb4e1245d2011ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6028/2ecea56fec4a466c983e0862abb4e1245d2011ca/vxi_11.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1245, 5466, 12, 2890, 4672, 1459, 33, 2890, 18, 4071, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1245, 5466, 12, 2890, 4672, 1459, 33, 2890, 18, 4071, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
data[n] = browse_null()
new_data[n] = browse_null()
def __getitem__(self, name): if name == 'id': return self._id if name not in self._data[self._id]: # build the list of fields we will fetch
8fa3951b8c9c4aab7d9be881181f2cd832ef83b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/8fa3951b8c9c4aab7d9be881181f2cd832ef83b1/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 508, 4672, 309, 508, 422, 296, 350, 4278, 327, 365, 6315, 350, 309, 508, 486, 316, 365, 6315, 892, 63, 2890, 6315, 350, 14542, 468, 1361, 326, 666, 434,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 508, 4672, 309, 508, 422, 296, 350, 4278, 327, 365, 6315, 350, 309, 508, 486, 316, 365, 6315, 892, 63, 2890, 6315, 350, 14542, 468, 1361, 326, 666, 434,...
if rootNode.parent.parent.type == "call" and rootNode.parent.type == "operand": return rootNode.parent.parent if rootNode.hasChildren(): for child in rootNode.children: foundNode = findQxDefine(child) if foundNode is not None: return foundNode else: return None
if node.hasParentContext("call/operand"): return True return False
def findQxDefine(rootNode): if rootNode.type == "variable": try: variableName = (assembleVariable(rootNode))[0] except tree.NodeAccessException: return None if variableName in ["qx.Bootstrap.define", "qx.Class.define", "qx.Interface.define", "qx.Mixin.define", "qx.List.define", "qx.Theme.define"]: if rootNode.parent.p...
dda93faf4bcff7c90a95d016ef39e92c81fef9a5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/dda93faf4bcff7c90a95d016ef39e92c81fef9a5/treeutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 53, 92, 11644, 12, 3085, 907, 4672, 309, 10181, 18, 723, 422, 315, 6105, 6877, 775, 30, 17834, 273, 261, 29676, 3092, 12, 3085, 907, 3719, 63, 20, 65, 1335, 2151, 18, 907, 9773, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 53, 92, 11644, 12, 3085, 907, 4672, 309, 10181, 18, 723, 422, 315, 6105, 6877, 775, 30, 17834, 273, 261, 29676, 3092, 12, 3085, 907, 3719, 63, 20, 65, 1335, 2151, 18, 907, 9773, ...
readers = {} writers = {}
_readers = { "analyze": ("imaging.analyze","readImage"), "fid": ("imaging.varian.FidImage","FidImage"), "fdf": ("imaging.varian.FDFImage","FDFImage")} _writers = { "analyze": ("imaging.analyze","writeImage")} def _import((modulename, objectname)): module = __import__(modulename, globals(), locals(), (objectname,)) ...
def subImages(self): for subdata in self.data: yield subimage(self, subdata)
2654ec94d7dd179b942ae470cb77e932a8e9f006 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7241/2654ec94d7dd179b942ae470cb77e932a8e9f006/imageio.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 720, 8946, 12, 2890, 4672, 364, 720, 892, 316, 365, 18, 892, 30, 2824, 720, 2730, 12, 2890, 16, 720, 892, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 720, 8946, 12, 2890, 4672, 364, 720, 892, 316, 365, 18, 892, 30, 2824, 720, 2730, 12, 2890, 16, 720, 892, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Prior to python 2.5, urllib is too stupid to complain if the download is interrupted. So we manually check the size.
Prior to python 2.5, urllib is too stupid to complain if the download is interrupted. So we manually check the size.
def retrieve(url, filename): """ Download a file and store it at filename. Prior to python 2.5, urllib is too stupid to complain if the download is interrupted. So we manually check the size. """ fn, headers = urllib.urlretrieve(url, filename) expected = int(headers.getheader('Content-Length')) retrieved = os.stat(file...
d14203ac269eb9e3b20553cf5894deda0714f431 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12796/d14203ac269eb9e3b20553cf5894deda0714f431/topp_opencore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4614, 12, 718, 16, 1544, 4672, 3536, 13059, 279, 585, 471, 1707, 518, 622, 1544, 18, 225, 30326, 358, 5790, 576, 18, 25, 16, 11527, 353, 4885, 384, 416, 350, 358, 532, 7446, 309, 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, 4614, 12, 718, 16, 1544, 4672, 3536, 13059, 279, 585, 471, 1707, 518, 622, 1544, 18, 225, 30326, 358, 5790, 576, 18, 25, 16, 11527, 353, 4885, 384, 416, 350, 358, 532, 7446, 309, 326, ...
assert port <= 65535
assert 0 <= port <= 65535
def ftp_PORT(self, line): """Start an active data-channel.""" # Parse PORT request for getting IP and PORT. # Request comes in as: # > h1,h2,h3,h4,p1,p2 # ...where the client's IP address is h1.h2.h3.h4 and the TCP # port number is (p1 * 256) + p2. try: addr = map(int, line.split(',')) assert len(addr) == 6 for x in ad...
2c104c24e7b39ac32c750fb1ebed159e1f3cac17 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/2c104c24e7b39ac32c750fb1ebed159e1f3cac17/ftpserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 6354, 12, 2890, 16, 980, 4672, 3536, 1685, 392, 2695, 501, 17, 4327, 12123, 468, 2884, 20987, 590, 364, 8742, 2971, 471, 20987, 18, 468, 1567, 14535, 316, 487, 30, 468, 405, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 6354, 12, 2890, 16, 980, 4672, 3536, 1685, 392, 2695, 501, 17, 4327, 12123, 468, 2884, 20987, 590, 364, 8742, 2971, 471, 20987, 18, 468, 1567, 14535, 316, 487, 30, 468, 405, ...
return install, (libraries, plugin, pcfile)
return install, libraries
def ClamModule(env, moduleName, version, description="", url='http://clam-project.org', clamDependencies=[], otherDependencies=[], sources=[], headers=[], ) : try: env.PkgConfigFile except : env.Tool('pc', toolpath=[os.path.dirname(__file__)]) crosscompiling = env.get('crossmingw') windowsTarget = sys.platform == 'win...
eed13904e66a4923b3a3a0a4725710a67a32db3c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1456/eed13904e66a4923b3a3a0a4725710a67a32db3c/clam.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3905, 301, 3120, 12, 3074, 16, 9780, 16, 1177, 16, 2477, 1546, 3113, 880, 2218, 2505, 2207, 830, 301, 17, 4406, 18, 3341, 2187, 927, 301, 8053, 22850, 6487, 1308, 8053, 22850, 6487, 5550...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3905, 301, 3120, 12, 3074, 16, 9780, 16, 1177, 16, 2477, 1546, 3113, 880, 2218, 2505, 2207, 830, 301, 17, 4406, 18, 3341, 2187, 927, 301, 8053, 22850, 6487, 1308, 8053, 22850, 6487, 5550...
for faction,disp in changed:
for faction,disp,groupCombatReaction in changed:
def buildPatch(self,log,progress): """Make changes to patchfile.""" if not self.isActive: return modFile = self.patchFile keep = self.patchFile.getKeeper() id_relations= self.id_relations type_count = {} for type in ('FACT',): if type not in modFile.tops: continue type_count[type] = 0 for record in modFile.tops[type].r...
81923914b6989a5d38c47e7038a12ad2760d1ff6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/81923914b6989a5d38c47e7038a12ad2760d1ff6/bosh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 7332, 12, 2890, 16, 1330, 16, 8298, 4672, 3536, 6464, 3478, 358, 4729, 768, 12123, 309, 486, 365, 18, 291, 3896, 30, 327, 681, 812, 273, 365, 18, 2272, 812, 3455, 273, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 7332, 12, 2890, 16, 1330, 16, 8298, 4672, 3536, 6464, 3478, 358, 4729, 768, 12123, 309, 486, 365, 18, 291, 3896, 30, 327, 681, 812, 273, 365, 18, 2272, 812, 3455, 273, 365, 18, ...
jobArgs = eval("@JOBARGS@")
jobArgs = eval("""@JOBARGS@""")
def execute ( arguments ): jobID = arguments['Job']['JobID'] os.environ['JOBID'] = jobID if arguments.has_key('WorkingDirectory'): wdir = os.path.expandvars(arguments['WorkingDirectory']) if os.path.isdir(wdir): os.chdir(wdir) else: try: os.makedirs(wdir) if os.path.isdir(wdir): os.chdir(wdir) except Exception, x: gL...
af4caa1c6e19f3334b3fc8d9442663bfb3ac2d75 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/af4caa1c6e19f3334b3fc8d9442663bfb3ac2d75/JobWrapperTemplate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 261, 1775, 262, 30, 225, 28913, 273, 1775, 3292, 2278, 21712, 2278, 734, 3546, 1140, 18, 28684, 3292, 18321, 734, 3546, 273, 28913, 225, 309, 1775, 18, 5332, 67, 856, 2668, 14836, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 261, 1775, 262, 30, 225, 28913, 273, 1775, 3292, 2278, 21712, 2278, 734, 3546, 1140, 18, 28684, 3292, 18321, 734, 3546, 273, 28913, 225, 309, 1775, 18, 5332, 67, 856, 2668, 14836, ...
else
else:
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 713) else quickfix.StringField.__init__(self, 713, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 2371, 3437, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 2371, 3437, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738...
if not self.newwiki: reply_msgid = self.get_message_id(dest) headers['In-Reply-To'] = headers['References'] = reply_msgid
def remove_dup(rcpts, all): """Remove duplicates""" tmp = [] for rcpt in rcpts: if rcpt in self.banned_addresses: self.env.log.debug("Banned Address: %s", rcpt) self.blocked_addresses.append(rcpt) elif not rcpt in all: tmp.append(rcpt) all.append(rcpt) return (tmp, all)
5ee5e47be0d2833751f7aec6f7fda29d45670aad /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9414/5ee5e47be0d2833751f7aec6f7fda29d45670aad/notification.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 26427, 12, 1310, 1092, 16, 777, 4672, 3536, 3288, 11211, 8395, 1853, 273, 5378, 364, 4519, 337, 316, 4519, 1092, 30, 309, 4519, 337, 316, 365, 18, 70, 10041, 67, 13277, 30, 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, 1206, 67, 26427, 12, 1310, 1092, 16, 777, 4672, 3536, 3288, 11211, 8395, 1853, 273, 5378, 364, 4519, 337, 316, 4519, 1092, 30, 309, 4519, 337, 316, 365, 18, 70, 10041, 67, 13277, 30, 3...
cmd = build_compression_command (video_source_filename, video_final_filename, video_target_size, audio_id, video_bitrate, video_codec, audio_codec, video_fourcc_override, video_gray_flag, video_crop_area, video_aspect_ratio, video_scale, video_encode_passes, video_deinterlace_flag, audio_volume_boost, audio_sample_rate...
cmd = build_compression_command (video_source_filename, video_final_filename, video_target_size, audio_id, video_bitrate, video_codec, audio_codec, video_fourcc_override, video_gray_flag, video_crop_area, video_aspect_ratio, video_scale, video_encode_passes, video_deinterlace_flag, audio_volume_boost, audio_sample_rate...
def compress_video (video_source_filename, video_final_filename, video_target_size, audio_id=128, video_bitrate=1000, video_codec='mpeg4', audio_codec='mp3', video_fourcc_override='FMP4', video_gray_flag=0, video_crop_area=None, video_aspect_ratio='16/9', video_scale=None, video_encode_passes=2, video_deinterlace_flag=...
dc932c2903d6571e186fc16b1163a9e66069f72d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9386/dc932c2903d6571e186fc16b1163a9e66069f72d/rippy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8099, 67, 9115, 261, 9115, 67, 3168, 67, 3459, 16, 6191, 67, 6385, 67, 3459, 16, 6191, 67, 3299, 67, 1467, 16, 7447, 67, 350, 33, 10392, 16, 6191, 67, 3682, 5141, 33, 18088, 16, 6191...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8099, 67, 9115, 261, 9115, 67, 3168, 67, 3459, 16, 6191, 67, 6385, 67, 3459, 16, 6191, 67, 3299, 67, 1467, 16, 7447, 67, 350, 33, 10392, 16, 6191, 67, 3682, 5141, 33, 18088, 16, 6191...
self.get_time = self.get_time_mac
self.get_time = _get_time_mac
def __init__(self, timer=None): self.timings = {} self.cur = None self.cmd = ""
7c76e9ea47c5473c749a68d4ceef4f076daffc4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7c76e9ea47c5473c749a68d4ceef4f076daffc4a/profile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5441, 33, 7036, 4672, 365, 18, 8584, 899, 273, 2618, 365, 18, 1397, 273, 599, 365, 18, 4172, 273, 1408, 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, 0, 0, 0, 0, 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, 5441, 33, 7036, 4672, 365, 18, 8584, 899, 273, 2618, 365, 18, 1397, 273, 599, 365, 18, 4172, 273, 1408, 2, -100, -100, -100, -100, -100, -100, -100, -100...
('L,Characteristics', 'L,TimeDateStamp', 'H,MajorVersion', 'H,MinorVersion', 'L,Type', 'L,SizeOfData', 'L,AddressOfRawData', 'L,PointerToRawData'))
('I,Characteristics', 'I,TimeDateStamp', 'H,MajorVersion', 'H,MinorVersion', 'I,Type', 'I,SizeOfData', 'I,AddressOfRawData', 'I,PointerToRawData'))
def __init__(self, **args): for key, value in args.items(): setattr(self, key, value)
b1bfd27bf7c329d36f68dc5f4ed5adda7c025501 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4177/b1bfd27bf7c329d36f68dc5f4ed5adda7c025501/pefile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 1968, 4672, 364, 498, 16, 460, 316, 833, 18, 3319, 13332, 9241, 12, 2890, 16, 498, 16, 460, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 1968, 4672, 364, 498, 16, 460, 316, 833, 18, 3319, 13332, 9241, 12, 2890, 16, 498, 16, 460, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
representation (default=False, `\mathbb{F}_2` only)
representation (default: ``False``, `\mathbb{F}_2` only)
def SR(n=1, r=1, c=1, e=4, star=False, **kwargs): r""" Return a small scale variant of the AES polynomial system constructor subject to the following conditions: INPUT: - ``n`` - the number of rounds (default: 1) - ``r`` - the number of rows in the state array (default: 1) - ``c`` - the number of columns in the st...
3cd6b553ebc89e43967234049b07b4477c5b3b3d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/3cd6b553ebc89e43967234049b07b4477c5b3b3d/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19145, 12, 82, 33, 21, 16, 436, 33, 21, 16, 276, 33, 21, 16, 425, 33, 24, 16, 10443, 33, 8381, 16, 2826, 4333, 4672, 436, 8395, 2000, 279, 5264, 3159, 5437, 434, 326, 15986, 16991, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19145, 12, 82, 33, 21, 16, 436, 33, 21, 16, 276, 33, 21, 16, 425, 33, 24, 16, 10443, 33, 8381, 16, 2826, 4333, 4672, 436, 8395, 2000, 279, 5264, 3159, 5437, 434, 326, 15986, 16991, ...
scan_builder(builder, options.starttime, options.endtime, options.minutes_per_block, hist, options.change_as_submittime)
scan_builder(builder, options.starttime, options.endtime, options.minutes_per_block, hist[platform], options.change_as_submittime)
def add_builder(option, opt_str, value, parser, *args, **kwargs): if ":" in value: platform, builders = value.split(":", 1) builders = [b.strip() for b in builders.split(",")] else: platform = value builders = [platform]
d75631ccaba070848feb81800aaf34e8b9a4f2ec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6206/d75631ccaba070848feb81800aaf34e8b9a4f2ec/print_waits.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 9574, 12, 3482, 16, 2153, 67, 701, 16, 460, 16, 2082, 16, 380, 1968, 16, 2826, 4333, 4672, 309, 6153, 316, 460, 30, 4072, 16, 19916, 273, 460, 18, 4939, 2932, 2773, 16, 404,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 9574, 12, 3482, 16, 2153, 67, 701, 16, 460, 16, 2082, 16, 380, 1968, 16, 2826, 4333, 4672, 309, 6153, 316, 460, 30, 4072, 16, 19916, 273, 460, 18, 4939, 2932, 2773, 16, 404,...
resolveTroves.append(lst)
def getTrovesToBuild(conaryclient, troveSpecList, limitToHosts=None, message=None): toBuild = [] toFind = {} groupsToFind = [] repos = conaryclient.getRepos() cfg = conaryclient.cfg cfg.limitToHosts = limitToHosts cfg.buildTroveSpecs = [] # get resolve troves - use installLabelPath and install flavor # for these sin...
2421902ec0e3f04d9e59b5840265840af594b7a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8749/2421902ec0e3f04d9e59b5840265840af594b7a2/buildcmd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3181, 303, 3324, 774, 3116, 12, 591, 814, 2625, 16, 23432, 537, 1990, 682, 16, 1800, 774, 12172, 33, 7036, 16, 883, 33, 7036, 4672, 358, 3116, 273, 5378, 358, 3125, 273, 2618, 3252, 77...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3181, 303, 3324, 774, 3116, 12, 591, 814, 2625, 16, 23432, 537, 1990, 682, 16, 1800, 774, 12172, 33, 7036, 16, 883, 33, 7036, 4672, 358, 3116, 273, 5378, 358, 3125, 273, 2618, 3252, 77...
self.send_document(path, html.escape( 'Problem in %s - %s' % (value.filename, value.args)))
self.send_document(path, html.escape(str(value)))
def do_GET(self): path = self.path if path[-5:] == '.html': path = path[:-5] if path[:1] == '/': path = path[1:] if path and path != '.': try: p, x = locate(path) except DocImportError, value: self.send_document(path, html.escape( 'Problem in %s - %s' % (value.filename, value.args))) return if x: self.send_document(des...
37f7b38eb6247564c00c8a355ab12268e8486c4e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/37f7b38eb6247564c00c8a355ab12268e8486c4e/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3264, 12, 2890, 4672, 589, 273, 365, 18, 803, 309, 589, 18919, 25, 26894, 422, 2418, 2620, 4278, 589, 273, 589, 10531, 17, 25, 65, 309, 589, 10531, 21, 65, 422, 2023, 30, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3264, 12, 2890, 4672, 589, 273, 365, 18, 803, 309, 589, 18919, 25, 26894, 422, 2418, 2620, 4278, 589, 273, 589, 10531, 17, 25, 65, 309, 589, 10531, 21, 65, 422, 2023, 30, 58...
g.add(self.categoryAxis) g.add(self.valueAxis)
return g def makeBars(self): g = Group()
def draw(self): self.valueAxis.configure(self.data) self.valueAxis.setPosition(self.x, self.y, self.height)
2825a34a3934ef7ff3c3c35ee31b62813177046a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/2825a34a3934ef7ff3c3c35ee31b62813177046a/barcharts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 4672, 365, 18, 1132, 6558, 18, 14895, 12, 2890, 18, 892, 13, 365, 18, 1132, 6558, 18, 542, 2555, 12, 2890, 18, 92, 16, 365, 18, 93, 16, 365, 18, 4210, 13, 2, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3724, 12, 2890, 4672, 365, 18, 1132, 6558, 18, 14895, 12, 2890, 18, 892, 13, 365, 18, 1132, 6558, 18, 542, 2555, 12, 2890, 18, 92, 16, 365, 18, 93, 16, 365, 18, 4210, 13, 2, -100, ...
self.title = title self.text = text self.subtasks = subtasks self.status = status has_title = property(lambda s: s.title != "") has_text = property(lambda s: s.text != "") has_subtasks = property(lambda s: s.subtasks != []) has_status = property(lambda s: s.status != "")
self.title = title self.text = text self.subtasks = subtasks self.status = status self.modified = modified self.due_date = due_date self.closed_date = closed_date self.start_date = start_date self.days_left = days_left self.tags = tags has_title = propert...
def __init__(self, title, text, subtasks, status ): self.title = title self.text = text self.subtasks = subtasks self.status = status
f467ae04ecf7905cdcd19f03b5d19579867fa723 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/f467ae04ecf7905cdcd19f03b5d19579867fa723/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2077, 16, 977, 16, 720, 9416, 16, 1267, 262, 30, 365, 18, 2649, 565, 273, 2077, 365, 18, 955, 377, 273, 977, 365, 18, 1717, 9416, 273, 720, 9416, 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, 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, 2077, 16, 977, 16, 720, 9416, 16, 1267, 262, 30, 365, 18, 2649, 565, 273, 2077, 365, 18, 955, 377, 273, 977, 365, 18, 1717, 9416, 273, 720, 9416, 365, ...
if not (receipt['version'] in
if not (receipt['version'] in
def makeCatalogDB(catalogitems): '''Takes an array of catalog items and builds some indexes so we can get our common data faster. Returns a dict we can use like a database''' name_table = {} pkgid_table = {} itemindex = -1 for item in catalogitems: itemindex = itemindex + 1 name = item.get('name', "NO NAME") vers = it...
5350042f4ddfb098468c8d75b15dfa28757b9321 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6241/5350042f4ddfb098468c8d75b15dfa28757b9321/updatecheck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 9769, 2290, 12, 7199, 3319, 4672, 9163, 11524, 392, 526, 434, 6222, 1516, 471, 10736, 2690, 5596, 1427, 732, 848, 336, 3134, 2975, 501, 12063, 18, 2860, 279, 2065, 732, 848, 999, 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, 1221, 9769, 2290, 12, 7199, 3319, 4672, 9163, 11524, 392, 526, 434, 6222, 1516, 471, 10736, 2690, 5596, 1427, 732, 848, 336, 3134, 2975, 501, 12063, 18, 2860, 279, 2065, 732, 848, 999, 3...
p.sort_stats('time', 'calls')
p.sort_stats('time')
def cprof_resolveDeps(self): import cProfile, pstats prof = cProfile.Profile() rc = prof.runcall(self._resolveDeps) prof.dump_stats("yumprof") print "done running depcheck"
f1cb8ebcece59486f7e684f34d76fb2119a9d221 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5445/f1cb8ebcece59486f7e684f34d76fb2119a9d221/depsolve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 16121, 67, 10828, 14430, 12, 2890, 4672, 1930, 276, 4029, 16, 293, 5296, 9214, 273, 276, 4029, 18, 4029, 1435, 4519, 273, 9214, 18, 86, 551, 454, 12, 2890, 6315, 10828, 14430, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 16121, 67, 10828, 14430, 12, 2890, 4672, 1930, 276, 4029, 16, 293, 5296, 9214, 273, 276, 4029, 18, 4029, 1435, 4519, 273, 9214, 18, 86, 551, 454, 12, 2890, 6315, 10828, 14430, 13, ...
topic = self.getTopicKey(topic, sub_topic)
def persistMessage(self, msg): """Store a message."""
2bc4da215af5edb987d6327dc8c4efd82c61e337 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5028/2bc4da215af5edb987d6327dc8c4efd82c61e337/sa_subscription_manager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3898, 1079, 12, 2890, 16, 1234, 4672, 3536, 2257, 279, 883, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3898, 1079, 12, 2890, 16, 1234, 4672, 3536, 2257, 279, 883, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
('other','Others'), ],'Type', select=True),
('leaves','Leaves'), ('advance','Advance'), ('loan','Loan'), ('installment','Loan Installment'), ('otherpay','Other Payment'), ('otherdeduct','Other Deduction'), ],'Type', select=True, required=True),
def _total(self, cr, uid, ids, field_names, arg, context=None): if context is None: context = {} res={} for line in self.browse(cr, uid, ids, context=context): res[line.id] = line.emp_deduction + line.comp_deduction return res
52462287f3027f98bcfae6ee920c037e9c3d1c34 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/52462287f3027f98bcfae6ee920c037e9c3d1c34/hr_payroll.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4963, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 652, 67, 1973, 16, 1501, 16, 819, 33, 7036, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 400, 12938, 364, 980, 316, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4963, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 652, 67, 1973, 16, 1501, 16, 819, 33, 7036, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 400, 12938, 364, 980, 316, 365, 18, ...
print "blah"
def handle_keys(self,keys): if not self.diag: # Handle keystrokes if "f8" in keys or 'Q' in keys or 'q' in keys: loop.quit() print "blah" #return False if "f5" in keys or 'R' in keys: self.lock_screen() self.doScan() if "D" in keys: # Disconnect from all networks. daemon.Disconnect() self.update_netlist() if 'right' in...
91b7ca8814daa7cefa7ae0f101bc96d8d03fecb1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/353/91b7ca8814daa7cefa7ae0f101bc96d8d03fecb1/wicd-curses.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 2452, 12, 2890, 16, 2452, 4672, 309, 486, 365, 18, 12264, 30, 468, 5004, 498, 334, 3250, 281, 309, 315, 74, 28, 6, 316, 1311, 578, 296, 53, 11, 316, 1311, 578, 296, 85, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 2452, 12, 2890, 16, 2452, 4672, 309, 486, 365, 18, 12264, 30, 468, 5004, 498, 334, 3250, 281, 309, 315, 74, 28, 6, 316, 1311, 578, 296, 53, 11, 316, 1311, 578, 296, 85, 1...
*New in Pygments 1.0.*
*New in Pygments 0.10.*
def get_tokens_unprocessed(self, text): ins = [] lines = text.splitlines(True) done = '' lex = BaseMakefileLexer(**self.options) backslashflag = False for line in lines: if self.r_special.match(line) or backslashflag: ins.append((len(done), [(0, Comment.Preproc, line)])) backslashflag = line.strip().endswith('\\') elif...
d73d7e87a38960b3dc269c0ad748369c9da73bab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6148/d73d7e87a38960b3dc269c0ad748369c9da73bab/text.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7860, 67, 318, 11005, 12, 2890, 16, 977, 4672, 2763, 273, 5378, 2362, 273, 977, 18, 4939, 3548, 12, 5510, 13, 2731, 273, 875, 5275, 273, 3360, 6464, 768, 13356, 12, 636, 2890,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7860, 67, 318, 11005, 12, 2890, 16, 977, 4672, 2763, 273, 5378, 2362, 273, 977, 18, 4939, 3548, 12, 5510, 13, 2731, 273, 875, 5275, 273, 3360, 6464, 768, 13356, 12, 636, 2890,...
return util.move_file (src, dst, self.verbose >= level, self.dry_run)
return file_util.move_file (src, dst, self.verbose >= level, self.dry_run)
def move_file (self, src, dst, level=1): """Move a file respecting verbose and dry-run flags.""" return util.move_file (src, dst, self.verbose >= level, self.dry_run)
29124ff4f2b7e598801ef380184fcd2cd9d113d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/29124ff4f2b7e598801ef380184fcd2cd9d113d6/cmd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 67, 768, 261, 2890, 16, 1705, 16, 3046, 16, 1801, 33, 21, 4672, 3536, 7607, 279, 585, 8762, 310, 3988, 471, 10299, 17, 2681, 2943, 12123, 327, 1709, 18, 8501, 67, 768, 261, 4816,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 67, 768, 261, 2890, 16, 1705, 16, 3046, 16, 1801, 33, 21, 4672, 3536, 7607, 279, 585, 8762, 310, 3988, 471, 10299, 17, 2681, 2943, 12123, 327, 1709, 18, 8501, 67, 768, 261, 4816,...
try: shutil.rmtree(build_config.build_dir) except OSError, e: pass for dirs in [build_config.checkobj_dir, build_config.libobj_dir, build_config.full_include_dir]: os.makedirs(dirs) pkg_config_file = 'botan-%d.%d.pc' % (build_config.version_major(), build_config.version_minor()) templates_to_proc = { os.path.join(op...
""" Copy or link the file, depending on what the platform offers """ def portable_symlink(filename, target_dir): if 'symlink' in os.__dict__: def count_dirs(dir, accum = 0): if dir == '' or dir == os.path.curdir: return accum (dir,basename) = os.path.split(dir) return accum + 1 + count_dirs(dir) dirs_up = count_dirs(...
def setup_build(build_config, options, template_vars): try: shutil.rmtree(build_config.build_dir) except OSError, e: pass # directory not found (FIXME: check against errno?) for dirs in [build_config.checkobj_dir, build_config.libobj_dir, build_config.full_include_dir]: os.makedirs(dirs) pkg_config_file = 'botan-%d.%...
e92144a127b0b0ea31844a81f0b32308d94e924d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9556/e92144a127b0b0ea31844a81f0b32308d94e924d/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 3510, 12, 3510, 67, 1425, 16, 702, 16, 1542, 67, 4699, 4672, 775, 30, 11060, 18, 86, 17371, 12, 3510, 67, 1425, 18, 3510, 67, 1214, 13, 1335, 10002, 16, 425, 30, 1342, 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, 3875, 67, 3510, 12, 3510, 67, 1425, 16, 702, 16, 1542, 67, 4699, 4672, 775, 30, 11060, 18, 86, 17371, 12, 3510, 67, 1425, 18, 3510, 67, 1214, 13, 1335, 10002, 16, 425, 30, 1342, 468,...
return boto.connect_sqs(aws_access_key_id, aws_access_key_id, **kwargs)
return boto.connect_sqs(aws_access_key_id, aws_secret_access_key, **kwargs)
def connect_sqs(self, aws_access_key_id=None, aws_secret_access_key=None, **kwargs): if aws_access_key_id == None: aws_access_key_id = self.config.get("Credentials", "aws_access_key_id") if aws_secret_access_key == None: aws_secret_access_key = self.config.get("Credentials", "aws_secret_access_key") return boto.connect...
af7787bae3587e1ad80f1b26341e2c9625bedc48 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10599/af7787bae3587e1ad80f1b26341e2c9625bedc48/environment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 67, 11410, 87, 12, 2890, 16, 2287, 67, 3860, 67, 856, 67, 350, 33, 7036, 16, 2287, 67, 5875, 67, 3860, 67, 856, 33, 7036, 16, 2826, 4333, 4672, 309, 2287, 67, 3860, 67, 856, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 67, 11410, 87, 12, 2890, 16, 2287, 67, 3860, 67, 856, 67, 350, 33, 7036, 16, 2287, 67, 5875, 67, 3860, 67, 856, 33, 7036, 16, 2826, 4333, 4672, 309, 2287, 67, 3860, 67, 856, ...
'nl': (BACK, u"Sjabloon:Etalage"),
'mr': (CAT, u"वर्ग:मुखपृष्ठ सदर लेख"), 'ms': (BACK, u"Templat:Rencana pilihan"), 'nl': (CAT, u"Categorie:Wikipedia:Etalage-artikelen"),
def LINKS(site,name, ignore=[]): p=wikipedia.Page(site, name) links=p.linkedPages() for n in links[:]: t=n.titleWithoutNamespace() if t[0] in u"/#" or t in ignore: links.remove(n) links.sort() return links
3e1ba3cfdef60ecb29c20449b00342c87340bac2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/3e1ba3cfdef60ecb29c20449b00342c87340bac2/featured.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22926, 55, 12, 4256, 16, 529, 16, 2305, 33, 8526, 4672, 293, 33, 11999, 13744, 18, 1964, 12, 4256, 16, 508, 13, 4716, 33, 84, 18, 17738, 5716, 1435, 364, 290, 316, 4716, 10531, 14542, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22926, 55, 12, 4256, 16, 529, 16, 2305, 33, 8526, 4672, 293, 33, 11999, 13744, 18, 1964, 12, 4256, 16, 508, 13, 4716, 33, 84, 18, 17738, 5716, 1435, 364, 290, 316, 4716, 10531, 14542, ...
'does not exist.') % (' '.join(command), path))
'does not exist.') % (' '.join(command), self.checkout_path))
def status(self, options, args, file_list): """Display status information.""" path = os.path.join(self._root_dir, self.relpath) command = ['status'] + args if not os.path.isdir(path): # svn status won't work if the directory doesn't exist. options.stdout.write( ('\n________ couldn\'t run \'%s\' in \'%s\':\nThe director...
338ead09dbd34566cb60d324c2eb7366229ad94e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/338ead09dbd34566cb60d324c2eb7366229ad94e/gclient_scm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1267, 12, 2890, 16, 702, 16, 833, 16, 585, 67, 1098, 4672, 3536, 4236, 1267, 1779, 12123, 589, 273, 1140, 18, 803, 18, 5701, 12, 2890, 6315, 3085, 67, 1214, 16, 365, 18, 2878, 803, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1267, 12, 2890, 16, 702, 16, 833, 16, 585, 67, 1098, 4672, 3536, 4236, 1267, 1779, 12123, 589, 273, 1140, 18, 803, 18, 5701, 12, 2890, 6315, 3085, 67, 1214, 16, 365, 18, 2878, 803, 1...
self.tmpMac = self.proxi.dev_mac
tmpMac = self.proxi.dev_mac
def cb_btnScan_clicked(self): #Idle callback to show the watch cursor while scanning (HIG) self.tmpMac = self.proxi.dev_mac self.proxi.dev_mac = '' self.proxi.kill_connection() macs = self.proxi.get_device_list() self.proxi.dev_mac = tmpMac self.model.clear() for mac in macs: self.model.append([mac[0], mac[1]]) self.wi...
8aae9f10adc270617c9265375716f9c0ef1eb095 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/61/8aae9f10adc270617c9265375716f9c0ef1eb095/proximity.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2875, 67, 11898, 7972, 67, 7475, 329, 12, 2890, 4672, 468, 13834, 1348, 358, 2405, 326, 4267, 3347, 1323, 21138, 261, 44, 3047, 13, 5645, 9990, 273, 365, 18, 20314, 77, 18, 5206, 67, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2875, 67, 11898, 7972, 67, 7475, 329, 12, 2890, 4672, 468, 13834, 1348, 358, 2405, 326, 4267, 3347, 1323, 21138, 261, 44, 3047, 13, 5645, 9990, 273, 365, 18, 20314, 77, 18, 5206, 67, 5...
self.store.cachedcoords[self.ncvarname] = numpy.asarray(ncvar.getValue())
if len(ncvar.shape)==0: self.store.cachedcoords[self.ncvarname] = numpy.asarray(ncvar.getValue()) else: self.store.cachedcoords[self.ncvarname] = numpy.asarray(ncvar[tuple([slice(None)]*len(ncvar.shape))])
def getSlice(self,bounds,dataonly=False,cache=False): # Translate the slice specification so only slice objects an integer indices remain. bounds = self.translateSliceSpecification(bounds) # Get NetCDF file and variable objects. nc = self.store.getcdf() ncvar = nc.variables[self.ncvarname] # Retrieve the data values ...
86c14e3280c53659bfc887fabafd21e65eb02a50 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/381/86c14e3280c53659bfc887fabafd21e65eb02a50/data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1322, 2008, 12, 2890, 16, 10576, 16, 892, 3700, 33, 8381, 16, 2493, 33, 8381, 4672, 468, 16820, 326, 2788, 7490, 1427, 1338, 2788, 2184, 392, 3571, 4295, 7232, 18, 4972, 273, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1322, 2008, 12, 2890, 16, 10576, 16, 892, 3700, 33, 8381, 16, 2493, 33, 8381, 4672, 468, 16820, 326, 2788, 7490, 1427, 1338, 2788, 2184, 392, 3571, 4295, 7232, 18, 4972, 273, 365, 18, ...
for handler, context in self.traverse2():
for handler, ctx in self.traverse2():
def update_catalog(self, context): # Initialize a new empty catalog t0 = time() transaction = get_transaction() # Init transaction (because we use sub-transactions) server = context.server server.start_commit()
1ef0dd920fe146c7bcf9e704d9227cb0c43299a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/1ef0dd920fe146c7bcf9e704d9227cb0c43299a1/root.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 7199, 12, 2890, 16, 819, 4672, 468, 9190, 279, 394, 1008, 6222, 268, 20, 273, 813, 1435, 2492, 273, 336, 67, 7958, 1435, 468, 4378, 2492, 261, 26274, 732, 999, 720, 17, 20376...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 7199, 12, 2890, 16, 819, 4672, 468, 9190, 279, 394, 1008, 6222, 268, 20, 273, 813, 1435, 2492, 273, 336, 67, 7958, 1435, 468, 4378, 2492, 261, 26274, 732, 999, 720, 17, 20376...
return html.A(class_='%s ticket' % row[0], title=shorten_line(row[1]) + ' (%s)' % row[0],
return html.A(class_='%s ticket' % row[1], title=shorten_line(row[0]) + ' (%s)' % row[1],
def _format_link(self, formatter, ns, target, label, fullmatch=None): intertrac = formatter.shorthand_intertrac_helper(ns, target, label, fullmatch) if intertrac: return intertrac cursor = formatter.db.cursor() cursor.execute("SELECT summary,status FROM ticket WHERE id=%s", (target,)) row = cursor.fetchone() if row: re...
4e00025f2a511cf0289acb2fac4bca468803c1ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/4e00025f2a511cf0289acb2fac4bca468803c1ae/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2139, 67, 1232, 12, 2890, 16, 4453, 16, 3153, 16, 1018, 16, 1433, 16, 1983, 1916, 33, 7036, 4672, 1554, 313, 1077, 273, 4453, 18, 674, 15830, 67, 2761, 313, 1077, 67, 4759, 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, 389, 2139, 67, 1232, 12, 2890, 16, 4453, 16, 3153, 16, 1018, 16, 1433, 16, 1983, 1916, 33, 7036, 4672, 1554, 313, 1077, 273, 4453, 18, 674, 15830, 67, 2761, 313, 1077, 67, 4759, 12, ...
elif getattr(node, "rel", None) == "condition":
elif getattr(node, "rel", None) == "condition" and node.parent.type != "hook":
def cleanParens(node): parent = node.parent if node.type == "function" and parent.type == "call": # Ignore for direct execution functions. This is required # for parsing e.g. (function(){})(); which does not work # without parens around the function instance other than # priorities might suggest pass elif getattr(nod...
9d51f54d9791501b7917f9af8d72bedb27b5a510 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/9d51f54d9791501b7917f9af8d72bedb27b5a510/BlockReducer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 52, 21660, 12, 2159, 4672, 982, 273, 756, 18, 2938, 225, 309, 756, 18, 723, 422, 315, 915, 6, 471, 982, 18, 723, 422, 315, 1991, 6877, 468, 8049, 364, 2657, 4588, 4186, 18, 122...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 52, 21660, 12, 2159, 4672, 982, 273, 756, 18, 2938, 225, 309, 756, 18, 723, 422, 315, 915, 6, 471, 982, 18, 723, 422, 315, 1991, 6877, 468, 8049, 364, 2657, 4588, 4186, 18, 122...
head = '<body bgcolor="
head = '<body bgcolor="
def html(etype, evalue, etb, context=5): """Return a nice HTML document describing the traceback.""" import sys, os, types, time, traceback import keyword, tokenize, linecache, inspect, pydoc if type(etype) is types.ClassType: etype = etype.__name__ pyver = 'Python ' + sys.version.split()[0] + ': ' + sys.executable da...
89c89b4d445b1f2dc0cf0b9d3ef890dbee839ea8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/89c89b4d445b1f2dc0cf0b9d3ef890dbee839ea8/cgitb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 12, 5872, 16, 425, 1132, 16, 3393, 70, 16, 819, 33, 25, 4672, 3536, 990, 279, 13752, 3982, 1668, 16868, 326, 10820, 12123, 1930, 2589, 16, 1140, 16, 1953, 16, 813, 16, 10820, 193...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 12, 5872, 16, 425, 1132, 16, 3393, 70, 16, 819, 33, 25, 4672, 3536, 990, 279, 13752, 3982, 1668, 16868, 326, 10820, 12123, 1930, 2589, 16, 1140, 16, 1953, 16, 813, 16, 10820, 193...
</datafield>
</datafield>
def setUp(self): """Prepare some ideal outputs"""
e392a2b83cce91ef4d27622e150c5c79211c9eae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/e392a2b83cce91ef4d27622e150c5c79211c9eae/bibformat_regression_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 3536, 7543, 2690, 23349, 6729, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 24292, 12, 2890, 4672, 3536, 7543, 2690, 23349, 6729, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
import string
from types import StringType, UnicodeType, InstanceType, TupleType, ListType, FloatType from string import letters as LETTERS, whitespace as WHITESPACE
def Paragraph(text, style, bulletText=None, frags=None)
041e2d265f4d145658b08edc02ff501d425029d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/041e2d265f4d145658b08edc02ff501d425029d6/para.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24963, 12, 955, 16, 2154, 16, 31650, 1528, 33, 7036, 16, 3812, 1341, 33, 7036, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24963, 12, 955, 16, 2154, 16, 31650, 1528, 33, 7036, 16, 3812, 1341, 33, 7036, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
dirpath = pyxfile.dirpath()
dirpath = cfile.dirpath()
def make_module_from_c(pyxfile): from distutils.core import setup from distutils.extension import Extension from Pyrex.Distutils import build_ext #try: # from distutils.log import set_threshold # set_threshold(10000) #except ImportError: # print "ERROR IMPORTING" # pass dirpath = pyxfile.dirpath() lastdir...
7af1a34ef0fb9f9c6378f37b418b678b2abd19c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/7af1a34ef0fb9f9c6378f37b418b678b2abd19c9/buildpyxmodule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 2978, 67, 2080, 67, 71, 12, 2074, 92, 768, 4672, 628, 2411, 5471, 18, 3644, 1930, 3875, 628, 2411, 5471, 18, 6447, 1930, 10021, 628, 4707, 266, 92, 18, 5133, 5471, 1930, 1361...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2978, 67, 2080, 67, 71, 12, 2074, 92, 768, 4672, 628, 2411, 5471, 18, 3644, 1930, 3875, 628, 2411, 5471, 18, 6447, 1930, 10021, 628, 4707, 266, 92, 18, 5133, 5471, 1930, 1361...
else:
elif command == "update":
def send_command(self, command, headers): call_id = None for header in headers: if header.startswith("call_id: "): call_id = header.split("call_id: ", 1)[1] break if call_id is None: raise RelayError("Could not parse call_id") if call_id in self.sessions: relay = self.sessions[call_id] if relay not in self.protocols: r...
2b6ef953a9490a0068e6100018df71b485c1cdee /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3445/2b6ef953a9490a0068e6100018df71b485c1cdee/dispatcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 3076, 12, 2890, 16, 1296, 16, 1607, 4672, 745, 67, 350, 273, 599, 364, 1446, 316, 1607, 30, 309, 1446, 18, 17514, 1918, 2932, 1991, 67, 350, 30, 315, 4672, 745, 67, 350, 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, 1366, 67, 3076, 12, 2890, 16, 1296, 16, 1607, 4672, 745, 67, 350, 273, 599, 364, 1446, 316, 1607, 30, 309, 1446, 18, 17514, 1918, 2932, 1991, 67, 350, 30, 315, 4672, 745, 67, 350, 27...
"Returns the seconds for each date in self._dates."
"""Returns the second for each date in self._dates."""
def second(self): "Returns the seconds for each date in self._dates." return self._dates.second
fa55c4c696ec9c654bfe9099b550f554a05ac28b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/fa55c4c696ec9c654bfe9099b550f554a05ac28b/tseries.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2205, 12, 2890, 4672, 3536, 1356, 326, 2205, 364, 1517, 1509, 316, 365, 6315, 9683, 12123, 327, 365, 6315, 9683, 18, 8538, 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, 2205, 12, 2890, 4672, 3536, 1356, 326, 2205, 364, 1517, 1509, 316, 365, 6315, 9683, 12123, 327, 365, 6315, 9683, 18, 8538, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...