rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
print 'Scheduling task for: %s' % time.asctime(time.localtime(schedTime))
print 'Scheduling task %s for: %s' % (self._argument, time.asctime(time.localtime(schedTime)))
def _CalcNextRun(self): # calculate when the next task should run # depending on last run time, update frequency, # task start time and day of the week
c4a62e7f43eb9e42f8c65202c5af159c05b67103 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3644/c4a62e7f43eb9e42f8c65202c5af159c05b67103/Scheduler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 25779, 2134, 1997, 12, 2890, 4672, 468, 4604, 1347, 326, 1024, 1562, 1410, 1086, 468, 8353, 603, 1142, 1086, 813, 16, 1089, 8670, 16, 468, 1562, 787, 813, 471, 2548, 434, 326, 4860,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 25779, 2134, 1997, 12, 2890, 4672, 468, 4604, 1347, 326, 1024, 1562, 1410, 1086, 468, 8353, 603, 1142, 1086, 813, 16, 1089, 8670, 16, 468, 1562, 787, 813, 471, 2548, 434, 326, 4860,...
handledfiles.append(file).append(rfile)
handledfiles.append(file) if (file != rfile): handledfiles.append(rfile)
def copy_binaries_and_libs(chroot, binarieslist, force_overwrite=0, be_verbose=0, check_libs=1, try_hardlink=1, retain_owner=0, try_glob_matching=0, handledfiles=[]): """copies a list of executables and their libraries to the chroot""" if (chroot[-1] == '/'): chroot = chroot[:-1] for file in binarieslist: if (file in h...
ad808c424299518c04171942146603b710ff6cf6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6201/ad808c424299518c04171942146603b710ff6cf6/jk_lib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 4757, 5646, 67, 464, 67, 21571, 12, 343, 3085, 16, 4158, 5646, 1098, 16, 2944, 67, 19274, 33, 20, 16, 506, 67, 11369, 33, 20, 16, 866, 67, 21571, 33, 21, 16, 775, 67, 203...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 4757, 5646, 67, 464, 67, 21571, 12, 343, 3085, 16, 4158, 5646, 1098, 16, 2944, 67, 19274, 33, 20, 16, 506, 67, 11369, 33, 20, 16, 866, 67, 21571, 33, 21, 16, 775, 67, 203...
self._label.props.accel_widget = invoker.props.widget
self._update_accel_widget() logging.debug(('Setup widget', invoker.props.widget)) self._invoker_hids.append(self._invoker.connect( 'notify::widget', self._invoker_widget_changed_cb)) def _update_accel_widget(self): assert self.props.invoker is not None self._label.props.accel_widget = self.props.invoker.props.widget
def _set_invoker(self, invoker): if self._invoker is not None: self._invoker.disconnect(self._enter_invoker_hid) self._invoker.disconnect(self._leave_invoker_hid) self._invoker.disconnect(self._right_click_invoker_hid)
63f7683997ff88c6b3ed3cf895131f3a6a055e37 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3114/63f7683997ff88c6b3ed3cf895131f3a6a055e37/palette.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 5768, 601, 264, 12, 2890, 16, 24920, 4672, 309, 365, 6315, 5768, 601, 264, 353, 486, 599, 30, 365, 6315, 5768, 601, 264, 18, 20177, 12, 2890, 6315, 2328, 67, 5768, 601, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 542, 67, 5768, 601, 264, 12, 2890, 16, 24920, 4672, 309, 365, 6315, 5768, 601, 264, 353, 486, 599, 30, 365, 6315, 5768, 601, 264, 18, 20177, 12, 2890, 6315, 2328, 67, 5768, 601, ...
cur.execute("select taskid,rowid,date from tasks;")
cur.execute("select taskid,rowid,date from tasks LIMIT 200;")
def showState(self): cur = self.cursor() # look for tasks cur.execute("select taskid,rowid,date from tasks;") ttable = cur.fetchall() taskdict = {} if ttable == []: print "No Tasks in DB" else: for row in ttable: taskid = row[0] if taskid not in taskdict: taskdict[taskid] = row[1:] else: print "warning, duplicate task ...
5b6a02c82a858db1229fd5d4d621cd3d16fd2060 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5203/5b6a02c82a858db1229fd5d4d621cd3d16fd2060/ssdap_dbutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 1119, 12, 2890, 4672, 662, 273, 365, 18, 9216, 1435, 468, 2324, 364, 4592, 662, 18, 8837, 2932, 4025, 29035, 16, 492, 350, 16, 712, 628, 4592, 13319, 4044, 4868, 13, 268, 2121, 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, 2405, 1119, 12, 2890, 4672, 662, 273, 365, 18, 9216, 1435, 468, 2324, 364, 4592, 662, 18, 8837, 2932, 4025, 29035, 16, 492, 350, 16, 712, 628, 4592, 13319, 4044, 4868, 13, 268, 2121, 2...
sites = gConfig.getSections('/Resources/Sites/%s' %grid,[])
sites = gConfig.getSections( '/Resources/Sites/%s' % grid, [] )
def getSiteForCE(computingElement): """ Given a Grid CE name this method returns the DIRAC site name. """ finalSite = '' gridTypes = gConfig.getSections('/Resources/Sites/',[]) if not gridTypes['OK']: gLogger.warn('Problem retrieving sections in /Resources/Sites') return gridTypes gridTypes = gridTypes['Value'] for gr...
22589f96877819f2316c9c3a130752773212d632 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/22589f96877819f2316c9c3a130752773212d632/SiteCEMapping.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11021, 1290, 1441, 12, 13406, 310, 1046, 4672, 3536, 16803, 279, 7145, 29538, 508, 333, 707, 1135, 326, 18544, 2226, 2834, 508, 18, 3536, 727, 4956, 273, 875, 3068, 2016, 273, 314, 809, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11021, 1290, 1441, 12, 13406, 310, 1046, 4672, 3536, 16803, 279, 7145, 29538, 508, 333, 707, 1135, 326, 18544, 2226, 2834, 508, 18, 3536, 727, 4956, 273, 875, 3068, 2016, 273, 314, 809, ...
('model_uniq', 'UNIQUE(model)', 'Object must be unique'),
def unlink(self, cr, uid, *args, **argv): self.call_cache_clearing_methods(cr) res = super(ir_model_access, self).unlink(cr, uid, *args, **argv) return res
e3d74645dd7e90ae9f9ab1ac2a7b938552dbbcf6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/e3d74645dd7e90ae9f9ab1ac2a7b938552dbbcf6/ir_model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8255, 12, 2890, 16, 4422, 16, 4555, 16, 380, 1968, 16, 2826, 19485, 4672, 365, 18, 1991, 67, 2493, 67, 2131, 5968, 67, 5163, 12, 3353, 13, 400, 273, 2240, 12, 481, 67, 2284, 67, 3860...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 380, 1968, 16, 2826, 19485, 4672, 365, 18, 1991, 67, 2493, 67, 2131, 5968, 67, 5163, 12, 3353, 13, 400, 273, 2240, 12, 481, 67, 2284, 67, 3860...
cursor_x, cursor_y = terminal.get_cursor_position() cursor_x = cursor_x + allocation.x cursor_y = cursor_y + allocation.y
term_alloc = terminal.allocation cursor_x = term_alloc.x + term_alloc.width / 2 cursor_y = term_alloc.y + term_alloc.height / 2
def navigate_terminal(self, terminal, direction): """Navigate around terminals""" _containers, terminals = util.enumerate_descendants(self) visibles = self.get_visible_terminals() current = terminals.index(terminal) length = len(terminals) next = None
f4cbed1842ddab374070e585d9582945c23d8758 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6502/f4cbed1842ddab374070e585d9582945c23d8758/window.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28479, 67, 15979, 12, 2890, 16, 8651, 16, 4068, 4672, 3536, 50, 20698, 6740, 16122, 1031, 8395, 389, 20596, 16, 16122, 1031, 273, 1709, 18, 7924, 12600, 67, 26236, 4388, 12, 2890, 13, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28479, 67, 15979, 12, 2890, 16, 8651, 16, 4068, 4672, 3536, 50, 20698, 6740, 16122, 1031, 8395, 389, 20596, 16, 16122, 1031, 273, 1709, 18, 7924, 12600, 67, 26236, 4388, 12, 2890, 13, 22...
other.parent = self
self.setup_child(other)
def __iadd__(self, other): """Append a node or a list of nodes to `self.children`.""" if isinstance(other, Node): other.parent = self self.children.append(other) elif other is not None: for node in other: node.parent = self self.children.extend(other) return self
15f0677b9e2a7853acb68d231866daa3c3d2a8f4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/15f0677b9e2a7853acb68d231866daa3c3d2a8f4/nodes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 77, 1289, 972, 12, 2890, 16, 1308, 4672, 3536, 5736, 279, 756, 578, 279, 666, 434, 2199, 358, 1375, 2890, 18, 5906, 68, 12123, 309, 1549, 12, 3011, 16, 2029, 4672, 365, 18, 8401,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 77, 1289, 972, 12, 2890, 16, 1308, 4672, 3536, 5736, 279, 756, 578, 279, 666, 434, 2199, 358, 1375, 2890, 18, 5906, 68, 12123, 309, 1549, 12, 3011, 16, 2029, 4672, 365, 18, 8401,...
with warnings.catch_warnings(record=True) as w: warnings.simplefilter("always") obj = cls(*args, **kwargs) assert len(w) == 0
if hasattr(warnings, 'catch_warnings'): with warnings.catch_warnings(record=True) as w: warnings.simplefilter("always") obj = cls(*args, **kwargs) assert len(w) == 0
def assertNotDeprecated(self, cls, *args, **kwargs): with warnings.catch_warnings(record=True) as w: warnings.simplefilter("always") obj = cls(*args, **kwargs) assert len(w) == 0
46b1b03db0d1efb1dad5c3da145ae399bdce01d6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6707/46b1b03db0d1efb1dad5c3da145ae399bdce01d6/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 1248, 13534, 12, 2890, 16, 2028, 16, 380, 1968, 16, 2826, 4333, 4672, 598, 5599, 18, 14683, 67, 12103, 12, 3366, 33, 5510, 13, 487, 341, 30, 5599, 18, 9647, 2188, 2932, 17737, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1815, 1248, 13534, 12, 2890, 16, 2028, 16, 380, 1968, 16, 2826, 4333, 4672, 598, 5599, 18, 14683, 67, 12103, 12, 3366, 33, 5510, 13, 487, 341, 30, 5599, 18, 9647, 2188, 2932, 17737, 79...
sql = sql + " %s = %s " % (keyColumn, quote("%s", type) )
sql = sql + " %s = %s " % (keyColumn, "%s")
def buildDeleteSQL(self, tableInfo): """Build the SQL to delete a row from the table. """ sql = "DELETE FROM %s " % tableInfo.rowTableName # build where clause first = 1 sql = sql + " WHERE " for keyColumn, type in tableInfo.rowKeyColumns: if not first: sql = sql + " AND " sql = sql + " %s = %s " % (keyColumn, quote...
3d1177b78afa568866d5353481d56f6ca39d9790 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/3d1177b78afa568866d5353481d56f6ca39d9790/sqlreflector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 2613, 3997, 12, 2890, 16, 25926, 4672, 3536, 3116, 326, 3063, 358, 1430, 279, 1027, 628, 326, 1014, 18, 3536, 1847, 273, 315, 6460, 4571, 738, 87, 315, 738, 25926, 18, 492, 7147, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 2613, 3997, 12, 2890, 16, 25926, 4672, 3536, 3116, 326, 3063, 358, 1430, 279, 1027, 628, 326, 1014, 18, 3536, 1847, 273, 315, 6460, 4571, 738, 87, 315, 738, 25926, 18, 492, 7147, ...
sage: list(I.invertible_residues_mod_units([-1]))
sage: list(I.invertible_residues_mod([-1]))
def invertible_residues_mod_units(self, units=[], reduce=True): """ Returns a iterator through a list of invertible residues modulo this integral ideal and modulo the group generated by the given units.
0eb4070e28a5423ec6b12fc4236fdfa03b4e3060 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/0eb4070e28a5423ec6b12fc4236fdfa03b4e3060/number_field_ideal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9848, 1523, 67, 15567, 3610, 67, 1711, 67, 7705, 12, 2890, 16, 4971, 22850, 6487, 5459, 33, 5510, 4672, 3536, 2860, 279, 2775, 3059, 279, 666, 434, 9848, 1523, 25435, 26109, 333, 21423, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9848, 1523, 67, 15567, 3610, 67, 1711, 67, 7705, 12, 2890, 16, 4971, 22850, 6487, 5459, 33, 5510, 4672, 3536, 2860, 279, 2775, 3059, 279, 666, 434, 9848, 1523, 25435, 26109, 333, 21423, ...
"Start a passive data-channel"
"""Start a passive data-channel."""
def ftp_PASV(self, line): "Start a passive data-channel" # close existent DTP-server instance, if any. if self.dtp_server: self.dtp_server.close() self.dtp_server = None
e1763c9db15d5d6d781646fb0678f3c70d95867a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7236/e1763c9db15d5d6d781646fb0678f3c70d95867a/FTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 52, 3033, 58, 12, 2890, 16, 980, 4672, 315, 1685, 279, 23697, 501, 17, 4327, 6, 468, 1746, 30364, 10696, 52, 17, 3567, 791, 16, 309, 1281, 18, 309, 365, 18, 72, 6834, 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, 13487, 67, 52, 3033, 58, 12, 2890, 16, 980, 4672, 315, 1685, 279, 23697, 501, 17, 4327, 6, 468, 1746, 30364, 10696, 52, 17, 3567, 791, 16, 309, 1281, 18, 309, 365, 18, 72, 6834, 67, ...
self.with_spaces('"%s" "%s"' % (self.fname, "ab cd"), shell=1)
self.with_spaces('"%s" "%s" "%s"' % (sys.executable, self.fname, "ab cd"), shell=1)
def test_shell_string_with_spaces(self): # call() function with string argument with spaces on Windows self.with_spaces('"%s" "%s"' % (self.fname, "ab cd"), shell=1)
3921134398c3afce84bf3d79696d19f2e46cc008 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/3921134398c3afce84bf3d79696d19f2e46cc008/test_subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 10304, 67, 1080, 67, 1918, 67, 9554, 12, 2890, 4672, 468, 745, 1435, 445, 598, 533, 1237, 598, 7292, 603, 8202, 365, 18, 1918, 67, 9554, 22076, 9, 87, 6, 2213, 87, 5187, 73...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 10304, 67, 1080, 67, 1918, 67, 9554, 12, 2890, 4672, 468, 745, 1435, 445, 598, 533, 1237, 598, 7292, 603, 8202, 365, 18, 1918, 67, 9554, 22076, 9, 87, 6, 2213, 87, 5187, 73...
vcs.UploadBaseFiles(issue, rpc, patches, patchset, upload_options, files)
if vcs: vcs.UploadBaseFiles(issue, rpc, patches, patchset, upload_options, files)
def Upload(self, ui, repo, send_mail=False, gofmt=True, gofmt_just_warn=False): if ui.configbool("codereview", "force_gofmt", True) and gofmt: CheckGofmt(ui, repo, self.files, just_warn=gofmt_just_warn) os.chdir(repo.root) form_fields = [ ("content_upload", "1"), ("reviewers", JoinComma(self.reviewer)), ("cc", JoinComm...
6f6f731cdfefbe310bada9b6ae5aaf9170224b62 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5761/6f6f731cdfefbe310bada9b6ae5aaf9170224b62/codereview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9414, 12, 2890, 16, 5915, 16, 3538, 16, 1366, 67, 4408, 33, 8381, 16, 314, 792, 1010, 33, 5510, 16, 314, 792, 1010, 67, 3732, 67, 8935, 33, 8381, 4672, 309, 5915, 18, 1425, 6430, 293...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9414, 12, 2890, 16, 5915, 16, 3538, 16, 1366, 67, 4408, 33, 8381, 16, 314, 792, 1010, 33, 5510, 16, 314, 792, 1010, 67, 3732, 67, 8935, 33, 8381, 4672, 309, 5915, 18, 1425, 6430, 293...
affine_cb_op = sgtbx.change_of_basis_op(affine_s)
affine_cb_op = sgtbx.change_of_basis_op(affine_s) \ .new_denominators(best_cb_op)
def __init__(self, input_symmetry, angular_tolerance): space_group_number = input_symmetry.space_group_info().type().number() if (space_group_number < 3 or space_group_number >= 75): return input_symmetry standard_info = sgtbx.space_group_info( symbol=space_group_number, table_id="A1983") cb_op_inp_ref = input_symmetry...
5abe7ef25bbdc299b489a86ffe6ff011d4bd0de6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/5abe7ef25bbdc299b489a86ffe6ff011d4bd0de6/find_best_cell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 810, 67, 8117, 18042, 16, 11759, 67, 25456, 4672, 3476, 67, 1655, 67, 2696, 273, 810, 67, 8117, 18042, 18, 2981, 67, 1655, 67, 1376, 7675, 723, 7675, 269...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 810, 67, 8117, 18042, 16, 11759, 67, 25456, 4672, 3476, 67, 1655, 67, 2696, 273, 810, 67, 8117, 18042, 18, 2981, 67, 1655, 67, 1376, 7675, 723, 7675, 269...
'type':fields.selection([
'server_type':fields.selection([
def fetch_mail(self, cr, uid, ids, context=None): if not context: context = {} email_tool = self.pool.get('email.server.tools') for server in self.browse(cr, uid, ids, context): logger.notifyChannel('imap', netsvc.LOG_INFO, 'fetchmail start checking for new emails on %s' % (server.name)) context.update({'server_id': se...
fbfcb5c00c74f9d7a2f4d2fbf26b72fc976dceb4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/fbfcb5c00c74f9d7a2f4d2fbf26b72fc976dceb4/fetchmail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2158, 67, 4408, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 273, 2618, 2699, 67, 6738, 273, 365, 18, 6011, 18, 588, 2668, 3652, 18, 3567,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2158, 67, 4408, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 273, 2618, 2699, 67, 6738, 273, 365, 18, 6011, 18, 588, 2668, 3652, 18, 3567,...
c = encode_entity_map.get(c) if c:
e = encode_entity_map.get(c) if e:
def htmlentityreplace_errors(exc): if isinstance(exc, (UnicodeEncodeError, UnicodeTranslateError)): res = [] for c in exc.object[exc.start:exc.end]: c = encode_entity_map.get(c) if c: res.append("&") res.append(c) res.append(";") else: res.append(c.encode(exc.encoding, "xmlcharrefreplace")) return (u"".join(res), exc.e...
fc63d15ed2cd26106c630c43057db5a8ace5d66a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9368/fc63d15ed2cd26106c630c43057db5a8ace5d66a/htmlserializer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 1096, 2079, 67, 4324, 12, 10075, 4672, 309, 1549, 12, 10075, 16, 261, 16532, 5509, 668, 16, 9633, 12818, 668, 3719, 30, 400, 273, 5378, 364, 276, 316, 3533, 18, 1612, 63, 10075, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 1096, 2079, 67, 4324, 12, 10075, 4672, 309, 1549, 12, 10075, 16, 261, 16532, 5509, 668, 16, 9633, 12818, 668, 3719, 30, 400, 273, 5378, 364, 276, 316, 3533, 18, 1612, 63, 10075, ...
template = 'fedora.widgets.rsswidget'
template = 'myfedora.widgets.rsswidget'
def refresh(self, force=False): if not force and (datetime.utcnow() - self.lastPoll) < self.pollInterval: log.debug("Skipping refresh") return log.debug("Refreshing entries") newEntries = [] regex = re.compile('<img src="(.*)" alt="" />') feed = feedparser.parse(self.url) for entry in feed['entries'][:5]: # FIXME: use ...
c7e134a2989a190a030188f491b7534f60337bb5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12732/c7e134a2989a190a030188f491b7534f60337bb5/controllers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 12, 2890, 16, 2944, 33, 8381, 4672, 309, 486, 2944, 471, 261, 6585, 18, 17892, 3338, 1435, 300, 365, 18, 2722, 19085, 13, 411, 365, 18, 13835, 4006, 30, 613, 18, 4148, 2932, 1687...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2944, 33, 8381, 4672, 309, 486, 2944, 471, 261, 6585, 18, 17892, 3338, 1435, 300, 365, 18, 2722, 19085, 13, 411, 365, 18, 13835, 4006, 30, 613, 18, 4148, 2932, 1687...
sage: a = animate([plot(x^2 + n) for n in range(4)])
sage: a = animate([plot(x^2 + n) for n in range(4)])
def png(self, dir=None): """ Return the absolute path to a temp directory that contains the rendered png's of all the images in this animation.
fc5c762cc3083b7e82309285e62691e1339fba2c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/fc5c762cc3083b7e82309285e62691e1339fba2c/animate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14476, 12, 2890, 16, 1577, 33, 7036, 4672, 3536, 2000, 326, 4967, 589, 358, 279, 1906, 1867, 716, 1914, 326, 7935, 14476, 1807, 434, 777, 326, 4602, 316, 333, 8794, 18, 2, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14476, 12, 2890, 16, 1577, 33, 7036, 4672, 3536, 2000, 326, 4967, 589, 358, 279, 1906, 1867, 716, 1914, 326, 7935, 14476, 1807, 434, 777, 326, 4602, 316, 333, 8794, 18, 2, -100, -100, ...
"<img source=\"ui/actions/Undo.png\"><br> "\
"<img source=\"ui/actions/Edit/Undo.png\"><br> "\
def createWhatsThisTextForMainWindowWidgets(win): """ Adds the "What's This" help text to items found in the NE1 mainwindow toolbars and menus . @param win: NE1's mainwindow object. @type win: U{B{QMainWindow}<http://doc.trolltech.com/4/qmainwindow.html>} @note: Property Managers specify "What's This" text for their...
d48569351e6de963bfeb479c37fc70faea809fb4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/d48569351e6de963bfeb479c37fc70faea809fb4/WhatsThisText_for_MainWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 1528, 1290, 6376, 3829, 16166, 12, 8082, 4672, 3536, 15605, 326, 315, 23801, 1807, 1220, 6, 2809, 977, 358, 1516, 1392, 316, 326, 12901, 21, 2774, 5668, 12748, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 1528, 1290, 6376, 3829, 16166, 12, 8082, 4672, 3536, 15605, 326, 315, 23801, 1807, 1220, 6, 2809, 977, 358, 1516, 1392, 316, 326, 12901, 21, 2774, 5668, 12748, 87, ...
pterm_list= pt_obj.compute(cr, uid, payment_term_id, value=1, date_ref=date_invoice)
pterm_list = pt_obj.compute(cr, uid, payment_term_id, value=1, date_ref=date_invoice)
def onchange_payment_term_date_invoice(self, cr, uid, ids, payment_term_id, date_invoice): if not payment_term_id: return {} res={} pt_obj= self.pool.get('account.payment.term')
09310564443da0cd5577f36abfe3668147cbd214 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/09310564443da0cd5577f36abfe3668147cbd214/invoice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 3427, 67, 9261, 67, 6408, 67, 712, 67, 16119, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 5184, 67, 6408, 67, 350, 16, 1509, 67, 16119, 4672, 309, 486, 5184, 67, 6408, 67, 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, 603, 3427, 67, 9261, 67, 6408, 67, 712, 67, 16119, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 5184, 67, 6408, 67, 350, 16, 1509, 67, 16119, 4672, 309, 486, 5184, 67, 6408, 67, 350, ...
data = doctype_pattern.sub('', data) return version, data def parse(url_file_stream_or_string, etag=None, modified=None, agent=None, referrer=None, handlers=[]): '''Parse a feed from a URL, file, stream, or string'''
replacement='' if len(doctype_results)==1 and entity_results: safe_pattern=re.compile('\s+(\w+)\s+"(& safe_entities=filter(lambda e: safe_pattern.match(e),entity_results) if safe_entities: replacement='<!DOCTYPE feed [\n <!ENTITY %s>\n]>' % '>\n <!ENTITY '.join(safe_entities) data = doctype_pattern.sub(replacement,...
def _stripDoctype(data): '''Strips DOCTYPE from XML document, returns (rss_version, stripped_data) rss_version may be 'rss091n' or None stripped_data is the same XML document, minus the DOCTYPE ''' entity_pattern = re.compile(r'<!ENTITY([^>]*?)>', re.MULTILINE) data = entity_pattern.sub('', data) doctype_pattern = re....
44482af2baebba8741223b8967e4efeaf8365c45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/44482af2baebba8741223b8967e4efeaf8365c45/feedparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6406, 3244, 12387, 12, 892, 4672, 9163, 1585, 7146, 5467, 17331, 628, 3167, 1668, 16, 1135, 261, 25151, 67, 1589, 16, 13300, 67, 892, 13, 225, 18817, 67, 1589, 2026, 506, 296, 25151...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6406, 3244, 12387, 12, 892, 4672, 9163, 1585, 7146, 5467, 17331, 628, 3167, 1668, 16, 1135, 261, 25151, 67, 1589, 16, 13300, 67, 892, 13, 225, 18817, 67, 1589, 2026, 506, 296, 25151...
if (indexreg == 2 or context.complementNext) and not embedded:
if indexreg == 2 or context.complementNext:
def _parseOperand(cls, context, operands, embedded=False): context.log(5, "interpretive: trying to parse operand %d %s" % (context.interpArgCount, operands)) newoperands = [] indexreg = 0 for operand in operands: if operand.endswith(',1') or operand.endswith(',2'): context.log(5, "interpretive: indexed operand %s" % op...
db6ee6dd1c01199430e7e6696abfe7c29390ad60 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/db6ee6dd1c01199430e7e6696abfe7c29390ad60/interpretive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 10265, 12, 6429, 16, 819, 16, 14883, 16, 7488, 33, 8381, 4672, 819, 18, 1330, 12, 25, 16, 315, 24713, 688, 30, 8374, 358, 1109, 9886, 738, 72, 738, 87, 6, 738, 261, 2472, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2670, 10265, 12, 6429, 16, 819, 16, 14883, 16, 7488, 33, 8381, 4672, 819, 18, 1330, 12, 25, 16, 315, 24713, 688, 30, 8374, 358, 1109, 9886, 738, 72, 738, 87, 6, 738, 261, 2472, ...
)
))
def compact_traceback (): t,v,tb = sys.exc_info() tbinfo = [] while 1: tbinfo.append ( tb.tb_frame.f_code.co_filename, tb.tb_frame.f_code.co_name, str(tb.tb_lineno) ) tb = tb.tb_next if not tb: break # just to be safe del tb file, function, line = tbinfo[-1] info = '[' + string.join ( map ( lambda x: string.join (x, ...
c6681224baca03a93aba80ffa02e8e21022abe51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/c6681224baca03a93aba80ffa02e8e21022abe51/asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6739, 67, 21696, 1832, 30, 268, 16, 90, 16, 18587, 273, 2589, 18, 10075, 67, 1376, 10756, 8739, 1376, 273, 5378, 1323, 404, 30, 8739, 1376, 18, 6923, 261, 8739, 18, 18587, 67, 3789, 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, 6739, 67, 21696, 1832, 30, 268, 16, 90, 16, 18587, 273, 2589, 18, 10075, 67, 1376, 10756, 8739, 1376, 273, 5378, 1323, 404, 30, 8739, 1376, 18, 6923, 261, 8739, 18, 18587, 67, 3789, 18...
rel_url = self.url + '/release/'
rel_url = self.url + '/release/' + id
def __parse_release(self, id, name): """Parse the release page and add the cover to the list."""
360af30ee90228843101137c49d7d9ff8c78df54 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4764/360af30ee90228843101137c49d7d9ff8c78df54/albumart.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2670, 67, 9340, 12, 2890, 16, 612, 16, 508, 4672, 3536, 3201, 326, 3992, 1363, 471, 527, 326, 5590, 358, 326, 666, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2670, 67, 9340, 12, 2890, 16, 612, 16, 508, 4672, 3536, 3201, 326, 3992, 1363, 471, 527, 326, 5590, 358, 326, 666, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print s
print "DEBUG: %s" % s
def debug(s): if hasattr(options,'debug'): if options.debug: print s
7e30ff511aa802fa36f51afcec55fb569335528d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2499/7e30ff511aa802fa36f51afcec55fb569335528d/globaldata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 12, 87, 4672, 309, 3859, 12, 2116, 11189, 4148, 11, 4672, 309, 702, 18, 4148, 30, 1172, 315, 9394, 30, 738, 87, 6, 738, 272, 565, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 1198, 12, 87, 4672, 309, 3859, 12, 2116, 11189, 4148, 11, 4672, 309, 702, 18, 4148, 30, 1172, 315, 9394, 30, 738, 87, 6, 738, 272, 565, 2, -100, -100, -100, -100, -100, -100, -100, -...
'$CC -Wl,-t -o /dev/null 2>&1 -l' + name
'$CC -Wl,-t -o ' + ccout + ' 2>&1 -l' + name
def _findLib_gcc(name): expr = '[^\(\)\s]*lib%s\.[^\(\)\s]*' % name cmd = 'if type gcc &>/dev/null; then CC=gcc; else CC=cc; fi;' \ '$CC -Wl,-t -o /dev/null 2>&1 -l' + name try: fdout, outfile = tempfile.mkstemp() fd = os.popen(cmd) trace = fd.read() err = fd.close() finally: try: os.unlink(outfile) except OSError, e:...
5ecd565a310c7efd0270382d27f395e78aae57ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/5ecd565a310c7efd0270382d27f395e78aae57ab/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 5664, 67, 75, 952, 12, 529, 4672, 3065, 273, 5271, 17134, 4713, 5153, 87, 5772, 2941, 9, 87, 5834, 15441, 4713, 5153, 87, 65, 4035, 738, 508, 1797, 273, 296, 430, 618, 314, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 5664, 67, 75, 952, 12, 529, 4672, 3065, 273, 5271, 17134, 4713, 5153, 87, 5772, 2941, 9, 87, 5834, 15441, 4713, 5153, 87, 65, 4035, 738, 508, 1797, 273, 296, 430, 618, 314, ...
except PyPJUAError:
except PyPJUAError:
def shutdown(self, *args, **kwargs): try: self.end(*args, **kwargs) except PyPJUAError: # QQQ use more descriptive exception type here pass
7a7e048c25e88fda6a2cfedc783f72f56206ccbb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/7a7e048c25e88fda6a2cfedc783f72f56206ccbb/greenengine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5731, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 775, 30, 365, 18, 409, 30857, 1968, 16, 2826, 4333, 13, 1335, 4707, 52, 46, 28203, 668, 30, 468, 2238, 53, 53, 999, 1898, 302, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5731, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 775, 30, 365, 18, 409, 30857, 1968, 16, 2826, 4333, 13, 1335, 4707, 52, 46, 28203, 668, 30, 468, 2238, 53, 53, 999, 1898, 302, 31...
regex = self._getWildcardRegex(readingStr)
regex = self._getWildcardRegex(searchStr)
def getMatchFunction(self, searchStr, **options): if self.hasWildcardCharacters(searchStr): regex = self._getWildcardRegex(readingStr) return lambda reading: regex.search(reading) is not None else: # simple routine is faster return ExactSearchStrategy.getMatchFunction(self, searchStr)
33c7bd3387c933504796661bab3ca4ab548a02ff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/33c7bd3387c933504796661bab3ca4ab548a02ff/dictionary.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2060, 2083, 12, 2890, 16, 1623, 1585, 16, 2826, 2116, 4672, 309, 365, 18, 5332, 12121, 11600, 12, 3072, 1585, 4672, 3936, 273, 365, 6315, 588, 12121, 6628, 12, 3072, 1585, 13, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2060, 2083, 12, 2890, 16, 1623, 1585, 16, 2826, 2116, 4672, 309, 365, 18, 5332, 12121, 11600, 12, 3072, 1585, 4672, 3936, 273, 365, 6315, 588, 12121, 6628, 12, 3072, 1585, 13, 327, ...
if scope: sink.makeStatement(scope, RDFSink.forSomeSym, scope, term)
def something(sink, scope=None, hint='gensym'): global g g=g+1 term = (RDFSink.SYMBOL, '#%s%s' % (hint, g)) if scope: sink.makeStatement(scope, RDFSink.forSomeSym, scope, term) return term
289614d10e959030dad93d224a41c4a114c198c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/289614d10e959030dad93d224a41c4a114c198c2/dbview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5943, 12, 17074, 16, 2146, 33, 7036, 16, 7380, 2218, 23730, 2942, 11, 4672, 2552, 314, 314, 33, 75, 15, 21, 2481, 273, 261, 30137, 11326, 18, 22093, 16, 2946, 9, 87, 9, 87, 11, 738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5943, 12, 17074, 16, 2146, 33, 7036, 16, 7380, 2218, 23730, 2942, 11, 4672, 2552, 314, 314, 33, 75, 15, 21, 2481, 273, 261, 30137, 11326, 18, 22093, 16, 2946, 9, 87, 9, 87, 11, 738, ...
The working directory to run in (default ``base_dir``)
The working directory to run in (default ``base_path``)
def run(self, script, *args, **kw): """ Run the command, with the given arguments. The ``script`` argument can have space-separated arguments, or you can use the positional arguments.
616aa27a7ab94545b6ba5ca42e38724863a28681 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8710/616aa27a7ab94545b6ba5ca42e38724863a28681/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 2728, 16, 380, 1968, 16, 2826, 9987, 4672, 3536, 1939, 326, 1296, 16, 598, 326, 864, 1775, 18, 225, 1021, 12176, 4263, 10335, 1237, 848, 1240, 3476, 17, 24622, 1775, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 2728, 16, 380, 1968, 16, 2826, 9987, 4672, 3536, 1939, 326, 1296, 16, 598, 326, 864, 1775, 18, 225, 1021, 12176, 4263, 10335, 1237, 848, 1240, 3476, 17, 24622, 1775, ...
if(stepNameMic[microstep[str(j)]].split('_',1)[-1]==oldNamestep): filecfg+="nameStep"+"=u\""+stepNameMic[microstep[str(j)]].split('_',1)[-1]+"\""
if(config.get(stepNameMic[microstep[str(j)]],"title")==oldNamestep): filecfg+="nameStep"+"=u\""+config.get(stepNameMic[microstep[str(j)]],"title")+"\""
filecfg+='def test_'+suite_name+'():\n'
9a1e3222b3539c3d231aa7fc603f57d26aa450e1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8218/9a1e3222b3539c3d231aa7fc603f57d26aa450e1/loading.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 585, 7066, 15, 2218, 536, 1842, 4623, 15, 30676, 67, 529, 6797, 1435, 5581, 82, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 585, 7066, 15, 2218, 536, 1842, 4623, 15, 30676, 67, 529, 6797, 1435, 5581, 82, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
script_name = self.user_data['script_name']
script_name = self.get_user_data['script_name']
def get_script(self): script_name = self.user_data['script_name'] if script_name: c = boto.connect_s3(self.get_user_data('aws_access_key_id'), self.get_user_data('aws_secret_access_key')) script_name = script + '.py' bucket = c.get_bucket(self.get_user_data['bucket_name']) script = bucket.get_key(script_name) print 'Fe...
d9488c7763122c11d0b0997f685c907f76941210 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1098/d9488c7763122c11d0b0997f685c907f76941210/startup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4263, 12, 2890, 4672, 2728, 67, 529, 273, 365, 18, 588, 67, 1355, 67, 892, 3292, 4263, 67, 529, 3546, 309, 2728, 67, 529, 30, 276, 273, 17228, 18, 3612, 67, 87, 23, 12, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4263, 12, 2890, 4672, 2728, 67, 529, 273, 365, 18, 588, 67, 1355, 67, 892, 3292, 4263, 67, 529, 3546, 309, 2728, 67, 529, 30, 276, 273, 17228, 18, 3612, 67, 87, 23, 12, 28...
unitdict[key] = dict([(a,sage_eval(repr(b))) for a, b in value.iteritems()])
unitdict[key] = dict([(a,sage_eval(repr(b))) for a, b in value.iteritems()])
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5302, 4873, 1576, 13332, 3536, 6910, 777, 326, 533, 924, 434, 326, 2836, 1576, 2190, 635, 3675, 12697, 10138, 16, 471, 10736, 2690, 1308, 4606, 364, 28769, 434, 999, 18, 1220, 445, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5302, 4873, 1576, 13332, 3536, 6910, 777, 326, 533, 924, 434, 326, 2836, 1576, 2190, 635, 3675, 12697, 10138, 16, 471, 10736, 2690, 1308, 4606, 364, 28769, 434, 999, 18, 1220, 445, 353, ...
name = record['parent_id'][1]+' / '+name
name = record['parent_id'][1] + ' / ' + name
def name_get(self, cr, uid, ids, context={}): if not len(ids): return [] reads = self.read(cr, uid, ids, ['name','parent_id'], context) res = [] for record in reads: name = record['name'] if record['parent_id']: name = record['parent_id'][1]+' / '+name res.append((record['id'], name)) return res
85a1e7b7da9518beac3cb0935570916534cd57ee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/85a1e7b7da9518beac3cb0935570916534cd57ee/dm_offer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 309, 486, 562, 12, 2232, 4672, 327, 5378, 6838, 273, 365, 18, 896, 12, 3353, 16, 4555, 16, 3258, 16, 10228...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 309, 486, 562, 12, 2232, 4672, 327, 5378, 6838, 273, 365, 18, 896, 12, 3353, 16, 4555, 16, 3258, 16, 10228...
index = 0
def motion_trail_task (self, task):
ce75c34e2229a5146542c20586af078bb0d5c9e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/ce75c34e2229a5146542c20586af078bb0d5c9e6/MotionTrail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21188, 67, 15565, 67, 4146, 261, 2890, 16, 1562, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21188, 67, 15565, 67, 4146, 261, 2890, 16, 1562, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
for file_set in tmp_pn:
for file_set in pkg_pn:
def findBestProvider(pn, cfgData, dataCache, pkg_pn = None, item = None): """ If there is a PREFERRED_VERSION, find the highest-priority bbfile providing that version. If not, find the latest version provided by an bbfile in the highest-priority set. """ if not pkg_pn: pkg_pn = dataCache.pkg_pn files = pkg_pn[pn] pri...
3d2fa443ab7237256a2f59947e4536e4200a2cec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2672/3d2fa443ab7237256a2f59947e4536e4200a2cec/providers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 14173, 2249, 12, 7449, 16, 2776, 751, 16, 501, 1649, 16, 3475, 67, 7449, 273, 599, 16, 761, 273, 599, 4672, 3536, 971, 1915, 353, 279, 19175, 67, 5757, 16, 1104, 326, 9742, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 14173, 2249, 12, 7449, 16, 2776, 751, 16, 501, 1649, 16, 3475, 67, 7449, 273, 599, 16, 761, 273, 599, 4672, 3536, 971, 1915, 353, 279, 19175, 67, 5757, 16, 1104, 326, 9742, 17, ...
"src/ZEO/runzeo.py", "src/ZEO/zeopasswd.py", "src/ZEO/mkzeoinst.py", "src/ZEO/zeoctl.py",
def BTreeExtension(flavor): key = flavor[0] value = flavor[1] name = "BTrees._%sBTree" % flavor sources = ["src/BTrees/_%sBTree.c" % flavor] kwargs = {"include_dirs": include} if flavor != "fs": kwargs["depends"] = (base_btrees_depends + [KEY_H % _flavors[key], VALUE_H % _flavors[value]]) if key != "O": kwargs["define_...
e20e5b29b38a7d2eabb133c25cef38e5c5a8e01f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/e20e5b29b38a7d2eabb133c25cef38e5c5a8e01f/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 605, 2471, 3625, 12, 2242, 9444, 4672, 498, 273, 19496, 63, 20, 65, 460, 273, 19496, 63, 21, 65, 508, 273, 315, 38, 26590, 6315, 9, 87, 38, 2471, 6, 738, 19496, 5550, 273, 8247, 4816...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 605, 2471, 3625, 12, 2242, 9444, 4672, 498, 273, 19496, 63, 20, 65, 460, 273, 19496, 63, 21, 65, 508, 273, 315, 38, 26590, 6315, 9, 87, 38, 2471, 6, 738, 19496, 5550, 273, 8247, 4816...
if url.database: port = url.port or 1521 dsn = self.module.makedsn(url.host,port,url.database) else: dsn = url.host opts = dict( user=url.username, password=url.password, dsn = dsn, threaded = self.threaded )
opts = url.translate_connect_args(['dsn', None, 'user', 'password']) opts['threaded'] = self.threaded
def create_connect_args(self, url): if url.database: # if we have a database, then we have a remote host port = url.port or 1521 dsn = self.module.makedsn(url.host,port,url.database) else: # we have a local tnsname dsn = url.host opts = dict( user=url.username, password=url.password, dsn = dsn, threaded = self.threaded...
d9e9c25380b7c7d975e731a0fa0cb021c34aa920 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1074/d9e9c25380b7c7d975e731a0fa0cb021c34aa920/oracle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3612, 67, 1968, 12, 2890, 16, 880, 4672, 309, 880, 18, 6231, 30, 468, 309, 732, 1240, 279, 2063, 16, 1508, 732, 1240, 279, 2632, 1479, 1756, 273, 880, 18, 655, 578, 4711, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3612, 67, 1968, 12, 2890, 16, 880, 4672, 309, 880, 18, 6231, 30, 468, 309, 732, 1240, 279, 2063, 16, 1508, 732, 1240, 279, 2632, 1479, 1756, 273, 880, 18, 655, 578, 4711, 53...
exc = SystemError('Child process (pid=%d) refuses to die even after SIGKILL' % self.pid)
exc = SystemError('Child process (pid=%d) refuses to die even after SIGKILL' % pid)
def stop(self, cmd=None, wait=3.0): """ Stops the child process. :param cmd: stop command used to attempt to terminate the child gracefully; overrides the *stop_command* property if specified. :type cmd: string or callable; see :attr:`~kaa.Process2.stop_command` :param wait: number of seconds to wait between terminati...
429e20d0cfa151e84c86d26f9103a430c1e44598 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11722/429e20d0cfa151e84c86d26f9103a430c1e44598/process.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 12, 2890, 16, 1797, 33, 7036, 16, 2529, 33, 23, 18, 20, 4672, 3536, 934, 4473, 326, 1151, 1207, 18, 225, 294, 891, 1797, 30, 2132, 1296, 1399, 358, 4395, 358, 10850, 326, 1151, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 12, 2890, 16, 1797, 33, 7036, 16, 2529, 33, 23, 18, 20, 4672, 3536, 934, 4473, 326, 1151, 1207, 18, 225, 294, 891, 1797, 30, 2132, 1296, 1399, 358, 4395, 358, 10850, 326, 1151, ...
EnqueueCxx(ipath=IPATH, opts=OPTS, src='dtoolbase.cxx', obj='dtoolbase_dtoolbase.obj')
def CreatePandaVersionFiles(): version1=int(VERSION.split(".")[0]) version2=int(VERSION.split(".")[1]) version3=int(VERSION.split(".")[2]) nversion=version1*1000000+version2*1000+version3 pandaversion_h = PANDAVERSION_H.replace("VERSION1",str(version1)) pandaversion_h = pandaversion_h.replace("VERSION2",str(version2))...
c062776b1f6d036a43312d88bd9591e46cb812a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/c062776b1f6d036a43312d88bd9591e46cb812a8/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 52, 464, 69, 1444, 2697, 13332, 1177, 21, 33, 474, 12, 5757, 18, 4939, 2932, 1199, 25146, 20, 5717, 1177, 22, 33, 474, 12, 5757, 18, 4939, 2932, 1199, 25146, 21, 5717, 1177, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 52, 464, 69, 1444, 2697, 13332, 1177, 21, 33, 474, 12, 5757, 18, 4939, 2932, 1199, 25146, 20, 5717, 1177, 22, 33, 474, 12, 5757, 18, 4939, 2932, 1199, 25146, 21, 5717, 1177, 23, ...
new_table_set_col_attr(self.__connection__, table, self.__skeleton__[table])
new_table_set_col_attr(self.__connection__, table_name, self.__skeleton__[table_name])
def make_primary_key(self, table, col_name): """ WORD ON THE STREET IS THAT SQLITE IS RETARDED ABOUT *ALTER TABLE* COMMANDS... SO MEANWHILE WE ACCOMPLISH THIS BY CREATING A TEMPORARY TABLE. SUGGESTIONS FOR SPEEDUP ARE WELCOME. (OR JUST SEND A PATCH...) MAKE NOTE IN DOCS THAT TO GET AN AUTO-INCREMENTING PRIMARY KEY, ...
5ddf79d83938a9c0191ec3af2f60e264a74ecef9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/5ddf79d83938a9c0191ec3af2f60e264a74ecef9/database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 8258, 67, 856, 12, 2890, 16, 1014, 16, 645, 67, 529, 4672, 3536, 21464, 6229, 12786, 2347, 862, 1584, 4437, 7662, 789, 3063, 5398, 4437, 10366, 985, 7660, 10336, 5069, 380, 188...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 8258, 67, 856, 12, 2890, 16, 1014, 16, 645, 67, 529, 4672, 3536, 21464, 6229, 12786, 2347, 862, 1584, 4437, 7662, 789, 3063, 5398, 4437, 10366, 985, 7660, 10336, 5069, 380, 188...
c.execute(sql, {'tab':self._tabellnavn, 'id': self._id, 'ver': DATABASEVERSJON, 'kat':os.getenv('HOME') })
c.execute(sql, (self._id, DATABASEVERSJON, os.getenv('HOME'),))
def __init__(self, db, versjonsjekk=True): #from _sqlite import DatabaseError c = db.cursor() datastrukturer = [fakturaFirmainfo, fakturaKunde, fakturaVare, fakturaOrdre, fakturaOrdrelinje, fakturaOppsett, fakturaSikkerhetskopi, fakturaEpost] mangler = [] for obj in datastrukturer: try: c.execute("SELECT * FROM %s LIM...
8ef23f2cb56a5094e6613f76ebe52efe8861f0a0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3611/8ef23f2cb56a5094e6613f76ebe52efe8861f0a0/fakturabibliotek.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1319, 16, 14690, 78, 7008, 78, 3839, 79, 33, 5510, 4672, 225, 468, 2080, 389, 19460, 1930, 5130, 668, 276, 273, 1319, 18, 9216, 1435, 5386, 313, 31699, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1319, 16, 14690, 78, 7008, 78, 3839, 79, 33, 5510, 4672, 225, 468, 2080, 389, 19460, 1930, 5130, 668, 276, 273, 1319, 18, 9216, 1435, 5386, 313, 31699, 1...
counter = 0
def temporarykey(self): lst = [self.opname, self.result.temporarykey()] lst += [arg.temporarykey() for arg in self.args] return tuple(lst)
c68a32c8bd90888c6c8056f0804f438cb700b947 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/c68a32c8bd90888c6c8056f0804f438cb700b947/annotation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6269, 856, 12, 2890, 4672, 9441, 273, 306, 2890, 18, 556, 529, 16, 365, 18, 2088, 18, 31143, 856, 1435, 65, 9441, 1011, 306, 3175, 18, 31143, 856, 1435, 364, 1501, 316, 365, 18, 1968, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6269, 856, 12, 2890, 4672, 9441, 273, 306, 2890, 18, 556, 529, 16, 365, 18, 2088, 18, 31143, 856, 1435, 65, 9441, 1011, 306, 3175, 18, 31143, 856, 1435, 364, 1501, 316, 365, 18, 1968, ...
if not color: color = u**2+v**2
def _add_vectors(self, item): if DEBUG: print "Adding vectors" # uncomment the following command if there is no support for # automatic scaling of vectors in the current plotting package: #item.scale_vectors()
37a2baa15d601d93f7f35abb0717979335daa584 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4727/37a2baa15d601d93f7f35abb0717979335daa584/matplotlib_.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 67, 18535, 12, 2890, 16, 761, 4672, 309, 6369, 30, 1172, 315, 13962, 10046, 6, 468, 12704, 475, 326, 3751, 1296, 309, 1915, 353, 1158, 2865, 364, 468, 5859, 10612, 434, 10046,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 67, 18535, 12, 2890, 16, 761, 4672, 309, 6369, 30, 1172, 315, 13962, 10046, 6, 468, 12704, 475, 326, 3751, 1296, 309, 1915, 353, 1158, 2865, 364, 468, 5859, 10612, 434, 10046,...
import sys try: x = sys.exitfunc except AttributeError: sys.exitfunc = _run_exitfuncs else: if x != _run_exitfuncs: register(x) del sys if __name__ == "__main__": def x1(): print "running x1" def x2(n): print "running x2(%s)" % `n` def x3(n, kwd=None): print "running x3(%s, kwd=%s)" % (`n`, `kwd`) register(x1) regi...
atexit._exithandlers = _exithandlers
def register(func, *targs, **kargs): """register a function to be executed upon normal program termination func - function to be called at exit targs - optional arguments to pass to func kargs - optional keyword arguments to pass to func """ _exithandlers.append((func, targs, kargs))
e022279a0785b70082e1d48d48e0a31661ce31f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e022279a0785b70082e1d48d48e0a31661ce31f7/test_atexit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 12, 644, 16, 380, 88, 1968, 16, 2826, 79, 1968, 4672, 3536, 4861, 279, 445, 358, 506, 7120, 12318, 2212, 5402, 19650, 225, 1326, 300, 445, 358, 506, 2566, 622, 2427, 268, 1968, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 12, 644, 16, 380, 88, 1968, 16, 2826, 79, 1968, 4672, 3536, 4861, 279, 445, 358, 506, 7120, 12318, 2212, 5402, 19650, 225, 1326, 300, 445, 358, 506, 2566, 622, 2427, 268, 1968, 3...
"limit 1)" % ipinfo.get('city', 'Unknown'),
"limit 1)" % DB.escape(ipinfo.get('city','Unknown') or "Unknown"),
def insert_whois_cache(sql_ip, id, ipinfo): dbh = DB.DBO() dbh.insert("whois_cache", _ip = sql_ip, id = id, _geoip_city = "(select id from geoip_city where city='%s' " \ "limit 1)" % ipinfo.get('city', 'Unknown'), _geoip_country = "(select id from geoip_country where country" \ "='%s' limit 1)" % DB.escape(ipinfo.get...
3a201ebebcbaa6170a4af49e51c219faf9440acd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5568/3a201ebebcbaa6170a4af49e51c219faf9440acd/Whois.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 67, 3350, 19606, 67, 2493, 12, 4669, 67, 625, 16, 612, 16, 2359, 1376, 4672, 1319, 76, 273, 2383, 18, 2290, 51, 1435, 1319, 76, 18, 6387, 2932, 3350, 19606, 67, 2493, 3113, 389, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 67, 3350, 19606, 67, 2493, 12, 4669, 67, 625, 16, 612, 16, 2359, 1376, 4672, 1319, 76, 273, 2383, 18, 2290, 51, 1435, 1319, 76, 18, 6387, 2932, 3350, 19606, 67, 2493, 3113, 389, ...
print "Wrote lines. Hit enter to release lock." dummy = sys.stdin.readline()
print "Wrote lines. Hit enter to release lock." dummy = sys.stdin.readline()
def unlock(file): fcntl.flock(file.fileno(), fcntl.LOCK_UN)
a70e12d549f6ab39358b183ce901d033bd87a441 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/a70e12d549f6ab39358b183ce901d033bd87a441/portalocker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7186, 12, 768, 4672, 30894, 18, 74, 739, 12, 768, 18, 7540, 5764, 9334, 30894, 18, 6589, 67, 2124, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7186, 12, 768, 4672, 30894, 18, 74, 739, 12, 768, 18, 7540, 5764, 9334, 30894, 18, 6589, 67, 2124, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
title=_('Top Viruses Detected'),
title=_('Top Web Viruses Detected'),
def get_plot(self, end_date, report_days, host=None, user=None, email=None): ed = DateFromMx(end_date) one_week = DateFromMx(end_date - mx.DateTime.DateTimeDelta(report_days))
105b5e27bf63d007da247194879b178db12c5076 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/87/105b5e27bf63d007da247194879b178db12c5076/untangle_base_virus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4032, 12, 2890, 16, 679, 67, 712, 16, 2605, 67, 9810, 16, 1479, 33, 7036, 16, 729, 33, 7036, 16, 2699, 33, 7036, 4672, 1675, 273, 2167, 1265, 49, 92, 12, 409, 67, 712, 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, 336, 67, 4032, 12, 2890, 16, 679, 67, 712, 16, 2605, 67, 9810, 16, 1479, 33, 7036, 16, 729, 33, 7036, 16, 2699, 33, 7036, 4672, 1675, 273, 2167, 1265, 49, 92, 12, 409, 67, 712, 13,...
return isinstance(obj, guide.ChannelGuide)
return isinstance(obj, guide.ChannelGuide) and obj.url is None
def objectIsSingleton(self, obj): return isinstance(obj, guide.ChannelGuide)
9202c102b4b5d539501a5fa4c6bf8a7663d05423 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/9202c102b4b5d539501a5fa4c6bf8a7663d05423/databasesanity.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 733, 2520, 19571, 12, 2890, 16, 1081, 4672, 327, 1549, 12, 2603, 16, 7343, 18, 2909, 17424, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 733, 2520, 19571, 12, 2890, 16, 1081, 4672, 327, 1549, 12, 2603, 16, 7343, 18, 2909, 17424, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
dt = None for pattern in patterns: try: dt = datetime.datetime.strptime(value, pattern) except: continue else: break if dt: dt = UTCDateTime(dt) + ms return UTCDateTime._new(cls, dt)
dt = datetime.datetime.strptime(value, pattern) dt = UTCDateTime(dt) + ms return UTCDateTime._new(cls, dt)
def __new__(cls, *args, **kwargs): """ Creates a new UTCDateTime object. """ if len(args) == 0 and len(kwargs) == 0: dt = datetime.datetime.utcnow() return UTCDateTime._new(cls, dt) elif len(args) == 1: value = args[0] # check types if type(value) in [int, long, float]: # got a timestamp dt = datetime.datetime.utcfromt...
46ed1c924a9cf82ad2135bc98b77ba0cad436d88 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/46ed1c924a9cf82ad2135bc98b77ba0cad436d88/utcdatetime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2704, 972, 12, 6429, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 10210, 279, 394, 9951, 5096, 733, 18, 3536, 309, 562, 12, 1968, 13, 422, 374, 471, 562, 12, 4333, 13, 422, 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, 1001, 2704, 972, 12, 6429, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 10210, 279, 394, 9951, 5096, 733, 18, 3536, 309, 562, 12, 1968, 13, 422, 374, 471, 562, 12, 4333, 13, 422, 374, ...
name="test" class="
name="test" class="
def test_class_w_implements(self): xmlconfig(StringIO(template % """ <browser:page name="test" class=" zope.app.publisher.browser.tests.test_directives.C_w_implements" for="zope.app.component.tests.views.IC" attribute="index" permission="zope.Public" /> """ ))
1cfc7ddd1cac0110cca3e909215477e1c59bbca3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9523/1cfc7ddd1cac0110cca3e909215477e1c59bbca3/test_directives.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1106, 67, 91, 67, 17061, 12, 2890, 4672, 2025, 1425, 12, 780, 4294, 12, 3202, 738, 3536, 411, 11213, 30, 2433, 508, 1546, 3813, 6, 667, 1546, 998, 1306, 18, 2910, 18, 26018, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1106, 67, 91, 67, 17061, 12, 2890, 4672, 2025, 1425, 12, 780, 4294, 12, 3202, 738, 3536, 411, 11213, 30, 2433, 508, 1546, 3813, 6, 667, 1546, 998, 1306, 18, 2910, 18, 26018, ...
"""Component that keeps track of the supported version control systems, and provides easy access to the configured implementation."""
"""Component registering the supported version control systems, It provides easy access to the configured implementation. """
def get_repository(repos_type, repos_dir, authname): """Return the Repository object for the given repository type and directory. """
0091f73d9ddb2e28de9da1a025ba0c0cfaf2b458 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/0091f73d9ddb2e28de9da1a025ba0c0cfaf2b458/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 9071, 12, 15564, 67, 723, 16, 13686, 67, 1214, 16, 1357, 529, 4672, 3536, 990, 326, 6281, 733, 364, 326, 864, 3352, 618, 471, 1867, 18, 3536, 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, 336, 67, 9071, 12, 15564, 67, 723, 16, 13686, 67, 1214, 16, 1357, 529, 4672, 3536, 990, 326, 6281, 733, 364, 326, 864, 3352, 618, 471, 1867, 18, 3536, 2, -100, -100, -100, -100, -100, ...
setterName = 'xpc_qsReadOnlySetter'
setterName = 'js_GetterOnlyPropertyStub'
def writeAttrStubs(f, customMethodCalls, attr): getterName = (attr.iface.name + '_' + header.attributeNativeName(attr, True)) writeQuickStub(f, customMethodCalls, attr, getterName) if attr.readonly: setterName = 'xpc_qsReadOnlySetter' else: setterName = (attr.iface.name + '_' + header.attributeNativeName(attr, False)) ...
90a56e6131075b2838f7499973561591dee803fa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/90a56e6131075b2838f7499973561591dee803fa/qsgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 3843, 11974, 87, 12, 74, 16, 1679, 1305, 10125, 16, 1604, 4672, 7060, 461, 273, 261, 1747, 18, 31479, 18, 529, 397, 4427, 397, 1446, 18, 4589, 9220, 461, 12, 1747, 16, 1053, 3719...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 3843, 11974, 87, 12, 74, 16, 1679, 1305, 10125, 16, 1604, 4672, 7060, 461, 273, 261, 1747, 18, 31479, 18, 529, 397, 4427, 397, 1446, 18, 4589, 9220, 461, 12, 1747, 16, 1053, 3719...
categ.appendChild(doc.createTextNode(escape(res[0]["name"])))
categ.appendChild(doc.createTextNode(_to_decode(res[0]["name"])))
def catalog_xml(self,cr,uid,ids,data,context,cwid="0"): impl = minidom.getDOMImplementation()
96d6ca40fca69c62441674f782c64c7233cda092 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/96d6ca40fca69c62441674f782c64c7233cda092/catalog2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6222, 67, 2902, 12, 2890, 16, 3353, 16, 1911, 16, 2232, 16, 892, 16, 2472, 16, 71, 30902, 1546, 20, 6, 4672, 9380, 273, 1131, 350, 362, 18, 588, 8168, 13621, 1435, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6222, 67, 2902, 12, 2890, 16, 3353, 16, 1911, 16, 2232, 16, 892, 16, 2472, 16, 71, 30902, 1546, 20, 6, 4672, 9380, 273, 1131, 350, 362, 18, 588, 8168, 13621, 1435, 2, -100, -100, -10...
def ScpDelete(service_class_name, container_name = None, dn = None): container_name = container_name or service_class_name
def ScpDelete(container_name, dn = None):
def ScpDelete(service_class_name, container_name = None, dn = None): container_name = container_name or service_class_name if dn is None: dn = win32api.GetComputerObjectName(win32con.NameFullyQualifiedDN) logger.debug("Removing connection point from %s", dn) # Compose the ADSpath and bind to the computer object for th...
05460182b44a4268d3f6444a86899d6994211829 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/05460182b44a4268d3f6444a86899d6994211829/scp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2850, 84, 2613, 12, 3782, 67, 529, 16, 8800, 273, 599, 4672, 309, 8800, 353, 599, 30, 8800, 273, 5657, 1578, 2425, 18, 967, 7703, 264, 16707, 12, 8082, 1578, 591, 18, 461, 16999, 8708,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2850, 84, 2613, 12, 3782, 67, 529, 16, 8800, 273, 599, 4672, 309, 8800, 353, 599, 30, 8800, 273, 5657, 1578, 2425, 18, 967, 7703, 264, 16707, 12, 8082, 1578, 591, 18, 461, 16999, 8708,...
code = co.co_code n = len(code) i = 0 lastname = None while i < n: c = code[i] i = i+1 op = ord(c) if op >= dis.HAVE_ARGUMENT: oparg = ord(code[i]) + ord(code[i+1])*256 i = i+2 if op == IMPORT_NAME: name = lastname = co.co_names[oparg] if not self.badmodules.has_key(lastname): try: self.import_hook(name, m) except Impo...
self.scan_code(co, m)
def load_module(self, fqname, fp, pathname, (suffix, mode, type)): self.msgin(2, "load_module", fqname, fp and "fp", pathname) if type == imp.PKG_DIRECTORY: m = self.load_package(fqname, pathname) self.msgout(2, "load_module ->", m) return m if type == imp.PY_SOURCE: co = compile(fp.read(), pathname, 'exec') elif type ...
3c51cf2b6995995fc02771eceb41683fb194c932 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3c51cf2b6995995fc02771eceb41683fb194c932/modulefinder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 2978, 12, 2890, 16, 8508, 529, 16, 4253, 16, 9806, 16, 261, 8477, 16, 1965, 16, 618, 3719, 30, 365, 18, 959, 1912, 12, 22, 16, 315, 945, 67, 2978, 3113, 8508, 529, 16, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 2978, 12, 2890, 16, 8508, 529, 16, 4253, 16, 9806, 16, 261, 8477, 16, 1965, 16, 618, 3719, 30, 365, 18, 959, 1912, 12, 22, 16, 315, 945, 67, 2978, 3113, 8508, 529, 16, 42...
Sub(pick, "phase_compu").text
Sub(pick, "phase_compu").text = phase_compu
def hyp20002XML(self): """ Returns output of hypo2000 as xml file """ xml = Element("event") Sub(Sub(xml, "event_id"), "value").text = self.xmlEventID Sub(Sub(xml, "event_type"), "value").text = "manual" # we save P picks on Z-component and S picks on N-component # XXX standard values for unset keys!!!???!!!??? epidi...
cdb296935764c4f637eb405e18bf7388bd815e22 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/cdb296935764c4f637eb405e18bf7388bd815e22/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16117, 6976, 3103, 4201, 12, 2890, 4672, 3536, 2860, 876, 434, 16117, 83, 17172, 487, 2025, 585, 3536, 2025, 273, 225, 3010, 2932, 2575, 7923, 2592, 12, 1676, 12, 2902, 16, 315, 2575, 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, 16117, 6976, 3103, 4201, 12, 2890, 4672, 3536, 2860, 876, 434, 16117, 83, 17172, 487, 2025, 585, 3536, 2025, 273, 225, 3010, 2932, 2575, 7923, 2592, 12, 1676, 12, 2902, 16, 315, 2575, 67...
t = self.get_time() - self.t if self.dispatch[event](frame,t): self.t = self.get_time() else: self.t = self.get_time()-t
get_time = self.get_time t = get_time() - self.t if self.dispatch[event](self, frame,t): self.t = get_time() else: self.t = get_time() - t
def trace_dispatch_l(self, frame, event, arg): t = self.get_time() - self.t
7c76e9ea47c5473c749a68d4ceef4f076daffc4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7c76e9ea47c5473c749a68d4ceef4f076daffc4a/profile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2606, 67, 10739, 67, 80, 12, 2890, 16, 2623, 16, 871, 16, 1501, 4672, 268, 273, 365, 18, 588, 67, 957, 1435, 300, 365, 18, 88, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2606, 67, 10739, 67, 80, 12, 2890, 16, 2623, 16, 871, 16, 1501, 4672, 268, 273, 365, 18, 588, 67, 957, 1435, 300, 365, 18, 88, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100...
template_values['status'] = status
template_values['status'] = (StatusToDict(s, json=False) for s in status)
def get(self): """Sets the information to be displayed on the main page.""" (validated, is_admin) = self.ValidateUser() if not validated: return
41766e075287a8dde04af23032934c6ad3bd0a49 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/476/41766e075287a8dde04af23032934c6ad3bd0a49/status.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 4672, 3536, 2785, 326, 1779, 358, 506, 10453, 603, 326, 2774, 1363, 12123, 261, 877, 690, 16, 353, 67, 3666, 13, 273, 365, 18, 4270, 1299, 1435, 309, 486, 10266, 30, 327...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 4672, 3536, 2785, 326, 1779, 358, 506, 10453, 603, 326, 2774, 1363, 12123, 261, 877, 690, 16, 353, 67, 3666, 13, 273, 365, 18, 4270, 1299, 1435, 309, 486, 10266, 30, 327...
self.container.setCWD("/mnt")
self.container.setCWD(resolveFilename(SCOPE_MEDIA)+"usb/")
def ackedDestination(self): print "[ackedDestination]", self.branch, self.target_dir self.container.setCWD("/mnt") if self.target_dir[:8] == "/autofs/": self.target_dir = "/dev/" + self.target_dir[8:-1]
f67e69d69ac6b6f82031c19406f0fcd2648a10f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/f67e69d69ac6b6f82031c19406f0fcd2648a10f2/downloader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8479, 329, 5683, 12, 2890, 4672, 1172, 5158, 484, 329, 5683, 65, 3113, 365, 18, 7500, 16, 365, 18, 3299, 67, 1214, 365, 18, 3782, 18, 542, 12844, 40, 12, 10828, 5359, 12, 19444, 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, 8479, 329, 5683, 12, 2890, 4672, 1172, 5158, 484, 329, 5683, 65, 3113, 365, 18, 7500, 16, 365, 18, 3299, 67, 1214, 365, 18, 3782, 18, 542, 12844, 40, 12, 10828, 5359, 12, 19444, 67, ...
del deaddb[deadslicexid]
del deaddb[deadslice.name]
def sync(nmdbcopy): """ Syncs tc, db, and bwmon.dat. Then, starts new slices, kills old ones, and updates byte accounts for each running slice. Sends emails and caps those that went over their limit. """ # Defaults global datafile, \ period, \ default_MaxRate, \ default_Maxi2Rate, \ default_MinRate, \ default_MaxKByt...
e17ccfdb44360782bd91e02b3b1df8cafb675f28 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6995/e17ccfdb44360782bd91e02b3b1df8cafb675f28/bwmon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3792, 12, 82, 27574, 3530, 4672, 3536, 9721, 87, 1715, 16, 1319, 16, 471, 12986, 2586, 18, 3404, 18, 225, 9697, 16, 2542, 394, 12390, 16, 8673, 87, 1592, 5945, 16, 471, 4533, 1160, 948...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3792, 12, 82, 27574, 3530, 4672, 3536, 9721, 87, 1715, 16, 1319, 16, 471, 12986, 2586, 18, 3404, 18, 225, 9697, 16, 2542, 394, 12390, 16, 8673, 87, 1592, 5945, 16, 471, 4533, 1160, 948...
self.get_moderatorUserObjects, preferred_only=False)
self.get_moderatorUserObjects, preferred_only=False, process_settings=False)
def getValueFor(self, key): """ getting the maillist and moderatedlist is a special case, working in with the XWFT group framework. """ da = self.zsqlalchemy assert da memberQuery = MemberQuery(self, da)
deaf6a0a769339813fa209bcd66dd42cdd7a4293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6274/deaf6a0a769339813fa209bcd66dd42cdd7a4293/XWFMailingList.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2366, 1290, 12, 2890, 16, 498, 4672, 3536, 8742, 326, 4791, 1098, 471, 681, 19007, 1098, 353, 279, 4582, 648, 16, 5960, 316, 598, 326, 1139, 59, 4464, 1041, 8257, 18, 225, 3536, 5248, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2366, 1290, 12, 2890, 16, 498, 4672, 3536, 8742, 326, 4791, 1098, 471, 681, 19007, 1098, 353, 279, 4582, 648, 16, 5960, 316, 598, 326, 1139, 59, 4464, 1041, 8257, 18, 225, 3536, 5248, ...
>>> wikipedia.output(exampleUser.getUserPage().get()) >>> wikipedia.output(exampleUser.getUserPage('Lipsum').get()) >>> wikipedia.output(exampleUser.getUserTalkPage().get())
>>> pywikibot.output(exampleUser.getUserPage().get()) >>> pywikibot.output(exampleUser.getUserPage('Lipsum').get()) >>> pywikibot.output(exampleUser.getUserTalkPage().get())
def getData(self): users = {} params = { 'action': 'query', 'list': 'users', 'usprop': ['blockinfo', 'groups', 'editcount', 'registration', 'emailable', 'gender'], 'ususers': u'|'.join([n.name() for n in self.users]), } data = query.GetData(params, self.site) for user in data['query']['users']: if u'invalid' in user: r...
0553617ec4a3c10f8ce44d225a0ca714f640d691 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/0553617ec4a3c10f8ce44d225a0ca714f640d691/userlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4303, 12, 2890, 4672, 3677, 273, 2618, 859, 273, 288, 296, 1128, 4278, 296, 2271, 2187, 296, 1098, 4278, 296, 5577, 2187, 296, 407, 5986, 4278, 10228, 2629, 1376, 2187, 296, 4650, 2187, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4303, 12, 2890, 4672, 3677, 273, 2618, 859, 273, 288, 296, 1128, 4278, 296, 2271, 2187, 296, 1098, 4278, 296, 5577, 2187, 296, 407, 5986, 4278, 10228, 2629, 1376, 2187, 296, 4650, 2187, ...
return get_pipe(command)
return call(command)
def run(command): # Format command if type(command) is str: command_str = command command = command.split() else: command_str = ' '.join(command) # Print print command_str # Call return get_pipe(command)
87cecf36c37b598e03bd4e1086e84602821df4d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12681/87cecf36c37b598e03bd4e1086e84602821df4d0/ipkg-docs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 3076, 4672, 468, 4077, 1296, 309, 618, 12, 3076, 13, 353, 609, 30, 1296, 67, 701, 273, 1296, 1296, 273, 1296, 18, 4939, 1435, 469, 30, 1296, 67, 701, 273, 296, 2418, 5701, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 3076, 4672, 468, 4077, 1296, 309, 618, 12, 3076, 13, 353, 609, 30, 1296, 67, 701, 273, 1296, 1296, 273, 1296, 18, 4939, 1435, 469, 30, 1296, 67, 701, 273, 296, 2418, 5701, ...
self.modulemap[prev] = ent.copyfrom_path
def parselogentry(orig_paths, revnum, author, date, message): self.ui.debug("parsing revision %d (%d changes)\n" % (revnum, len(orig_paths)))
c6a1068cdcfcb9641c61c95fff848144537955b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/c6a1068cdcfcb9641c61c95fff848144537955b7/subversion.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 779, 1786, 717, 4099, 12, 4949, 67, 4481, 16, 5588, 2107, 16, 2869, 16, 1509, 16, 883, 4672, 365, 18, 4881, 18, 4148, 2932, 24979, 6350, 738, 72, 6142, 72, 3478, 5153, 82, 6, 738, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 779, 1786, 717, 4099, 12, 4949, 67, 4481, 16, 5588, 2107, 16, 2869, 16, 1509, 16, 883, 4672, 365, 18, 4881, 18, 4148, 2932, 24979, 6350, 738, 72, 6142, 72, 3478, 5153, 82, 6, 738, 26...
return True
else: self.sudo_square[square[0]][square[1]].set( fill_color_rgba = self.normal_square_color, ) elif event.type == gtk.gdk.BUTTON_PRESS: if(self.cursqre): self.sudo_square[self.cursqre[0]][self.cursqre[1]].set( fill_color_rgba = self.normal_square_color, ) self.cursqre = square self.sudo_square[square[0]][square[1]].se...
def square_item_event(self, widget, event, square): if (event and event.type == gtk.gdk.BUTTON_PRESS): if event.button == 1: # Check it's a user editable square oldcolor = self.sudo_number[square[0]][square[1]].get_property('fill_color_rgba') if oldcolor == self.fixed_number_color: return False
15224ee039b09bc3adde951be03dd817fa58b82f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/15224ee039b09bc3adde951be03dd817fa58b82f/sudoku.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8576, 67, 1726, 67, 2575, 12, 2890, 16, 3604, 16, 871, 16, 8576, 4672, 225, 309, 261, 2575, 471, 871, 18, 723, 422, 22718, 18, 75, 2883, 18, 20068, 67, 22526, 4672, 309, 871, 18, 539...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8576, 67, 1726, 67, 2575, 12, 2890, 16, 3604, 16, 871, 16, 8576, 4672, 225, 309, 261, 2575, 471, 871, 18, 723, 422, 22718, 18, 75, 2883, 18, 20068, 67, 22526, 4672, 309, 871, 18, 539...
print filename
def _save_cb(self, button): filename = self._embed.props.document_metadata.filename print filename if not filename: filename = self._embed.get_title() + '.html'
25b287374ed69e2f349c3ed773d2bca99fe793ec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6905/25b287374ed69e2f349c3ed773d2bca99fe793ec/webtoolbar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5688, 67, 7358, 12, 2890, 16, 3568, 4672, 1544, 273, 365, 6315, 8483, 18, 9693, 18, 5457, 67, 4165, 18, 3459, 309, 486, 1544, 30, 1544, 273, 365, 6315, 8483, 18, 588, 67, 2649, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5688, 67, 7358, 12, 2890, 16, 3568, 4672, 1544, 273, 365, 6315, 8483, 18, 9693, 18, 5457, 67, 4165, 18, 3459, 309, 486, 1544, 30, 1544, 273, 365, 6315, 8483, 18, 588, 67, 2649, ...
18 + 18*19 + 18*19^2 + 18*19^3 + 18*19^4 + O(19^Infinity)
18 + 18*19 + 18*19^2 + 18*19^3 + 18*19^4 + O(19^5)
def lift(self): """ Return rational number with denominator only divisible by $p$ that lifts this $p$-adic number, to the given precision. EXAMPLES: sage: a = 4596/7^2 + O(7^4); a 4*7^-2 + 5*7^-1 + 2 + 6*7 + 7^2 + O(7^4) sage: a.lift() 4596/49
da5f5081a22672169933e312444f57d2267e1a14 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/da5f5081a22672169933e312444f57d2267e1a14/padic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28080, 12, 2890, 4672, 3536, 2000, 436, 8371, 1300, 598, 15030, 1338, 3739, 18932, 635, 271, 84, 8, 716, 28080, 87, 333, 271, 84, 8, 17, 20333, 1300, 16, 358, 326, 864, 6039, 18, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28080, 12, 2890, 4672, 3536, 2000, 436, 8371, 1300, 598, 15030, 1338, 3739, 18932, 635, 271, 84, 8, 716, 28080, 87, 333, 271, 84, 8, 17, 20333, 1300, 16, 358, 326, 864, 6039, 18, 225, ...
for field in self.__singleValueFields:
for field in self.__singleValueDefFields:
def findTaskQueue( self, tqDefDict, skipDefinitionCheck= False, connObj = False ): """ Find a task queue that has exactly the same requirements """ if not skipDefinitionCheck: retVal = self._checkTaskQueueDefinition( tqDefDict ) if not retVal[ 'OK' ]: return retVal sqlCmd = "SELECT `tq_TaskQueues`.TQId FROM `tq_TaskQue...
6df3e1dfd550d5095830cb4cb71d2151d3513a5a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/6df3e1dfd550d5095830cb4cb71d2151d3513a5a/TaskQueueDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 2174, 3183, 12, 365, 16, 20061, 3262, 5014, 16, 2488, 1852, 1564, 33, 1083, 16, 1487, 2675, 273, 1083, 262, 30, 3536, 4163, 279, 1562, 2389, 716, 711, 8950, 326, 1967, 8433, 3536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 2174, 3183, 12, 365, 16, 20061, 3262, 5014, 16, 2488, 1852, 1564, 33, 1083, 16, 1487, 2675, 273, 1083, 262, 30, 3536, 4163, 279, 1562, 2389, 716, 711, 8950, 326, 1967, 8433, 3536, ...
startaddr, length, slowpathaddr = self.cpu.insert_stack_check() if slowpathaddr == 0:
if self.stack_check_slowpath == 0:
def _call_header_with_stack_check(self): startaddr, length, slowpathaddr = self.cpu.insert_stack_check() if slowpathaddr == 0: pass # no stack check (e.g. not translated) else: self.mc.MOV(eax, esp) # MOV eax, current self.mc.SUB(eax, heap(startaddr)) # SUB eax, [startaddr...
6bc9ade812f014c6aebce1452a76e194d9852757 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/6bc9ade812f014c6aebce1452a76e194d9852757/assembler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1991, 67, 3374, 67, 1918, 67, 3772, 67, 1893, 12, 2890, 4672, 309, 365, 18, 3772, 67, 1893, 67, 87, 821, 803, 422, 374, 30, 1342, 7734, 468, 1158, 2110, 866, 261, 73, 18, 75, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1991, 67, 3374, 67, 1918, 67, 3772, 67, 1893, 12, 2890, 4672, 309, 365, 18, 3772, 67, 1893, 67, 87, 821, 803, 422, 374, 30, 1342, 7734, 468, 1158, 2110, 866, 261, 73, 18, 75, ...
if not no_process:
if load: print "beginning load phase"
def handle_noargs(self, **options):
0a0fa6735a34622421f1f704f96dc354387e7dad /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1866/0a0fa6735a34622421f1f704f96dc354387e7dad/syncdata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 2135, 1968, 12, 2890, 16, 2826, 2116, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 2135, 1968, 12, 2890, 16, 2826, 2116, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
params = [dsk.ToDict() for dsk in disks] c = Client("blockdev_getmirrorstatus", params) self._ConnectNode(c, node) return c.GetResults().get(node, False)
return self._SingleNodeCall(node, "blockdev_getmirrorstatus", [dsk.ToDict() for dsk in disks])
def call_blockdev_getmirrorstatus(self, node, disks): """Request status of a (mirroring) device.
9a525d83b2a75f44cc1171e7d715b5bee7a76756 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/9a525d83b2a75f44cc1171e7d715b5bee7a76756/rpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 67, 2629, 5206, 67, 588, 27197, 2327, 12, 2890, 16, 756, 16, 17164, 4672, 3536, 691, 1267, 434, 279, 261, 81, 7439, 6053, 13, 2346, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 745, 67, 2629, 5206, 67, 588, 27197, 2327, 12, 2890, 16, 756, 16, 17164, 4672, 3536, 691, 1267, 434, 279, 261, 81, 7439, 6053, 13, 2346, 18, 2, -100, -100, -100, -100, -100, -100, -100...
def debugging_server(evt): serv = smtpd.DebuggingServer(("", PORT), ('nowhere', -1))
def debugging_server(serv_evt, client_evt): serv = smtpd.DebuggingServer(("", 0), ('nowhere', -1)) global PORT PORT = serv.getsockname()[1]
def debugging_server(evt): serv = smtpd.DebuggingServer(("", PORT), ('nowhere', -1)) try: asyncore.loop(timeout=.01, count=300) except socket.timeout: pass finally: # allow some time for the client to read the result time.sleep(0.5) asyncore.close_all() evt.set()
5ad9f97752a055599e26d35e6a67a23c259b1c8d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/5ad9f97752a055599e26d35e6a67a23c259b1c8d/test_smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10450, 67, 3567, 12, 23039, 67, 73, 11734, 16, 1004, 67, 73, 11734, 4672, 13515, 273, 17660, 72, 18, 2829, 1998, 2081, 12, 2932, 3113, 374, 3631, 7707, 3338, 14852, 2187, 300, 21, 3719, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10450, 67, 3567, 12, 23039, 67, 73, 11734, 16, 1004, 67, 73, 11734, 4672, 13515, 273, 17660, 72, 18, 2829, 1998, 2081, 12, 2932, 3113, 374, 3631, 7707, 3338, 14852, 2187, 300, 21, 3719, ...
return col.DecimalCol, {}
return col.BoolCol, {}
def guessClass(self, t): t = t.upper() if t.find('INT') >= 0: return col.IntCol, {} elif t.find('TEXT') >= 0 or t.find('CHAR') >= 0 or t.find('CLOB') >= 0: return col.StringCol, {'length': 2**32-1} elif t.find('BLOB') >= 0: return col.BLOBCol, {"length": 2**32-1} elif t.find('REAL') >= 0 or t.find('FLOAT') >= 0: return...
f9dcb6579db592c08107e3d848e883355983e2f2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6718/f9dcb6579db592c08107e3d848e883355983e2f2/sqliteconnection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7274, 797, 12, 2890, 16, 268, 4672, 268, 273, 268, 18, 5797, 1435, 309, 268, 18, 4720, 2668, 3217, 6134, 1545, 374, 30, 327, 645, 18, 1702, 914, 16, 2618, 1327, 268, 18, 4720, 2668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7274, 797, 12, 2890, 16, 268, 4672, 268, 273, 268, 18, 5797, 1435, 309, 268, 18, 4720, 2668, 3217, 6134, 1545, 374, 30, 327, 645, 18, 1702, 914, 16, 2618, 1327, 268, 18, 4720, 2668, ...
explicitely. DEFAULT can be the relative path to a .ico file
explicitly. DEFAULT can be the relative path to a .ico file
def wm_iconbitmap(self, bitmap=None, default=None): """Set bitmap for the iconified widget to BITMAP. Return the bitmap if None is given.
05ced41d9041d43b40f0d189f57d9020c4788ec5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/05ced41d9041d43b40f0d189f57d9020c4788ec5/Tkinter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18200, 67, 3950, 3682, 1458, 12, 2890, 16, 9389, 33, 7036, 16, 805, 33, 7036, 4672, 3536, 694, 9389, 364, 326, 4126, 939, 3604, 358, 20469, 8352, 18, 2000, 326, 9389, 309, 599, 353, 86...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18200, 67, 3950, 3682, 1458, 12, 2890, 16, 9389, 33, 7036, 16, 805, 33, 7036, 4672, 3536, 694, 9389, 364, 326, 4126, 939, 3604, 358, 20469, 8352, 18, 2000, 326, 9389, 309, 599, 353, 86...
oldrule['end'] = year - 1 completed[transitionTo].append(oldrule) working[transitionTo] = rule
plusMatch = rule['plus'] == oldrule['plus'] minusMatch = rule['minus'] == oldrule['minus'] truth = plusMatch or minusMatch for key in 'month', 'weekday', 'hour', 'offset': truth = truth and rule[key] == oldrule[key] if truth: if not plusMatch: oldrule['plus'] = None if not minusMatch: oldrule['minus'] = None else: ...
def getTransitionOccurrence(year, month, dayofweek, n, hour): weekday = dateutil.rrule.weekday(dayofweek, n) if hour is None: # all year offset, with no rule return datetime.datetime(year, 1, 1) rule = dateutil.rrule.rrule(dateutil.rrule.YEARLY, bymonth = month, byweekday = weekday, dtstart = datetime.datetime(year, 1,...
dc6fa0e6885cfa412c6424b32c5b31ed966aee92 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9169/dc6fa0e6885cfa412c6424b32c5b31ed966aee92/icalendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 8850, 24267, 12, 6874, 16, 3138, 16, 2548, 792, 10741, 16, 290, 16, 6126, 4672, 7560, 273, 1509, 1367, 18, 523, 725, 18, 10741, 2881, 12, 2881, 792, 10741, 16, 290, 13, 309, 6126,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8850, 24267, 12, 6874, 16, 3138, 16, 2548, 792, 10741, 16, 290, 16, 6126, 4672, 7560, 273, 1509, 1367, 18, 523, 725, 18, 10741, 2881, 12, 2881, 792, 10741, 16, 290, 13, 309, 6126,...
for j in range(3):
for j in xrange(3):
def _test0(self): "This makes one long multi-page paragraph." # Build story. story = [] a = story.append styleSheet = getSampleStyleSheet() h1 = styleSheet['Heading1'] h1.pageBreakBefore = 1 h1.keepWithNext = 1 h2 = styleSheet['Heading2'] h2.frameBreakBefore = 1 h2.keepWithNext = 1 h3 = styleSheet['Heading3'] h3.b...
21c1a3b419adb8df273febf1b9e4e11d4de6f845 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/21c1a3b419adb8df273febf1b9e4e11d4de6f845/test_platypus_breaking.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3813, 20, 12, 2890, 4672, 315, 2503, 7297, 1245, 1525, 3309, 17, 2433, 10190, 1199, 225, 468, 3998, 17285, 18, 17285, 273, 5378, 279, 273, 17285, 18, 6923, 282, 2154, 8229, 273, 260...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3813, 20, 12, 2890, 4672, 315, 2503, 7297, 1245, 1525, 3309, 17, 2433, 10190, 1199, 225, 468, 3998, 17285, 18, 17285, 273, 5378, 279, 273, 17285, 18, 6923, 282, 2154, 8229, 273, 260...
print 'yview', `itop`
def fixfocus(near, itop): n = scanbox.size() for i in range(n): line = scanbox.get(`i`) if scanparser.match(line) >= 0: num = string.atoi(scanparser.group(1)) if num >= near: break else: i = 'end' scanbox.select_from(i) print 'yview', `itop` scanbox.yview(itop)
78b0c82535af09fde940d1b040f9da72c20f7c70 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/78b0c82535af09fde940d1b040f9da72c20f7c70/mbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 13923, 12, 27862, 16, 518, 556, 4672, 290, 273, 4135, 2147, 18, 1467, 1435, 364, 277, 316, 1048, 12, 82, 4672, 980, 273, 4135, 2147, 18, 588, 12, 68, 77, 24065, 309, 4135, 4288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 13923, 12, 27862, 16, 518, 556, 4672, 290, 273, 4135, 2147, 18, 1467, 1435, 364, 277, 316, 1048, 12, 82, 4672, 980, 273, 4135, 2147, 18, 588, 12, 68, 77, 24065, 309, 4135, 4288, ...
if type(r) == type([]) and r[2].has_key('groups_id'): groups = r[2]['groups_id'] if len(groups) > 0: group_ids = ','.join([ str(x) for x in r[2]['groups_id']]) cr.execute("select count(*) from res_groups_users_rel where gid in (%s) and uid='%s'" % (group_ids, uid)) gr_ids = cr.fetchall() print gr_ids if not gr_ids[0][0...
if r[2]['type'] == 'ir.actions.report.xml' or r[2]['type'] == 'ir.actions.report.xml': if r[2].has_key('groups_id'): groups = r[2]['groups_id'] if len(groups) > 0: group_ids = ','.join([ str(x) for x in r[2]['groups_id']]) cr.execute("select count(*) from res_groups_users_rel where gid in (%s) and uid='%s'" % (group_id...
def clean(x): for key in ('report_sxw_content', 'report_rml_content', 'report_sxw', 'report_rml', 'report_sxw_content_data', 'report_rml_content_data'): if key in x: del x[key] return x
6e7a625d276e99d0718f4e49ad899ae2e878c5db /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/6e7a625d276e99d0718f4e49ad899ae2e878c5db/ir_values.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 12, 92, 4672, 364, 498, 316, 7707, 6006, 67, 30319, 91, 67, 1745, 2187, 296, 6006, 67, 86, 781, 67, 1745, 2187, 296, 6006, 67, 30319, 91, 2187, 296, 6006, 67, 86, 781, 2187, 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, 2721, 12, 92, 4672, 364, 498, 316, 7707, 6006, 67, 30319, 91, 67, 1745, 2187, 296, 6006, 67, 86, 781, 67, 1745, 2187, 296, 6006, 67, 30319, 91, 2187, 296, 6006, 67, 86, 781, 2187, 29...
Bcfg2.Logger.setup_logging(component_cls.implementation, True, True)
Bcfg2.Logger.setup_logging(component_cls.implementation, True, True, to_file=to_file)
def run_component(component_cls, location, daemon, pidfile_name, argv=None, register=True, state_name=False, cls_kwargs={}, extra_getopt='', time_out=10, protocol='xmlrpc/ssl', certfile=None, keyfile=None, ca=None): # default settings level = logging.INFO logging.getLogger().setLevel(level) Bcfg2.Logger.setup_logging...
d1c1b507251af414cd17c84df60131e80ce80439 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11867/d1c1b507251af414cd17c84df60131e80ce80439/Component.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 4652, 12, 4652, 67, 6429, 16, 2117, 16, 8131, 16, 27656, 67, 529, 16, 5261, 33, 7036, 16, 1744, 33, 5510, 16, 919, 67, 529, 33, 8381, 16, 2028, 67, 4333, 28793, 2870, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 4652, 12, 4652, 67, 6429, 16, 2117, 16, 8131, 16, 27656, 67, 529, 16, 5261, 33, 7036, 16, 1744, 33, 5510, 16, 919, 67, 529, 33, 8381, 16, 2028, 67, 4333, 28793, 2870, 67, ...
self.out.append(self.context.pop())
self.out.append('\\end{figure}\n')
def depart_figure(self, node): self.out.append(self.context.pop())
4d433b8e438a145ac037d2160decc5abe210ca46 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5620/4d433b8e438a145ac037d2160decc5abe210ca46/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 19675, 12, 2890, 16, 756, 4672, 365, 18, 659, 18, 6923, 12, 2890, 18, 2472, 18, 5120, 10756, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 19675, 12, 2890, 16, 756, 4672, 365, 18, 659, 18, 6923, 12, 2890, 18, 2472, 18, 5120, 10756, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if installSourceFile:
if installTargetFile:
def distribute(buildenv): _createVersionFile(buildenv) buildVersionShort = \ hardhatutil.RemovePunctuation(buildenv['buildVersion']) # When the build version string is based on one of our CVS tags # (which usually begin with "CHANDLER_") let's remove the "CHANDLER_" # prefix from the string so it doesn't end up in t...
e535f1488d2bb35cc37fef5581a188eab259cf83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/e535f1488d2bb35cc37fef5581a188eab259cf83/__hardhat__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25722, 12, 3510, 3074, 4672, 225, 389, 2640, 1444, 812, 12, 3510, 3074, 13, 225, 1361, 1444, 4897, 273, 521, 7877, 11304, 1367, 18, 3288, 52, 15726, 12, 3510, 3074, 3292, 3510, 1444, 194...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25722, 12, 3510, 3074, 4672, 225, 389, 2640, 1444, 812, 12, 3510, 3074, 13, 225, 1361, 1444, 4897, 273, 521, 7877, 11304, 1367, 18, 3288, 52, 15726, 12, 3510, 3074, 3292, 3510, 1444, 194...
(mod, fun, args, erl_term.ErlAtom("user"))))
(erl_term.ErlAtom("call"), mod, fun, args, erl_term.ErlAtom("user"))))
def SendRPC(self, remote_node, mod, fun, args, cb): if type(mod) == types.StringType: mod = erl_term.ErlAtom(mod) if type(fun) == types.StringType: fun = erl_term.ErlAtom(fun) self.Send(("rex", remote_node), (self.Self(), (mod, fun, args, erl_term.ErlAtom("user"))))
d9cb6e1f069464e63bbd2fb114d7dc4d0eca10a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7565/d9cb6e1f069464e63bbd2fb114d7dc4d0eca10a8/erl_node.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2479, 8087, 12, 2890, 16, 2632, 67, 2159, 16, 681, 16, 9831, 16, 833, 16, 2875, 4672, 309, 618, 12, 1711, 13, 422, 1953, 18, 780, 559, 30, 681, 273, 6445, 80, 67, 6408, 18, 41, 132...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2479, 8087, 12, 2890, 16, 2632, 67, 2159, 16, 681, 16, 9831, 16, 833, 16, 2875, 4672, 309, 618, 12, 1711, 13, 422, 1953, 18, 780, 559, 30, 681, 273, 6445, 80, 67, 6408, 18, 41, 132...
project.dep_vars = ['MSVC_PROJECT_SOURCES','MSVC_PROJECT_FLAGS']
project.dep_vars = ['MSVC_PROJECT_SOURCES', 'MSVC_PROJECT_FLAGS']
def create_project(t): toolName = t.features[0] if not solutions.has_key(toolName): appname = getattr(Utils.g_module, 'APPNAME', 'noname') outname = appname+'.'+toolName+'.sln' solution = GenerateSolution(env=t.env) solution.version = toolName solution.versionName, solution.versionNumber = projects[toolName][0] solutio...
0172e62e39082af9e7d53f01681b1ec8e7917291 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7302/0172e62e39082af9e7d53f01681b1ec8e7917291/visualstudio.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 4406, 12, 88, 4672, 5226, 461, 273, 268, 18, 7139, 63, 20, 65, 309, 486, 22567, 18, 5332, 67, 856, 12, 6738, 461, 4672, 22323, 273, 3869, 12, 1989, 18, 75, 67, 2978, 16, 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, 752, 67, 4406, 12, 88, 4672, 5226, 461, 273, 268, 18, 7139, 63, 20, 65, 309, 486, 22567, 18, 5332, 67, 856, 12, 6738, 461, 4672, 22323, 273, 3869, 12, 1989, 18, 75, 67, 2978, 16, 2...
class capture_server(threading.Thread): def run(self): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) global PORT PORT = test_support.bind_port(sock, HOST, PORT) sock.listen(1) conn, client = sock.accept() self.captured = "" while 1:
def capture_server(evt, buf): serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM) serv.settimeout(3) serv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) serv.bind(("", PORT)) serv.listen(5) try: conn, addr = serv.accept() except socket.timeout: pass else: n = 200 while n > 0:
def handle_error(self): self.error_handled = True
78e19616f3f30adfe8845aa80f03c4b822626f13 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/78e19616f3f30adfe8845aa80f03c4b822626f13/test_asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 1636, 12, 2890, 4672, 365, 18, 1636, 67, 14387, 273, 1053, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 1636, 12, 2890, 4672, 365, 18, 1636, 67, 14387, 273, 1053, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
'external_payment_codes': fields.char('External Payemnt Codes', size=256),
'external_payment_codes': fields.char('External Payment Codes', size=256, help="Enter the external payment codes, comma separated. They will be used to select the payment journal."),
def generate_payment_with_journal(self, cr, uid, journal_id, partner_id, amount, payment_ref, entry_name, date, should_validate, ctx): statement_vals = { 'name': 'ST_' + entry_name, 'journal_id': journal_id, 'balance_start': 0, 'balance_end_real': amount, 'date' : date } statement_id = self.pool.get('account.bank.state...
46953bd553c60c787f4d24891114a5a169989ff8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/46953bd553c60c787f4d24891114a5a169989ff8/sale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 9261, 67, 1918, 67, 22644, 12, 2890, 16, 4422, 16, 4555, 16, 13001, 67, 350, 16, 19170, 67, 350, 16, 3844, 16, 5184, 67, 1734, 16, 1241, 67, 529, 16, 1509, 16, 1410, 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, 2103, 67, 9261, 67, 1918, 67, 22644, 12, 2890, 16, 4422, 16, 4555, 16, 13001, 67, 350, 16, 19170, 67, 350, 16, 3844, 16, 5184, 67, 1734, 16, 1241, 67, 529, 16, 1509, 16, 1410, 67, ...
def __imull__(self, n): self.data += n
def __imul__(self, n): self.data *= n
def __imull__(self, n): self.data += n return self
ab22f026a902dffbf1454103964093ab99457e9a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ab22f026a902dffbf1454103964093ab99457e9a/UserString.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 381, 332, 972, 12, 2890, 16, 290, 4672, 365, 18, 892, 6413, 290, 327, 365, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 381, 332, 972, 12, 2890, 16, 290, 4672, 365, 18, 892, 6413, 290, 327, 365, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
global recVal, mode for irec, rec in enumerate(userrec): if (mode == 'e'): timeflag = 1 else: timeflag = (rec[1] == time) for tv in typesandvalues: (type,value) = tv if ((rec[0]=='nr') and timeflag and (node == rec[2]) and (dof == rec[3]) and (type == rec[4])): recVal[irec]=value;
global recVal, mode for irec, rec in enumerate(userrec): if (mode == 'e'): timeflag = 1 else: timeflag = (rec[1] == time) for tv in typesandvalues: (type,value) = tv if ((rec[0]=='nr') and timeflag and (node == rec[2]) and (dof == rec[3]) and (type == rec[4])): recVal[irec]=value;
def check_node_rec (time, node, dof, typesandvalues): global recVal, mode for irec, rec in enumerate(userrec): if (mode == 'e'): timeflag = 1 else: timeflag = (rec[1] == time) for tv in typesandvalues: # loop over list of dof values and their types (type,value) = tv if ((rec[0]=='nr') and timeflag and (node == rec[2]) ...
aa37b2bdfae39b7dbc77c6303652ba62381c3298 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1573/aa37b2bdfae39b7dbc77c6303652ba62381c3298/extractor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2159, 67, 3927, 261, 957, 16, 756, 16, 741, 74, 16, 1953, 464, 2372, 4672, 2552, 1950, 3053, 16, 1965, 364, 277, 3927, 16, 1950, 316, 4241, 12, 1355, 3927, 4672, 309, 261, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2159, 67, 3927, 261, 957, 16, 756, 16, 741, 74, 16, 1953, 464, 2372, 4672, 2552, 1950, 3053, 16, 1965, 364, 277, 3927, 16, 1950, 316, 4241, 12, 1355, 3927, 4672, 309, 261, 3...
while bol > 0 and text[bol] not in WHITESPACE:
while bol > 0 and text[bol] not in whitespace:
def wrap(text, column=70, honor_leading_ws=1): """Wrap and fill the text to the specified column. Wrapping is always in effect, although if it is not possible to wrap a line (because some word is longer than `column' characters) the line is broken at the next available whitespace boundary. Paragraphs are also always ...
424c1dffc1e358a8b0da22b87d541a593907b7da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/424c1dffc1e358a8b0da22b87d541a593907b7da/Utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2193, 12, 955, 16, 1057, 33, 7301, 16, 24338, 280, 67, 27200, 67, 4749, 33, 21, 4672, 3536, 2964, 471, 3636, 326, 977, 358, 326, 1269, 1057, 18, 225, 4266, 1382, 353, 3712, 316, 5426, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2193, 12, 955, 16, 1057, 33, 7301, 16, 24338, 280, 67, 27200, 67, 4749, 33, 21, 4672, 3536, 2964, 471, 3636, 326, 977, 358, 326, 1269, 1057, 18, 225, 4266, 1382, 353, 3712, 316, 5426, ...
line = Template('$fname\t$ftime\t$foutcome\t$freached\t$fpl')
line = Template('$fname\t$ftime\t$foutcome\t$freached')
def go(b, c, t, m): if verbose: sys.stdout.write('Running: %s with config: %s... ' % (b, configname(c))) sys.stdout.flush()
5c16cf5c25c3740c4041c09086ba09a91bdf1fac /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7293/5c16cf5c25c3740c4041c09086ba09a91bdf1fac/run_tests_explicit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1960, 12, 70, 16, 276, 16, 268, 16, 312, 4672, 309, 3988, 30, 2589, 18, 10283, 18, 2626, 2668, 7051, 30, 738, 87, 598, 642, 30, 738, 87, 2777, 296, 738, 261, 70, 16, 642, 529, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1960, 12, 70, 16, 276, 16, 268, 16, 312, 4672, 309, 3988, 30, 2589, 18, 10283, 18, 2626, 2668, 7051, 30, 738, 87, 598, 642, 30, 738, 87, 2777, 296, 738, 261, 70, 16, 642, 529, 12, ...
'ab', 'ace', 'af', 'ak', 'als', 'am', 'ang', 'arc', 'arz', 'as', 'ast,', 'av', 'ay', 'az',
'ab', 'ace', 'af', 'ak', 'als', 'am', 'ang', 'arc', 'arz', 'as', 'ast', 'av', 'ay', 'az',
def __init__(self): family.Family.__init__(self) self.name = 'wikipedia'
39efb34bce54700b297fa41cd8d3d9588aaebdf4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/39efb34bce54700b297fa41cd8d3d9588aaebdf4/wikipedia_family.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 6755, 18, 9203, 16186, 2738, 972, 12, 2890, 13, 365, 18, 529, 273, 296, 11999, 13744, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 6755, 18, 9203, 16186, 2738, 972, 12, 2890, 13, 365, 18, 529, 273, 296, 11999, 13744, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
OPTS=['DIR:panda/src/downloadertools', 'ZLIB', 'OPENSSL', 'ADVAPI']
OPTS=['DIR:panda/src/downloadertools', 'ZLIB', 'OPENSSL', 'ADVAPI', 'WINSOCK2', 'WINSHELL']
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n"
04bc76c62754947fe75c1051d479bfc854275698 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/04bc76c62754947fe75c1051d479bfc854275698/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 293, 464, 842, 722, 67, 76, 1011, 1548, 82, 7, 318, 536, 225, 453, 4307, 37, 67, 3932, 1653, 39, 6365, 67, 5757, 64, 82, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 293, 464, 842, 722, 67, 76, 1011, 1548, 82, 7, 318, 536, 225, 453, 4307, 37, 67, 3932, 1653, 39, 6365, 67, 5757, 64, 82, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
super(RegistrationForm, self).__init__(*args, **kwargs)
super(CustomRegistrationForm, self).__init__(*args, **kwargs)
def __init__(self, *args, **kwargs): self.base_fields['privacy_permission'].widget = forms.RadioSelect( choices=self.base_fields['privacy_permission'].choices ) super(RegistrationForm, self).__init__(*args, **kwargs)
30c7a608c99045ee2438b4aa141aaee787ad67ff /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13701/30c7a608c99045ee2438b4aa141aaee787ad67ff/forms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 365, 18, 1969, 67, 2821, 3292, 14427, 67, 9827, 29489, 6587, 273, 10138, 18, 19984, 3391, 12, 7246, 33, 2890, 18, 1969, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 380, 1968, 16, 2826, 4333, 4672, 365, 18, 1969, 67, 2821, 3292, 14427, 67, 9827, 29489, 6587, 273, 10138, 18, 19984, 3391, 12, 7246, 33, 2890, 18, 1969, ...
diff = list(set(gratia) - set(oim) - set(excluded))
diff = list(set(gratia) - set(oimAll) - set(excluded))
def compareVOs(argv=None): # get the list of vos reported by gratia gratia = AccountingReports.GetReportingVOs(AccountingReports.gBegin, AccountingReports.gEnd) # get the list of vos reported by oim oim = AccountingReports.GetListOfRegisteredVO(voType = 'active') excluded = ['unknown','other'] # What is in gratia tha...
18f59209b1eb9c75171cf9afeb73163acd3a94ac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/637/18f59209b1eb9c75171cf9afeb73163acd3a94ac/compareVOs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3400, 58, 15112, 12, 19485, 33, 7036, 4672, 468, 336, 326, 666, 434, 331, 538, 14010, 635, 3821, 270, 1155, 3821, 270, 1155, 273, 6590, 310, 18631, 18, 967, 29285, 58, 15112, 12, 3032, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3400, 58, 15112, 12, 19485, 33, 7036, 4672, 468, 336, 326, 666, 434, 331, 538, 14010, 635, 3821, 270, 1155, 3821, 270, 1155, 273, 6590, 310, 18631, 18, 967, 29285, 58, 15112, 12, 3032, ...
('Chunk', 'chunk'),
('Chunk', 'model.chunk'),
def _debug_print_object_counts(self): #bruce 060327 for debugging memory leaks: report Atom & Bond refcounts, and objs that might refer to them from utilities.Log import _graymsg msglater = "" # things to print all in one line for clasname, modulename in ( ('Atom', 'chem'), ('Bond', 'bonds'), # ('Node', 'Utility'), # N...
20b7578da54a2cd5c6d256ede7dcc5639a045e23 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/20b7578da54a2cd5c6d256ede7dcc5639a045e23/DebugMenuMixin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4148, 67, 1188, 67, 1612, 67, 8008, 12, 2890, 4672, 468, 2848, 3965, 374, 4848, 1578, 27, 364, 10450, 3778, 20891, 87, 30, 2605, 7149, 473, 605, 1434, 1278, 8008, 16, 471, 12721, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4148, 67, 1188, 67, 1612, 67, 8008, 12, 2890, 4672, 468, 2848, 3965, 374, 4848, 1578, 27, 364, 10450, 3778, 20891, 87, 30, 2605, 7149, 473, 605, 1434, 1278, 8008, 16, 471, 12721, ...
os.environ[ 'X509_USER_PROXY' ] = pilotProxy
def submitJob(self,executableFile,jdl,proxy,localID): """ Method to submit job, should be overridden in sub-class. """ self.log.verbose('Setting up proxy for payload') result = self.writeProxyToFile(proxy) if not result['OK']: return result
1ba35e121d5087d2aa2d8b93b8de601860b4491f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/1ba35e121d5087d2aa2d8b93b8de601860b4491f/InProcessComputingElement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 2278, 12, 2890, 16, 17751, 812, 16, 78, 5761, 16, 5656, 16, 3729, 734, 4672, 3536, 2985, 358, 4879, 1719, 16, 1410, 506, 11000, 316, 720, 17, 1106, 18, 3536, 365, 18, 1330, 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, 4879, 2278, 12, 2890, 16, 17751, 812, 16, 78, 5761, 16, 5656, 16, 3729, 734, 4672, 3536, 2985, 358, 4879, 1719, 16, 1410, 506, 11000, 316, 720, 17, 1106, 18, 3536, 365, 18, 1330, 18, ...
self.attrRemoveButton.setIcon(QIcon(os.path.join(self.widgetDir, r"icons\Dlg_down3.png")))
self.attrRemoveButton.setIcon(QIcon(os.path.join(self.widgetDir, "icons/Dlg_down3.png")))
def createShowHiddenLists(self, placementTab, callback = None): maxWidth = 180 self.updateCallbackFunction = callback self.shownAttributes = [] self.selectedShown = [] self.hiddenAttributes = [] self.selectedHidden = []
20cd349af4eca1b2cf713f1f711552e61b55ec3b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/20cd349af4eca1b2cf713f1f711552e61b55ec3b/OWVisWidget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 5706, 9345, 7432, 12, 2890, 16, 12607, 5661, 16, 1348, 273, 599, 4672, 17681, 273, 9259, 365, 18, 2725, 2428, 2083, 273, 1348, 365, 18, 674, 995, 2498, 273, 5378, 365, 18, 8109, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 5706, 9345, 7432, 12, 2890, 16, 12607, 5661, 16, 1348, 273, 599, 4672, 17681, 273, 9259, 365, 18, 2725, 2428, 2083, 273, 1348, 365, 18, 674, 995, 2498, 273, 5378, 365, 18, 8109, 2...
if notans == 0: break if not ok: if verbose > 1: os.write(1, ".") nbrecv += 1 if conf.debug_match: debug.recv.append(r) if finished and remaintime: end = time.time() remaintime -= end-start if remaintime < 0: break except KeyboardInterrupt: if chainCC: raise KeyboardInterrupt try: ac = pickle.load(rdpipe) except EOFEr...
except KeyboardInterrupt: if chainCC: raise KeyboardInterrupt try: ac = pickle.load(rdpipe) except EOFError: warning("Child died unexpectedly. Packets may have not been sent") else: arp_cache.update(ac) os.waitpid(pid,0) remain = reduce(list.__add__, hsent.values()) tobesent = remain retry -= 1
def sndrcv(pks, pkt, timeout = 2, inter = 0, verbose=None, chainCC=0): if not isinstance(pkt, Gen): pkt = SetGen(pkt) if verbose is None: verbose = conf.verb debug.recv = [] debug.sent = [] nbrecv=0 ans = [] # do it here to fix random fields, so that parent and child have the same sent = [p for p in pkt] notans = len...
f06032fb63c499a5ce3262856cfd817adc7bd299 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/f06032fb63c499a5ce3262856cfd817adc7bd299/scapy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31158, 1310, 90, 12, 5465, 87, 16, 11536, 16, 2021, 273, 576, 16, 1554, 273, 374, 16, 3988, 33, 7036, 16, 2687, 6743, 33, 20, 4672, 225, 309, 486, 1549, 12, 5465, 88, 16, 10938, 4672...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31158, 1310, 90, 12, 5465, 87, 16, 11536, 16, 2021, 273, 576, 16, 1554, 273, 374, 16, 3988, 33, 7036, 16, 2687, 6743, 33, 20, 4672, 225, 309, 486, 1549, 12, 5465, 88, 16, 10938, 4672...
base = basename(self.packageRootFolder) + ".info" path = join(self.resourceFolder, base)
base = self.packageInfo["Title"] + ".info" path = join(self.packageResourceFolder, base)
def _addInfo(self): "Write .info file containing installing options."
18f917dac1d0c4373b8f3ea1de666a7605f47d91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/18f917dac1d0c4373b8f3ea1de666a7605f47d91/buildpkg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 966, 12, 2890, 4672, 315, 3067, 263, 1376, 585, 4191, 3799, 310, 702, 1199, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 966, 12, 2890, 4672, 315, 3067, 263, 1376, 585, 4191, 3799, 310, 702, 1199, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...