rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
obj_path = ConvertURLToPath(url, kCFURLPOSIXPathStyle)
obj._path = ConvertURLToPath(url, kCFURLPOSIXPathStyle)
def makewithurl(klass, url): """Make File object from file URL.""" obj = klass(_NoPath) obj._desc = AECreateDesc(kae.typeFileURL, url) obj._url = url obj_path = ConvertURLToPath(url, kCFURLPOSIXPathStyle) return obj
3d796e13159e9893ea8bdaa56207dc69237519fe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10961/3d796e13159e9893ea8bdaa56207dc69237519fe/mactypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29796, 359, 483, 718, 12, 22626, 16, 880, 4672, 3536, 6464, 1387, 733, 628, 585, 1976, 12123, 1081, 273, 7352, 24899, 2279, 743, 13, 1081, 6315, 5569, 273, 432, 41, 1684, 4217, 12, 7282,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29796, 359, 483, 718, 12, 22626, 16, 880, 4672, 3536, 6464, 1387, 733, 628, 585, 1976, 12123, 1081, 273, 7352, 24899, 2279, 743, 13, 1081, 6315, 5569, 273, 432, 41, 1684, 4217, 12, 7282,...
for uid in meeting.participants.uids:
for uid in meeting.participants.attendees.keys():
def jstree_organisations(self): """ """ jstree, organisations = [], {} site = self.getSite() meeting_config = meeting_module.get_config() meeting_obs = site.getCatalogedObjectsCheckView(meta_type=meeting_config['meta_type'], approved=1)
3bab478c3664912545513ddfb53b89283209c15f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/3bab478c3664912545513ddfb53b89283209c15f/reports.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 525, 334, 992, 67, 22543, 291, 1012, 12, 2890, 4672, 3536, 3536, 525, 334, 992, 16, 15501, 291, 1012, 273, 5378, 16, 2618, 2834, 273, 365, 18, 588, 4956, 1435, 18721, 310, 67, 1425, 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, 525, 334, 992, 67, 22543, 291, 1012, 12, 2890, 4672, 3536, 3536, 525, 334, 992, 16, 15501, 291, 1012, 273, 5378, 16, 2618, 2834, 273, 365, 18, 588, 4956, 1435, 18721, 310, 67, 1425, 27...
'Done':'SD'}
'Done':'SD', 'C':'SD'}
def __init__( self, **args): super(SchedulerPbs, self).__init__(**args) self.jobScriptDir=args['jobScriptDir'] self.jobResDir=args['jobResDir'] self.queue=args['queue']
69a3a96469d4440f20ff19d933ede189b2218cf8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8886/69a3a96469d4440f20ff19d933ede189b2218cf8/SchedulerPbs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 2826, 1968, 4672, 2240, 12, 11870, 52, 2038, 16, 365, 2934, 972, 2738, 972, 12, 636, 1968, 13, 365, 18, 4688, 3651, 1621, 33, 1968, 3292, 4688, 3651, 1621...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 365, 16, 2826, 1968, 4672, 2240, 12, 11870, 52, 2038, 16, 365, 2934, 972, 2738, 972, 12, 636, 1968, 13, 365, 18, 4688, 3651, 1621, 33, 1968, 3292, 4688, 3651, 1621...
idelta.x = game.state.kscmdr.y-game.quadrant.y idelta.y = game.quadrant.x-game.state.kscmdr.x
idelta.i = game.state.kscmdr.j-game.quadrant.j idelta.j = game.quadrant.i-game.state.kscmdr.i
def supercommander(): "Move the Super Commander." iq = coord(); sc = coord(); ibq = coord(); idelta = coord() basetbl = [] if idebug: prout("== SUPERCOMMANDER") # Decide on being active or passive avoid = ((game.incom - len(game.state.kcmdr) + game.inkling - game.state.remkl)/(game.state.date+0.01-game.indate) < 0.1*ga...
e67cf36a789c4ab1cd905a9a08e91d219395f538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/e67cf36a789c4ab1cd905a9a08e91d219395f538/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2240, 3076, 264, 13332, 315, 7607, 326, 14845, 3498, 264, 1199, 24288, 273, 2745, 5621, 888, 273, 2745, 5621, 9834, 85, 273, 2745, 5621, 612, 8967, 273, 2745, 1435, 2580, 278, 3083, 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, 2240, 3076, 264, 13332, 315, 7607, 326, 14845, 3498, 264, 1199, 24288, 273, 2745, 5621, 888, 273, 2745, 5621, 9834, 85, 273, 2745, 5621, 612, 8967, 273, 2745, 1435, 2580, 278, 3083, 273, ...
self._process = subprocess.Popen(start_cmd, env=env)
self._process = subprocess.Popen(start_cmd, stdout=self._wsout, stderr=self._wserr, env=env)
def Start(self): if not self._web_socket_tests: logging.info('No need to start %s server.' % self._server_name) return if self.IsRunning(): raise PyWebSocketNotStarted('%s is already running.' % self._server_name)
0d76c7cdcab7b713ba2287eb4817764c6a0bcdb8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/0d76c7cdcab7b713ba2287eb4817764c6a0bcdb8/websocket_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3603, 12, 2890, 4672, 309, 486, 365, 6315, 4875, 67, 7814, 67, 16341, 30, 2907, 18, 1376, 2668, 2279, 1608, 358, 787, 738, 87, 1438, 1093, 738, 365, 6315, 3567, 67, 529, 13, 327, 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, 3603, 12, 2890, 4672, 309, 486, 365, 6315, 4875, 67, 7814, 67, 16341, 30, 2907, 18, 1376, 2668, 2279, 1608, 358, 787, 738, 87, 1438, 1093, 738, 365, 6315, 3567, 67, 529, 13, 327, 309, ...
Return list of conjugacy polynomials for a given round and name. INPUT:
Return list of conjugacy polynomials for a given round ``i`` and name ``name``. INPUT:
def field_polynomials(self, name, i, l=None): """ Return list of conjugacy polynomials for a given round and name. INPUT: - ``name`` - variable name - ``i`` - round number - ``l`` - r\*c (default:None) EXAMPLE:: sage: sr = mq.SR(3, 1, 1, 8) sage: sr.field_polynomials('x', 2) [x200^2 + x201, x201^2 + x202, x2...
f145241e51a69266a2640a052ee008637b5d9160 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f145241e51a69266a2640a052ee008637b5d9160/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 652, 67, 3915, 13602, 87, 12, 2890, 16, 508, 16, 277, 16, 328, 33, 7036, 4672, 3536, 2000, 666, 434, 10550, 637, 3505, 16991, 87, 364, 279, 864, 3643, 12176, 77, 10335, 471, 508, 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, 652, 67, 3915, 13602, 87, 12, 2890, 16, 508, 16, 277, 16, 328, 33, 7036, 4672, 3536, 2000, 666, 434, 10550, 637, 3505, 16991, 87, 364, 279, 864, 3643, 12176, 77, 10335, 471, 508, 12176...
def __init__ (self, key = 0, mods = 0):
label = None def __init__ (self, key = 0, mods = 0, label = None):
def __init__ (self, key = 0, mods = 0): '''Prepare widget''' super (KeyGrabber, self).__init__ ()
1b0abf2f710ed1ae42e5a6bf9547f1cb04250552 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1272/1b0abf2f710ed1ae42e5a6bf9547f1cb04250552/Widgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1433, 282, 273, 599, 225, 1652, 1001, 2738, 972, 261, 2890, 16, 498, 273, 374, 16, 15546, 273, 374, 16, 1433, 273, 599, 4672, 9163, 7543, 3604, 26418, 2240, 261, 653, 14571, 23709, 16, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1433, 282, 273, 599, 225, 1652, 1001, 2738, 972, 261, 2890, 16, 498, 273, 374, 16, 15546, 273, 374, 16, 1433, 273, 599, 4672, 9163, 7543, 3604, 26418, 2240, 261, 653, 14571, 23709, 16, 365, ...
value='1', checked=form_get(request, 'nosystemitems'),
value='1', checked=form_get(request, 'nosystemitems', escaped=True),
def advanced_ui(macro): """ Returns the code for the advanced search user interface @param macro: current macro instance """ _ = macro._ f = macro.formatter request = macro.request disabledIfMoinSearch = not request.cfg.xapian_search and \ ' disabled="disabled"' or '' search_boxes = ''.join([ f.table_row(1), f.table...
64e8eabb4bca8dbfa16eba8a8659c837f025be8f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/64e8eabb4bca8dbfa16eba8a8659c837f025be8f/AdvancedSearch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16111, 67, 4881, 12, 26448, 4672, 3536, 2860, 326, 981, 364, 326, 16111, 1623, 729, 1560, 225, 632, 891, 11522, 30, 783, 11522, 791, 3536, 389, 273, 11522, 6315, 284, 273, 11522, 18, 123...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16111, 67, 4881, 12, 26448, 4672, 3536, 2860, 326, 981, 364, 326, 16111, 1623, 729, 1560, 225, 632, 891, 11522, 30, 783, 11522, 791, 3536, 389, 273, 11522, 6315, 284, 273, 11522, 18, 123...
msg = opts.get('msg', '').rstrip() if msg and comments: if message: subj = 'subject: ' + message[0].lower() for i in xrange(len(comments)): if subj == comments[i].lower(): del comments[i] message = message[2:] break ci = 0 for mi in xrange(len(message)): while message[mi] != comments[ci]: ci += 1 del comments[ci] ...
if msg: ph.setmessage(msg)
def refresh(self, repo, pats=None, **opts): if len(self.applied) == 0: self.ui.write(_("No patches applied\n")) return 1 newdate = opts.get('date') if newdate: newdate = '%d %d' % util.parsedate(newdate) wlock = repo.wlock() try: self.check_toppatch(repo) (top, patchfn) = (self.applied[-1].rev, self.applied[-1].name) t...
a08f944f5ede5216ab055dc6f66d0194f0c9d217 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/a08f944f5ede5216ab055dc6f66d0194f0c9d217/mq.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 12, 2890, 16, 3538, 16, 293, 2323, 33, 7036, 16, 2826, 4952, 4672, 309, 562, 12, 2890, 18, 438, 3110, 13, 422, 374, 30, 365, 18, 4881, 18, 2626, 24899, 2932, 2279, 16482, 6754, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16, 3538, 16, 293, 2323, 33, 7036, 16, 2826, 4952, 4672, 309, 562, 12, 2890, 18, 438, 3110, 13, 422, 374, 30, 365, 18, 4881, 18, 2626, 24899, 2932, 2279, 16482, 6754, ...
mrd = MovieRewindDialog(self.o.assy.current_movie) mrd.exec_loop()
movie = self.o.assy.current_movie if movie.currentFrame is not 0: mrd = MovieRewindDialog(movie) mrd.exec_loop()
def _exitMode(self, new_mode = None): mrd = MovieRewindDialog(self.o.assy.current_movie) mrd.exec_loop() basicMode._exitMode(self, new_mode)
888488e86857c7f5efca80a7b50c08c65c8ebbf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/888488e86857c7f5efca80a7b50c08c65c8ebbf9/movieMode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8593, 2309, 12, 2890, 16, 394, 67, 3188, 273, 599, 4672, 21360, 273, 365, 18, 83, 18, 428, 93, 18, 2972, 67, 8683, 13120, 309, 21360, 18, 2972, 3219, 353, 486, 374, 30, 9752, 72...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8593, 2309, 12, 2890, 16, 394, 67, 3188, 273, 599, 4672, 21360, 273, 365, 18, 83, 18, 428, 93, 18, 2972, 67, 8683, 13120, 309, 21360, 18, 2972, 3219, 353, 486, 374, 30, 9752, 72...
obsdict[(name,arch)]=obvalue[0]
obsdict[(name, arch)]=obvalue[0]
def returnObsoletes(headerNevral, rpmNevral, uninstNAlist): obsdict = {} # obsdict[obseletinglist]=packageitobsoletes for (name, arch) in uninstNAlist: # DEBUG print '%s, %s' % (name, arch) header = headerNevral.getHeader(name, arch) obs = header[rpm.RPMTAG_OBSOLETES] del header if obs: # DEBUG print "%s, %s obs someth...
e7852c63a5b8d228ffcaf8685bd9ef2f040a51ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/e7852c63a5b8d228ffcaf8685bd9ef2f040a51ef/clientStuff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 327, 27637, 355, 278, 281, 12, 3374, 6586, 18090, 287, 16, 25228, 6586, 18090, 287, 16, 640, 8591, 50, 1067, 376, 4672, 7160, 1576, 273, 2618, 468, 7160, 1576, 63, 10992, 808, 310, 1098,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 327, 27637, 355, 278, 281, 12, 3374, 6586, 18090, 287, 16, 25228, 6586, 18090, 287, 16, 640, 8591, 50, 1067, 376, 4672, 7160, 1576, 273, 2618, 468, 7160, 1576, 63, 10992, 808, 310, 1098,...
self.assertRaises(Exception, self.CheckTree())
self.CheckTree()
def ReParent(self, parent_id=False): record_ids = self.mptt.search([ ('parent', '=', parent_id), ], 0, None, None, CONTEXT) if not record_ids: return for record_id in record_ids: for record2_id in record_ids: if record_id != record2_id: self.mptt.write(record_id, { 'parent': record2_id, }, CONTEXT) self.assertRaises(Ex...
21ee22919528f4bf15192e77602a6801360c41d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9266/21ee22919528f4bf15192e77602a6801360c41d2/test_tryton.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 868, 3054, 12, 2890, 16, 982, 67, 350, 33, 8381, 4672, 1409, 67, 2232, 273, 365, 18, 81, 337, 88, 18, 3072, 3816, 7707, 2938, 2187, 15196, 2187, 982, 67, 350, 3631, 308, 16, 374, 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, 868, 3054, 12, 2890, 16, 982, 67, 350, 33, 8381, 4672, 1409, 67, 2232, 273, 365, 18, 81, 337, 88, 18, 3072, 3816, 7707, 2938, 2187, 15196, 2187, 982, 67, 350, 3631, 308, 16, 374, 16,...
prop = props[k] except:
prop = self.props[k] except KeyError:
def history(self, direction='descending'): l = ['<table width=100% border=0 cellspacing=0 cellpadding=2>', '<tr class="list-header">', _('<th align=left><span class="list-item">Date</span></th>'), _('<th align=left><span class="list-item">User</span></th>'), _('<th align=left><span class="list-item">Action</span></th>'...
8e3ffca4978f564c354a02554cda0fed94c2cb50 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/8e3ffca4978f564c354a02554cda0fed94c2cb50/templating.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4927, 12, 2890, 16, 4068, 2218, 5569, 2846, 11, 4672, 328, 273, 10228, 32, 2121, 1835, 33, 6625, 9, 5795, 33, 20, 2484, 14080, 33, 20, 2484, 9598, 33, 22, 1870, 16, 2368, 313, 667, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4927, 12, 2890, 16, 4068, 2218, 5569, 2846, 11, 4672, 328, 273, 10228, 32, 2121, 1835, 33, 6625, 9, 5795, 33, 20, 2484, 14080, 33, 20, 2484, 9598, 33, 22, 1870, 16, 2368, 313, 667, 1...
try: x = getattr(cls, attr) except AttributeError:
try: x = cls.__dict__[attr] except KeyError:
def __getattr__(self, attr): mro = iter(self.__self_class__.__mro__) for cls in mro: if cls is self.__thisclass__: break # Note: mro is an iterator, so the second loop # picks up where the first one left off! for cls in mro: try: # XXX # XXX build-in classes have no __dict__ currently! # XXX x = getattr(cls, attr) exc...
15e621688a569429976751b2a10302ce2318ac25 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/15e621688a569429976751b2a10302ce2318ac25/__builtin__module.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 1604, 4672, 312, 303, 273, 1400, 12, 2890, 16186, 2890, 67, 1106, 972, 16186, 81, 303, 972, 13, 364, 2028, 316, 312, 303, 30, 309, 2028, 353, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 1604, 4672, 312, 303, 273, 1400, 12, 2890, 16186, 2890, 67, 1106, 972, 16186, 81, 303, 972, 13, 364, 2028, 316, 312, 303, 30, 309, 2028, 353, 365, ...
print "-=" * 40
def __init__(self, context, querier, p2pquerier): athena.LivePage.__init__(self) # NOTE: At the time this comment is written, athena/LivePages are handled # differently in nevow SVN. It's now possible to insantiate directly # LivePage instances (which is great !), so we'll have to change # the impleme...
e4f711edb674f697cabd556d9a06c1751fb3f374 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2259/e4f711edb674f697cabd556d9a06c1751fb3f374/webapplication.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 819, 16, 21287, 2453, 16, 293, 22, 84, 25734, 2453, 4672, 225, 421, 24457, 18, 12328, 1964, 16186, 2738, 972, 12, 2890, 13, 468, 5219, 30, 2380, 326, 813...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 819, 16, 21287, 2453, 16, 293, 22, 84, 25734, 2453, 4672, 225, 421, 24457, 18, 12328, 1964, 16186, 2738, 972, 12, 2890, 13, 468, 5219, 30, 2380, 326, 813...
return self._imported._all.relations
return self._imported.own.relations
def relations(self): if not self._imported: raise UnreachableImportError(self._id) return self._imported._all.relations
46078d9a93aa41d0d58630f0427916f90830a36b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11977/46078d9a93aa41d0d58630f0427916f90830a36b/import_.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7467, 12, 2890, 4672, 309, 486, 365, 6315, 29266, 30, 1002, 1351, 17246, 5010, 668, 12, 2890, 6315, 350, 13, 327, 365, 6315, 29266, 6315, 454, 18, 15018, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 7467, 12, 2890, 4672, 309, 486, 365, 6315, 29266, 30, 1002, 1351, 17246, 5010, 668, 12, 2890, 6315, 350, 13, 327, 365, 6315, 29266, 6315, 454, 18, 15018, 2, -100, -100, -100, -100, -100,...
from zope.app.form.browser import PasswordWidget, TextWidget, BytesWidget from zope.app.form.browser import CheckBoxWidget, DateWidget, IntWidget from zope.app.form.browser import ChoiceInputWidget, DropdownWidget, TextAreaWidget from zope.app.form.browser import ChoiceCollectionInputWidget, CollectionInputWidget from ...
def setUp(test): """Set up the test fixture for doctests in this module. Performs what is called a "placeless setup" in the Zope 3 world, then sets up annotations, relationships, and registers widgets as views for some schema fields. """ from zope.app.form.browser import PasswordWidget, TextWidget, BytesWidget from zo...
a914e41fe2b77f21dc7f07bea543a934060d0ff1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/a914e41fe2b77f21dc7f07bea543a934060d0ff1/test_app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 3813, 4672, 3536, 694, 731, 326, 1842, 16678, 364, 31263, 25563, 316, 333, 1605, 18, 225, 27391, 4121, 353, 2566, 279, 315, 30538, 12617, 3875, 6, 316, 326, 2285, 1306, 890, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 3813, 4672, 3536, 694, 731, 326, 1842, 16678, 364, 31263, 25563, 316, 333, 1605, 18, 225, 27391, 4121, 353, 2566, 279, 315, 30538, 12617, 3875, 6, 316, 326, 2285, 1306, 890, 9...
gLogger.error("Failed to get FTS Server after submission",res['Message'])
gLogger.error( "Failed to get FTS Server after submission", res['Message'] )
def submitTransfer(self,channelDict): """ This method creates and submits FTS jobs based on information it gets from the DB """
75a149be6b3b3e1970a5e02d5a7dfaf10cbe2b74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/75a149be6b3b3e1970a5e02d5a7dfaf10cbe2b74/FTSSubmitAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 5912, 12, 2890, 16, 4327, 5014, 4672, 3536, 1220, 707, 3414, 471, 720, 22679, 478, 8047, 6550, 2511, 603, 1779, 518, 5571, 628, 326, 2383, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 4879, 5912, 12, 2890, 16, 4327, 5014, 4672, 3536, 1220, 707, 3414, 471, 720, 22679, 478, 8047, 6550, 2511, 603, 1779, 518, 5571, 628, 326, 2383, 3536, 2, -100, -100, -100, -100, -100, -1...
idx = get_idx(idxID)
def perform_modifyindexstemming(idxID, ln=CFG_SITE_LANG, idxSTEM='', callback='yes', confirm=-1): """form to modify an index name. idxID - the index name to change. idxSTEM - new stemming language code""" subtitle = "" output = "" stemming_language_map = get_stemming_language_map() stemming_language_map['None'] = '...
9bb5a2cc734da75518f660295446063e9601e25d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/9bb5a2cc734da75518f660295446063e9601e25d/bibindexadminlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 17042, 1615, 19781, 11987, 12, 3465, 734, 16, 7211, 33, 19727, 67, 20609, 67, 10571, 16, 2067, 10765, 2218, 2187, 1348, 2218, 9707, 2187, 6932, 29711, 21, 4672, 3536, 687, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 17042, 1615, 19781, 11987, 12, 3465, 734, 16, 7211, 33, 19727, 67, 20609, 67, 10571, 16, 2067, 10765, 2218, 2187, 1348, 2218, 9707, 2187, 6932, 29711, 21, 4672, 3536, 687, 358, ...
data = f.ReadAsArray(x+190,y,400,300)
data = f.ReadAsArray(x+215,y,dx,dy)
def get_ctx_fname(obsid): """create full path for ctx file from obsid and ccd. ccd in this case is the mode of ctx operation. i call it ccd here because it is at the same place in the file name """ if obsid.startswith('P'): phase = 'PSP' else: phase = 'ESP' ccd = mydict[obsid]['CCDColour'] dname = ht.DEST_BASE + phase...
8ae3f32c8e70ab0c03deab714263afd3a488e199 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3185/8ae3f32c8e70ab0c03deab714263afd3a488e199/do_ctx.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5900, 67, 12749, 12, 947, 7453, 4672, 3536, 2640, 1983, 589, 364, 1103, 585, 628, 7160, 350, 471, 276, 4315, 18, 225, 276, 4315, 316, 333, 648, 353, 326, 1965, 434, 1103, 1674...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5900, 67, 12749, 12, 947, 7453, 4672, 3536, 2640, 1983, 589, 364, 1103, 585, 628, 7160, 350, 471, 276, 4315, 18, 225, 276, 4315, 316, 333, 648, 353, 326, 1965, 434, 1103, 1674...
stream = open(path, 'rb') self.add_format(id, ext, stream, index_is_id=True)
self.add_format_with_hooks(id, ext, path, index_is_id=True)
def import_book(self, mi, formats, notify=True): series_index = 1 if mi.series_index is None else mi.series_index if not mi.title: mi.title = _('Unknown') if not mi.authors: mi.authors = [_('Unknown')] aus = mi.author_sort if mi.author_sort else authors_to_sort_string(mi.authors) if isinstance(aus, str): aus = aus.deco...
d8b443fd26228f2d982998666ffbf4e70b35e459 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/d8b443fd26228f2d982998666ffbf4e70b35e459/database2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 3618, 12, 2890, 16, 12837, 16, 6449, 16, 5066, 33, 5510, 4672, 4166, 67, 1615, 273, 404, 309, 12837, 18, 10222, 67, 1615, 353, 599, 469, 12837, 18, 10222, 67, 1615, 309, 486,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 3618, 12, 2890, 16, 12837, 16, 6449, 16, 5066, 33, 5510, 4672, 4166, 67, 1615, 273, 404, 309, 12837, 18, 10222, 67, 1615, 353, 599, 469, 12837, 18, 10222, 67, 1615, 309, 486,...
else :
else:
def OpenFile(self,path): child = self.GetActiveChild() if child == None: maximizeNewWindow = False else: maximizeNewWindow = child.IsMaximized() file = open(path ,"r") textContent = file.read() file.close() if textContent[0:5] == '{\\rtf': win = self.OnNewRTFWindow(None) win.rtfSubWin.LoadFile(path) courierFont = wx.Fo...
a80838c2381f3fc8cfc375d205893d1fbbe163d0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11200/a80838c2381f3fc8cfc375d205893d1fbbe163d0/Psycollider.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25284, 12, 2890, 16, 803, 4672, 1151, 273, 365, 18, 967, 3896, 1763, 1435, 309, 1151, 422, 599, 30, 943, 10153, 1908, 3829, 273, 1083, 469, 30, 943, 10153, 1908, 3829, 273, 1151, 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, 25284, 12, 2890, 16, 803, 4672, 1151, 273, 365, 18, 967, 3896, 1763, 1435, 309, 1151, 422, 599, 30, 943, 10153, 1908, 3829, 273, 1083, 469, 30, 943, 10153, 1908, 3829, 273, 1151, 18, 2...
user_info['guest'] = isGuestUser(uid)
user_info['guest'] = str(isGuestUser(uid))
def collect_user_info(req): """Given the mod_python request object rec or a uid it returns a dictionary containing at least the keys uid, nickname, email, groups, plus any external keys in the user preferences (collected at login time and built by the different external authentication plugins) and if the mod_python req...
dfd40d228b53c821f7c2c881515fdd3e0807af2c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/dfd40d228b53c821f7c2c881515fdd3e0807af2c/webuser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3274, 67, 1355, 67, 1376, 12, 3658, 4672, 3536, 6083, 326, 681, 67, 8103, 590, 733, 1950, 578, 279, 4555, 518, 1135, 279, 3880, 4191, 622, 4520, 326, 1311, 4555, 16, 19570, 16, 2699, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3274, 67, 1355, 67, 1376, 12, 3658, 4672, 3536, 6083, 326, 681, 67, 8103, 590, 733, 1950, 578, 279, 4555, 518, 1135, 279, 3880, 4191, 622, 4520, 326, 1311, 4555, 16, 19570, 16, 2699, 1...
umStripe = Rect(self.x, self.y + w - self.delta0, w, self.delta0)
umStripe = Rect(self.x, self.y + w - self.delta0, w, self.y + h - y)
def makeInnerTiles(self): # inner grid lines group = Group()
2153c6f9f7afc55d87d741aa392569b7c2232d19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/2153c6f9f7afc55d87d741aa392569b7c2232d19/grids.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 2857, 27669, 12, 2890, 4672, 468, 3443, 3068, 2362, 1041, 273, 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, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 2857, 27669, 12, 2890, 4672, 468, 3443, 3068, 2362, 1041, 273, 3756, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
while 1: new_basename = os.path.splitext(basename)[0] if basename == new_basename: break else: basename = new_basename return basename
return os.path.splitext(basename)[0]
def ExtractModuleName(infile_path): """Infers the module name from the input file path. The input filename is supposed to be in the form "ModuleName.sigs". This function splits the filename from the extention on that basename of the path and returns that as the module name. Args: infile_path: String holding the path ...
25d64ba1613990508557b9e3aa4d6a6e7adbb0af /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/25d64ba1613990508557b9e3aa4d6a6e7adbb0af/generate_stubs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8152, 22542, 12, 267, 768, 67, 803, 4672, 3536, 13149, 414, 326, 1605, 508, 628, 326, 810, 585, 589, 18, 225, 1021, 810, 1544, 353, 18405, 358, 506, 316, 326, 646, 315, 22542, 18, 7340...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8152, 22542, 12, 267, 768, 67, 803, 4672, 3536, 13149, 414, 326, 1605, 508, 628, 326, 810, 585, 589, 18, 225, 1021, 810, 1544, 353, 18405, 358, 506, 316, 326, 646, 315, 22542, 18, 7340...
self->local_address = strdup(address)
self->local_address = land_strdup(address)
def land_net_listen(LandNet *self, char const *address): int r struct sockaddr_in sock_address char *host int port if self->state != LAND_NET_INVALID: return self->local_address = strdup(address) split_address(address, &host, &port) # Resolve hostname. struct hostent *hostinfo if not (hostinfo = gethostbyname(host)...
4eb61e798256f12c03c487d14ad7817eac2632fa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/930/4eb61e798256f12c03c487d14ad7817eac2632fa/net.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19193, 67, 2758, 67, 18085, 12, 29398, 7308, 380, 2890, 16, 1149, 1866, 380, 2867, 4672, 509, 436, 1958, 7313, 4793, 67, 267, 7313, 67, 2867, 1149, 380, 2564, 509, 1756, 225, 309, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19193, 67, 2758, 67, 18085, 12, 29398, 7308, 380, 2890, 16, 1149, 1866, 380, 2867, 4672, 509, 436, 1958, 7313, 4793, 67, 267, 7313, 67, 2867, 1149, 380, 2564, 509, 1756, 225, 309, 365, ...
if re.search('Block ID \d+ not found', data):
if self.site.mediawiki_message('ipb_cant_unblock').replace('$1',blockID) in data:
def _unblock(self, blockID, reason): wikipedia.output(u"Unblocking [[User:%s]]..." % self.name)
1dca0fe426cbe0076a52cf652bf8c838530d2355 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/1dca0fe426cbe0076a52cf652bf8c838530d2355/userlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 318, 2629, 12, 2890, 16, 1203, 734, 16, 3971, 4672, 21137, 18, 2844, 12, 89, 6, 984, 18926, 12167, 1299, 5319, 87, 13563, 7070, 738, 365, 18, 529, 13, 2, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 318, 2629, 12, 2890, 16, 1203, 734, 16, 3971, 4672, 21137, 18, 2844, 12, 89, 6, 984, 18926, 12167, 1299, 5319, 87, 13563, 7070, 738, 365, 18, 529, 13, 2, -100, -100, -100, -100, ...
configbutton = buttonname % seeknumber def onResponse (dialog, response): self.widgets["editSeekDialog"].hide() self.widgets["editSeekDialog"].disconnect(handlerId) for i in range(1,4): self.widgets[buttonname % i].set_sensitive(True) self.widgets[opbuttonname % i].set_sensitive(True) if configbutton in self.connectio...
self.widgets["seek%dRadio" % seeknumber].set_active(True) self.widgets["challenge%dRadio" % seeknumber].set_active(True)
def __showSeekEditor (self, seeknumber, challengemode=False): if not challengemode: radioname = "seek%dRadio" opradioname = "challenge%dRadio" buttonname = "seek%dRadioConfigButton" opbuttonname = "challenge%dRadioConfigButton" configbuttoncallee = self.onSeekRadioConfigButtonClicked self.widgets["strengthFrame"].show(...
d29f291e2b68981e77b9413248abc5f4e586b518 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5339/d29f291e2b68981e77b9413248abc5f4e586b518/ICLounge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4500, 16134, 6946, 261, 2890, 16, 6520, 2696, 16, 462, 7862, 23465, 390, 33, 8381, 4672, 309, 486, 462, 7862, 23465, 390, 30, 6719, 285, 339, 273, 315, 16508, 9, 72, 19984, 6, 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, 1001, 4500, 16134, 6946, 261, 2890, 16, 6520, 2696, 16, 462, 7862, 23465, 390, 33, 8381, 4672, 309, 486, 462, 7862, 23465, 390, 30, 6719, 285, 339, 273, 315, 16508, 9, 72, 19984, 6, 10...
out.write("%s.o "%os.path.splitext(modules[mod])[0])
out.write("%s%s "%(os.path.splitext(modules[mod])[0],obj_ext))
def print_makefile(out,files,modules): "print Makefile dependencies" for r in files: out.write("%s.o:\t\t"%os.path.splitext(r['realname'])[0]) for mod in r['uses']: if mod in modules.keys(): if modules[mod] != r['realname']: out.write("%s.o "%os.path.splitext(modules[mod])[0]) for inc in r['includes']: out.write("%s "...
02022ee431bc9e31b604517da7824ed6db30e013 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5730/02022ee431bc9e31b604517da7824ed6db30e013/f90_dependencies.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 6540, 768, 12, 659, 16, 2354, 16, 6400, 4672, 315, 1188, 4344, 768, 5030, 6, 225, 364, 436, 316, 1390, 30, 596, 18, 2626, 27188, 87, 18, 83, 5581, 88, 64, 88, 28385, 538, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 6540, 768, 12, 659, 16, 2354, 16, 6400, 4672, 315, 1188, 4344, 768, 5030, 6, 225, 364, 436, 316, 1390, 30, 596, 18, 2626, 27188, 87, 18, 83, 5581, 88, 64, 88, 28385, 538, ...
return eval(maxima.eval("jacobi_ds(%s,%s)"%(RR(x),RR(m))))
return eval(maxima.eval("jacobi_ds(%s,%s)"%(float(x),float(m))))
def jacobi(sym,x,m): r""" Here sym = "pq", where p,q in {c,d,n,s}. This returns the value of the Jacobi function pq(x,m), as described in the documentation for SAGE's "special" module. There are a total of 12 functions described by this. EXAMPLES: sage: jacobi("sn",1,1) 0.76159415595576485 sage: jacobi("cd",1,1/2) 0.7...
58182f025c83380408aaf42e8d8809df714f6650 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/58182f025c83380408aaf42e8d8809df714f6650/special.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20138, 30875, 12, 8117, 16, 92, 16, 81, 4672, 436, 8395, 13743, 5382, 273, 315, 84, 85, 3113, 1625, 293, 16, 85, 316, 288, 71, 16, 72, 16, 82, 16, 87, 5496, 1220, 1135, 326, 460, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20138, 30875, 12, 8117, 16, 92, 16, 81, 4672, 436, 8395, 13743, 5382, 273, 315, 84, 85, 3113, 1625, 293, 16, 85, 316, 288, 71, 16, 72, 16, 82, 16, 87, 5496, 1220, 1135, 326, 460, 4...
def appendBuffer(mtime, cmdtype, val): global Buffer, BufferType, BufferStart, BufferEnd if BufferStart == None: BufferStart = mtime BufferEnd = mtime BufferType = cmdtype Buffer = Buffer + chr(val)
def procline(sb, line, addr): m = dis.re_trace.match(line) if m is not None: vaddr = int(m.group('vaddr'), 16) val = int(m.group('val'), 16) paddr, reginfo = dis.memalias.lookupVirt(vaddr) if paddr == addr and val <= 0xff: insn = int(m.group('insn'), 16) if insn & (1<<20): cmdtype = 'read' else: cmdtype = 'write' sb.ap...
def appendBuffer(mtime, cmdtype, val): global Buffer, BufferType, BufferStart, BufferEnd if BufferStart == None: BufferStart = mtime BufferEnd = mtime BufferType = cmdtype Buffer = Buffer + chr(val)
274490f6864f4ddabf9afc313b6221fdedfa1115 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12923/274490f6864f4ddabf9afc313b6221fdedfa1115/scanserial.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 450, 830, 558, 12, 18366, 16, 980, 16, 3091, 4672, 312, 273, 1015, 18, 266, 67, 5129, 18, 1916, 12, 1369, 13, 309, 312, 353, 486, 599, 30, 331, 4793, 273, 509, 12, 81, 18, 1655, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 450, 830, 558, 12, 18366, 16, 980, 16, 3091, 4672, 312, 273, 1015, 18, 266, 67, 5129, 18, 1916, 12, 1369, 13, 309, 312, 353, 486, 599, 30, 331, 4793, 273, 509, 12, 81, 18, 1655, 26...
self.locks[tid].acquire()
self.locks.acquire(tid)
def getting(empty_task,tid) : self.locks[tid].acquire() self.backend.get_task(empty_task,tid) empty_task.set_sync_func(self.set_task) empty_task.set_loaded() self.locks[tid].release() self.refresh()
4daef5a2d0aef4d6b8dd91b378a4e0dbaa39d69d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/4daef5a2d0aef4d6b8dd91b378a4e0dbaa39d69d/datastore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8742, 12, 5531, 67, 4146, 16, 18081, 13, 294, 365, 18, 23581, 18, 1077, 1039, 12, 18081, 13, 365, 18, 9993, 18, 588, 67, 4146, 12, 5531, 67, 4146, 16, 18081, 13, 1008, 67, 4146, 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, 8742, 12, 5531, 67, 4146, 16, 18081, 13, 294, 365, 18, 23581, 18, 1077, 1039, 12, 18081, 13, 365, 18, 9993, 18, 588, 67, 4146, 12, 5531, 67, 4146, 16, 18081, 13, 1008, 67, 4146, 18, ...
print "The specified page is not a redirect." sys.exit(1)
print "The specified page is not a redirect. Skipping." continue
def run(self): if self.main_only: if ignore_title.has_key(self.mylang): ignore_title[self.mylang] += self.mysite.namespaces() else: ignore_title[self.mylang] = self.mysite.namespaces() for disambTitle in self.page_list: # when run with -redir argument, there's another summary message if self.solve_redirect: wikipedia....
c9ced41134489c1f1a6d7c2aa3d5a181db7b2ffa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/c9ced41134489c1f1a6d7c2aa3d5a181db7b2ffa/solve_disambiguation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 309, 365, 18, 5254, 67, 3700, 30, 309, 2305, 67, 2649, 18, 5332, 67, 856, 12, 2890, 18, 4811, 4936, 4672, 2305, 67, 2649, 63, 2890, 18, 4811, 4936, 65, 1011, 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, 1086, 12, 2890, 4672, 309, 365, 18, 5254, 67, 3700, 30, 309, 2305, 67, 2649, 18, 5332, 67, 856, 12, 2890, 18, 4811, 4936, 4672, 2305, 67, 2649, 63, 2890, 18, 4811, 4936, 65, 1011, 36...
for f in os.listdir(self._path):
for f in os.listdir(self._abspath):
def remove(self): if self.dirty(): self._ui.warn(_('not removing repo %s because ' 'it has changes.\n') % self._path) return # we can't fully delete the repository as it may contain # local-only history self._ui.note(_('removing subrepo %s\n') % self._path) self._gitcommand(['config', 'core.bare', 'true']) for f in os....
51b86ca31bbe6bb9d97c098b43cb9fa45776b689 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/51b86ca31bbe6bb9d97c098b43cb9fa45776b689/subrepo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 12, 2890, 4672, 309, 365, 18, 18013, 13332, 365, 6315, 4881, 18, 8935, 24899, 2668, 902, 9427, 3538, 738, 87, 2724, 296, 296, 305, 711, 3478, 8403, 82, 6134, 738, 365, 6315, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 12, 2890, 4672, 309, 365, 18, 18013, 13332, 365, 6315, 4881, 18, 8935, 24899, 2668, 902, 9427, 3538, 738, 87, 2724, 296, 296, 305, 711, 3478, 8403, 82, 6134, 738, 365, 6315, 803, ...
- ``iota1`` - an embedding of self into D - ``iota2`` - an embedding of other into D - ``pr1`` - the projection of D onto self (giving a
- ``iota1`` - an embedding of ``self`` into ``D`` - ``iota2`` - an embedding of ``other`` into ``D`` - ``pr1`` - the projection of ``D`` onto ``self`` (giving a
def direct_product(self,other,maps=True): """ Wraps GAP's DirectProduct, Embedding, and Projection. Sage calls GAP's DirectProduct, which chooses an efficient representation for the direct product. The direct product of permutation groups will be a permutation group again. For a direct product D, the GAP operation Emb...
1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2657, 67, 5896, 12, 2890, 16, 3011, 16, 10711, 33, 5510, 4672, 3536, 678, 7506, 611, 2203, 1807, 9908, 4133, 16, 14564, 7459, 16, 471, 21288, 18, 225, 348, 410, 4097, 611, 2203, 1807, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2657, 67, 5896, 12, 2890, 16, 3011, 16, 10711, 33, 5510, 4672, 3536, 678, 7506, 611, 2203, 1807, 9908, 4133, 16, 14564, 7459, 16, 471, 21288, 18, 225, 348, 410, 4097, 611, 2203, 1807, ...
if e.args[0] != 10061:
if e.args[0] != errno.ECONNREFUSED:
def SocketClient(address): ''' Return a connection object connected to the socket given by `address` ''' family = address_type(address) s = socket.socket( getattr(socket, family) ) while 1: try: s.connect(address) except socket.error, e: if e.args[0] != 10061: # 10061 => connection refused debug('failed to connect ...
04cbec4e4dd00259f03e9ab1c2d626ecefeb0dab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/04cbec4e4dd00259f03e9ab1c2d626ecefeb0dab/connection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8758, 1227, 12, 2867, 4672, 9163, 2000, 279, 1459, 733, 5840, 358, 326, 2987, 864, 635, 1375, 2867, 68, 9163, 6755, 273, 1758, 67, 723, 12, 2867, 13, 272, 273, 2987, 18, 7814, 12, 3869...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8758, 1227, 12, 2867, 4672, 9163, 2000, 279, 1459, 733, 5840, 358, 326, 2987, 864, 635, 1375, 2867, 68, 9163, 6755, 273, 1758, 67, 723, 12, 2867, 13, 272, 273, 2987, 18, 7814, 12, 3869...
def thread_results(self, REQUEST, bstart, bsize, s_on, s_order):
def thread_results(self, REQUEST, b_start, b_size, s_on, s_order):
def thread_results(self, REQUEST, bstart, bsize, s_on, s_order):
b575cd3396d4a2cd53f070c1cde69d9188f36d24 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6274/b575cd3396d4a2cd53f070c1cde69d9188f36d24/XWFVirtualMailingListArchive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2650, 67, 4717, 12, 2890, 16, 12492, 16, 324, 1937, 16, 324, 1467, 16, 272, 67, 265, 16, 272, 67, 1019, 4672, 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, 2650, 67, 4717, 12, 2890, 16, 12492, 16, 324, 1937, 16, 324, 1467, 16, 272, 67, 265, 16, 272, 67, 1019, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
return _with_warning_restore
return decorator @with_warning_restore
def _with_warning_restore(*args, **kw): with test.test_support.catch_warning(): # Grrr, we need this function to warn every time. Without removing # the warningregistry, running test_tarfile then test_struct would fail # on 64-bit platforms. globals = func.func_globals if '__warningregistry__' in globals: del globals[...
8cbd853c59f75418bae9bcfd0fe656e7474c6d87 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/8cbd853c59f75418bae9bcfd0fe656e7474c6d87/test_struct.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1918, 67, 8551, 67, 13991, 30857, 1968, 16, 2826, 9987, 4672, 598, 1842, 18, 3813, 67, 13261, 18, 14683, 67, 8551, 13332, 468, 611, 523, 86, 16, 732, 1608, 333, 445, 358, 1894, 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, 389, 1918, 67, 8551, 67, 13991, 30857, 1968, 16, 2826, 9987, 4672, 598, 1842, 18, 3813, 67, 13261, 18, 14683, 67, 8551, 13332, 468, 611, 523, 86, 16, 732, 1608, 333, 445, 358, 1894, 36...
[1,-1], [-1,1],
[ 1,-1], [-1, 1]
def bar3s(ex,ey,ez,ep,ed): """ Compute normal force in three dimensional bar element. Parameters: ex = [x1 x2] ey = [y1 y2] element node coordinates ez = [z1 z2] ep = [E A] E: Young's modulus A: Cross sections area ed = [u1 ... u6] element displacements Returns: es = [N] normal force...
802fb797c1c505715968b6bf327cad5ed7e0e712 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1235/802fb797c1c505715968b6bf327cad5ed7e0e712/pycalfem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4653, 23, 87, 12, 338, 16, 402, 16, 6664, 16, 881, 16, 329, 4672, 3536, 8155, 2212, 2944, 316, 8925, 17469, 4653, 930, 18, 225, 7012, 30, 225, 431, 273, 306, 92, 21, 619, 22, 65, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4653, 23, 87, 12, 338, 16, 402, 16, 6664, 16, 881, 16, 329, 4672, 3536, 8155, 2212, 2944, 316, 8925, 17469, 4653, 930, 18, 225, 7012, 30, 225, 431, 273, 306, 92, 21, 619, 22, 65, 1...
self.addCommandToQueue( cmd )
return cmd
def __cmdCopy( self, origin, dest, comment ): destT = self.__getDevCmdBase( dest ) orT = self.__getDevCmdBase( origin ) cmd = "svn copy -m '%s' %s %s %s" % ( comment, destT[0], orT[1], destT[1] ) self.addCommandToQueue( cmd )
b261126bae40647155e335ee65e1e6e963b11f18 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/b261126bae40647155e335ee65e1e6e963b11f18/Distribution.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4172, 2951, 12, 365, 16, 4026, 16, 1570, 16, 2879, 262, 30, 1570, 56, 273, 365, 16186, 588, 8870, 5931, 2171, 12, 1570, 262, 578, 56, 273, 365, 16186, 588, 8870, 5931, 2171, 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, 1001, 4172, 2951, 12, 365, 16, 4026, 16, 1570, 16, 2879, 262, 30, 1570, 56, 273, 365, 16186, 588, 8870, 5931, 2171, 12, 1570, 262, 578, 56, 273, 365, 16186, 588, 8870, 5931, 2171, 12, ...
(SRC_IP_ALLOW, ) = struct.unpack("L", struct.pack("BBBB", a, b, c, d))
SRC_IP_ALLOW = d + c*256 + b*256**2 + a*256**3
def set_src_allow(allow_cidr): """Set the allowed source address in CIDR-notation. For example: set_src_allow("4.0.0.0/24") -> allow 4.0.0.0 - 4.255.255.255""" global SRC_IP_MASK, SRC_IP_ALLOW (allow, cidr) = allow_cidr.split("/") cidr = int(cidr) SRC_IP_MASK = (0xffffffffL >> (32 - cidr) << (32 - cidr)) allow_list = m...
49b5e17e43504afeaa5a2db14a4540dd12e3bdff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2496/49b5e17e43504afeaa5a2db14a4540dd12e3bdff/sumiserv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 4816, 67, 5965, 12, 5965, 67, 13478, 86, 4672, 3536, 694, 326, 2935, 1084, 1758, 316, 16906, 17, 1819, 18, 2457, 3454, 30, 444, 67, 4816, 67, 5965, 2932, 24, 18, 20, 18, 20,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 4816, 67, 5965, 12, 5965, 67, 13478, 86, 4672, 3536, 694, 326, 2935, 1084, 1758, 316, 16906, 17, 1819, 18, 2457, 3454, 30, 444, 67, 4816, 67, 5965, 2932, 24, 18, 20, 18, 20,...
retValue = {'success': True, 'msgs': "", 'error_msgs': '' }
retValue = {'success': True, 'msgs': "", 'error_msgs': '' } if (not os.path.exists(myasdm_dataset_name)): print myname, ': Error: Input asdm does not exist %s'%myasdm_dataset_name
def test3(self): '''Asdm-import 3: Good input''' retValue = {'success': True, 'msgs': "", 'error_msgs': '' } try: self.res = importoldasdm(myasdm_dataset_name) except: retValue['success']=False retValue['error_msgs']=retValue['error_msgs']+'Failed to run on good input.'
ef388773cf0e1cdb19b08cefa23dc4a9af5c6e39 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2098/ef388773cf0e1cdb19b08cefa23dc4a9af5c6e39/test_asdm-import.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 23, 12, 2890, 4672, 9163, 1463, 10956, 17, 5666, 890, 30, 31732, 810, 26418, 21236, 273, 13666, 4768, 4278, 1053, 16, 296, 27439, 4278, 23453, 296, 1636, 67, 27439, 4278, 875, 289, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 23, 12, 2890, 4672, 9163, 1463, 10956, 17, 5666, 890, 30, 31732, 810, 26418, 21236, 273, 13666, 4768, 4278, 1053, 16, 296, 27439, 4278, 23453, 296, 1636, 67, 27439, 4278, 875, 289, ...
def GetLastHashKey(id):
def GetLastHashKey(hashid):
def GetLastHashKey(id): raise DeprecatedIDCError, "Use python pickles instead."
244a3cd02a580c0095170004ec30e922f0d1a8a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6984/244a3cd02a580c0095170004ec30e922f0d1a8a6/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 3024, 31006, 12, 2816, 350, 4672, 1002, 9336, 734, 39, 668, 16, 315, 3727, 5790, 6002, 1040, 3560, 1199, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 968, 3024, 31006, 12, 2816, 350, 4672, 1002, 9336, 734, 39, 668, 16, 315, 3727, 5790, 6002, 1040, 3560, 1199, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
@return: ID of created object
@return: ID of created object
def _generate_mailbox_item_from_template(self, cursor, user, template, record_id, context=None): """ Generates an email from the template for record record_id of target object @param cursor: Database Cursor @param user: ID of User @param template: Browse record of template @param record_id: ID of the target model for ...
c73e17329c92d262f57a45e57664e059f5ce62c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/c73e17329c92d262f57a45e57664e059f5ce62c3/email_template.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7163, 67, 4408, 2147, 67, 1726, 67, 2080, 67, 3202, 12, 2890, 16, 3347, 16, 729, 16, 1542, 16, 1409, 67, 350, 16, 819, 33, 7036, 4672, 3536, 31902, 392, 2699, 628, 326, 1542, 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, 389, 7163, 67, 4408, 2147, 67, 1726, 67, 2080, 67, 3202, 12, 2890, 16, 3347, 16, 729, 16, 1542, 16, 1409, 67, 350, 16, 819, 33, 7036, 4672, 3536, 31902, 392, 2699, 628, 326, 1542, 36...
x, y = canvas._curr_tx_info['cur_x'], canvas._curr_tx_info['cur_y']
def drawTOCEntryEnd(canvas, kind, label): '''Callback to draw dots and page numbers after each entry.''' page, level = [ int(x) for x in label.split(',') ] x, y = canvas._curr_tx_info['cur_x'], canvas._curr_tx_info['cur_y'] style = self.levelStyles[level] pagew = stringWidth(' %d' % page, style.fontName, style.fontSiz...
d97e82cb7278382d065be008ee571313be90209b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3878/d97e82cb7278382d065be008ee571313be90209b/tableofcontents.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 4296, 39, 1622, 1638, 12, 15424, 16, 3846, 16, 1433, 4672, 9163, 2428, 358, 3724, 19522, 471, 1363, 5600, 1839, 1517, 1241, 1093, 6309, 1363, 16, 1801, 273, 306, 509, 12, 92, 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, 3724, 4296, 39, 1622, 1638, 12, 15424, 16, 3846, 16, 1433, 4672, 9163, 2428, 358, 3724, 19522, 471, 1363, 5600, 1839, 1517, 1241, 1093, 6309, 1363, 16, 1801, 273, 306, 509, 12, 92, 13, ...
action="store", type="string", dest="hostname", default = None,
action="store", type="string", dest="hostname", default=None,
def common_filter_group(app, parser, tool, mode): """Build Filter OptionGroup for all get variants.""" big_help_string = ( """ WARNING: filters are only partially cumulative. Order """ """of operations: %s %s """ """takes precedence on other inclusive filters (if it is """ """present, any other inclusive filter is pur...
461c24b546b5d0469c4e29582a85905d96b60351 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/461c24b546b5d0469c4e29582a85905d96b60351/argparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2975, 67, 2188, 67, 1655, 12, 2910, 16, 2082, 16, 5226, 16, 1965, 4672, 3536, 3116, 4008, 2698, 1114, 364, 777, 336, 12935, 12123, 225, 5446, 67, 5201, 67, 1080, 273, 261, 3536, 9744, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2975, 67, 2188, 67, 1655, 12, 2910, 16, 2082, 16, 5226, 16, 1965, 4672, 3536, 3116, 4008, 2698, 1114, 364, 777, 336, 12935, 12123, 225, 5446, 67, 5201, 67, 1080, 273, 261, 3536, 9744, ...
def send_mail(self, to_address, subject, body, attach=None): sent = tools.email_send(config['email_from'], to_address, subject, body, attach=attach)
def send_mail(self, to_address, subject, body, attach=None): sent = tools.email_send(config['email_from'], to_address, subject, body, attach=attach, ssl=True)
def send_mail(self, to_address, subject, body, attach=None): sent = tools.email_send(config['email_from'], to_address, subject, body, attach=attach) logger = netsvc.Logger() if not sent: logger.notifyChannel('email', netsvc.LOG_ERROR, 'Failed to send email to : %s' % (to_address)) else: logger.notifyChannel('email', ne...
0944b6859f82afb44e3d9bec8c41e264c9e0a66e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/0944b6859f82afb44e3d9bec8c41e264c9e0a66e/project_event.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 4408, 12, 2890, 16, 358, 67, 2867, 16, 3221, 16, 1417, 16, 3306, 33, 7036, 4672, 3271, 273, 8513, 18, 3652, 67, 4661, 12, 1425, 3292, 3652, 67, 2080, 17337, 358, 67, 2867, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4408, 12, 2890, 16, 358, 67, 2867, 16, 3221, 16, 1417, 16, 3306, 33, 7036, 4672, 3271, 273, 8513, 18, 3652, 67, 4661, 12, 1425, 3292, 3652, 67, 2080, 17337, 358, 67, 2867, ...
<screen position="80,80" size="560,430" title="Select service to add...">
<screen name="myChannelSelection" position="center,center" size="560,440" title="Select service to add...">
def cancel(self): self.close(None)
7ac3daaddd1d808a9238391cd14613931900e4f9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/7ac3daaddd1d808a9238391cd14613931900e4f9/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3755, 12, 2890, 4672, 365, 18, 4412, 12, 7036, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3755, 12, 2890, 4672, 365, 18, 4412, 12, 7036, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
raise NotImplemented
raise NotImplementedError
def __hash__(self): raise NotImplemented
c09be4a5707bf111f183e07dbd7556e5d4b69445 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/c09be4a5707bf111f183e07dbd7556e5d4b69445/logistic_regression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2816, 972, 12, 2890, 4672, 1002, 10051, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2816, 972, 12, 2890, 4672, 1002, 10051, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
try: chunk = Chunk().init(self._file) except EOFError: raise Error, 'COMM chunk and/or SSND chunk missing'
chunk = Chunk().init(self._file)
def initfp(self, file): self._file = file self._version = 0 self._decomp = None self._markers = [] self._soundpos = 0 form = self._file.read(4) if form != 'FORM': raise Error, 'file does not start with FORM id' formlength = _read_long(self._file) if formlength <= 0: raise Error, 'invalid FORM chunk data size' formdata ...
e2b8be09f6437ef7e6102a285da08309429ee0c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e2b8be09f6437ef7e6102a285da08309429ee0c8/aifc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 7944, 12, 2890, 16, 585, 4672, 365, 6315, 768, 273, 585, 365, 6315, 1589, 273, 374, 365, 6315, 323, 2919, 273, 599, 365, 6315, 22807, 273, 5378, 365, 6315, 29671, 917, 273, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 7944, 12, 2890, 16, 585, 4672, 365, 6315, 768, 273, 585, 365, 6315, 1589, 273, 374, 365, 6315, 323, 2919, 273, 599, 365, 6315, 22807, 273, 5378, 365, 6315, 29671, 917, 273, 374, ...
if line.upper().find('ABOR') != -1:
if 'ABOR' in line.upper():
def found_terminator(self): line = ''.join(self.in_buffer).strip() self.in_buffer = [] self.in_buffer_len = 0 cmd = line.split(' ')[0].upper() space = line.find(' ') if space != -1: arg = line[space + 1:] else: arg = ""
3b393a7e366f846f71a2da059e75a45c755e9f2d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/3b393a7e366f846f71a2da059e75a45c755e9f2d/FTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1392, 67, 9505, 639, 12, 2890, 4672, 980, 273, 875, 18, 5701, 12, 2890, 18, 267, 67, 4106, 2934, 6406, 1435, 365, 18, 267, 67, 4106, 273, 5378, 365, 18, 267, 67, 4106, 67, 1897, 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, 1392, 67, 9505, 639, 12, 2890, 4672, 980, 273, 875, 18, 5701, 12, 2890, 18, 267, 67, 4106, 2934, 6406, 1435, 365, 18, 267, 67, 4106, 273, 5378, 365, 18, 267, 67, 4106, 67, 1897, 273,...
self.scan_type = type
self.scan_type = type.replace("seismic","seis").upper()
def __init__(self, dag, job, cp, opts, ifo, p_nodes=[], type=""):
fb58c7d349a492c8a0f47de21dc07f423e29b187 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fb58c7d349a492c8a0f47de21dc07f423e29b187/stfu_pipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 22940, 16, 1719, 16, 3283, 16, 1500, 16, 21479, 16, 293, 67, 4690, 22850, 6487, 618, 1546, 6, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 22940, 16, 1719, 16, 3283, 16, 1500, 16, 21479, 16, 293, 67, 4690, 22850, 6487, 618, 1546, 6, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
self.do_alarm_unlink(cr, uid, ids)
alarm_obj = self.pool.get('res.alarm') alarm_obj.do_alarm_unlink(cr, uid, ids, self._name)
def unlink(self, cr, uid, ids, context=None): res = False for id in ids: ls = common.caldav_id2real_id(id) if not isinstance(ls, (str, int, long)) and len(ls) >= 2: date_new = ls[1] for record in self.read(cr, uid, [common.caldav_id2real_id(id)], \ ['date', 'rrule', 'exdate']): if record['rrule']: exdate = (record['exd...
2989254e134c0efd8265d710ce402e27bd1ea1c6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/2989254e134c0efd8265d710ce402e27bd1ea1c6/crm_meeting.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8255, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 400, 273, 1083, 364, 612, 316, 3258, 30, 7180, 273, 2975, 18, 771, 20752, 67, 350, 22, 7688, 67, 350, 12, 350, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8255, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 400, 273, 1083, 364, 612, 316, 3258, 30, 7180, 273, 2975, 18, 771, 20752, 67, 350, 22, 7688, 67, 350, 12, 350, ...
self._set_field('top', top)
def restore_old_boundaries(self): top = self._get_field('top.old')
6b760799882407774730b2d75bb5616e6ffd9804 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12366/6b760799882407774730b2d75bb5616e6ffd9804/stack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5217, 67, 1673, 67, 3653, 5646, 12, 2890, 4672, 1760, 273, 365, 6315, 588, 67, 1518, 2668, 3669, 18, 1673, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5217, 67, 1673, 67, 3653, 5646, 12, 2890, 4672, 1760, 273, 365, 6315, 588, 67, 1518, 2668, 3669, 18, 1673, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
xt,self.boxHeight-(self.triangleHeight/2)]))
xt,self.boxHeight-(self.triangleHeight/2)]))
def draw(self): g = Group() ys = self.bottomPadding+(self.triangleHeight/2)+self.sourceLabelOffset+self.sourceLabelFontSize if self.background: x,y = self._getDrawingDimensions() g.add(Rect(-self.leftPadding,-ys,x,y, strokeColor=None, strokeWidth=0, fillColor=self.background))
1a4c1fa27e25d7181b12cb1772c1e32db9507de6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/1a4c1fa27e25d7181b12cb1772c1e32db9507de6/slidebox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 4672, 314, 273, 3756, 1435, 16036, 273, 365, 18, 9176, 9485, 15, 12, 2890, 18, 16857, 4341, 2686, 19, 22, 27921, 2890, 18, 3168, 2224, 2335, 15, 2890, 18, 3168, 2224, 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, 3724, 12, 2890, 4672, 314, 273, 3756, 1435, 16036, 273, 365, 18, 9176, 9485, 15, 12, 2890, 18, 16857, 4341, 2686, 19, 22, 27921, 2890, 18, 3168, 2224, 2335, 15, 2890, 18, 3168, 2224, 2...
gateGump.addText( 40, 40, "Pick your destination: (Felucca)" )
gateGump.addText( 40, 40, "Pick your destination:" )
def sendGump( char, item ): char.soundeffect( 0x58 ) # noclose, nomove gump gateGump = cGump( 1, 1, 0, 30, 30 ) # trammel gateGump.startPage( 1 ) gateGump.addBackground( 9200, 300, 255 ) gateGump.addText( 40, 40, "Pick your destination: (Trammel)" ) gateGump.addButton( 47, 207, 0xFA5, 0xFA7, 0 ) gateGump.addText( 80, 2...
fa762406a204038e4f2a446679a18b75f632c2ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/fa762406a204038e4f2a446679a18b75f632c2ac/moongate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 43, 2801, 12, 1149, 16, 761, 262, 30, 1149, 18, 87, 465, 536, 74, 386, 12, 374, 92, 8204, 262, 468, 30601, 2061, 16, 12457, 841, 314, 2801, 12611, 43, 2801, 273, 276, 43, 2801,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 43, 2801, 12, 1149, 16, 761, 262, 30, 1149, 18, 87, 465, 536, 74, 386, 12, 374, 92, 8204, 262, 468, 30601, 2061, 16, 12457, 841, 314, 2801, 12611, 43, 2801, 273, 276, 43, 2801,...
self.translate('atse_moved_right', default='Schemata moved to right'), schemata=name)
self.translate('atse_moved_right', default='Schemata moved to right'), schemata=name)
def atse_schemataMoveRight(self, name, RESPONSE=None): """ move a schemata to the right""" self._ms.moveSchemata(name, 1) self._p_changed = 1 util.redirect(RESPONSE, 'atse_editor', self.translate('atse_moved_right', default='Schemata moved to right'), schemata=name)
43c57c291c51f11c204380817b1150a26937fe91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/43c57c291c51f11c204380817b1150a26937fe91/SchemaEditor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 622, 307, 67, 87, 1036, 396, 7607, 4726, 12, 2890, 16, 508, 16, 20645, 33, 7036, 4672, 3536, 3635, 279, 30140, 396, 358, 326, 2145, 8395, 365, 6315, 959, 18, 8501, 55, 1036, 396, 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, 622, 307, 67, 87, 1036, 396, 7607, 4726, 12, 2890, 16, 508, 16, 20645, 33, 7036, 4672, 3536, 3635, 279, 30140, 396, 358, 326, 2145, 8395, 365, 6315, 959, 18, 8501, 55, 1036, 396, 12, ...
self.sram = '\x00' * (SRAM_LEN*4) self.mem = [0L] * MEM_LEN
def connect(self, de, port, board, build, name): """Establish a connection to the board.""" print 'connecting to: %s (build #%d)' % (boardMAC(board), build)
e5536ee3540ed76874b9bd1b357a8407dd491843 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7016/e5536ee3540ed76874b9bd1b357a8407dd491843/ghz_dacs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 12, 2890, 16, 443, 16, 1756, 16, 11094, 16, 1361, 16, 508, 4672, 3536, 9122, 23385, 279, 1459, 358, 326, 11094, 12123, 1172, 296, 3612, 310, 358, 30, 738, 87, 261, 3510, 31974, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 12, 2890, 16, 443, 16, 1756, 16, 11094, 16, 1361, 16, 508, 4672, 3536, 9122, 23385, 279, 1459, 358, 326, 11094, 12123, 1172, 296, 3612, 310, 358, 30, 738, 87, 261, 3510, 31974, 7...
if 'id' in row:
try:
def generate(self, contents, columns, sortable=False, selected=(None,None), css_mapping={}, translations=[], template=None, options={}, output='html', meta_data=None): self.sortable = sortable self.selected = selected self.columns = self.process_columns(columns) self.contents = contents self.options = options self.grou...
b57ab6e8cc69994d690b464cd9c2fc08d7b4a76a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12920/b57ab6e8cc69994d690b464cd9c2fc08d7b4a76a/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 2890, 16, 2939, 16, 2168, 16, 18092, 33, 8381, 16, 3170, 28657, 7036, 16, 7036, 3631, 3747, 67, 6770, 28793, 7863, 22850, 6487, 1542, 33, 7036, 16, 702, 28793, 876, 2218, 2620,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 2890, 16, 2939, 16, 2168, 16, 18092, 33, 8381, 16, 3170, 28657, 7036, 16, 7036, 3631, 3747, 67, 6770, 28793, 7863, 22850, 6487, 1542, 33, 7036, 16, 702, 28793, 876, 2218, 2620,...
(defcustom rope-code-assist-max-fixes 1
(defcustom ropemacs-codeassist-maxfixes 1
def _register_functions(interface): for attrname in dir(interface): attr = getattr(interface, attrname) if hasattr(attr, 'interaction') or hasattr(attr, 'lisp'): globals()[attrname] = attr
76e42585c5e68fcad2fe6c309430394e86f8d780 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8283/76e42585c5e68fcad2fe6c309430394e86f8d780/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4861, 67, 10722, 12, 5831, 4672, 364, 1604, 529, 316, 1577, 12, 5831, 4672, 1604, 273, 3869, 12, 5831, 16, 1604, 529, 13, 309, 3859, 12, 1747, 16, 296, 30303, 6134, 578, 3859, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4861, 67, 10722, 12, 5831, 4672, 364, 1604, 529, 316, 1577, 12, 5831, 4672, 1604, 273, 3869, 12, 5831, 16, 1604, 529, 13, 309, 3859, 12, 1747, 16, 296, 30303, 6134, 578, 3859, 12,...
item = item.replace('-', '_').upper() self.environ['HTTP_'+item] = value
self.environ[self._trans_name(item)] = value
def __setitem__(self, item, value): # @@: Should this dictionary be writable at all? item = item.replace('-', '_').upper() self.environ['HTTP_'+item] = value
864bc70feadbc9ac1785b860ac13be29000b2eeb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2097/864bc70feadbc9ac1785b860ac13be29000b2eeb/request.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1726, 972, 12, 2890, 16, 761, 16, 460, 4672, 468, 22175, 30, 9363, 333, 3880, 506, 9691, 622, 777, 35, 761, 273, 761, 18, 2079, 2668, 17, 2187, 4427, 2934, 5797, 1435, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1726, 972, 12, 2890, 16, 761, 16, 460, 4672, 468, 22175, 30, 9363, 333, 3880, 506, 9691, 622, 777, 35, 761, 273, 761, 18, 2079, 2668, 17, 2187, 4427, 2934, 5797, 1435, 365, ...
print "Caffiene is now preventing powersaving modes and screensaver activation"
print "Caffiene is now preventing powersaving modes and screensaver activation (" + probableWindowManager + ")"
def attemptToToggleSleepPrevention(): """This function may fail to peform the toggling, if it cannot find the required bus. In this case, it will return False.""" global sleepPrevented, screenSaverCookie, timer bus = dbus.SessionBus() if sleepPrevented: ssProxy = None if 'org.gnome.ScreenSaver' in bus.list_names(): # F...
93b043b0885d7cb924ce9a2411133353ead7eb17 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7152/93b043b0885d7cb924ce9a2411133353ead7eb17/caffeine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4395, 774, 17986, 20768, 1386, 11111, 13332, 3536, 2503, 445, 2026, 2321, 358, 2804, 687, 326, 6316, 75, 2456, 16, 309, 518, 2780, 1104, 326, 1931, 5766, 18, 657, 333, 648, 16, 518, 903,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4395, 774, 17986, 20768, 1386, 11111, 13332, 3536, 2503, 445, 2026, 2321, 358, 2804, 687, 326, 6316, 75, 2456, 16, 309, 518, 2780, 1104, 326, 1931, 5766, 18, 657, 333, 648, 16, 518, 903,...
def extract_extension_options(field_list, option_spec):
def extract_extension_options(field_list, options_spec):
def extract_extension_options(field_list, option_spec): """ Return a dictionary mapping extension option names to converted values. :Parameters: - `field_list`: A flat field list without field arguments, where each field body consists of a single paragraph only. - `option_spec`: Dictionary mapping known option names t...
bf3cbe9660ba298bb164c2298c41a65d80bd702a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/bf3cbe9660ba298bb164c2298c41a65d80bd702a/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 6447, 67, 2116, 12, 1518, 67, 1098, 16, 702, 67, 2793, 4672, 3536, 2000, 279, 3880, 2874, 2710, 1456, 1257, 358, 5970, 924, 18, 225, 294, 2402, 30, 300, 1375, 1518, 67, 1098,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 6447, 67, 2116, 12, 1518, 67, 1098, 16, 702, 67, 2793, 4672, 3536, 2000, 279, 3880, 2874, 2710, 1456, 1257, 358, 5970, 924, 18, 225, 294, 2402, 30, 300, 1375, 1518, 67, 1098,...
__version__='$Revision: 1.33 $'[11:-2]
__version__='$Revision: 1.34 $'[11:-2]
def taste(spam): "a favorable reviewer" return spam,'yum yum, I like ' + spam
582d14cbf8e1e38cf944fa49f6cc637ef4b8787e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/582d14cbf8e1e38cf944fa49f6cc637ef4b8787e/Publish.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 14725, 12, 1752, 301, 4672, 315, 69, 18552, 429, 10725, 264, 6, 327, 24824, 11189, 93, 379, 677, 379, 16, 467, 3007, 296, 397, 24824, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 14725, 12, 1752, 301, 4672, 315, 69, 18552, 429, 10725, 264, 6, 327, 24824, 11189, 93, 379, 677, 379, 16, 467, 3007, 296, 397, 24824, 225, 2, -100, -100, -100, -100, -100, -100, -...
verts = data.keys()
verts = set(data.keys())
def __init__(self, data=None, pos=None, loops=None, format=None, boundary=[], weighted=None, implementation='networkx', sparse=True, vertex_labels=True, **kwds): """ TEST:: sage: D = DiGraph() sage: loads(dumps(D)) == D True
603eb4c558e9475c3014df6f55a60b30f853aa89 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/603eb4c558e9475c3014df6f55a60b30f853aa89/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 501, 33, 7036, 16, 949, 33, 7036, 16, 14075, 33, 7036, 16, 740, 33, 7036, 16, 7679, 22850, 6487, 13747, 33, 7036, 16, 4471, 2218, 5185, 92, 2187, 9387, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 501, 33, 7036, 16, 949, 33, 7036, 16, 14075, 33, 7036, 16, 740, 33, 7036, 16, 7679, 22850, 6487, 13747, 33, 7036, 16, 4471, 2218, 5185, 92, 2187, 9387, ...
def test_queue_acl(self): """ Test various modes for queue acl
def test_queue_acl_deny(self): """ Test cases for queue acl in allow mode
def test_queue_acl(self): """ Test various modes for queue acl """ aclf = ACLFile() aclf.write('acl deny bob@QPID create queue name=q1 durable=true passive=true\n') aclf.write('acl deny bob@QPID create queue name=q2 exclusive=true\n') aclf.write('acl deny bob@QPID access queue name=q3\n') aclf.write('acl deny bob@QPID ...
45a65deb5c6f5ed4b18891b623102d9061fa1213 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/198/45a65deb5c6f5ed4b18891b623102d9061fa1213/acl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4000, 67, 10150, 67, 13002, 93, 12, 2890, 4672, 3536, 7766, 6088, 364, 2389, 7895, 316, 1699, 1965, 3536, 7895, 74, 273, 10098, 812, 1435, 7895, 74, 18, 2626, 2668, 10150, 1709...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4000, 67, 10150, 67, 13002, 93, 12, 2890, 4672, 3536, 7766, 6088, 364, 2389, 7895, 316, 1699, 1965, 3536, 7895, 74, 273, 10098, 812, 1435, 7895, 74, 18, 2626, 2668, 10150, 1709...
if ( not re.search("^//\s+-\*- LSST-C\+\+ -\*-", lines[0].raw) ): vList.append(Violation(self, 1))
if ( not re.search("^//\s+-\*- (?:LSST-C|lsst-c)\+\+ -\*-", lines[0].raw) ): vList.append(Violation(self, lines[0]))
def apply(self, lines): vList = [] if (self.getFiletype() in self.getTypeList()): if ( not re.search("^//\s+-\*- LSST-C\+\+ -\*-", lines[0].raw) ): vList.append(Violation(self, 1)) return vList
cb6d1c1b9da3a15f55b42e7ffc55f274aee325d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6529/cb6d1c1b9da3a15f55b42e7ffc55f274aee325d2/style.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 12, 2890, 16, 2362, 4672, 331, 682, 273, 5378, 309, 261, 2890, 18, 588, 25579, 5872, 1435, 316, 365, 18, 588, 559, 682, 1435, 4672, 309, 261, 486, 283, 18, 3072, 2932, 66, 759, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 12, 2890, 16, 2362, 4672, 331, 682, 273, 5378, 309, 261, 2890, 18, 588, 25579, 5872, 1435, 316, 365, 18, 588, 559, 682, 1435, 4672, 309, 261, 486, 283, 18, 3072, 2932, 66, 759, ...
return {'url': bug.url, 'bug_status': bug.bug_status, 'short_short_desc': bug.short_short_desc, 'bug_id': bug.bug_id}
return {'url': bug.url, 'bug_status': bug.bug_status, 'short_short_desc': bug.short_short_desc, 'bug_id': bug.bug_id}
def __convert(self, bug): if not isinstance(bug, bugzilla.Bug): raise TypeError('Can only store bugzilla.Bug type') if self.queryUrl != self.publicUrl: bug.url = bug.url.replace(self.queryUrl, self.publicUrl) bug.bug_status = unicode(bug.bug_status, 'utf-8') try: bug.short_short_desc = unicode(bug.short_short_desc, 'ut...
48dff31b4b98c67212db02c299812957bb0374c3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9953/48dff31b4b98c67212db02c299812957bb0374c3/bugs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 6283, 12, 2890, 16, 7934, 4672, 309, 486, 1549, 12, 925, 16, 7934, 15990, 18, 19865, 4672, 1002, 3580, 2668, 2568, 1338, 1707, 7934, 15990, 18, 19865, 618, 6134, 309, 365, 18, 2271...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6283, 12, 2890, 16, 7934, 4672, 309, 486, 1549, 12, 925, 16, 7934, 15990, 18, 19865, 4672, 1002, 3580, 2668, 2568, 1338, 1707, 7934, 15990, 18, 19865, 618, 6134, 309, 365, 18, 2271...
('localhost', 80, '')
('localhost', 80, '', False) >>> print parseURL('http://localhost:8080') ('localhost', 8080, '', False) >>> print parseURL('http://localhost:8080/') ('localhost', 8080, '', False)
def parseURL(url): """ Parse URL to host, port, path. >>> print parseURL('http://localhost:8080/cosmo') ('localhost', 8080, '/cosmo') >>> print parseURL('https://localhost') ('localhost', 443, '') >>> print parseURL('localhost') ('localhost', 80, '') >>> print parseURL('localhost/') ('localhost', 80, '') """ import ur...
f2615c778cf7373b4c9e3ffc4cf9921b37fba7c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9939/f2615c778cf7373b4c9e3ffc4cf9921b37fba7c7/createaccounts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1785, 12, 718, 4672, 3536, 2884, 1976, 358, 1479, 16, 1756, 16, 589, 18, 225, 4080, 1172, 1109, 1785, 2668, 2505, 2207, 13014, 30, 3672, 3672, 19, 14445, 8683, 6134, 7707, 13014, 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, 1109, 1785, 12, 718, 4672, 3536, 2884, 1976, 358, 1479, 16, 1756, 16, 589, 18, 225, 4080, 1172, 1109, 1785, 2668, 2505, 2207, 13014, 30, 3672, 3672, 19, 14445, 8683, 6134, 7707, 13014, 2...
def coerce_map_explicit(self, S): from sage.rings.padics.morphism import Morphism_ZZ_UnrFM, Morphism_ZpFM_UnrFM if S is ZZ: return Morphism_ZZ_UnrFM(self) elif isinstance(S, pAdicRingFixedMod) and S.prime() == self.prime(): return Morphism_ZpFM_UnrFM(S, self) return None
def coerce_map_explicit(self, S): from sage.rings.padics.morphism import Morphism_ZZ_UnrFM, Morphism_ZpFM_UnrFM if S is ZZ: return Morphism_ZZ_UnrFM(self) elif isinstance(S, pAdicRingFixedMod) and S.prime() == self.prime(): return Morphism_ZpFM_UnrFM(S, self) return None
3f749fc2d07ac2b736b4a6e08cfee62c70e3d53b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/3f749fc2d07ac2b736b4a6e08cfee62c70e3d53b/padic_extension_leaves.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12270, 67, 1458, 67, 16511, 12, 2890, 16, 348, 4672, 628, 272, 410, 18, 86, 899, 18, 6982, 2102, 18, 81, 7657, 6228, 1930, 490, 7657, 6228, 67, 27096, 67, 984, 86, 42, 49, 16, 490, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12270, 67, 1458, 67, 16511, 12, 2890, 16, 348, 4672, 628, 272, 410, 18, 86, 899, 18, 6982, 2102, 18, 81, 7657, 6228, 1930, 490, 7657, 6228, 67, 27096, 67, 984, 86, 42, 49, 16, 490, ...
xml = urllib2.urlopen(request).read()
response = urllib2.urlopen(request)
def _open(self, method, path, headers=None, data=None): """Perform an HTTP request.
9641956c2659924f7d4a064251d41769e2af56a5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4691/9641956c2659924f7d4a064251d41769e2af56a5/connection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3190, 12, 2890, 16, 707, 16, 589, 16, 1607, 33, 7036, 16, 501, 33, 7036, 4672, 3536, 4990, 392, 2239, 590, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3190, 12, 2890, 16, 707, 16, 589, 16, 1607, 33, 7036, 16, 501, 33, 7036, 4672, 3536, 4990, 392, 2239, 590, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
else
else:
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 277) else quickfix.StringField.__init__(self, 277, 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, 576, 4700, 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, 576, 4700, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738,...
tableName = "sngl_inspiralgroup:sngl_ringdown:table"
tableName = "sngl_ringdowngroup:sngl_ringdown:table"
def set_band(self, band): self.central_freq = (band[0] + band[1])/2.0 self.bandwidth = band.duration()
c723e949bb20546b085e262ee944f5eebe05ac57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/c723e949bb20546b085e262ee944f5eebe05ac57/lsctables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 12752, 12, 2890, 16, 8937, 4672, 365, 18, 71, 12839, 67, 10212, 273, 261, 12752, 63, 20, 65, 397, 8937, 63, 21, 5717, 19, 22, 18, 20, 365, 18, 29750, 273, 8937, 18, 8760, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 12752, 12, 2890, 16, 8937, 4672, 365, 18, 71, 12839, 67, 10212, 273, 261, 12752, 63, 20, 65, 397, 8937, 63, 21, 5717, 19, 22, 18, 20, 365, 18, 29750, 273, 8937, 18, 8760, ...
'<input type=\'text\' value=\'1\' size=80 onchange=\'interact(0, "sage.server.notebook.interact.update(0, \\"theta\\", ..., sage.server.notebook.interact.standard_b64decode(\\""+encode64(this.value)+"\\"), globals())")\'></input>'
'<input type=\'text\' value="1" size=80 onchange=\'interact(0, "sage.server.notebook.interact.update(0, \\"theta\\", ..., sage.server.notebook.interact.standard_b64decode(\\""+encode64(this.value)+"\\"), globals())")\'></input>'
def render(self): """ Render this control as a string.
a6897196c3b19cb659e0d71d6ef77ca6653c65ad /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/a6897196c3b19cb659e0d71d6ef77ca6653c65ad/interact.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 4672, 3536, 6987, 333, 3325, 487, 279, 533, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 4672, 3536, 6987, 333, 3325, 487, 279, 533, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
[[3, 1, 2], [2, 3, 1], [2, 1, 3], [1, 3, 2], [1, 2, 3]]
[[3, 2, 1], [2, 3, 1], [2, 1, 3], [1, 3, 2], [1, 2, 3]]
def iterator(self): """ EXAMPLES: sage: Permutations(3, avoiding=[3, 1, 2]).list() [[3, 1, 2], [2, 3, 1], [2, 1, 3], [1, 3, 2], [1, 2, 3]]
99b4e4380696549a609c9826ae454359f6263546 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/99b4e4380696549a609c9826ae454359f6263546/permutation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2775, 12, 2890, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 13813, 22190, 12, 23, 16, 4543, 310, 22850, 23, 16, 404, 16, 576, 65, 2934, 1098, 1435, 12167, 23, 16, 404, 16, 576, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2775, 12, 2890, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 13813, 22190, 12, 23, 16, 4543, 310, 22850, 23, 16, 404, 16, 576, 65, 2934, 1098, 1435, 12167, 23, 16, 404, 16, 576, ...
hc_poly = rings.PolynomialRing(FF)(DBCP[D])
hc_poly = rings.PolynomialRing(FF, 'x')(DBCP[D])
def supersingular_j(FF): """ Find a supersingular j-invariant. Example: p = 15073 has no class number one cm_j_invariant """ prime = FF.characteristic() if not(rings.Integer(prime).is_prime()): raise ValueError, "%s is not a prime"%prime if rings.kronecker(-1, prime) != 1: j_invss = 1728 #(2^2 * 3)^3 e...
639eef8b7ef010807975c6cc085f0f5ad20d85f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/639eef8b7ef010807975c6cc085f0f5ad20d85f7/ssmod.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1169, 414, 17830, 67, 78, 12, 2246, 4672, 3536, 4163, 279, 1169, 414, 17830, 525, 17, 267, 8688, 18, 225, 5090, 30, 293, 273, 18478, 9036, 711, 1158, 667, 1300, 1245, 5003, 67, 78, 67,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1169, 414, 17830, 67, 78, 12, 2246, 4672, 3536, 4163, 279, 1169, 414, 17830, 525, 17, 267, 8688, 18, 225, 5090, 30, 293, 273, 18478, 9036, 711, 1158, 667, 1300, 1245, 5003, 67, 78, 67,...
field, display_list=False)
field, display_list=display_list)
def allowedCriteriaForField(self, field, display_list=False): """Add sort fields""" try: return super(Topic, self).allowedCriteriaForField( field, display_list=False) except AttributeError: if (field in self.sort_indices and self.validateAddCriterion( field, sort.FormSortCriterion.meta_type)): if display_list: return s...
f692caa5363fae8382998e6881ae1a38666471d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10210/f692caa5363fae8382998e6881ae1a38666471d3/topic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2935, 7231, 1290, 974, 12, 2890, 16, 652, 16, 2562, 67, 1098, 33, 8381, 4672, 3536, 986, 1524, 1466, 8395, 775, 30, 327, 2240, 12, 6657, 16, 365, 2934, 8151, 7231, 1290, 974, 12, 652, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2935, 7231, 1290, 974, 12, 2890, 16, 652, 16, 2562, 67, 1098, 33, 8381, 4672, 3536, 986, 1524, 1466, 8395, 775, 30, 327, 2240, 12, 6657, 16, 365, 2934, 8151, 7231, 1290, 974, 12, 652, ...
wait_read(self.fileno(), timeout=self.timeout)
wait_read(self.fileno(), timeout=self.timeout, event=self._read_event)
def recv(self, *args): while True: try: res = self._sock.recv(*args) #print 'received: %r' % (res, ) return res except error, ex: if ex[0] != EWOULDBLOCK or self.timeout == 0.0: raise # QQQ without clearing exc_info test__refcount.test_clean_exit fails sys.exc_clear() wait_read(self.fileno(), timeout=self.timeout)
1e80a425f2300be75664419eaf9d4857b9c2f7ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10423/1e80a425f2300be75664419eaf9d4857b9c2f7ee/socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10665, 12, 2890, 16, 380, 1968, 4672, 1323, 1053, 30, 775, 30, 400, 273, 365, 6315, 15031, 18, 18334, 30857, 1968, 13, 468, 1188, 296, 15213, 30, 738, 86, 11, 738, 261, 455, 16, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10665, 12, 2890, 16, 380, 1968, 4672, 1323, 1053, 30, 775, 30, 400, 273, 365, 6315, 15031, 18, 18334, 30857, 1968, 13, 468, 1188, 296, 15213, 30, 738, 86, 11, 738, 261, 455, 16, 262, ...
gclient.os.path.exists(os.path.join(self.root_dir, solution_name, 'src', 't', '.git') ).AndReturn(False) gclient.os.path.exists(os.path.join(self.root_dir, solution_name, '.git')
gclient.os.path.exists( gclient.os.path.join(self.root_dir, solution_name, 'src', 't', '.git') ).AndReturn(False) gclient.os.path.exists( gclient.os.path.join(self.root_dir, solution_name, '.git')
def testRunOnDepsRelativePaths(self): solution_name = 'testRunOnDepsRelativePaths_solution_name' gclient_config = ( "solutions = [ {\n" " 'name': '%s',\n" " 'url': '%s',\n" " 'custom_deps': {},\n" "} ]\n" ) % (solution_name, self.url)
90ba161b70b445eba62b2a376e4fa2f508854e13 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6076/90ba161b70b445eba62b2a376e4fa2f508854e13/gclient_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1997, 1398, 14430, 8574, 4466, 12, 2890, 4672, 6959, 67, 529, 273, 296, 3813, 1997, 1398, 14430, 8574, 4466, 67, 13385, 67, 529, 11, 314, 2625, 67, 1425, 273, 261, 315, 18281, 6170...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1997, 1398, 14430, 8574, 4466, 12, 2890, 4672, 6959, 67, 529, 273, 296, 3813, 1997, 1398, 14430, 8574, 4466, 67, 13385, 67, 529, 11, 314, 2625, 67, 1425, 273, 261, 315, 18281, 6170...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 543) else quickfix.StringField.__init__(self, 543, 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, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1381, 8942, 13, 469, 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, 0, 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, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1381, 8942, 13, 469, 9549, 904, 18, 780, 974, 16186, 2738, ...
if cp_getBoolean(cp, "condor", "count_flocked", False):
if cp_getBoolean(cp, "condor", "count_flocked", True):
def addIntInfo(my_info_dict, classad_dict, my_key, classad_key): """ Add some integer info contained in classad_dict[classad_key] to my_info_dict[my_key]; protect against any thrown exceptions. If classad_dict[classad_key] cannot be converted to a number, default to 0. """ if my_key not in my_info_dict or classad_key n...
b4ecf5017070a57a16fb48104fddad98a48aaf02 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12088/b4ecf5017070a57a16fb48104fddad98a48aaf02/condor_common.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 1702, 966, 12, 4811, 67, 1376, 67, 1576, 16, 667, 361, 67, 1576, 16, 3399, 67, 856, 16, 667, 361, 67, 856, 4672, 3536, 1436, 2690, 3571, 1123, 7542, 316, 667, 361, 67, 1576, 63,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1702, 966, 12, 4811, 67, 1376, 67, 1576, 16, 667, 361, 67, 1576, 16, 3399, 67, 856, 16, 667, 361, 67, 856, 4672, 3536, 1436, 2690, 3571, 1123, 7542, 316, 667, 361, 67, 1576, 63,...
G = self.gen_mat() F = self.base_ring() q = F.order() n = len(G.columns()) k = len(G.rows()) nL = n-len(L)
def shortened(self,L): r""" Returns the code shortened at the positions L, $L \subset \{1,2,...,n\}$. Consider the subcode $C(L)$ consisting of all codewords $c\in C$ which satisfy $c_i=0$ for all $i\in L$. The punctured code $C(L)^L$ is called the {\it shortened code on $L$} and is denoted $C_L$. The code constructed ...
90ff33abb51043d1baa7fdf15f610546756cd0b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/90ff33abb51043d1baa7fdf15f610546756cd0b7/linear_code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19651, 329, 12, 2890, 16, 48, 4672, 436, 8395, 2860, 326, 981, 19651, 329, 622, 326, 6865, 511, 16, 271, 48, 521, 15657, 521, 95, 21, 16, 22, 16, 2777, 16, 82, 64, 22496, 18, 23047, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19651, 329, 12, 2890, 16, 48, 4672, 436, 8395, 2860, 326, 981, 19651, 329, 622, 326, 6865, 511, 16, 271, 48, 521, 15657, 521, 95, 21, 16, 22, 16, 2777, 16, 82, 64, 22496, 18, 23047, ...
self.listMatch[jobRequirements]['AvailableCEs'] = availableCEs self.listMatch[jobRequirements] = {'LastListMatch': now}
if List != False: self.listMatch[jobRequirements]['AvailableCEs'] = availableCEs self.listMatch[jobRequirements] = {'LastListMatch': now} else: del self.listMatch[jobRequirements]
def submitPilot(self, jobDict, director): """ Submit pilot for the given job, this is done from the Thread Pool job """ try: job = jobDict['JobID'] ret = jobDB.getJobAttribute(job, 'Status') if ret['OK'] and not ret['Value'] == MAJOR_WAIT: self.log.warn( 'Job is no longer in %s Status:' % MAJOR_WAIT, job ) return S_ERR...
55aab95db444ff98cd23fd04eb657d65d41e983f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/55aab95db444ff98cd23fd04eb657d65d41e983f/Director.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 52, 22797, 12, 2890, 16, 1719, 5014, 16, 2657, 280, 4672, 3536, 17320, 293, 22797, 364, 326, 864, 1719, 16, 333, 353, 2731, 628, 326, 4884, 8828, 1719, 3536, 775, 30, 1719, 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, 4879, 52, 22797, 12, 2890, 16, 1719, 5014, 16, 2657, 280, 4672, 3536, 17320, 293, 22797, 364, 326, 864, 1719, 16, 333, 353, 2731, 628, 326, 4884, 8828, 1719, 3536, 775, 30, 1719, 273, ...
ef = EditableFile(part.dump())
data = part.dump() if reformat_xml: data = etree.tostring(etree.fromstring(data), pretty_print=True) ef = EditableFile(data)
def part_edit(path): file, ipath = find_file(path) pkg = Package.from_file(file) part = pkg['/'+ipath] ef = EditableFile(part.dump()) ef.edit(ipath) if ef.changed: part.load(ef.data) pkg.save()
9b160c7aba5acb7cca94a3a13952ddfe4e8c9b56 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/144/9b160c7aba5acb7cca94a3a13952ddfe4e8c9b56/editor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1087, 67, 4619, 12, 803, 4672, 585, 16, 277, 803, 273, 1104, 67, 768, 12, 803, 13, 3475, 273, 7508, 18, 2080, 67, 768, 12, 768, 13, 1087, 273, 3475, 3292, 2473, 15, 625, 421, 65, 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, 1087, 67, 4619, 12, 803, 4672, 585, 16, 277, 803, 273, 1104, 67, 768, 12, 803, 13, 3475, 273, 7508, 18, 2080, 67, 768, 12, 768, 13, 1087, 273, 3475, 3292, 2473, 15, 625, 421, 65, 5...
'date_sent': DateTime.now(),
'date_sent': datetime.datetime.now(),
def _callback(self, cursor, cron): try: args = (cron['args'] or []) and safe_eval(cron['args']) obj = self.pool.get(cron['model']) if not obj and hasattr(obj, cron['function']): return False fct = getattr(obj, cron['function']) fct(cursor, cron['user'], *args) except Exception, error: cursor.rollback()
af9507763a0513b37b6aa36a75dc89400d928b99 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/af9507763a0513b37b6aa36a75dc89400d928b99/cron.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3394, 12, 2890, 16, 3347, 16, 9998, 4672, 775, 30, 833, 273, 261, 18041, 3292, 1968, 3546, 578, 5378, 13, 471, 4183, 67, 8622, 12, 18041, 3292, 1968, 19486, 1081, 273, 365, 18, 60...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3394, 12, 2890, 16, 3347, 16, 9998, 4672, 775, 30, 833, 273, 261, 18041, 3292, 1968, 3546, 578, 5378, 13, 471, 4183, 67, 8622, 12, 18041, 3292, 1968, 19486, 1081, 273, 365, 18, 60...
self.match_obj = self.regex.match(req.parsed_uri[apache.URI_PATH])
if self.regex.pattern.find("?") >= 0: self.match_obj = self.regex.match(req.unparsed_uri) else: self.match_obj = self.regex.match(req.parsed_uri[apache.URI_PATH])
def parse_uri(self, req): """ Parses the request URI into its constituent parts and stores them for later use. Returns True if the request uri matches this object's pattern, returns False otherwise. """ self.req = req
5159097980568cbffb9fee4e51dfa96450b2f25e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2030/5159097980568cbffb9fee4e51dfa96450b2f25e/uri_matcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1650, 12, 2890, 16, 1111, 4672, 3536, 2280, 2420, 326, 590, 3699, 1368, 2097, 29152, 10744, 2140, 471, 9064, 2182, 364, 5137, 999, 18, 2860, 1053, 309, 326, 590, 2003, 1885, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1650, 12, 2890, 16, 1111, 4672, 3536, 2280, 2420, 326, 590, 3699, 1368, 2097, 29152, 10744, 2140, 471, 9064, 2182, 364, 5137, 999, 18, 2860, 1053, 309, 326, 590, 2003, 1885, 33...
host = socket.getfqdn() result = self.__getDatabaseCFG(system,component,host,user,password) if not result['OK']: return result cfg = result['Value'] diracCfg = CFG() diracCfg.loadFromFile(DIRACROOT+'/etc/dirac.cfg') newCfg = diracCfg.mergeWith(cfg) if not newCfg.writeToFile(DIRACROOT+'/etc/dirac.cfg'): return S_ERROR('...
return InstallTools.addDefaultOptionsToCS( gConfig, componentType, system, component, gConfig.getValue( '/DIRAC/Extensions', [] ), overwrite )
def export_addLocalDatabaseOptions(self,system,dbname,user=None,password=None): """ Add default component options to the global CS or to the local options """ host = socket.getfqdn() result = self.__getDatabaseCFG(system,component,host,user,password) if not result['OK']: return result cfg = result['Value'] diracCfg = C...
12be5ded5b2add0661f20d7fa8bd6def28fb091b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/12be5ded5b2add0661f20d7fa8bd6def28fb091b/SystemAdministratorHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 1289, 2042, 4254, 1320, 12, 2890, 16, 4299, 16, 20979, 16, 1355, 33, 7036, 16, 3664, 33, 7036, 4672, 3536, 1436, 805, 1794, 702, 358, 326, 2552, 6761, 578, 358, 326, 1191, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 1289, 2042, 4254, 1320, 12, 2890, 16, 4299, 16, 20979, 16, 1355, 33, 7036, 16, 3664, 33, 7036, 4672, 3536, 1436, 805, 1794, 702, 358, 326, 2552, 6761, 578, 358, 326, 1191, 70...
'action_id': fields.many2one('ir.actions.actions', 'Home Action'),
'action_id': fields.many2one('ir.actions.act_window', 'Action', required=True),
def generate_random_pass(): pass_chars = RANDOM_PASS_CHARACTERS[:] random.shuffle(pass_chars) return ''.join(pass_chars[0:10])
fc0d0cbc45d8a98dc50cc0e70380fc9a8294a9fd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/fc0d0cbc45d8a98dc50cc0e70380fc9a8294a9fd/wizard_share.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 9188, 67, 5466, 13332, 1342, 67, 7549, 273, 534, 28159, 67, 10884, 67, 7305, 6526, 11367, 10531, 65, 2744, 18, 31980, 12, 5466, 67, 7549, 13, 327, 875, 18, 5701, 12, 5466, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 9188, 67, 5466, 13332, 1342, 67, 7549, 273, 534, 28159, 67, 10884, 67, 7305, 6526, 11367, 10531, 65, 2744, 18, 31980, 12, 5466, 67, 7549, 13, 327, 875, 18, 5701, 12, 5466, 67...
if rows + height_offset <= max_h:
if rows + height_offset < max_h:
def lsize(): wl = max( len(i) for i in v_items ) + 1 # longest word length (and a space) if not wl: wl = 1 cols = (max_w - 2) / wl rows = len( v_items ) / (cols or 1)
782a2d10870429e4f89c0b41d3b566d7934838fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6932/782a2d10870429e4f89c0b41d3b566d7934838fb/bpython.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 328, 1467, 13332, 19564, 273, 943, 12, 562, 12, 77, 13, 364, 277, 316, 331, 67, 3319, 262, 397, 404, 468, 12163, 2076, 769, 261, 464, 279, 3476, 13, 309, 486, 19564, 30, 19564, 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, 328, 1467, 13332, 19564, 273, 943, 12, 562, 12, 77, 13, 364, 277, 316, 331, 67, 3319, 262, 397, 404, 468, 12163, 2076, 769, 261, 464, 279, 3476, 13, 309, 486, 19564, 30, 19564, 273, ...
signal.signal(signal.SIGCHLD, sig.SIG_DFL) signal.signal(signal.SIGTERM, sig.SIG_DFL)
signal.signal(signal.SIGCHLD, signal.SIG_DFL) signal.signal(signal.SIGTERM, signal.SIG_DFL)
def run(self, termhandler=None): """ this method is used if you want the crontab to run in its own loop. If you don't, you are responsible for killing off the zombies yourself. """ signal.signal(signal.SIGCHLD, self._handle_sigchld) if termhandler: signal.signal(signal.SIGTERM, termhandler) while 1: try: time.sleep(se...
61c33a1cdc3d4e72e7b38b2856b31718eaac4b3a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/61c33a1cdc3d4e72e7b38b2856b31718eaac4b3a/cronjob.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 2481, 4176, 33, 7036, 4672, 3536, 333, 707, 353, 1399, 309, 1846, 2545, 326, 4422, 30335, 358, 1086, 316, 2097, 4953, 2798, 18, 225, 971, 1846, 2727, 1404, 16, 1846, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 2481, 4176, 33, 7036, 4672, 3536, 333, 707, 353, 1399, 309, 1846, 2545, 326, 4422, 30335, 358, 1086, 316, 2097, 4953, 2798, 18, 225, 971, 1846, 2727, 1404, 16, 1846, ...
return '<br>'.join(ans)
ans = [x.decode(preferred_encoding, 'replace') if isinstance(x, 'str') else x for x in ans] return u'<br>'.join(ans)
def gui_text(self): ans = [u'Job: '] if self.description: if not isinstance(self.description, unicode): self.description = self.description.decode('utf-8', 'replace') ans[0] += u'**%s**'%self.description if self.exception is not None: header = unicode(self.exception.__class__.__name__) if \ hasattr(self.exception, '__c...
4f8315a5bbe44f6259892dd1ae60e24b979188a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/4f8315a5bbe44f6259892dd1ae60e24b979188a8/parallel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13238, 67, 955, 12, 2890, 4672, 4152, 273, 306, 89, 11, 2278, 30, 12671, 309, 365, 18, 3384, 30, 309, 486, 1549, 12, 2890, 18, 3384, 16, 5252, 4672, 365, 18, 3384, 273, 365, 18, 3384...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13238, 67, 955, 12, 2890, 4672, 4152, 273, 306, 89, 11, 2278, 30, 12671, 309, 365, 18, 3384, 30, 309, 486, 1549, 12, 2890, 18, 3384, 16, 5252, 4672, 365, 18, 3384, 273, 365, 18, 3384...
self.tasks.append(task)
self.state.tasks.append(task)
def add_task(self, title, description): task = Task(title, description) self.tasks.append(task)
107a3ea087947fb4bcce4cb6619d3546a6509baa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/107a3ea087947fb4bcce4cb6619d3546a6509baa/TaskTracker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 4146, 12, 2890, 16, 2077, 16, 2477, 4672, 1562, 273, 3837, 12, 2649, 16, 2477, 13, 365, 18, 9416, 18, 6923, 12, 4146, 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, 527, 67, 4146, 12, 2890, 16, 2077, 16, 2477, 4672, 1562, 273, 3837, 12, 2649, 16, 2477, 13, 365, 18, 9416, 18, 6923, 12, 4146, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
result.append(dict(name=name, text=text)) return
result.append(dict(name=name, text=name)) return demjson.encode(result)
def __call__(self):
3f42bfa1618087db955e128b1d6add324f76d38f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6136/3f42bfa1618087db955e128b1d6add324f76d38f/document.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
raise NotImplemented
raise NotImplementedError
def __add__(self,other,fn): # First check if argument is a scalar if isscalarlike(other): # Now we would add this scalar to every element. raise NotImplementedError, 'adding a scalar to a CSC or CSR ' \ 'matrix is not supported' elif isspmatrix(other): if (other.shape != self.shape): raise ValueError, "inconsistent sha...
dd1316142efd8613f8d3d8667b855d3b53057e47 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/dd1316142efd8613f8d3d8667b855d3b53057e47/sparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 972, 12, 2890, 16, 3011, 16, 4293, 4672, 468, 5783, 866, 309, 1237, 353, 279, 4981, 309, 3385, 3473, 5625, 12, 3011, 4672, 468, 4494, 732, 4102, 527, 333, 4981, 358, 3614, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1289, 972, 12, 2890, 16, 3011, 16, 4293, 4672, 468, 5783, 866, 309, 1237, 353, 279, 4981, 309, 3385, 3473, 5625, 12, 3011, 4672, 468, 4494, 732, 4102, 527, 333, 4981, 358, 3614, ...
:type user: integer (example 1) :param vals: dictionary for new record {'field_name': field_value, ...} :type vals: dictionary (example {'field_name': field_value, ...}) :param context(optional, highly recommended): context arguments, like lang, time zone :type context: dictionary (example {'lang': 'en_us', ...})
:type user: integer :param vals: field values for new record, e.g {'field_name': field_value, ...} :type vals: dictionary :param context: optional context arguments, e.g. {'lang': 'en_us', 'tz': 'UTC', ...} :type context: dictionary
def create(self, cr, user, vals, context=None): """ Create new record with specified value
f682ecd4f9242bef1a709bacbd1a362bc76e21ce /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/f682ecd4f9242bef1a709bacbd1a362bc76e21ce/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 729, 16, 5773, 16, 819, 33, 7036, 4672, 3536, 1788, 394, 1409, 598, 1269, 460, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 729, 16, 5773, 16, 819, 33, 7036, 4672, 3536, 1788, 394, 1409, 598, 1269, 460, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
chromoName=["ch1", "ch2"], alleleNames=['1','2'])
chromNames=["ch1", "ch2"], alleleNames=['1','2'])
def testGenoStructure(self): 'Testing geno structure related functions' if AlleleType() != 'binary': pop = population(size=100, ploidy=2, loci=[5, 7], subPop=[20, 80], lociPos=[ [2,3,4,5,6],[2,4,6,8,10,12,14]], maxAllele=3, chromoName=["ch1", "ch2"], alleleNames=['A','C','T','G']) else: pop = population(size=100, ploid...
ab23ac75769af805cbcf0cf7c54ac6d190a24bfc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/401/ab23ac75769af805cbcf0cf7c54ac6d190a24bfc/test_02_population.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 43, 5764, 6999, 12, 2890, 4672, 296, 22218, 3157, 83, 3695, 3746, 4186, 11, 309, 4826, 6516, 559, 1435, 480, 296, 8578, 4278, 1843, 273, 11209, 12, 1467, 33, 6625, 16, 293, 383, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 43, 5764, 6999, 12, 2890, 4672, 296, 22218, 3157, 83, 3695, 3746, 4186, 11, 309, 4826, 6516, 559, 1435, 480, 296, 8578, 4278, 1843, 273, 11209, 12, 1467, 33, 6625, 16, 293, 383, ...
if p2 == 'site-packages':
if p2 in ('site-packages', 'dist-packages'):
def get_package_name(filepath): # find the package name given a path name that's part of the package fullpath = filepath[:] pkg_name = [] while 'site-packages' in filepath: filepath, p2 = os.path.split(filepath) if p2 == 'site-packages': break pkg_name.append(p2) # if package name determination failed, just default to...
1df22350f35b957cff5d29ea1ae5299946a5295b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/1df22350f35b957cff5d29ea1ae5299946a5295b/nosetester.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5610, 67, 529, 12, 10561, 4672, 468, 1104, 326, 2181, 508, 864, 279, 589, 508, 716, 1807, 1087, 434, 326, 2181, 15170, 273, 3608, 10531, 65, 3475, 67, 529, 273, 5378, 1323, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5610, 67, 529, 12, 10561, 4672, 468, 1104, 326, 2181, 508, 864, 279, 589, 508, 716, 1807, 1087, 434, 326, 2181, 15170, 273, 3608, 10531, 65, 3475, 67, 529, 273, 5378, 1323, 29...
as the master) relheight=amount - height of this widget between 0.0 and 1.0
as the master) relheight=amount - height of this widget between 0.0 and 1.0
def place_configure(self, cnf={}, **kw): """Place a widget in the parent widget. Use as options: in=master - master relative to which the widget is placed. x=amount - locate anchor of this widget at position x of master y=amount - locate anchor of this widget at position y of master relx=amount - locate anchor of this ...
1a34834e0993d46fc81f4ef6639e6c278d5879d9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/1a34834e0993d46fc81f4ef6639e6c278d5879d9/Tkinter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3166, 67, 14895, 12, 2890, 16, 23118, 28793, 2826, 9987, 4672, 3536, 6029, 279, 3604, 316, 326, 982, 3604, 18, 2672, 487, 702, 30, 316, 33, 7525, 300, 4171, 3632, 358, 1492, 326, 3604, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3166, 67, 14895, 12, 2890, 16, 23118, 28793, 2826, 9987, 4672, 3536, 6029, 279, 3604, 316, 326, 982, 3604, 18, 2672, 487, 702, 30, 316, 33, 7525, 300, 4171, 3632, 358, 1492, 326, 3604, ...
self.didWeMove(None)
def handle(self): #self.msgText("handle begin:.\n") self.didWeMove(None) #self.msgText("handle done\n") self.waitMsec(5000) return 0 #continue if 1, run once if 0
ea0545abfec3c873ac30e3d94a5ae0a9a6e544ba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1660/ea0545abfec3c873ac30e3d94a5ae0a9a6e544ba/RobotThrottle2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 4672, 468, 2890, 18, 3576, 1528, 2932, 4110, 2376, 30, 8403, 82, 7923, 225, 468, 2890, 18, 3576, 1528, 2932, 4110, 2731, 64, 82, 7923, 365, 18, 7048, 49, 3321, 12, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 4672, 468, 2890, 18, 3576, 1528, 2932, 4110, 2376, 30, 8403, 82, 7923, 225, 468, 2890, 18, 3576, 1528, 2932, 4110, 2731, 64, 82, 7923, 365, 18, 7048, 49, 3321, 12, 25, ...
'''Create a cancel_date on the membership_line object'''
'''Create a 'date_cancel' on the membership_line object'''
def action_cancel(self, cr, uid, ids, context=None): '''Create a cancel_date on the membership_line object'''
d29c84f6a67089186a5558a2732c999630d7ee2c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/d29c84f6a67089186a5558a2732c999630d7ee2c/membership.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 10996, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 9163, 1684, 279, 3755, 67, 712, 603, 326, 12459, 67, 1369, 733, 26418, 2, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 1301, 67, 10996, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 9163, 1684, 279, 3755, 67, 712, 603, 326, 12459, 67, 1369, 733, 26418, 2, -100, -100, -100, -100, -100...