rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
for (pathId, headPath, headFileId, headFileVersion), \ baseFile, headChanges in itertools.chain(changedHere, changedOther):
for ((pathId, headPath, headFileId, headFileVersion), baseFile, headChanges, fileOnSystem) \ in itertools.chain(changedHere, changedOther):
def _singleTrove(self, repos, troveCs, changeSet, baseTrove, fsTrove, root, removalHints, filePriorityPath, pathsMoved, flags):
62924f6a695934b70527fb089af5d68da577e117 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/62924f6a695934b70527fb089af5d68da577e117/update.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7526, 56, 303, 537, 12, 2890, 16, 13686, 16, 23432, 537, 14272, 16, 26104, 16, 1026, 56, 303, 537, 16, 2662, 56, 303, 537, 16, 1365, 16, 14817, 13368, 16, 585, 8183, 743, 16, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7526, 56, 303, 537, 12, 2890, 16, 13686, 16, 23432, 537, 14272, 16, 26104, 16, 1026, 56, 303, 537, 16, 2662, 56, 303, 537, 16, 1365, 16, 14817, 13368, 16, 585, 8183, 743, 16, 29...
integers n -1.
integers n >= 1.
def spherical_bessel_J(n, var, algorithm="maxima"): r""" Returns the spherical Bessel function of the first kind for integers n -1. Reference: AS 10.1.8 page 437 and AS 10.1.15 page 439. EXAMPLES:: sage: spherical_bessel_J(2,x) ((3/x^2 - 1)*sin(x) - 3*cos(x)/x)/x """ if algorithm=="scipy": import scipy.special ans =...
69426fc5c3f874bbd499adc1e1970c6590c5cf4f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/69426fc5c3f874bbd499adc1e1970c6590c5cf4f/special.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 21570, 67, 70, 403, 292, 67, 46, 12, 82, 16, 569, 16, 4886, 1546, 1896, 13888, 6, 4672, 436, 8395, 2860, 326, 272, 21570, 605, 403, 292, 445, 434, 326, 1122, 3846, 364, 12321, 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, 272, 21570, 67, 70, 403, 292, 67, 46, 12, 82, 16, 569, 16, 4886, 1546, 1896, 13888, 6, 4672, 436, 8395, 2860, 326, 272, 21570, 605, 403, 292, 445, 434, 326, 1122, 3846, 364, 12321, 2...
else: raise TypeError
raise TypeError
def _coerce_impl(self, x): if isinstance(x, PermutationGroupElement): if x.parent() is self: return x elif x.parent().degree() <= self.degree() and x._gap_() in self._gap_(): return PermutationGroupElement(x._gap_(), self, check = False) else: raise TypeError
c5c2254af870644fac0bf3ca058f1db93cfb234c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c5c2254af870644fac0bf3ca058f1db93cfb234c/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2894, 2765, 67, 11299, 12, 2890, 16, 619, 4672, 309, 1549, 12, 92, 16, 13813, 9245, 1114, 1046, 4672, 309, 619, 18, 2938, 1435, 353, 365, 30, 327, 619, 1327, 619, 18, 2938, 7675, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2894, 2765, 67, 11299, 12, 2890, 16, 619, 4672, 309, 1549, 12, 92, 16, 13813, 9245, 1114, 1046, 4672, 309, 619, 18, 2938, 1435, 353, 365, 30, 327, 619, 1327, 619, 18, 2938, 7675, ...
plpoly3(x, y, z, draw[k])
plpoly3(x, y, z, draw[k], 1)
def test_poly(k): draw = [ [ 1, 1, 1, 1 ], [ 1, 0, 1, 0 ], [ 0, 1, 0, 1 ], [ 1, 1, 0, 0 ] ] pladv(0) plvpor(0.0, 1.0, 0.0, 0.9) plwind(-1.0, 1.0, -0.9, 1.1) plcol0(1) plw3d(1.0, 1.0, 1.0, -1.0, 1.0, -1.0, 1.0, -1.0, 1.0, alt[k], az[k]) plbox3("bnstu", "x axis", 0.0, 0, "bnstu", "y axis", 0.0, 0, "bcdmnstuv", "z axis"...
9ba41e39b693f6c6607abbcd1c6b6b3dbb7c2713 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2933/9ba41e39b693f6c6607abbcd1c6b6b3dbb7c2713/xw18.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 16353, 12, 79, 4672, 225, 3724, 273, 306, 306, 404, 16, 404, 16, 404, 16, 404, 308, 16, 306, 404, 16, 374, 16, 404, 16, 374, 308, 16, 306, 374, 16, 404, 16, 374, 16, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16353, 12, 79, 4672, 225, 3724, 273, 306, 306, 404, 16, 404, 16, 404, 16, 404, 308, 16, 306, 404, 16, 374, 16, 404, 16, 374, 308, 16, 306, 374, 16, 404, 16, 374, 16, 40...
dst_lst = list(dst.value)
dst_lst = [c for c in dst.value]
def _univ_newline_read(bzerror, stream, buf, n, obj): dst = buf if not obj.f_univ_newline: nread = libbz2.BZ2_bzRead(byref(bzerror), stream, buf, n) return nread, buf newlinetypes = obj.f_newlinetypes skipnextlf = obj.f_skipnextlf while n: src = dst nread = libbz2.BZ2_bzRead(byref(bzerror), stream, buf, n) n -= nre...
a1f4edbf753b28132c2268ebba6a2186de141559 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/a1f4edbf753b28132c2268ebba6a2186de141559/interp_bz2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 318, 427, 67, 22861, 67, 896, 12, 25292, 1636, 16, 1407, 16, 1681, 16, 290, 16, 1081, 4672, 3046, 273, 1681, 225, 309, 486, 1081, 18, 74, 67, 318, 427, 67, 22861, 30, 290, 896, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 318, 427, 67, 22861, 67, 896, 12, 25292, 1636, 16, 1407, 16, 1681, 16, 290, 16, 1081, 4672, 3046, 273, 1681, 225, 309, 486, 1081, 18, 74, 67, 318, 427, 67, 22861, 30, 290, 896, ...
raise NotImplemented
raise NotImplemented, 'method "%s" is not implemented' % method_name
def find_view_by_method(server, context): """Associating an uncommon HTTP or WebDAV method to a special view. method "PUT" -> view "http_put" <instance of BaseView> """ method_name = context.request.method view_name = "http_%s" % method_name.lower() context.view = context.resource.get_view(view_name) if context.view is...
d5b0efa7c5787bb67b3da6d65bc85a45f5aef914 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12681/d5b0efa7c5787bb67b3da6d65bc85a45f5aef914/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 1945, 67, 1637, 67, 2039, 12, 3567, 16, 819, 4672, 3536, 5125, 1776, 392, 12704, 2586, 2239, 578, 2999, 17735, 707, 358, 279, 4582, 1476, 18, 707, 315, 4762, 6, 317, 1476, 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, 1104, 67, 1945, 67, 1637, 67, 2039, 12, 3567, 16, 819, 4672, 3536, 5125, 1776, 392, 12704, 2586, 2239, 578, 2999, 17735, 707, 358, 279, 4582, 1476, 18, 707, 315, 4762, 6, 317, 1476, 31...
if engine.dialect.auto_identity_insert and isinstance(parameters, list): if parameters[0].has_key(c.name):
if engine.dialect.auto_identity_insert: if isinstance(parameters, list) and parameters[0].has_key(c.name):
def pre_exec(self, engine, proxy, compiled, parameters, **kwargs): """ MS-SQL has a special mode for inserting non-NULL values into IDENTITY columns. Activate it if the feature is turned on and needed. """ if getattr(compiled, "isinsert", False): self.IINSERT = False self.HASIDENT = False for c in compiled.statement.ta...
4a1a2fec8071124775f05bddcdae855d008db8e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1074/4a1a2fec8071124775f05bddcdae855d008db8e8/mssql.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 675, 67, 4177, 12, 2890, 16, 4073, 16, 2889, 16, 7743, 16, 1472, 16, 2826, 4333, 4672, 3536, 9238, 17, 3997, 711, 279, 4582, 1965, 364, 21079, 1661, 17, 8560, 924, 1368, 1599, 11101, 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, 675, 67, 4177, 12, 2890, 16, 4073, 16, 2889, 16, 7743, 16, 1472, 16, 2826, 4333, 4672, 3536, 9238, 17, 3997, 711, 279, 4582, 1965, 364, 21079, 1661, 17, 8560, 924, 1368, 1599, 11101, 2...
numlocales=subprocess.Popen(['cat', f], stdout=subprocess.PIPE).communicate()[0].strip()
numlocales=int(subprocess.Popen(['cat', f], stdout=subprocess.PIPE).communicate()[0])
def kill_proc(p, timeout): k = subprocess.Popen(['kill',str(p.pid)]) k.wait() now = time.time() end_time = now + timeout # give it a little time while end_time > now: if p.poll(): return now = time.time() # use the big hammer (and don't bother waiting) subprocess.Popen(['kill','-9', str(p.pid)]) return
104424f171f0895d16c59291ac9da05a2dd76db5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6895/104424f171f0895d16c59291ac9da05a2dd76db5/sub_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 67, 9381, 12, 84, 16, 2021, 4672, 417, 273, 6652, 18, 52, 3190, 12, 3292, 16418, 2187, 701, 12, 84, 18, 6610, 13, 5717, 417, 18, 7048, 1435, 2037, 273, 813, 18, 957, 1435, 679,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 67, 9381, 12, 84, 16, 2021, 4672, 417, 273, 6652, 18, 52, 3190, 12, 3292, 16418, 2187, 701, 12, 84, 18, 6610, 13, 5717, 417, 18, 7048, 1435, 2037, 273, 813, 18, 957, 1435, 679,...
oRPC = kws['timeout']
timeout = kws['timeout']
def executeRPC(self, *parms, **kws): toExecute = self.call # Check whether 'rpc' keyword is specified oRPC = False if kws.has_key('rpc'): oRPC = kws['rpc'] del kws['rpc'] # Check whether the 'timeout' keyword is specified timeout=120 if kws.has_key('timeout'): oRPC = kws['timeout'] del kws['timeout'] # Check whether th...
8fc5f736b594b14d52ae63d885217b436429c57d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/8fc5f736b594b14d52ae63d885217b436429c57d/Client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 8087, 12, 2890, 16, 380, 29927, 16, 2826, 79, 4749, 4672, 358, 5289, 273, 365, 18, 1991, 468, 2073, 2856, 296, 7452, 11, 4932, 353, 1269, 320, 8087, 273, 1083, 309, 18681, 18, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 8087, 12, 2890, 16, 380, 29927, 16, 2826, 79, 4749, 4672, 358, 5289, 273, 365, 18, 1991, 468, 2073, 2856, 296, 7452, 11, 4932, 353, 1269, 320, 8087, 273, 1083, 309, 18681, 18, 53...
- `option_spec`: Dictionary mapping known option names to a
- `options_spec`: Dictionary mapping known option names to a
def assemble_option_dict(option_list, option_spec): """ Return a mapping of option names to values. :Parameters: - `option_list`: A list of (name, value) pairs (the output of `extract_options()`). - `option_spec`: Dictionary mapping known option names to a conversion function such as `int` or `float`. :Exceptions: - ...
baf8ed68b00ab85df7d57bf119f115924a28130f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/baf8ed68b00ab85df7d57bf119f115924a28130f/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19540, 67, 3482, 67, 1576, 12, 3482, 67, 1098, 16, 1456, 67, 2793, 4672, 3536, 2000, 279, 2874, 434, 1456, 1257, 358, 924, 18, 225, 294, 2402, 30, 300, 1375, 3482, 67, 1098, 68, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19540, 67, 3482, 67, 1576, 12, 3482, 67, 1098, 16, 1456, 67, 2793, 4672, 3536, 2000, 279, 2874, 434, 1456, 1257, 358, 924, 18, 225, 294, 2402, 30, 300, 1375, 3482, 67, 1098, 68, 30, ...
self._bymonthday = None
self._bymonthday = ()
def __init__(self, freq, dtstart=None, interval=1, wkst=0, count=None, until=None, bysetpos=None, bymonth=None, bymonthday=None, byyearday=None, byeaster=None, byweekno=None, byweekday=None, byhour=None, byminute=None, bysecond=None, cache=False): if cache: self._cache = [] self._cache_lock = thread.allocate_lock() sel...
d375f07e08a8fd61f1640e67f981e1abdac8d8d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8441/d375f07e08a8fd61f1640e67f981e1abdac8d8d1/rrule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7684, 16, 3681, 1937, 33, 7036, 16, 3673, 33, 21, 16, 26987, 334, 33, 20, 16, 1056, 33, 7036, 16, 3180, 33, 7036, 16, 635, 542, 917, 33, 7036, 16, 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, 2738, 972, 12, 2890, 16, 7684, 16, 3681, 1937, 33, 7036, 16, 3673, 33, 21, 16, 26987, 334, 33, 20, 16, 1056, 33, 7036, 16, 3180, 33, 7036, 16, 635, 542, 917, 33, 7036, 16, 63...
def _convertStyleAttributes(self, argslist): if not argslist.has_key('style'): return argslist styles = self.formatter._convertStylesToDict(argslist['style'].strip('"')) argslist.update(styles) return argslist
def _convertStyleAttributes(self, argslist): if not argslist.has_key('style'): return argslist styles = self.formatter._convertStylesToDict(argslist['style'].strip('"')) argslist.update(styles)
1433435f169a98600ed153334470f8365d04459c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/1433435f169a98600ed153334470f8365d04459c/text_docbook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6283, 2885, 2498, 12, 2890, 16, 833, 1098, 4672, 309, 486, 833, 1098, 18, 5332, 67, 856, 2668, 4060, 11, 4672, 327, 833, 1098, 5687, 273, 365, 18, 12354, 6315, 6283, 9725, 774, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 6283, 2885, 2498, 12, 2890, 16, 833, 1098, 4672, 309, 486, 833, 1098, 18, 5332, 67, 856, 2668, 4060, 11, 4672, 327, 833, 1098, 5687, 273, 365, 18, 12354, 6315, 6283, 9725, 774, 50...
if node.__class__ == dri.DRIConfig:
elif node.__class__ == dri.DRIConfig:
def selectionChangedSignal (self, data): node = self.getSelection (allowNone=TRUE) if not node: driver = None app = None elif node.__class__ == dri.AppConfig: app = node try: driver = app.device.getDriver (dpy) except dri.XMLError, problem: driver = None dialog = gtk.MessageDialog ( mainWindow, gtk.DIALOG_DESTROY_WITH_...
4fedf4d5fd7ebab36a511a5ab6d1e0425429242a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4580/4fedf4d5fd7ebab36a511a5ab6d1e0425429242a/driconf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4421, 5033, 11208, 261, 2890, 16, 501, 4672, 756, 273, 365, 18, 588, 6233, 261, 5965, 7036, 33, 18724, 13, 309, 486, 756, 30, 3419, 273, 599, 595, 273, 599, 1327, 756, 16186, 1106, 972...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4421, 5033, 11208, 261, 2890, 16, 501, 4672, 756, 273, 365, 18, 588, 6233, 261, 5965, 7036, 33, 18724, 13, 309, 486, 756, 30, 3419, 273, 599, 595, 273, 599, 1327, 756, 16186, 1106, 972...
opformat=self.format_list[self.format_menu.get_history()] if (ipfile[0] == '<') and (opformat == 'VRT'):
opformat = self.format_list[self.format_menu.get_history()] if ipfile.startswith('<') and opformat == 'VRT':
def export_cb(self,*args): ipfile=self.frame_dict['Files'].get('Input') opfile=self.frame_dict['Files'].get('Output') if os.path.isfile(opfile): resp=GtkExtra.message_box('Confirmation',opfile + ' exists. Overwrite?',('Yes','No')) if resp == 'No': return elif len(opfile) == 0: gvutils.error('No output filename entered...
18bebfddf000a5af98d1ab83e4246e700756e2a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11090/18bebfddf000a5af98d1ab83e4246e700756e2a4/Tool_Export.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 7358, 12, 2890, 16, 14, 1968, 4672, 2359, 768, 33, 2890, 18, 3789, 67, 1576, 3292, 2697, 29489, 588, 2668, 1210, 6134, 1061, 768, 33, 2890, 18, 3789, 67, 1576, 3292, 2697, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 7358, 12, 2890, 16, 14, 1968, 4672, 2359, 768, 33, 2890, 18, 3789, 67, 1576, 3292, 2697, 29489, 588, 2668, 1210, 6134, 1061, 768, 33, 2890, 18, 3789, 67, 1576, 3292, 2697, 29...
classexpr = '^([ \t]*class +[a-zA-Z0-9_]+) *\( *\) *((=.*)?):' findclass = regexp.compile(classexpr).match baseexpr = '^ *(.*) *\( *\) *$' findbase = regexp.compile(baseexpr).match
def recursedown(dirname): dbg('recursedown(' + `dirname` + ')\n') bad = 0 try: names = posix.listdir(dirname) except posix.error, msg: err(dirname + ': cannot list directory: ' + `msg` + '\n') return 1 for name in names: if name in ('.', '..'): continue fullname = path.join(dirname, name) if path.islink(fullname): pass...
b84614f43186fc92896afc304f85cdb7961cf46b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b84614f43186fc92896afc304f85cdb7961cf46b/classfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8112, 730, 995, 12, 12287, 4672, 28966, 2668, 266, 1397, 730, 995, 2668, 397, 1375, 12287, 68, 397, 296, 5153, 82, 6134, 5570, 273, 374, 775, 30, 1257, 273, 16366, 18, 1098, 1214, 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, 8112, 730, 995, 12, 12287, 4672, 28966, 2668, 266, 1397, 730, 995, 2668, 397, 1375, 12287, 68, 397, 296, 5153, 82, 6134, 5570, 273, 374, 775, 30, 1257, 273, 16366, 18, 1098, 1214, 12, ...
expected = """ [i1, i2]
preamble = """ [i1, p2] i2 = getfield_gc(p2, descr=adescr)
def test_vstruct_1(self): ops = """ [i1, p2] i2 = getfield_gc(p2, descr=adescr) escape(i2) p3 = new(descr=ssize) setfield_gc(p3, i1, descr=adescr) jump(i1, p3) """ expected = """ [i1, i2] escape(i2) jump(i1, i1) """ self.optimize_loop(ops, 'Not, VStruct(ssize, adescr=Not)', expected)
1ca649089b6d3244f4d70d4547c3779712b8c025 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/1ca649089b6d3244f4d70d4547c3779712b8c025/test_optimizeopt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 90, 1697, 67, 21, 12, 2890, 4672, 6727, 273, 3536, 306, 77, 21, 16, 293, 22, 65, 277, 22, 273, 336, 1518, 67, 13241, 12, 84, 22, 16, 18426, 33, 361, 742, 86, 13, 4114, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 90, 1697, 67, 21, 12, 2890, 4672, 6727, 273, 3536, 306, 77, 21, 16, 293, 22, 65, 277, 22, 273, 336, 1518, 67, 13241, 12, 84, 22, 16, 18426, 33, 361, 742, 86, 13, 4114, ...
while d.out_buffer:
n = 1000 while d.out_buffer and n > 0:
def test_send(self): s = capture_server() s.start() time.sleep(1) # Give server time to initialize
78e19616f3f30adfe8845aa80f03c4b822626f13 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/78e19616f3f30adfe8845aa80f03c4b822626f13/test_asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4661, 12, 2890, 4672, 272, 273, 7477, 67, 3567, 1435, 272, 18, 1937, 1435, 813, 18, 19607, 12, 21, 13, 468, 22374, 1438, 813, 358, 4046, 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, 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, 1842, 67, 4661, 12, 2890, 4672, 272, 273, 7477, 67, 3567, 1435, 272, 18, 1937, 1435, 813, 18, 19607, 12, 21, 13, 468, 22374, 1438, 813, 358, 4046, 2, -100, -100, -100, -100, -100, -100...
for x in PACKAGES: if (OMIT.count(x)): ConditionalWriteFile(PREFIX+'/tmp/dtool_have_'+x.lower()+'.dat',"0\n") else: ConditionalWriteFile(PREFIX+'/tmp/dtool_have_'+x.lower()+'.dat',"1\n")
if (SLAVEBUILD==0): confautoprc=ReadFile("makepanda/confauto.in") if (os.path.isfile("makepanda/myconfig.in")): configprc=ReadFile("makepanda/myconfig.in") else: configprc=ReadFile("makepanda/config.in") if (sys.platform != "win32"): confautoprc = confautoprc.replace("aux-display pandadx9","") confautoprc = confautopr...
# ifndef WIN32
bc5fc1af0298e68a51a18dc8bc8da9f86c4f411e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/bc5fc1af0298e68a51a18dc8bc8da9f86c4f411e/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 309, 82, 536, 678, 706, 1578, 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...
[ 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, 468, 309, 82, 536, 678, 706, 1578, 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, ...
taggedAppName = '<application>%s</application>'%appName
taggedAppName = '<application>%s</application>'%cgi.escape(appName)
def generateUnhelpfulHelp(appName): try: app = root.application(appName) except SearchError: run(appName) print '<?xml version="1.0"?>' print '<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">' print '<article>' taggedAppName = '<application>%s<...
d24d70c5da5bade6842d9a7b40f56bcefda90a90 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10139/d24d70c5da5bade6842d9a7b40f56bcefda90a90/no-help-at-all.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 984, 5201, 2706, 6696, 12, 2910, 461, 4672, 775, 30, 595, 273, 1365, 18, 3685, 12, 2910, 461, 13, 1335, 5167, 668, 30, 1086, 12, 2910, 461, 13, 1172, 16617, 2902, 1177, 1546, 21,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 984, 5201, 2706, 6696, 12, 2910, 461, 4672, 775, 30, 595, 273, 1365, 18, 3685, 12, 2910, 461, 13, 1335, 5167, 668, 30, 1086, 12, 2910, 461, 13, 1172, 16617, 2902, 1177, 1546, 21,...
self.mySizer.Add(self.statusPanel, 0, wx.GROW, 5)
def _showStatus(self, text): self._hideAccountInfo()
35643fba77b7a8eb38aa69d7d89ba4741ab00998 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/35643fba77b7a8eb38aa69d7d89ba4741ab00998/SubscribeCollection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4500, 1482, 12, 2890, 16, 977, 4672, 365, 6315, 11248, 3032, 966, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4500, 1482, 12, 2890, 16, 977, 4672, 365, 6315, 11248, 3032, 966, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
oldSelMark=self.obj.dom.selection.createRange().getBookmark()
oldSelMark=self.obj.domElement.document.selection.createRange().getBookmark()
def _expandToLine(self,textRange): if self.basePosition in [text.POSITION_CARET,text.POSITION_SELECTION]: oldSelMark=self.obj.dom.selection.createRange().getBookmark() sendKey(key("ExtendedEnd")) api.processPendingEvents() textRange.setEndPoint("endToEnd",self.obj.dom.selection.createRange()) sendKey(key("ExtendedHome"...
e414733012e267c4ac0a4ed4c2b245743e7a1b97 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/e414733012e267c4ac0a4ed4c2b245743e7a1b97/MSHTML.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12320, 774, 1670, 12, 2890, 16, 955, 2655, 4672, 309, 365, 18, 1969, 2555, 316, 306, 955, 18, 15258, 67, 3587, 10238, 16, 955, 18, 15258, 67, 1090, 15445, 14542, 1592, 1877, 3882, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12320, 774, 1670, 12, 2890, 16, 955, 2655, 4672, 309, 365, 18, 1969, 2555, 316, 306, 955, 18, 15258, 67, 3587, 10238, 16, 955, 18, 15258, 67, 1090, 15445, 14542, 1592, 1877, 3882, ...
if isinstance(contents, pim.SmartCollection) and \ not hasattr(contents, 'inclusions'): contents._setup()
def _get(self, previousView=None, updateCallback=None, getPhrase=None):
4232d1290f0537fe75fe2ce73b695a291f8816ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/4232d1290f0537fe75fe2ce73b695a291f8816ee/Sharing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 12, 2890, 16, 2416, 1767, 33, 7036, 16, 1089, 2428, 33, 7036, 16, 21735, 5648, 33, 7036, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 12, 2890, 16, 2416, 1767, 33, 7036, 16, 1089, 2428, 33, 7036, 16, 21735, 5648, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
eqPos = tag.find ('=')
eqPos = tag.find('=')
def form_tag_value_pairs (tags): pairs = [] for tag in tags: eqPos = tag.find ('=') if eqPos == -1: pairs.append (TagValue (tag, None)) else: t = tag[:eqPos] v = get_typed_tag_value (tag[eqPos+1:]) pairs.append (TagValue (t, v)) return pairs
e75848841ac96982524448e932e12fd6ff9cbe0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12637/e75848841ac96982524448e932e12fd6ff9cbe0c/fdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 646, 67, 2692, 67, 1132, 67, 11545, 261, 4156, 4672, 5574, 273, 5378, 364, 1047, 316, 2342, 30, 7555, 1616, 273, 1047, 18, 4720, 2668, 2218, 13, 309, 7555, 1616, 422, 300, 21, 30, 5574...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 646, 67, 2692, 67, 1132, 67, 11545, 261, 4156, 4672, 5574, 273, 5378, 364, 1047, 316, 2342, 30, 7555, 1616, 273, 1047, 18, 4720, 2668, 2218, 13, 309, 7555, 1616, 422, 300, 21, 30, 5574...
return negInf
return _negInf
def ln(self, context=None): """Returns the natural (base e) logarithm of self."""
335c6f295295ab5b62a80d25d26d89243eb80fb0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/335c6f295295ab5b62a80d25d26d89243eb80fb0/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7211, 12, 2890, 16, 819, 33, 7036, 4672, 3536, 1356, 326, 15145, 261, 1969, 425, 13, 613, 31249, 434, 365, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7211, 12, 2890, 16, 819, 33, 7036, 4672, 3536, 1356, 326, 15145, 261, 1969, 425, 13, 613, 31249, 434, 365, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if self.cp.has_option("hooks", "update_image"):
if self.cp.has_option("hooks", "update_image_path"):
def setup(self, config_file): """ Setup config object according to config_file content. """
8667a21147a53f85f3605fc77a2bf14ef85e1e9b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/8667a21147a53f85f3605fc77a2bf14ef85e1e9b/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 2890, 16, 642, 67, 768, 4672, 3536, 10939, 642, 733, 4888, 358, 642, 67, 768, 913, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 2890, 16, 642, 67, 768, 4672, 3536, 10939, 642, 733, 4888, 358, 642, 67, 768, 913, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if bounds == None:
if bounds is None:
def degree_constrained_subgraph(self, bounds=None): r""" Returns a degree-constrained subgraph.
44ec9c222fa5a3714abf5c78dacc7f4a725a073c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/44ec9c222fa5a3714abf5c78dacc7f4a725a073c/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10782, 67, 591, 31142, 67, 1717, 4660, 12, 2890, 16, 4972, 33, 7036, 4672, 436, 8395, 2860, 279, 10782, 17, 591, 31142, 21469, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 10782, 67, 591, 31142, 67, 1717, 4660, 12, 2890, 16, 4972, 33, 7036, 4672, 436, 8395, 2860, 279, 10782, 17, 591, 31142, 21469, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100...
li.set_images([1,90])
li.set_images([i, j, k])
def set_wedges(self, wedges): self._wedges = wedges return
b17123bb71d9db37b449ca412be2b5706d6d77f8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/b17123bb71d9db37b449ca412be2b5706d6d77f8/CellRefImageSelect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 91, 8746, 12, 2890, 16, 341, 8746, 4672, 365, 6315, 91, 8746, 273, 341, 8746, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 67, 91, 8746, 12, 2890, 16, 341, 8746, 4672, 365, 6315, 91, 8746, 273, 341, 8746, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
dlfs_rm('file://%s' % checkPath, 'SE file')
if 'file://' not in outFilePath: dlfs_rm('file://%s' % checkPath, 'SE file')
def incInfo(x): infos[x] = infos.get(x, 0) + 1
7945a33e9682b7ed9f4328384dd89a4436769a03 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8443/7945a33e9682b7ed9f4328384dd89a4436769a03/downloadFromSE.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7290, 966, 12, 92, 4672, 10626, 63, 92, 65, 273, 10626, 18, 588, 12, 92, 16, 374, 13, 397, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7290, 966, 12, 92, 4672, 10626, 63, 92, 65, 273, 10626, 18, 588, 12, 92, 16, 374, 13, 397, 404, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.send_response(200) mtype, enc = mimetypes.guess_type(filename) stat = os.fstat(f.fileno()) content_length = stat[6] last_modified = time.strftime("%a, %d %b %Y %H:%M:%S GMT", time.gmtime(stat[8])) self.send_header('Content-Type', mtype) self.send_header('Conten-Length', str(content_length)) self.send_header('Last-...
try: self.send_response(200) mtype, enc = mimetypes.guess_type(filename) stat = os.fstat(f.fileno()) content_length = stat[6] last_modified = time.strftime("%a, %d %b %Y %H:%M:%S GMT", time.gmtime(stat[8])) self.send_header('Content-Type', mtype) self.send_header('Content-Length', str(content_length)) self.send_header(...
def do_htdocs_req(self, path): """This function serves request for static img/css files""" path = urllib.unquote(path) # Make sure the path doesn't contain any dangerous ".."-parts. path = '/'.join(filter(lambda x: x not in ['..', ''], path.split('/'))) filename = os.path.join(siteconfig.__default_htdocs_dir__, os.path...
54187d49db35b01ffc6ea7160bdb9f8070bc4d72 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/54187d49db35b01ffc6ea7160bdb9f8070bc4d72/standalone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 647, 8532, 67, 3658, 12, 2890, 16, 589, 4672, 3536, 2503, 445, 26255, 590, 364, 760, 3774, 19, 5212, 1390, 8395, 589, 273, 11527, 18, 318, 6889, 12, 803, 13, 468, 4344, 3071, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 647, 8532, 67, 3658, 12, 2890, 16, 589, 4672, 3536, 2503, 445, 26255, 590, 364, 760, 3774, 19, 5212, 1390, 8395, 589, 273, 11527, 18, 318, 6889, 12, 803, 13, 468, 4344, 3071, ...
type = filetype(filename)
def read(filename, index=-1): p = filename.rfind('@') if p != -1: try: index = string2index(filename[p + 1:]) except ValueError: pass else: filename = filename[:p] type = filetype(filename) if type.startswith('gpw'): from gpaw import Calculator atoms = Calculator(filename, txt=None).get_atoms() atoms.set_calculator(N...
52ff6b1fd45e9e4777298af03734d5cb941cd9c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5572/52ff6b1fd45e9e4777298af03734d5cb941cd9c6/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 3459, 16, 770, 29711, 21, 4672, 293, 273, 1544, 18, 86, 4720, 2668, 36, 6134, 309, 293, 480, 300, 21, 30, 775, 30, 770, 273, 533, 22, 1615, 12, 3459, 63, 84, 397, 404, 30,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 3459, 16, 770, 29711, 21, 4672, 293, 273, 1544, 18, 86, 4720, 2668, 36, 6134, 309, 293, 480, 300, 21, 30, 775, 30, 770, 273, 533, 22, 1615, 12, 3459, 63, 84, 397, 404, 30,...
sequence.reverse()
sequence=self.reverse_sequence(sequence)
def renderwb(self, md): expr=self.expr name=self.__name__ if expr is None: sequence=md[name] cache={ name: sequence } else: sequence=expr(md) cache=None
0570634e39df30bc6dd227eb37d8db690eb7a284 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/0570634e39df30bc6dd227eb37d8db690eb7a284/DT_In.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 9464, 12, 2890, 16, 3481, 4672, 3065, 33, 2890, 18, 8638, 508, 33, 2890, 16186, 529, 972, 309, 3065, 353, 599, 30, 3102, 33, 1264, 63, 529, 65, 1247, 5899, 508, 30, 3102, 289, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 9464, 12, 2890, 16, 3481, 4672, 3065, 33, 2890, 18, 8638, 508, 33, 2890, 16186, 529, 972, 309, 3065, 353, 599, 30, 3102, 33, 1264, 63, 529, 65, 1247, 5899, 508, 30, 3102, 289, ...
print "Didn't found any value for enum %s" % (name)
print "Didn't find any value for enum %s" % (name)
def compare_and_save(): global test test.close() input = open("testapi.c", "r").read() test = open('testapi.c.new', "r").read() if input != test: os.system("rm testapi.c ; mv testapi.c.new testapi.c") print("Updated testapi.c") else: print("Generated testapi.c is identical")
094dd86c130f3ffb7ec9bc47bb0ed711e0f68994 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/094dd86c130f3ffb7ec9bc47bb0ed711e0f68994/gentest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3400, 67, 464, 67, 5688, 13332, 2552, 1842, 225, 1842, 18, 4412, 1435, 810, 273, 1696, 2932, 3813, 2425, 18, 71, 3113, 315, 86, 20387, 896, 1435, 1842, 273, 1696, 2668, 3813, 2425, 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, 3400, 67, 464, 67, 5688, 13332, 2552, 1842, 225, 1842, 18, 4412, 1435, 810, 273, 1696, 2932, 3813, 2425, 18, 71, 3113, 315, 86, 20387, 896, 1435, 1842, 273, 1696, 2668, 3813, 2425, 18, ...
for hostname in hostlist.split("\n"): if hostname != "": hostlist_list.append(hostname)
for host in hostlist.split("\n"): if host != "": hostlist_list.append(host)
def main(): """Main program function: Grabs command-line arguments, starts up threads, and runs the program.""" # Bring in some globals global OUTFILE global VERBOSE global DEBUG # Grab command line arguments and the command to run (if any) usage = "usage: %prog [options] [command] [arguments...]" parser = OptionPar...
6f69307ce1383825280bcd450de5b2253a841bcf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11566/6f69307ce1383825280bcd450de5b2253a841bcf/sshpt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6376, 5402, 445, 30, 225, 10812, 2038, 1296, 17, 1369, 1775, 16, 2542, 731, 7403, 16, 471, 7597, 326, 5402, 12123, 225, 468, 605, 8022, 316, 2690, 10941, 2552, 8210, 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, 2774, 13332, 3536, 6376, 5402, 445, 30, 225, 10812, 2038, 1296, 17, 1369, 1775, 16, 2542, 731, 7403, 16, 471, 7597, 326, 5402, 12123, 225, 468, 605, 8022, 316, 2690, 10941, 2552, 8210, 3...
elif hasattr(aq_base(obj), 'index_html') and \ callable(obj.index_html):
elif hasattr(aq_base(obj), 'index_html') and callable(obj.index_html):
def getResourceContent(self, item, context): """Fetch resource content for delivery.""" ids = self.concatenatedresources.get(item, None) resources = self.getResourcesDict() if ids is not None: ids = ids[:] output = "" if len(ids) > 1: output = output + self.merged_output_prefix
634a5d74a644366e8f4df4b6bbf7486114ea08fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12274/634a5d74a644366e8f4df4b6bbf7486114ea08fa/BaseRegistry.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5070, 1350, 12, 2890, 16, 761, 16, 819, 4672, 3536, 5005, 1058, 913, 364, 7912, 12123, 3258, 273, 365, 18, 16426, 275, 690, 4683, 18, 588, 12, 1726, 16, 599, 13, 2703, 273, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5070, 1350, 12, 2890, 16, 761, 16, 819, 4672, 3536, 5005, 1058, 913, 364, 7912, 12123, 3258, 273, 365, 18, 16426, 275, 690, 4683, 18, 588, 12, 1726, 16, 599, 13, 2703, 273, 365, 18, ...
self.jb2 = world.get_bodies_at_pos(event.pos)
self.jb2 = self.game.world.get_bodies_at_pos(event.pos)
def handleEvents(self,event): #look for default events, and if none are handled then try the custom events if not super(JointTool,self).handleEvents(event): if event.type == MOUSEBUTTONDOWN: if event.button == 1: # grab the first body self.jb1pos = event.pos self.jb1 = self.game.world.get_bodies_at_pos(event.pos) self....
c1bc3f87a1c12b484a17840e180babf026d121cd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7607/c1bc3f87a1c12b484a17840e180babf026d121cd/tools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 3783, 12, 2890, 16, 2575, 4672, 468, 7330, 364, 805, 2641, 16, 471, 309, 6555, 854, 7681, 1508, 775, 326, 1679, 2641, 309, 486, 2240, 12, 21574, 6364, 16, 2890, 2934, 4110, 3783, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 3783, 12, 2890, 16, 2575, 4672, 468, 7330, 364, 805, 2641, 16, 471, 309, 6555, 854, 7681, 1508, 775, 326, 1679, 2641, 309, 486, 2240, 12, 21574, 6364, 16, 2890, 2934, 4110, 3783, ...
print "Caffiene is now dormant; powersaving is re-enabled"
print "Caffeine is now dormant; powersaving is re-enabled"
def attemptToToggleSleepPrevention(): """This function may fail to peform the toggling, if it cannot find the required bus. In this case, it will return False.""" global sleepPrevented, screenSaverCookie, powerManagementCookie, timer bus = dbus.SessionBus() if sleepPrevented: ssProxy = None if 'org.gnome.ScreenSaver' i...
346b79505273201a6b73e20985e72a40a67c211e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1563/346b79505273201a6b73e20985e72a40a67c211e/caffeine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4395, 774, 17986, 20768, 1386, 11111, 13332, 3536, 2503, 445, 2026, 2321, 358, 2804, 687, 326, 6316, 75, 2456, 16, 309, 518, 2780, 1104, 326, 1931, 5766, 18, 657, 333, 648, 16, 518, 903,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4395, 774, 17986, 20768, 1386, 11111, 13332, 3536, 2503, 445, 2026, 2321, 358, 2804, 687, 326, 6316, 75, 2456, 16, 309, 518, 2780, 1104, 326, 1931, 5766, 18, 657, 333, 648, 16, 518, 903,...
if typ == 'OK': self.state = 'SELECTED' elif typ == 'NO': self.state = 'AUTH' if not readonly and not self.untagged_responses.has_key('READ-WRITE'): raise self.error('%s is not writable' % mailbox)
if typ != 'OK': self.state = 'AUTH' return typ, dat self.state = 'SELECTED' if not self.untagged_responses.has_key('READ-WRITE') \ and not readonly: if __debug__ and self.debug >= 1: _dump_ur(self.untagged_responses) raise self.readonly('%s is not writable' % mailbox)
def select(self, mailbox='INBOX', readonly=None): """Select a mailbox.
30d7469fec69eeeae9057b22a126d4a00278147c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/30d7469fec69eeeae9057b22a126d4a00278147c/imaplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 12, 2890, 16, 14187, 2218, 706, 16876, 2187, 17102, 33, 7036, 4672, 3536, 3391, 279, 14187, 18, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2027, 12, 2890, 16, 14187, 2218, 706, 16876, 2187, 17102, 33, 7036, 4672, 3536, 3391, 279, 14187, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
group = Group.by_name(kw['group']['text'])
try: group = Group.by_name(kw['group']['text']) except InvalidRequestError: flash(_(u"%s is an Invalid Group" % kw['group']['text'])) redirect("/view/%s" % system.fqdn)
def save_group(self, id, **kw): try: system = System.by_id(id,identity.current.user) except InvalidRequestError: flash( _(u"Unable to Add Group for %s" % id) ) redirect("/") # Add a Group if kw.get('group').get('text'): group = Group.by_name(kw['group']['text']) system.groups.append(group) activity = SystemActivity(ide...
4d63fd4292c4390a74d93b1b865af705c4c5bc3f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14755/4d63fd4292c4390a74d93b1b865af705c4c5bc3f/controllers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 1655, 12, 2890, 16, 612, 16, 2826, 9987, 4672, 775, 30, 2619, 273, 2332, 18, 1637, 67, 350, 12, 350, 16, 10781, 18, 2972, 18, 1355, 13, 1335, 1962, 28963, 30, 9563, 12, 389...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 1655, 12, 2890, 16, 612, 16, 2826, 9987, 4672, 775, 30, 2619, 273, 2332, 18, 1637, 67, 350, 12, 350, 16, 10781, 18, 2972, 18, 1355, 13, 1335, 1962, 28963, 30, 9563, 12, 389...
cmd_args, num_pointer_args):
cmd_args, init_args, num_pointer_args):
def __init__(self, name, info, return_type, original_args, args_for_cmds, cmd_args, num_pointer_args): self.name = name self.original_name = name self.info = info self.type_handler = info.type_handler self.return_type = return_type self.original_args = original_args self.num_pointer_args = num_pointer_args self.can_aut...
6b5cc7aeca6761c88c0f98b0e54990becbe32177 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/6b5cc7aeca6761c88c0f98b0e54990becbe32177/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 1123, 16, 327, 67, 723, 16, 2282, 67, 1968, 16, 833, 67, 1884, 67, 24680, 16, 1797, 67, 1968, 16, 1208, 67, 1968, 16, 818, 67, 10437, 67, 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, 1001, 2738, 972, 12, 2890, 16, 508, 16, 1123, 16, 327, 67, 723, 16, 2282, 67, 1968, 16, 833, 67, 1884, 67, 24680, 16, 1797, 67, 1968, 16, 1208, 67, 1968, 16, 818, 67, 10437, 67, 19...
newflux = pow(10,f)*(1 + delta)
newflux = pow(10,logflux)*(1 + delta)
def flux2size(flux,lam=0.21): k=1.3807e-23 T=1.e12 return sqrt(lam**2 * flux * 1.e-26 / (2.*pi*k*T))
fb918803ed19fb2b5fac0735f623b32c075aabe7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6216/fb918803ed19fb2b5fac0735f623b32c075aabe7/makeScintillationLightcurves.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11772, 22, 1467, 12, 7994, 16, 28448, 33, 20, 18, 5340, 4672, 417, 33, 21, 18, 23, 3672, 27, 73, 17, 4366, 399, 33, 21, 18, 73, 2138, 327, 5700, 12, 28448, 636, 22, 380, 11772, 380...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11772, 22, 1467, 12, 7994, 16, 28448, 33, 20, 18, 5340, 4672, 417, 33, 21, 18, 23, 3672, 27, 73, 17, 4366, 399, 33, 21, 18, 73, 2138, 327, 5700, 12, 28448, 636, 22, 380, 11772, 380...
def export_getOverallStatus(self):
def export_getOverallStatus( self ):
def export_getOverallStatus(self): """ Get the complete status information for the components in the given list """ result = self.__getSoftwareComponents() if not result['OK']: return result softDict = result['Value'] result = self.export_getSetupComponents() if not result['OK']: return result setupDict = result['Val...
12be5ded5b2add0661f20d7fa8bd6def28fb091b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/12be5ded5b2add0661f20d7fa8bd6def28fb091b/SystemAdministratorHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 588, 4851, 454, 1482, 12, 365, 262, 30, 3536, 225, 968, 326, 3912, 1267, 1779, 364, 326, 4085, 316, 326, 864, 666, 3536, 563, 273, 365, 16186, 588, 21742, 7171, 1435, 309, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 588, 4851, 454, 1482, 12, 365, 262, 30, 3536, 225, 968, 326, 3912, 1267, 1779, 364, 326, 4085, 316, 326, 864, 666, 3536, 563, 273, 365, 16186, 588, 21742, 7171, 1435, 309, 48...
sesssha.update(time.time()) sesssha.update(random.random()) sesssha.update(os.times())
sesssha.update(`time.time()`) sesssha.update(`random.random()`) sesssha.update(`os.times()`)
def login(req, username = None, password = None, wid = None): if req.method != 'POST': joheaders.error_page(req, u"Vain POST-pyynnöt ovat sallittuja") return '\n' if username == None or password == None or not jotools.checkuname(unicode(username, 'UTF-8')): joheaders.error_page(req, u"Käyttäjätunnus tai salasana puutt...
4908b73343370c3cf6adc2491bfc40980c158293 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10971/4908b73343370c3cf6adc2491bfc40980c158293/user.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 12, 3658, 16, 2718, 273, 599, 16, 2201, 273, 599, 16, 15481, 273, 599, 4672, 309, 1111, 18, 2039, 480, 296, 3798, 4278, 525, 83, 2485, 18, 1636, 67, 2433, 12, 3658, 16, 582, 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, 3925, 12, 3658, 16, 2718, 273, 599, 16, 2201, 273, 599, 16, 15481, 273, 599, 4672, 309, 1111, 18, 2039, 480, 296, 3798, 4278, 525, 83, 2485, 18, 1636, 67, 2433, 12, 3658, 16, 582, 6,...
n = len(items[-1]) firstLetter = items[0][0] s = "%s%%.%dd" % (firstLetter, n - 1)
if items: n = len(items[-1]) firstLetter = items[0][0] s = "%s%%.%dd" % (firstLetter, n - 1)
def getPatternFromFilename(self, filename): """ convert a filename into a pattern that matches the filename """
24d61fb7ed3fd0784cc4231099e43bd6ab8eac45 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2877/24d61fb7ed3fd0784cc4231099e43bd6ab8eac45/ImportDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23420, 1265, 5359, 12, 2890, 16, 1544, 4672, 3536, 1765, 279, 1544, 1368, 279, 1936, 716, 1885, 326, 1544, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 23420, 1265, 5359, 12, 2890, 16, 1544, 4672, 3536, 1765, 279, 1544, 1368, 279, 1936, 716, 1885, 326, 1544, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if line[0] == "!": if pos[-1] != last_file: last_file = pos[-1] self.msg(0, _("in file %s:") % last_file) self.msg(0, line) showing = 1 something = 1
m = re_badbox.match(line) if m: skipping = 1
def show_errors (self): """ Display all errors that occured during compilation. Return 0 if there was no error. """ pos = ["(no file)"] last_file = None showing = 0 something = 0 for line in self.lines: line = line.rstrip() if line == "": continue if showing: self.msg(0, line) if line[0:2] == "l." or line[0:3] == "***"...
be6975304f1695d2e8d5d95920b195bbd4313432 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/be6975304f1695d2e8d5d95920b195bbd4313432/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 4324, 261, 2890, 4672, 3536, 9311, 777, 1334, 716, 16206, 4982, 8916, 18, 2000, 374, 309, 1915, 1703, 1158, 555, 18, 3536, 949, 273, 8247, 12, 2135, 585, 2225, 65, 1142, 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, 2405, 67, 4324, 261, 2890, 4672, 3536, 9311, 777, 1334, 716, 16206, 4982, 8916, 18, 2000, 374, 309, 1915, 1703, 1158, 555, 18, 3536, 949, 273, 8247, 12, 2135, 585, 2225, 65, 1142, 67, ...
self.cpu = self.sensor(cpu, self.hotstack)
if isinstance (cpu,types.StringType): self.cpu = self.sensor(cpu, '@', self.hotstack) else: self.cpu = self.sensor(cpu[0], cpu[1], self.hotstack)
def __init__(self, cpu='temp3', case='temp2' , ram='MemTotal'): IdleBarPlugin.__init__(self) import re self.hotstack = 0 self.case = None self.cpu = self.sensor(cpu, self.hotstack) if case: self.case = self.sensor(case, self.hotstack)
d4bead8f4304ca81687cb0fe137a4c581dbf6103 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/d4bead8f4304ca81687cb0fe137a4c581dbf6103/idlebar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 8326, 2218, 5814, 23, 2187, 648, 2218, 5814, 22, 11, 269, 24975, 2218, 3545, 5269, 11, 4672, 28156, 5190, 3773, 16186, 2738, 972, 12, 2890, 13, 225, 1930, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8326, 2218, 5814, 23, 2187, 648, 2218, 5814, 22, 11, 269, 24975, 2218, 3545, 5269, 11, 4672, 28156, 5190, 3773, 16186, 2738, 972, 12, 2890, 13, 225, 1930, ...
def check_module_event(self, event):
def check_module_event(self, event=None):
def check_module_event(self, event): filename = self.getfilename() if not filename: return if not self.tabnanny(filename): return self.checksyntax(filename)
6a68e161b43507ef4cd5a3f22780831daef96c22 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6a68e161b43507ef4cd5a3f22780831daef96c22/ScriptBinding.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2978, 67, 2575, 12, 2890, 16, 871, 33, 7036, 4672, 1544, 273, 365, 18, 588, 3459, 1435, 309, 486, 1544, 30, 327, 309, 486, 365, 18, 7032, 82, 1072, 93, 12, 3459, 4672, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2978, 67, 2575, 12, 2890, 16, 871, 33, 7036, 4672, 1544, 273, 365, 18, 588, 3459, 1435, 309, 486, 1544, 30, 327, 309, 486, 365, 18, 7032, 82, 1072, 93, 12, 3459, 4672, 327, ...
module='argparse')
module='omero_ext.argparse')
def _callable(obj): return hasattr(obj, '__call__') or hasattr(obj, '__bases__')
2f74673a56b36cddaac44d2d821e386477c38c8b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/2f74673a56b36cddaac44d2d821e386477c38c8b/argparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7293, 12, 2603, 4672, 327, 3859, 12, 2603, 16, 4940, 1991, 972, 6134, 578, 3859, 12, 2603, 16, 4940, 18602, 972, 6134, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 7293, 12, 2603, 4672, 327, 3859, 12, 2603, 16, 4940, 1991, 972, 6134, 578, 3859, 12, 2603, 16, 4940, 18602, 972, 6134, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
x0 = (x[i:i+2,j:j+2]).mean() y0 = (y[i:i+2,j:j+2]).mean() s0,t0 = perspec.inv(x0, y0) J = perspec.jacobian(s0,t0) s0 = s0/4+0.5 t0 = t0/4-0.3 J /= 4 im[-1-j,i,:] = tex.filterEllipticGaussianAF(s0, t0, deltaX, deltaY, J)
xBox = array((x[i,j], x[i+1,j], x[i+1,j+1], x[i,j+1])) yBox = array((y[i,j], y[i+1,j], y[i+1,j+1], y[i,j+1])) sBox, tBox = trans.inv(xBox, yBox) if method == 'EWA': col = tex.filterEWA(sBox, tBox) elif method == 'EWA_analytical_J': J = trans.jacobian(sBox.mean(),tBox.mean()) col = tex.filterEWA(sBox, tBox, deltaX,...
def textureMapPlane(x, y, tex, numSamples=100): ''' Map the given texture onto a plane, according to the perspective transformations given above. x,y - image space coordinates for output. ''' perspec = PerspectiveTrans() im = zeros((x.shape[1]-1, x.shape[0]-1, 3)) deltaX = x[1,0]-x[0,0] deltaY = y[0,1]-y[0,0] print "W...
93bfbb8bc2e36b2f1ef7b44d21de3a8bc9fa1395 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11560/93bfbb8bc2e36b2f1ef7b44d21de3a8bc9fa1395/mipmap_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11428, 863, 19505, 12, 92, 16, 677, 16, 16573, 16, 818, 13239, 33, 6625, 4672, 9163, 1635, 326, 864, 11428, 10170, 279, 11017, 16, 4888, 358, 326, 26651, 19245, 864, 5721, 18, 225, 619, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11428, 863, 19505, 12, 92, 16, 677, 16, 16573, 16, 818, 13239, 33, 6625, 4672, 9163, 1635, 326, 864, 11428, 10170, 279, 11017, 16, 4888, 358, 326, 26651, 19245, 864, 5721, 18, 225, 619, ...
self.tk.call('destroy', self._w)
def destroy(self): """Destroy this and all descendants widgets.""" for c in self.children.values(): c.destroy() if self.master.children.has_key(self._name): del self.master.children[self._name] self.tk.call('destroy', self._w) Misc.destroy(self)
642d3ae6e18f1cfb395e445dc221d2d3bf37711a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/642d3ae6e18f1cfb395e445dc221d2d3bf37711a/Tkinter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5546, 12, 2890, 4672, 3536, 10740, 333, 471, 777, 18039, 10965, 12123, 364, 276, 316, 365, 18, 5906, 18, 2372, 13332, 276, 18, 11662, 1435, 309, 365, 18, 7525, 18, 5906, 18, 5332, 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, 5546, 12, 2890, 4672, 3536, 10740, 333, 471, 777, 18039, 10965, 12123, 364, 276, 316, 365, 18, 5906, 18, 2372, 13332, 276, 18, 11662, 1435, 309, 365, 18, 7525, 18, 5906, 18, 5332, 67, ...
fd = os.open(self._filename, os.O_CREAT | os.O_WRONLY | os.O_TRUNC, perm)
mode = os.O_CREAT | os.O_WRONLY | os.O_TRUNC if hasattr(os, 'O_BINARY'): mode |= os.O_BINARY fd = os.open(self._filename, mode, perm)
def readline(self): try: line = self._buffer[self._bufindex] except IndexError: pass else: self._bufindex += 1 self._lineno += 1 self._filelineno += 1 return line if not self._file: if not self._files: return "" self._filename = self._files[0] self._files = self._files[1:] self._filelineno = 0 self._file = None self._i...
d4a575ed2fdc137a3cd60b33aab14753ae606560 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/d4a575ed2fdc137a3cd60b33aab14753ae606560/fileinput.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 4672, 775, 30, 980, 273, 365, 6315, 4106, 63, 2890, 6315, 4385, 1615, 65, 1335, 10195, 30, 1342, 469, 30, 365, 6315, 4385, 1615, 1011, 404, 365, 6315, 17782, 1011, 404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 4672, 775, 30, 980, 273, 365, 6315, 4106, 63, 2890, 6315, 4385, 1615, 65, 1335, 10195, 30, 1342, 469, 30, 365, 6315, 4385, 1615, 1011, 404, 365, 6315, 17782, 1011, 404, ...
(?:
(
def parse(self, text, lineno, memo, parent): """ Return 2 lists: nodes (text and inline elements), and system_messages.
72a0c19a34dcc90353f2d799116ebcadd510f22a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/72a0c19a34dcc90353f2d799116ebcadd510f22a/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 977, 16, 7586, 16, 11063, 16, 982, 4672, 3536, 2000, 576, 6035, 30, 2199, 261, 955, 471, 6370, 2186, 3631, 471, 2619, 67, 6833, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 977, 16, 7586, 16, 11063, 16, 982, 4672, 3536, 2000, 576, 6035, 30, 2199, 261, 955, 471, 6370, 2186, 3631, 471, 2619, 67, 6833, 18, 2, -100, -100, -100, -100, -100,...
return "%s (%s)" % (self.user.get_full_name(), self.user.email)
return u"%s (%s)" % (self.user.get_full_name(), self.user.email)
def __unicode__(self): return "%s (%s)" % (self.user.get_full_name(), self.user.email)
e0c246b75fbd7beea69fbdb5057dc22d60db6a17 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7374/e0c246b75fbd7beea69fbdb5057dc22d60db6a17/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9124, 972, 12, 2890, 4672, 327, 2213, 87, 6142, 87, 2225, 738, 261, 2890, 18, 1355, 18, 588, 67, 2854, 67, 529, 9334, 365, 18, 1355, 18, 3652, 13, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9124, 972, 12, 2890, 4672, 327, 2213, 87, 6142, 87, 2225, 738, 261, 2890, 18, 1355, 18, 588, 67, 2854, 67, 529, 9334, 365, 18, 1355, 18, 3652, 13, 2, -100, -100, -100, -100, -1...
def upload(self, task_id, path, content_type, **extra):
def upload(self, task_id, path, content_type, extra={}):
def upload(self, task_id, path, content_type, **extra): data = {} data.update(extra) data.update({'task_id': task_id, 'path': path, 'content_type': content_type})
32bf19f04bfed54843be12812acb37f521a2fb78 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13694/32bf19f04bfed54843be12812acb37f521a2fb78/tasks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3617, 12, 2890, 16, 1562, 67, 350, 16, 589, 16, 913, 67, 723, 16, 2870, 12938, 4672, 501, 273, 2618, 501, 18, 2725, 12, 7763, 13, 501, 18, 2725, 12590, 11, 4146, 67, 350, 4278, 1562,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3617, 12, 2890, 16, 1562, 67, 350, 16, 589, 16, 913, 67, 723, 16, 2870, 12938, 4672, 501, 273, 2618, 501, 18, 2725, 12, 7763, 13, 501, 18, 2725, 12590, 11, 4146, 67, 350, 4278, 1562,...
if type(arg) == IDispatchType:
arg_type = type(arg) if arg_type == IDispatchType:
def _transform_args_(self, args, kwArgs, dispid, lcid, wFlags, serviceProvider): ret = [] for arg in args: if type(arg) == IDispatchType: import win32com.client arg = win32com.client.Dispatch(arg) elif not core_has_unicode and type(arg)==UnicodeType: arg = str(arg) ret.append(arg) return tuple(ret), kwArgs
eaf6d9e5793c8ce77134451f1666a375182e4cfd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/eaf6d9e5793c8ce77134451f1666a375182e4cfd/policy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6547, 67, 1968, 67, 12, 2890, 16, 833, 16, 5323, 2615, 16, 1015, 6610, 16, 9109, 350, 16, 341, 5094, 16, 1156, 2249, 4672, 325, 273, 5378, 364, 1501, 316, 833, 30, 1501, 67, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6547, 67, 1968, 67, 12, 2890, 16, 833, 16, 5323, 2615, 16, 1015, 6610, 16, 9109, 350, 16, 341, 5094, 16, 1156, 2249, 4672, 325, 273, 5378, 364, 1501, 316, 833, 30, 1501, 67, 723...
self.body.append('\\subsection{%s\label{%s}}\n' % (s1, s2))
self.body.append('\\subsection{%s\\label{%s}}\n' % (s1, s2))
def visit_title(self, node): #self.pdebug('%% [(visit_title) section_level: %d node: "%s"]\n' % \ # (self.section_level, node.astext().lower())) if self.section_level == 0: self.title_before_section = 1 if self.seealso: self.body.append('\\end{seealso}\n') self.seealso = 0 if node.astext().lower() == 'see also': se...
f1c936c7b824a9c68698c2d6eb95c28f15eb4fbe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/f1c936c7b824a9c68698c2d6eb95c28f15eb4fbe/python_latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2649, 12, 2890, 16, 756, 4672, 468, 2890, 18, 84, 4148, 2668, 11438, 306, 12, 11658, 67, 2649, 13, 2442, 67, 2815, 30, 738, 72, 225, 756, 30, 2213, 87, 11929, 64, 82, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2649, 12, 2890, 16, 756, 4672, 468, 2890, 18, 84, 4148, 2668, 11438, 306, 12, 11658, 67, 2649, 13, 2442, 67, 2815, 30, 738, 72, 225, 756, 30, 2213, 87, 11929, 64, 82, 11, ...
def append_process(xmldoc, comment = None, force = None, ds_sq_threshold = None, save_small_coincs = None, vetoes_name = None, verbose = None):
def append_process(xmldoc, comment = None, force = None, ds_sq_threshold = None, save_small_coincs = None, vetoes_name = None, coinc_end_time_segment = None, verbose = None):
def append_process(xmldoc, comment = None, force = None, ds_sq_threshold = None, save_small_coincs = None, vetoes_name = None, verbose = None): process = llwapp.append_process(xmldoc, program = process_program_name, version = __version__, cvs_repository = u"lscsoft", cvs_entry_time = __date__, comment = comment) param...
33c375988e5fbb955cb57c83b181ddc3e9420c4e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/33c375988e5fbb955cb57c83b181ddc3e9420c4e/ligolw_rinca.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 67, 2567, 12, 2902, 2434, 16, 2879, 273, 599, 16, 2944, 273, 599, 16, 3780, 67, 11410, 67, 8699, 273, 599, 16, 1923, 67, 12019, 67, 12645, 2143, 273, 599, 16, 331, 11453, 281, 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, 714, 67, 2567, 12, 2902, 2434, 16, 2879, 273, 599, 16, 2944, 273, 599, 16, 3780, 67, 11410, 67, 8699, 273, 599, 16, 1923, 67, 12019, 67, 12645, 2143, 273, 599, 16, 331, 11453, 281, 6...
t, meridian = value.split() h, m = [int(v) for v in t.split(':')]
try: t, meridian = value.split() h, m = [int(v) for v in t.split(':')] except ValueError: return None
def clean(self, value): if value: t, meridian = value.split() h, m = [int(v) for v in t.split(':')] if meridian == 'PM' and h != 12: h += 12 elif meridian == 'AM' and h == 12: h = 0 return time(h, m) return None
d35bba28317f2a46fd7425bc63a4c3899b7e2032 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9903/d35bba28317f2a46fd7425bc63a4c3899b7e2032/forms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 12, 2890, 16, 460, 4672, 309, 460, 30, 775, 30, 268, 16, 4045, 350, 2779, 273, 460, 18, 4939, 1435, 366, 16, 312, 273, 306, 474, 12, 90, 13, 364, 331, 316, 268, 18, 4939, 266...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 12, 2890, 16, 460, 4672, 309, 460, 30, 775, 30, 268, 16, 4045, 350, 2779, 273, 460, 18, 4939, 1435, 366, 16, 312, 273, 306, 474, 12, 90, 13, 364, 331, 316, 268, 18, 4939, 266...
elif re.match(pattern, tmp):
elif re.match(_pattern, tmp):
def convertToCN(s,l,t): """ search rev_cndict to match keywords """ tmp = t[0] if tmp in rev_cndict: return rev_cndict[tmp] elif re.match(pattern, tmp): return zh_chr(tmp) else: return tmp
eb61ed09b99ec091673d1c7d740975bece7e6c85 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1969/eb61ed09b99ec091673d1c7d740975bece7e6c85/pyzh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8137, 12821, 12, 87, 16, 80, 16, 88, 4672, 3536, 1623, 5588, 67, 10305, 1576, 358, 845, 7093, 3536, 1853, 273, 268, 63, 20, 65, 309, 1853, 316, 5588, 67, 10305, 1576, 30, 327, 5588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8137, 12821, 12, 87, 16, 80, 16, 88, 4672, 3536, 1623, 5588, 67, 10305, 1576, 358, 845, 7093, 3536, 1853, 273, 268, 63, 20, 65, 309, 1853, 316, 5588, 67, 10305, 1576, 30, 327, 5588, ...
self.thread = SocketThread(socket_host.host.GetValue(), int(socket_host.port.GetValue()), socket_host.password.GetValue(), self)
try: self.thread = SocketThread(socket_host.host.GetValue(), int(socket_host.port.GetValue()), socket_host.password.GetValue(), self) except socket.error: self.core = _Core_Thread() self.core.start() sleep(1) self.thread = SocketThread(socket_host.host.GetValue(), int(socket_host.port.GetValue()), socket_host.password....
def __init__(self, parent, id, title="pyLoad"):
3a15b124ca291d869ecf59badc8a231daff8c04b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/3a15b124ca291d869ecf59badc8a231daff8c04b/pyLoadGui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 612, 16, 2077, 1546, 2074, 2563, 6, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 612, 16, 2077, 1546, 2074, 2563, 6, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if not self.AS_appdata.target.isrunning(self.AS_appdata.path):
if not self.AS_appdata.target.isrunning(self.AS_appdata.identifier):
def __call__(self, *args, **kargs): keywordArgs = kargs.copy() if len(args) > 1: raise TypeError, "Command received more than one direct parameter %r." % (args,) # get user-specified timeout, if any timeout = int(keywordArgs.pop('timeout', 60)) # appscript's default is 60 sec if timeout <= 0: timeout = kAE.kNoTimeOut e...
fde1084ef713ccca3979b84f0c8e6677db5448f8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10961/fde1084ef713ccca3979b84f0c8e6677db5448f8/reference.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 380, 1968, 16, 2826, 79, 1968, 4672, 4932, 2615, 273, 25916, 18, 3530, 1435, 309, 562, 12, 1968, 13, 405, 404, 30, 1002, 3580, 16, 315, 2189, 5079, 1898,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1991, 972, 12, 2890, 16, 380, 1968, 16, 2826, 79, 1968, 4672, 4932, 2615, 273, 25916, 18, 3530, 1435, 309, 562, 12, 1968, 13, 405, 404, 30, 1002, 3580, 16, 315, 2189, 5079, 1898,...
print 'HERE' print '<', cb_conv_reason_label, cb_conv_action_label,\ cb_conv_question_dialog, '>'
def gui_trans_cb_conv2(self, event, data1, data2, data3): # return > 0 means to go ahead and replace/install ignoring, etc # return == 0 means to stop print 'Question:', (event, data1, data2, data3)
bf537fd3d1ac4461514247e8581927628058ef89 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2759/bf537fd3d1ac4461514247e8581927628058ef89/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13238, 67, 2338, 67, 7358, 67, 4896, 22, 12, 2890, 16, 871, 16, 501, 21, 16, 501, 22, 16, 501, 23, 4672, 468, 327, 405, 374, 4696, 358, 1960, 17510, 471, 1453, 19, 5425, 14398, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13238, 67, 2338, 67, 7358, 67, 4896, 22, 12, 2890, 16, 871, 16, 501, 21, 16, 501, 22, 16, 501, 23, 4672, 468, 327, 405, 374, 4696, 358, 1960, 17510, 471, 1453, 19, 5425, 14398, 16, ...
self._file_.close()
if hasattr(self, "_file_"): self._file_.close()
def __del__(self): self._file_.close()
d80f510db41256167be4a1f1f4932ca622e64ad8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d80f510db41256167be4a1f1f4932ca622e64ad8/posixfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 972, 12, 2890, 4672, 365, 6315, 768, 27799, 4412, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 972, 12, 2890, 4672, 365, 6315, 768, 27799, 4412, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
width = struct.unpack('HHHH', fcntl.ioctl(sys.stdout.fileno(), termios.TIOCGWINSZ, struct.pack('HHHH', 0, 0, 0, 0)))[1]
if sys.stdout.isatty(): width = struct.unpack('HHHH', fcntl.ioctl(sys.stdout.fileno(), termios.TIOCGWINSZ, struct.pack('HHHH', 0, 0, 0, 0)))[1] else: width = None
def display_object(obj, name): # get terminal width width = struct.unpack('HHHH', fcntl.ioctl(sys.stdout.fileno(), termios.TIOCGWINSZ, struct.pack('HHHH', 0, 0, 0, 0)))[1] children = deque([child for child in dir(type(obj)) if isinstance(getattr(type(obj), child, None), Setting)] + \ [child for child in dir(type(obj))...
07794136a7049f8b4a45f29ffb011b70aab800a2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/07794136a7049f8b4a45f29ffb011b70aab800a2/sip_settings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 67, 1612, 12, 2603, 16, 508, 4672, 468, 336, 8651, 1835, 309, 2589, 18, 10283, 18, 291, 270, 4098, 13332, 1835, 273, 1958, 18, 17309, 2668, 17500, 17500, 2187, 30894, 18, 1594, 129...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 67, 1612, 12, 2603, 16, 508, 4672, 468, 336, 8651, 1835, 309, 2589, 18, 10283, 18, 291, 270, 4098, 13332, 1835, 273, 1958, 18, 17309, 2668, 17500, 17500, 2187, 30894, 18, 1594, 129...
if game.IsTree():
if game.is_tree():
def launch_external_program(prog, game): """ Helper function for launching calls to external programs. Calls the specified program 'prog', passing the game to standard input in .efg format (if a tree) or .nfg format (if a table). Returns the object referencing standard output of the external program. """ child_stdin, c...
5f1cfbccf83ed5a496f71dc786cd13b888456661 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12755/5f1cfbccf83ed5a496f71dc786cd13b888456661/qretools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8037, 67, 9375, 67, 12890, 12, 14654, 16, 7920, 4672, 3536, 9705, 445, 364, 8037, 310, 4097, 358, 3903, 25038, 18, 23665, 326, 1269, 5402, 296, 14654, 2187, 9588, 326, 7920, 358, 4529, 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, 8037, 67, 9375, 67, 12890, 12, 14654, 16, 7920, 4672, 3536, 9705, 445, 364, 8037, 310, 4097, 358, 3903, 25038, 18, 23665, 326, 1269, 5402, 296, 14654, 2187, 9588, 326, 7920, 358, 4529, 8...
error_msg.append(_("· Las <b>contraseñas</b> no coinciden.\n"))
self.passwd_err_2.show() error = 1
def info_to_peez (self): """Processing info to peez step tasks."""
03d407a24d7c829d66405eefa8e2f07ba1e7deea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2662/03d407a24d7c829d66405eefa8e2f07ba1e7deea/gtkui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1123, 67, 869, 67, 347, 6664, 261, 2890, 4672, 3536, 7798, 1123, 358, 293, 1340, 94, 2235, 4592, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1123, 67, 869, 67, 347, 6664, 261, 2890, 4672, 3536, 7798, 1123, 358, 293, 1340, 94, 2235, 4592, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
{'message' : '', 'args' : ('foo', 'bar')}),
{'message' : '', 'args' : ('foo', 'bar'), 'filename' : 'baz', 'errno' : 'foo', 'strerror' : 'bar'}), (IOError, ('foo', 'bar', 'baz', 'quux'), {'message' : '', 'args' : ('foo', 'bar', 'baz', 'quux')}),
def testAttributes(self): # test that exception attributes are happy
00fdbb0ae71076b3ec37c7d26811482a66fd0268 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/00fdbb0ae71076b3ec37c7d26811482a66fd0268/test_exceptions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2498, 12, 2890, 4672, 468, 1842, 716, 1520, 1677, 854, 5622, 2074, 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, 1842, 2498, 12, 2890, 4672, 468, 1842, 716, 1520, 1677, 854, 5622, 2074, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
def tests_heteroatom_organics_C4H8BH(self): StructureTest(dir="heteroatom_organics", test="C4H8BH") def tests_heteroatom_organics_C4H8NH(self): StructureTest(dir="heteroatom_organics", test="C4H8NH") def tests_heteroatom_organics_C4H8O(self): StructureTest(dir="heteroatom_organics", test="C4H8O")
def tests_heteroatom_organics_C4H8BH(self): StructureTest(dir="heteroatom_organics", test="C4H8BH")
1b04cff6e27f660e98e628b425c09e2c157b0350 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/1b04cff6e27f660e98e628b425c09e2c157b0350/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7434, 67, 76, 847, 83, 7466, 67, 22543, 2102, 67, 39, 24, 44, 28, 38, 44, 12, 2890, 4672, 13348, 4709, 12, 1214, 1546, 76, 847, 83, 7466, 67, 22543, 2102, 3113, 1842, 1546, 39, 24, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7434, 67, 76, 847, 83, 7466, 67, 22543, 2102, 67, 39, 24, 44, 28, 38, 44, 12, 2890, 4672, 13348, 4709, 12, 1214, 1546, 76, 847, 83, 7466, 67, 22543, 2102, 3113, 1842, 1546, 39, 24, ...
def addBanIP(self, ip):
def addBanIP(self, ip, debug):
def addBanIP(self, ip): if not self.inBanList(ip): self.banList[ip] = time.time() self.executeCmd(self.banIP(ip)) else: if self.verbose: print ip, "already in ban list"
c286d568555896e33cade457d870630e35ea16c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/c286d568555896e33cade457d870630e35ea16c4/firewall.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 38, 304, 2579, 12, 2890, 16, 2359, 16, 1198, 4672, 309, 486, 365, 18, 267, 38, 304, 682, 12, 625, 4672, 365, 18, 21515, 682, 63, 625, 65, 273, 813, 18, 957, 1435, 365, 18, 883...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 38, 304, 2579, 12, 2890, 16, 2359, 16, 1198, 4672, 309, 486, 365, 18, 267, 38, 304, 682, 12, 625, 4672, 365, 18, 21515, 682, 63, 625, 65, 273, 813, 18, 957, 1435, 365, 18, 883...
process = subprocess.Popen(["./%s"%prog_name, "%s"%points, "%s"%threads], shell=False,
process = subprocess.Popen(arg_lst, shell=False,
def ExecMCCode(prog_name, points=10000, threads=2,debug=False, delta=None): import sys
fa221efb2df8eae4f9263ea3a704face9d5bd013 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4941/fa221efb2df8eae4f9263ea3a704face9d5bd013/integration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3889, 20022, 1085, 12, 14654, 67, 529, 16, 3143, 33, 23899, 16, 7403, 33, 22, 16, 4148, 33, 8381, 16, 3622, 33, 7036, 4672, 1930, 2589, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3889, 20022, 1085, 12, 14654, 67, 529, 16, 3143, 33, 23899, 16, 7403, 33, 22, 16, 4148, 33, 8381, 16, 3622, 33, 7036, 4672, 1930, 2589, 2, -100, -100, -100, -100, -100, -100, -100, -10...
error_dialog(self, _('Conversion Error'),
d = error_dialog(self, _('Conversion Error'),
def job_exception(self, job): try: if 'calibre.ebooks.DRMError' in job.details: error_dialog(self, _('Conversion Error'), _('<p>Could not convert: %s<p>It is a ' '<a href="%s">DRM</a>ed book. You must first remove the ' 'DRM using 3rd party tools.')%\ (job.description.split(':')[-1], 'http://wiki.mobileread.com/wiki/DR...
37a8e070153dcfebf5650587fb2bcc0583afc489 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/37a8e070153dcfebf5650587fb2bcc0583afc489/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1719, 67, 4064, 12, 2890, 16, 1719, 4672, 775, 30, 309, 296, 771, 495, 266, 18, 73, 12567, 18, 6331, 49, 668, 11, 316, 1719, 18, 6395, 30, 302, 273, 555, 67, 12730, 12, 2890, 16, 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, 1719, 67, 4064, 12, 2890, 16, 1719, 4672, 775, 30, 309, 296, 771, 495, 266, 18, 73, 12567, 18, 6331, 49, 668, 11, 316, 1719, 18, 6395, 30, 302, 273, 555, 67, 12730, 12, 2890, 16, 3...
gLogger.info( "Type : %s" % self.vmType )
def __getCSConfig( self ): self.vmName = gConfig.getValue( "/LocalSite/VirtualMachineName", "" ) if not self.vmName: return S_ERROR( "/LocalSite/VirtualMachineName is not defined" ) #Variables coming from the vm imgPath = "/Resources/VirtualMachines/Images/%s" % self.vmName for csOption, csDefault, varName in ( ( "Flav...
8c8c1ba65a8ff1820b1570d81cd38801bbe3657e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12038/8c8c1ba65a8ff1820b1570d81cd38801bbe3657e/VirtualMachineMonitorAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 4596, 809, 12, 365, 262, 30, 365, 18, 3489, 461, 273, 314, 809, 18, 24805, 12, 2206, 2042, 4956, 19, 27454, 461, 3113, 1408, 262, 309, 486, 365, 18, 3489, 461, 30, 327, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 4596, 809, 12, 365, 262, 30, 365, 18, 3489, 461, 273, 314, 809, 18, 24805, 12, 2206, 2042, 4956, 19, 27454, 461, 3113, 1408, 262, 309, 486, 365, 18, 3489, 461, 30, 327, 34...
for i in range(0, len(bins), size): bin = bins[i:i+size] index = bincache.get(tuple(bin))
for i in range(0, len(t), size): bin = t[i:i+size] index = bincache.get(bin)
def splitbins(bins): # split a sparse integer table into two tables, such as: # value = t2[(t1[char>>shift]<<shift)+(char&mask)] # and value == 0 means no data bytes = sys.maxint for shift in range(16): bin1 = [] bin2 = [] size = 2**shift bincache = {} for i in range(0, len(bins), size): bin = bins[i:i+size] index = ...
ba0a5af15315f108f3e529a396b83d1a2395f027 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ba0a5af15315f108f3e529a396b83d1a2395f027/makeunicodedata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 11862, 12, 11862, 4672, 468, 1416, 279, 9387, 3571, 1014, 1368, 2795, 4606, 16, 4123, 487, 30, 468, 282, 460, 273, 268, 22, 63, 12, 88, 21, 63, 3001, 9778, 4012, 65, 17685, 4012,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 11862, 12, 11862, 4672, 468, 1416, 279, 9387, 3571, 1014, 1368, 2795, 4606, 16, 4123, 487, 30, 468, 282, 460, 273, 268, 22, 63, 12, 88, 21, 63, 3001, 9778, 4012, 65, 17685, 4012,...
alternatives = []
alternatives = []
def resafe(s): s=s.replace('(','\\(') s=s.replace(')','\\)') return s
a95b64ecb8f20fa2191be07dc6e6a5ae90c4a955 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/a95b64ecb8f20fa2191be07dc6e6a5ae90c4a955/solve_disambiguation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 400, 2513, 12, 87, 4672, 272, 33, 87, 18, 2079, 2668, 12, 17023, 1695, 2668, 13, 272, 33, 87, 18, 2079, 2668, 13, 17023, 1695, 2506, 13, 327, 272, 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, 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, 400, 2513, 12, 87, 4672, 272, 33, 87, 18, 2079, 2668, 12, 17023, 1695, 2668, 13, 272, 33, 87, 18, 2079, 2668, 13, 17023, 1695, 2506, 13, 327, 272, 2, -100, -100, -100, -100, -100, -1...
self.tk.eval('package require Tix')
self.tk.eval('package require Tix')
def __init__(self, screenName=None, baseName=None, className='Tk'): Tkinter.Tk.__init__(self, screenName, baseName, className)
22710823fb554a796dc96c44885d7a9389426824 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/22710823fb554a796dc96c44885d7a9389426824/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5518, 461, 33, 7036, 16, 16162, 33, 7036, 16, 2658, 2218, 56, 79, 11, 4672, 399, 79, 2761, 18, 56, 79, 16186, 2738, 972, 12, 2890, 16, 5518, 461, 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, 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, 5518, 461, 33, 7036, 16, 16162, 33, 7036, 16, 2658, 2218, 56, 79, 11, 4672, 399, 79, 2761, 18, 56, 79, 16186, 2738, 972, 12, 2890, 16, 5518, 461, 16, ...
def sndrcv(pks, pkt, timeout = 2, inter = 0, verbose=None, chainCC=0):
def sndrcv(pks, pkt, timeout = 2, inter = 0, verbose=None, chainCC=0,retry=0):
def sndrcv(pks, pkt, timeout = 2, inter = 0, verbose=None, chainCC=0): if not isinstance(pkt, Gen): pkt = SetGen(pkt) if verbose is None: verbose = conf.verb debug.recv = [] debug.sent = [] nbrecv=0 ans = [] # do it here to fix random fields, so that parent and child have the same sent = [p for p in pkt] notans = len...
f06032fb63c499a5ce3262856cfd817adc7bd299 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/f06032fb63c499a5ce3262856cfd817adc7bd299/scapy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31158, 1310, 90, 12, 5465, 87, 16, 11536, 16, 2021, 273, 576, 16, 1554, 273, 374, 16, 3988, 33, 7036, 16, 2687, 6743, 33, 20, 16, 9620, 33, 20, 4672, 225, 309, 486, 1549, 12, 5465, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31158, 1310, 90, 12, 5465, 87, 16, 11536, 16, 2021, 273, 576, 16, 1554, 273, 374, 16, 3988, 33, 7036, 16, 2687, 6743, 33, 20, 16, 9620, 33, 20, 4672, 225, 309, 486, 1549, 12, 5465, ...
LayeredRenderGroup.change_layer(self, sprite, new_layer)
LayeredUpdates.change_layer(self, sprite, new_layer)
def change_layer(self, sprite, new_layer): """changes the layer of the sprite change_layer(sprite, new_layer): return None
2c7cf894f1a6c1c5bdd4f00acc65120fabbfef74 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1298/2c7cf894f1a6c1c5bdd4f00acc65120fabbfef74/sprite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 67, 6363, 12, 2890, 16, 16839, 16, 394, 67, 6363, 4672, 3536, 6329, 326, 3018, 434, 326, 16839, 2549, 67, 6363, 12, 1752, 796, 16, 394, 67, 6363, 4672, 327, 599, 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, 2549, 67, 6363, 12, 2890, 16, 16839, 16, 394, 67, 6363, 4672, 3536, 6329, 326, 3018, 434, 326, 16839, 2549, 67, 6363, 12, 1752, 796, 16, 394, 67, 6363, 4672, 327, 599, 2, -100, -100, ...
return map(self, results)
def static_getSQLWhere(self, sql, values=()): base=self._baseSelect() if sql: sql="%s WHERE %s" % (base, sql) else: sql=base conn = self.getDBI() results = conn.execute(sql, values, self.fieldDict) if not results: return [] return map(self, results)
6254d09419cf060e2b3e25452085ce9e93444753 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5832/6254d09419cf060e2b3e25452085ce9e93444753/PyDO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 760, 67, 588, 3997, 5262, 12, 2890, 16, 1847, 16, 924, 33, 1435, 4672, 1026, 33, 2890, 6315, 1969, 3391, 1435, 309, 1847, 30, 1847, 11613, 87, 4852, 738, 87, 6, 738, 261, 1969, 16, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 760, 67, 588, 3997, 5262, 12, 2890, 16, 1847, 16, 924, 33, 1435, 4672, 1026, 33, 2890, 6315, 1969, 3391, 1435, 309, 1847, 30, 1847, 11613, 87, 4852, 738, 87, 6, 738, 261, 1969, 16, 1...
if _backends: backends = [self.backend_instances[_backends]]
if len(_backends) > 0: try: backends = [self.backend_instances[_backends]] except (ValueError,KeyError): backends = []
def do(self, function, *args, **kwargs): """ Do calls on loaded backends with specified arguments, in separated threads.
8c78764be56bbe0fe9e344ee915fe0b48e9b7032 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/8c78764be56bbe0fe9e344ee915fe0b48e9b7032/ouiboube.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 12, 2890, 16, 445, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 2256, 4097, 603, 4203, 18015, 598, 1269, 1775, 16, 316, 8936, 7403, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 12, 2890, 16, 445, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 2256, 4097, 603, 4203, 18015, 598, 1269, 1775, 16, 316, 8936, 7403, 18, 2, -100, -100, -100, -100, -100, -100, -100, ...
def cleanupExtraDiskImages(dir, references, diskSection, configId=None):
def cleanupExtraDiskImages(dir, references, diskSection):
def cleanupExtraDiskImages(dir, references, diskSection, configId=None): """ Check if any image file is referred more than once, and remove extra copies @param dir: directory path to Ovf file/disk image files @type dir: String @param configId: configuration name @type configId: String """ # Get file list from Referen...
b11918c759c74ee67c3db3b2d51ef80c2e83e7eb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9789/b11918c759c74ee67c3db3b2d51ef80c2e83e7eb/OvfLibvirt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6686, 7800, 6247, 8946, 12, 1214, 16, 5351, 16, 4234, 5285, 4672, 3536, 2073, 309, 1281, 1316, 585, 353, 29230, 1898, 2353, 3647, 16, 471, 1206, 2870, 13200, 225, 632, 891, 1577, 30, 186...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6686, 7800, 6247, 8946, 12, 1214, 16, 5351, 16, 4234, 5285, 4672, 3536, 2073, 309, 1281, 1316, 585, 353, 29230, 1898, 2353, 3647, 16, 471, 1206, 2870, 13200, 225, 632, 891, 1577, 30, 186...
req.write("<p>Words nearest to <strong>%s</strong> " % p)
req.write("<p>Words nearest to <em>%s</em> " % p)
def browse_in_bibwords(req, p, f): """Browse inside words indexes.""" req.write("<p>Words nearest to <strong>%s</strong> " % p) if f: req.write(" inside <strong>%s</strong> " % f) req.write(" are:<br>") url = string.replace(req.args, "search=Browse","search=SEARCH") req.write(create_nearest_words_links(url, p, f)) retu...
9abc6750025b014a8ac519a428db93e9918f7e41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/9abc6750025b014a8ac519a428db93e9918f7e41/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21670, 67, 267, 67, 70, 495, 3753, 12, 3658, 16, 293, 16, 284, 4672, 3536, 27304, 4832, 4511, 5596, 12123, 1111, 18, 2626, 2932, 32, 84, 34, 7363, 11431, 358, 411, 351, 9822, 87, 1757,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21670, 67, 267, 67, 70, 495, 3753, 12, 3658, 16, 293, 16, 284, 4672, 3536, 27304, 4832, 4511, 5596, 12123, 1111, 18, 2626, 2932, 32, 84, 34, 7363, 11431, 358, 411, 351, 9822, 87, 1757,...
def checkNewResourceTypes(self):
def checkNewResourceTypes(self, resource_type=None):
def checkNewResourceTypes(self): # Check for new types added. It would be nice if this # was called automatically but not every time we query a # resource. handle_new = self.getNewTypeHandler(resource_type) if handle_new != NEWTYPE_IGNORE: typetool = getToolByName(self, 'portal_types') new_portal_types = dict([ (t.id, ...
4afac15252e2d6ddd78ef7778f76a85131a324b5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10193/4afac15252e2d6ddd78ef7778f76a85131a324b5/librarytool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1908, 1420, 2016, 12, 2890, 16, 1058, 67, 723, 33, 7036, 4672, 468, 2073, 364, 394, 1953, 3096, 18, 2597, 4102, 506, 13752, 309, 333, 468, 1703, 2566, 6635, 1496, 486, 3614, 813, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1908, 1420, 2016, 12, 2890, 16, 1058, 67, 723, 33, 7036, 4672, 468, 2073, 364, 394, 1953, 3096, 18, 2597, 4102, 506, 13752, 309, 333, 468, 1703, 2566, 6635, 1496, 486, 3614, 813, ...
pending_tests = self._CheckForIndexHostsInResults(test_records) index_results = self._SingleTestRun(pending_tests) for ns in index_results: for (hostname, request_type, duration, response, error_msg) in index_results[ns]: index = test_records.index((request_type, hostname)) self.index_results.setdefault(ns, []).append(...
index_results, pending_tests = self._CheckForIndexHostsInResults(test_records) print "already: %s" % index_results print "pending: %s" % pending_tests run_results = self._SingleTestRun(pending_tests) for ns in run_results: index_results.setdefault(ns, []).extend(run_results[ns]) print index_results
def RunIndex(self, test_records): """Run index tests using the same mechanism as a standard benchmark.""" if not test_records: print "No records to test." return None pending_tests = self._CheckForIndexHostsInResults(test_records) index_results = self._SingleTestRun(pending_tests) for ns in index_results: for (hostnam...
6d1f8469b14814e7c11d7fe5f9f6bdc68546e553 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4170/6d1f8469b14814e7c11d7fe5f9f6bdc68546e553/benchmark.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1939, 1016, 12, 2890, 16, 1842, 67, 7094, 4672, 3536, 1997, 770, 7434, 1450, 326, 1967, 12860, 487, 279, 4529, 14128, 12123, 309, 486, 1842, 67, 7094, 30, 1172, 315, 2279, 3853, 358, 184...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1939, 1016, 12, 2890, 16, 1842, 67, 7094, 4672, 3536, 1997, 770, 7434, 1450, 326, 1967, 12860, 487, 279, 4529, 14128, 12123, 309, 486, 1842, 67, 7094, 30, 1172, 315, 2279, 3853, 358, 184...
self.assertTrue(self.project.get_resource('pkg/__init__.py').exists())
self.assertTrue(self.project.get_resource('_kg/__init__.py').exists())
def test_packages_module_renaming(self): pkg = create_package(self.project, 'Pkg') self.project.do(FixModuleNames(self.project).get_changes()) self.assertFalse(pkg.exists()) self.assertTrue(self.project.get_resource('pkg/__init__.py').exists())
7fed812d78d571f340e6642aadea368f82e54e8d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8286/7fed812d78d571f340e6642aadea368f82e54e8d/fixmodnamestest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 10308, 67, 2978, 67, 1187, 7772, 12, 2890, 4672, 3475, 273, 752, 67, 5610, 12, 2890, 18, 4406, 16, 296, 11264, 6134, 365, 18, 4406, 18, 2896, 12, 8585, 3120, 1557, 12, 2890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 10308, 67, 2978, 67, 1187, 7772, 12, 2890, 4672, 3475, 273, 752, 67, 5610, 12, 2890, 18, 4406, 16, 296, 11264, 6134, 365, 18, 4406, 18, 2896, 12, 8585, 3120, 1557, 12, 2890, ...
do_handshake_on_connect=self.do_handshake_on_connect),
do_handshake_on_connect= self.do_handshake_on_connect),
def accept(self):
80e3b731afdd5339bee603af01a80f172af03c74 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/80e3b731afdd5339bee603af01a80f172af03c74/ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2791, 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, 2791, 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, -...
result = self.getRemoteCredentials() user = result['username'] group = result['group'] return fcDB.addUser(userName,user,group)
return fcDB.addUser(userName,self.getRemoteCredentials())
def export_addUser(self,userName): """ Add a new user name to the File Catalog """ result = self.getRemoteCredentials() user = result['username'] group = result['group'] return fcDB.addUser(userName,user,group)
5f300b050f8ecf30290e6baab5a4c96459704f50 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/5f300b050f8ecf30290e6baab5a4c96459704f50/FileCatalogHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 1289, 1299, 12, 2890, 16, 1355, 461, 4672, 3536, 1436, 279, 394, 729, 508, 358, 326, 1387, 14953, 3536, 327, 8036, 2290, 18, 1289, 1299, 12, 1355, 461, 16, 2890, 18, 588, 516...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 1289, 1299, 12, 2890, 16, 1355, 461, 4672, 3536, 1436, 279, 394, 729, 508, 358, 326, 1387, 14953, 3536, 327, 8036, 2290, 18, 1289, 1299, 12, 1355, 461, 16, 2890, 18, 588, 516...
include the keyed node.
include the keyed vertex.
def clustering_coeff(self, nbunch=None, with_labels=False, weights=False): r""" Returns the clustering coefficient for each node in nbunch as an ordered list.
139028392b54ae237314b7536b21897e9b1d7ed3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/139028392b54ae237314b7536b21897e9b1d7ed3/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18743, 67, 18132, 12, 2890, 16, 4264, 4384, 33, 7036, 16, 598, 67, 5336, 33, 8381, 16, 5376, 33, 8381, 4672, 436, 8395, 2860, 326, 18743, 16554, 364, 1517, 756, 316, 4264, 4384, 487, 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, 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, 18743, 67, 18132, 12, 2890, 16, 4264, 4384, 33, 7036, 16, 598, 67, 5336, 33, 8381, 16, 5376, 33, 8381, 4672, 436, 8395, 2860, 326, 18743, 16554, 364, 1517, 756, 316, 4264, 4384, 487, 3...
if not item.active:
if not item.get_active():
def next_url(self): ''' returns next socket to use or None if none available''' self.remove_errors()
b19d6e06ac1299e6f85f89d08dc3c1f36953daf4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6425/b19d6e06ac1299e6f85f89d08dc3c1f36953daf4/metalink.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 67, 718, 12, 2890, 4672, 9163, 1135, 1024, 2987, 358, 999, 578, 599, 309, 6555, 2319, 26418, 365, 18, 4479, 67, 4324, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 1024, 67, 718, 12, 2890, 4672, 9163, 1135, 1024, 2987, 358, 999, 578, 599, 309, 6555, 2319, 26418, 365, 18, 4479, 67, 4324, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
@rtype: string
@rtype: list
def getcpustat(self, process_name): """ get CPU stat for the give process name
9cd025e9ee04c34cacf9c2d8f53a1a30827bb71d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11266/9cd025e9ee04c34cacf9c2d8f53a1a30827bb71d/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 4057, 641, 270, 12, 2890, 16, 1207, 67, 529, 4672, 3536, 336, 12154, 610, 364, 326, 8492, 1207, 508, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 4057, 641, 270, 12, 2890, 16, 1207, 67, 529, 4672, 3536, 336, 12154, 610, 364, 326, 8492, 1207, 508, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
cell_6_a = create_inputdate_box("Added since", "d1", d1y, d1m, d1d) cell_6_b = create_inputdate_box("until", "d2", d2y, d2m, d2d) out += """<table cellpadding="3" cellspacing="0">
cell_6_a = create_inputdate_box("d1", d1y, d1m, d1d) cell_6_b = create_inputdate_box("d2", d2y, d2m, d2d) out += """<table class="searchbox"> <thead>
def create_search_box(cc, colls, p, f, rg, sf, so, sp, of, ot, as, p1, f1, m1, op1, p2, f2, m2, op2, p3, f3, m3, sc, d1y, d1m, d1d, d2y, d2m, d2d): "Create search box for 'search again in the results page' functionality." out = "" # print search box prolog: out += """ <form action="%s/search.py" method="get"> <strong c...
03e310531e299959e23e689e2221361a7aa1e6d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/03e310531e299959e23e689e2221361a7aa1e6d6/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3072, 67, 2147, 12, 952, 16, 645, 3251, 16, 293, 16, 284, 16, 14524, 16, 9033, 16, 1427, 16, 1694, 16, 434, 16, 15835, 16, 487, 16, 293, 21, 16, 284, 21, 16, 312, 21, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3072, 67, 2147, 12, 952, 16, 645, 3251, 16, 293, 16, 284, 16, 14524, 16, 9033, 16, 1427, 16, 1694, 16, 434, 16, 15835, 16, 487, 16, 293, 21, 16, 284, 21, 16, 312, 21, 16...
self.client.UnregisterHandler("message", self.handle_message) self.client.UnregisterHandler("presence", self.handle_presence)
def disconnect(self): """Disconnect from the server.
b41e1e33f4518e210aa817941256b5a40c9172ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14221/b41e1e33f4518e210aa817941256b5a40c9172ea/bot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9479, 12, 2890, 4672, 3536, 18895, 628, 326, 1438, 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, 9479, 12, 2890, 4672, 3536, 18895, 628, 326, 1438, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
import App.config config = App.config.getConfiguration() config.debug_mode = 0 App.config.setConfiguration(config)
def _configure_debug_mode(): import App.config config = App.config.getConfiguration() config.debug_mode = 0 App.config.setConfiguration(config)
def _exec(cmd): '''Prints the time it takes to execute 'cmd'.''' if os.environ.get('X', None): start = time.time() exec cmd _print('(%.3fs)' % (time.time() - start))
f8c45562b7ce76e16b3ca098b95a6ff1e22605e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/f8c45562b7ce76e16b3ca098b95a6ff1e22605e6/ZopeLite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4177, 12, 4172, 4672, 9163, 15402, 326, 813, 518, 5530, 358, 1836, 296, 4172, 11, 1093, 6309, 309, 1140, 18, 28684, 18, 588, 2668, 60, 2187, 599, 4672, 787, 273, 813, 18, 957, 143...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4177, 12, 4172, 4672, 9163, 15402, 326, 813, 518, 5530, 358, 1836, 296, 4172, 11, 1093, 6309, 309, 1140, 18, 28684, 18, 588, 2668, 60, 2187, 599, 4672, 787, 273, 813, 18, 957, 143...
if self.selected_tab_list.type == 'feed':
if self.selected_tab_list.type in ('feed', 'audio-feed'):
def handle_new_selection(self): app.display_manager.select_display_for_tabs(self.selected_tab_list, self.selected_tabs) if self.selected_tab_list.type == 'feed': app.menu_manager.handle_feed_selection(self.selected_tabs) elif self.selected_tab_list.type == 'playlist': app.menu_manager.handle_playlist_selection(self.sel...
8ed490782b013a363dc819fb5cdb482322468faa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/8ed490782b013a363dc819fb5cdb482322468faa/tablistmanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 2704, 67, 10705, 12, 2890, 4672, 595, 18, 5417, 67, 4181, 18, 4025, 67, 5417, 67, 1884, 67, 16056, 12, 2890, 18, 8109, 67, 7032, 67, 1098, 16, 365, 18, 8109, 67, 16056, 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, 1640, 67, 2704, 67, 10705, 12, 2890, 4672, 595, 18, 5417, 67, 4181, 18, 4025, 67, 5417, 67, 1884, 67, 16056, 12, 2890, 18, 8109, 67, 7032, 67, 1098, 16, 365, 18, 8109, 67, 16056, 13,...
help='Architecture to build for') SConsEnvironment.__init__(self, ENV = os.environ, tools=tools, **kwargs)
help='Architecture to build for [x86, x64, or detect (default)]') SConsEnvironment.__init__(self, ENV = dict(os.environ), tools=tools, **kwargs)
def __init__(self, **kwargs): try: tools = list(kwargs.pop("tools")) tools.append('packaging') except KeyError: tools = ['default', 'packaging']
728e8e301aa63a3d4f4b0cf3760defa8ccf1365f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/728e8e301aa63a3d4f4b0cf3760defa8ccf1365f/blitz_tools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 4333, 4672, 775, 30, 8513, 273, 666, 12, 4333, 18, 5120, 2932, 6642, 6, 3719, 8513, 18, 6923, 2668, 2920, 5755, 6134, 1335, 4999, 30, 8513, 273, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 4333, 4672, 775, 30, 8513, 273, 666, 12, 4333, 18, 5120, 2932, 6642, 6, 3719, 8513, 18, 6923, 2668, 2920, 5755, 6134, 1335, 4999, 30, 8513, 273, 10...
_lookup(bindings, context),
_lookup(bindings, context),
def _lookupQuad(bindings, q): context, pred, subj, obj = q return ( _lookup(bindings, context), # target context not workingContext _lookup(bindings, pred), _lookup(bindings, subj), _lookup(bindings, obj) )
601948c52d7090ce07e111ce90f771b936782308 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/601948c52d7090ce07e111ce90f771b936782308/cwm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8664, 24483, 12, 15863, 16, 1043, 4672, 819, 16, 3479, 16, 15333, 16, 1081, 273, 1043, 327, 261, 389, 8664, 12, 15863, 16, 819, 3631, 225, 468, 1018, 819, 486, 5960, 1042, 389, 86...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8664, 24483, 12, 15863, 16, 1043, 4672, 819, 16, 3479, 16, 15333, 16, 1081, 273, 1043, 327, 261, 389, 8664, 12, 15863, 16, 819, 3631, 225, 468, 1018, 819, 486, 5960, 1042, 389, 86...
import xml.sax
import xml.sax.saxutils
def create_parser(*args, **kwargs): return ExpatParser(*args, **kwargs)
410df5ffc21bd01223f05f5d20c137371286dcf4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/410df5ffc21bd01223f05f5d20c137371286dcf4/expatreader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 4288, 30857, 1968, 16, 2826, 4333, 4672, 327, 7784, 270, 2678, 30857, 1968, 16, 2826, 4333, 13, 225, 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, 752, 67, 4288, 30857, 1968, 16, 2826, 4333, 4672, 327, 7784, 270, 2678, 30857, 1968, 16, 2826, 4333, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
@neediface
@neediface(False)
def StartDHCP(self): """ Start the DHCP client to obtain an IP address. Returns: A string representing the result of the DHCP command. See _check_dhcp_result for the possible values. """ cmd = self._get_dhcp_command('connect') if self.verbose: print cmd self.dhcp_object = misc.Run(cmd, include_stderr=True, return_ob...
47ca18c906e4d683b6f15a7e6c3eb8390b1e7e2a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/353/47ca18c906e4d683b6f15a7e6c3eb8390b1e7e2a/wnettools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3603, 16501, 4258, 12, 2890, 4672, 3536, 3603, 326, 24141, 4258, 1004, 358, 7161, 392, 2971, 1758, 18, 225, 2860, 30, 432, 533, 5123, 326, 563, 434, 326, 24141, 4258, 1296, 18, 225, 2164...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16501, 4258, 12, 2890, 4672, 3536, 3603, 326, 24141, 4258, 1004, 358, 7161, 392, 2971, 1758, 18, 225, 2860, 30, 432, 533, 5123, 326, 563, 434, 326, 24141, 4258, 1296, 18, 225, 2164...
self.annotation = Annotation()
self.annotation = Annotation(self)
def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node)
6c6678d8443cc0ac1425216db36bdd74c2f8cb7b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/6c6678d8443cc0ac1425216db36bdd74c2f8cb7b/XMLSchema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 8832, 12, 2890, 16, 756, 4672, 365, 18, 542, 2498, 12, 2159, 13, 2939, 273, 365, 18, 588, 6323, 12, 2159, 13, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 8832, 12, 2890, 16, 756, 4672, 365, 18, 542, 2498, 12, 2159, 13, 2939, 273, 365, 18, 588, 6323, 12, 2159, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
protect_file = os.path.join(self.__series_dir, 'protected')
protect_file = os.path.join(self._dir(), 'protected')
def unprotect(self): protect_file = os.path.join(self.__series_dir, 'protected') if os.path.isfile(protect_file): os.remove(protect_file)
8fe7e9f08ae6fe49cec66a8034e8495cbf77c6f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12366/8fe7e9f08ae6fe49cec66a8034e8495cbf77c6f3/stack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 11815, 386, 12, 2890, 4672, 17151, 67, 768, 273, 1140, 18, 803, 18, 5701, 12, 2890, 6315, 1214, 9334, 296, 1117, 6134, 309, 1140, 18, 803, 18, 291, 768, 12, 11815, 386, 67, 768, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 640, 11815, 386, 12, 2890, 4672, 17151, 67, 768, 273, 1140, 18, 803, 18, 5701, 12, 2890, 6315, 1214, 9334, 296, 1117, 6134, 309, 1140, 18, 803, 18, 291, 768, 12, 11815, 386, 67, 768, ...
filedata = self.readEntry() if filedata == None:
data = doRead(self.fd, 110) if self.size != None: self.size -= 110 if data[0:6] not in ("070701", "070702"): raise IOError, "Bad magic reading CPIO headers %s" % data[0:6] namesize = int(data[94:102], 16) filename = self.__readDataPad(namesize, 110).rstrip("\x00") if filename == "TRAILER!!!":
def readCpio(self, func, filenamehash, devinode, filenames): while 1: filedata = self.readEntry() if filedata == None: if self.size != None and self.size != 0: self.printErr("failed cpiosize check") return 1 func(filedata, self.__readDataPad, filenamehash, devinode, filenames) return None
36064e9e7b8187b1d2723e47eb83915d362cf0b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/36064e9e7b8187b1d2723e47eb83915d362cf0b4/oldpyrpm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 28954, 1594, 12, 2890, 16, 1326, 16, 1544, 2816, 16, 4461, 267, 390, 16, 9066, 4672, 1323, 404, 30, 282, 501, 273, 741, 1994, 12, 2890, 18, 8313, 16, 20168, 13, 309, 365, 18, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 28954, 1594, 12, 2890, 16, 1326, 16, 1544, 2816, 16, 4461, 267, 390, 16, 9066, 4672, 1323, 404, 30, 282, 501, 273, 741, 1994, 12, 2890, 18, 8313, 16, 20168, 13, 309, 365, 18, 14...
job -- a sage.dsage.database.Job object
jdict -- sage.dsage.database.Job.jdict
def store_job(self, jdict): """ Stores a job based on information from Job.jdict. The keys of the dictionary should correspond to the columns in the 'jobs' table. Parameters: job -- a sage.dsage.database.Job object """ job_id = jdict['job_id']
d3c2f44566427adf09806132812b358b0a79187a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/d3c2f44566427adf09806132812b358b0a79187a/jobdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1707, 67, 4688, 12, 2890, 16, 525, 1576, 4672, 3536, 20296, 455, 279, 1719, 2511, 603, 1779, 628, 3956, 18, 78, 1576, 18, 1021, 1311, 434, 326, 3880, 1410, 4325, 358, 326, 2168, 316, 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, 1707, 67, 4688, 12, 2890, 16, 525, 1576, 4672, 3536, 20296, 455, 279, 1719, 2511, 603, 1779, 628, 3956, 18, 78, 1576, 18, 1021, 1311, 434, 326, 3880, 1410, 4325, 358, 326, 2168, 316, 3...