rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
return True
def resubmit(self): """Resubmit a failed or completed job. """
4c77597a067df005a24a296b8147f8aa781f0853 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1488/4c77597a067df005a24a296b8147f8aa781f0853/Job.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 400, 373, 1938, 12, 2890, 4672, 3536, 607, 373, 1938, 279, 2535, 578, 5951, 1719, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 400, 373, 1938, 12, 2890, 4672, 3536, 607, 373, 1938, 279, 2535, 578, 5951, 1719, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
form_init.send('RegistrationForm',
form_init.send(self.__class__,
def __init__(self, *args, **kwargs): contact = kwargs.get('contact', None) initial = kwargs.get('initial', {}) self.contact = contact form_initialdata.send('RegistrationForm', form=self, contact=contact, initial=initial) kwargs['initial'] = initial super(RegistrationForm, self).__init__(*args, **kwargs) form_init.send...
eab53145b23d8a5041ddc82578e49c1ac8e1d38d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13656/eab53145b23d8a5041ddc82578e49c1ac8e1d38d/forms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 5388, 273, 1205, 18, 588, 2668, 8994, 2187, 599, 13, 2172, 273, 1205, 18, 588, 2668, 6769, 2187, 2618, 13, 365, 18, 8994...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 5388, 273, 1205, 18, 588, 2668, 8994, 2187, 599, 13, 2172, 273, 1205, 18, 588, 2668, 6769, 2187, 2618, 13, 365, 18, 8994...
unknown_scattering_type_substitute = eltbx.xray_scattering.it1992( unknown_scattering_type_substitute, True).label()
unknown_scattering_type_substitute \ = eltbx.xray_scattering.get_standard_label( label=unknown_scattering_type_substitute)
def extract_xray_structure(self, special_position_settings=None, crystal_symmetry=None, force_symmetry=False, sites_cart=None, sites_frac=None, site_symmetry_table=None, scattering_types=None, infer_scattering_types_from_names=False, unknown_scattering_type_substitute=None): assert sites_cart is None or sites_frac is N...
25c5a305bd4bb7ef1d3f285273942c6f32e9b91d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/25c5a305bd4bb7ef1d3f285273942c6f32e9b91d/interpretation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 92, 435, 67, 7627, 12, 2890, 16, 4582, 67, 3276, 67, 4272, 33, 7036, 16, 4422, 31365, 67, 8117, 18042, 33, 7036, 16, 2944, 67, 8117, 18042, 33, 8381, 16, 9180, 67, 11848, 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, 2608, 67, 92, 435, 67, 7627, 12, 2890, 16, 4582, 67, 3276, 67, 4272, 33, 7036, 16, 4422, 31365, 67, 8117, 18042, 33, 7036, 16, 2944, 67, 8117, 18042, 33, 8381, 16, 9180, 67, 11848, 3...
</datafield>
</datafield>
def setUp(self): """Prepare some ideal outputs"""
e392a2b83cce91ef4d27622e150c5c79211c9eae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/e392a2b83cce91ef4d27622e150c5c79211c9eae/bibformat_regression_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 3536, 7543, 2690, 23349, 6729, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 24292, 12, 2890, 4672, 3536, 7543, 2690, 23349, 6729, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def product_id_change(self, cr, uid, ids, product, uom, qty=0, name='', type='out_invoice', partner_id=False, fposition_id=False, price_unit=False, address_invoice_id=False, company_id=False, context=None):
def product_id_change(self, cr, uid, ids, product, uom, qty=0, name='', type='out_invoice', partner_id=False, fposition_id=False, price_unit=False, address_invoice_id=False, context=None): company_id = context['company_id']
def product_id_change(self, cr, uid, ids, product, uom, qty=0, name='', type='out_invoice', partner_id=False, fposition_id=False, price_unit=False, address_invoice_id=False, company_id=False, context=None): if context is None: context = {} if not partner_id: raise osv.except_osv(_('No Partner Defined !'),_("You must ...
c66cef4dd50c425fa5ff69ef0659035f516a463d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/c66cef4dd50c425fa5ff69ef0659035f516a463d/multi_company_account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3017, 67, 350, 67, 3427, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 3017, 16, 582, 362, 16, 26667, 33, 20, 16, 508, 2218, 2187, 618, 2218, 659, 67, 16119, 2187, 19170, 67, 350, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3017, 67, 350, 67, 3427, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 3017, 16, 582, 362, 16, 26667, 33, 20, 16, 508, 2218, 2187, 618, 2218, 659, 67, 16119, 2187, 19170, 67, 350, 33, ...
phase=phase, hname=handler, debug=debug)
phase=_req.phase, hname=hlist.handler, debug=debug)
def HandlerDispatch(self, _req): """ This is the handler dispatcher. """
93fa83dbe968a9f1c26514892e99f9cfd919241d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10002/93fa83dbe968a9f1c26514892e99f9cfd919241d/apache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4663, 5325, 12, 2890, 16, 389, 3658, 4672, 3536, 1220, 353, 326, 1838, 7393, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4663, 5325, 12, 2890, 16, 389, 3658, 4672, 3536, 1220, 353, 326, 1838, 7393, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
debug(" Set-Cookie2 without version attribute (%s=%s)", cookie.name, cookie.value)
_debug(" Set-Cookie2 without version attribute (%s=%s)", cookie.name, cookie.value)
def set_ok_version(self, cookie, request): if cookie.version is None: # Version is always set to 0 by parse_ns_headers if it's a Netscape # cookie, so this must be an invalid RFC 2965 cookie. debug(" Set-Cookie2 without version attribute (%s=%s)", cookie.name, cookie.value) return False if cookie.version > 0 and not ...
15f04d8bbaf4e2b7d0d25228ce9bc84f1e501e81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/15f04d8bbaf4e2b7d0d25228ce9bc84f1e501e81/cookielib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 601, 67, 1589, 12, 2890, 16, 3878, 16, 590, 4672, 309, 3878, 18, 1589, 353, 599, 30, 468, 4049, 353, 3712, 444, 358, 374, 635, 1109, 67, 2387, 67, 2485, 309, 518, 1807, 279,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 601, 67, 1589, 12, 2890, 16, 3878, 16, 590, 4672, 309, 3878, 18, 1589, 353, 599, 30, 468, 4049, 353, 3712, 444, 358, 374, 635, 1109, 67, 2387, 67, 2485, 309, 518, 1807, 279,...
root = 'http://127.0.0.1:8000' user = 'alice@example.com' password = '123' client = XCAPClient(root, user, password=password) document = file('../examples/resource-lists.xml').read()
document = file('examples/resource-lists.xml').read()
def __exit__(self, exc_type, exc_value, traceback): if self.result: print self.result if exc_type is None: assert False, 'expecting exception %s' % self.klass.__name__ elif issubclass(exc_type, self.klass): for (k, v) in self.kwargs.items(): if getattr(exc_value, k, None)!=v: return False return True
dab938f43cc9e2d9b6c4311724fbb11ba5f93070 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3443/dab938f43cc9e2d9b6c4311724fbb11ba5f93070/test_client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 8593, 972, 12, 2890, 16, 3533, 67, 723, 16, 3533, 67, 1132, 16, 10820, 4672, 309, 365, 18, 2088, 30, 1172, 365, 18, 2088, 309, 3533, 67, 723, 353, 599, 30, 1815, 1083, 16, 296,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8593, 972, 12, 2890, 16, 3533, 67, 723, 16, 3533, 67, 1132, 16, 10820, 4672, 309, 365, 18, 2088, 30, 1172, 365, 18, 2088, 309, 3533, 67, 723, 353, 599, 30, 1815, 1083, 16, 296,...
if type(iterable) not in (list, tuple, dict, file, xrange, str): iterable = tuple(iterable) it = iter(iterable)
def _update(self, iterable): # The main loop for update() and the subclass __init__() methods. data = self._data
7cd83ca9adefadee172f252f4f89f24dc10cd715 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7cd83ca9adefadee172f252f4f89f24dc10cd715/sets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 12, 2890, 16, 6087, 4672, 468, 1021, 2774, 2798, 364, 1089, 1435, 471, 326, 10177, 1001, 2738, 972, 1435, 2590, 18, 501, 273, 365, 6315, 892, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 12, 2890, 16, 6087, 4672, 468, 1021, 2774, 2798, 364, 1089, 1435, 471, 326, 10177, 1001, 2738, 972, 1435, 2590, 18, 501, 273, 365, 6315, 892, 2, -100, -100, -100, -100, -100, ...
sage: sr = mq.SR(1,2,2,4)
sage: sr = mq.SR(1, 2, 2, 4)
def varformatstr(self, name, n=None, rc=None, e=None): """ Return a format string which is understood by print et al.
62424369e932ac59629cb4d40b7e47ae2a712293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62424369e932ac59629cb4d40b7e47ae2a712293/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 569, 2139, 701, 12, 2890, 16, 508, 16, 290, 33, 7036, 16, 4519, 33, 7036, 16, 425, 33, 7036, 4672, 3536, 2000, 279, 740, 533, 1492, 353, 31727, 4773, 635, 1172, 3393, 524, 18, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 569, 2139, 701, 12, 2890, 16, 508, 16, 290, 33, 7036, 16, 4519, 33, 7036, 16, 425, 33, 7036, 4672, 3536, 2000, 279, 740, 533, 1492, 353, 31727, 4773, 635, 1172, 3393, 524, 18, 2, -10...
def findTrove(repos, defaultLabel, name, flavor, versionStr = None): """ Looks up a package in the given repository based on the name and
def findTrove(self, defaultLabel, name, flavor, versionStr = None): """ Looks up a trove in the repository based on the name and
def findTrove(repos, defaultLabel, name, flavor, versionStr = None):
a9234cbc044dc9c575ad01ac7607f3ce33b1b7d8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/a9234cbc044dc9c575ad01ac7607f3ce33b1b7d8/repository.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 56, 303, 537, 12, 15564, 16, 805, 2224, 16, 508, 16, 19496, 16, 1177, 1585, 273, 599, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 56, 303, 537, 12, 15564, 16, 805, 2224, 16, 508, 16, 19496, 16, 1177, 1585, 273, 599, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
nim.terrestrial = configElement(cname + "terrestrial", configSelection, 0, nimmgr.terrestrialsList, False);
list = [] for x in nimmgr.terrestrialsList: list.append(x[0]) nim.terrestrial = configElement(cname + "terrestrial", configSelection, 0, list, False);
def nimPortDChanged(slotid, configElement): nimmgr.nimPortDChanged(slotid, configElement.vals[configElement.value][1])
fd6e4663672142f13548a43a0d54fa87d67a98a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/fd6e4663672142f13548a43a0d54fa87d67a98a5/NimManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 290, 381, 2617, 40, 5033, 12, 14194, 350, 16, 642, 1046, 4672, 290, 381, 13552, 18, 82, 381, 2617, 40, 5033, 12, 14194, 350, 16, 642, 1046, 18, 4524, 63, 1425, 1046, 18, 1132, 6362, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 290, 381, 2617, 40, 5033, 12, 14194, 350, 16, 642, 1046, 4672, 290, 381, 13552, 18, 82, 381, 2617, 40, 5033, 12, 14194, 350, 16, 642, 1046, 18, 4524, 63, 1425, 1046, 18, 1132, 6362, ...
return util.FileWrapper(open(fn))
return util.FileWrapper(open(fn, "rb"))
def app(environ, respond): fn = os.path.join(path, environ['PATH_INFO'][1:]) if '.' not in fn.split(os.path.sep)[-1]: fn = os.path.join(fn, 'index.html') type = mimetypes.guess_type(fn)[0] if os.path.exists(fn): respond('200 OK', [('Content-Type', type)]) return util.FileWrapper(open(fn)) else: respond('404 Not Found...
f767f08e290d0caa42148083940a08e8425b18f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/f767f08e290d0caa42148083940a08e8425b18f2/serve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 595, 12, 28684, 16, 6846, 4672, 225, 2295, 273, 1140, 18, 803, 18, 5701, 12, 803, 16, 5473, 3292, 4211, 67, 5923, 3546, 63, 21, 30, 5717, 309, 2611, 486, 316, 2295, 18, 4939, 12, 538...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 595, 12, 28684, 16, 6846, 4672, 225, 2295, 273, 1140, 18, 803, 18, 5701, 12, 803, 16, 5473, 3292, 4211, 67, 5923, 3546, 63, 21, 30, 5717, 309, 2611, 486, 316, 2295, 18, 4939, 12, 538...
self.buffer = ""
self.buffer = ''
def __init__(self, terminator): asynchat.async_chat.__init__(self) self.contents = None self.create_socket(socket.AF_INET, socket.SOCK_STREAM) self.connect((HOST, PORT)) self.set_terminator(terminator) self.buffer = ""
9347fd3b7b57e7415ecff64950d99accfc0f5198 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/9347fd3b7b57e7415ecff64950d99accfc0f5198/test_asynchat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 24965, 4672, 487, 2515, 270, 18, 3810, 67, 10880, 16186, 2738, 972, 12, 2890, 13, 365, 18, 3980, 273, 599, 365, 18, 2640, 67, 7814, 12, 7814, 18, 6799, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24965, 4672, 487, 2515, 270, 18, 3810, 67, 10880, 16186, 2738, 972, 12, 2890, 13, 365, 18, 3980, 273, 599, 365, 18, 2640, 67, 7814, 12, 7814, 18, 6799, ...
outgraph.overlap = 'compress'
outgraph.overlap = 'scalexy'
def build_outgraph(self): outgraph = Graph()
4156a22b8e33d6be8213302a491030c1094f4233 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/4156a22b8e33d6be8213302a491030c1094f4233/ShowGraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 659, 4660, 12, 2890, 4672, 596, 4660, 273, 5601, 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, 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, 1361, 67, 659, 4660, 12, 2890, 4672, 596, 4660, 273, 5601, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def test_java_object_arrays(): jStringArr = array(String, [String("a"), String("b"), String("c")]) verify(Arrays.equals(jStringArr.typecode, str(String)), "String array typecode of wrong type, expected %s, found %s" % (jStringArr.typecode, str(String))) verify(zeros(String, 5) == Array.newInstance(String, 5))
def test_main(): test_support.run_unittest(ArrayJyTestCase)
def test_java_object_arrays(): jStringArr = array(String, [String("a"), String("b"), String("c")]) verify(Arrays.equals(jStringArr.typecode, str(String)), "String array typecode of wrong type, expected %s, found %s" % (jStringArr.typecode, str(String))) verify(zeros(String, 5) == Array.newInstance(String, 5)) import j...
8ef82330477c1d1c4004a766c05b6564df01f520 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6753/8ef82330477c1d1c4004a766c05b6564df01f520/test_array_jy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 1842, 67, 13261, 18, 2681, 67, 4873, 3813, 12, 1076, 46, 93, 4709, 2449, 13, 225, 1930, 2252, 468, 2583, 364, 5302, 358, 1440, 309, 525, 780, 5715, 480, 5302, 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, 1842, 67, 5254, 13332, 1842, 67, 13261, 18, 2681, 67, 4873, 3813, 12, 1076, 46, 93, 4709, 2449, 13, 225, 1930, 2252, 468, 2583, 364, 5302, 358, 1440, 309, 525, 780, 5715, 480, 5302, 12...
menuTitle = u'Add sharing sctivity log to Sidebar'
menuTitle = u'Add sharing activity log to Sidebar'
def onAddScriptsToSidebarEventUpdateUI(self, event): sidebar = Block.findBlockByName ("Sidebar").contents log = schema.ns('osaf.sharing', self.itsView).activityLog if log in sidebar: menuTitle = u'Show Sharing Activity' else: menuTitle = u'Add sharing sctivity log to Sidebar' event.arguments ['Text'] = menuTitle event....
c62b78286744150c051871a2a2e004d77340adc9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/c62b78286744150c051871a2a2e004d77340adc9/Main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 986, 15041, 774, 8895, 3215, 1133, 1891, 5370, 12, 2890, 16, 871, 4672, 23364, 273, 3914, 18, 4720, 1768, 5911, 7566, 8895, 3215, 20387, 3980, 613, 273, 1963, 18, 2387, 2668, 538, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 986, 15041, 774, 8895, 3215, 1133, 1891, 5370, 12, 2890, 16, 871, 4672, 23364, 273, 3914, 18, 4720, 1768, 5911, 7566, 8895, 3215, 20387, 3980, 613, 273, 1963, 18, 2387, 2668, 538, 1...
if nodeName_ == 'state':
if nodeName_ == 'state':
def buildChildren(self, child_, nodeName_, from_subclass=False): if nodeName_ == 'state': type_name_ = child_.attrib.get('{http://www.w3.org/2001/XMLSchema-instance}type') if type_name_ is None: type_name_ = child_.attrib.get('type') if type_name_ is not None: type_names_ = type_name_.split(':') if len(type_names_) == ...
9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/9c12e50d449fa27d6f8f3415ece228ae97bb0266/_nexml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4212, 12, 2890, 16, 1151, 67, 16, 7553, 67, 16, 628, 67, 10678, 33, 8381, 4672, 309, 7553, 67, 422, 296, 2019, 4278, 618, 67, 529, 67, 273, 1151, 27799, 14588, 18, 588, 2668, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4212, 12, 2890, 16, 1151, 67, 16, 7553, 67, 16, 628, 67, 10678, 33, 8381, 4672, 309, 7553, 67, 422, 296, 2019, 4278, 618, 67, 529, 67, 273, 1151, 27799, 14588, 18, 588, 2668, 9...
REQUEST.RESPONSE.redirect('%s/edit_html?lang=%s' % (doc.absolute_url(), new_lang))
if REQUEST is not None: REQUEST.RESPONSE.redirect('%s/edit_html?lang=%s' % (doc.absolute_url(), new_lang))
def switchToLanguage(self, REQUEST=None, **kwargs): """Update session from a given language""" # Update kwargs from request if not REQUEST: return parents = REQUEST.get('PARENTS', None) if not parents: return doc = parents[0] form = getattr(REQUEST, 'form', {}) kwargs.update(form) kwargs['approved'] = 1 lang = kwargs.g...
e9cdb28c34e084450ac255e3ca5221e766a3e6e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/e9cdb28c34e084450ac255e3ca5221e766a3e6e8/NyFolder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1620, 774, 3779, 12, 2890, 16, 12492, 33, 7036, 16, 2826, 4333, 4672, 3536, 1891, 1339, 628, 279, 864, 2653, 8395, 468, 2315, 1205, 628, 590, 309, 486, 12492, 30, 327, 6298, 273, 12492, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1620, 774, 3779, 12, 2890, 16, 12492, 33, 7036, 16, 2826, 4333, 4672, 3536, 1891, 1339, 628, 279, 864, 2653, 8395, 468, 2315, 1205, 628, 590, 309, 486, 12492, 30, 327, 6298, 273, 12492, ...
class WIDENPATH(EMR_UNKNOWN):
class _WIDENPATH(_EMR_UNKNOWN):
def __init__(self,bounds=(0,0,0,0)): EMR_UNKNOWN.__init__(self) self.setBounds(bounds)
688318604ffe18a54bb261a3bde4bf6e1784a8de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8136/688318604ffe18a54bb261a3bde4bf6e1784a8de/pyemf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 10576, 28657, 20, 16, 20, 16, 20, 16, 20, 3719, 30, 7141, 54, 67, 14737, 16186, 2738, 972, 12, 2890, 13, 365, 18, 542, 5694, 12, 10576, 13, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 10576, 28657, 20, 16, 20, 16, 20, 16, 20, 3719, 30, 7141, 54, 67, 14737, 16186, 2738, 972, 12, 2890, 13, 365, 18, 542, 5694, 12, 10576, 13, 2, -100, ...
pivot=sites[3], normal=(sites[3]-sites[2]).normalize(),
pivot=sites[2], normal=(sites[2]-sites[1]).normalize(),
def simulation_gly_no_h(): pdb = """\
4762558562fd1fa43a255509aab4d76050c505c3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/696/4762558562fd1fa43a255509aab4d76050c505c3/tst_molecules.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14754, 67, 75, 715, 67, 2135, 67, 76, 13332, 10892, 273, 3536, 64, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14754, 67, 75, 715, 67, 2135, 67, 76, 13332, 10892, 273, 3536, 64, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
sys.stderr.write('!!!Error importing %s: %s\n!!!', (mname, e))
sys.stderr.write('!!!Error importing %s: %s\n!!!' % (name, e))
def document(options, progress, cancel): """ Create the documentation for C{modules}, using the options specified by C{options}. C{document} is designed to be started in its own thread by L{EpydocGUI._go}. @param options: The options to use for generating documentation. This includes keyword options that can be given...
82bf81bab8328f579ee5b6248b52b9834a32ecc4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/82bf81bab8328f579ee5b6248b52b9834a32ecc4/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1668, 12, 2116, 16, 4007, 16, 3755, 4672, 3536, 1788, 326, 7323, 364, 385, 95, 6400, 5779, 1450, 326, 702, 1269, 635, 385, 95, 2116, 5496, 225, 385, 95, 5457, 97, 353, 26584, 358, 506,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1668, 12, 2116, 16, 4007, 16, 3755, 4672, 3536, 1788, 326, 7323, 364, 385, 95, 6400, 5779, 1450, 326, 702, 1269, 635, 385, 95, 2116, 5496, 225, 385, 95, 5457, 97, 353, 26584, 358, 506,...
elif name == 'BufferSubData': file.Write(" uint32 data_size = size;\n") elif name == 'CompressedTexImage2D':
elif (name == 'CompressedTexImage2D' or name == 'CompressedTexSubImage2D'):
def WriteGetDataSizeCode(self, func, file): """Overrriden from TypeHandler.""" # TODO(gman): Move this data to _FUNCTION_INFO? name = func.name if name.endswith("Immediate"): name = name[0:-9] if name == 'BufferData': file.Write(" uint32 data_size = size;\n") elif name == 'BufferSubData': file.Write(" uint32 data_siz...
a6eb5232d2608cd0773bbe559757bd52c7f53670 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/a6eb5232d2608cd0773bbe559757bd52c7f53670/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 967, 29414, 1085, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 468, 2660, 12, 75, 4728, 4672, 9933, 333, 501, 358, 389, 7788, 67, 5923, 35, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 967, 29414, 1085, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 468, 2660, 12, 75, 4728, 4672, 9933, 333, 501, 358, 389, 7788, 67, 5923, 35, ...
self._write(self.write_frames_index, directory, 'frames.html') self._write(self.write_toc, directory, 'toc.html') self._write(self.write_project_toc, directory, 'toc-everything.html') for doc in self.module_list: filename = 'toc-%s' % urllib.unquote(self.url(doc)) self._write(self.write_module_toc, directory, filename,...
if self._frames_index: self._write(self.write_frames_index, directory, 'frames.html') self._write(self.write_toc, directory, 'toc.html') self._write(self.write_project_toc, directory, 'toc-everything.html') for doc in self.module_list: filename = 'toc-%s' % urllib.unquote(self.url(doc)) self._write(self.write_module_to...
def write(self, directory=None): """ Write the documentation to the given directory.
efa53d0cb5b90524e3e4219b8789997f18e8c97c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11420/efa53d0cb5b90524e3e4219b8789997f18e8c97c/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1867, 33, 7036, 4672, 3536, 2598, 326, 7323, 358, 326, 864, 1867, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1867, 33, 7036, 4672, 3536, 2598, 326, 7323, 358, 326, 864, 1867, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if "sqlite3" in repr(connection): return "sqlite3"
if "sqlite" in repr(connection): return "sqlite"
def connection_db_type(connection): """ A totally broken attempt to determine what type of database a connection object is attached to. Don't use this. The input is a DB API 2.0 compliant connection object, the return value is one of the strings "sqlite3" or "mysql". Raises TypeError when the database type cannot be...
1dfd8dfeb0750bf0768e0a09f0fbbac2ca3f64cb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/1dfd8dfeb0750bf0768e0a09f0fbbac2ca3f64cb/dbtables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1459, 67, 1966, 67, 723, 12, 4071, 4672, 3536, 432, 9997, 1230, 12933, 4395, 358, 4199, 4121, 618, 434, 2063, 279, 1459, 733, 353, 7495, 358, 18, 225, 7615, 1404, 999, 333, 18, 225, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1459, 67, 1966, 67, 723, 12, 4071, 4672, 3536, 432, 9997, 1230, 12933, 4395, 358, 4199, 4121, 618, 434, 2063, 279, 1459, 733, 353, 7495, 358, 18, 225, 7615, 1404, 999, 333, 18, 225, 10...
ptsize = int(ptsize / 0.7)
def drawstringframed(self, string, x, y, width, height, fgcolor=None, bgcolor=None, font=None, ptsize=0, align_h='left', align_v='top'):
455a9690658634c5163952dcd6b3d1a2006ae348 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/455a9690658634c5163952dcd6b3d1a2006ae348/osd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 1080, 74, 1940, 329, 12, 2890, 16, 533, 16, 619, 16, 677, 16, 1835, 16, 2072, 16, 10186, 3266, 33, 7036, 16, 31509, 33, 7036, 16, 3512, 33, 7036, 16, 5818, 1467, 33, 20, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 1080, 74, 1940, 329, 12, 2890, 16, 533, 16, 619, 16, 677, 16, 1835, 16, 2072, 16, 10186, 3266, 33, 7036, 16, 31509, 33, 7036, 16, 3512, 33, 7036, 16, 5818, 1467, 33, 20, 16, ...
fname = _generateMaildirName()
fname = _generateMaildirName()
def startMessage(self, user): """Save a message for a given user """ name, domain = user.dest.local, user.dest.domain dir = self.userDirectory(name) fname = _generateMaildirName() filename = os.path.join(dir, 'tmp', fname) fp = open(filename, 'w') fp.write("Delivered-To: %(name)s@%(domain)s\n" % vars()) return mail.Fil...
e8df9ac9036a2287c076b68eea7dbf837af313d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/e8df9ac9036a2287c076b68eea7dbf837af313d5/maildir.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1079, 12, 2890, 16, 729, 4672, 3536, 4755, 279, 883, 364, 279, 864, 729, 3536, 508, 16, 2461, 273, 729, 18, 10488, 18, 3729, 16, 729, 18, 10488, 18, 4308, 1577, 273, 365, 18, 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, 787, 1079, 12, 2890, 16, 729, 4672, 3536, 4755, 279, 883, 364, 279, 864, 729, 3536, 508, 16, 2461, 273, 729, 18, 10488, 18, 3729, 16, 729, 18, 10488, 18, 4308, 1577, 273, 365, 18, 13...
class Dot(gof.op.Op): def __init__(self, x, y): def perform: def grad: """ Attributes: grad_preserves_dense - an array of boolean flags (described below) grad_preserves_dense controls whether gradients with respect to inputs are converted to dense matrices when the corresponding inputs are not in a SparseR wrapper...
def grad(self, (x, y), gz): return gz, gz
2bbaeb62751608e8f36734e2a3bd59c1933a8438 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12438/2bbaeb62751608e8f36734e2a3bd59c1933a8438/sparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6058, 12, 2890, 16, 261, 92, 16, 677, 3631, 14136, 4672, 327, 14136, 16, 14136, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6058, 12, 2890, 16, 261, 92, 16, 677, 3631, 14136, 4672, 327, 14136, 16, 14136, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Return True if the group self is a normal subgroup of other.
Return True if the group other is a normal subgroup of self.
def is_normal(self,other): """ Return True if the group self is a normal subgroup of other.
e7fb472aa4a510b0d654fccc28ac931eb8639d16 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e7fb472aa4a510b0d654fccc28ac931eb8639d16/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 6130, 12, 2890, 16, 3011, 4672, 3536, 2000, 1053, 309, 326, 1041, 365, 353, 279, 2212, 720, 1655, 434, 1308, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 6130, 12, 2890, 16, 3011, 4672, 3536, 2000, 1053, 309, 326, 1041, 365, 353, 279, 2212, 720, 1655, 434, 1308, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
default=u'')
default=u'', prefix=prefix)
def import_projects(parsed_data): # This could prompt the user, asking: # "Want us to import projects? Say no if you have already # added the projects to the new Pootle DB in the web UI." data = parsed_data.__root__._assignments # Is this really the right way? prefix = 'Pootle.projects.' # Filter out unrelated keys k...
b258c8ea0266b77ff7c47a2a0f3ddc79f40a8dc8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/b258c8ea0266b77ff7c47a2a0f3ddc79f40a8dc8/import_old_prefs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 13582, 12, 10817, 67, 892, 4672, 468, 1220, 3377, 6866, 326, 729, 16, 29288, 30, 468, 315, 59, 970, 584, 358, 1930, 10137, 35, 348, 528, 1158, 309, 1846, 1240, 1818, 468, 309...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 13582, 12, 10817, 67, 892, 4672, 468, 1220, 3377, 6866, 326, 729, 16, 29288, 30, 468, 315, 59, 970, 584, 358, 1930, 10137, 35, 348, 528, 1158, 309, 1846, 1240, 1818, 468, 309...
if inner == 'NULL':
if inner == WrapperNULL and inner != None:
def inner_component(self): inner = icalcomponent_get_inner(self._ref)
78ee4da258147698b68c05e0bedda6c760b85965 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7212/78ee4da258147698b68c05e0bedda6c760b85965/Component.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3443, 67, 4652, 12, 2890, 4672, 225, 3443, 273, 277, 771, 4652, 67, 588, 67, 7872, 12, 2890, 6315, 1734, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3443, 67, 4652, 12, 2890, 4672, 225, 3443, 273, 277, 771, 4652, 67, 588, 67, 7872, 12, 2890, 6315, 1734, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
title(ifo + ' ' + col_name_a.replace("_"," ") + ' vs ' + \ col_name_b.replace("_"," "), size='x-large')
title(ifo + ' ' + col_name_b.replace("_"," ") + ' vs ' + \ col_name_a.replace("_"," "), size='x-large')
def plot_a_v_b(table, col_name_a, col_name_b, plot_type = 'linear', plot_sym = 'kx', plot_label = None, output_name = None, ifo = None, x_min = None, x_max = None): """ function to plot the values of col_name_a vs col_name_b from the table @param table: metaDataTable @param col_name_a: name of first column (x-axis) @p...
68c0928646993ece145e3f86d36ae14db1a646cf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/68c0928646993ece145e3f86d36ae14db1a646cf/viz.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 67, 69, 67, 90, 67, 70, 12, 2121, 16, 645, 67, 529, 67, 69, 16, 645, 67, 529, 67, 70, 16, 3207, 67, 723, 273, 296, 12379, 2187, 3207, 67, 8117, 273, 296, 79, 92, 2187, 3207...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 67, 69, 67, 90, 67, 70, 12, 2121, 16, 645, 67, 529, 67, 69, 16, 645, 67, 529, 67, 70, 16, 3207, 67, 723, 273, 296, 12379, 2187, 3207, 67, 8117, 273, 296, 79, 92, 2187, 3207...
LOG('XWFMailingList', PROBLEM, 'A problem was experienced while getting values: %s' % x)
m = '%s (%s): A problem was experienced while getting ' 'values: %s' % (self.getProperty('title', ''), self.getId(), x) log.error(m)
def getValueFor(self, key): """ getting the maillist and moderatedlist is a special case, working in with the XWFT group framework. """ da = self.zsqlalchemy assert da memberQuery = MemberQuery(self, da)
022876f88e927316bd924ded9b9dc1cbc88f4167 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6274/022876f88e927316bd924ded9b9dc1cbc88f4167/XWFMailingList.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2366, 1290, 12, 2890, 16, 498, 4672, 3536, 8742, 326, 4791, 1098, 471, 681, 19007, 1098, 353, 279, 4582, 648, 16, 5960, 316, 598, 326, 1139, 59, 4464, 1041, 8257, 18, 225, 3536, 5248, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2366, 1290, 12, 2890, 16, 498, 4672, 3536, 8742, 326, 4791, 1098, 471, 681, 19007, 1098, 353, 279, 4582, 648, 16, 5960, 316, 598, 326, 1139, 59, 4464, 1041, 8257, 18, 225, 3536, 5248, ...
"lib/action/swf4compiler.tab.c", "lib/action/swf5compiler.tab.c", "lib/action/actioncompiler.c"
"lib/action/swf4compiler.tab.c", "lib/as3/abc.c", "lib/as3/code.c", "lib/as3/pool.c", "lib/as3/files.c", "lib/as3/opcodes.c", "lib/action/swf5compiler.tab.c", "lib/action/actioncompiler.c"
def load(self): if not os.path.isfile("config.h"): return 0 fi = open("config.h", "rb") for line in fi.readlines(): if line.startswith("// python: lib "): self.libraries = line[15:].split(" ") fi.close() return
05c572c4f4c69f06c70d5c5f391dc303f11e8d7e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5722/05c572c4f4c69f06c70d5c5f391dc303f11e8d7e/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 12, 2890, 4672, 309, 486, 1140, 18, 803, 18, 291, 768, 2932, 1425, 18, 76, 6, 4672, 327, 374, 7314, 273, 1696, 2932, 1425, 18, 76, 3113, 315, 6731, 7923, 364, 980, 316, 7314, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 12, 2890, 4672, 309, 486, 1140, 18, 803, 18, 291, 768, 2932, 1425, 18, 76, 6, 4672, 327, 374, 7314, 273, 1696, 2932, 1425, 18, 76, 3113, 315, 6731, 7923, 364, 980, 316, 7314, 1...
result = t.run()
t.run()
def __call__(self, *args, **kw): #print "first call", args, kw gr = self.gr del gr.switch run, gr.run = gr.run, None t = stackless.tasklet(run) gr.t = t tasklet_to_greenlet[t] = gr t.setup(*args, **kw) result = t.run()
a7eaa4b701d0480db876bd91bb673a00e3e25a3f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10078/a7eaa4b701d0480db876bd91bb673a00e3e25a3f/stacklesss.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 380, 1968, 16, 2826, 9987, 4672, 468, 1188, 315, 3645, 745, 3113, 833, 16, 5323, 3821, 273, 365, 18, 3197, 1464, 3821, 18, 9610, 1086, 16, 3821, 18, 2681...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9987, 4672, 468, 1188, 315, 3645, 745, 3113, 833, 16, 5323, 3821, 273, 365, 18, 3197, 1464, 3821, 18, 9610, 1086, 16, 3821, 18, 2681...
if len(ConstructorList) == 0: AutoGenC.Append(gLibraryString[1], Dict) else: AutoGenC.Append(gLibraryString[4], Dict)
AutoGenC.Append(gLibraryString['PEI'], Dict)
def CreateLibraryConstructorCode(Info, AutoGenC, AutoGenH): if Info.IsLibrary: return # # Library Constructors # ConstructorList = [] for Lib in Info.DependentLibraryList: if len(Lib.ConstructorList) <= 0: continue ConstructorList.extend(Lib.ConstructorList) Dict = {'Type':'Constructor', 'Function':ConstructorList} if...
7d5368ab9cf1b64e0224b4e00dcebea0fa526996 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/7d5368ab9cf1b64e0224b4e00dcebea0fa526996/GenC.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 9313, 6293, 1085, 12, 966, 16, 8064, 7642, 39, 16, 8064, 7642, 44, 4672, 309, 3807, 18, 2520, 9313, 30, 327, 468, 468, 18694, 14291, 1383, 468, 11417, 682, 273, 5378, 364, 10560, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 9313, 6293, 1085, 12, 966, 16, 8064, 7642, 39, 16, 8064, 7642, 44, 4672, 309, 3807, 18, 2520, 9313, 30, 327, 468, 468, 18694, 14291, 1383, 468, 11417, 682, 273, 5378, 364, 10560, ...
return Ptr(PyObject)
return lltype.Ptr(lltype.PyObject)
def get_lltype_of_exception_value(self): if self.translator is not None and self.translator.rtyper is not None: exceptiondata = self.translator.rtyper.getexceptiondata() return exceptiondata.lltype_of_exception_value else: return Ptr(PyObject)
58b03464aa3e578910e58065302a96bf298583cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/58b03464aa3e578910e58065302a96bf298583cd/gctransform.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2906, 723, 67, 792, 67, 4064, 67, 1132, 12, 2890, 4672, 309, 365, 18, 17879, 353, 486, 599, 471, 365, 18, 17879, 18, 3797, 8300, 353, 486, 599, 30, 1520, 892, 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, 336, 67, 2906, 723, 67, 792, 67, 4064, 67, 1132, 12, 2890, 4672, 309, 365, 18, 17879, 353, 486, 599, 471, 365, 18, 17879, 18, 3797, 8300, 353, 486, 599, 30, 1520, 892, 273, 365, 18, ...
def __init__(self, service_url='http://localhost:8080/', service_root='alfresco/service/api'):
def __init__(self, service_url='http://localhost:8080/', service_root='alfresco/service/api', user=None, password=None):
def __init__(self, service_url='http://localhost:8080/', service_root='alfresco/service/api'): self.service_url = service_url self.service_root = service_root self.url = None
8d0171682262bad5b80c787206c898c457577733 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4571/8d0171682262bad5b80c787206c898c457577733/cmis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1156, 67, 718, 2218, 2505, 2207, 13014, 30, 3672, 3672, 19, 2187, 1156, 67, 3085, 2218, 6186, 455, 2894, 19, 3278, 19, 2425, 2187, 729, 33, 7036, 16, 220...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1156, 67, 718, 2218, 2505, 2207, 13014, 30, 3672, 3672, 19, 2187, 1156, 67, 3085, 2218, 6186, 455, 2894, 19, 3278, 19, 2425, 2187, 729, 33, 7036, 16, 220...
@contextmanager
@contextfactory
def contextfactory(func): """@contextfactory decorator. Typical usage: @contextmanager def some_generator(<arguments>): <setup> try: yield <value> finally: <cleanup> This makes this: with some_generator(<arguments>) as <variable>: <body> equivalent to this: <setup> try: <variable> = <value> <body> finally: <clean...
1e0139753361f7fb820e63950b04203dc02e803c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1e0139753361f7fb820e63950b04203dc02e803c/contextlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 819, 6848, 12, 644, 4672, 3536, 36, 2472, 6848, 7367, 18, 225, 16973, 1706, 4084, 30, 225, 632, 2472, 6848, 1652, 2690, 67, 8812, 12, 32, 7099, 34, 4672, 411, 8401, 34, 775, 30, 2824, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 819, 6848, 12, 644, 4672, 3536, 36, 2472, 6848, 7367, 18, 225, 16973, 1706, 4084, 30, 225, 632, 2472, 6848, 1652, 2690, 67, 8812, 12, 32, 7099, 34, 4672, 411, 8401, 34, 775, 30, 2824, ...
reprint_line(*self.highlighted_paren)
if self.highlighted_paren[0] < self.iy: reprint_line(*self.highlighted_paren)
def reprint_line(lineno, s, to_replace=[]): if lineno < 0: return t = list(PythonLexer().get_tokens(s)) for (i, token) in to_replace: t[i] = token o = format(t, BPythonFormatter(OPTS.color_scheme)) self.scr.move(lineno, 4) map(self.echo, o.split('\x04'))
0a97d948576d16fbeba8bd11510d4201c3dc0980 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6932/0a97d948576d16fbeba8bd11510d4201c3dc0980/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 1188, 67, 1369, 12, 17782, 16, 272, 16, 358, 67, 2079, 33, 8526, 4672, 309, 7586, 411, 374, 30, 327, 268, 273, 666, 12, 15774, 13356, 7675, 588, 67, 7860, 12, 87, 3719, 364, 261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 1188, 67, 1369, 12, 17782, 16, 272, 16, 358, 67, 2079, 33, 8526, 4672, 309, 7586, 411, 374, 30, 327, 268, 273, 666, 12, 15774, 13356, 7675, 588, 67, 7860, 12, 87, 3719, 364, 261...
print >> stream_to_write, tracestack_pretty
print >> stream_to_write, tracestack_pretty
def register_exception(force_stack=False, stream='error', req=None, prefix='', suffix=''): """ log error exception to invenio.err and warning exception to invenio.log errors will be logged with client information (if req is given) @param force_stack: when True stack is always printed, while when False, stack is printe...
13ef718111c611660b8cb9b870d705447981ce16 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/13ef718111c611660b8cb9b870d705447981ce16/errorlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 67, 4064, 12, 5734, 67, 3772, 33, 8381, 16, 1407, 2218, 1636, 2187, 1111, 33, 7036, 16, 1633, 2218, 2187, 3758, 2218, 11, 4672, 3536, 613, 555, 1520, 358, 2198, 275, 1594, 18, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 67, 4064, 12, 5734, 67, 3772, 33, 8381, 16, 1407, 2218, 1636, 2187, 1111, 33, 7036, 16, 1633, 2218, 2187, 3758, 2218, 11, 4672, 3536, 613, 555, 1520, 358, 2198, 275, 1594, 18, 37...
'--profileDir=%s' % logDir,
'--profileDir=%s' % profileDir,
def doFunctionalTests(releaseMode, workingDir, log): chandlerDir = os.path.join(workingDir, 'chandler') logDir = os.path.join(chandlerDir, 'test_profile') chandlerLog = os.path.join(logDir, 'chandler.log') FuncTestLog = os.path.join(logDir, 'FunctionalTestSuite.log') if buildenv['os'] == 'win': runChan...
d48588f07295d6f856e73206d7433a5a2e12a046 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/d48588f07295d6f856e73206d7433a5a2e12a046/newchandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 2083, 287, 14650, 12, 9340, 2309, 16, 5960, 1621, 16, 613, 4672, 462, 464, 749, 1621, 273, 1140, 18, 803, 18, 5701, 12, 20478, 1621, 16, 225, 296, 343, 464, 749, 6134, 31101, 1377...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2083, 287, 14650, 12, 9340, 2309, 16, 5960, 1621, 16, 613, 4672, 462, 464, 749, 1621, 273, 1140, 18, 803, 18, 5701, 12, 20478, 1621, 16, 225, 296, 343, 464, 749, 6134, 31101, 1377...
map( makeMinuteTimeDelta, winTZI[:3] )
map( makeMinuteTimeDelta, components[:3] )
def _LoadInfoFromKey( self, key ): """Loads the information from an opened time zone registry key into relevant fields of this TZI object""" self.displayName = _winreg.QueryValueEx( key, "Display" )[0] self.standardName = _winreg.QueryValueEx( key, "Std" )[0] self.daylightName = _winreg.QueryValueEx( key, "Dlt" )[0] # ...
f065de2359741f6332289ad3f60b2977f2376ee9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/677/f065de2359741f6332289ad3f60b2977f2376ee9/win32timezone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2563, 966, 1265, 653, 12, 365, 16, 498, 262, 30, 3536, 7968, 326, 1779, 628, 392, 10191, 813, 4157, 4023, 498, 1368, 9368, 1466, 434, 333, 399, 62, 45, 733, 8395, 365, 18, 5417, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2563, 966, 1265, 653, 12, 365, 16, 498, 262, 30, 3536, 7968, 326, 1779, 628, 392, 10191, 813, 4157, 4023, 498, 1368, 9368, 1466, 434, 333, 399, 62, 45, 733, 8395, 365, 18, 5417, ...
], CONTEXT)
], 0, None, None, CONTEXT)
def test0020integer(self): ''' Test Integer. ''' integer1_id = self.integer.create({ 'integer': 1, }, CONTEXT) self.assert_(integer1_id)
52062c763bf1737b3f2071e48338f60845edc54d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/52062c763bf1737b3f2071e48338f60845edc54d/test_tryton.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 713, 3462, 7745, 12, 2890, 4672, 9163, 7766, 2144, 18, 9163, 3571, 21, 67, 350, 273, 365, 18, 7745, 18, 2640, 12590, 296, 7745, 4278, 404, 16, 19879, 13862, 13, 365, 18, 11231, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 713, 3462, 7745, 12, 2890, 4672, 9163, 7766, 2144, 18, 9163, 3571, 21, 67, 350, 273, 365, 18, 7745, 18, 2640, 12590, 296, 7745, 4278, 404, 16, 19879, 13862, 13, 365, 18, 11231, 6...
. Date values are printed in the full date format in the local time zone, and accepted in the full format or any of the partial formats explained below.
. Date values are printed in the full date format in the local time zone, and accepted in the full format or any of the partial formats explained below.
def help_all(self): print _('''
eb552e06b9df2d7c4092851c8b0de350e72c3daf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/eb552e06b9df2d7c4092851c8b0de350e72c3daf/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2809, 67, 454, 12, 2890, 4672, 1172, 389, 2668, 6309, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2809, 67, 454, 12, 2890, 4672, 1172, 389, 2668, 6309, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
opt.cpr = self.cpr.value()
if hasattr(self,'cpr'): opt.cpr = self.cpr.value() else: opt.cpr = 0
def getResult(self): self.exec_() if self.result() == QtGui.QDialog.Accepted: opt = odict.ODict() opt.fn = str(self.selectedFiles()[0]) opt.leg = self.leg.isChecked() opt.cpr = self.cpr.value() return opt else: return None
19a90c9721769b84a0b62859b471c08450d71111 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2499/19a90c9721769b84a0b62859b471c08450d71111/widgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8601, 12, 2890, 4672, 365, 18, 4177, 67, 1435, 309, 365, 18, 2088, 1435, 422, 23425, 18, 53, 6353, 18, 18047, 30, 2153, 273, 320, 1576, 18, 1212, 933, 1435, 2153, 18, 4293, 273, 609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8601, 12, 2890, 4672, 365, 18, 4177, 67, 1435, 309, 365, 18, 2088, 1435, 422, 23425, 18, 53, 6353, 18, 18047, 30, 2153, 273, 320, 1576, 18, 1212, 933, 1435, 2153, 18, 4293, 273, 609, ...
ep.bmAttributes & 0x03,
(ep.bmAttributes or 0) & 0x03,
def detector(context): # this is required for all 'Decoder' modules dev = context.device ep = context.endpoint ifc = context.interface devi = context.devInstance
5e20ff22a64e69f7f29bd3fa3e70727c7070fc4f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11735/5e20ff22a64e69f7f29bd3fa3e70727c7070fc4f/WirelessUsb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13826, 12, 2472, 4672, 468, 333, 353, 1931, 364, 777, 296, 7975, 11, 4381, 4461, 273, 819, 18, 5964, 5529, 273, 819, 18, 8003, 4010, 273, 819, 18, 5831, 27492, 273, 819, 18, 5206, 1442...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13826, 12, 2472, 4672, 468, 333, 353, 1931, 364, 777, 296, 7975, 11, 4381, 4461, 273, 819, 18, 5964, 5529, 273, 819, 18, 8003, 4010, 273, 819, 18, 5831, 27492, 273, 819, 18, 5206, 1442...
""" Handles one command line during command list definition. """
"""Handles one command line during command list definition."""
def handle_command_def(self,line): """ Handles one command line during command list definition. """ cmd, arg, line = self.parseline(line) if cmd == 'silent': self.commands_silent[self.commands_bnum] = True return # continue to handle other cmd def in the cmd list elif cmd == 'end': self.cmdqueue = [] return 1 # end of ...
9865bf577f728a50cf95617fbffe20d77d686394 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/9865bf577f728a50cf95617fbffe20d77d686394/pdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 3076, 67, 536, 12, 2890, 16, 1369, 4672, 3536, 8788, 1245, 1296, 980, 4982, 1296, 666, 2379, 12123, 1797, 16, 1501, 16, 980, 273, 365, 18, 1065, 1786, 558, 12, 1369, 13, 309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 3076, 67, 536, 12, 2890, 16, 1369, 4672, 3536, 8788, 1245, 1296, 980, 4982, 1296, 666, 2379, 12123, 1797, 16, 1501, 16, 980, 273, 365, 18, 1065, 1786, 558, 12, 1369, 13, 309,...
other = self._convert_other(other)
other = _convert_other(other)
def __rfloordiv__(self, other, context=None): """Swaps self/other and returns __floordiv__.""" other = self._convert_other(other) return other.__floordiv__(self, context=context)
636a6b100fe6083388bc5315758326078abe65b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/636a6b100fe6083388bc5315758326078abe65b4/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5809, 383, 517, 427, 972, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 6050, 6679, 365, 19, 3011, 471, 1135, 1001, 74, 383, 517, 427, 972, 12123, 1308, 273, 389, 6283, 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, 1001, 5809, 383, 517, 427, 972, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 6050, 6679, 365, 19, 3011, 471, 1135, 1001, 74, 383, 517, 427, 972, 12123, 1308, 273, 389, 6283, 67, ...
if xlibhelper.XInitThreads() == 0: print "WARNING: XInitThreads() failed!"
def Run(self): locale.setlocale(locale.LC_ALL, '') gettext.bindtextdomain("democracyplayer", resource.path("../../locale")) gettext.textdomain("democracyplayer") gettext.bind_textdomain_codeset("democracyplayer","UTF-8") gtk.glade.bindtextdomain("democracyplayer", resource.path("../../locale")) gtk.glade.textdomain("de...
5e656917e7afde189c0cf2ca1e6a15abab998b0f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/5e656917e7afde189c0cf2ca1e6a15abab998b0f/Application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1939, 12, 2890, 4672, 2573, 18, 542, 6339, 12, 6339, 18, 13394, 67, 4685, 16, 28707, 24972, 18, 4376, 955, 4308, 2932, 19117, 504, 354, 2431, 14872, 3113, 1058, 18, 803, 2932, 16644, 633...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 4672, 2573, 18, 542, 6339, 12, 6339, 18, 13394, 67, 4685, 16, 28707, 24972, 18, 4376, 955, 4308, 2932, 19117, 504, 354, 2431, 14872, 3113, 1058, 18, 803, 2932, 16644, 633...
def __init__(self):
def __init__(self, verbose=0): self.verbose = verbose
def __init__(self): self.reset()
7558e8c5f02de39769a30a66c4e60e11204da924 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/7558e8c5f02de39769a30a66c4e60e11204da924/sgmllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3988, 33, 20, 4672, 365, 18, 11369, 273, 3988, 365, 18, 6208, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3988, 33, 20, 4672, 365, 18, 11369, 273, 3988, 365, 18, 6208, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
drawhex((x * hexsize * 0.75 + 0.25, y * hexsize * math.sqrt(3)/2), hexsize * 0.98)
drawhex((x * hexsize * 0.75 + 0.25 * hexsize, y * hexsize * math.sqrt(3)/2), hexsize * 0.98)
def drawhexgrid(gridsize, hexsize): for x in xrange(gridsize[0]): for y in xrange(gridsize[1]): if x % 2 == 0: drawhex((x * hexsize * 0.75 + 0.25, y * hexsize * math.sqrt(3)/2), hexsize * 0.98) else: drawhex((x * hexsize * 0.75 + 0.25, y * hexsize * math.sqrt(3)/2 + math.sqrt(3)/4), hexsize * 0.98)
938bb72a8e3a628e45782480db1a7e296c82abd4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4455/938bb72a8e3a628e45782480db1a7e296c82abd4/world.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 7118, 5222, 12, 5222, 1467, 16, 3827, 1467, 4672, 364, 619, 316, 12314, 12, 5222, 1467, 63, 20, 65, 4672, 364, 677, 316, 12314, 12, 5222, 1467, 63, 21, 65, 4672, 309, 619, 738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 7118, 5222, 12, 5222, 1467, 16, 3827, 1467, 4672, 364, 619, 316, 12314, 12, 5222, 1467, 63, 20, 65, 4672, 364, 677, 316, 12314, 12, 5222, 1467, 63, 21, 65, 4672, 309, 619, 738, ...
node = children[j]
node = parent.childNodes[j]
def build_para(doc, parent, start, i): children = parent.childNodes # collect all children until \n\n+ is found in a text node or a # PARA_LEVEL_ELEMENT is found. after = start + 1 have_last = 0 BREAK_ELEMENTS = PARA_LEVEL_ELEMENTS + FIXUP_PARA_ELEMENTS for j in range(start, i): after = j + 1 child = children[j] nodeTy...
6fd3b456df1736e218c2900c3479631306a4f4d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/6fd3b456df1736e218c2900c3479631306a4f4d7/docfixer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 25072, 12, 2434, 16, 982, 16, 787, 16, 277, 4672, 2325, 273, 982, 18, 3624, 3205, 468, 3274, 777, 2325, 3180, 521, 82, 64, 82, 15, 353, 1392, 316, 279, 977, 756, 578, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 25072, 12, 2434, 16, 982, 16, 787, 16, 277, 4672, 2325, 273, 982, 18, 3624, 3205, 468, 3274, 777, 2325, 3180, 521, 82, 64, 82, 15, 353, 1392, 316, 279, 977, 756, 578, 279, ...
self.save(sage.misc.misc.SAGE_TMP + '/test.png',
self.save(DOCTEST_MODE_FILE,
sage: def maple_leaf(t):
42a4c43907b759c1f4020b051fc23506a5fcadd7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/42a4c43907b759c1f4020b051fc23506a5fcadd7/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 272, 410, 30, 1652, 852, 298, 67, 12070, 12, 88, 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, ...
[ 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, 272, 410, 30, 1652, 852, 298, 67, 12070, 12, 88, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
idprof = sock.execute(dbname, uid, 'admin', 'ir.module.module', 'search', [('name','=',prof)])
idprof = sock.execute(dbname, uid, 'admin', 'ir.module.module', 'search', [('name','=',prof)]) if l10n:
def wizard_run(wizname, fieldvalues={}, endstate='end'): wiz_id = sock4.create(dbname, uid, 'admin', wizname) state = 'init' datas = {'form':{}} while state!=endstate: res = sock4.execute(dbname, uid, 'admin', wiz_id, datas, state, {}) if 'datas' in res: datas['form'].update( res['datas'] ) if res['type']=='form': for ...
2915d47a71d551c55ab089f64cfffefc0393f5f3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/2915d47a71d551c55ab089f64cfffefc0393f5f3/check_profile_l10n_all.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24204, 67, 2681, 12, 91, 452, 529, 16, 652, 2372, 28793, 679, 2019, 2218, 409, 11, 4672, 341, 452, 67, 350, 273, 7313, 24, 18, 2640, 12, 20979, 16, 4555, 16, 296, 3666, 2187, 341, 45...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24204, 67, 2681, 12, 91, 452, 529, 16, 652, 2372, 28793, 679, 2019, 2218, 409, 11, 4672, 341, 452, 67, 350, 273, 7313, 24, 18, 2640, 12, 20979, 16, 4555, 16, 296, 3666, 2187, 341, 45...
elif format in ('doc', 'html') :
elif format in ('doc', 'html') :
def text_export(request, key, format, download, whichcomments, withcolor, adminkey=None): text, admin = get_text_and_admin(key, adminkey) text_version = text.get_latest_version() original_content = text_version.content original_format = text_version.format # BD : html or markdown for now ... download_response = downl...
35fc497d00034ab9c80d655ed7d4df608c084d1b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5622/35fc497d00034ab9c80d655ed7d4df608c084d1b/texts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 977, 67, 6530, 12, 2293, 16, 498, 16, 740, 16, 4224, 16, 1492, 9231, 16, 598, 3266, 16, 31003, 754, 402, 33, 7036, 4672, 977, 16, 3981, 273, 336, 67, 955, 67, 464, 67, 3666, 12, 85...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 977, 67, 6530, 12, 2293, 16, 498, 16, 740, 16, 4224, 16, 1492, 9231, 16, 598, 3266, 16, 31003, 754, 402, 33, 7036, 4672, 977, 16, 3981, 273, 336, 67, 955, 67, 464, 67, 3666, 12, 85...
self.N = X.shape[1]
self.N = self.X.shape[1]
def __init__(self, X, X_dims, Y, Y_dims, qe_shuffle=True): """Check and assign inputs.
ece52ef5d0cdfdfa1a8ada64b3be3c35e37203cc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11824/ece52ef5d0cdfdfa1a8ada64b3be3c35e37203cc/pyentropy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1139, 16, 1139, 67, 8550, 16, 1624, 16, 1624, 67, 8550, 16, 1043, 73, 67, 31980, 33, 5510, 4672, 3536, 1564, 471, 2683, 4540, 18, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1139, 16, 1139, 67, 8550, 16, 1624, 16, 1624, 67, 8550, 16, 1043, 73, 67, 31980, 33, 5510, 4672, 3536, 1564, 471, 2683, 4540, 18, 2, -100, -100, -100, ...
"""Init all the colours in curses and bang them into a dictionary""" for i in range( 63 ): if i > 7: j = i / 8 else: j = -1 curses.init_pair( i+1, i % 8, j ) c = {} c["k"] = 0 c["r"] = 1 c["g"] = 2 c["y"] = 3 c["b"] = 4 c["m"] = 5 c["c"] = 6 c["w"] = 7 c["d"] = -1 return c
"""Init all the colours in curses and bang them into a dictionary""" for i in range( 63 ): if i > 7: j = i / 8 else: j = -1 curses.init_pair( i+1, i % 8, j ) c = {} c["k"] = 0 c["r"] = 1 c["g"] = 2 c["y"] = 3 c["b"] = 4 c["m"] = 5 c["c"] = 6 c["w"] = 7 c["d"] = -1 return c
def make_colours(): """Init all the colours in curses and bang them into a dictionary""" for i in range( 63 ): if i > 7: j = i / 8 else: j = -1 curses.init_pair( i+1, i % 8, j ) c = {} # blacK, Red, Green, Yellow, Blue, Magenta, Cyan, White, Default: c["k"] = 0 c["r"] = 1 c["g"] = 2 c["y"] = 3 c["b"] = 4 c["m"] = 5 c...
62b5311573ce50804121e2c3e6ff3852a1e8c517 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6932/62b5311573ce50804121e2c3e6ff3852a1e8c517/bpython.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 1293, 4390, 13332, 3536, 2570, 777, 326, 645, 4390, 316, 30436, 471, 324, 539, 2182, 1368, 279, 3880, 8395, 225, 364, 277, 316, 1048, 12, 13746, 262, 30, 309, 277, 405, 2371, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 1293, 4390, 13332, 3536, 2570, 777, 326, 645, 4390, 316, 30436, 471, 324, 539, 2182, 1368, 279, 3880, 8395, 225, 364, 277, 316, 1048, 12, 13746, 262, 30, 309, 277, 405, 2371, ...
w = IECore.Writer.create(img, testoutfile) self.assertEqual(type(w), IECore.EXRImageWriter)
def testHalf(self):
b7e9eab2bccc7dcf3443c88954ad10ded9c1b2a0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9042/b7e9eab2bccc7dcf3443c88954ad10ded9c1b2a0/EXRReader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 16168, 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, ...
[ 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 16168, 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, ...
This is the message given by the server in responce to the
This is the message given by the server in response to the
def quotedata(data): """Quote data for email. Double leading '.', and change Unix newline '\n', or Mac '\r' into Internet CRLF end-of-line. """ return re.sub(r'(?m)^\.', '..', re.sub(r'(?:\r\n|\n|\r(?!\n))', CRLF, data))
38138a69a9ce81026584c5df54a7d656104103d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/38138a69a9ce81026584c5df54a7d656104103d9/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9298, 396, 12, 892, 4672, 3536, 10257, 501, 364, 2699, 18, 225, 3698, 7676, 2611, 16, 471, 2549, 9480, 9472, 2337, 82, 2187, 578, 13217, 2337, 86, 11, 1368, 21352, 21791, 679, 17, 792, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9298, 396, 12, 892, 4672, 3536, 10257, 501, 364, 2699, 18, 225, 3698, 7676, 2611, 16, 471, 2549, 9480, 9472, 2337, 82, 2187, 578, 13217, 2337, 86, 11, 1368, 21352, 21791, 679, 17, 792, ...
if v1 == v2: pass
if 0: if v1 == v2: pass else: res[key] = (v1,v2)
def diffdicts(d1, d2, dflt = None, whatret = 0): ###e dflt is problematic since we don't know it here and it might vary by obj or class """Given two dicts, return a new one with entries at keys where their values differ (according to ==), treating missing values as dflt (which is None if not provided, but many callers ...
aa626e1f7e2357708cd4eae199a8f80c39356a2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/aa626e1f7e2357708cd4eae199a8f80c39356a2d/state_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3122, 16287, 12, 72, 21, 16, 302, 22, 16, 302, 31864, 273, 599, 16, 4121, 1349, 273, 374, 4672, 11849, 73, 302, 31864, 353, 6199, 2126, 3241, 732, 2727, 1404, 5055, 518, 2674, 471, 518...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3122, 16287, 12, 72, 21, 16, 302, 22, 16, 302, 31864, 273, 599, 16, 4121, 1349, 273, 374, 4672, 11849, 73, 302, 31864, 353, 6199, 2126, 3241, 732, 2727, 1404, 5055, 518, 2674, 471, 518...
def menu_from_list(alist, menuitem=None): menu = gtk.Menu() def callback(action, f): f() for item, next in zip(alist, alist[1:] + [None]): if item: if len(item) == 2: name, function = item
def menu_from_list(alist): last = None for item in alist: if item != last: if item: if len(item) == 2: name, function = item menuitem = gtk.ImageMenuItem(name) elif len(item) == 3: name, stock_id, function = item menuitem = gtk.ImageMenuItem(stock_id) if isinstance(function, list): submenu = gtk.Menu() for subitem ...
def menu_from_list(alist, menuitem=None): menu = gtk.Menu() def callback(action, f): f() for item, next in zip(alist, alist[1:] + [None]): if item: if len(item) == 2: name, function = item menuitem = gtk.ImageMenuItem(name) elif len(item) == 3: name, stock_id, function = item menuitem = gtk.ImageMenuItem(stock_id)...
dc48d82f65e7144c5c80ba3d6e855bd294ed3607 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10693/dc48d82f65e7144c5c80ba3d6e855bd294ed3607/widgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3824, 67, 2080, 67, 1098, 12, 287, 376, 4672, 1142, 273, 599, 364, 761, 316, 524, 376, 30, 309, 761, 480, 1142, 30, 309, 761, 30, 309, 562, 12, 1726, 13, 422, 576, 30, 508, 16, 445...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3824, 67, 2080, 67, 1098, 12, 287, 376, 4672, 1142, 273, 599, 364, 761, 316, 524, 376, 30, 309, 761, 480, 1142, 30, 309, 761, 30, 309, 562, 12, 1726, 13, 422, 576, 30, 508, 16, 445...
u = father
u = parent s = "".join([parent, bit])
def _generate_edges(self, tree, father='', id=''): if father=='': u = 'root' else: u = father try: return self._generate_edges(tree[0], father=father+id, id='0') + \ self._generate_edges(tree[1], father=father+id, id='1') + \ ([(u, father+id)] if (father+id) != '' else [])
d36ada9fa8d1207afa7f17ab966193d7d807e471 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/d36ada9fa8d1207afa7f17ab966193d7d807e471/huffman.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7163, 67, 8746, 12, 2890, 16, 2151, 16, 284, 4806, 2218, 2187, 612, 2218, 11, 4672, 309, 284, 4806, 18920, 4278, 582, 273, 296, 3085, 11, 469, 30, 582, 273, 982, 272, 273, 1408, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7163, 67, 8746, 12, 2890, 16, 2151, 16, 284, 4806, 2218, 2187, 612, 2218, 11, 4672, 309, 284, 4806, 18920, 4278, 582, 273, 296, 3085, 11, 469, 30, 582, 273, 982, 272, 273, 1408, ...
def write(self, module_name=''):
def write(self, module_name=False):
def write(self, module_name=''): s = '' s += self._write_header() s += self._write_depends() s += self._write_reports() s += self._write_menus() s += self._write_views() s += self._write_objects() s += self._write_relationship_graph(module_name)
72e855032a1cc2ea35e9b54a972beadc7906fc55 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/72e855032a1cc2ea35e9b54a972beadc7906fc55/wizard_tech_guide_rst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1605, 67, 529, 33, 8381, 4672, 272, 273, 875, 272, 1011, 365, 6315, 2626, 67, 3374, 1435, 272, 1011, 365, 6315, 2626, 67, 27360, 1435, 272, 1011, 365, 6315, 2626, 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, 1045, 12, 2890, 16, 1605, 67, 529, 33, 8381, 4672, 272, 273, 875, 272, 1011, 365, 6315, 2626, 67, 3374, 1435, 272, 1011, 365, 6315, 2626, 67, 27360, 1435, 272, 1011, 365, 6315, 2626, 6...
print "PASS: \"%s\", (%06o,%06o) == (%06o,%06o)" % (value, testval.value[0], testval.value[1], data[value][0], data[value][1])
def test(numtype, size, data): passed = 0 failed = 0 text = "" if size == 1: text += "SP " if numtype == Number.OCTAL: text += "Octal" elif numtype == Number.DECIMAL: text += "Decimal" elif numtype == Number.FLOAT: text += "Float" else: text += "DP " if numtype == Number.OCTAL: text += "Octal" elif numtype == Number.DE...
bf56514f65402998750eab30f37322a633ce0505 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/bf56514f65402998750eab30f37322a633ce0505/number.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12, 2107, 723, 16, 963, 16, 501, 4672, 2275, 273, 374, 2535, 273, 374, 977, 273, 1408, 309, 963, 422, 404, 30, 977, 1011, 315, 3118, 315, 309, 818, 723, 422, 3588, 18, 51, 1268...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2107, 723, 16, 963, 16, 501, 4672, 2275, 273, 374, 2535, 273, 374, 977, 273, 1408, 309, 963, 422, 404, 30, 977, 1011, 315, 3118, 315, 309, 818, 723, 422, 3588, 18, 51, 1268...
else:
elif not complex:
def optimize_simpleloop(self, node): if not isinstance(node, ComplexNode): return node
1bfcaa799eb3cecab58a7303a8be0166604a785e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2040/1bfcaa799eb3cecab58a7303a8be0166604a785e/esotope-bfc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10979, 67, 9812, 412, 24214, 556, 12, 2890, 16, 756, 4672, 309, 486, 1549, 12, 2159, 16, 16060, 907, 4672, 327, 756, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10979, 67, 9812, 412, 24214, 556, 12, 2890, 16, 756, 4672, 309, 486, 1549, 12, 2159, 16, 16060, 907, 4672, 327, 756, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pManager.manager.DebugStr('cOwlManager '+ __version__ +': Received answer for non-existant request. Throwing away..')
pManager.manager.DebugStr('cOwlManager '+ __version__ +': Received answer for non-existant request. Throwing away..', 3)
def Answer(self, cNetPackage): """Send an Answer to it's destination owl
d6524ab4f406c1563beee1f9b91eaca1c0e08db5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2853/d6524ab4f406c1563beee1f9b91eaca1c0e08db5/cOwlManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21019, 12, 2890, 16, 276, 7308, 2261, 4672, 3536, 3826, 392, 21019, 358, 518, 1807, 2929, 2523, 80, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21019, 12, 2890, 16, 276, 7308, 2261, 4672, 3536, 3826, 392, 21019, 358, 518, 1807, 2929, 2523, 80, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return http.Response(stream=template('login.html', **template_dict)) else: return http.Response(stream = message("Please enable cookies and try again."))
return HTMLResponse(stream=template('login.html', **template_dict)) else: return HTMLResponse(stream = message("Please enable cookies and try again."))
def render(self, ctx): # Since public access is allowed, which lists usernames in the published # worksheets and ratings, this gives no new information way. # If published pages were disabled, then this should be disabled too. if self.problem == 'username': template_dict = {'accounts': notebook.get_accounts(), 'default...
2c1a5997a8830efcfb475993e5f1efb45ed121ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2c1a5997a8830efcfb475993e5f1efb45ed121ea/twist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 4672, 468, 7897, 1071, 2006, 353, 2935, 16, 1492, 6035, 27675, 316, 326, 9487, 468, 6330, 10245, 471, 15183, 899, 16, 333, 14758, 1158, 394, 1779, 4031, 18, 468...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 4672, 468, 7897, 1071, 2006, 353, 2935, 16, 1492, 6035, 27675, 316, 326, 9487, 468, 6330, 10245, 471, 15183, 899, 16, 333, 14758, 1158, 394, 1779, 4031, 18, 468...
The attributes are: ea - string ea type - string type (ASCSTR_xxxxx) str() - returns the actual string
def GetInputFileMD5(): """ Return the MD5 hash of the input binary file @return: MD5 string or None on error """ return idc.GetInputMD5()
388bab7d9c5e054bae2bffa62a30746c15934d0b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6984/388bab7d9c5e054bae2bffa62a30746c15934d0b/idautils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1210, 812, 6188, 25, 13332, 3536, 2000, 326, 10852, 25, 1651, 434, 326, 810, 3112, 585, 225, 632, 2463, 30, 10852, 25, 533, 578, 599, 603, 555, 3536, 327, 612, 71, 18, 967, 1210, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1210, 812, 6188, 25, 13332, 3536, 2000, 326, 10852, 25, 1651, 434, 326, 810, 3112, 585, 225, 632, 2463, 30, 10852, 25, 533, 578, 599, 603, 555, 3536, 327, 612, 71, 18, 967, 1210, ...
fields_translate[field_name] = field elif field_name in self._inherit_fields and \ self._inherit_fields[field_name][2].translate:
def convert_data(fields, data): data = data.copy() data_o2m = {} for field_name in fields: ftype = fields[field_name]['type']
3c5da3114de17989eee9b7c272132216e2764e97 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/3c5da3114de17989eee9b7c272132216e2764e97/modelstorage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 892, 12, 2821, 16, 501, 4672, 501, 273, 501, 18, 3530, 1435, 501, 67, 83, 22, 81, 273, 2618, 364, 652, 67, 529, 316, 1466, 30, 21219, 273, 1466, 63, 1518, 67, 529, 23962, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1765, 67, 892, 12, 2821, 16, 501, 4672, 501, 273, 501, 18, 3530, 1435, 501, 67, 83, 22, 81, 273, 2618, 364, 652, 67, 529, 316, 1466, 30, 21219, 273, 1466, 63, 1518, 67, 529, 23962, ...
curIndirection = self._indirections[i] if i < len(self._indirections)-1: nextIndirection = self._indirections[i+1]
curIndirection = indirections[i] if i < len(indirections)-1: nextIndirection = indirections[i+1]
def getNameGen(self): str = '' prevIndirection = None curIndirection = None nextIndirection = None # make sure the indirections don't go away on us for indirection in self._indirections: indirection.acquire() for i in xrange(len(self._indirections)): yield None if i > 0: prevIndirection = self._indirections[i-1] else: ...
69e4f8ce89f4ff77b26910a79c23f429f0003e58 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/69e4f8ce89f4ff77b26910a79c23f429f0003e58/ContainerLeakDetector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1723, 7642, 12, 2890, 4672, 609, 273, 875, 2807, 3866, 2769, 273, 599, 662, 3866, 2769, 273, 599, 1024, 3866, 2769, 273, 599, 468, 1221, 3071, 326, 1547, 2769, 87, 2727, 1404, 1960, 1080...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1723, 7642, 12, 2890, 4672, 609, 273, 875, 2807, 3866, 2769, 273, 599, 662, 3866, 2769, 273, 599, 1024, 3866, 2769, 273, 599, 468, 1221, 3071, 326, 1547, 2769, 87, 2727, 1404, 1960, 1080...
return self._slides[self._currentIndex].GetTitle()
return self._readySlides[self._currentIndex].GetTitle()
def CurrentTitle(self): """ Returns the title of the current slide in the show. """ if hasattr(self, "_currentIndex"): return self._slides[self._currentIndex].GetTitle() return None
268e1d2146408b3aba80a895daa9dff1002d5c53 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4583/268e1d2146408b3aba80a895daa9dff1002d5c53/slideshowmodel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6562, 4247, 12, 2890, 4672, 3536, 2860, 326, 2077, 434, 326, 783, 12701, 316, 326, 2405, 18, 3536, 309, 3859, 12, 2890, 16, 4192, 2972, 1016, 6, 4672, 327, 365, 6315, 1672, 3738, 4369, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6562, 4247, 12, 2890, 4672, 3536, 2860, 326, 2077, 434, 326, 783, 12701, 316, 326, 2405, 18, 3536, 309, 3859, 12, 2890, 16, 4192, 2972, 1016, 6, 4672, 327, 365, 6315, 1672, 3738, 4369, ...
3 = cannot write to JOKOSHER_DATA_DIR/instruments or JOKOSHER_DATA_DIR/instruments/images.
3 = cannot write to JOKOSHER_DATA_HOME/instruments or JOKOSHER_DATA_HOME/instruments/images.
def create_new_instrument_type(self, defaultName, typeString, imagePath): """ Creates a new Instrument type in the user's JOKOSHER_DATA_DIR/instruments folder. It will then be automatically loaded on startup. Parameters: defaultName -- the en_GB name of the Instrument. typeString -- a unique type string to this partic...
cd5b4301561df72657e6092dcc26c2d5b22a1a61 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10033/cd5b4301561df72657e6092dcc26c2d5b22a1a61/Extension.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2704, 67, 22818, 67, 723, 12, 2890, 16, 805, 461, 16, 618, 780, 16, 29181, 4672, 3536, 10210, 279, 394, 25565, 618, 316, 326, 729, 1807, 804, 3141, 51, 2664, 654, 67, 4883, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2704, 67, 22818, 67, 723, 12, 2890, 16, 805, 461, 16, 618, 780, 16, 29181, 4672, 3536, 10210, 279, 394, 25565, 618, 316, 326, 729, 1807, 804, 3141, 51, 2664, 654, 67, 4883, ...
data = '''\
data = b'''\
def test_specified_attributes(self): for x, y in self.set_get_pairs: self.parser.specified_attributes = x self.assertEquals(self.parser.specified_attributes, y)
7f37c666d735ff934d9f7837fe205cc955f11870 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/7f37c666d735ff934d9f7837fe205cc955f11870/test_pyexpat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 13827, 67, 4350, 12, 2890, 4672, 364, 619, 16, 677, 316, 365, 18, 542, 67, 588, 67, 11545, 30, 365, 18, 4288, 18, 13827, 67, 4350, 273, 619, 365, 18, 11231, 8867, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 13827, 67, 4350, 12, 2890, 4672, 364, 619, 16, 677, 316, 365, 18, 542, 67, 588, 67, 11545, 30, 365, 18, 4288, 18, 13827, 67, 4350, 273, 619, 365, 18, 11231, 8867, 12, 2890,...
return self.implement_guard(guard_token, cond)
self.implement_guard(guard_token, cond)
def genop_cmp_guard_float(self, op, guard_op, guard_token, arglocs, result_loc): guard_opnum = guard_op.getopnum() self.mc.UCOMISD(arglocs[0], arglocs[1]) # 16 is enough space for the rel8 jumps below and the rel32 # jump in implement_guard self.mc.ensure_bytes_available(16 + guard_token.recovery_stub_size()) if guard_...
180c4a94a92fb4db4243be00b648118ff5f29d48 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/180c4a94a92fb4db4243be00b648118ff5f29d48/assembler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 556, 67, 9625, 67, 24594, 67, 5659, 12, 2890, 16, 1061, 16, 11026, 67, 556, 16, 11026, 67, 2316, 16, 1501, 24323, 16, 563, 67, 1829, 4672, 11026, 67, 556, 2107, 273, 11026, 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, 3157, 556, 67, 9625, 67, 24594, 67, 5659, 12, 2890, 16, 1061, 16, 11026, 67, 556, 16, 11026, 67, 2316, 16, 1501, 24323, 16, 563, 67, 1829, 4672, 11026, 67, 556, 2107, 273, 11026, 67, ...
'UNICODE': ('ref/unicode', 'encodings unicode TYPES STRING'),
'UNICODE': ('ref/strings', 'encodings unicode TYPES STRING'),
def writedocs(dir, pkgpath='', done=None): """Write out HTML documentation for all modules in a directory tree.""" if done is None: done = {} for file in os.listdir(dir): path = os.path.join(dir, file) if ispackage(path): writedocs(path, pkgpath + file + '.', done) elif os.path.isfile(path): modname = inspect.getmodule...
d7acb760b54aa6a267db738759d8364c8e839092 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/d7acb760b54aa6a267db738759d8364c8e839092/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2518, 329, 22280, 12, 1214, 16, 3475, 803, 2218, 2187, 2731, 33, 7036, 4672, 3536, 3067, 596, 3982, 7323, 364, 777, 4381, 316, 279, 1867, 2151, 12123, 309, 2731, 353, 599, 30, 2731, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2518, 329, 22280, 12, 1214, 16, 3475, 803, 2218, 2187, 2731, 33, 7036, 4672, 3536, 3067, 596, 3982, 7323, 364, 777, 4381, 316, 279, 1867, 2151, 12123, 309, 2731, 353, 599, 30, 2731, 273,...
def label(x): return self.mset[x]
d = {}
def label(x): return self.mset[x]
4c6e52de84c983fc78fecda4efe23166c23e516c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/4c6e52de84c983fc78fecda4efe23166c23e516c/combination.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1433, 12, 92, 4672, 327, 365, 18, 81, 542, 63, 92, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1433, 12, 92, 4672, 327, 365, 18, 81, 542, 63, 92, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.code_text = ''
self.code_buf = []
def handle_code_block(self, line): if line.strip() == WikiParser.STARTBLOCK: self.in_code_block += 1 if self.in_code_block == 1: self.code_processor = None self.code_text = '' else: self.code_text += line + os.linesep if not self.code_processor: self.code_processor = WikiProcessor(self, 'default') elif line.strip() == ...
a7a71f948ab966c87f226d3011ff0f4c0bd27ba0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2831/a7a71f948ab966c87f226d3011ff0f4c0bd27ba0/formatter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 710, 67, 2629, 12, 2890, 16, 980, 4672, 309, 980, 18, 6406, 1435, 422, 28268, 2678, 18, 7570, 11403, 30, 365, 18, 267, 67, 710, 67, 2629, 1011, 404, 309, 365, 18, 267, 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, 1640, 67, 710, 67, 2629, 12, 2890, 16, 980, 4672, 309, 980, 18, 6406, 1435, 422, 28268, 2678, 18, 7570, 11403, 30, 365, 18, 267, 67, 710, 67, 2629, 1011, 404, 309, 365, 18, 267, 67, ...
log('=> change channel url from %s to %s', old_url, new_url)
if old_url == new_url: log('Channel URL %s unchanged.', old_url, sender=self) return else: log('Changing channel URL from %s to %s', old_url, new_url, sender=self)
def change_channel_url(self, channel, new_url): old_url = channel.url log('=> change channel url from %s to %s', old_url, new_url) channel.url = new_url # remove etag and last_modified to force an update channel.etag = '' channel.last_modified = '' (success, error) = channel.update() if not success: self.show_message(_...
54386f67bc60d9a7695fad74a7d75be57c17a98d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12778/54386f67bc60d9a7695fad74a7d75be57c17a98d/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 67, 4327, 67, 718, 12, 2890, 16, 1904, 16, 394, 67, 718, 4672, 1592, 67, 718, 273, 1904, 18, 718, 309, 1592, 67, 718, 422, 394, 67, 718, 30, 613, 2668, 2909, 1976, 738, 87, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 67, 4327, 67, 718, 12, 2890, 16, 1904, 16, 394, 67, 718, 4672, 1592, 67, 718, 273, 1904, 18, 718, 309, 1592, 67, 718, 422, 394, 67, 718, 30, 613, 2668, 2909, 1976, 738, 87, 1...
self.scores[i][indx] = eval('orngStat.' + stat[2])[0]
try: self.scores[i][indx] = eval('orngStat.' + stat[2])[0] except: self.scores[i][indx] = -1 type, val, traceback = sys.exc_info() sys.excepthook(type, val, traceback) self.error("Caught an exception while evaluating classifiers")
def test(self, learner=None): pb = ProgressBar(self, iterations=self.nFolds)
9a6df9b187c03e25d8e95009384dd7bca2953ef3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/9a6df9b187c03e25d8e95009384dd7bca2953ef3/OWTestLearners.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12, 2890, 16, 884, 24834, 33, 7036, 4672, 6386, 273, 27793, 12, 2890, 16, 11316, 33, 2890, 18, 82, 15592, 87, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12, 2890, 16, 884, 24834, 33, 7036, 4672, 6386, 273, 27793, 12, 2890, 16, 11316, 33, 2890, 18, 82, 15592, 87, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
logerror(traceback.format_exc()) self.close()
except: logerror(traceback.format_exc())
def handle_error(self): """Called to handle any uncaught exceptions.""" try: raise except (KeyboardInterrupt, SystemExit, asyncore.ExitNow): raise logerror(traceback.format_exc()) self.close()
14dfdb7c027f301585f2ee98435e61f18386ca06 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7236/14dfdb7c027f301585f2ee98435e61f18386ca06/ftpserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 1636, 12, 2890, 4672, 3536, 8185, 358, 1640, 1281, 6301, 16510, 4798, 12123, 775, 30, 1002, 1335, 261, 17872, 14126, 16, 25454, 16, 4326, 479, 18, 6767, 8674, 4672, 1002, 613, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 1636, 12, 2890, 4672, 3536, 8185, 358, 1640, 1281, 6301, 16510, 4798, 12123, 775, 30, 1002, 1335, 261, 17872, 14126, 16, 25454, 16, 4326, 479, 18, 6767, 8674, 4672, 1002, 613, ...
assert status.numchannels == numchannels
assert status.numchannels <= numchannels
def test_gateway_status_busy(self, gw): numchannels = gw.remote_status().numchannels ch1 = gw.remote_exec("channel.send(1); channel.receive()") ch2 = gw.remote_exec("channel.receive()") ch1.receive() status = gw.remote_status() assert status.numexecuting == 1 # number of active execution threads assert status.execqsize...
8b4c0fb4c49f35004c3c20831151e6bd370a7e97 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7009/8b4c0fb4c49f35004c3c20831151e6bd370a7e97/test_gateway.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 11127, 67, 2327, 67, 9274, 93, 12, 2890, 16, 14662, 4672, 818, 9114, 273, 14662, 18, 7222, 67, 2327, 7675, 2107, 9114, 462, 21, 273, 14662, 18, 7222, 67, 4177, 2932, 4327, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 11127, 67, 2327, 67, 9274, 93, 12, 2890, 16, 14662, 4672, 818, 9114, 273, 14662, 18, 7222, 67, 2327, 7675, 2107, 9114, 462, 21, 273, 14662, 18, 7222, 67, 4177, 2932, 4327, 18...
self.request.response.redirect(self.context.absolute_url())
context_state = self.context.restrictedTraverse("@@plone_context_state") url = '%s/%s' % (self.context.absolute_url(), context_state.view_template_id()) self.request.response.redirect(url)
def __call__(self): """Perform the update and redirect if necessary, or render the page """ postback = True form = self.request.form submitted = form.get('form.submitted', False) save_button = form.get('form.button.Save', None) is not None cancel_button = form.get('form.button.Cancel', None) is not None if submitte...
5ca3d8da8bfd0411a19d5702297111350cb27878 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12187/5ca3d8da8bfd0411a19d5702297111350cb27878/sharing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 3536, 4990, 326, 1089, 471, 3136, 309, 4573, 16, 578, 1743, 326, 1363, 3536, 225, 1603, 823, 273, 1053, 225, 646, 273, 365, 18, 2293, 18, 687, 9638, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 3536, 4990, 326, 1089, 471, 3136, 309, 4573, 16, 578, 1743, 326, 1363, 3536, 225, 1603, 823, 273, 1053, 225, 646, 273, 365, 18, 2293, 18, 687, 9638, 27...
def _eval(self, n):
def _eval(self, n): """ EXAMPLES: sage: [sloane.A079923._eval(n) for n in range(1,11)] [5, 21, 76, 246, 738, 2108, 5794, 15458, 40296, 103129] """
def _repr_(self): return "Solutions to the Dancing School problem with n girls and n+4 boys"
7b02e5455d5d52d6dcc7f2314cdd56803031a1c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7b02e5455d5d52d6dcc7f2314cdd56803031a1c6/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12715, 67, 12, 2890, 4672, 327, 315, 20608, 6170, 358, 326, 463, 304, 2822, 348, 343, 1371, 6199, 598, 290, 314, 481, 3251, 471, 290, 15, 24, 800, 1900, 6, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12715, 67, 12, 2890, 4672, 327, 315, 20608, 6170, 358, 326, 463, 304, 2822, 348, 343, 1371, 6199, 598, 290, 314, 481, 3251, 471, 290, 15, 24, 800, 1900, 6, 2, -100, -100, -100, ...
metaio.StripTableName(SnglInspiralTable.tableName),
def __init__(self, n = 0): ILWD.__init__(self, "coinc_event", "coinc_event_id", n)
1c8ee0a75a4bfb8d06bdf83f82720a91911aa701 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/1c8ee0a75a4bfb8d06bdf83f82720a91911aa701/lsctables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 290, 273, 374, 4672, 467, 48, 16006, 16186, 2738, 972, 12, 2890, 16, 315, 12645, 71, 67, 2575, 3113, 315, 12645, 71, 67, 2575, 67, 350, 3113, 290, 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, 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, 290, 273, 374, 4672, 467, 48, 16006, 16186, 2738, 972, 12, 2890, 16, 315, 12645, 71, 67, 2575, 3113, 315, 12645, 71, 67, 2575, 67, 350, 3113, 290, 13, ...
for patchlevel, f in logFiles:
for _, f in logFiles:
def patchme(self, patch, f, destDir, patchlevels): logFiles = [] log.info('attempting to apply %s to %s with patch level(s) %s' %(f, destDir, ', '.join(str(x) for x in patchlevels))) for patchlevel in patchlevels: patchArgs = [ 'patch', '-d', destDir, '-p%s'%patchlevel, ] if self.backup: patchArgs.extend(['-b', '-z', s...
74eb99f93d5b6c7a5733427d060861e2b7213b60 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/74eb99f93d5b6c7a5733427d060861e2b7213b60/source.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4729, 3501, 12, 2890, 16, 4729, 16, 284, 16, 26231, 16, 4729, 12095, 4672, 613, 2697, 273, 5378, 613, 18, 1376, 2668, 11764, 310, 358, 2230, 738, 87, 358, 738, 87, 598, 4729, 1801, 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, 4729, 3501, 12, 2890, 16, 4729, 16, 284, 16, 26231, 16, 4729, 12095, 4672, 613, 2697, 273, 5378, 613, 18, 1376, 2668, 11764, 310, 358, 2230, 738, 87, 358, 738, 87, 598, 4729, 1801, 12,...
dir_env_var = 'DJBFFTW'
dir_env_var = 'DJBFFT'
def calc_info(self): lib_dirs = self.get_lib_dirs() incl_dirs = self.get_include_dirs() incl_dir = None libs = self.get_libs(self.section+'_libs', self.libs) info = None for d in lib_dirs: r = self.check_libs(d,libs) if r is not None: info = r break if info is not None: flag = 0 for d in incl_dirs: if len(combine_paths...
b03d812ec59ce430e851bd4e89f4960f5452f0f8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/b03d812ec59ce430e851bd4e89f4960f5452f0f8/system_info.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 1376, 12, 2890, 4672, 2561, 67, 8291, 273, 365, 18, 588, 67, 2941, 67, 8291, 1435, 2823, 67, 8291, 273, 365, 18, 588, 67, 6702, 67, 8291, 1435, 2823, 67, 1214, 273, 599, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 1376, 12, 2890, 4672, 2561, 67, 8291, 273, 365, 18, 588, 67, 2941, 67, 8291, 1435, 2823, 67, 8291, 273, 365, 18, 588, 67, 6702, 67, 8291, 1435, 2823, 67, 1214, 273, 599, 15...
pull_url='%s/extcode-main'%SAGE_INCOMING_SERVER, push_url='%s/extcode-main'%SAGE_OUTGOING_SERVER,
pull_url='%s/extcode-main/'%SAGE_INCOMING_SERVER, push_url='%s/extcode-main/'%SAGE_OUTGOING_SERVER,
def bundle(self, filename, options='', url=None, base=None, to=None): r""" Create an hg changeset bundle with the given filename against the repository at the given url (which is by default the 'official' Sage repository, unless push_url() is changed in a setup file). If you have internet access, it's best to just do ...
62fb7b5aa6ceda6c6c2bd7f4ca688c1f3beaee5f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/62fb7b5aa6ceda6c6c2bd7f4ca688c1f3beaee5f/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3440, 12, 2890, 16, 1544, 16, 702, 2218, 2187, 880, 33, 7036, 16, 1026, 33, 7036, 16, 358, 33, 7036, 4672, 436, 8395, 1788, 392, 22576, 22463, 3440, 598, 326, 864, 1544, 5314, 326, 335...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3440, 12, 2890, 16, 1544, 16, 702, 2218, 2187, 880, 33, 7036, 16, 1026, 33, 7036, 16, 358, 33, 7036, 4672, 436, 8395, 1788, 392, 22576, 22463, 3440, 598, 326, 864, 1544, 5314, 326, 335...
origRetries, origSendRequestHandle, self.processResponsePdu
origRetries + 1, sendPduHandle
def processResponsePdu( self, snmpEngine, messageProcessingModel, securityModel, securityName, securityLevel, contextEngineID, contextName, pduVersion, PDU, statusInformation, sendPduHandle ): # 3.3.6d ( origTransportDomain, origTransportAddress, origMessageProcessingModel, origSecurityModel, origSecurityName, origSecu...
beac2b8a85446ea9e67020370cf82edea825ab65 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/587/beac2b8a85446ea9e67020370cf82edea825ab65/ntforg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 1064, 52, 2544, 12, 365, 16, 15366, 4410, 16, 883, 7798, 1488, 16, 4373, 1488, 16, 4373, 461, 16, 4373, 2355, 16, 819, 4410, 734, 16, 819, 461, 16, 21160, 1444, 16, 453, 16214, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 1064, 52, 2544, 12, 365, 16, 15366, 4410, 16, 883, 7798, 1488, 16, 4373, 1488, 16, 4373, 461, 16, 4373, 2355, 16, 819, 4410, 734, 16, 819, 461, 16, 21160, 1444, 16, 453, 16214, ...
temp = str.split(sep)
temp = str.split(sep, 1)
def split_and_strip(self, str, sep="="): """ Split str and strip quotes from the resulting parts.
8840d569cf0921f831a9ede75b11f4e4b6fc51d4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10349/8840d569cf0921f831a9ede75b11f4e4b6fc51d4/kvm_config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 67, 464, 67, 6406, 12, 2890, 16, 609, 16, 5478, 1546, 1546, 4672, 3536, 5385, 609, 471, 2569, 10681, 628, 326, 8156, 2140, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 67, 464, 67, 6406, 12, 2890, 16, 609, 16, 5478, 1546, 1546, 4672, 3536, 5385, 609, 471, 2569, 10681, 628, 326, 8156, 2140, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
" already run with tag <%s>" % (outputdir, testname, tag) )
" already run with tag <%s>" % (outputdir, testname, tag))
def run_test(self, url, *args, **dargs): """Summon a test object and run it.
de3b947fa13191b5aa3e650f64a2581f6921c95c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/de3b947fa13191b5aa3e650f64a2581f6921c95c/server_job.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 3813, 12, 2890, 16, 880, 16, 380, 1968, 16, 2826, 72, 1968, 4672, 3536, 3495, 2586, 279, 1842, 733, 471, 1086, 518, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 3813, 12, 2890, 16, 880, 16, 380, 1968, 16, 2826, 72, 1968, 4672, 3536, 3495, 2586, 279, 1842, 733, 471, 1086, 518, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 876) else quickfix.StringField.__init__(self, 876, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1725, 6669, 13, 469, 9549, 904, 18, 780, 974, 16186, 2738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1725, 6669, 13, 469, 9549, 904, 18, 780, 974, 16186, 2738, ...
ed = DateFromMx(end_date)
def get_graph(self, end_date, report_days, host=None, user=None, email=None): if email or host or user: return None
0664df1f0b17740be9637ecca86984eaa336f0dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/87/0664df1f0b17740be9637ecca86984eaa336f0dd/untangle_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4660, 12, 2890, 16, 679, 67, 712, 16, 2605, 67, 9810, 16, 1479, 33, 7036, 16, 729, 33, 7036, 16, 2699, 33, 7036, 4672, 309, 2699, 578, 1479, 578, 729, 30, 327, 599, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4660, 12, 2890, 16, 679, 67, 712, 16, 2605, 67, 9810, 16, 1479, 33, 7036, 16, 729, 33, 7036, 16, 2699, 33, 7036, 4672, 309, 2699, 578, 1479, 578, 729, 30, 327, 599, 2, -10...
fork_pid = force_test_exit()
def force_test_exit(): # Sigh, both imports seem necessary to avoid errors. import os fork_pid = os.fork() if fork_pid: # In parent. return fork_pid # In child. import os, time try: # Wait 5 seconds longer than the expected alarm to give enough # time for the normal sequence of events to occur. This is # just a stop-...
73dd02de154505c1bd9be384ef7bcb0fe31b6db5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/73dd02de154505c1bd9be384ef7bcb0fe31b6db5/test_signal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2944, 67, 3813, 67, 8593, 13332, 468, 348, 2031, 16, 3937, 10095, 19264, 4573, 358, 4543, 1334, 18, 1930, 1140, 12515, 67, 6610, 273, 1140, 18, 23335, 1435, 309, 12515, 67, 6610, 30, 468...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2944, 67, 3813, 67, 8593, 13332, 468, 348, 2031, 16, 3937, 10095, 19264, 4573, 358, 4543, 1334, 18, 1930, 1140, 12515, 67, 6610, 273, 1140, 18, 23335, 1435, 309, 12515, 67, 6610, 30, 468...
"WHERE PAP.MRNA_COORDINATES.MRC_GENEID = PAP.GENE_COORDINATES.GCS_GENEID")
"WHERE PAP.MRNA_COORDINATES.MRC_GENEID = PAP.GENE_COORDINATES.GCS_GENEID " "AND GCS_TAXID IN (" + species_limit + ")")
def _get_mrna_to_seq(dbase): """ Returns: mrna_to_seq (dict) """ # mrna_to_seq: (Dict) # key: mrc_geneid # TODO: Double-check that mrc_transcript_no is NOT needed here # val: (gcs_chromosome, gcs_taxid, gcs_localtaxid, gcs_complement, gcs_start, gcs_stop) mrna_to_seq = {} print "Populating: mrna_to_seq" mrna_dbase...
b850fb892724b1943780db181408ec0a356cd4f5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12607/b850fb892724b1943780db181408ec0a356cd4f5/scan.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 21387, 6582, 67, 869, 67, 5436, 12, 1966, 448, 4672, 3536, 2860, 30, 9752, 6582, 67, 869, 67, 5436, 261, 1576, 13, 3536, 468, 9752, 6582, 67, 869, 67, 5436, 30, 261, 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, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 21387, 6582, 67, 869, 67, 5436, 12, 1966, 448, 4672, 3536, 2860, 30, 9752, 6582, 67, 869, 67, 5436, 261, 1576, 13, 3536, 468, 9752, 6582, 67, 869, 67, 5436, 30, 261, 50...
self.watch_file(self.base + ".toc")
self.watch_file(self.src_base + ".toc")
def h_tableofcontents (self, dict): self.watch_file(self.base + ".toc")
2e6edd41b641e8206b52357c231c9abd18bf1d85 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/2e6edd41b641e8206b52357c231c9abd18bf1d85/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 67, 2121, 792, 3980, 261, 2890, 16, 2065, 4672, 365, 18, 7585, 67, 768, 12, 2890, 18, 1969, 397, 3552, 1391, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 67, 2121, 792, 3980, 261, 2890, 16, 2065, 4672, 365, 18, 7585, 67, 768, 12, 2890, 18, 1969, 397, 3552, 1391, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
self.debug_all_attrs = False
self.debug_all_attrs = False
def __init__(self, class1): """ Become a Classification for class class1 (applicable to its instances) """ self.policies = {} # maps attrname to policy for that attr #k format TBD, now a map from attrname to decl val self.class1 = class1
c9c96afe91e5f17468276c3c868b6210e16db00e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/c9c96afe91e5f17468276c3c868b6210e16db00e/state_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 667, 21, 4672, 3536, 605, 557, 1742, 279, 1659, 1480, 364, 667, 667, 21, 261, 438, 10120, 358, 2097, 3884, 13, 3536, 365, 18, 17407, 273, 2618, 468, 7565...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 667, 21, 4672, 3536, 605, 557, 1742, 279, 1659, 1480, 364, 667, 667, 21, 261, 438, 10120, 358, 2097, 3884, 13, 3536, 365, 18, 17407, 273, 2618, 468, 7565...
try: rival = model.objects.get(**dict(lookups + ((self.name, slug),) )) if rival == instance: raise model.DoesNotExist index += 1 tail_length = len(self.index_sep) + len(str(index)) combined_length = len(orig_slug) + tail_length if self.max_length < combined_length: orig_slug = orig_slug[:self.max_length - tail_len...
rivals = model.objects\ .filter(**dict(lookups + ((self.name, slug),) ))\ .exclude(pk=instance.pk) if not rivals:
def _get_lookups(instance, unique_with): "Returns a dict'able tuple of lookups to ensure slug uniqueness" for _field_name in unique_with: if '__' in _field_name: field_name, inner = _field_name.split('__', 1) else: field_name, inner = _field_name, None
b006b9a1f2dcc882f33bc5fd1306134259923a2a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1402/b006b9a1f2dcc882f33bc5fd1306134259923a2a/fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 8664, 87, 12, 1336, 16, 3089, 67, 1918, 4672, 315, 1356, 279, 2065, 11, 429, 3193, 434, 20286, 358, 3387, 4959, 31596, 6, 364, 389, 1518, 67, 529, 316, 3089, 67, 1918, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 8664, 87, 12, 1336, 16, 3089, 67, 1918, 4672, 315, 1356, 279, 2065, 11, 429, 3193, 434, 20286, 358, 3387, 4959, 31596, 6, 364, 389, 1518, 67, 529, 316, 3089, 67, 1918, ...
d = readmodule_ex(mod, path, inpackage)
d = _readmodule(mod, path, inpackage)
def readmodule_ex(module, path=[], inpackage=None): '''Read a module file and return a dictionary of classes. Search for MODULE in PATH and sys.path, read and parse the module and return a dictionary with one entry for each class found in the module. If INPACKAGE is true, it must be the dotted name of the package in ...
69689ec153ac01a51540a5bb3eafceb7eb9c7ba7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/69689ec153ac01a51540a5bb3eafceb7eb9c7ba7/pyclbr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 2978, 67, 338, 12, 2978, 16, 589, 22850, 6487, 316, 5610, 33, 7036, 4672, 9163, 1994, 279, 1605, 585, 471, 327, 279, 3880, 434, 3318, 18, 225, 5167, 364, 14057, 316, 7767, 471, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 2978, 67, 338, 12, 2978, 16, 589, 22850, 6487, 316, 5610, 33, 7036, 4672, 9163, 1994, 279, 1605, 585, 471, 327, 279, 3880, 434, 3318, 18, 225, 5167, 364, 14057, 316, 7767, 471, 25...
def bp(id=None, grp=None, cfg=None, iff=True, frameCount=1):
def bp(id=None, grp=None, cfg=None, iff=True, test=None, frameCount=1):
def bp(id=None, grp=None, cfg=None, iff=True, frameCount=1): if not bpdb.enabled or not bpdb.verifyEnabled(): return bpi = bp(id=id, grp=grp, cfg=cfg, iff=iff,frameCount=frameCount+1) bpi.maybeBreak(frameCount=frameCount+1)
ff599cf9abda48677c7e0cc83e14db348aa882e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/ff599cf9abda48677c7e0cc83e14db348aa882e5/PythonUtil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9107, 12, 350, 33, 7036, 16, 14295, 33, 7036, 16, 2776, 33, 7036, 16, 21437, 33, 5510, 16, 1842, 33, 7036, 16, 2623, 1380, 33, 21, 4672, 309, 486, 9107, 1966, 18, 5745, 578, 486, 910...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9107, 12, 350, 33, 7036, 16, 14295, 33, 7036, 16, 2776, 33, 7036, 16, 21437, 33, 5510, 16, 1842, 33, 7036, 16, 2623, 1380, 33, 21, 4672, 309, 486, 9107, 1966, 18, 5745, 578, 486, 910...