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
identity.__doc__ = projection_func_identity.__doc__
def identity(self): """ Returns the identity projection.
58a962fefc201dcfd3e2e47df0f7b0e2cedced92 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/58a962fefc201dcfd3e2e47df0f7b0e2cedced92/polyhedra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4215, 12, 2890, 4672, 3536, 2860, 326, 4215, 8106, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4215, 12, 2890, 4672, 3536, 2860, 326, 4215, 8106, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if value == d[keyword]:
if keyword in d and value == d[keyword]:
def convertSection(cls, section):
912b3c0549a44850b5d18f984e16c0259760d52e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11522/912b3c0549a44850b5d18f984e16c0259760d52e/userparams.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 5285, 12, 6429, 16, 2442, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 5285, 12, 6429, 16, 2442, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if isinstance(h._mask,numpy.ndarray): if mask is None: mask = h._mask else: mask = numpy.logical_or(mask,h._mask)
mask = setmask(mask,h._mask)
def getNcData(self,bounds=None,allowmask=True): # Return values from cache if available. if 'z' in self.store.cachedcoords: if bounds is None: return self.store.cachedcoords[self.dimname] else: return self.store.cachedcoords[self.dimname][bounds]
f26d80226d42d686aa0d5a1aaee6b49e84e8a3bc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/381/f26d80226d42d686aa0d5a1aaee6b49e84e8a3bc/data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11069, 71, 751, 12, 2890, 16, 10576, 33, 7036, 16, 5965, 4455, 33, 5510, 4672, 468, 2000, 924, 628, 1247, 309, 2319, 18, 309, 296, 94, 11, 316, 365, 18, 2233, 18, 7097, 9076, 30, 309...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11069, 71, 751, 12, 2890, 16, 10576, 33, 7036, 16, 5965, 4455, 33, 5510, 4672, 468, 2000, 924, 628, 1247, 309, 2319, 18, 309, 296, 94, 11, 316, 365, 18, 2233, 18, 7097, 9076, 30, 309...
d = loopUntil(lambda :getattr(s, 'protocol', None) is not None)
d = loopUntil( lambda: (getattr(s, 'protocol', None) is not None and getattr(cf, 'protocol', None) is not None))
def testConnectByService(self): serv = socket.getservbyname d = defer.succeed(None) try: s = MyServerFactory() port = reactor.listenTCP(0, s, interface="127.0.0.1") self.n = port.getHost().port socket.getservbyname = (lambda s, p,n=self.n: s == 'http' and p == 'tcp' and n or 10) self.ports.append(port) cf = MyClientFac...
96c9d948b9500c490a54d12457876b705c1a2f4b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/96c9d948b9500c490a54d12457876b705c1a2f4b/test_tcp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 5215, 858, 1179, 12, 2890, 4672, 13515, 273, 2987, 18, 588, 23039, 1637, 529, 302, 273, 2220, 18, 87, 5286, 5288, 12, 7036, 13, 775, 30, 272, 273, 8005, 2081, 1733, 1435, 1756, 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, 5215, 858, 1179, 12, 2890, 4672, 13515, 273, 2987, 18, 588, 23039, 1637, 529, 302, 273, 2220, 18, 87, 5286, 5288, 12, 7036, 13, 775, 30, 272, 273, 8005, 2081, 1733, 1435, 1756, 2...
'fiscal_position': fpos
'fiscal_position': fpos,
def _makeOrder(self, cr, uid, data, context): pool = pooler.get_pool(cr.dbname) case_obj = pool.get('crm.case') sale_obj = pool.get('sale.order') partner_obj = pool.get('res.partner') sale_line_obj = pool.get('sale.order.line')
98c0c350443f94f2e610594c870cff2cdd5e73cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/98c0c350443f94f2e610594c870cff2cdd5e73cf/makesale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6540, 2448, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 2845, 273, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 13, 648, 67, 2603, 273, 2845, 18, 588, 2668, 3353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6540, 2448, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 2845, 273, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 13, 648, 67, 2603, 273, 2845, 18, 588, 2668, 3353...
maxNumSubInCloud = 1 if nUserSub >= maxNumSubInCloud:
maxNumSubInAllCloud = 1 if totalUserSub >= maxNumSubInAllCloud:
def run(self): try: # check cloud if not self.jobs[0].cloud in ['US','FR']: return self.putLog("start for %s" % self.jobs[0].cloud) # ignore HC and group production if self.jobs[0].processingType in ['hammercloud','gangarobot']: self.putLog("skip due to processingType=%s" % self.jobs[0].processingType) self.putLog("end...
a629e68319bffcc2eb3c4cbb966a1d12e08cd038 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7525/a629e68319bffcc2eb3c4cbb966a1d12e08cd038/DynDataDistributer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 775, 30, 468, 866, 5051, 309, 486, 365, 18, 10088, 63, 20, 8009, 7277, 316, 10228, 3378, 17023, 9981, 3546, 30, 327, 365, 18, 458, 1343, 2932, 1937, 364, 738, 87,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 775, 30, 468, 866, 5051, 309, 486, 365, 18, 10088, 63, 20, 8009, 7277, 316, 10228, 3378, 17023, 9981, 3546, 30, 327, 365, 18, 458, 1343, 2932, 1937, 364, 738, 87,...
a,
a,
def refine_func(vertices, area): from pytools import average centroid_y = average(vertex[1] for vertex in vertices) if a[1]+fine_start_h <= centroid_y <= a[1]+fine_end_h: return area > inner_max_area else: return area > max_area
592adeeb615eb5497b4dae9329f92c603720e638 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12869/592adeeb615eb5497b4dae9329f92c603720e638/geometry.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30446, 67, 644, 12, 17476, 16, 5091, 4672, 628, 2395, 6642, 1930, 8164, 16767, 67, 93, 273, 8164, 12, 15281, 63, 21, 65, 364, 5253, 316, 6928, 13, 309, 279, 63, 21, 3737, 74, 558, 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, 30446, 67, 644, 12, 17476, 16, 5091, 4672, 628, 2395, 6642, 1930, 8164, 16767, 67, 93, 273, 8164, 12, 15281, 63, 21, 65, 364, 5253, 316, 6928, 13, 309, 279, 63, 21, 3737, 74, 558, 67...
if line.rfind('NBANDS')>-1:
if line.rfind('NBANDS') > -1:
def read_nbands(self): for line in open('OUTCAR', 'r'): if line.rfind('NBANDS')>-1: return int(line.split()[-1])
f319b09952056596d7df62ec35bfe002d4aee2cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5735/f319b09952056596d7df62ec35bfe002d4aee2cf/vasp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 6423, 5708, 12, 2890, 4672, 364, 980, 316, 1696, 2668, 5069, 39, 985, 2187, 296, 86, 11, 4672, 309, 980, 18, 86, 4720, 2668, 20626, 1258, 3948, 6134, 405, 300, 21, 30, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 6423, 5708, 12, 2890, 4672, 364, 980, 316, 1696, 2668, 5069, 39, 985, 2187, 296, 86, 11, 4672, 309, 980, 18, 86, 4720, 2668, 20626, 1258, 3948, 6134, 405, 300, 21, 30, 327, ...
scrolledwindow.add(self.contactList)
self.scrolledwindow.add(self.contactList)
def build_interface(self): actions = ( ("New", gtk.STOCK_NEW, None, None, _("Create a new contact"), self.newButton_click), ("Open", gtk.STOCK_OPEN, None, None, _("Open and import contacts"), self.openButton_click), ("Delete", gtk.STOCK_DELETE, None, None, _("Delete the selected contact"), self.deleteButton_click), ("C...
a8a4c6ca09f6afe3062c9a37ce6363c545145985 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2651/a8a4c6ca09f6afe3062c9a37ce6363c545145985/arkadas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 5831, 12, 2890, 4672, 4209, 273, 261, 7566, 1908, 3113, 22718, 18, 31487, 3507, 67, 12917, 16, 599, 16, 599, 16, 389, 2932, 1684, 279, 394, 5388, 6, 3631, 365, 18, 2704, 3616...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 5831, 12, 2890, 4672, 4209, 273, 261, 7566, 1908, 3113, 22718, 18, 31487, 3507, 67, 12917, 16, 599, 16, 599, 16, 389, 2932, 1684, 279, 394, 5388, 6, 3631, 365, 18, 2704, 3616...
if self.unsuppressedPrefixes is None or in_subset: xml_attrs.append(a)
if _inclusive(self) or (in_subset and _in_subset(self.subset, a)): xml_attrs_local[a.nodeName] = a
def _do_element(self, node, initial_other_attrs = []): '''_do_element(self, node, initial_other_attrs = []) -> None Process an element (and its children).'''
eac45ef0ae4c46468fce1a5d88da06c712dbb153 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/eac45ef0ae4c46468fce1a5d88da06c712dbb153/c14n.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 2956, 12, 2890, 16, 756, 16, 2172, 67, 3011, 67, 7039, 273, 5378, 4672, 9163, 67, 2896, 67, 2956, 12, 2890, 16, 756, 16, 2172, 67, 3011, 67, 7039, 273, 5378, 13, 317, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 2896, 67, 2956, 12, 2890, 16, 756, 16, 2172, 67, 3011, 67, 7039, 273, 5378, 4672, 9163, 67, 2896, 67, 2956, 12, 2890, 16, 756, 16, 2172, 67, 3011, 67, 7039, 273, 5378, 13, 317, ...
ufl_assert(o is x2, "How did this happen?") return (o, xdiff)
c = (o, op) self._variable_cache[l] = c return c
def variable(self, o): if o.label() == self._variable.label(): op = self._make_ones_diff(o) return (o, op) else: self._variable_cache[o._expression] = o x2, xdiff = self.visit(o._expression) ufl_assert(o is x2, "How did this happen?") return (o, xdiff)
8be723d9b957f1b19db2cd66f3cdd9bc6c338e28 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/624/8be723d9b957f1b19db2cd66f3cdd9bc6c338e28/forward_ad.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2190, 12, 2890, 16, 320, 4672, 309, 320, 18, 1925, 1435, 422, 365, 6315, 6105, 18, 1925, 13332, 1061, 273, 365, 6315, 6540, 67, 5322, 67, 5413, 12, 83, 13, 327, 261, 83, 16, 1061, 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, 2190, 12, 2890, 16, 320, 4672, 309, 320, 18, 1925, 1435, 422, 365, 6315, 6105, 18, 1925, 13332, 1061, 273, 365, 6315, 6540, 67, 5322, 67, 5413, 12, 83, 13, 327, 261, 83, 16, 1061, 13...
assert _is_real_matrix(x) assert y.type == x.type
if not _is_real_matrix(x): raise TypeError(x) if not _is_real_matrix(x): raise TypeError(y) if y.type.dtype != x.type.dtype: raise TypeError('dtype mismatch to Dot22') out_shape = (x.type.shape[0], y.type.shape[1])
def make_node(self, x, y): assert _is_real_matrix(x) assert y.type == x.type #makes sure y is a matrix bz = [False, False] outputs = [T.tensor(x.type.dtype, bz)] return Apply(self, [x,y], outputs)
24d00ecd1e6531dfb98323cb1474df66a4d3c3fa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/24d00ecd1e6531dfb98323cb1474df66a4d3c3fa/blas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 2159, 12, 2890, 16, 619, 16, 677, 4672, 309, 486, 389, 291, 67, 7688, 67, 5667, 12, 92, 4672, 1002, 3580, 12, 92, 13, 309, 486, 389, 291, 67, 7688, 67, 5667, 12, 92, 4672...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 2159, 12, 2890, 16, 619, 16, 677, 4672, 309, 486, 389, 291, 67, 7688, 67, 5667, 12, 92, 4672, 1002, 3580, 12, 92, 13, 309, 486, 389, 291, 67, 7688, 67, 5667, 12, 92, 4672...
If nothing handles the request, then we use the default_blosxom_handler.
If nothing handles the request, then we use the default blosxom_handler.
def run(self, static=False): """ This is the main loop for PyBlosxom. This method will run the handle callback to allow registered handlers to handle the request. If nothing handles the request, then we use the default_blosxom_handler.
c448cc5127be70118de9005d5ed536fb2469850d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11836/c448cc5127be70118de9005d5ed536fb2469850d/pyblosxom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 760, 33, 8381, 4672, 3536, 1220, 353, 326, 2774, 2798, 364, 4707, 38, 383, 30319, 362, 18, 225, 1220, 707, 903, 1086, 326, 1640, 1348, 358, 1699, 4104, 4919, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 760, 33, 8381, 4672, 3536, 1220, 353, 326, 2774, 2798, 364, 4707, 38, 383, 30319, 362, 18, 225, 1220, 707, 903, 1086, 326, 1640, 1348, 358, 1699, 4104, 4919, 358, 1...
module_dirs, temp_dir=self.build_temp)
module_dirs, temp_dir=self.build_temp, build_dir=self.build_flib, )
def build_libraries (self, fortran_libraries): fcompiler = self.fcompiler for (lib_name, build_info) in fortran_libraries: self.announce(" building '%s' library" % lib_name)
339894e598e70c7736640659fb1e677b88866a72 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/339894e598e70c7736640659fb1e677b88866a72/build_flib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 31417, 261, 2890, 16, 364, 13171, 67, 31417, 4672, 225, 284, 9576, 273, 365, 18, 74, 9576, 225, 364, 261, 2941, 67, 529, 16, 1361, 67, 1376, 13, 316, 364, 13171, 67, 31417, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 31417, 261, 2890, 16, 364, 13171, 67, 31417, 4672, 225, 284, 9576, 273, 365, 18, 74, 9576, 225, 364, 261, 2941, 67, 529, 16, 1361, 67, 1376, 13, 316, 364, 13171, 67, 31417, ...
Basic.__init__(self, binding)
Basic.__init__(self, binding, **kwargs)
def __init__(self, binding): """ @param binding: A binding object. @type binding: L{binding.Binding} """ Basic.__init__(self, binding) self.resolver = NodeResolver(self.schema)
8a11323bdf131db396a8babddb5bb58c83834be3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5930/8a11323bdf131db396a8babddb5bb58c83834be3/unmarshaller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5085, 4672, 3536, 632, 891, 5085, 30, 432, 5085, 733, 18, 632, 723, 5085, 30, 511, 95, 7374, 18, 5250, 97, 3536, 7651, 16186, 2738, 972, 12, 2890, 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, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5085, 4672, 3536, 632, 891, 5085, 30, 432, 5085, 733, 18, 632, 723, 5085, 30, 511, 95, 7374, 18, 5250, 97, 3536, 7651, 16186, 2738, 972, 12, 2890, 16, ...
The isogeny number may be omitted, in which case it default to 1.
The isogeny number may be omitted, in which case it defaults to 1.
def parse_cremona_label(label): """ Given a Cremona label corresponding that defines an elliptic curve, e.g., 11A1 or 37B3, parse the label and return the conductor, isogeny class label, and number. The isogeny number may be omitted, in which case it default to 1. If the isogeny number and letter are both omitted, so ...
4bf04cbd6d936c3b8ca7845c2d1af6ac9231093b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/4bf04cbd6d936c3b8ca7845c2d1af6ac9231093b/cremona.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1793, 2586, 69, 67, 1925, 12, 1925, 4672, 3536, 16803, 279, 5799, 2586, 69, 1433, 4656, 716, 11164, 392, 415, 549, 21507, 8882, 16, 425, 18, 75, 12990, 4648, 37, 21, 578, 180...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1793, 2586, 69, 67, 1925, 12, 1925, 4672, 3536, 16803, 279, 5799, 2586, 69, 1433, 4656, 716, 11164, 392, 415, 549, 21507, 8882, 16, 425, 18, 75, 12990, 4648, 37, 21, 578, 180...
class CalendarEvent(CalendarEventMixin, Notes.Note): def __init__(self, name=None, parent=None, kind=None): if not kind: kind = Globals.repository.findPath("//parcels/osaf/contentmodel/calendar/CalendarEvent") super (CalendarEvent, self).__init__(name, parent, kind) self.participants = []
def InitOutgoingAttributes (self): """ Init any attributes on ourself that are appropriate for a new outgoing item. """ try: super(CalendarEventMixin, self).InitOutgoingAttributes () except AttributeError: pass
c77d20aefbb5d659fe5057bfa97b152e1cdf5014 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/c77d20aefbb5d659fe5057bfa97b152e1cdf5014/Calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4378, 24866, 2498, 261, 2890, 4672, 3536, 4378, 1281, 1677, 603, 3134, 2890, 716, 854, 5505, 364, 279, 394, 12902, 761, 18, 3536, 775, 30, 2240, 12, 7335, 1133, 14439, 16, 365, 2934, 257...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4378, 24866, 2498, 261, 2890, 4672, 3536, 4378, 1281, 1677, 603, 3134, 2890, 716, 854, 5505, 364, 279, 394, 12902, 761, 18, 3536, 775, 30, 2240, 12, 7335, 1133, 14439, 16, 365, 2934, 257...
sage: len(L) 143 Sloane A000088:
sage: len(L) 303 Generate graphs on the fly: (see http://www.research.att.com/~njas/sequences/A000088)
def __call__(self, vertices, property=lambda x: True, augment='edges'): """ Accesses the generator of isomorphism class representatives. Iterates over distinct, exhaustive representatives.
c911537e05ae4c4bbdbbe6ae543d379022ed29ce /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/c911537e05ae4c4bbdbbe6ae543d379022ed29ce/graph_generators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 6928, 16, 1272, 33, 14661, 619, 30, 1053, 16, 18260, 2218, 8746, 11, 4672, 3536, 5016, 281, 326, 4456, 434, 353, 362, 7657, 6228, 667, 2406, 8785, 18, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 6928, 16, 1272, 33, 14661, 619, 30, 1053, 16, 18260, 2218, 8746, 11, 4672, 3536, 5016, 281, 326, 4456, 434, 353, 362, 7657, 6228, 667, 2406, 8785, 18, 30...
visibility_enum = {
visibility_enum = {
def __init__(self, extension_elements=None, extension_attributes=None, text=None): UriEnumElement.__init__(self, 'attendeeType', AttendeeType.attendee_type_enum, extension_elements=extension_elements, extension_attributes=extension_attributes,text=text)
b441c0ccc7da55ff31f704dc6779ec676da299f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10620/b441c0ccc7da55ff31f704dc6779ec676da299f1/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2710, 67, 6274, 33, 7036, 16, 2710, 67, 4350, 33, 7036, 16, 977, 33, 7036, 4672, 10693, 3572, 1046, 16186, 2738, 972, 12, 2890, 16, 296, 10164, 20953, 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, 1001, 2738, 972, 12, 2890, 16, 2710, 67, 6274, 33, 7036, 16, 2710, 67, 4350, 33, 7036, 16, 977, 33, 7036, 4672, 10693, 3572, 1046, 16186, 2738, 972, 12, 2890, 16, 296, 10164, 20953, 55...
libraries = ['panel'] + curses_libs) )
libraries = [panel_library] + curses_libs) )
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')
d9a37b8091d03a0573acd8ae220beb72b498fff1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/d9a37b8091d03a0573acd8ae220beb72b498fff1/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, ...
q = F.order() n = len(G.columns())
def extended_code(self): r""" If self is a linear code of length n defined over F then this returns the code of length n+1 where the last digit $c_n$ satisfies the check condition $c_0+...+c_n=0$. If self is an $[n,k,d]$ binary code then the extended code $C^{\vee}$ is an $[n+1,k,d^{\vee}]$ code, where $d^=d$ (if d is ...
24267b4dbde13a19b59225e71b0b95cf6a68a709 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/24267b4dbde13a19b59225e71b0b95cf6a68a709/linear_code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7021, 67, 710, 12, 2890, 4672, 436, 8395, 971, 365, 353, 279, 9103, 981, 434, 769, 290, 2553, 1879, 478, 1508, 333, 1135, 326, 981, 434, 769, 290, 15, 21, 1625, 326, 1142, 8035, 271, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7021, 67, 710, 12, 2890, 4672, 436, 8395, 971, 365, 353, 279, 9103, 981, 434, 769, 290, 2553, 1879, 478, 1508, 333, 1135, 326, 981, 434, 769, 290, 15, 21, 1625, 326, 1142, 8035, 271, ...
name = TEST_DATABASE_PREFIX + settings.DATABASE_NAME if hasattr(settings, 'TEST_DATABASE_NAME'): name = settings.TEST_DATABASE_NAME return name
if hasattr(settings, 'TEST_DATABASE_NAME') and settings.TEST_DATABASE_NAME: return settings.TEST_DATABASE_NAME else: return TEST_DATABASE_PREFIX + settings.DATABASE_NAME
def _test_database_name(self, settings): name = TEST_DATABASE_PREFIX + settings.DATABASE_NAME
feacaa6cdde2457473c444e980d0aa51deaa04d7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1254/feacaa6cdde2457473c444e980d0aa51deaa04d7/creation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3813, 67, 6231, 67, 529, 12, 2890, 16, 1947, 4672, 508, 273, 22130, 67, 22366, 67, 6307, 397, 1947, 18, 22366, 67, 1985, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3813, 67, 6231, 67, 529, 12, 2890, 16, 1947, 4672, 508, 273, 22130, 67, 22366, 67, 6307, 397, 1947, 18, 22366, 67, 1985, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
def checkArgumentList(path):
def checkArgumentList( path ):
def checkArgumentList(path): """ Check and process format of the arguments to FileCatalog methods """ if type(path) in StringTypes: urls = [path] elif type(path) == ListType: urls = path elif type(path) == DictType: urls = path.keys() else: return S_ERROR("checkArgumentList: Supplied path is not of the correct format")...
41eaae9197bb4e4672bf8c41ce46bb8545a582ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/41eaae9197bb4e4672bf8c41ce46bb8545a582ee/Utilities.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10788, 682, 12, 589, 262, 30, 3536, 2073, 471, 1207, 740, 434, 326, 1775, 358, 1387, 9769, 2590, 3536, 309, 618, 12, 803, 13, 316, 514, 2016, 30, 6903, 273, 306, 803, 65, 1327, 618, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10788, 682, 12, 589, 262, 30, 3536, 2073, 471, 1207, 740, 434, 326, 1775, 358, 1387, 9769, 2590, 3536, 309, 618, 12, 803, 13, 316, 514, 2016, 30, 6903, 273, 306, 803, 65, 1327, 618, ...
class file_dispatcher (dispatcher): def __init__ (self, fd): dispatcher.__init__ (self)
class file_dispatcher(dispatcher): def __init__(self, fd): dispatcher.__init__(self)
def fileno (self): return self.fd
79991224d1b5f3a4ab074ddac83ef59addf853be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/79991224d1b5f3a4ab074ddac83ef59addf853be/asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24256, 261, 2890, 4672, 327, 365, 18, 8313, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24256, 261, 2890, 4672, 327, 365, 18, 8313, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
'', title, CLASS='normedname', *field[1].children)
'', title, CLASS=normedname, *field[1].children)
def extract_bibliographic(self, field_list): docinfo = nodes.docinfo() bibliofields = self.language.bibliographic_fields labels = self.language.labels topics = {'dedication': None, 'abstract': None} for field in field_list: try: name = field[0][0].astext() normedname = utils.normalize_name(name) if not (len(field) == 2...
8d1c9491c2a91d64bc4314d7f0fd444945b83216 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/8d1c9491c2a91d64bc4314d7f0fd444945b83216/frontmatter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 70, 495, 549, 16983, 12, 2890, 16, 652, 67, 1098, 4672, 997, 1376, 273, 2199, 18, 2434, 1376, 1435, 25581, 549, 792, 491, 87, 273, 365, 18, 4923, 18, 70, 495, 549, 16983, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 70, 495, 549, 16983, 12, 2890, 16, 652, 67, 1098, 4672, 997, 1376, 273, 2199, 18, 2434, 1376, 1435, 25581, 549, 792, 491, 87, 273, 365, 18, 4923, 18, 70, 495, 549, 16983, 6...
print 'before', self.maxT
def extractPointSetFromCurveCollection(self): # Use curve to compute new point set # Record maxT print 'before', self.maxT self.maxT = self.curveCollection.getMaxT() print 'after', self.maxT # Determine num samples # Limit point set to 1000 points and samples per second to 30 samplesPerSegment = min(30.0, 1000.0/self.c...
22ea189c2b47dbb2a6c14fa49540b6c2222fdf36 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/22ea189c2b47dbb2a6c14fa49540b6c2222fdf36/MopathRecorder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 2148, 694, 1265, 9423, 2532, 12, 2890, 4672, 468, 2672, 8882, 358, 3671, 394, 1634, 444, 468, 5059, 943, 56, 365, 18, 1896, 56, 273, 365, 18, 16683, 2532, 18, 588, 2747, 56, 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, 2608, 2148, 694, 1265, 9423, 2532, 12, 2890, 4672, 468, 2672, 8882, 358, 3671, 394, 1634, 444, 468, 5059, 943, 56, 365, 18, 1896, 56, 273, 365, 18, 16683, 2532, 18, 588, 2747, 56, 1435...
def DelArrayElement(tag, id, idx):
def DelArrayElement(tag, hashid, idx):
def DelArrayElement(tag, id, idx): raise DeprecatedIDCError, "Use python pickles instead."
76aa24fecdace41c9fc827e500b95cfdf5053272 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4773/76aa24fecdace41c9fc827e500b95cfdf5053272/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6603, 1076, 1046, 12, 2692, 16, 1651, 350, 16, 2067, 4672, 1002, 9336, 734, 39, 668, 16, 315, 3727, 5790, 6002, 1040, 3560, 1199, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6603, 1076, 1046, 12, 2692, 16, 1651, 350, 16, 2067, 4672, 1002, 9336, 734, 39, 668, 16, 315, 3727, 5790, 6002, 1040, 3560, 1199, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
return myPyMac_GetFSRef(v, *ref);
return PyMac_GetFSRef(v, *ref);
#ifdef WITHOUT_FRAMEWORKS
8ed30da29d0fd0d5df3fd27bfcaffe5b4b71a5f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/8ed30da29d0fd0d5df3fd27bfcaffe5b4b71a5f5/filesupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 430, 536, 13601, 5069, 67, 15072, 10566, 55, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 430, 536, 13601, 5069, 67, 15072, 10566, 55, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
user_can_request_to_join = ProjectPermissionSet.objects.filter(project=project, user=request.user).count()<1 and request.user.is_authenticated() and request.user != project.user_owner
user_can_request_to_join = ProjectPermissionSet.objects.filter(project=project, user__id=request.user.id).count()<1 and request.user.is_authenticated() and request.user != project.user_owner
def get_project_details(request, slug): project = get_object_or_404(Project.objects.select_related(), name_short=slug) permissions = project.get_permissions(request.user) backups = ProjectBackup.objects.filter(parent_project__exact=project).order_by('-created') issue_short_list = project.issue_set.select_related()[:I...
e8a72edf6a627454760626e0034fc832159a9ae8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14843/e8a72edf6a627454760626e0034fc832159a9ae8/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4406, 67, 6395, 12, 2293, 16, 4959, 4672, 1984, 273, 336, 67, 1612, 67, 280, 67, 11746, 12, 4109, 18, 6911, 18, 4025, 67, 9243, 9334, 508, 67, 6620, 33, 6436, 13, 4371, 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, 336, 67, 4406, 67, 6395, 12, 2293, 16, 4959, 4672, 1984, 273, 336, 67, 1612, 67, 280, 67, 11746, 12, 4109, 18, 6911, 18, 4025, 67, 9243, 9334, 508, 67, 6620, 33, 6436, 13, 4371, 273,...
jobSpecNode.configuration = jobCfg.pack() jobSpecNode.loadConfiguration()
jobSpecNode.cfgInterface = jobCfg
def __call__(self, jobSpecNode):
f19e62686249065ebc65b174fb3a87b8701730ac /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8886/f19e62686249065ebc65b174fb3a87b8701730ac/FactoriseJobSpec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1719, 1990, 907, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1719, 1990, 907, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
attrs = ibus.AttrList() if aux_string and not __EN_DICT__.check(aux_string): attr = ibus.AttributeForeground(PinYinEngine.__error_eng_phrase_color, 0, len(aux_string)) attrs.append(attr) self.update_aux_string(aux_string, attrs, True)
if self.__spell_check: attrs = ibus.AttrList() if aux_string and not __EN_DICT__.check(aux_string): attr = ibus.AttributeForeground(PinYinEngine.__error_eng_phrase_color, 0, len(aux_string)) attrs.append(attr) self.update_aux_string(aux_string, attrs, True)
def __update_ui(self): if self.__i_mode: preedit_string = u"".join(self.__user_input.get_chars()) self.update_preedit(preedit_string, None, len(preedit_string), True)
d7f72b5b9bb422b2eb2bec860ca8fc0bbaf1a12f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/471/d7f72b5b9bb422b2eb2bec860ca8fc0bbaf1a12f/pinyin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2725, 67, 4881, 12, 2890, 4672, 309, 365, 16186, 77, 67, 3188, 30, 675, 4619, 67, 1080, 273, 582, 3660, 18, 5701, 12, 2890, 16186, 1355, 67, 2630, 18, 588, 67, 7549, 10756, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2725, 67, 4881, 12, 2890, 4672, 309, 365, 16186, 77, 67, 3188, 30, 675, 4619, 67, 1080, 273, 582, 3660, 18, 5701, 12, 2890, 16186, 1355, 67, 2630, 18, 588, 67, 7549, 10756, 365, ...
'<table border="0" cellpadding="3" width="100%" class="status_table">',
'<table class="status_table">',
def html_running_job_table(self, job_list): """QueuePage """
ebe7911aaa6579796c3b771f64c91ad7ae981d9b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10674/ebe7911aaa6579796c3b771f64c91ad7ae981d9b/webtlsmd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 67, 8704, 67, 4688, 67, 2121, 12, 2890, 16, 1719, 67, 1098, 4672, 3536, 3183, 1964, 3536, 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, 1729, 67, 8704, 67, 4688, 67, 2121, 12, 2890, 16, 1719, 67, 1098, 4672, 3536, 3183, 1964, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
markupChar = re.compile(r"[\r<>&]")
dataEsc = re.compile(r"[\r<>&]") attrEsc = re.compile(r"[\r<>&'\"\n]")
def endElement(self):
0037292c86361023da7b77f20999d24feca7690b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/0037292c86361023da7b77f20999d24feca7690b/notation3.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14840, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14840, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
logging.info('Using tempdir = %s', temp_dir)
logging.debug('Using tempdir = %s', temp_dir)
def CreateTempDir(): """Creates a tempdir and returns the name of the tempdir.""" temp_dir = tempfile.mkdtemp(suffix='au', prefix='tmp') logging.info('Using tempdir = %s', temp_dir) return temp_dir
230756fc83931697a28aa94b51d9c58f53e1e35d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/230756fc83931697a28aa94b51d9c58f53e1e35d/generate_au_zip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 7185, 1621, 13332, 3536, 2729, 279, 23101, 471, 1135, 326, 508, 434, 326, 23101, 12123, 1906, 67, 1214, 273, 13275, 18, 24816, 72, 5814, 12, 8477, 2218, 8377, 2187, 1633, 2218, 5645,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 7185, 1621, 13332, 3536, 2729, 279, 23101, 471, 1135, 326, 508, 434, 326, 23101, 12123, 1906, 67, 1214, 273, 13275, 18, 24816, 72, 5814, 12, 8477, 2218, 8377, 2187, 1633, 2218, 5645,...
) if dist.has_metadata('dependency_links.txt'): self.package_index.add_find_links( dist.get_metadata_lines('dependency_links.txt')
def process_distribution(self, requirement, dist, deps=True, *info): self.update_pth(dist) self.package_index.add(dist) self.local_index.add(dist) self.install_egg_scripts(dist) self.installed_projects[dist.key] = dist log.info(self.installation_report(requirement, dist, *info)) if not deps and not self.always_copy: re...
49ee8a993057c03b17ae46b3dbe16705f75c7e21 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8186/49ee8a993057c03b17ae46b3dbe16705f75c7e21/easy_install.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 16279, 12, 2890, 16, 12405, 16, 2411, 16, 8740, 33, 5510, 16, 380, 1376, 4672, 365, 18, 2725, 67, 2397, 12, 4413, 13, 365, 18, 5610, 67, 1615, 18, 1289, 12, 4413, 13, 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, 1207, 67, 16279, 12, 2890, 16, 12405, 16, 2411, 16, 8740, 33, 5510, 16, 380, 1376, 4672, 365, 18, 2725, 67, 2397, 12, 4413, 13, 365, 18, 5610, 67, 1615, 18, 1289, 12, 4413, 13, 365, ...
def FindTests(self, options, args):
def FindTests(self):
def FindTests(self, options, args): """Find unit tests to run; set self.tests to this list.
4d602ebb885d149370e140f73824ac7130ffcd3b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/4d602ebb885d149370e140f73824ac7130ffcd3b/coverage_posix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4163, 14650, 12, 2890, 4672, 3536, 3125, 2836, 7434, 358, 1086, 31, 444, 365, 18, 16341, 358, 333, 666, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4163, 14650, 12, 2890, 4672, 3536, 3125, 2836, 7434, 358, 1086, 31, 444, 365, 18, 16341, 358, 333, 666, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.notify.debug("delayDeleteCount for doId %s now 0" % (self.doId))
assert(self.notify.debug("delayDeleteCount for doId %s now 0" % (self.doId)))
def delayDelete(self, flag): # Flag should be 0 or 1, meaning increment or decrement count # Also see DelayDelete.py
1f8a73a6c72fd08374dfe8237d6f9ccb1d28ac84 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/1f8a73a6c72fd08374dfe8237d6f9ccb1d28ac84/DistributedObject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4624, 2613, 12, 2890, 16, 2982, 4672, 468, 9960, 1410, 506, 374, 578, 404, 16, 12256, 5504, 578, 15267, 1056, 468, 8080, 2621, 20165, 2613, 18, 2074, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4624, 2613, 12, 2890, 16, 2982, 4672, 468, 9960, 1410, 506, 374, 578, 404, 16, 12256, 5504, 578, 15267, 1056, 468, 8080, 2621, 20165, 2613, 18, 2074, 2, -100, -100, -100, -100, -100, -10...
return def remove_install(self, widget, data=None):
installed = model.get_value(l_iter, 0) if installed == "yellow" or installed == "green": model.set_value(l_iter, 1, STOCK_GO_UP) else: model.set_value(l_iter, 1, STOCK_ADD) self.queued[name] = (model, l_iter) return def remove_install(self, widget=None, data=None):
def add_install(self, widget, data=None): repos_tree = self.gld.get_widget("treeview") page = self._get_selected_page(repos_tree)
8d887e6509e2d71a2f13e91bd822bc9a5fc668ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2654/8d887e6509e2d71a2f13e91bd822bc9a5fc668ca/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 5425, 12, 2890, 16, 3604, 16, 501, 33, 7036, 4672, 13686, 67, 3413, 273, 365, 18, 75, 1236, 18, 588, 67, 6587, 2932, 3413, 1945, 7923, 1363, 273, 365, 6315, 588, 67, 8109, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 5425, 12, 2890, 16, 3604, 16, 501, 33, 7036, 4672, 13686, 67, 3413, 273, 365, 18, 75, 1236, 18, 588, 67, 6587, 2932, 3413, 1945, 7923, 1363, 273, 365, 6315, 588, 67, 8109, 6...
line = line.strip()
def parse(self, lines): """parse the input lines from a robot.txt file. We allow that a user-agent: line is not preceded by one or more blank lines.""" state = 0 linenumber = 0 entry = Entry()
3375ab0caac67b977cc26065d6a9c2c1d47b3786 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3375ab0caac67b977cc26065d6a9c2c1d47b3786/robotparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 2362, 4672, 3536, 2670, 326, 810, 2362, 628, 279, 14386, 18, 5830, 585, 18, 1660, 1699, 716, 279, 729, 17, 5629, 30, 980, 353, 486, 29953, 635, 1245, 578, 1898, 705...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 2362, 4672, 3536, 2670, 326, 810, 2362, 628, 279, 14386, 18, 5830, 585, 18, 1660, 1699, 716, 279, 729, 17, 5629, 30, 980, 353, 486, 29953, 635, 1245, 578, 1898, 705...
for r in h.values():
for r in h.itervalues():
def main(): import getopt global cachedir if len(sys.argv) <= 1: usage() return 0 (_, hostname, kernelversion, _, arch) = os.uname() archlist = None owner = None if os.geteuid() == 0: owner = 1 homedir = os.environ.get("HOME", "") if homedir and not owner: cachedir = homedir + "/.pyrpm/cache/" if not os.path.isdir(cach...
f728062394d146a49b4554ad764c9bfacddf1565 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/f728062394d146a49b4554ad764c9bfacddf1565/oldpyrpm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1930, 336, 3838, 2552, 3472, 481, 309, 562, 12, 9499, 18, 19485, 13, 1648, 404, 30, 4084, 1435, 327, 374, 261, 67, 16, 5199, 16, 5536, 1589, 16, 389, 16, 6637, 13, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1930, 336, 3838, 2552, 3472, 481, 309, 562, 12, 9499, 18, 19485, 13, 1648, 404, 30, 4084, 1435, 327, 374, 261, 67, 16, 5199, 16, 5536, 1589, 16, 389, 16, 6637, 13, 273, ...
self.write(cr, uid, [proc.id], {'state':'running','message':_('Moved from other location')})
wf_service.trg_validate(uid, 'procurement.order', proc_id, 'button_check', cr)
def action_move_create(self, cr, uid, ids,context=None): proc_obj = self.pool.get('procurement.order') move_obj = self.pool.get('stock.move') picking_obj=self.pool.get('stock.picking') wf_service = netsvc.LocalService("workflow") for proc in proc_obj.browse(cr, uid, ids, context=context): line = None for line in proc.p...
cf533b524f70d5d46e370195c895a4dc2270de18 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/cf533b524f70d5d46e370195c895a4dc2270de18/mrp_pull.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 8501, 67, 2640, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 2472, 33, 7036, 4672, 5418, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 9381, 594, 475, 18, 1019, 6134, 3635, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 8501, 67, 2640, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 2472, 33, 7036, 4672, 5418, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 9381, 594, 475, 18, 1019, 6134, 3635, 6...
file.Write(" EXPECT_EQ(%s::kCmdId, cmd.header.command);\n" % func.name)
file.Write(" EXPECT_EQ(static_cast<uint32>(%s::kCmdId),\n" % func.name) file.Write(" cmd.header.command);\n")
def WriteImmediateFormatTest(self, func, file): """Overrriden from TypeHandler.""" file.Write("TEST(GLES2FormatTest, %s) {\n" % func.name) file.Write(" const int kSomeBaseValueToTestWith = 51;\n") file.Write(" static %s data[] = {\n" % func.info.data_type) for v in range(0, func.info.count * 2): file.Write(" stati...
d294ef3a7f91afdc1e5f9f570da7b8ef4b5bd8b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/d294ef3a7f91afdc1e5f9f570da7b8ef4b5bd8b7/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 22651, 1630, 4709, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 585, 18, 3067, 2932, 16961, 12, 43, 11386, 22, 1630, 4709, 16, 738, 87, 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, 2598, 22651, 1630, 4709, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 585, 18, 3067, 2932, 16961, 12, 43, 11386, 22, 1630, 4709, 16, 738, 87, 13, ...
self.assertRaises((struct.error, OverflowError), pack, ">" + code, x) self.assertRaises((struct.error, OverflowError), pack, "<" + code, x)
self.assertRaises(struct.error, pack, ">" + code, x) self.assertRaises(struct.error, pack, "<" + code, x)
def test_one(self, x, pack=struct.pack, unpack=struct.unpack, unhexlify=binascii.unhexlify): # Try signed. code = self.signed_code if self.signed_min <= x <= self.signed_max: # Try big-endian. expected = x if x < 0: expected += 1 << self.bitsize self.assert_(expected > 0) expected = hex(expected)[2:] # chop "0x" if len...
bcd7347b7882853fa5e5ff5fc3a15e495b640b42 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/bcd7347b7882853fa5e5ff5fc3a15e495b640b42/test_struct.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 476, 12, 2890, 16, 619, 16, 2298, 33, 1697, 18, 2920, 16, 6167, 33, 1697, 18, 17309, 16, 640, 7118, 22451, 33, 4757, 9184, 18, 318, 7118, 22451, 4672, 468, 6161, 6726, 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, 1842, 67, 476, 12, 2890, 16, 619, 16, 2298, 33, 1697, 18, 2920, 16, 6167, 33, 1697, 18, 17309, 16, 640, 7118, 22451, 33, 4757, 9184, 18, 318, 7118, 22451, 4672, 468, 6161, 6726, 18, ...
def fusechunks_lambda_tol_nbonds(tol, nbonds): if nbonds == -1:
def fusechunks_lambda_tol_nbonds(tol, nbonds, mbonds): if nbonds < 0:
def fusechunks_lambda_tol_nbonds(tol, nbonds): if nbonds == -1: nbonds_str = "?" else: nbonds_str = "%d" % (nbonds,) tol_str = (" %d" % int(tol*100.0))[-3:] # fixed-width (3 digits) but using initial spaces # (doesn't have all of desired effect, due to non-fixed-width font) tol_str = tol_str + "%" return "%s => %s...
83cc4aff758b9d2dbd64cd45fddb71a888d8b734 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/83cc4aff758b9d2dbd64cd45fddb71a888d8b734/fusechunksMode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19552, 14691, 67, 14661, 67, 3490, 67, 6423, 4096, 12, 3490, 16, 4264, 4096, 16, 4903, 4096, 4672, 309, 4264, 4096, 411, 374, 30, 4264, 4096, 67, 701, 273, 13574, 469, 30, 4264, 4096, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19552, 14691, 67, 14661, 67, 3490, 67, 6423, 4096, 12, 3490, 16, 4264, 4096, 16, 4903, 4096, 4672, 309, 4264, 4096, 411, 374, 30, 4264, 4096, 67, 701, 273, 13574, 469, 30, 4264, 4096, ...
array = self.get(self.sprite.im)
array = self.getfn(self.im)
def __getitem__(self, idx): array = self.get(self.sprite.im) return array[idx]
225862206915a937b75b16306d39fcee962cb426 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5701/225862206915a937b75b16306d39fcee962cb426/sprite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 2067, 4672, 526, 273, 365, 18, 588, 4293, 12, 2890, 18, 381, 13, 327, 526, 63, 3465, 65, 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, 0, 0, 0, 0, 0, 0, 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, 31571, 972, 12, 2890, 16, 2067, 4672, 526, 273, 365, 18, 588, 4293, 12, 2890, 18, 381, 13, 327, 526, 63, 3465, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.assertEqual(self.client.voidresp(), "226 transfer complete")
self.client.voidresp()
def test_data_connection(self): # clear text sock = self.client.transfercmd('list') self.assertNotIsInstance(sock, ssl.SSLSocket) sock.close() self.assertEqual(self.client.voidresp(), "226 transfer complete")
343314a11c6d91c2483c53d3871d3d69f8065fe7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/343314a11c6d91c2483c53d3871d3d69f8065fe7/test_ftplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 892, 67, 4071, 12, 2890, 4672, 468, 2424, 977, 7313, 273, 365, 18, 2625, 18, 13866, 4172, 2668, 1098, 6134, 365, 18, 11231, 1248, 2520, 1442, 12, 15031, 16, 5832, 18, 1260, 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, 892, 67, 4071, 12, 2890, 4672, 468, 2424, 977, 7313, 273, 365, 18, 2625, 18, 13866, 4172, 2668, 1098, 6134, 365, 18, 11231, 1248, 2520, 1442, 12, 15031, 16, 5832, 18, 1260, 2...
a.disconnect() a.connect("localhost", 6000, sys.argv[1])
def think(self): """ Performs a single step of thinking for our agent. Gets called on every iteration of our think loop. """
f417b066878268ec2a67843ba7989753eac7abc8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13574/f417b066878268ec2a67843ba7989753eac7abc8/agent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15507, 12, 2890, 4672, 3536, 27391, 279, 2202, 2235, 434, 15507, 310, 364, 3134, 4040, 18, 225, 11881, 2566, 603, 3614, 6532, 434, 3134, 15507, 2798, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 15507, 12, 2890, 4672, 3536, 27391, 279, 2202, 2235, 434, 15507, 310, 364, 3134, 4040, 18, 225, 11881, 2566, 603, 3614, 6532, 434, 3134, 15507, 2798, 18, 3536, 2, -100, -100, -100, -100, ...
INPUT:: - ``roots``: a list (or iterable) - ``children``: a function returning a list (or iterable)
Returns the set of nodes of the forest having the given roots, and where ``children(x)`` returns the children of the node ``x`` of the forest. See also :class:`~sage.combinat.backtrack.GenericBacktracker`, :class:`~sage.combinat.backtrack.TransitiveIdeal`, and :class:`~sage.combinat.backtrack.TransitiveIdealGraded`. ...
def search_forest_iterator(roots, children): r""" INPUT: - ``roots``: a list (or iterable) - ``children``: a function returning a list (or iterable) Returns an iterator on the nodes of the forest having the given roots, and where ``children(x)`` returns the children of the node ``x`` of the forest. Note that every ...
fba66b50b205e8d5dcb996889e8071ee94ab97b3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/fba66b50b205e8d5dcb996889e8071ee94ab97b3/backtrack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 1405, 334, 67, 9838, 12, 22078, 16, 2325, 4672, 436, 8395, 12943, 30, 225, 300, 12176, 22078, 10335, 30, 279, 666, 261, 280, 6087, 13, 225, 300, 12176, 5906, 10335, 30, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 1405, 334, 67, 9838, 12, 22078, 16, 2325, 4672, 436, 8395, 12943, 30, 225, 300, 12176, 22078, 10335, 30, 279, 666, 261, 280, 6087, 13, 225, 300, 12176, 5906, 10335, 30, 279, ...
self.limit = self.__class__.limit or limit
kwargs.update({'limit': limit})
def __init__(self, title=None, limit=None, include_list=None, exclude_list=None, **kwargs): self.include_list = include_list or [] self.exclude_list = exclude_list or [] self.limit = self.__class__.limit or limit super(RecentActions, self).__init__(title, **kwargs)
d9f75c6b9429e2a82efc8e36c3c44194382861fe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6707/d9f75c6b9429e2a82efc8e36c3c44194382861fe/modules.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2077, 33, 7036, 16, 1800, 33, 7036, 16, 2341, 67, 1098, 33, 7036, 16, 4433, 67, 1098, 33, 7036, 16, 2826, 4333, 4672, 365, 18, 6702, 67, 1098, 273, 234...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2077, 33, 7036, 16, 1800, 33, 7036, 16, 2341, 67, 1098, 33, 7036, 16, 4433, 67, 1098, 33, 7036, 16, 2826, 4333, 4672, 365, 18, 6702, 67, 1098, 273, 234...
while (current_position + 1) * (self.sector_size / 4) < current:
while sector_number != ENDOFCHAIN and \ (current_position + 1) * (self.sector_size / 4) < current:
def _get_next_mini_fat_sector(self, current): ''' Get next mini FAT sector block number ''' current_position = 0 sector_number = self.first_mini_fat_sector_location while (current_position + 1) * (self.sector_size / 4) < current: sector_number = self._get_next_fat_sector(sector_number)
b88f6269c60cb7f022d35d9f66921521a48dfd19 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13802/b88f6269c60cb7f022d35d9f66921521a48dfd19/reader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 4285, 67, 1154, 77, 67, 74, 270, 67, 5709, 280, 12, 2890, 16, 783, 4672, 9163, 968, 1024, 21959, 478, 789, 16323, 1203, 1300, 9163, 783, 67, 3276, 273, 374, 16323, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 4285, 67, 1154, 77, 67, 74, 270, 67, 5709, 280, 12, 2890, 16, 783, 4672, 9163, 968, 1024, 21959, 478, 789, 16323, 1203, 1300, 9163, 783, 67, 3276, 273, 374, 16323, 67, ...
def GET(self):
def GET(self, locale=None, license_uri=None):
def GET(self): """ Accepts a license uri as an argument and will return the RDF and RDFa of a licnsee """ locale = web.input().get('locale', 'en') license_uri = web.input().get('license-uri') if not license_uri: return api_exceptions.missingparam('license-uri')
95d03a10d4c6d240322c41bc6a34d0b40ee0f697 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8279/95d03a10d4c6d240322c41bc6a34d0b40ee0f697/details.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4978, 12, 2890, 16, 2573, 33, 7036, 16, 8630, 67, 1650, 33, 7036, 4672, 3536, 27158, 279, 8630, 2003, 487, 392, 1237, 471, 903, 327, 326, 13539, 471, 13539, 69, 434, 279, 328, 335, 82,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4978, 12, 2890, 16, 2573, 33, 7036, 16, 8630, 67, 1650, 33, 7036, 4672, 3536, 27158, 279, 8630, 2003, 487, 392, 1237, 471, 903, 327, 326, 13539, 471, 13539, 69, 434, 279, 328, 335, 82,...
this = apply(_quickfix.new_RefApplVerID, args)
this = _quickfix.new_RefApplVerID(*args)
def __init__(self, *args): this = apply(_quickfix.new_RefApplVerID, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 1957, 1294, 412, 3945, 734, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 1957, 1294, 412, 3945, 734, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, ...
self.engine = create_engine('sqlite', {'filename':os.path.join(griffith_dir, "griffith,db")})
self.engine = create_engine('sqlite', {'filename':os.path.join(griffith_dir, "griffith.db")})
def __init__(self, config, gdebug, griffith_dir): #{{{ self.griffith_dir = griffith_dir self.config = config global debug debug = gdebug if not config.has_key("db_type"): config["db_type"] = "sqlite"
5c1a74bc0a57414cea377fb82513d179860c1890 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2687/5c1a74bc0a57414cea377fb82513d179860c1890/sql.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 642, 16, 314, 4148, 16, 3821, 3048, 483, 67, 1214, 4672, 202, 3642, 12187, 365, 18, 3197, 3048, 483, 67, 1214, 273, 3821, 3048, 483, 67, 1214, 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, 2738, 972, 12, 2890, 16, 642, 16, 314, 4148, 16, 3821, 3048, 483, 67, 1214, 4672, 202, 3642, 12187, 365, 18, 3197, 3048, 483, 67, 1214, 273, 3821, 3048, 483, 67, 1214, 365, 18, ...
_verify('SG_MAGICCONST', 2.50407739677627)
_verify('SG_MAGICCONST', SG_MAGICCONST, 2.50407739677627)
def _verify(name, expected): computed = eval(name) if abs(computed - expected) > 1e-7: raise ValueError( "computed value for %s deviates too much " "(computed %g, expected %g)" % (name, computed, expected))
dc47a89ff19b932c1c794422a5223847b4e64f0e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dc47a89ff19b932c1c794422a5223847b4e64f0e/random.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8705, 12, 529, 16, 2665, 4672, 8470, 273, 5302, 12, 529, 13, 309, 2417, 12, 20307, 300, 2665, 13, 405, 404, 73, 17, 27, 30, 1002, 2068, 12, 315, 20307, 460, 364, 738, 87, 27492,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8705, 12, 529, 16, 2665, 4672, 8470, 273, 5302, 12, 529, 13, 309, 2417, 12, 20307, 300, 2665, 13, 405, 404, 73, 17, 27, 30, 1002, 2068, 12, 315, 20307, 460, 364, 738, 87, 27492,...
GLsizei num_values = GetNumValuesReturnedForGLGet(pname, &num_values);
GLsizei num_values = 0; GetNumValuesReturnedForGLGet(pname, &num_values);
code = """ typedef %(func_name)s::Result Result;
c09b66fa6c9b1cbe85cad7ac28eacb107f5b988d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/c09b66fa6c9b1cbe85cad7ac28eacb107f5b988d/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 981, 273, 3536, 225, 618, 536, 8975, 644, 67, 529, 13, 87, 2866, 1253, 3438, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 981, 273, 3536, 225, 618, 536, 8975, 644, 67, 529, 13, 87, 2866, 1253, 3438, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
os._exit(0)
sys.exit(0)
def quit2(): """2nd stage: twisted reactor is already stopped""" StateSaver.saveAll() InternalParameters.app.quit()
13f66262110a421fcae2e06971b2e7d2630e95cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1679/13f66262110a421fcae2e06971b2e7d2630e95cd/playfield.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9706, 22, 13332, 3536, 22, 4880, 6009, 30, 2339, 25444, 19178, 353, 1818, 9627, 8395, 3287, 55, 21851, 18, 5688, 1595, 1435, 3186, 2402, 18, 2910, 18, 27176, 1435, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9706, 22, 13332, 3536, 22, 4880, 6009, 30, 2339, 25444, 19178, 353, 1818, 9627, 8395, 3287, 55, 21851, 18, 5688, 1595, 1435, 3186, 2402, 18, 2910, 18, 27176, 1435, 2, -100, -100, -100, -...
if i % 2 == 0:
if (i + 1) % 2 == 0:
def items(self): """ """ plone_utils = getToolByName(self.context, 'plone_utils') plone_view = getMultiAdapter((self.context, self.request), name=u'plone') portal_workflow = getToolByName(self.context, 'portal_workflow') portal_properties = getToolByName(self.context, 'portal_properties') site_properties = portal_prope...
bf4e0acd93b10f259eb67ff2f73de27a9c05c8ef /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12237/bf4e0acd93b10f259eb67ff2f73de27a9c05c8ef/foldercontents.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1516, 12, 2890, 4672, 3536, 3536, 886, 476, 67, 5471, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 16, 296, 412, 476, 67, 5471, 6134, 886, 476, 67, 1945, 273, 31863, 4216, 12443, 2890, 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, 1516, 12, 2890, 4672, 3536, 3536, 886, 476, 67, 5471, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 16, 296, 412, 476, 67, 5471, 6134, 886, 476, 67, 1945, 273, 31863, 4216, 12443, 2890, 18...
if type( attname_or_tuple ) == type( () ):
if type( attname_or_tuple ) == types.TupleType:
def __getitem__( self, attname_or_tuple ): if type( attname_or_tuple ) == type( () ): return self._attrsNS[attname_or_tuple] else: return self._attrs[attname_or_tuple]
1e68827c8fa95d10df3c805e5dd8383b19048b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1e68827c8fa95d10df3c805e5dd8383b19048b18/minidom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 365, 16, 2403, 529, 67, 280, 67, 8052, 262, 30, 309, 618, 12, 2403, 529, 67, 280, 67, 8052, 262, 422, 1953, 18, 9038, 559, 30, 327, 365, 6315, 7039, 3156, 63, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 365, 16, 2403, 529, 67, 280, 67, 8052, 262, 30, 309, 618, 12, 2403, 529, 67, 280, 67, 8052, 262, 422, 1953, 18, 9038, 559, 30, 327, 365, 6315, 7039, 3156, 63, ...
context['files'] = page.object_list context['is_paginated'] = page.has_other_pages() context['page'] = page.number context['pages'] = paginator.num_pages context['page_numbers'] = paginator.page_range context['has_next'] = page.has_next() context['next_page'] = page.next_page_number() context['has_previous'] = page.h...
def view_diff(request, diffset_id, interdiffset_id=None, extra_context={}, template_name='diffviewer/view_diff.html'): diffset = get_object_or_404(DiffSet, pk=diffset_id) interdiffset = get_object_or_none(DiffSet, pk=interdiffset_id) highlighting = get_enable_highlighting(request.user) try: if interdiffset_id: logging...
f11124a2faa390a337090da56e4344a51ace970f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1600/f11124a2faa390a337090da56e4344a51ace970f/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1476, 67, 5413, 12, 2293, 16, 1901, 988, 67, 350, 16, 1554, 11593, 988, 67, 350, 33, 7036, 16, 2870, 67, 2472, 28793, 1542, 67, 529, 2218, 5413, 25256, 19, 1945, 67, 5413, 18, 2620, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1476, 67, 5413, 12, 2293, 16, 1901, 988, 67, 350, 16, 1554, 11593, 988, 67, 350, 33, 7036, 16, 2870, 67, 2472, 28793, 1542, 67, 529, 2218, 5413, 25256, 19, 1945, 67, 5413, 18, 2620, ...
confirmMainThread()
def reset(self): confirmMainThread() self.playbin.set_state(gst.STATE_NULL)
dad4fc88a54f5edbc781a136e2721baad72ddafc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/dad4fc88a54f5edbc781a136e2721baad72ddafc/gstreamerrenderer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 12, 2890, 4672, 365, 18, 1601, 4757, 18, 542, 67, 2019, 12, 75, 334, 18, 7998, 67, 8560, 13, 2, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 12, 2890, 4672, 365, 18, 1601, 4757, 18, 542, 67, 2019, 12, 75, 334, 18, 7998, 67, 8560, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
style:rel-width="50%" \s+
style:rel-width="scale" \s+
def test_img1(self): html = '<html xmlns="http://www.w3.org/1999/xhtml"><img src="imagesource"/></html>' odt = xhtml2odt(html) print odt assert re.search(r"""<draw:frame \s+ (xmlns:[a-z0-9=:".-]+ \s+)* # namespaces text:anchor-type="paragraph" \s+ draw:name="imageobject-[a-z0-9]+" \s+ svg:width="8cm" \s+ style:rel-widt...
3a511acf1f97db722900be3dd399e5cf3322252c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7063/3a511acf1f97db722900be3dd399e5cf3322252c/test_media.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6081, 21, 12, 2890, 4672, 1729, 273, 2368, 2620, 12302, 1546, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 21, 11984, 19, 26341, 14050, 6081, 1705, 1546, 7369, 552, 6, 19, 469...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6081, 21, 12, 2890, 4672, 1729, 273, 2368, 2620, 12302, 1546, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 21, 11984, 19, 26341, 14050, 6081, 1705, 1546, 7369, 552, 6, 19, 469...
Ctrl-E Go to right edge (nospaces off) or end of line (nospaces on).
Ctrl-E Go to right edge (stripspaces off) or end of line (stripspaces on).
def rectangle(win, uly, ulx, lry, lrx): "Draw a rectangle." win.vline(uly+1, ulx, curses.ACS_VLINE, lry - uly - 1) win.hline(uly, ulx+1, curses.ACS_HLINE, lrx - ulx - 1) win.hline(lry, ulx+1, curses.ACS_HLINE, lrx - ulx - 1) win.vline(uly+1, lrx, curses.ACS_VLINE, lry - uly - 1) win.addch(uly, ulx, curses.ACS_ULCORNER)...
0e8515a4170da2d2d0e0e47e077bc9048282036b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/0e8515a4170da2d2d0e0e47e077bc9048282036b/textpad.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11845, 12, 8082, 16, 7493, 93, 16, 7493, 92, 16, 328, 1176, 16, 12226, 92, 4672, 315, 6493, 279, 11845, 1199, 5657, 18, 90, 1369, 12, 332, 93, 15, 21, 16, 7493, 92, 16, 30436, 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, 11845, 12, 8082, 16, 7493, 93, 16, 7493, 92, 16, 328, 1176, 16, 12226, 92, 4672, 315, 6493, 279, 11845, 1199, 5657, 18, 90, 1369, 12, 332, 93, 15, 21, 16, 7493, 92, 16, 30436, 18, ...
data=data.tostring()
def setValue( self, valname, data, regtype=None ): "Set a data value's data (and optionally type)" if regtype: typeint=regtype.intval else: if type( data )==StringType: typeint=_winreg.REG_SZ elif type( data )==IntType: typeint=_winreg.REG_DWORD elif type( data )==array.ArrayType: typeint=_winreg.REG_BINARY data=data.t...
ce4b96e67373f7a6b15f18919f87be7276924e3d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/ce4b96e67373f7a6b15f18919f87be7276924e3d/winreg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5524, 12, 365, 16, 1244, 529, 16, 501, 16, 960, 723, 33, 7036, 262, 30, 315, 694, 279, 501, 460, 1807, 501, 261, 464, 8771, 618, 2225, 309, 960, 723, 30, 618, 474, 33, 1574, 723, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5524, 12, 365, 16, 1244, 529, 16, 501, 16, 960, 723, 33, 7036, 262, 30, 315, 694, 279, 501, 460, 1807, 501, 261, 464, 8771, 618, 2225, 309, 960, 723, 30, 618, 474, 33, 1574, 723, 1...
class AliasDefinition(PEP253Mixin, GlobalObjectDefinition):
class AliasDefinition(PEP253Mixin, ObjectDefinition):
def output_tp_initBody(self): Output("PyObject *v = NULL;") Output("char *rawdata = NULL;") Output("int rawdatalen = 0;") Output("char *kw[] = {\"itself\", \"rawdata\", 0};") Output() Output("if (!PyArg_ParseTupleAndKeywords(args, kwds, \"|Os#\", kw, &v, &rawdata, &rawdatalen))") Output("return -1;") Output("if (v && r...
4ead31c4f8aed3e43fdb5afb615d8c3ca3367563 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4ead31c4f8aed3e43fdb5afb615d8c3ca3367563/filesupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 876, 67, 6834, 67, 2738, 2250, 12, 2890, 4672, 3633, 2932, 9413, 921, 380, 90, 273, 3206, 4868, 13, 3633, 2932, 3001, 380, 1899, 892, 273, 3206, 4868, 13, 3633, 2932, 474, 1831, 72, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 876, 67, 6834, 67, 2738, 2250, 12, 2890, 4672, 3633, 2932, 9413, 921, 380, 90, 273, 3206, 4868, 13, 3633, 2932, 3001, 380, 1899, 892, 273, 3206, 4868, 13, 3633, 2932, 474, 1831, 72, 31...
if changecount:
if changecount or force:
def moveTimeLines(self): l = self["list"] event_rect = l.getEventRect() time_epoch = l.getTimeEpoch() time_base = l.getTimeBase() if event_rect is None or time_epoch is None or time_base is None: return time_steps = time_epoch > 180 and 60 or 30 num_lines = time_epoch/time_steps incWidth=event_rect.width()/num_lines po...
d92413e6d676ad376415c36855ea93ffb4db8423 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6652/d92413e6d676ad376415c36855ea93ffb4db8423/GraphMultiEpg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 950, 5763, 12, 2890, 4672, 328, 273, 365, 9614, 1098, 11929, 871, 67, 2607, 273, 328, 18, 588, 1133, 6120, 1435, 813, 67, 12015, 273, 328, 18, 588, 950, 14638, 1435, 813, 67, 196...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 950, 5763, 12, 2890, 4672, 328, 273, 365, 9614, 1098, 11929, 871, 67, 2607, 273, 328, 18, 588, 1133, 6120, 1435, 813, 67, 12015, 273, 328, 18, 588, 950, 14638, 1435, 813, 67, 196...
now = time()
now = time()
def _loop(self, starttime, count, interval): if hasattr(self, "call"): del self.call sys.__stdout__.write("OUT %s\n"%(time())) self.f(*self.a, **self.kw) now = time() while self.running: count += 1 fromStart = count * interval fromNow = starttime - now delay = fromNow + fromStart if delay > 0: self.call = reactor.callL...
fe13da535c92a56f1ea61fcfdfb5efeaf4929e3d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1265/fe13da535c92a56f1ea61fcfdfb5efeaf4929e3d/rtp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6498, 12, 2890, 16, 23437, 16, 1056, 16, 3673, 4672, 309, 3859, 12, 2890, 16, 315, 1991, 6, 4672, 1464, 365, 18, 1991, 2589, 16186, 10283, 25648, 2626, 2932, 5069, 738, 87, 64, 82...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6498, 12, 2890, 16, 23437, 16, 1056, 16, 3673, 4672, 309, 3859, 12, 2890, 16, 315, 1991, 6, 4672, 1464, 365, 18, 1991, 2589, 16186, 10283, 25648, 2626, 2932, 5069, 738, 87, 64, 82...
script.write(" /sbin/ip route replace $IP/32 dev $INTERFACE\n")
script.write(" /sbin/ip route replace $IP proto static" " dev $INTERFACE\n")
def _WriteNetScript(self, instance, seq, nic): """Write a script to connect a net interface to the proper bridge.
8866ec860a32980a838f7a47815ac33142c56028 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/8866ec860a32980a838f7a47815ac33142c56028/hv_kvm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3067, 7308, 3651, 12, 2890, 16, 791, 16, 3833, 16, 11562, 4672, 3536, 3067, 279, 2728, 358, 3077, 279, 2901, 1560, 358, 326, 5338, 10105, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3067, 7308, 3651, 12, 2890, 16, 791, 16, 3833, 16, 11562, 4672, 3536, 3067, 279, 2728, 358, 3077, 279, 2901, 1560, 358, 326, 5338, 10105, 18, 2, -100, -100, -100, -100, -100, -100, ...
append_when_current_valid(current, menu, (_("add service to favourites"), self.addServiceToBouquetSelected), level = 0)
if not inBouquet: append_when_current_valid(current, menu, (_("add service to favourites"), self.addServiceToBouquetSelected), level = 0)
def __init__(self, session, csel): Screen.__init__(self, session) #raise Exception("we need a better summary screen here") self.csel = csel self.bsel = None
ba4499aef953ae803c76171d4f966c06732dab2a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/ba4499aef953ae803c76171d4f966c06732dab2a/ChannelSelection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1339, 16, 276, 1786, 4672, 10146, 16186, 2738, 972, 12, 2890, 16, 1339, 13, 468, 11628, 1185, 2932, 1814, 1608, 279, 7844, 4916, 5518, 2674, 7923, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1339, 16, 276, 1786, 4672, 10146, 16186, 2738, 972, 12, 2890, 16, 1339, 13, 468, 11628, 1185, 2932, 1814, 1608, 279, 7844, 4916, 5518, 2674, 7923, 365, 18,...
import DLFCN, sys
import sys
def __repr__(self): return '<gst.Fraction %d/%d>' % (self.num, self.denom)
20469390bd0ce6fce22a8ad67296317121bc3dae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1020/20469390bd0ce6fce22a8ad67296317121bc3dae/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 2368, 75, 334, 18, 13724, 738, 72, 5258, 72, 1870, 738, 261, 2890, 18, 2107, 16, 365, 18, 13002, 362, 13, 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, 1001, 12715, 972, 12, 2890, 4672, 327, 2368, 75, 334, 18, 13724, 738, 72, 5258, 72, 1870, 738, 261, 2890, 18, 2107, 16, 365, 18, 13002, 362, 13, 2, -100, -100, -100, -100, -100, -100, ...
angle = hlr_utils.get_value(polar,i,p_descr) angle_err2 = hlr_utils.get_err2(polar,i,p_descr)
angle = hlr_utils.get_value(polar, i, p_descr) angle_err2 = hlr_utils.get_err2(polar, i, p_descr)
def tof_to_d_spacing(obj,**kwargs): # import the helper functions import hlr_utils # set up for working through data (result,res_descr)=hlr_utils.empty_result(obj) (o_descr,d_descr)=hlr_utils.get_descr(obj) if o_descr == "number" or o_descr == "list": raise RuntimeError, "Must provide a SOM of a SO to the function."...
8dcf8af8c74e3673ec736b87e019766d76714d13 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/8dcf8af8c74e3673ec736b87e019766d76714d13/hlr_tof_to_d_spacing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 74, 67, 869, 67, 72, 67, 14080, 12, 2603, 16, 636, 4333, 4672, 225, 468, 1930, 326, 4222, 4186, 1930, 366, 10826, 67, 5471, 225, 468, 444, 731, 364, 5960, 3059, 501, 261, 2088, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 74, 67, 869, 67, 72, 67, 14080, 12, 2603, 16, 636, 4333, 4672, 225, 468, 1930, 326, 4222, 4186, 1930, 366, 10826, 67, 5471, 225, 468, 444, 731, 364, 5960, 3059, 501, 261, 2088, ...
return self.expanded def _refresh_repos_tree (self):
return expanded def _refresh_repos_tree (self):
def expander_check(model, path, iter, val=None): is_expanded = repos_tree.row_expanded(path) val = model.get_value(iter, 0) if is_expanded: self.expanded.append(path)
c80c576a73d52ad1d3674b0183511ab6e15d8448 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2654/c80c576a73d52ad1d3674b0183511ab6e15d8448/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4542, 264, 67, 1893, 12, 2284, 16, 589, 16, 1400, 16, 1244, 33, 7036, 4672, 353, 67, 17336, 273, 13686, 67, 3413, 18, 492, 67, 17336, 12, 803, 13, 1244, 273, 938, 18, 588, 67, 1132, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4542, 264, 67, 1893, 12, 2284, 16, 589, 16, 1400, 16, 1244, 33, 7036, 4672, 353, 67, 17336, 273, 13686, 67, 3413, 18, 492, 67, 17336, 12, 803, 13, 1244, 273, 938, 18, 588, 67, 1132, ...
return R.euler()
return R.euler_constant()
def _real_double_(self, R): """ EXAMPLES: sage: RDF(euler_gamma) 0.577215664902 """ return R.euler()
31372fdd844298d220161205b3a0ae85555e880b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/31372fdd844298d220161205b3a0ae85555e880b/constants.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7688, 67, 9056, 67, 12, 2890, 16, 534, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 13539, 12, 73, 17040, 67, 20589, 13, 374, 18, 25, 4700, 22, 28946, 1105, 29, 3103, 3536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7688, 67, 9056, 67, 12, 2890, 16, 534, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 13539, 12, 73, 17040, 67, 20589, 13, 374, 18, 25, 4700, 22, 28946, 1105, 29, 3103, 3536, ...
self.cache.release()
self.cache.release()
def get(self, image):
2a9eaf9dea541f2dfd3e2b7ac0cd1d87c59f9c9c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10962/2a9eaf9dea541f2dfd3e2b7ac0cd1d87c59f9c9c/im.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 1316, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 1316, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
print "%s EXIT STATUS: TIMED OUT (%s seconds)" % (prefix, sys.argv[1])
stoptime = time.time() elapsedtime = stoptime - starttime print "\n%s EXIT STATUS: TIMED OUT (%s seconds)\n" % (prefix, elapsedtime)
def alarm_handler(signum, frame): global pid global prefix try: print "%s EXIT STATUS: TIMED OUT (%s seconds)" % (prefix, sys.argv[1]) flushkill(pid, signal.SIGKILL) except OSError, e: print "timed_run.py: exception trying to kill process: %d (%s)" % (e.errno, e.strerror) pass flushexit(exitTimeout)
40e51f168a1d4c5be0da376001bba226401d3f3c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/40e51f168a1d4c5be0da376001bba226401d3f3c/timed_run.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13721, 67, 4176, 12, 2977, 379, 16, 2623, 4672, 2552, 4231, 2552, 1633, 775, 30, 384, 3838, 494, 273, 813, 18, 957, 1435, 9613, 957, 273, 384, 3838, 494, 300, 23437, 1172, 1548, 82, 9,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13721, 67, 4176, 12, 2977, 379, 16, 2623, 4672, 2552, 4231, 2552, 1633, 775, 30, 384, 3838, 494, 273, 813, 18, 957, 1435, 9613, 957, 273, 384, 3838, 494, 300, 23437, 1172, 1548, 82, 9,...
remaining = sorted(name_map.items(), lambda x, y: cmp(aq_base(x[1]), aq_base(y[1])))
remaining = sorted(name_map.items(), lambda x, y: cmp(aq_base(x[1]), aq_base(y[1])))
def sort(self, viewlets): """Sort the viewlets.
8aefb5bb6cbb37fe0a7da7ea871dc4aaac183c3e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12185/8aefb5bb6cbb37fe0a7da7ea871dc4aaac183c3e/managers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1524, 12, 2890, 16, 1476, 17307, 4672, 3536, 4416, 326, 1476, 17307, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 1524, 12, 2890, 16, 1476, 17307, 4672, 3536, 4416, 326, 1476, 17307, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
print print "Usage: loadManyChords.py [-d <sec_delay>] -f <input_file> -n <nodes> -a <ip_address> -p <start_port> -l <landmark>\n" print
print r""" Usage: loadManyChords.py [-d <sec_delay>=20] \ -f <input_file> -n <nodes> \ -a <ip_address> -p <start_port> -l <landmark>"""
def print_usage(): print print "Usage: loadManyChords.py [-d <sec_delay>] -f <input_file> -n <nodes> -a <ip_address> -p <start_port> -l <landmark>\n" print
794f5bdb9ceae079f58e71416d30042c0dfef00f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/929/794f5bdb9ceae079f58e71416d30042c0dfef00f/loadManyChords.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 9167, 13332, 1172, 436, 8395, 10858, 30, 1262, 5594, 782, 517, 87, 18, 2074, 23059, 72, 411, 3321, 67, 10790, 34, 33, 3462, 65, 521, 300, 74, 411, 2630, 67, 768, 34, 300, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 9167, 13332, 1172, 436, 8395, 10858, 30, 1262, 5594, 782, 517, 87, 18, 2074, 23059, 72, 411, 3321, 67, 10790, 34, 33, 3462, 65, 521, 300, 74, 411, 2630, 67, 768, 34, 300, 8...
if g.num_verts() !=0 and len(l)==g.num_verts():
if g.num_verts() !=0 and len(l)==g.num_verts():
def reduced_rauzy_graph(self, n): r""" Returns the reduced Rauzy graph of order `n` of self.
1e309a0b696b2b5ea5293939102925384078f62f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/1e309a0b696b2b5ea5293939102925384078f62f/word.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13162, 67, 354, 89, 21832, 67, 4660, 12, 2890, 16, 290, 4672, 436, 8395, 2860, 326, 13162, 534, 8377, 21832, 2667, 434, 1353, 1375, 82, 68, 434, 365, 18, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 13162, 67, 354, 89, 21832, 67, 4660, 12, 2890, 16, 290, 4672, 436, 8395, 2860, 326, 13162, 534, 8377, 21832, 2667, 434, 1353, 1375, 82, 68, 434, 365, 18, 2, -100, -100, -100, -100, -10...
db_id = self.pool.get(model).create(cursor, user, values)
db_id = object_ref.create(cursor, user, values) db_val = object_ref.browse(cursor, user, db_id) for key in values: try: values[key] = self._clean_value(key, db_val, object_ref) except Unhandled_field: continue
def import_record(self, cursor, user, model, module, values, fs_id):
d0801dc2816f0701c191a2942109935a99cf02f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/d0801dc2816f0701c191a2942109935a99cf02f6/model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 3366, 12, 2890, 16, 3347, 16, 729, 16, 938, 16, 1605, 16, 924, 16, 2662, 67, 350, 4672, 2, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 3366, 12, 2890, 16, 3347, 16, 729, 16, 938, 16, 1605, 16, 924, 16, 2662, 67, 350, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
price_unit = self.pool.get('product.pricelist').price_get(cr, uid, [pricelist], product.id, qty or 1.0, partner_id, {'uom': uom})[pricelist]
price_unit = self.pool.get('product.pricelist').price_get(cr, uid, [pricelist], product.id, qty or 1.0, partner_id, {'uom': uom})[pricelist] real_price=get_real_price(pricelist, product.id)
def product_id_change(self, cr, uid, ids, product, uom, qty=0, name='', type='out_invoice', partner_id=False, price_unit=False, address_invoice_id=False, context={}): res=super(account_invoice_line, self).product_id_change(cr, uid, ids, product, uom, qty, name, type, partner_id, price_unit, address_invoice_id, context)...
f111bd26e36c712b48620c3e7b4eb1a4fd35f552 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/f111bd26e36c712b48620c3e7b4eb1a4fd35f552/product.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3017, 67, 350, 67, 3427, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 3017, 16, 582, 362, 16, 26667, 33, 20, 16, 508, 2218, 2187, 618, 2218, 659, 67, 16119, 2187, 19170, 67, 350, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3017, 67, 350, 67, 3427, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 3017, 16, 582, 362, 16, 26667, 33, 20, 16, 508, 2218, 2187, 618, 2218, 659, 67, 16119, 2187, 19170, 67, 350, 33, ...
def _handle_exitstatus(self, sts): if os.WIFSIGNALED(sts): self.returncode = -os.WTERMSIG(sts) elif os.WIFEXITED(sts): self.returncode = os.WEXITSTATUS(sts)
def _handle_exitstatus(self, sts, _WIFSIGNALED=os.WIFSIGNALED, _WTERMSIG=os.WTERMSIG, _WIFEXITED=os.WIFEXITED, _WEXITSTATUS=os.WEXITSTATUS): if _WIFSIGNALED(sts): self.returncode = -_WTERMSIG(sts) elif _WIFEXITED(sts): self.returncode = _WEXITSTATUS(sts)
def _handle_exitstatus(self, sts): if os.WIFSIGNALED(sts): self.returncode = -os.WTERMSIG(sts) elif os.WIFEXITED(sts): self.returncode = os.WEXITSTATUS(sts) else: # Should never happen raise RuntimeError("Unknown child exit status!")
42a0ba7b2c88b181bce603a57c69a66539dab693 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/42a0ba7b2c88b181bce603a57c69a66539dab693/subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 8593, 2327, 12, 2890, 16, 27099, 16, 389, 59, 5501, 11260, 37, 6687, 33, 538, 18, 59, 5501, 11260, 37, 6687, 16, 389, 59, 15176, 18513, 33, 538, 18, 59, 15176, 18513, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 8593, 2327, 12, 2890, 16, 27099, 16, 389, 59, 5501, 11260, 37, 6687, 33, 538, 18, 59, 5501, 11260, 37, 6687, 16, 389, 59, 15176, 18513, 33, 538, 18, 59, 15176, 18513, ...
class=FileHandler
class=StreamHandler
def formatException(self, ei): return "Got a [%s]" % ei[0].__name__
844f741039ada0cc0658beae40c2769c9c2cb5d5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/844f741039ada0cc0658beae40c2769c9c2cb5d5/test_logging.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 503, 12, 2890, 16, 13247, 4672, 327, 315, 15617, 279, 9799, 87, 4279, 738, 13247, 63, 20, 8009, 972, 529, 972, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 503, 12, 2890, 16, 13247, 4672, 327, 315, 15617, 279, 9799, 87, 4279, 738, 13247, 63, 20, 8009, 972, 529, 972, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
portal_types = parent.portal_types portal_types.constructContent('Project Database', parent, obj_id)
print 'create new project db' self.portal_types.constructContent('Project Database', parent, obj_id)
f.write('def migrate(self):\n')
a7515b372064702005964c649711105373e02dc7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6024/a7515b372064702005964c649711105373e02dc7/migrate_projects.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 284, 18, 2626, 2668, 536, 13187, 12, 2890, 4672, 64, 82, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 284, 18, 2626, 2668, 536, 13187, 12, 2890, 4672, 64, 82, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
import zlib, base64 return zlib.decompress (base64.decodestring (EXEDATA))
import base64 return base64.decodestring (EXEDATA)
def get_exe_bytes (self): import zlib, base64 return zlib.decompress (base64.decodestring (EXEDATA))
9a4738fdcc09d216f84309e10e81edd081110eab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/9a4738fdcc09d216f84309e10e81edd081110eab/bdist_wininst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 14880, 67, 3890, 261, 2890, 4672, 1930, 24220, 16, 1026, 1105, 327, 24220, 18, 323, 14706, 261, 1969, 1105, 18, 4924, 1145, 371, 261, 2294, 2056, 3706, 3719, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 14880, 67, 3890, 261, 2890, 4672, 1930, 24220, 16, 1026, 1105, 327, 24220, 18, 323, 14706, 261, 1969, 1105, 18, 4924, 1145, 371, 261, 2294, 2056, 3706, 3719, 2, -100, -100, -100...
if not uom and not uos:
if (not uom) and (not uos):
def product_id_change(self, cr, uid, ids, pricelist, product, qty=0, uom=False, qty_uos=0, uos=False, name='', partner_id=False, lang=False, update_tax=True, date_order=False, packaging=False, fiscal_position=False): if not partner_id: raise osv.except_osv(_('No Partner !'), _('You have to select a partner in the sale...
07b8c2ca1106b636b3d768ec2eb4b454d01d0815 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/07b8c2ca1106b636b3d768ec2eb4b454d01d0815/sale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3017, 67, 350, 67, 3427, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 846, 335, 5449, 16, 3017, 16, 26667, 33, 20, 16, 582, 362, 33, 8381, 16, 26667, 67, 89, 538, 33, 20, 16, 582, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3017, 67, 350, 67, 3427, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 846, 335, 5449, 16, 3017, 16, 26667, 33, 20, 16, 582, 362, 33, 8381, 16, 26667, 67, 89, 538, 33, 20, 16, 582, ...
sage: print is_bitrade(T1, T2)
sage: is_bitrade(T1, T2)
def tau2(T1, T2, cells_map): """ The definition of tau2 is: tau2 : T1 -> T1 tau2 = beta\^(-1)_3 beta_1 (composing left to right) where beta_i : T2 -> T1 changes just the i-th coordinate of a triple. EXAMPLES: sage: from sage.combinat.matrices.latin import * sage: T1 = back_circulant(5) sage: x = isotopism( (0,1,...
9087d14f978c663baae98e9a365c4a3aa2a6f24c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/9087d14f978c663baae98e9a365c4a3aa2a6f24c/latin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12284, 22, 12, 56, 21, 16, 399, 22, 16, 5983, 67, 1458, 4672, 3536, 1021, 2379, 434, 12284, 22, 353, 30, 225, 12284, 22, 294, 399, 21, 317, 399, 21, 12284, 22, 273, 6796, 64, 66, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12284, 22, 12, 56, 21, 16, 399, 22, 16, 5983, 67, 1458, 4672, 3536, 1021, 2379, 434, 12284, 22, 353, 30, 225, 12284, 22, 294, 399, 21, 317, 399, 21, 12284, 22, 273, 6796, 64, 66, 1...
raise Exception("In '%s', inconsistent mail address: '%s' vs. '%s'" % (self.filename, self.currentContent(), baremail)) self.mails[(self.filename, self.pending_mail)] = True
raise Exception("Inconsistent mail address: '%s' vs. '%s'" % (self.currentContent(), baremail)) self.mails[self.pending_mail] = True
def endElement(self, name):
46150b618daa12147dcf6582726c44fc81523cee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6851/46150b618daa12147dcf6582726c44fc81523cee/obfusmail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14840, 12, 2890, 16, 508, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14840, 12, 2890, 16, 508, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
l = 2.0
l = -1.0
def clipPoly(polygon, clipRect, closeAtBorder = None): """clipPoly(polygon, clipRect) Clips away those parts of polygon which are not in clipRect. Returns a list of polygons (since the polygon may leave clipRect, enter again, leave, ...). Polygon segments crossing clipRect's borders are cut, such that the resulting p...
f7c055e35a4129e660ddacbabed3bce5b9813b14 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/f7c055e35a4129e660ddacbabed3bce5b9813b14/polytools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6807, 12487, 12, 20917, 16, 6807, 6120, 16, 1746, 861, 8107, 273, 599, 4672, 3536, 14161, 12487, 12, 20917, 16, 6807, 6120, 13, 225, 385, 11693, 10804, 5348, 2140, 434, 7154, 1492, 854, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6807, 12487, 12, 20917, 16, 6807, 6120, 16, 1746, 861, 8107, 273, 599, 4672, 3536, 14161, 12487, 12, 20917, 16, 6807, 6120, 13, 225, 385, 11693, 10804, 5348, 2140, 434, 7154, 1492, 854, ...
while cursel > 0 and selstart[:i] <= self.completions[cursel-1]:
previous_completion = self.completions[cursel - 1] while cursel > 0 and selstart[:i] <= previous_completion:
def _selection_changed(self): """Should be called when the selection of the Listbox has changed. Updates the Listbox display and calls _change_start.""" cursel = int(self.listbox.curselection()[0])
a7f0b64f779c91cb04e2e475cfab56906137a42f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/a7f0b64f779c91cb04e2e475cfab56906137a42f/AutoCompleteWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10705, 67, 6703, 12, 2890, 4672, 3536, 14309, 506, 2566, 1347, 326, 4421, 434, 326, 987, 2147, 711, 3550, 18, 15419, 326, 987, 2147, 2562, 471, 4097, 389, 3427, 67, 1937, 12123, 662...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10705, 67, 6703, 12, 2890, 4672, 3536, 14309, 506, 2566, 1347, 326, 4421, 434, 326, 987, 2147, 711, 3550, 18, 15419, 326, 987, 2147, 2562, 471, 4097, 389, 3427, 67, 1937, 12123, 662...
if domobj.hasAttribute("module") :
if domobj.hasAttribute("module"):
def test_localfile_backend_method2(self): """Tests for localfile/Backend/get_tasks_list method : - an integer value is expected. """ self.create_test_environment() doc, configxml = cleanxml.openxmlfile(self.datapath, 'config') xmlproject = doc.getElementsByTagName('backend') for domobj in xmlproject: dic = {} if domobj...
1d4793a169fe2839ad368b4b705478493c2729c6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/1d4793a169fe2839ad368b4b705478493c2729c6/backends.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3729, 768, 67, 9993, 67, 2039, 22, 12, 2890, 4672, 3536, 14650, 364, 1191, 768, 19, 7172, 19, 588, 67, 9416, 67, 1098, 707, 294, 300, 392, 3571, 460, 353, 2665, 18, 3536, 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, 1842, 67, 3729, 768, 67, 9993, 67, 2039, 22, 12, 2890, 4672, 3536, 14650, 364, 1191, 768, 19, 7172, 19, 588, 67, 9416, 67, 1098, 707, 294, 300, 392, 3571, 460, 353, 2665, 18, 3536, 3...
def is_k_sparse(vec, k): """ checks if 95% of the weight of a normalized vector vec is in less than k of its entries. """ WEIGHT=0.95 n=len(vec) if k<0 or k>n: raise ValueError(" k has to be in 1 .. len(vec) ") exfilt = numpy.concatenate( (numpy.ones(k), numpy.zeros(n-k) ) ) out = False for filt in itertools.pe...
DIR_DIM_START = 1 DIR_DIM_STOP = 202
def is_k_sparse(vec, k): """ checks if 95% of the weight of a normalized vector vec is in less than k of its entries. """ WEIGHT=0.95 # 95% n=len(vec) if k<0 or k>n: raise ValueError(" k has to be in 1 .. len(vec) ") # a filter with k entries set to 1 exfilt = numpy.concatenate( (numpy.ones(k), numpy.zeros(n-k) ...
c45d38c22184f8b6b93be887d7956bd788fdb257 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13530/c45d38c22184f8b6b93be887d7956bd788fdb257/dirichlet_sparse_stats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 79, 67, 17472, 12, 8799, 16, 417, 4672, 3536, 4271, 309, 16848, 9, 434, 326, 3119, 434, 279, 5640, 3806, 7062, 353, 316, 5242, 2353, 417, 434, 2097, 3222, 18, 3536, 13880, 770...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 79, 67, 17472, 12, 8799, 16, 417, 4672, 3536, 4271, 309, 16848, 9, 434, 326, 3119, 434, 279, 5640, 3806, 7062, 353, 316, 5242, 2353, 417, 434, 2097, 3222, 18, 3536, 13880, 770...
','.join([str(x) for x in all_ids]) + ') ' \
','.join(['%s' for x in all_ids]) + ') ' \
def get_balance(self, cursor, user, ids, name, arg, context=None): res = {} company_obj = self.pool.get('company.company') currency_obj = self.pool.get('account.currency') move_line_obj = self.pool.get('account.move.line')
9cabb70c14bf195ed5f827672ffbbf4645b97ca4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9290/9cabb70c14bf195ed5f827672ffbbf4645b97ca4/account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 12296, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 508, 16, 1501, 16, 819, 33, 7036, 4672, 400, 273, 2618, 9395, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 16840, 18, 16840...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12296, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 508, 16, 1501, 16, 819, 33, 7036, 4672, 400, 273, 2618, 9395, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 16840, 18, 16840...
def BuildTree(path, partial_paths, old_indent):
def BuildTree(path, partial_paths):
def BuildTree(path, partial_paths, old_indent): ''' Given a package directory path, return indented HTML list items of the path. Need to keep track of partial paths already seen. ''' path_components = path.split('/') p = '' index = '' for comp in path_components[0:-1]: p += comp + '/' if not p in partial_paths: parti...
cec57bc15ffab6992de685c9eb55ca92f3b99838 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6216/cec57bc15ffab6992de685c9eb55ca92f3b99838/generate-embedded-docs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3998, 2471, 12, 803, 16, 4702, 67, 4481, 4672, 9163, 16803, 279, 2181, 1867, 589, 16, 327, 23786, 3982, 666, 1516, 434, 326, 589, 18, 12324, 358, 3455, 3298, 434, 4702, 2953, 1818, 5881,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3998, 2471, 12, 803, 16, 4702, 67, 4481, 4672, 9163, 16803, 279, 2181, 1867, 589, 16, 327, 23786, 3982, 666, 1516, 434, 326, 589, 18, 12324, 358, 3455, 3298, 434, 4702, 2953, 1818, 5881,...
[0, 1, -1, 1/2, -1/2, 2, -2, 1/3, -1/3, 3/2, -3/2]
[0, 1, -1, 1/2, -1/2, 2, -2, 1/3, -1/3, 3/2]
def list_of_first_n(v,n): """ Given an iterator v, return first n elements it produces as a list. INPUT: v -- an interator n -- an integer OUTPUT: list EXAMPLES: sage: sage.server.notebook.interact.list_of_first_n(Primes(), 10) [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31] sage: sage.server.notebook.interact.list_of_firs...
5bda3f7b9543bf188cca7d25e82f044fad322c0b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/5bda3f7b9543bf188cca7d25e82f044fad322c0b/interact.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 792, 67, 3645, 67, 82, 12, 90, 16, 82, 4672, 3536, 16803, 392, 2775, 331, 16, 327, 1122, 290, 2186, 518, 15505, 487, 279, 666, 18, 225, 12943, 30, 331, 1493, 392, 1554, 639,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 792, 67, 3645, 67, 82, 12, 90, 16, 82, 4672, 3536, 16803, 392, 2775, 331, 16, 327, 1122, 290, 2186, 518, 15505, 487, 279, 666, 18, 225, 12943, 30, 331, 1493, 392, 1554, 639,...
if text == 0: text = "no contacts" elif text == 1: text += " contact" else: text += " contacts"
if text == 0: text = _("no contacts") elif text == 1: text += _(" contact") else: text += _(" contacts")
def contactData_change(self, model, path, iter): text = str(len(self.contactData)) if text == 0: text = "no contacts" elif text == 1: text += " contact" else: text += " contacts" self.contactView.countLabel.set_text(text)
a8a4c6ca09f6afe3062c9a37ce6363c545145985 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2651/a8a4c6ca09f6afe3062c9a37ce6363c545145985/arkadas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5388, 751, 67, 3427, 12, 2890, 16, 938, 16, 589, 16, 1400, 4672, 977, 273, 609, 12, 1897, 12, 2890, 18, 8994, 751, 3719, 309, 977, 422, 374, 30, 977, 273, 389, 2932, 2135, 14841, 792...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5388, 751, 67, 3427, 12, 2890, 16, 938, 16, 589, 16, 1400, 4672, 977, 273, 609, 12, 1897, 12, 2890, 18, 8994, 751, 3719, 309, 977, 422, 374, 30, 977, 273, 389, 2932, 2135, 14841, 792...
buf += 'keybfr\n'
buf += 'kbdfr\n'
def buildMenu(self): """ @return: the GRUB boot menu as a string encoded using CP-437 @rtype: str """ # takes global items, one by one buf = '# Auto-generated by Pulse 2 Imaging Server on %s \n\n' % time.asctime()
d5b5876e67d6e20618f860c22cdd415e8975a937 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/d5b5876e67d6e20618f860c22cdd415e8975a937/menu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4599, 12, 2890, 4672, 3536, 632, 2463, 30, 326, 15228, 3457, 4835, 3824, 487, 279, 533, 3749, 1450, 5181, 17, 24, 6418, 632, 86, 723, 30, 609, 3536, 468, 5530, 2552, 1516, 16, 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, 1361, 4599, 12, 2890, 4672, 3536, 632, 2463, 30, 326, 15228, 3457, 4835, 3824, 487, 279, 533, 3749, 1450, 5181, 17, 24, 6418, 632, 86, 723, 30, 609, 3536, 468, 5530, 2552, 1516, 16, 12...
valueList = [0, 25.5, 26.5, 29.5, 30, 31]
valueList = [22, 25.5, 26.5, 29.5, 30, 31]
def __init__(self, parent, eventHub, powerSource, sizer, lineNum, mode = VOLTAGE): self._connections = []
a89946a67bf1bad8c17581385af56c3b8e4171c5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10608/a89946a67bf1bad8c17581385af56c3b8e4171c5/controls.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 871, 8182, 16, 7212, 1830, 16, 272, 1824, 16, 980, 2578, 16, 1965, 273, 776, 1741, 56, 2833, 4672, 365, 6315, 13313, 273, 5378, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 871, 8182, 16, 7212, 1830, 16, 272, 1824, 16, 980, 2578, 16, 1965, 273, 776, 1741, 56, 2833, 4672, 365, 6315, 13313, 273, 5378, 2, -100, -100, ...
strFrac = sep + strFrac if strip: while strFrac and strFrac[-1] in ['0',sep]: strFrac = strFrac[:-1]
def format(self, num): # positivize the numbers sign=num<0 if sign: num = -num places, sep = self.decimalPlaces, self.decimalSeparator strip = places<=0 if places and strip: places = -places strInt, strFrac = (('%.' + str(places) + 'f') % num).split('.')
f50c707e627f0fcc934f23550edf6e4b3826fc61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/f50c707e627f0fcc934f23550edf6e4b3826fc61/formatters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 12, 2890, 16, 818, 4672, 468, 949, 305, 427, 554, 326, 5600, 1573, 33, 2107, 32, 20, 309, 1573, 30, 818, 273, 300, 2107, 12576, 16, 5478, 273, 365, 18, 12586, 24791, 16, 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, 740, 12, 2890, 16, 818, 4672, 468, 949, 305, 427, 554, 326, 5600, 1573, 33, 2107, 32, 20, 309, 1573, 30, 818, 273, 300, 2107, 12576, 16, 5478, 273, 365, 18, 12586, 24791, 16, 365, 18...
sess.query(User).offset(2).from_self().join(
sess.query(User).order_by(User.id).offset(2).from_self().join(
def test_clause_onclause(self): sess = create_session()
1227a7674f915cc2080104fa769e3e71254316b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1074/1227a7674f915cc2080104fa769e3e71254316b9/query.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 18128, 67, 265, 18128, 12, 2890, 4672, 8451, 273, 752, 67, 3184, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 18128, 67, 265, 18128, 12, 2890, 4672, 8451, 273, 752, 67, 3184, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
tools.email_send_attach(data['form']['from'], to, data['form']['subject'], mail, attach=f_attach)
tools.email_send(data['form']['from'], to, data['form']['subject'], mail, attach=f_attach)
def _mass_mail_send(cr, uid, data, context, adr): import re # change the [[field]] tags with the partner address values pattern = re.compile('\[\[\S+\]\]') fields = pattern.findall(data['form']['text']) texts = [] for field in fields: text = getattr(adr, field[2:-2]) if text and field[-5:-2]=='_id': # State or country ...
3efcd344f88ae97f43ca6a51170d1815855c0073 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/3efcd344f88ae97f43ca6a51170d1815855c0073/wizard_spam.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10424, 67, 4408, 67, 4661, 12, 3353, 16, 4555, 16, 501, 16, 819, 16, 1261, 86, 4672, 1930, 283, 468, 2549, 326, 12167, 1518, 13563, 2342, 598, 326, 19170, 1758, 924, 1936, 273, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10424, 67, 4408, 67, 4661, 12, 3353, 16, 4555, 16, 501, 16, 819, 16, 1261, 86, 4672, 1930, 283, 468, 2549, 326, 12167, 1518, 13563, 2342, 598, 326, 19170, 1758, 924, 1936, 273, 28...
pop3proxy.start(pop3proxy.state) self.started = True
self.StartProxyThread()
def StartStop(self): # XXX This needs to be finished off. # XXX This should determine if we are using the service, and if so # XXX start/stop that, and if not kick pop3proxy off in a separate # XXX thread, or stop the thread that was started. if self.started: pop3proxy.stop(pop3proxy.state) self.started = False else: p...
0254a2f4a8a68361bc59fecaadbe2435c61fa306 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/0254a2f4a8a68361bc59fecaadbe2435c61fa306/pop3proxy_tray.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3603, 4947, 12, 2890, 4672, 468, 11329, 1220, 4260, 358, 506, 6708, 3397, 18, 468, 11329, 1220, 1410, 4199, 309, 732, 854, 1450, 326, 1156, 16, 471, 309, 1427, 468, 11329, 787, 19, 5681,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3603, 4947, 12, 2890, 4672, 468, 11329, 1220, 4260, 358, 506, 6708, 3397, 18, 468, 11329, 1220, 1410, 4199, 309, 732, 854, 1450, 326, 1156, 16, 471, 309, 1427, 468, 11329, 787, 19, 5681,...