rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
qE.run_and_plot(300)
qE.run_and_plot(300, variables, loggers) plt.show()
def demo_flux() """demo method to test the flux negative constant""" qE = QuickEcell('simple_ecell_mod.eml') variables = ['S', 'P'] flux = qE.ses.createEntityStub('Process:/:C_S1') flux2 = qE.ses.createEntityStub('Process:/:C_S2') loggers = qE.createLoggers(variables) qE.ses.run(100) flux['k'] = -10 flux['k'] = +4 qE....
1cf86d6668a0f6d9627128153fe0d77a29f0d411 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14363/1cf86d6668a0f6d9627128153fe0d77a29f0d411/quickEcell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21477, 67, 7994, 1435, 3536, 27928, 707, 358, 1842, 326, 11772, 6092, 5381, 8395, 225, 1043, 41, 273, 19884, 41, 3855, 2668, 9647, 67, 557, 1165, 67, 1711, 18, 351, 80, 6134, 3152, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21477, 67, 7994, 1435, 3536, 27928, 707, 358, 1842, 326, 11772, 6092, 5381, 8395, 225, 1043, 41, 273, 19884, 41, 3855, 2668, 9647, 67, 557, 1165, 67, 1711, 18, 351, 80, 6134, 3152, 273, ...
def getProductReadme(self,p):
def getProductReadme(p):
def getProductReadme(self,p): ''' returns the readme file of the product case-insensitive '''
d81703303faccd39aa5d8fc70056b260be7c7cbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/d81703303faccd39aa5d8fc70056b260be7c7cbf/portal_quickinstaller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15880, 1994, 3501, 12, 84, 4672, 9163, 1135, 326, 24778, 585, 434, 326, 3017, 648, 17, 31940, 9163, 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, 15880, 1994, 3501, 12, 84, 4672, 9163, 1135, 326, 24778, 585, 434, 326, 3017, 648, 17, 31940, 9163, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
button = wxButton(parentWidget,
button = wx.Button(parentWidget,
def instantiateWidget(self): try: id = Block.getWidgetID(self) except AttributeError: id = 0
05ee3872029908caecab080b328ff68d041fce63 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/05ee3872029908caecab080b328ff68d041fce63/ControlBlocks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10275, 4609, 12, 2890, 4672, 775, 30, 612, 273, 3914, 18, 588, 4609, 734, 12, 2890, 13, 1335, 6394, 30, 612, 273, 374, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10275, 4609, 12, 2890, 4672, 775, 30, 612, 273, 3914, 18, 588, 4609, 734, 12, 2890, 13, 1335, 6394, 30, 612, 273, 374, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
update_val = {}
update_val = {}
def consume_moves(self, cr, uid, ids, quantity, location_id=False, location_dest_id=False, consume=True, context=None): if not context: context = {} if quantity <= 0: raise osv.except_osv(_('Warning!'), _('Please provide Proper Quantity !'))
d1c818f1f1c2c2310b1b2eff79c5c8c61511f900 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/d1c818f1f1c2c2310b1b2eff79c5c8c61511f900/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7865, 67, 81, 10829, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 10457, 16, 2117, 67, 350, 33, 8381, 16, 2117, 67, 10488, 67, 350, 33, 8381, 16, 7865, 33, 5510, 16, 819, 33, 7036, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7865, 67, 81, 10829, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 10457, 16, 2117, 67, 350, 33, 8381, 16, 2117, 67, 10488, 67, 350, 33, 8381, 16, 7865, 33, 5510, 16, 819, 33, 7036, ...
handler = self.handler(sock_obj, self)
handler = self.handler(sock, self)
def handle_accept(self): """Called when remote client initiates a connection.""" try: sock_obj, addr = self.accept() except TypeError: # for some reason sometimes accept() returns None instead # of a socket return log("[]%s:%s Connected." %addr[:2])
93339362815a4da693662426bfe9676331518e54 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7236/93339362815a4da693662426bfe9676331518e54/ftpserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 9436, 12, 2890, 4672, 3536, 8185, 1347, 2632, 1004, 1208, 16020, 279, 1459, 12123, 775, 30, 7313, 67, 2603, 16, 3091, 273, 365, 18, 9436, 1435, 1335, 3580, 30, 468, 364, 2690, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 9436, 12, 2890, 4672, 3536, 8185, 1347, 2632, 1004, 1208, 16020, 279, 1459, 12123, 775, 30, 7313, 67, 2603, 16, 3091, 273, 365, 18, 9436, 1435, 1335, 3580, 30, 468, 364, 2690, ...
r""" Return a list of CuspFamily objects corresponding to the cusps of X_0(N).
r""" Return a list of CuspFamily objects corresponding to the cusps of $X_0(N)$.
def AllCusps(N): r""" Return a list of CuspFamily objects corresponding to the cusps of X_0(N). INPUT: -- (integer) N: the level EXAMPLES: sage: AllCusps(18) [(Inf), (c_{2}), (c_{3,1}), (c_{3,2}), (c_{6,1}), (c_{6,2}), (c_{9}), (0)] """ try: N = ZZ(N) assert N>0 except TypeError: raise TypeError, "N must be an integer...
0c130fed7b356e022134568630e483428d00fec2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0c130fed7b356e022134568630e483428d00fec2/etaproducts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4826, 39, 407, 1121, 12, 50, 4672, 436, 8395, 2000, 279, 666, 434, 385, 407, 84, 9203, 2184, 4656, 358, 326, 27964, 1121, 434, 271, 60, 67, 20, 12, 50, 21877, 18, 225, 12943, 30, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4826, 39, 407, 1121, 12, 50, 4672, 436, 8395, 2000, 279, 666, 434, 385, 407, 84, 9203, 2184, 4656, 358, 326, 27964, 1121, 434, 271, 60, 67, 20, 12, 50, 21877, 18, 225, 12943, 30, 149...
if not torot: return Decimal(self)
def shift(self, other, context=None): """Returns a shifted copy of self, value-of-other times.""" if context is None: context = getcontext()
72131c27e03458337e49afaafdfa69dde75cde7e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/72131c27e03458337e49afaafdfa69dde75cde7e/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4654, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 1356, 279, 21340, 1610, 434, 365, 16, 460, 17, 792, 17, 3011, 4124, 12123, 309, 819, 353, 599, 30, 819, 273, 336, 2472, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4654, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 1356, 279, 21340, 1610, 434, 365, 16, 460, 17, 792, 17, 3011, 4124, 12123, 309, 819, 353, 599, 30, 819, 273, 336, 2472, 1435, ...
1) It is possible to give a list of options which must be part of
1) It is possible to give a list of options which must be part of
def slaves(self): return map(self._nametowidget, self.tk.splitlist( self.tk.call( 'tixForm', 'slaves', self._w)))
f5d050d1e124f0e400f34e9a2a31237ae6ccf7e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f5d050d1e124f0e400f34e9a2a31237ae6ccf7e1/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30403, 12, 2890, 4672, 327, 852, 12, 2890, 6315, 17808, 278, 543, 2208, 16, 365, 18, 16099, 18, 4939, 1098, 12, 365, 18, 16099, 18, 1991, 12, 296, 88, 697, 1204, 2187, 296, 2069, 6606,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30403, 12, 2890, 4672, 327, 852, 12, 2890, 6315, 17808, 278, 543, 2208, 16, 365, 18, 16099, 18, 4939, 1098, 12, 365, 18, 16099, 18, 1991, 12, 296, 88, 697, 1204, 2187, 296, 2069, 6606,...
buf.append(u'%s = %s' % (rv, self.value))
buf.append(u'= %s' % self.value)
def __unicode__(self): buf = self.get_modifiers() buf.append(u'%s %s' % (self.typename, self.name)) if self.value is not None: buf.append(u'%s = %s' % (rv, self.value)) return u' '.join(buf)
d8fe499dc1a383ca37dbc5eb342e493c20226daa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7032/d8fe499dc1a383ca37dbc5eb342e493c20226daa/cpp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9124, 972, 12, 2890, 4672, 1681, 273, 365, 18, 588, 67, 15432, 1435, 1681, 18, 6923, 12, 89, 11, 9, 87, 738, 87, 11, 738, 261, 2890, 18, 12846, 1069, 16, 365, 18, 529, 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, 1001, 9124, 972, 12, 2890, 4672, 1681, 273, 365, 18, 588, 67, 15432, 1435, 1681, 18, 6923, 12, 89, 11, 9, 87, 738, 87, 11, 738, 261, 2890, 18, 12846, 1069, 16, 365, 18, 529, 3719, ...
def setProblematicStatus(self,fileID,status): req = "UPDATE Problematics SET Status= '%s', LastUpdate=UTC_TIMESTAMP() WHERE FileID = %s;" % (status,fileID) res = self._update(req)
def setProblematicStatus( self, fileID, status ): req = "UPDATE Problematics SET Status= '%s', LastUpdate=UTC_TIMESTAMP() WHERE FileID = %s;" % ( status, fileID ) res = self._update( req )
def setProblematicStatus(self,fileID,status): req = "UPDATE Problematics SET Status= '%s', LastUpdate=UTC_TIMESTAMP() WHERE FileID = %s;" % (status,fileID) res = self._update(req) return res
c0ad35468416f798369c9462d5f8a11a19686a43 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c0ad35468416f798369c9462d5f8a11a19686a43/DataIntegrityDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 13719, 2126, 1482, 12, 365, 16, 585, 734, 16, 1267, 262, 30, 1111, 273, 315, 8217, 21685, 270, 2102, 7855, 2685, 33, 1995, 87, 2187, 6825, 1891, 33, 11471, 67, 17201, 1435, 4852, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 13719, 2126, 1482, 12, 365, 16, 585, 734, 16, 1267, 262, 30, 1111, 273, 315, 8217, 21685, 270, 2102, 7855, 2685, 33, 1995, 87, 2187, 6825, 1891, 33, 11471, 67, 17201, 1435, 4852, ...
self.environ["REMOTE_ADDR"] = self.__request.get_remote_host(apache.REMOTE_NOLOOKUP)
self.environ["REMOTE_ADDR"] = self.__request.connection.remote_ip
def __init__(self, request): """Constructor of the class. Initialises the necessesary values. It should never be used, use getWrapper method instead. """ self.__request = request try: self.cookies = parse_cookie(self.__request.headers_in[ "Cookie" ]) except KeyError: self.cookies = {} self.environ = {} self.environ["RE...
01a2952ab39c5dbac377335d0181394cc592f06a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/01a2952ab39c5dbac377335d0181394cc592f06a/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 590, 4672, 3536, 6293, 434, 326, 667, 18, 10188, 6141, 326, 290, 3957, 281, 814, 924, 18, 2597, 1410, 5903, 506, 1399, 16, 999, 336, 3611, 707, 3560, 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, 1001, 2738, 972, 12, 2890, 16, 590, 4672, 3536, 6293, 434, 326, 667, 18, 10188, 6141, 326, 290, 3957, 281, 814, 924, 18, 2597, 1410, 5903, 506, 1399, 16, 999, 336, 3611, 707, 3560, 18,...
'041666388ef9655d48996a66dada1193d6646012a7b25a24fb10e6075cf0fc54'
'ab2203a8c3de943309b685513a29060339c001acce5900dcd6427a02c1fb8011' radiogatun[8] -------------- >>> hasher = pyradiogatun.new(wl=8) >>> hasher.update('Santa Barbara, California') >>> hasher.hexdigest() 'e08f5cdbbfd8f5f3c479464a60ac186963e741d28f654e2c961d2f9bebc7de31'
def new(wl=64,arg=None): """Return a new RadioGatun hash object wl = wordlength (in bits) of the RadioGatun hash method between 1 and 64 (default = 64) arg = if present, the method call update(arg) is made EXAMPLES: (testvectors from: http://radiogatun.noekeon.org/) ========== >>> import pyradiogatun radiogatun[64...
7b516f8fe1f3a2988cacd3343c2fa51aae031fd3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8009/7b516f8fe1f3a2988cacd3343c2fa51aae031fd3/pyradiogatun.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 12, 21504, 33, 1105, 16, 3175, 33, 7036, 4672, 3536, 990, 279, 394, 31552, 43, 270, 318, 1651, 733, 225, 19564, 225, 273, 2076, 2469, 261, 267, 4125, 13, 434, 326, 31552, 43, 270,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 12, 21504, 33, 1105, 16, 3175, 33, 7036, 4672, 3536, 990, 279, 394, 31552, 43, 270, 318, 1651, 733, 225, 19564, 225, 273, 2076, 2469, 261, 267, 4125, 13, 434, 326, 31552, 43, 270,...
>>> from numpy import clip, log10, array, bartlett >>> from numpy.fft import fft
>>> from numpy import clip, log10, array, bartlett, linspace >>> from numpy.fft import fft, fftshift
def bartlett(M): """ Return the Bartlett window. The Bartlett window is very similar to a triangular window, except that the end points are at zero. It is often used in signal processing for tapering a signal, without generating too much ripple in the frequency domain. Parameters ---------- M : int Number of points ...
d3133f1ed2d3c2e56853d14a5b3e5e1f2cff11e2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/d3133f1ed2d3c2e56853d14a5b3e5e1f2cff11e2/function_base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 485, 1810, 88, 12, 49, 4672, 3536, 2000, 326, 605, 485, 1810, 88, 2742, 18, 225, 1021, 605, 485, 1810, 88, 2742, 353, 8572, 7281, 358, 279, 6882, 13077, 2742, 16, 1335, 716, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 485, 1810, 88, 12, 49, 4672, 3536, 2000, 326, 605, 485, 1810, 88, 2742, 18, 225, 1021, 605, 485, 1810, 88, 2742, 353, 8572, 7281, 358, 279, 6882, 13077, 2742, 16, 1335, 716, 326, ...
self.saveButton.setEnabled(len(self.selectedRules) > 0)
def updateRuleList(self): self.selectedRules = sum(sum((row[self.sel_colmin : self.sel_colmax+1] for row in self.ingrid[self.sel_rowmin : self.sel_rowmax+1]), []), []) self.displayRules() self.updateConfSupp() self.saveButton.setEnabled(len(self.selectedRules) > 0)
adb773ef60e4c7c06d7b59f3e8231ad4e20a9fa1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/adb773ef60e4c7c06d7b59f3e8231ad4e20a9fa1/OWAssociationRulesViewer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 2175, 682, 12, 2890, 4672, 365, 18, 8109, 4478, 273, 2142, 12, 1364, 12443, 492, 63, 2890, 18, 1786, 67, 1293, 1154, 294, 365, 18, 1786, 67, 1293, 1896, 15, 21, 65, 364, 1027, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 2175, 682, 12, 2890, 4672, 365, 18, 8109, 4478, 273, 2142, 12, 1364, 12443, 492, 63, 2890, 18, 1786, 67, 1293, 1154, 294, 365, 18, 1786, 67, 1293, 1896, 15, 21, 65, 364, 1027, ...
('until_count', 'CHECK(until IS NULL OR count IS NULL)',
('until_count_only_one', 'CHECK(until IS NULL OR count IS NULL OR count = 0)',
def __init__(self): super(RRule, self).__init__() self._sql_constraints += [ ('until_count', 'CHECK(until IS NULL OR count IS NULL)', 'Only one of "until" and "count" can be set!'), ] self._constraints += [ ('check_bysecond', 'invalid_bysecond'), ('check_byminute', 'invalid_byminute'), ('check_byhour', 'invalid_byhour'...
d29ae85197e568ceda8537efed158ecdb7e37ef6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9294/d29ae85197e568ceda8537efed158ecdb7e37ef6/calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2240, 12, 54, 2175, 16, 365, 2934, 972, 2738, 972, 1435, 365, 6315, 4669, 67, 11967, 1011, 306, 7707, 12198, 67, 1883, 67, 3700, 67, 476, 2187, 296, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2240, 12, 54, 2175, 16, 365, 2934, 972, 2738, 972, 1435, 365, 6315, 4669, 67, 11967, 1011, 306, 7707, 12198, 67, 1883, 67, 3700, 67, 476, 2187, 296, 10...
'updated' : updated }
'updated' : updated}
def getByMac(self, mac): """ Get a computer by its MAC from the cache.
7d4c01312b9d0063d2b865273b702cc8f69a8d06 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/7d4c01312b9d0063d2b865273b702cc8f69a8d06/cache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9979, 9990, 12, 2890, 16, 5318, 4672, 3536, 968, 279, 26579, 635, 2097, 14246, 628, 326, 1247, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 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, 9979, 9990, 12, 2890, 16, 5318, 4672, 3536, 968, 279, 26579, 635, 2097, 14246, 628, 326, 1247, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for name in arg.getArgNames(): if name in argnames: raise SyntaxError("duplicate argument '%s' in function definition" % name) argnames[name] = 1
for argname in arg.getArgNames(): if argname in argnames: raise SyntaxError("duplicate argument '%s' in function definition" % argname) argnames[argname] = 1
def __init__(self, space, func, isLambda, class_name, mod): self.module = mod if isLambda: name = "<lambda>" else: assert isinstance(func, ast.Function) name = func.name # Find duplicated arguments. argnames = {} for arg in func.argnames: if isinstance(arg, ast.AssName): if arg.name in argnames: raise SyntaxError("dupl...
b67a4979c785014d79580372082ef2e97ce47c83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/b67a4979c785014d79580372082ef2e97ce47c83/pycodegen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3476, 16, 1326, 16, 353, 12025, 16, 667, 67, 529, 16, 681, 4672, 365, 18, 2978, 273, 681, 309, 353, 12025, 30, 508, 273, 3532, 14661, 2984, 469, 30, 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, 1001, 2738, 972, 12, 2890, 16, 3476, 16, 1326, 16, 353, 12025, 16, 667, 67, 529, 16, 681, 4672, 365, 18, 2978, 273, 681, 309, 353, 12025, 30, 508, 273, 3532, 14661, 2984, 469, 30, 18...
"""Return a random string usable as a multipart boundary. The method used is so that it is *very* unlikely that the same string of characters will every occur again in the Universe, so the caller needn't check the data it is packing for the occurrence of the boundary.
"""Return a string usable as a multipart boundary. The string chosen is unique within a single program run, and incorporates the user id (if available), process id (if available), and current time. So it's very unlikely the returned string appears in message text, but there's no guarantee.
def choose_boundary(): """Return a random string usable as a multipart boundary. The method used is so that it is *very* unlikely that the same string of characters will every occur again in the Universe, so the caller needn't check the data it is packing for the occurrence of the boundary. The boundary contains dots ...
b88933f5ae6ea190eaa76d2a1423cf8300d4bab1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b88933f5ae6ea190eaa76d2a1423cf8300d4bab1/mimetools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9876, 67, 16604, 13332, 3536, 990, 279, 533, 15603, 487, 279, 10263, 7679, 18, 225, 1021, 533, 10447, 353, 3089, 3470, 279, 2202, 5402, 1086, 16, 471, 316, 3850, 3831, 815, 326, 729, 612...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9876, 67, 16604, 13332, 3536, 990, 279, 533, 15603, 487, 279, 10263, 7679, 18, 225, 1021, 533, 10447, 353, 3089, 3470, 279, 2202, 5402, 1086, 16, 471, 316, 3850, 3831, 815, 326, 729, 612...
f = theano.function([a],a.sum(d).sum(dd))
f = theano.function([a],a.sum(d).sum(dd),mode=self.mode)
def test_local_sum_sum(self): a=T.tensor3() input=numpy.arange(3*3*3).reshape(3,3,3) dims=[(0,0),(1,0),(2,0),(0,1),(1,1),(2,1)]
60f4eb558d15e778691a242263c792b36310dee0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/60f4eb558d15e778691a242263c792b36310dee0/test_opt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3729, 67, 1364, 67, 1364, 12, 2890, 4672, 279, 33, 56, 18, 13720, 23, 1435, 810, 33, 15974, 18, 297, 726, 12, 23, 14, 23, 14, 23, 2934, 1955, 1273, 12, 23, 16, 23, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3729, 67, 1364, 67, 1364, 12, 2890, 4672, 279, 33, 56, 18, 13720, 23, 1435, 810, 33, 15974, 18, 297, 726, 12, 23, 14, 23, 14, 23, 2934, 1955, 1273, 12, 23, 16, 23, 16, ...
def pso_reduce(key, value_iter):
def pso_reduce(self, key, value_iter):
def pso_reduce(key, value_iter): comparator = self.function.comparator particle = None best = None bestval = float('inf')
36ae431c781eadb36d132d2c809bd3683200ef09 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/966/36ae431c781eadb36d132d2c809bd3683200ef09/standardpso.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 2048, 67, 12498, 12, 2890, 16, 498, 16, 460, 67, 2165, 4672, 8862, 273, 365, 18, 915, 18, 832, 2528, 20036, 273, 599, 3796, 273, 599, 3796, 1125, 273, 1431, 2668, 10625, 6134, 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, 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, 293, 2048, 67, 12498, 12, 2890, 16, 498, 16, 460, 67, 2165, 4672, 8862, 273, 365, 18, 915, 18, 832, 2528, 20036, 273, 599, 3796, 273, 599, 3796, 1125, 273, 1431, 2668, 10625, 6134, 2, ...
def main(uri, http_user, sort = "hostname", order = "asc"):
def main(uri, http_user, sort="hostname", order="asc", configuration=None, machines=None, **kwargs):
def main(uri, http_user, sort = "hostname", order = "asc"): """ display all machines in a nice HTML page. """ start = time.time() m = machines.machines accounts = {} ordered = {} totals = { _('managed'): 0, _('floating'): 0 } title = _("Machines") data = w.page_body_start(uri, http_user, ctxtnav, title) if ord...
5c6e0536d2363f635c0b43a50e8af7ca9d102236 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/5c6e0536d2363f635c0b43a50e8af7ca9d102236/machines.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 1650, 16, 1062, 67, 1355, 16, 1524, 1546, 10358, 3113, 1353, 1546, 3691, 3113, 1664, 33, 7036, 16, 15942, 33, 7036, 16, 2826, 4333, 4672, 3536, 2562, 777, 15942, 316, 279, 1375...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 1650, 16, 1062, 67, 1355, 16, 1524, 1546, 10358, 3113, 1353, 1546, 3691, 3113, 1664, 33, 7036, 16, 15942, 33, 7036, 16, 2826, 4333, 4672, 3536, 2562, 777, 15942, 316, 279, 1375...
effective_date =fields.DateTime('Effective Date', readonly=True, states={ 'readonly': "state != 'draft'", })
effective_date =fields.DateTime('Effective Date', readonly=True,)
def button_draft(self, cursor, user, ids, context=None): workflow_service = LocalService('workflow') for packing in self.browse(cursor, user, ids, context=context): workflow_service.trg_create(user, self._name, packing.id, cursor) return True
8976e7d0fed471bfae1d91d991f045b9bc72f546 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9298/8976e7d0fed471bfae1d91d991f045b9bc72f546/packing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3568, 67, 17153, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 819, 33, 7036, 4672, 6095, 67, 3278, 273, 3566, 1179, 2668, 13815, 6134, 364, 2298, 310, 316, 365, 18, 25731, 12, 9216, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3568, 67, 17153, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 819, 33, 7036, 4672, 6095, 67, 3278, 273, 3566, 1179, 2668, 13815, 6134, 364, 2298, 310, 316, 365, 18, 25731, 12, 9216, 16, ...
], CONTEXT)
], 0, None, None, CONTEXT)
def test0030float(self): ''' Test Float. ''' float1_id = self.float.create({ 'float': 1.1, }, CONTEXT) self.assert_(float1_id)
52062c763bf1737b3f2071e48338f60845edc54d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/52062c763bf1737b3f2071e48338f60845edc54d/test_tryton.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 713, 5082, 5659, 12, 2890, 4672, 9163, 7766, 5450, 18, 9163, 1431, 21, 67, 350, 273, 365, 18, 5659, 18, 2640, 12590, 296, 5659, 4278, 404, 18, 21, 16, 19879, 13862, 13, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 713, 5082, 5659, 12, 2890, 4672, 9163, 7766, 5450, 18, 9163, 1431, 21, 67, 350, 273, 365, 18, 5659, 18, 2640, 12590, 296, 5659, 4278, 404, 18, 21, 16, 19879, 13862, 13, 365, 18, ...
data = u''
lines = []
def encode(self): schema = self.schema data = u''
9c304e96fd2e9000bc0705a1e22c27dae136e023 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/9c304e96fd2e9000bc0705a1e22c27dae136e023/Schema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 12, 2890, 4672, 1963, 273, 365, 18, 4821, 501, 273, 582, 6309, 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, 2017, 12, 2890, 4672, 1963, 273, 365, 18, 4821, 501, 273, 582, 6309, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
and not (isinstance(model_pool._columns[x[0]],fields.function) or isinstance(model_pool._columns[x[0]],fields.related)), fields_get.items()))
and not (isinstance(model_pool._columns[x[0]],fields.function) or isinstance(model_pool._columns[x[0]],fields.related) or isinstance(model_pool._columns[x[0]],fields.dummy)), fields_get.items()))
def _path_get(self,cr, uid, models, filter_ids=[]):
d87bc46608c9be71a24b77fcc816258ae66031d6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/d87bc46608c9be71a24b77fcc816258ae66031d6/base_report_creator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 803, 67, 588, 12, 2890, 16, 3353, 16, 4555, 16, 3679, 16, 1034, 67, 2232, 33, 8526, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 803, 67, 588, 12, 2890, 16, 3353, 16, 4555, 16, 3679, 16, 1034, 67, 2232, 33, 8526, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
def refresh_icon(self, key, klass, data, icon): index = self.data[key].index
def refresh_icon(self, key, klass, data, icon_num): icon = self.data[key] index = icon.index del icon.data if 'extra_methods' in icon.__dict__: del icon.extra_methods
def refresh_icon(self, key, klass, data, icon): index = self.data[key].index obj = klass(key, data, index) self.data[key] = obj self.SetStringItem(index, 0, key, icon)
2581bd9be1bab9d645f5a46e90a807d79311df25 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9927/2581bd9be1bab9d645f5a46e90a807d79311df25/icon_display.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 67, 3950, 12, 2890, 16, 498, 16, 7352, 16, 501, 16, 4126, 67, 2107, 4672, 4126, 273, 365, 18, 892, 63, 856, 65, 770, 273, 4126, 18, 1615, 1464, 4126, 18, 892, 309, 296, 7763, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 3950, 12, 2890, 16, 498, 16, 7352, 16, 501, 16, 4126, 67, 2107, 4672, 4126, 273, 365, 18, 892, 63, 856, 65, 770, 273, 4126, 18, 1615, 1464, 4126, 18, 892, 309, 296, 7763, ...
exercise_by_name[ex.name] = ex
self.exercise_by_name[ex.name] = ex
def __init__(self, exercises, user_exercises): self.exercises = exercises exercise_by_name = {} for ex in exercises: exercise_by_name[ex.name] = ex ex.coverers = [] ex.user_exercise = None ex.next_review = None # Not set initially ex.is_review_candidate = False ex.is_ancestor_review_candidate = None # Not set initial...
bc35f7ac77c188a86d8196e17a4a19d7431722b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12010/bc35f7ac77c188a86d8196e17a4a19d7431722b7/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 431, 12610, 6141, 16, 729, 67, 8913, 71, 6141, 4672, 365, 18, 8913, 71, 6141, 273, 431, 12610, 6141, 24165, 67, 1637, 67, 529, 273, 2618, 364, 431, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 431, 12610, 6141, 16, 729, 67, 8913, 71, 6141, 4672, 365, 18, 8913, 71, 6141, 273, 431, 12610, 6141, 24165, 67, 1637, 67, 529, 273, 2618, 364, 431, 316, ...
assert len(divvy) == 2
assert len(divvy) == 2, len(divvy)
def test_random_20_a_succ_III(self): ht = khmer.new_hashbits(20, 4**13+1) filename = os.path.join(thisdir, 'test-data/random-20-a.fa') outfile = filename + '.out'
3749dbc57b09888c4a058f1d60ad190792428f55 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11148/3749dbc57b09888c4a058f1d60ad190792428f55/test_subset_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9188, 67, 3462, 67, 69, 67, 26560, 952, 67, 6954, 45, 12, 2890, 4672, 14049, 273, 417, 76, 6592, 18, 2704, 67, 2816, 6789, 12, 3462, 16, 1059, 636, 3437, 15, 21, 13, 1544, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9188, 67, 3462, 67, 69, 67, 26560, 952, 67, 6954, 45, 12, 2890, 4672, 14049, 273, 417, 76, 6592, 18, 2704, 67, 2816, 6789, 12, 3462, 16, 1059, 636, 3437, 15, 21, 13, 1544, ...
if self.command.parents:
if parents:
def pre_process_files(self): """Prepare for committing.""" self.revision_id = self.gen_revision_id() self.inv_delta = [] # cache of texts for this commit, indexed by file-id self.lines_for_commit = {}
e881e144a2feaa0247b9e5aba3d1d9dda79f5f06 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8703/e881e144a2feaa0247b9e5aba3d1d9dda79f5f06/generic_processor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 675, 67, 2567, 67, 2354, 12, 2890, 4672, 3536, 7543, 364, 3294, 1787, 12123, 365, 18, 13057, 67, 350, 273, 365, 18, 4507, 67, 13057, 67, 350, 1435, 365, 18, 5768, 67, 9878, 273, 5378, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 675, 67, 2567, 67, 2354, 12, 2890, 4672, 3536, 7543, 364, 3294, 1787, 12123, 365, 18, 13057, 67, 350, 273, 365, 18, 4507, 67, 13057, 67, 350, 1435, 365, 18, 5768, 67, 9878, 273, 5378, ...
if b.type == 'h':
if b.type in 'hd':
def add_bond( self, b, page): """adds bond item to page""" s = graphics_style( stroke_color=self.paper.any_color_to_rgb_string( b.line_color), stroke_width=Screen.px_to_cm( b.line_width)) style_name = self.get_appropriate_style_name( s) l_group = page # items to export if b.type == 'h': items = b.items else: if b.cente...
a7f41f159ab1fedbb658f89ee3b35ba20b1965cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4298/a7f41f159ab1fedbb658f89ee3b35ba20b1965cf/openoffice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 26425, 12, 365, 16, 324, 16, 1363, 4672, 3536, 25428, 8427, 761, 358, 1363, 8395, 272, 273, 17313, 67, 4060, 12, 11040, 67, 3266, 33, 2890, 18, 27400, 18, 2273, 67, 3266, 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, 527, 67, 26425, 12, 365, 16, 324, 16, 1363, 4672, 3536, 25428, 8427, 761, 358, 1363, 8395, 272, 273, 17313, 67, 4060, 12, 11040, 67, 3266, 33, 2890, 18, 27400, 18, 2273, 67, 3266, 67, ...
should = [('association', 'DoNothing', 'Specialization'), ('implements', 'Ancestor', 'Interface'), ('specialization', 'Specialization', 'Ancestor')] self._relations = should self.assertEquals(relations, should)
self.assertEquals(relations, self._should_rels)
def test_exctract_relations(self): """test extract_relations between classes""" cd = DefaultDiadefGenerator(Linker(PROJECT), HANDLER).visit(PROJECT)[1] cd.extract_relationships() relations = _process_relations(cd.relationships) should = [('association', 'DoNothing', 'Specialization'), ('implements', 'Ancestor', 'Interf...
da40d28740131445607779e678bf653f7cfc810b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/928/da40d28740131445607779e678bf653f7cfc810b/unittest_pyreverse_diadefs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 338, 299, 14266, 67, 15018, 12, 2890, 4672, 3536, 3813, 2608, 67, 15018, 3086, 3318, 8395, 7976, 273, 2989, 40, 1155, 536, 3908, 12, 2098, 264, 12, 17147, 3631, 24166, 14668, 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, 1842, 67, 338, 299, 14266, 67, 15018, 12, 2890, 4672, 3536, 3813, 2608, 67, 15018, 3086, 3318, 8395, 7976, 273, 2989, 40, 1155, 536, 3908, 12, 2098, 264, 12, 17147, 3631, 24166, 14668, 2...
if (r.isUnix and self.config["p_dot_trunc_only_win"]):
if (r.isUnix() and self.config["p_dot_trunc_only_win"]):
def identifyVuln(self, URL, Params, VulnParam, PostData, Language, isPost=False, blindmode=None, isUnix=None): xml2config = self.config["XML2CONFIG"] if (blindmode == None):
265ad72f029ee3595b8259f24b1b66f8de3d2036 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4412/265ad72f029ee3595b8259f24b1b66f8de3d2036/targetScanner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9786, 58, 332, 82, 12, 2890, 16, 1976, 16, 8861, 16, 776, 332, 82, 786, 16, 5616, 751, 16, 9889, 16, 26047, 33, 8381, 16, 29696, 3188, 33, 7036, 16, 353, 18729, 33, 7036, 4672, 2025,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9786, 58, 332, 82, 12, 2890, 16, 1976, 16, 8861, 16, 776, 332, 82, 786, 16, 5616, 751, 16, 9889, 16, 26047, 33, 8381, 16, 29696, 3188, 33, 7036, 16, 353, 18729, 33, 7036, 4672, 2025,...
f = urllib.urlopen('http://localhost:8814/') content = f.read() self.assert_('Welcome' in content) self.assert_('Username' in content)
browser = Browser() browser.go('http://localhost:8814/') self.assert_('Welcome' in browser.content) self.assert_('Username' in browser.content)
def test(self): f = urllib.urlopen('http://localhost:8814/') content = f.read() self.assert_('Welcome' in content) self.assert_('Username' in content)
d3ed95df44cfd67313028c2646f9fac780a0ec52 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/d3ed95df44cfd67313028c2646f9fac780a0ec52/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12, 2890, 4672, 284, 273, 11527, 18, 295, 18589, 2668, 2505, 2207, 13014, 30, 5482, 3461, 2473, 13, 913, 273, 284, 18, 896, 1435, 365, 18, 11231, 67, 2668, 59, 16312, 11, 316, 91...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12, 2890, 4672, 284, 273, 11527, 18, 295, 18589, 2668, 2505, 2207, 13014, 30, 5482, 3461, 2473, 13, 913, 273, 284, 18, 896, 1435, 365, 18, 11231, 67, 2668, 59, 16312, 11, 316, 91...
for scsiinfo in os.popen('lsscsi -g %s' % option).readlines():
for scsiinfo in os.popen('lsscsi -g %s 2>/dev/null' % option).readlines():
def _vscsi_get_scsidevices_by_lsscsi(option = ""): """ get all scsi devices information by lsscsi """ devices = [] for scsiinfo in os.popen('lsscsi -g %s' % option).readlines(): s = scsiinfo.split() hctl = s[0][1:-1] try: devname = s[-2].split('/dev/')[1] except IndexError: devname = None try: sg = s[-1].split('/dev/...
61846fe25c6fbd569a6c2cff0101f7ee5dce99e7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6195/61846fe25c6fbd569a6c2cff0101f7ee5dce99e7/vscsi_util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 90, 1017, 7722, 67, 588, 67, 1017, 5564, 2094, 67, 1637, 67, 3251, 1017, 7722, 12, 3482, 273, 1408, 4672, 3536, 336, 777, 888, 7722, 7166, 1779, 635, 7180, 1017, 7722, 3536, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 90, 1017, 7722, 67, 588, 67, 1017, 5564, 2094, 67, 1637, 67, 3251, 1017, 7722, 12, 3482, 273, 1408, 4672, 3536, 336, 777, 888, 7722, 7166, 1779, 635, 7180, 1017, 7722, 3536, 225, ...
... content = TextField()
... content = TextField(), ... time = DateTimeField()
def _to_json(self, value): if isinstance(value, Schema): return value.unwrap() return dict(value)
28425a662c4cd6db57c590ed9aced7ea9268b782 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9373/28425a662c4cd6db57c590ed9aced7ea9268b782/schema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 869, 67, 1977, 12, 2890, 16, 460, 4672, 309, 1549, 12, 1132, 16, 4611, 4672, 327, 460, 18, 318, 4113, 1435, 327, 2065, 12, 1132, 13, 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, 389, 869, 67, 1977, 12, 2890, 16, 460, 4672, 309, 1549, 12, 1132, 16, 4611, 4672, 327, 460, 18, 318, 4113, 1435, 327, 2065, 12, 1132, 13, 2, -100, -100, -100, -100, -100, -100, -100, ...
item=self.todo.GetItem(todoIndexStart+i.wx())
item=self.todo.GetItem(todoIndexStart+i.wx)
def updateTodo(self): self.todo.DeleteAllItems() todoIndex=0 self.todo.list=[] todoMax=[self.todoMax(child) for child in self.app.children]+[1] todoMax=max(todoMax) for child in self.app.children: todoIndexStart=todoIndex for task in child.todoList: line,urgency,entry=task item=self.todo.InsertStringItem(todoIndex, os....
0c6465cae6e831fd32cb581348049d6d5044ab4d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2464/0c6465cae6e831fd32cb581348049d6d5044ab4d/Parent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 56, 7370, 12, 2890, 4672, 365, 18, 9012, 18, 2613, 1595, 3126, 1435, 10621, 1016, 33, 20, 365, 18, 9012, 18, 1098, 33, 8526, 10621, 2747, 22850, 2890, 18, 9012, 2747, 12, 3624, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 56, 7370, 12, 2890, 4672, 365, 18, 9012, 18, 2613, 1595, 3126, 1435, 10621, 1016, 33, 20, 365, 18, 9012, 18, 1098, 33, 8526, 10621, 2747, 22850, 2890, 18, 9012, 2747, 12, 3624, 1...
for key in ('LDFLAGS', 'BASECFLAGS'):
for key in ('LDFLAGS', 'BASECFLAGS', 'CFLAGS', 'PY_CFLAGS', 'BLDSHARED'):
def get_config_vars(*args): """With no arguments, return a dictionary of all configuration variables relevant for the current platform. Generally this includes everything needed to build extensions and install both pure modules and extensions. On Unix, this means every variable defined in Python's installed Makefile;...
fd1593e1692d1fa21628f464050af225f8bcc579 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/fd1593e1692d1fa21628f464050af225f8bcc579/sysconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1425, 67, 4699, 30857, 1968, 4672, 3536, 1190, 1158, 1775, 16, 327, 279, 3880, 434, 777, 1664, 3152, 9368, 364, 326, 783, 4072, 18, 225, 3055, 1230, 333, 6104, 7756, 3577, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1425, 67, 4699, 30857, 1968, 4672, 3536, 1190, 1158, 1775, 16, 327, 279, 3880, 434, 777, 1664, 3152, 9368, 364, 326, 783, 4072, 18, 225, 3055, 1230, 333, 6104, 7756, 3577, 358, ...
def _log(channel_id, trace_code='X', msg=None, timestamp=None):
def _log(channel_id, trace_code='-', msg=None, timestamp=None):
def _log(channel_id, trace_code='X', msg=None, timestamp=None): if timestamp is None: timestamp = datetime.datetime.now() entry = '%s %s %s' % (trace_code, channel_id, _format_datetime(timestamp)) if msg: entry += ' %s' % repr(msg)[1:-1] tracelog.info(entry)
c5f47c9805b00a8c4614a89136b93c34552e361b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7695/c5f47c9805b00a8c4614a89136b93c34552e361b/tracelog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1330, 12, 4327, 67, 350, 16, 2606, 67, 710, 2218, 17, 2187, 1234, 33, 7036, 16, 2858, 33, 7036, 4672, 309, 2858, 353, 599, 30, 2858, 273, 3314, 18, 6585, 18, 3338, 1435, 225, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1330, 12, 4327, 67, 350, 16, 2606, 67, 710, 2218, 17, 2187, 1234, 33, 7036, 16, 2858, 33, 7036, 4672, 309, 2858, 353, 599, 30, 2858, 273, 3314, 18, 6585, 18, 3338, 1435, 225, 12...
str = '' include = string.split(include)
include = include.split()
def _formatStyle(self, include=''): str = '' include = string.split(include) keys = self.style.keys() if include: #2.1-safe version of the line below follows: #keys = filter(lambda k: k in include, keys) tmp = [] for word in keys: if word in include: tmp.append(word) keys = tmp
37afe6db14252697b2c6f0bd32cd0cbf4e4ebe03 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3878/37afe6db14252697b2c6f0bd32cd0cbf4e4ebe03/renderSVG.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2139, 2885, 12, 2890, 16, 2341, 2218, 11, 4672, 2341, 273, 2341, 18, 4939, 1435, 1311, 273, 365, 18, 4060, 18, 2452, 1435, 309, 2341, 30, 468, 22, 18, 21, 17, 4626, 1177, 434, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2139, 2885, 12, 2890, 16, 2341, 2218, 11, 4672, 2341, 273, 2341, 18, 4939, 1435, 1311, 273, 365, 18, 4060, 18, 2452, 1435, 309, 2341, 30, 468, 22, 18, 21, 17, 4626, 1177, 434, 3...
cty.c_uint, [cty.POINTER(FL_OBJECT), cty.c_int],
cty.c_uint, [cty.POINTER(FL_OBJECT), cty.c_int],
def fl_get_menu_maxitems(ob): """ fl_get_menu_maxitems(ob) -> items num. """ retval = _fl_get_menu_maxitems(ob) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 588, 67, 5414, 67, 1896, 3319, 12, 947, 4672, 3536, 1183, 67, 588, 67, 5414, 67, 1896, 3319, 12, 947, 13, 317, 1516, 818, 18, 3536, 225, 5221, 273, 389, 2242, 67, 588, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 588, 67, 5414, 67, 1896, 3319, 12, 947, 4672, 3536, 1183, 67, 588, 67, 5414, 67, 1896, 3319, 12, 947, 13, 317, 1516, 818, 18, 3536, 225, 5221, 273, 389, 2242, 67, 588, 67, ...
if state["vertex_filt"] != None: self.set_vertex_filter(state["vertex_filt"][0], state["vertex_filt"][1]) if state["edge_filt"] != None: self.set_edge_filter(state["edge_filt"][0], state["edge_filt"][1])
if state.has_key("vfilt"): vprop = self.vertex_properties["_Graph__pickle__vfilter"] self.set_vertex_filter(vprop, state["vfilt"]) if state.has_key("efilt"): eprop = self.edge_properties["_Graph__pickle__efilter"] self.set_edge_filter(vprop, state["efilt"])
def __setstate__(self, state): self.__init__() blob = state["blob"] if blob != "": sio = StringIO(blob) self.load(sio, "xml") if state["vertex_filt"] != None: self.set_vertex_filter(state["vertex_filt"][0], state["vertex_filt"][1]) if state["edge_filt"] != None: self.set_edge_filter(state["edge_filt"][0], state["edge_f...
e4c0938932a948700bcdc901170bce1120dfba12 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3516/e4c0938932a948700bcdc901170bce1120dfba12/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 2019, 972, 12, 2890, 16, 919, 4672, 365, 16186, 2738, 972, 1435, 4795, 273, 919, 9614, 10721, 11929, 309, 4795, 480, 1408, 30, 272, 1594, 273, 15777, 12, 10721, 13, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 2019, 972, 12, 2890, 16, 919, 4672, 365, 16186, 2738, 972, 1435, 4795, 273, 919, 9614, 10721, 11929, 309, 4795, 480, 1408, 30, 272, 1594, 273, 15777, 12, 10721, 13, 365, 18, ...
if [child.get(field) for field in important[child.tag]] == \ [equiv[0].get(field) for field in important[child.tag]]:
if [child.get(field) for field in important[child.tag]] == \ [equiv[0].get(field) for field in important[child.tag]]: new.remove(child) old.remove(equiv[0]) else: print "+", lxml.etree.tostring(child), print "-", lxml.etree.tostring(equiv[0]),
def compare(new, old): for i in range(2): #this is hardcoded.. may be a better looping method for child in new.getchildren(): equiv = old.xpath('%s[@name="%s"]' % (child.tag, child.get('name'))) if not important.has_key(child.tag): print "tag type %s not handled" % (child.tag) continue if len(equiv) == 0: print "didn't...
073aa424c3201b869a8a008aa09652cbc9545836 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/073aa424c3201b869a8a008aa09652cbc9545836/crosscheck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3400, 12, 2704, 16, 1592, 4672, 364, 277, 316, 1048, 12, 22, 4672, 468, 2211, 353, 7877, 24808, 838, 2026, 506, 279, 7844, 25004, 707, 364, 1151, 316, 394, 18, 588, 5906, 13332, 1298, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2704, 16, 1592, 4672, 364, 277, 316, 1048, 12, 22, 4672, 468, 2211, 353, 7877, 24808, 838, 2026, 506, 279, 7844, 25004, 707, 364, 1151, 316, 394, 18, 588, 5906, 13332, 1298, ...
'Header', 'Iterators', 'MIMEAudio', 'MIMEBase', 'MIMEImage', 'MIMEMessage', 'MIMEText', 'Message', 'Parser', 'Utils', 'base64MIME',
'Header', 'Iterators', 'MIMEAudio', 'MIMEBase', 'MIMEImage', 'MIMEMessage', 'MIMEMultipart', 'MIMENonMultipart', 'MIMEText', 'Message', 'Parser', 'Utils', 'base64MIME',
def test__all__(self): module = __import__('email') all = module.__all__ all.sort() self.assertEqual(all, ['Charset', 'Encoders', 'Errors', 'Generator', 'Header', 'Iterators', 'MIMEAudio', 'MIMEBase', 'MIMEImage', 'MIMEMessage', 'MIMEText', 'Message', 'Parser', 'Utils', 'base64MIME', 'message_from_file', 'message_from_...
3bd570bb549aa4927794cadcd005688d43efc369 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/3bd570bb549aa4927794cadcd005688d43efc369/test_email.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 972, 454, 972, 12, 2890, 4672, 1605, 273, 1001, 5666, 972, 2668, 3652, 6134, 777, 273, 1605, 16186, 454, 972, 777, 18, 3804, 1435, 365, 18, 11231, 5812, 12, 454, 16, 10228, 9652, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 972, 454, 972, 12, 2890, 4672, 1605, 273, 1001, 5666, 972, 2668, 3652, 6134, 777, 273, 1605, 16186, 454, 972, 777, 18, 3804, 1435, 365, 18, 11231, 5812, 12, 454, 16, 10228, 9652, ...
self.logger_pid = None
self.logger_popen = None
def __init__(self, hostname, user="root", port=22, initialize=True, conmux_log="console.log", conmux_warnings="status.log", conmux_server=None, conmux_attach=None, netconsole_log=None, netconsole_port=6666, autodir=None): """ Construct a SSHHost object Args: hostname: network hostname or address of remote machine user...
70f47baec37f656e768786a983ce39b6d7651ff6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/70f47baec37f656e768786a983ce39b6d7651ff6/ssh_host.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5199, 16, 729, 1546, 3085, 3113, 1756, 33, 3787, 16, 4046, 33, 5510, 16, 356, 81, 2616, 67, 1330, 1546, 8698, 18, 1330, 3113, 356, 81, 2616, 67, 12103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5199, 16, 729, 1546, 3085, 3113, 1756, 33, 3787, 16, 4046, 33, 5510, 16, 356, 81, 2616, 67, 1330, 1546, 8698, 18, 1330, 3113, 356, 81, 2616, 67, 12103, ...
cmdVar = RO.KeyVariable.CmdVar( cmdStr = cmdStr, actor = self.echelleModel.actor, ) self.statusBar.doCmd(cmdVar)
self.doCmd(cmdStr, actor=self.echelleModel.actor)
def doApply(self, wdg=None): """Apply changes to configuration""" cmdStr = self.inputCont.getString() if not cmdStr: return
94d83ab10cc3cf99c706f58fc8bb83b65aa73420 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6354/94d83ab10cc3cf99c706f58fc8bb83b65aa73420/ECamWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 7001, 12, 2890, 16, 14452, 75, 33, 7036, 4672, 3536, 7001, 3478, 358, 1664, 8395, 1797, 1585, 273, 365, 18, 2630, 660, 18, 588, 780, 1435, 309, 486, 1797, 1585, 30, 327, 2, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 7001, 12, 2890, 16, 14452, 75, 33, 7036, 4672, 3536, 7001, 3478, 358, 1664, 8395, 1797, 1585, 273, 365, 18, 2630, 660, 18, 588, 780, 1435, 309, 486, 1797, 1585, 30, 327, 2, -100, ...
SendMail(fromAddr, options.toAddr, startTime, buildName, "building",
SendMail(fromAddr, mailtoAddr, startTime, buildName, "building",
def main(): global buildscriptFile parser = OptionParser(usage="%prog [options] buildName", version="%prog 1.2") parser.add_option("-t", "--toAddr", action="store", type="string", dest="toAddr", default="buildreport@osafoundation.org", help="Where to mail script reports\n" " [default] buildreport@osafoundation.org") p...
d408e117db6efa17cce01fc2c6e49ab155d30dfd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/d408e117db6efa17cce01fc2c6e49ab155d30dfd/tindertest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2552, 1361, 4263, 812, 225, 2082, 273, 18862, 12, 9167, 11613, 14654, 306, 2116, 65, 1361, 461, 3113, 1177, 11613, 14654, 404, 18, 22, 7923, 2082, 18, 1289, 67, 3482, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2552, 1361, 4263, 812, 225, 2082, 273, 18862, 12, 9167, 11613, 14654, 306, 2116, 65, 1361, 461, 3113, 1177, 11613, 14654, 404, 18, 22, 7923, 2082, 18, 1289, 67, 3482, 2932, ...
Preferences.IS.registerImage('Images/Modules/JavaModule.png', getJavaModuleData()) Preferences.IS.registerImage('Images/Palette/JavaPalette.png', getJavaPaletteData())
Preferences.IS.registerImage('Images/Modules/Java_s.png', getJavaModuleData()) Preferences.IS.registerImage('Images/Palette/Java.png', getJavaPaletteData())
def getJavaModuleData(): return \
e01ce6194ed4f3cb4f346d4ab9fbbfdffab7a0c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/e01ce6194ed4f3cb4f346d4ab9fbbfdffab7a0c3/JavaSupport.plug-in.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18911, 3120, 751, 13332, 327, 521, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18911, 3120, 751, 13332, 327, 521, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
allParams = None
allParams = []
def update(self, value): self.stock_id = value[0] if self.stock_id: self.node.setAttribute('stock_id', self.stock_id) elif self.node.hasAttribute('stock_id'): self.node.removeAttribute('stock_id') xxxParam.update(self, value[1])
610e05a43333536658b4a620df1ba43791240903 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12725/610e05a43333536658b4a620df1ba43791240903/xxx.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 460, 4672, 365, 18, 15381, 67, 350, 273, 460, 63, 20, 65, 309, 365, 18, 15381, 67, 350, 30, 365, 18, 2159, 18, 542, 1499, 2668, 15381, 67, 350, 2187, 365, 18, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 460, 4672, 365, 18, 15381, 67, 350, 273, 460, 63, 20, 65, 309, 365, 18, 15381, 67, 350, 30, 365, 18, 2159, 18, 542, 1499, 2668, 15381, 67, 350, 2187, 365, 18, 1...
for lfn,repDict in res['Value']['Successful'].items(): if len(repDict.keys()) == 0: zeroReplicaFiles.append(lfn) if len(zeroReplicaFiles) > 0: res = self.removeFile(zeroReplicaFiles)
for lfn, repDict in res['Value']['Successful'].items(): if len( repDict.keys() ) == 0: zeroReplicaFiles.append( lfn ) if len( zeroReplicaFiles ) > 0: res = self.removeFile( zeroReplicaFiles )
def removeReplica(self, lfn): res = self.__checkArgumentFormat(lfn) if not res['OK']: return res lfns = res['Value'] created = False if len(lfns) > 2: created = self.__openSession() failed = {} successful = {} for lfn,info in lfns.items(): if (not info.has_key('PFN')) or (not info.has_key('SE')): failed[lfn] = "Require...
6280f3782654b93320f684f56a83a6624459bcec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/6280f3782654b93320f684f56a83a6624459bcec/LcgFileCatalogClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 14222, 12, 2890, 16, 328, 4293, 4672, 400, 273, 365, 16186, 1893, 1379, 1630, 12, 80, 4293, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, 400, 18594, 2387, 273, 400, 3292, 620, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 14222, 12, 2890, 16, 328, 4293, 4672, 400, 273, 365, 16186, 1893, 1379, 1630, 12, 80, 4293, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, 400, 18594, 2387, 273, 400, 3292, 620, 3...
develop_egg_link = os.path.join(lib_py, 'site-packages', dist.project_name) + '.egg-link'
develop_egg_link = os.path.join(lib_py, 'site-packages', dist.project_name) + '.egg-link'
def uninstall(self, auto_confirm=False): assert self.check_if_exists(), "Cannot uninstall requirement %s, not installed" % (self.name,) dist = self.satisfied_by remove_paths = set() remove_from_easy_install_pth = set() easy_install_pth = os.path.join(lib_py, os.path.join('site-packages', 'easy-install.pth'))
83f9d9c18b33d7eaefd25541ebfcc8eb4c825233 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12982/83f9d9c18b33d7eaefd25541ebfcc8eb4c825233/pip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16577, 12, 2890, 16, 3656, 67, 10927, 33, 8381, 4672, 1815, 365, 18, 1893, 67, 430, 67, 1808, 9334, 315, 4515, 16577, 12405, 738, 87, 16, 486, 5876, 6, 738, 261, 2890, 18, 529, 16, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16577, 12, 2890, 16, 3656, 67, 10927, 33, 8381, 4672, 1815, 365, 18, 1893, 67, 430, 67, 1808, 9334, 315, 4515, 16577, 12405, 738, 87, 16, 486, 5876, 6, 738, 261, 2890, 18, 529, 16, 1...
if len(indexList) > 1:
if len(indexList) >= 1:
def prepareChecklist(wikiFilename=None,wikiCoinc=None,wikiTree=None,file2URL=None): """ Method to prepare a checklist where data products are isolated in directory. """ endOfS5=int(875232014) wikiFileFinder=findFileType(wikiTree,wikiCoinc) # # Check to see if wiki file with name already exists # maxCount=0 while os.pat...
be59aad69241ec292bf7ade293713b7edd707ebd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/be59aad69241ec292bf7ade293713b7edd707ebd/makeCheckListWiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 1564, 1098, 12, 13044, 5359, 33, 7036, 16, 13044, 27055, 71, 33, 7036, 16, 13044, 2471, 33, 7036, 16, 768, 22, 1785, 33, 7036, 4672, 3536, 2985, 358, 2911, 279, 866, 1098, 1625, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 1564, 1098, 12, 13044, 5359, 33, 7036, 16, 13044, 27055, 71, 33, 7036, 16, 13044, 2471, 33, 7036, 16, 768, 22, 1785, 33, 7036, 4672, 3536, 2985, 358, 2911, 279, 866, 1098, 1625, ...
logger.debug(sql2 % (data['signature'], data['version'], data['product'], data['total'], data['win'], data['mac'], data['lin'], data['rank'], last_rank, "", data['uptime_average'], data['users']))
logger.debug(sql2 % (data['signature'], data['version'], data['product'], data['total'], data['win'], data['mac'], data['lin'], data['rank'], last_rank, "", data['uptime_average'], data['users'], update_time))
def calc_ranks(crashes): """ Calculate the new ranks of the crashes, by total number of crashes """ ranks = [] for signature, data in crashes.items(): ranks.append([signature, data['total']]) ranks = sorted(ranks, key=itemgetter(1)) ranks.reverse() for rank in range(0, len(ranks)): crashes[ranks[rank][0]]['rank'] = ...
5323035cc87dbb881b2513a10eff8e00ccc278ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12383/5323035cc87dbb881b2513a10eff8e00ccc278ab/topcrashes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 11500, 87, 12, 3353, 7690, 4672, 3536, 9029, 326, 394, 24828, 434, 326, 4422, 7690, 16, 635, 2078, 1300, 434, 4422, 7690, 3536, 24828, 273, 5378, 225, 364, 3372, 16, 501, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 11500, 87, 12, 3353, 7690, 4672, 3536, 9029, 326, 394, 24828, 434, 326, 4422, 7690, 16, 635, 2078, 1300, 434, 4422, 7690, 3536, 24828, 273, 5378, 225, 364, 3372, 16, 501, 316, ...
library_dirs=[dblib_dir], runtime_library_dirs=[dblib_dir],
library_dirs=dblib_dir, runtime_library_dirs=dblib_dir,
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
637e5aa23d513f9f0eb05233f49db4bd638d2eee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/637e5aa23d513f9f0eb05233f49db4bd638d2eee/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
if self._resultSet is not []:
if self._resultSet:
def onItemLoad(self, view): self._callbacks = {} self.monitorCallbacks = {} try: if self._resultSet is not []: self._compile() self._queryStringIsStale = False self.stale = False else: self._queryStringIsStale = True except AttributeError: self._queryStringIsStale = True self.stale = True
cbc0be7ef8988247369a52928cabf8d83ba84c80 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/cbc0be7ef8988247369a52928cabf8d83ba84c80/Query.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 1180, 2563, 12, 2890, 16, 1476, 4672, 365, 6315, 13316, 273, 2618, 365, 18, 10259, 10617, 273, 2618, 775, 30, 309, 365, 6315, 2088, 694, 30, 365, 6315, 11100, 1435, 365, 6315, 2271,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 1180, 2563, 12, 2890, 16, 1476, 4672, 365, 6315, 13316, 273, 2618, 365, 18, 10259, 10617, 273, 2618, 775, 30, 309, 365, 6315, 2088, 694, 30, 365, 6315, 11100, 1435, 365, 6315, 2271,...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 202) else quickfix.DoubleField.__init__(self, 202, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 26599, 13, 469, 9549, 904, 18, 5265, 974, 16186, 2738, 972, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 26599, 13, 469, 9549, 904, 18, 5265, 974, 16186, 2738, 972, ...
FL_Coord, STRING],
FL_Coord, STRING],
def fl_create_labelframe(type, x, y, w, h, label): """ fl_create_labelframe(type, x, y, w, h, label) -> object """ retval = _fl_create_labelframe(type, x, y, w, h, label) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 2640, 67, 1925, 3789, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 4672, 3536, 1183, 67, 2640, 67, 1925, 3789, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 2640, 67, 1925, 3789, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 4672, 3536, 1183, 67, 2640, 67, 1925, 3789, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, ...
for txt in glob.glob( os.path.join(statusObj.tmpdir, os.path.basename(hdr))[:-len(".hdr")] + ".[Tt][Xx][Tt]")
for txt in glob.glob( os.path.join(statusObj.tmpdir, os.path.basename(hdr))[:-len(".hdr")] + ".[Tt][Xx][Tt]"):
def genericBiosDup(statusObj, outputTopdir, logger, *args, **kargs): deps = {} packageXml = os.path.join(statusObj.tmpdir, "package.xml") # these are (int, str) tuple for sysId, reqver in common.getBiosDependencies( packageXml): deps[sysId] = reqver gotOne=False for hdr, id, ver in getHdrIdVer(statusObj.tmpdir): gotOn...
161f78de3845e3119b072c6cda552a723861c919 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/36/161f78de3845e3119b072c6cda552a723861c919/extract_bios.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5210, 38, 7441, 30419, 12, 2327, 2675, 16, 876, 3401, 1214, 16, 1194, 16, 380, 1968, 16, 2826, 79, 1968, 4672, 8740, 273, 2618, 2181, 4432, 273, 1140, 18, 803, 18, 5701, 12, 2327, 2675...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5210, 38, 7441, 30419, 12, 2327, 2675, 16, 876, 3401, 1214, 16, 1194, 16, 380, 1968, 16, 2826, 79, 1968, 4672, 8740, 273, 2618, 2181, 4432, 273, 1140, 18, 803, 18, 5701, 12, 2327, 2675...
self.assertEquals(events, [(client.fileno(), _epoll.OUT), (server.fileno(), _epoll.OUT)])
self.assertEquals( dict(events), {client.fileno(): _epoll.OUT, server.fileno(): _epoll.OUT})
def testControlAndWait(self): port = socket.socket() port.bind(('127.0.0.1', 0)) port.listen(1)
09f1fc70826634fec0dd123a6028d58c0f14463b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/09f1fc70826634fec0dd123a6028d58c0f14463b/test_epoll.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3367, 1876, 5480, 12, 2890, 4672, 1756, 273, 2987, 18, 7814, 1435, 1756, 18, 4376, 12, 2668, 14260, 18, 20, 18, 20, 18, 21, 2187, 374, 3719, 1756, 18, 18085, 12, 21, 13, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 3367, 1876, 5480, 12, 2890, 4672, 1756, 273, 2987, 18, 7814, 1435, 1756, 18, 4376, 12, 2668, 14260, 18, 20, 18, 20, 18, 21, 2187, 374, 3719, 1756, 18, 18085, 12, 21, 13, 2, -10...
polygon.strokewidth = 16
polygon.strokewidth = 12
def changePolygon(): polygon = canvas.getChild(0) polygon.strokewidth = 16 polygon.color="FFFF00" pos = polygon.pos pos.append((10, 90)) polygon.pos = pos
2f363736b7a0f54b60b2765120b4683855253046 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7300/2f363736b7a0f54b60b2765120b4683855253046/VectorTest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 11787, 13332, 7154, 273, 5953, 18, 588, 1763, 12, 20, 13, 7154, 18, 334, 3250, 14434, 273, 2593, 7154, 18, 3266, 1546, 8998, 713, 6, 949, 273, 7154, 18, 917, 949, 18, 6923, 12443...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2549, 11787, 13332, 7154, 273, 5953, 18, 588, 1763, 12, 20, 13, 7154, 18, 334, 3250, 14434, 273, 2593, 7154, 18, 3266, 1546, 8998, 713, 6, 949, 273, 7154, 18, 917, 949, 18, 6923, 12443...
o = sage.misc.misc.word_wrap(o, ncols=numcols)
def do_POST(self): global current_log, fulltext_log ctype, pdict = cgi.parse_header(self.headers.getheader('content-type')) length = int(self.headers.getheader('content-length')) if ctype == 'multipart/form-data': self.body = cgi.parse_multipart(self.rfile, pdict) elif ctype == 'application/x-www-form-urlencoded': qs =...
4769c49f27b63d5653f3113eb8009a910aa9fc8f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/4769c49f27b63d5653f3113eb8009a910aa9fc8f/server1.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3798, 12, 2890, 4672, 2552, 783, 67, 1330, 16, 1983, 955, 67, 1330, 11920, 16, 293, 1576, 273, 276, 10052, 18, 2670, 67, 3374, 12, 2890, 18, 2485, 18, 75, 546, 18105, 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, 741, 67, 3798, 12, 2890, 4672, 2552, 783, 67, 1330, 16, 1983, 955, 67, 1330, 11920, 16, 293, 1576, 273, 276, 10052, 18, 2670, 67, 3374, 12, 2890, 18, 2485, 18, 75, 546, 18105, 2668, ...
npos, _ = predictorCorrectorStep(siv, pos, h, 1e-6) if not npos: return poly nx = int(npos[0]) ny = int(npos[1]) if nx != x or ny != y:
npos, nh = predictorCorrectorStep(siv, pos, h, 1e-6) h = max(min(h, nh), 1e-5) nix = int(npos[0]) niy = int(npos[1]) if nix != ix or niy != iy:
def followContour(siv, geomap, nodeLabel, h): pos = geomap.node(nodeLabel).position() x = round(pos[0]) y = round(pos[1]) poly = [pos] while True: npos, _ = predictorCorrectorStep(siv, pos, h, 1e-6) if not npos: return poly nx = int(npos[0]) ny = int(npos[1]) if nx != x or ny != y: # determine grid intersection diff = ...
06f56e130542a1c91cca5aded8b43db966347318 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/06f56e130542a1c91cca5aded8b43db966347318/levelcontours.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2805, 660, 477, 12, 87, 427, 16, 7364, 438, 16, 756, 2224, 16, 366, 4672, 949, 273, 7364, 438, 18, 2159, 12, 2159, 2224, 2934, 3276, 1435, 619, 273, 3643, 12, 917, 63, 20, 5717, 677,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2805, 660, 477, 12, 87, 427, 16, 7364, 438, 16, 756, 2224, 16, 366, 4672, 949, 273, 7364, 438, 18, 2159, 12, 2159, 2224, 2934, 3276, 1435, 619, 273, 3643, 12, 917, 63, 20, 5717, 677,...
p = _parse(source, pattern, flags)
p = _parse(source, state, flags)
def _parse(source, pattern, flags=()): # parse regular expression pattern into an operator list. subpattern = SubPattern(pattern) this = None while 1: if str(source.next) in ("|", ")"): break # end of subpattern this = source.get() if this is None: break # end of pattern if this and this[0] not in SPECIAL_CHARS: ...
842e911e887411eb043a164240fdb6b694895e87 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/842e911e887411eb043a164240fdb6b694895e87/sre_parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 12, 3168, 16, 1936, 16, 2943, 33, 1435, 4672, 225, 468, 1109, 6736, 2652, 1936, 1368, 392, 3726, 666, 18, 225, 720, 4951, 273, 2592, 3234, 12, 4951, 13, 225, 333, 273, 599, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 3168, 16, 1936, 16, 2943, 33, 1435, 4672, 225, 468, 1109, 6736, 2652, 1936, 1368, 392, 3726, 666, 18, 225, 720, 4951, 273, 2592, 3234, 12, 4951, 13, 225, 333, 273, 599, ...
pkgitems = {}
def fetchPackages(self, packages, caching=OPTIONAL, targetdir=None): fetcher = self._fetcher fetcher.reset() fetcher.setCaching(caching) if targetdir is None: localdir = os.path.join(sysconf.get("data-dir"), "packages/") if not os.path.isdir(localdir): os.makedirs(localdir) fetcher.setLocalDir(localdir, mangle=False) e...
1c7fc105b076899caecec0e1ec9e513fa4221667 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/1c7fc105b076899caecec0e1ec9e513fa4221667/control.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2158, 11425, 12, 2890, 16, 5907, 16, 11393, 33, 14165, 16, 1018, 1214, 33, 7036, 4672, 20521, 273, 365, 6315, 5754, 264, 20521, 18, 6208, 1435, 20521, 18, 542, 17712, 12, 17703, 310, 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, 2158, 11425, 12, 2890, 16, 5907, 16, 11393, 33, 14165, 16, 1018, 1214, 33, 7036, 4672, 20521, 273, 365, 6315, 5754, 264, 20521, 18, 6208, 1435, 20521, 18, 542, 17712, 12, 17703, 310, 13,...
m = imp.load_module(name, open(filename), filename,('.py','U',1))
path = [os.path.dirname(filename)] file, pathname, description = imp.find_module(name, path) try: m = imp.load_module(name, file, pathname, description) finally: file.close()
def rundocs(self, filename=None): """ Run doc string tests found in filename. """ import doctest if filename is None: f = get_frame(1) filename = f.f_globals['__file__'] name = os.path.splitext(os.path.basename(filename))[0] m = imp.load_module(name, open(filename), filename,('.py','U',1)) tests = doctest.DocTestFinder...
ab513918819e227187168222ca8a81dc996d89ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/ab513918819e227187168222ca8a81dc996d89ca/numpytest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 1074, 22280, 12, 2890, 16, 1544, 33, 7036, 4672, 3536, 1939, 997, 533, 7434, 1392, 316, 1544, 18, 3536, 1930, 31263, 395, 309, 1544, 353, 599, 30, 284, 273, 336, 67, 3789, 12, 21,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 1074, 22280, 12, 2890, 16, 1544, 33, 7036, 4672, 3536, 1939, 997, 533, 7434, 1392, 316, 1544, 18, 3536, 1930, 31263, 395, 309, 1544, 353, 599, 30, 284, 273, 336, 67, 3789, 12, 21,...
child = self.endColumn()
self.endColumn()
def endElement(self, name): if name == AdcData.tagName: child = self.endAdcData() elif name == AdcInterval.tagName: child = self.endAdcInterval() elif name == Array.tagName: child = self.endArray() elif name == Column.tagName: child = self.endColumn() elif name == Comment.tagName: child = self.endComment() elif name ==...
6a0495b866a107c919f9c3e2efc75bc3e19b0d53 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/6a0495b866a107c919f9c3e2efc75bc3e19b0d53/ligolw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14840, 12, 2890, 16, 508, 4672, 309, 508, 422, 4052, 71, 751, 18, 2692, 461, 30, 1151, 273, 365, 18, 409, 1871, 71, 751, 1435, 1327, 508, 422, 4052, 71, 4006, 18, 2692, 461, 30, 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, 14840, 12, 2890, 16, 508, 4672, 309, 508, 422, 4052, 71, 751, 18, 2692, 461, 30, 1151, 273, 365, 18, 409, 1871, 71, 751, 1435, 1327, 508, 422, 4052, 71, 4006, 18, 2692, 461, 30, 1151...
'ja': u'Portal', 'pt': u'Desentrevistas', 'th': u'ไร้คำคม', 'zh-hk': u'香港語', 'zh-tw': u'香港語'
'ja': u'Portal', 'pt': u'Desentrevistas', 'th': u'ไร้คำคม', 'zh-hk': u'香港語', 'zh-tw': u'香港語'
def __init__(self): family.Family.__init__(self) self.name = 'uncyclopedia'
5291e54d99c50e05679c62b06fbab03ab3f57e0d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/5291e54d99c50e05679c62b06fbab03ab3f57e0d/uncyclopedia_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, 551, 93, 7550, 1845, 1155, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 6755, 18, 9203, 16186, 2738, 972, 12, 2890, 13, 365, 18, 529, 273, 296, 551, 93, 7550, 1845, 1155, 11, 2, -100, -100, -100, -100, -100, -100, -100, -10...
return
return 0
def push(self, repo, patch=None, force=False, list=False, mergeq=None, all=False, move=False): diffopts = self.diffopts() wlock = repo.wlock() try: heads = [] for b, ls in repo.branchmap().iteritems(): heads += ls if not heads: heads = [nullid] if repo.dirstate.parents()[0] not in heads: self.ui.status(_("(working dire...
4ed1cd18108dba38f4217aad85e12f4721ad3800 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/4ed1cd18108dba38f4217aad85e12f4721ad3800/mq.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1817, 12, 2890, 16, 3538, 16, 4729, 33, 7036, 16, 2944, 33, 8381, 16, 666, 33, 8381, 16, 2691, 85, 33, 7036, 16, 777, 33, 8381, 16, 3635, 33, 8381, 4672, 1901, 617, 1092, 273, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1817, 12, 2890, 16, 3538, 16, 4729, 33, 7036, 16, 2944, 33, 8381, 16, 666, 33, 8381, 16, 2691, 85, 33, 7036, 16, 777, 33, 8381, 16, 3635, 33, 8381, 4672, 1901, 617, 1092, 273, 365, ...
csweight, pw[prvpkg], order, "provide using %s" % prvpkg)
csweight, -getpriority(prvpkg), order, "provide using %s" % prvpkg)
def _pending(self, pending): trans = self._trans changeset = self._changeset locked = self._locked depth = self._depth if traceVerbosity<4: self.trace(1, "_pending(pw=%f, yw=%f)", (self._pruneweight, self._yieldweight)) else: self.trace(4, "_pending(%s, pw=%f, yw=%f)", (pending, self._pruneweight, self._yieldweight))
2ea21c157577a37e2ff2b7a187ee3525f5d9ba89 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/2ea21c157577a37e2ff2b7a187ee3525f5d9ba89/transaction.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9561, 12, 2890, 16, 4634, 4672, 906, 273, 365, 6315, 2338, 22463, 273, 365, 6315, 6329, 278, 8586, 273, 365, 6315, 15091, 3598, 273, 365, 6315, 5979, 309, 2606, 30594, 32, 24, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9561, 12, 2890, 16, 4634, 4672, 906, 273, 365, 6315, 2338, 22463, 273, 365, 6315, 6329, 278, 8586, 273, 365, 6315, 15091, 3598, 273, 365, 6315, 5979, 309, 2606, 30594, 32, 24, 30, ...
exts.append( Extension('_App', ['app/_Appmodule.c'],
exts.append( Extension('_Res', ['res/_Resmodule.c'],
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
bc1f5a74849c11691df5d869e4f8617ce8f90688 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/bc1f5a74849c11691df5d869e4f8617ce8f90688/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
OUTPUT: - an order in a quaternion algebra
OUTPUT: an order in a quaternion algebra
def left_order(self): """ Return the left order associated to this fractional ideal.
aa7c8c5c25a8f62637a37f480aa5f24e29d7fbee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/aa7c8c5c25a8f62637a37f480aa5f24e29d7fbee/quaternion_algebra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2002, 67, 1019, 12, 2890, 4672, 3536, 2000, 326, 2002, 1353, 3627, 358, 333, 20462, 23349, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2002, 67, 1019, 12, 2890, 4672, 3536, 2000, 326, 2002, 1353, 3627, 358, 333, 20462, 23349, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
sage: a(0) Traceback (most recent call last): ... ValueError: input n (=0) must be a positive integer sage: a(1) 6 sage: a(2) 28 sage: a(7) 137438691328 sage: a.list(7) [6, 28, 496, 8128, 33550336, 8589869056, 137438691328] AUTHOR: -- Jaap Spies (2007-01-25) """ def __init__(self):
INPUT: n -- positive integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000396;a Perfect numbers: equal to sum of proper divisors. sage: a(0) Traceback (most recent call last): ... ValueError: input n (=0) must be a positive integer sage: a(1) 6 sage: a(2) 28 sage: a(7) 137438691328 sage: a.list(7...
def _eval(self, n): return Integer(2**sloane.A000043(n) - 1)
d2510d4232e17c9cea8d1a0271c6be68a81d317b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/d2510d4232e17c9cea8d1a0271c6be68a81d317b/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 327, 2144, 12, 22, 636, 87, 383, 8806, 18, 37, 2787, 8942, 12, 82, 13, 300, 404, 13, 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, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 327, 2144, 12, 22, 636, 87, 383, 8806, 18, 37, 2787, 8942, 12, 82, 13, 300, 404, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
params={}
params=[]
def search_(self): learner=orngSVM.SVMLearner() for attr in ("name", "kernel_type", "degree", "shrinking", "probability", "normalization"): setattr(learner, attr, getattr(self, attr))
c2c788214d6d56a96f45200b47b17d6dfaead1f2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6366/c2c788214d6d56a96f45200b47b17d6dfaead1f2/OWSVM.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 12, 2890, 4672, 884, 24834, 33, 280, 3368, 55, 7397, 18, 23927, 1495, 2091, 1224, 1435, 364, 1604, 316, 7566, 529, 3113, 315, 8111, 67, 723, 3113, 315, 21361, 3113, 315, 674, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 12, 2890, 4672, 884, 24834, 33, 280, 3368, 55, 7397, 18, 23927, 1495, 2091, 1224, 1435, 364, 1604, 316, 7566, 529, 3113, 315, 8111, 67, 723, 3113, 315, 21361, 3113, 315, 674, ...
if fileId in _memo1_ and _memo1_[fileId].root == rootNode: script = _memo1_[fileId]
if _memo2_[0] == rootNode: script = _memo2_[1]
def getScript(node, fileId): # TODO: checking the root nodes is a fix, as they sometimes differ (prob. caching) rootNode = findRoot(node) #if fileId in _memo1_: if fileId in _memo1_ and _memo1_[fileId].root == rootNode: script = _memo1_[fileId] else: #rootNode = findRoot(node) #if fileId in _memo1_ and _memo1_[fileId]....
c7e5ea9850537859dec1341be81f8d9fc4ace1f9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/c7e5ea9850537859dec1341be81f8d9fc4ace1f9/DependencyLoader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22611, 12, 2159, 16, 21223, 4672, 468, 2660, 30, 6728, 326, 1365, 2199, 353, 279, 2917, 16, 487, 2898, 16594, 15221, 261, 7748, 18, 11393, 13, 10181, 273, 1104, 2375, 12, 2159, 13, 468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22611, 12, 2159, 16, 21223, 4672, 468, 2660, 30, 6728, 326, 1365, 2199, 353, 279, 2917, 16, 487, 2898, 16594, 15221, 261, 7748, 18, 11393, 13, 10181, 273, 1104, 2375, 12, 2159, 13, 468, ...
if dE < 0: last_state.x = current_state.x.copy() last_state.cost = current_state.cost
last_state.x = current_state.x.copy() last_state.cost = current_state.cost
def anneal(func, x0, args=(), schedule='fast', full_output=0, T0=None, Tf=1e-12, maxeval=None, maxaccept=None, maxiter=400, boltzmann=1.0, learn_rate=0.5, feps=1e-6, quench=1.0, m=1.0, n=1.0, lower=-100, upper=100, dwell=50): """Minimize a function using simulated annealing. Schedule is a schedule class implementing t...
5d83f70d8d9b65f40e4932969c9d8113c8f4f8cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/5d83f70d8d9b65f40e4932969c9d8113c8f4f8cd/anneal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 392, 4644, 287, 12, 644, 16, 619, 20, 16, 833, 33, 9334, 4788, 2218, 8076, 2187, 1983, 67, 2844, 33, 20, 16, 399, 20, 33, 7036, 16, 399, 74, 33, 21, 73, 17, 2138, 16, 943, 8622, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 392, 4644, 287, 12, 644, 16, 619, 20, 16, 833, 33, 9334, 4788, 2218, 8076, 2187, 1983, 67, 2844, 33, 20, 16, 399, 20, 33, 7036, 16, 399, 74, 33, 21, 73, 17, 2138, 16, 943, 8622, ...
a = a._ppimport_module
a = getattr(a,'_ppimport_module',a)
def ppresolve(a,ignore_failure=None): """ Return resolved object a. a can be module name, postponed module, postponed modules attribute, string representing module attribute, or any Python object. """ global _ppimport_is_enabled if _ppimport_is_enabled: disable() a = ppresolve(a,ignore_failure=ignore_failure) enable()...
932e8becfb3ad5bd3f7bb1de237c15e79aa1f00c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/932e8becfb3ad5bd3f7bb1de237c15e79aa1f00c/ppimport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8228, 10828, 12, 69, 16, 6185, 67, 12251, 33, 7036, 4672, 3536, 2000, 4640, 733, 279, 18, 225, 279, 848, 506, 1605, 508, 16, 1603, 500, 329, 1605, 16, 1603, 500, 329, 4381, 1566, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8228, 10828, 12, 69, 16, 6185, 67, 12251, 33, 7036, 4672, 3536, 2000, 4640, 733, 279, 18, 225, 279, 848, 506, 1605, 508, 16, 1603, 500, 329, 1605, 16, 1603, 500, 329, 4381, 1566, 16, ...
line()
line("map-open-2")
def compileNode(node, enableDebug=False): global indent global pretty if node.getChild("commentsBefore", False) != None: line() for comment in node.getChild("commentsBefore").children: # Additional new lines before big comment if comment.get("detail", False) == "multi": line() pretty += comment.get("text") # New ...
9899d5c45563dd4f9057d173402244e0cf855c51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5718/9899d5c45563dd4f9057d173402244e0cf855c51/prettyprint.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 907, 12, 2159, 16, 4237, 2829, 33, 8381, 4672, 225, 2552, 3504, 2552, 7517, 282, 309, 756, 18, 588, 1763, 2932, 9231, 4649, 3113, 1083, 13, 480, 599, 30, 980, 2932, 1458, 17, 319...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 907, 12, 2159, 16, 4237, 2829, 33, 8381, 4672, 225, 2552, 3504, 2552, 7517, 282, 309, 756, 18, 588, 1763, 2932, 9231, 4649, 3113, 1083, 13, 480, 599, 30, 980, 2932, 1458, 17, 319...
isContainer = self._isContainer(attr)
hasLength = self._hasLength(attr)
def run(self): try: while True: # yield up here instead of at the end, since we skip back to the # top of the while loop from various points yield None #import pdb;pdb.set_trace() curObj = None if self._curObjRef is None: self._curObjRef = self._baseObjRef try: for result in self._curObjRef.getContainer(): yield None c...
d9560fa19bec29d4ea08e0b58cd1b7384659f9ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/d9560fa19bec29d4ea08e0b58cd1b7384659f9ff/ContainerLeakDetector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 775, 30, 1323, 1053, 30, 468, 2824, 731, 2674, 3560, 434, 622, 326, 679, 16, 3241, 732, 2488, 1473, 358, 326, 468, 1760, 434, 326, 1323, 2798, 628, 11191, 3143, 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, 1086, 12, 2890, 4672, 775, 30, 1323, 1053, 30, 468, 2824, 731, 2674, 3560, 434, 622, 326, 679, 16, 3241, 732, 2488, 1473, 358, 326, 468, 1760, 434, 326, 1323, 2798, 628, 11191, 3143, 2...
def getCacheDir(tmpdir='/var/tmp', reuse=True):
def getCacheDir(tmpdir='/var/tmp', reuse=True, prefix='yum-'):
def getCacheDir(tmpdir='/var/tmp', reuse=True): """return a path to a valid and safe cachedir - only used when not running as root or when --tempcache is set""" uid = os.geteuid() try: usertup = pwd.getpwuid(uid) username = usertup[0] except KeyError: return None # if it returns None then, well, it's bollocksed prefi...
3f0d169e7eeb965c1e9d438fa6f278a8ab204950 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5445/3f0d169e7eeb965c1e9d438fa6f278a8ab204950/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8577, 1621, 12, 5645, 1214, 2218, 19, 1401, 19, 5645, 2187, 11827, 33, 5510, 16, 1633, 2218, 93, 379, 6627, 4672, 3536, 2463, 279, 589, 358, 279, 923, 471, 4183, 3472, 481, 300, 1338, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8577, 1621, 12, 5645, 1214, 2218, 19, 1401, 19, 5645, 2187, 11827, 33, 5510, 16, 1633, 2218, 93, 379, 6627, 4672, 3536, 2463, 279, 589, 358, 279, 923, 471, 4183, 3472, 481, 300, 1338, ...
self._priorValuesStack = Stack() self._curParamStack = Stack()
self._curParamStack = [] self._priorValuesStack = []
def __init__(self, *args, **kwArgs): assert issubclass(self.ParamSet, ParamObj.ParamSet) # If you pass in a ParamSet obj, its values will be applied to this # object in the constructor. params = None if len(args) == 1 and len(kwArgs) == 0: # if there's one argument, assume that it's a ParamSet params = args[0] elif len...
bc118592712a1b70a0b9a248ebe439604a6431c3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/bc118592712a1b70a0b9a248ebe439604a6431c3/PythonUtil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 9987, 2615, 4672, 1815, 14664, 12, 2890, 18, 786, 694, 16, 3014, 2675, 18, 786, 694, 13, 468, 971, 1846, 1342, 316, 279, 3014, 694, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 9987, 2615, 4672, 1815, 14664, 12, 2890, 18, 786, 694, 16, 3014, 2675, 18, 786, 694, 13, 468, 971, 1846, 1342, 316, 279, 3014, 694, ...
{'name':'VAT%s%%'%(p_tax*100), 'description':'VAT%s%%'%(p_tax*100),
{'name':'TAX%s%%'%(p_tax*100), 'description':'TAX%s%%'%(p_tax*100),
def execute(self, cr, uid, ids, context=None): if context is None: context = {} super(account_installer, self).execute(cr, uid, ids, context=context) record = self.browse(cr, uid, ids, context=context)[0] company_id = self.pool.get('res.users').browse(cr, uid, [uid], context)[0].company_id for res in self.read(cr, uid,...
3ac06a178ac1b3e9a98090f621c16012c5ba4454 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/3ac06a178ac1b3e9a98090f621c16012c5ba4454/installer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 2240, 12, 4631, 67, 20163, 16, 365, 2934, 8837, 12, 3353, 16, 4555, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 2240, 12, 4631, 67, 20163, 16, 365, 2934, 8837, 12, 3353, 16, 4555, 16,...
rho = L.solve(R, r[1:])
rho = np.linalg.solve(R, r[1:])
def yule_walker(self, X, order=1, method="unbiased", df=None, inv=False): """ Estimate AR(p) parameters from a sequence X using Yule-Walker equation. unbiased or maximum-likelihood estimator (mle) See, for example: http://en.wikipedia.org/wiki/Autoregressive_moving_average_model :Parameters: X : a 1d ndarray method...
d2943ba86f6fded3206a1c709529212d0c25be17 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12658/d2943ba86f6fded3206a1c709529212d0c25be17/regression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 677, 725, 67, 11348, 264, 12, 2890, 16, 1139, 16, 1353, 33, 21, 16, 707, 1546, 318, 13266, 8905, 3113, 3013, 33, 7036, 16, 2198, 33, 8381, 4672, 3536, 17787, 4988, 6052, 12, 84, 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, 677, 725, 67, 11348, 264, 12, 2890, 16, 1139, 16, 1353, 33, 21, 16, 707, 1546, 318, 13266, 8905, 3113, 3013, 33, 7036, 16, 2198, 33, 8381, 4672, 3536, 17787, 4988, 6052, 12, 84, 13, ...
help="filename with isochore segments. Also accepts a glob in parantheses [default=%default]." )
help="filename with isochore segments. Also accepts a glob in parentheses [default=%default]." )
def main( argv = None ): """script main. parses command line options in sys.argv, unless *argv* is given. """ if not argv: argv = sys.argv # setup command line parser parser = optparse.OptionParser( version = "%prog version: $Id: script_template.py 2871 2010-03-03 10:20:44Z andreas $", usage = globals()["__doc__"] )...
1a405cb5c805471533be3edcc09edf69ae1106a5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8016/1a405cb5c805471533be3edcc09edf69ae1106a5/gatrun.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 5261, 273, 599, 262, 30, 3536, 4263, 2774, 18, 225, 8940, 1296, 980, 702, 316, 2589, 18, 19485, 16, 3308, 380, 19485, 14, 353, 864, 18, 3536, 225, 309, 486, 5261, 30, 5261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 5261, 273, 599, 262, 30, 3536, 4263, 2774, 18, 225, 8940, 1296, 980, 702, 316, 2589, 18, 19485, 16, 3308, 380, 19485, 14, 353, 864, 18, 3536, 225, 309, 486, 5261, 30, 5261, ...
page = location.group(1)
contents = location.group(1)
def findpage(t): try: location = re.search(starttext+"([^\Z]*?)"+endtext,t) if include: page = location.group() else: page = location.group(1) except AttributeError: return try: title = re.search("'''(.*?)'''",page).group(1) except AttributeError: wikipedia.output(u"No title found - skipping a page.") else: pl = wikipe...
956a51cebb6f0b0d40ba72bd9751eeaf34e18a16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/956a51cebb6f0b0d40ba72bd9751eeaf34e18a16/pagefromfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 2433, 12, 88, 4672, 775, 30, 2117, 273, 283, 18, 3072, 12, 1937, 955, 9078, 19042, 62, 5772, 35, 2225, 15, 409, 955, 16, 88, 13, 309, 2341, 30, 1363, 273, 2117, 18, 1655, 1435,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2433, 12, 88, 4672, 775, 30, 2117, 273, 283, 18, 3072, 12, 1937, 955, 9078, 19042, 62, 5772, 35, 2225, 15, 409, 955, 16, 88, 13, 309, 2341, 30, 1363, 273, 2117, 18, 1655, 1435,...
Fields = StripComments(Fields)
Fields = StripComments(Fields).strip()
def CheckMemberVariableFormat(Value, ModelId): ErrMsgList = [] # Member variable format pattern. Pattern = re.compile(r'^[A-Z]+\S*[a-z]\S*$') LBPos = Value.find('{') RBPos = Value.find('}') Fields = Value[LBPos + 1 : RBPos] Fields = StripComments(Fields) if ModelId == DataClass.MODEL_IDENTIFIER_ENUMERATE: FieldsList =...
75928ff31b96e48c7c4f0ced9a86c86c6ef8e8f8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/914/75928ff31b96e48c7c4f0ced9a86c86c6ef8e8f8/c.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 4419, 3092, 1630, 12, 620, 16, 3164, 548, 4672, 1926, 3332, 682, 273, 5378, 468, 8596, 2190, 740, 1936, 18, 6830, 273, 283, 18, 11100, 12, 86, 19856, 63, 37, 17, 62, 26446, 55, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 4419, 3092, 1630, 12, 620, 16, 3164, 548, 4672, 1926, 3332, 682, 273, 5378, 468, 8596, 2190, 740, 1936, 18, 6830, 273, 283, 18, 11100, 12, 86, 19856, 63, 37, 17, 62, 26446, 55, ...
if type(devname) is TupleType: docs[ele.sig_name.data] = (ele.alt_name.data, ele.description.data, []) for d in devname: docs[ele.sig_name.data][2].append(d) else: docs[ele.sig_name.data] = (ele.alt_name.data, ele.description.data, [devname])
try: if type(devname) is TupleType: docs[ele.sig_name.data] = (ele.alt_name.data, ele.description.data, []) for d in devname: docs[ele.sig_name.data][2].append(d) else: docs[ele.sig_name.data] = (ele.alt_name.data, ele.description.data, [devname]) except AttributeError: pass
def create_tabs (string): "Create a number of tabs according to the length of string" x = '' lim = (32 - len(string) + 7) / 8 if lim <= 0: lim = 1 for i in range(0, lim): x += "\t" return x
5a603db73eac9b325d379217de41c4d0af0cfd30 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4046/5a603db73eac9b325d379217de41c4d0af0cfd30/patch-headers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 16056, 261, 1080, 4672, 315, 1684, 279, 1300, 434, 10920, 4888, 358, 326, 769, 434, 533, 6, 619, 273, 875, 20167, 273, 261, 1578, 300, 562, 12, 1080, 13, 397, 2371, 13, 342, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16056, 261, 1080, 4672, 315, 1684, 279, 1300, 434, 10920, 4888, 358, 326, 769, 434, 533, 6, 619, 273, 875, 20167, 273, 261, 1578, 300, 562, 12, 1080, 13, 397, 2371, 13, 342, ...
config['blog_title'] += ' : %s' % re.sub(r'/[^/]+\.\w+$','',data['pi_bl'])
config['blog_title'] += ' : %s' % filename
def run(self): """ Main loop for pyblosxom. """ config = self._request.getConfiguration() data = self._request.getData() pyhttp = self._request.getHttp()
b0a8896393d7b257c437ce75077b8d462908b7aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11836/b0a8896393d7b257c437ce75077b8d462908b7aa/pyblosxom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 12740, 2798, 364, 2395, 70, 383, 30319, 362, 18, 3536, 642, 273, 365, 6315, 2293, 18, 588, 1750, 1435, 501, 273, 365, 6315, 2293, 18, 588, 751, 1435, 2395, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4672, 3536, 12740, 2798, 364, 2395, 70, 383, 30319, 362, 18, 3536, 642, 273, 365, 6315, 2293, 18, 588, 1750, 1435, 501, 273, 365, 6315, 2293, 18, 588, 751, 1435, 2395, ...
This is an interface for a function (with attributes) which participates in a given Flow. It is typical to implement this using a function given attributes. Every attribute may be missing to provide minimal behavior. isIterable This is true if the function returns an iterable object; in 2.1 this is either a list o...
This function constructs a FlowStage tuple which is used inside the Flow mechanism to track state, etc. If an argument is provided, then it is used; otherwise the callable is searched for the same attribute, else, the default is used. onFinish This function attribute, if present, will be called after all subordin...
def iter(lst): from types import ListType, TupleType if type(lst) == type([]) or type(lst) == type(tuple()): return _ListIterator(lst) else: return lst.__iter__()
4cf3103eb894bde67fe5e1250725e8ef11de7f5a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/4cf3103eb894bde67fe5e1250725e8ef11de7f5a/flow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 12, 16923, 4672, 628, 1953, 1930, 987, 559, 16, 7257, 559, 309, 618, 12, 16923, 13, 422, 618, 3816, 5717, 578, 618, 12, 16923, 13, 422, 618, 12, 8052, 1435, 4672, 327, 389, 682, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1400, 12, 16923, 4672, 628, 1953, 1930, 987, 559, 16, 7257, 559, 309, 618, 12, 16923, 13, 422, 618, 3816, 5717, 578, 618, 12, 16923, 13, 422, 618, 12, 8052, 1435, 4672, 327, 389, 682, ...
presenceclient.login(reactor, webappConfig.registration_host, webappConfig.registration_port, maayPortal.webQuerier, webappConfig.get_node_id(), socket.gethostbyname(socket.gethostname()), webappConfig.rpcserver_port, webappConfig.bandwidth)
presenceclient.notify(reactor, webappConfig.registration_host, webappConfig.registration_port, maayPortal.webQuerier, webappConfig.get_node_id(), socket.gethostbyname(socket.gethostname()), webappConfig.rpcserver_port, webappConfig.bandwidth)
def run(): webappConfig = ServerConfiguration() webappConfig.load() maayPortal = MaayPortal(webappConfig) website = appserver.NevowSite(MaaySessionWrapper(maayPortal, mindFactory=MaayMindFactory)) website.remember(Maay404(), inevow.ICanHandleNotFound) website.remember(webappConfig, IServerConfiguration) presenceclient....
c492f5906afea8cae65017a9cc09193a66a755e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2259/c492f5906afea8cae65017a9cc09193a66a755e1/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 13332, 28945, 809, 273, 3224, 1750, 1435, 28945, 809, 18, 945, 1435, 10843, 528, 24395, 273, 490, 69, 528, 24395, 12, 4875, 2910, 809, 13, 12504, 273, 595, 3567, 18, 6586, 90, 543,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13332, 28945, 809, 273, 3224, 1750, 1435, 28945, 809, 18, 945, 1435, 10843, 528, 24395, 273, 490, 69, 528, 24395, 12, 4875, 2910, 809, 13, 12504, 273, 595, 3567, 18, 6586, 90, 543,...
if splitter >= 0 and not string[splitter + 1] == '=':
if splitter >= 0 and not string[splitter + 1] == '=' and splitter < 80:
def __FindSplit(self, string): """Finds a place to split a string.""" splitter = string.find('=') if splitter >= 0 and not string[splitter + 1] == '=': return splitter parts = string.split('(') if len(parts) > 1: splitter = len(parts[0]) for ii in range(1, len(parts)): if not parts[ii - 1][-3:] == "if ": return splitte...
8a837bb40249dfd9f0a2736abdab4f64592c99db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/8a837bb40249dfd9f0a2736abdab4f64592c99db/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3125, 5521, 12, 2890, 16, 533, 4672, 3536, 8947, 279, 3166, 358, 1416, 279, 533, 12123, 21553, 273, 533, 18, 4720, 2668, 2218, 13, 309, 21553, 1545, 374, 471, 486, 533, 63, 4939, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3125, 5521, 12, 2890, 16, 533, 4672, 3536, 8947, 279, 3166, 358, 1416, 279, 533, 12123, 21553, 273, 533, 18, 4720, 2668, 2218, 13, 309, 21553, 1545, 374, 471, 486, 533, 63, 4939, ...
logerror(traceback.format_exc()) self.close()
except: logerror(traceback.format_exc()) self.close()
def handle_error(self): """Called to handle any uncaught exceptions.""" try: raise except (KeyboardInterrupt, SystemExit, asyncore.ExitNow): raise logerror(traceback.format_exc()) self.close()
14dfdb7c027f301585f2ee98435e61f18386ca06 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7236/14dfdb7c027f301585f2ee98435e61f18386ca06/ftpserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 1636, 12, 2890, 4672, 3536, 8185, 358, 1640, 1281, 6301, 16510, 4798, 12123, 775, 30, 1002, 1335, 261, 17872, 14126, 16, 25454, 16, 4326, 479, 18, 6767, 8674, 4672, 1002, 613, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 1636, 12, 2890, 4672, 3536, 8185, 358, 1640, 1281, 6301, 16510, 4798, 12123, 775, 30, 1002, 1335, 261, 17872, 14126, 16, 25454, 16, 4326, 479, 18, 6767, 8674, 4672, 1002, 613, ...
// *********************************************** // ** Get number of local types + 1 // returns: value >= 1. 1 means that there are no local types. long GetMaxLocalType(void);
def ParseTypes(inputtype, flags): """ Parse type declarations @param input: file name or C declarations (depending on the flags) @param flags: combination of PT_... constants or 0 @return: number of errors """ return idaapi.idc_parse_types(inputtype, flags)
7d0f7431439c021ca8ff7fab2a58afcbdd115fe3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4773/7d0f7431439c021ca8ff7fab2a58afcbdd115fe3/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2884, 2016, 12, 2630, 723, 16, 2943, 4672, 3536, 2884, 618, 12312, 225, 632, 891, 810, 30, 585, 508, 578, 385, 12312, 261, 5817, 310, 603, 326, 2943, 13, 632, 891, 2943, 30, 10702, 434...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2884, 2016, 12, 2630, 723, 16, 2943, 4672, 3536, 2884, 618, 12312, 225, 632, 891, 810, 30, 585, 508, 578, 385, 12312, 261, 5817, 310, 603, 326, 2943, 13, 632, 891, 2943, 30, 10702, 434...
self._canvas.ellipse(x1,y1,x2,y2)
self._canvas.ellipse(x1,y1,x2,y2, link_info=self._get_link_info_dict(ellipse))
def drawEllipse(self, ellipse): #need to convert to pdfgen's bounding box representation x1 = ellipse.cx - ellipse.rx x2 = ellipse.cx + ellipse.rx y1 = ellipse.cy - ellipse.ry y2 = ellipse.cy + ellipse.ry self._canvas.ellipse(x1,y1,x2,y2)
37afe6db14252697b2c6f0bd32cd0cbf4e4ebe03 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3878/37afe6db14252697b2c6f0bd32cd0cbf4e4ebe03/renderSVG.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 4958, 10472, 12, 2890, 16, 26838, 4672, 468, 14891, 358, 1765, 358, 4863, 2137, 275, 1807, 7552, 3919, 4335, 619, 21, 273, 26838, 18, 71, 92, 300, 26838, 18, 20122, 619, 22, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 4958, 10472, 12, 2890, 16, 26838, 4672, 468, 14891, 358, 1765, 358, 4863, 2137, 275, 1807, 7552, 3919, 4335, 619, 21, 273, 26838, 18, 71, 92, 300, 26838, 18, 20122, 619, 22, 273, ...
if (medication.rx_count > 1):
if (medication[0].rx_count > 1):
def prescription(request, patient_id, medication_idx='0'): user_state = _get_user_state(request) ctx = get_base_context(request, 'prescription', user_state, patient_id) ss = SiteState.objects.get_or_create(user=request.user)[0] ss.save_last_location(request.path, ctx['section']) idx = int(medication_idx) previous_ur...
047a1cc88104fea0534da6171920931b7745b17f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5732/047a1cc88104fea0534da6171920931b7745b17f/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4075, 24136, 12, 2293, 16, 18608, 67, 350, 16, 6735, 829, 67, 3465, 2218, 20, 11, 4672, 729, 67, 2019, 273, 389, 588, 67, 1355, 67, 2019, 12, 2293, 13, 1103, 273, 336, 67, 1969, 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, 4075, 24136, 12, 2293, 16, 18608, 67, 350, 16, 6735, 829, 67, 3465, 2218, 20, 11, 4672, 729, 67, 2019, 273, 389, 588, 67, 1355, 67, 2019, 12, 2293, 13, 1103, 273, 336, 67, 1969, 67, ...
from GXD_Expression where _AssayType_key in (1,2,3,4,5,6,8,9)', 'auto')
'from GXD_Expression where _AssayType_key in (1,2,3,4,5,6,8,9)', 'auto')
def fullCoded(): # # Full Coded stats uses GXD_Expression # fp.write(2*CRT + 'GXD Assay and Results:' + 2*CRT) db.sql('select _Assay_key, _Refs_key, _Marker_key, source = "E" into #gxd ' + \ 'from GXD_Expression where _Refs_key in %s ' + \ 'and _AssayType_key in (1,2,3,4,5,6,8,9)' % (electronic), None) db.sql('inser...
1793da969b474b042e9c1a10792d75517b4a68aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/340/1793da969b474b042e9c1a10792d75517b4a68aa/GXD_Stats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1983, 1085, 72, 13332, 225, 468, 468, 11692, 3356, 72, 3177, 4692, 611, 22953, 67, 2300, 468, 225, 4253, 18, 2626, 12, 22, 14, 5093, 56, 397, 296, 43, 22953, 4725, 528, 471, 10351, 249...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1983, 1085, 72, 13332, 225, 468, 468, 11692, 3356, 72, 3177, 4692, 611, 22953, 67, 2300, 468, 225, 4253, 18, 2626, 12, 22, 14, 5093, 56, 397, 296, 43, 22953, 4725, 528, 471, 10351, 249...
try: d[str] = _deepcopy_atomic except NameError: pass
def _deepcopy_atomic(x, memo): return x
7b7242c2f68fba436df5e0b646ad32687c57c1e7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/7b7242c2f68fba436df5e0b646ad32687c57c1e7/copy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16589, 3530, 67, 27718, 12, 92, 16, 11063, 4672, 327, 619, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16589, 3530, 67, 27718, 12, 92, 16, 11063, 4672, 327, 619, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
except: continue elif (bond[0].startswith('H') or bond[1].startswith('H')): if show_hydrogen: if (bond[0] in mc_atoms or bond[1] in mc_atoms): try: mc_h_veclist += kin_vec(key_hash[bond[0]],
except: continue elif (bond[0].startswith('H') or bond[1].startswith('H')): if show_hydrogen: if (bond[0] in mc_atoms or bond[1] in mc_atoms): try: mc_h_veclist += kin_vec(key_hash[bond[0]],
def get_kin_lots(chain, pdbID=None, index=0, show_hydrogen=True): mc_atoms = ["N", "CA", "C", "O", "OXT", "P", "OP1", "OP2", "O5'", "C5'", "C4'", "O4'", "C1'", "C3'", "O3'", "C2'", "O2'"] mc_veclist = "" sc_veclist = "" mc_h_veclist = "" sc_h_veclist = "" ca_trace = "" virtual_bb = "" water_list = "" kin_out = "" color...
cf23624f960f6654c1080d039c5b085f6133a56c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/cf23624f960f6654c1080d039c5b085f6133a56c/validation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 15984, 67, 80, 6968, 12, 5639, 16, 10892, 734, 33, 7036, 16, 770, 33, 20, 16, 2405, 67, 18112, 24096, 33, 5510, 4672, 6108, 67, 14937, 273, 8247, 50, 3113, 315, 3587, 3113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15984, 67, 80, 6968, 12, 5639, 16, 10892, 734, 33, 7036, 16, 770, 33, 20, 16, 2405, 67, 18112, 24096, 33, 5510, 4672, 6108, 67, 14937, 273, 8247, 50, 3113, 315, 3587, 3113, ...
res[r[self._fields_id][0]].append(r['id'])
res.setdefault(r[self._fields_id][0], []).append(r['id'])
def get(self, cr, obj, ids, name, user=None, offset=0, context={}, values={}): res = {} for id in ids: res[id] = []
79f8455aadedd62976f313be75d3d2ab7c5a5e1f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/79f8455aadedd62976f313be75d3d2ab7c5a5e1f/hr_timesheet_sheet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 4422, 16, 1081, 16, 3258, 16, 508, 16, 729, 33, 7036, 16, 1384, 33, 20, 16, 819, 28793, 924, 12938, 4672, 400, 273, 2618, 364, 612, 316, 3258, 30, 400, 63, 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, 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, 16, 4422, 16, 1081, 16, 3258, 16, 508, 16, 729, 33, 7036, 16, 1384, 33, 20, 16, 819, 28793, 924, 12938, 4672, 400, 273, 2618, 364, 612, 316, 3258, 30, 400, 63, 350, ...
if self.old_AR is not None: os.environ['AR'] = self.old_AR
for name, value in self.old_flags: if value is not None: os.environ[name] = value elif name in os.environ: del os.environ[name]
def tearDown(self): if self.old_AR is not None: os.environ['AR'] = self.old_AR
ba353e807acff73f4507094462498cffd00b2b0d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/ba353e807acff73f4507094462498cffd00b2b0d/test_sysconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 309, 365, 18, 1673, 67, 985, 353, 486, 599, 30, 1140, 18, 28684, 3292, 985, 3546, 273, 365, 18, 1673, 67, 985, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 309, 365, 18, 1673, 67, 985, 353, 486, 599, 30, 1140, 18, 28684, 3292, 985, 3546, 273, 365, 18, 1673, 67, 985, 2, -100, -100, -100, -100, -100, -100, ...
if not validFocus and menuEvent: processMenuWinEvent(*menuEvent)
if menuEvent: if menuEvent[0] in (winUser.EVENT_SYSTEM_MENUSTART, winUser.EVENT_SYSTEM_MENUPOPUPSTART): processMenuStartWinEvent(*menuEvent, validFocus=validFocus) else: processMenuEndWinEvent(*menuEvent, validFocus=validFocus)
def pumpAll(): #Receive all the winEvents from the limiter for this cycle winEvents=winEventLimiter.flushEvents() focusWinEvents=[] validFocus=False menuEvent=None for winEvent in winEvents: #We want to only pass on one focus event to NVDA, but we always want to use the most recent possible one if winEvent[0]==winUser....
b59046b91fbffcda489d70a94caba32ca89099e5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/b59046b91fbffcda489d70a94caba32ca89099e5/IAccessibleHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 2801, 1595, 13332, 468, 11323, 777, 326, 5657, 3783, 628, 326, 25057, 364, 333, 8589, 5657, 3783, 33, 8082, 1133, 22329, 18, 11330, 3783, 1435, 7155, 18049, 3783, 33, 8526, 923, 9233,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 2801, 1595, 13332, 468, 11323, 777, 326, 5657, 3783, 628, 326, 25057, 364, 333, 8589, 5657, 3783, 33, 8082, 1133, 22329, 18, 11330, 3783, 1435, 7155, 18049, 3783, 33, 8526, 923, 9233,...
version = '0.1'
version = '0.1.2'
def _get_installed_version_from_module(self, module): try: return module.get_version().split()[0] except AttributeError: return '0.9.6'
cb27925b9b104ac853c7497d9352db8513f29608 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/cb27925b9b104ac853c7497d9352db8513f29608/build_externals.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 13435, 67, 1589, 67, 2080, 67, 2978, 12, 2890, 16, 1605, 4672, 775, 30, 327, 1605, 18, 588, 67, 1589, 7675, 4939, 1435, 63, 20, 65, 1335, 6394, 30, 327, 296, 20, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 13435, 67, 1589, 67, 2080, 67, 2978, 12, 2890, 16, 1605, 4672, 775, 30, 327, 1605, 18, 588, 67, 1589, 7675, 4939, 1435, 63, 20, 65, 1335, 6394, 30, 327, 296, 20, 18, ...