rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
sequencelengths
256
256
attention_mask
sequencelengths
256
256
labels
sequencelengths
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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('RegistrationForm', form=self, contact=contact)
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, 273, 5388, 646, 67, 6769, 892, 18, 4661, 2668, 7843, 1204, 2187, 646, 33, 2890, 16, 5388, 33, 8994, 16, 2172, 33, 6769, 13, 225, 1205, 3292, 6769, 3546, 273, 2172, 2240, 12, 7843, 1204, 16, 365, 2934, 972, 2738, 972, 30857, 1968, 16, 2826, 4333, 13, 646, 67, 2738, 18, 4661, 12, 2890, 16186, 1106, 972, 16, 646, 33, 2890, 16, 5388, 33, 8994, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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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, 273, 5388, 646, 67, 6769, 892, 18, 4661, 2668, 7843, 1204, 2187, 646, 33, 2890, 16, 5388, 33, 8994, 16, 2172, 33, 6769, 13, 225, 1205, 3292, 6769, 3546, 273, 2172, 2240, 12, 7843, 1204, 16, 365, 2934, 972, 2738, 972, 30857, 1968, 16, 2826, 4333, 13, 646, 67, 2738, 18, 4661, 12, 2890, 16186, 1106, 972, 16, 646, 33, 2890, 16, 5388, 33, 8994, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 None if (infer_scattering_types_from_names): assert scattering_types is None if ( unknown_scattering_type_substitute is not None and unknown_scattering_type_substitute not in ["", "?"]): try: unknown_scattering_type_substitute = eltbx.xray_scattering.it1992( unknown_scattering_type_substitute, True).label() except: raise RuntimeError( 'unknown_scattering_type_substitute="%s"' % unknown_scattering_type_substitute + ' is not a valid scattering type label.') special_position_settings = self.get_special_position_settings( special_position_settings=special_position_settings, crystal_symmetry=crystal_symmetry, force_symmetry=force_symmetry) if (special_position_settings is None): raise RuntimeError("Crystal symmetry not defined.") result = xray.structure( special_position_settings=special_position_settings) if (sites_cart is None): sites_cart = self.get_sites_cart() if (sites_frac is None): sites_frac = result.unit_cell().fractionalize(sites_cart=sites_cart) if (site_symmetry_table is not None): assert site_symmetry_table.indices().size() == sites_frac.size() if (scattering_types is None): scattering_types = self.get_element_symbols(strip_symbols=True) site_symmetry_ops = None for i_seq,atom,site_frac,scattering_type in zip( count(), self.atom_attributes_list, sites_frac, scattering_types): exact_scattering_type = True if (scattering_type == "" and infer_scattering_types_from_names): scattering_type = atom.name if (scattering_type[0] in "0123456789"): scattering_type = scattering_type[1:] exact_scattering_type = False try: scattering_type = eltbx.xray_scattering.it1992( scattering_type, exact_scattering_type).label() except RuntimeError: if (unknown_scattering_type_substitute is None): raise RuntimeError("Unknown scattering type: %s" % str(atom)) scattering_type = unknown_scattering_type_substitute if (atom.Ucart is None): u = adptbx.b_as_u(atom.tempFactor) else: u = adptbx.u_cart_as_u_star(result.unit_cell(), atom.Ucart) if (site_symmetry_table is not None): site_symmetry_ops = site_symmetry_table.get(i_seq=i_seq) result.add_scatterer( scatterer=xray.scatterer( label=atom.pdb_format(), site=site_frac, u=u, occupancy=atom.occupancy, scattering_type=scattering_type), site_symmetry_ops=site_symmetry_ops) return result
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, 33, 7036, 16, 9180, 67, 22187, 33, 7036, 16, 2834, 67, 8117, 18042, 67, 2121, 33, 7036, 16, 14644, 310, 67, 2352, 33, 7036, 16, 12455, 67, 31320, 310, 67, 2352, 67, 2080, 67, 1973, 33, 8381, 16, 5917, 67, 31320, 310, 67, 723, 67, 1717, 17207, 33, 7036, 4672, 1815, 9180, 67, 11848, 353, 599, 578, 9180, 67, 22187, 353, 599, 309, 261, 25889, 67, 31320, 310, 67, 2352, 67, 2080, 67, 1973, 4672, 1815, 14644, 310, 67, 2352, 353, 599, 309, 261, 565, 5917, 67, 31320, 310, 67, 723, 67, 1717, 17207, 353, 486, 599, 471, 5917, 67, 31320, 310, 67, 723, 67, 1717, 17207, 486, 316, 8247, 3113, 13574, 65, 4672, 775, 30, 5917, 67, 31320, 310, 67, 723, 67, 1717, 17207, 521, 273, 11572, 70, 92, 18, 92, 435, 67, 31320, 310, 18, 588, 67, 10005, 67, 1925, 12, 1433, 33, 8172, 67, 31320, 310, 67, 723, 67, 1717, 17207, 13, 1335, 30, 1002, 7265, 12, 296, 8172, 67, 31320, 310, 67, 723, 67, 1717, 17207, 11613, 87, 5187, 738, 5917, 67, 31320, 310, 67, 723, 67, 1717, 17207, 397, 296, 353, 486, 279, 923, 14644, 310, 618, 1433, 1093, 13, 4582, 67, 3276, 67, 4272, 273, 365, 18, 588, 67, 9371, 67, 3276, 67, 4272, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 33, 7036, 16, 9180, 67, 22187, 33, 7036, 16, 2834, 67, 8117, 18042, 67, 2121, 33, 7036, 16, 14644, 310, 67, 2352, 33, 7036, 16, 12455, 67, 31320, 310, 67, 2352, 67, 2080, 67, 1973, 33, 8381, 16, 5917, 67, 31320, 310, 67, 723, 67, 1717, 17207, 33, 7036, 4672, 1815, 9180, 67, 11848, 353, 599, 578, 9180, 67, 22187, 353, 599, 309, 261, 25889, 67, 31320, 310, 67, 2352, 67, 2080, 67, 1973, 4672, 1815, 14644, 310, 67, 2352, 353, 599, 309, 2 ]
</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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 first select a partner !") ) if not product: if type in ('in_invoice', 'in_refund'): return {'value': {'categ_id': False}, 'domain':{'product_uom':[]}} else: return {'value': {'price_unit': 0.0, 'categ_id': False}, 'domain':{'product_uom':[]}} part = self.pool.get('res.partner').browse(cr, uid, partner_id) fpos = fposition_id and self.pool.get('account.fiscal.position').browse(cr, uid, fposition_id) or False
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, 8381, 16, 284, 3276, 67, 350, 33, 8381, 16, 6205, 67, 4873, 33, 8381, 16, 1758, 67, 16119, 67, 350, 33, 8381, 16, 819, 33, 7036, 4672, 9395, 67, 350, 273, 819, 3292, 16840, 67, 350, 3546, 309, 819, 353, 599, 30, 819, 273, 2618, 309, 486, 19170, 67, 350, 30, 1002, 1140, 90, 18, 14137, 67, 538, 90, 24899, 2668, 2279, 6393, 1224, 18003, 329, 401, 19899, 67, 2932, 6225, 1297, 1122, 2027, 279, 19170, 401, 7923, 262, 309, 486, 3017, 30, 309, 618, 316, 7707, 267, 67, 16119, 2187, 296, 267, 67, 1734, 1074, 11, 4672, 327, 13666, 1132, 4278, 13666, 71, 1287, 67, 350, 4278, 1083, 5779, 296, 4308, 4278, 27828, 5896, 67, 89, 362, 4278, 8526, 9090, 469, 30, 327, 13666, 1132, 4278, 13666, 8694, 67, 4873, 4278, 374, 18, 20, 16, 296, 71, 1287, 67, 350, 4278, 1083, 5779, 296, 4308, 4278, 27828, 5896, 67, 89, 362, 4278, 8526, 9090, 1087, 273, 365, 18, 6011, 18, 588, 2668, 455, 18, 31993, 16063, 25731, 12, 3353, 16, 4555, 16, 19170, 67, 350, 13, 284, 917, 273, 284, 3276, 67, 350, 471, 365, 18, 6011, 18, 588, 2668, 4631, 18, 74, 291, 771, 18, 3276, 16063, 25731, 12, 3353, 16, 4555, 16, 284, 3276, 67, 350, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8381, 16, 284, 3276, 67, 350, 33, 8381, 16, 6205, 67, 4873, 33, 8381, 16, 1758, 67, 16119, 67, 350, 33, 8381, 16, 819, 33, 7036, 4672, 9395, 67, 350, 273, 819, 3292, 16840, 67, 350, 3546, 309, 819, 353, 599, 30, 819, 273, 2618, 309, 486, 19170, 67, 350, 30, 1002, 1140, 90, 18, 14137, 67, 538, 90, 24899, 2668, 2279, 6393, 1224, 18003, 329, 401, 19899, 67, 2932, 6225, 1297, 1122, 2027, 279, 19170, 401, 7923, 262, 309, 486, 3017, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 self.rfc2965: debug(" RFC 2965 cookies are switched off") return False elif cookie.version == 0 and not self.netscape: debug(" Netscape cookies are switched off") return False return True
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, 8503, 12476, 468, 3878, 16, 1427, 333, 1297, 506, 392, 2057, 8372, 12899, 9222, 3878, 18, 389, 4148, 2932, 282, 1000, 17, 6151, 22, 2887, 1177, 1566, 6142, 87, 5095, 87, 2225, 16, 3878, 18, 529, 16, 3878, 18, 1132, 13, 327, 1083, 309, 3878, 18, 1589, 405, 374, 471, 486, 365, 18, 16784, 5540, 9222, 30, 1198, 2932, 282, 8372, 12899, 9222, 7237, 854, 31665, 3397, 7923, 327, 1083, 1327, 3878, 18, 1589, 422, 374, 471, 486, 365, 18, 2758, 12476, 30, 1198, 2932, 282, 8503, 12476, 7237, 854, 31665, 3397, 7923, 327, 1083, 327, 1053, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 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, 8503, 12476, 468, 3878, 16, 1427, 333, 1297, 506, 392, 2057, 8372, 12899, 9222, 3878, 18, 389, 4148, 2932, 282, 1000, 17, 6151, 22, 2887, 1177, 1566, 6142, 87, 5095, 87, 2225, 16, 3878, 18, 529, 16, 3878, 18, 1132, 13, 327, 1083, 309, 3878, 18, 1589, 405, 374, 471, 486, 365, 18, 16784, 5540, 9222, 30, 1198, 2932, 282, 8372, 12899, 9222, 7237, 854, 31665, 3397, 7923, 327, 1083, 1327, 3878, 18, 1589, 422, 374, 471, 486, 365, 18, 2758, 12476, 2 ]
root = 'http://127.0.0.1:8000' user = '[email protected]' 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, 12339, 310, 1520, 738, 87, 11, 738, 365, 18, 22626, 16186, 529, 972, 1327, 14664, 12, 10075, 67, 723, 16, 365, 18, 22626, 4672, 364, 261, 79, 16, 331, 13, 316, 365, 18, 4333, 18, 3319, 13332, 309, 3869, 12, 10075, 67, 1132, 16, 417, 16, 599, 13, 5, 33, 90, 30, 327, 1083, 327, 1053, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 12339, 310, 1520, 738, 87, 11, 738, 365, 18, 22626, 16186, 529, 972, 1327, 14664, 12, 10075, 67, 723, 16, 365, 18, 22626, 4672, 364, 261, 79, 16, 331, 13, 316, 365, 18, 4333, 18, 3319, 13332, 309, 3869, 12, 10075, 67, 1132, 16, 417, 16, 599, 13, 5, 33, 90, 30, 327, 1083, 327, 1053, 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 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 21, 5717, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 21, 5717, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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', [('Content-Type', 'text/plain')]) return ['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, 18, 803, 18, 10814, 13, 18919, 21, 14542, 2295, 273, 1140, 18, 803, 18, 5701, 12, 4293, 16, 296, 1615, 18, 2620, 6134, 618, 273, 20369, 15180, 18, 20885, 67, 723, 12, 4293, 25146, 20, 65, 225, 309, 1140, 18, 803, 18, 1808, 12, 4293, 4672, 6846, 2668, 6976, 7791, 2187, 306, 2668, 1350, 17, 559, 2187, 618, 13, 5717, 327, 1709, 18, 812, 3611, 12, 3190, 12, 4293, 16, 315, 6731, 6, 3719, 469, 30, 6846, 2668, 11746, 2288, 10750, 2187, 306, 2668, 1350, 17, 559, 2187, 296, 955, 19, 7446, 6134, 5717, 327, 10228, 902, 1392, 3546, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 18, 803, 18, 10814, 13, 18919, 21, 14542, 2295, 273, 1140, 18, 803, 18, 5701, 12, 4293, 16, 296, 1615, 18, 2620, 6134, 618, 273, 20369, 15180, 18, 20885, 67, 723, 12, 4293, 25146, 20, 65, 225, 309, 1140, 18, 803, 18, 1808, 12, 4293, 4672, 6846, 2668, 6976, 7791, 2187, 306, 2668, 1350, 17, 559, 2187, 618, 13, 5717, 327, 1709, 18, 812, 3611, 12, 3190, 12, 4293, 16, 315, 6731, 6, 3719, 469, 30, 6846, 2668, 11746, 2288, 10750, 2187, 2 ]
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, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13, 365, 18, 3612, 12443, 8908, 16, 20987, 3719, 365, 18, 542, 67, 9505, 639, 12, 9505, 639, 13, 365, 18, 4106, 273, 1408, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13, 365, 18, 3612, 12443, 8908, 16, 20987, 3719, 365, 18, 542, 67, 9505, 639, 12, 9505, 639, 13, 365, 18, 4106, 273, 1408, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 java # require for eval to work if jStringArr != eval(str(jStringArr)): raise TestFailed, "eval(str(%s)) <> %s" % (jStringArr,)*2
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, 701, 12, 78, 780, 5715, 3719, 30, 1002, 7766, 2925, 16, 315, 8622, 12, 701, 9275, 87, 3719, 2813, 738, 87, 6, 738, 261, 78, 780, 5715, 16, 17653, 22, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 701, 12, 78, 780, 5715, 3719, 30, 1002, 7766, 2925, 16, 315, 8622, 12, 701, 9275, 87, 3719, 2813, 738, 87, 6, 738, 261, 78, 780, 5715, 16, 17653, 22, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 ]
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.arguments ['Enable'] = True
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, 1727, 18, 31615, 2187, 365, 18, 1282, 1767, 2934, 9653, 1343, 309, 613, 316, 23364, 30, 3824, 4247, 273, 582, 11, 5706, 2638, 5968, 9621, 11, 469, 30, 3824, 4247, 273, 582, 11, 986,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 1727, 18, 31615, 2187, 365, 18, 1282, 1767, 2934, 9653, 1343, 309, 613, 316, 23364, 30, 3824, 4247, 273, 582, 11, 5706, 2638, 5968, 9621, 11, 469, 30, 3824, 4247, 273, 582, 11, 986, 21001, 5728, 613, 358, 26248, 3215, 11, 871, 18, 7099, 10228, 1528, 3546, 273, 3824, 4247, 871, 18, 7099, 10228, 8317, 3546, 273, 1053, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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_) == 1: type_name_ = type_names_[0] else: type_name_ = type_names_[1] class_ = globals()[type_name_] obj_ = class_.factory() obj_.build(child_) else: raise NotImplementedError( 'Class not implemented for <state> element') obj_ = self.mixedclass_(MixedContainer.CategoryComplex, MixedContainer.TypeNone, 'state', obj_) self.content_.append(obj_) if hasattr(self, 'add_state'): self.add_state(obj_.value) elif hasattr(self, 'set_state'): self.set_state(obj_.value) elif nodeName_ == 'polymorphic_state_set': 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_) == 1: type_name_ = type_names_[0] else: type_name_ = type_names_[1] class_ = globals()[type_name_] obj_ = class_.factory() obj_.build(child_) else: raise NotImplementedError( 'Class not implemented for <polymorphic_state_set> element') obj_ = self.mixedclass_(MixedContainer.CategoryComplex, MixedContainer.TypeNone, 'polymorphic_state_set', obj_) self.content_.append(obj_) if hasattr(self, 'add_polymorphic_state_set'): self.add_polymorphic_state_set(obj_.value) elif hasattr(self, 'set_polymorphic_state_set'): self.set_polymorphic_state_set(obj_.value) elif nodeName_ == 'uncertain_state_set': 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_) == 1: type_name_ = type_names_[0] else: type_name_ = type_names_[1] class_ = globals()[type_name_] obj_ = class_.factory() obj_.build(child_) else: raise NotImplementedError( 'Class not implemented for <uncertain_state_set> element') obj_ = self.mixedclass_(MixedContainer.CategoryComplex, MixedContainer.TypeNone, 'uncertain_state_set', obj_) self.content_.append(obj_) if hasattr(self, 'add_uncertain_state_set'): self.add_uncertain_state_set(obj_.value) elif hasattr(self, 'set_uncertain_state_set'): self.set_uncertain_state_set(obj_.value) elif nodeName_ == 'set': obj_ = StateSet.factory() obj_.build(child_) obj_ = self.mixedclass_(MixedContainer.CategoryComplex, MixedContainer.TypeNone, 'set', obj_) self.content_.append(obj_) if hasattr(self, 'add_set'): self.add_set(obj_.value) elif hasattr(self, 'set_set'): self.set_set(obj_.value) if not from_subclass and child_.tail is not None: obj_ = self.mixedclass_(MixedContainer.CategoryText, MixedContainer.TypeNone, '', child_.tail) self.content_.append(obj_) super(AbstractStates, self).buildChildren(child_, nodeName_, True)
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, 95, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 6976, 21, 19, 4201, 3078, 17, 1336, 97, 723, 6134, 309, 618, 67, 529, 67, 353, 599, 30, 618, 67, 529, 67, 273, 1151, 27799, 14588, 18, 588, 2668, 723, 6134, 309, 618, 67, 529, 67, 353, 486, 599, 30, 618, 67, 1973, 67, 273, 618, 67, 529, 27799, 4939, 2668, 2497, 13, 309, 562, 12, 723, 67, 1973, 67, 13, 422, 404, 30, 618, 67, 529, 67, 273, 618, 67, 1973, 67, 63, 20, 65, 469, 30, 618, 67, 529, 67, 273, 618, 67, 1973, 67, 63, 21, 65, 667, 67, 273, 10941, 1435, 63, 723, 67, 529, 67, 65, 1081, 67, 273, 667, 27799, 6848, 1435, 1081, 27799, 3510, 12, 3624, 67, 13, 469, 30, 1002, 11206, 12, 296, 797, 486, 8249, 364, 411, 2019, 34, 930, 6134, 1081, 67, 273, 365, 18, 19562, 1106, 67, 12, 19846, 2170, 18, 4457, 12795, 16, 24725, 2170, 18, 559, 7036, 16, 296, 2019, 2187, 1081, 67, 13, 365, 18, 1745, 27799, 6923, 12, 2603, 67, 13, 309, 3859, 12, 2890, 16, 296, 1289, 67, 2019, 11, 4672, 365, 18, 1289, 67, 2019, 12, 2603, 27799, 1132, 13, 1327, 3859, 12, 2890, 16, 296, 542, 67, 2019, 11, 4672, 365, 18, 542, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 95, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 6976, 21, 19, 4201, 3078, 17, 1336, 97, 723, 6134, 309, 618, 67, 529, 67, 353, 599, 30, 618, 67, 529, 67, 273, 1151, 27799, 14588, 18, 588, 2668, 723, 6134, 309, 618, 67, 529, 67, 353, 486, 599, 30, 618, 67, 1973, 67, 273, 618, 67, 529, 27799, 4939, 2668, 2497, 13, 309, 562, 12, 723, 67, 1973, 67, 13, 422, 404, 30, 618, 67, 529, 67, 273, 618, 67, 1973, 67, 2 ]
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.get('lang', None) new_lang = kwargs.get('switch_to', None)
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, 18, 588, 2668, 14943, 55, 2187, 599, 13, 309, 486, 6298, 30, 327, 997, 273, 6298, 63, 20, 65, 646, 273, 3869, 12, 5519, 16, 296, 687, 2187, 2618, 13, 1205, 18, 2725, 12, 687, 13, 1205, 3292, 25990, 3546, 273, 404, 3303, 273, 1205, 18, 588, 2668, 4936, 2187, 599, 13, 394, 67, 4936, 273, 1205, 18, 588, 2668, 9610, 67, 869, 2187, 599, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 18, 588, 2668, 14943, 55, 2187, 599, 13, 309, 486, 6298, 30, 327, 997, 273, 6298, 63, 20, 65, 646, 273, 3869, 12, 5519, 16, 296, 687, 2187, 2618, 13, 1205, 18, 2725, 12, 687, 13, 1205, 3292, 25990, 3546, 273, 404, 3303, 273, 1205, 18, 588, 2668, 4936, 2187, 599, 13, 394, 67, 4936, 273, 1205, 18, 588, 2668, 9610, 67, 869, 2187, 599, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 to L{html.HTMLFormatter}, as well as the option C{outdir}, which controls where the output is written to. @type options: C{dictionary} @param progress: This first element of this list will be modified by C{document} to reflect its progress. This first element will be a number between 0 and 1 while C{document} is creating the documentation; and the string C{"done"} once it finishes creating the documentation. @type progress: C{list} """ progress[0] = 0.02 from epydoc.html import HTMLFormatter from epydoc.objdoc import DocMap from epydoc.imports import import_module, find_modules try: # Import the modules. modnames = options['modules'] # First, expand packages. for name in modnames[:]: if os.path.isdir(name): modnames.remove(name) new_modules = find_modules(name) if new_modules: modnames += new_modules sys.stderr.write('!!!Error: %r is not a pacakge\n!!!' % name) modules = [] for (name, num) in zip(modnames, range(len(modnames))): if cancel[0]: exit_thread() sys.stderr.write('***Importing %s\n***' % name) try: module = import_module(name) if module not in modules: modules.append(module) except ImportError, e: sys.stderr.write('!!!Error importing %s: %s\n!!!', (mname, e)) progress[0] += (IMPORT_PROGRESS*0.98)/len(modnames) # Create the documentation map. d = DocMap() # Build the documentation. for (module, num) in zip(modules, range(len(modules))): if cancel[0]: exit_thread() sys.stderr.write('***Building docs for %s\n***' % module.__name__) d.add(module) progress[0] += (BUILD_PROGRESS*0.98)/len(modules) htmldoc = HTMLFormatter(d, **options) numfiles = htmldoc.num_files() # Set up the progress callback. n = htmldoc.num_files() def progress_callback(path, doc, numfiles=numfiles, progress=progress, cancel=cancel, num=[1]): if cancel[0]: exit_thread() # Find the short name of the file we're writing. (dir, file) = os.path.split(path) (root, d) = os.path.split(dir) if d in ('public', 'private'): fname = os.path.join(d, file) else: fname = file sys.stderr.write('***Writing %s\n***' % fname) progress[0] += (WRITE_PROGRESS*0.98)/numfiles num[0] += 1 # Write the documentation. htmldoc.write(options.get('outdir', 'html'), progress_callback) # We're done. sys.stderr.write('***Finished!\n***') progress[0] = 'done' except SystemExit: # Cancel. sys.stderr.write('!!!Cancel!\n!!!') progress[0] = 'cancel' raise except Exception, e: # We failed. sys.stderr.write('!!!Internal error: %s\n!!!' % e) progress[0] = 'cancel' raise except: # We failed. sys.stderr.write('!!!Internal error\n!!!') progress[0] = 'cancel' raise
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, 5746, 316, 2097, 4953, 2650, 635, 511, 95, 41, 2074, 2434, 43, 5370, 6315, 3240, 5496, 225, 632, 891, 702, 30, 1021, 702, 358, 999, 364, 12516, 7323, 18, 1220, 6104, 4932, 702, 716, 848, 506, 864, 358, 511, 95, 2620, 18, 4870, 5074, 5779, 487, 5492, 487, 326, 1456, 385, 95, 659, 1214, 5779, 1492, 11022, 1625, 326, 876, 353, 5941, 358, 18, 632, 723, 702, 30, 385, 95, 15556, 97, 632, 891, 4007, 30, 1220, 1122, 930, 434, 333, 666, 903, 506, 4358, 635, 385, 95, 5457, 97, 358, 3037, 2097, 4007, 18, 225, 1220, 1122, 930, 903, 506, 279, 1300, 3086, 374, 471, 404, 1323, 385, 95, 5457, 97, 353, 4979, 326, 7323, 31, 471, 326, 533, 385, 16711, 8734, 6, 97, 3647, 518, 27609, 4979, 326, 7323, 18, 632, 723, 4007, 30, 385, 95, 1098, 97, 3536, 4007, 63, 20, 65, 273, 374, 18, 3103, 628, 425, 2074, 2434, 18, 2620, 1930, 3982, 5074, 628, 425, 2074, 2434, 18, 2603, 2434, 1930, 3521, 863, 628, 425, 2074, 2434, 18, 21350, 1930, 1930, 67, 2978, 16, 1104, 67, 6400, 225, 775, 30, 468, 6164, 326, 4381, 18, 681, 1973, 273, 702, 3292, 6400, 3546, 468, 5783, 16, 4542, 5907, 18, 364, 508, 316, 681, 1973, 10531, 14542, 309, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5746, 316, 2097, 4953, 2650, 635, 511, 95, 41, 2074, 2434, 43, 5370, 6315, 3240, 5496, 225, 632, 891, 702, 30, 1021, 702, 358, 999, 364, 12516, 7323, 18, 1220, 6104, 4932, 702, 716, 848, 506, 864, 358, 511, 95, 2620, 18, 4870, 5074, 5779, 487, 5492, 487, 326, 1456, 385, 95, 659, 1214, 5779, 1492, 11022, 1625, 326, 876, 353, 5941, 358, 18, 632, 723, 702, 30, 385, 95, 15556, 97, 632, 891, 4007, 30, 1220, 1122, 930, 434, 333, 666, 903, 2 ]
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_size = size;\n") elif name == 'CompressedTexImage2D': file.Write(" uint32 data_size = imageSize;\n") elif name == 'CompressedTexSubImage2D': file.Write(" uint32 data_size = imageSize;\n") elif name == 'TexImage2D': file.Write(" uint32 data_size = GLES2Util::ComputeImageDataSize(\n") file.Write(" width, height, format, type, unpack_alignment_);\n") elif name == 'TexSubImage2D': file.Write(" uint32 data_size = GLES2Util::ComputeImageDataSize(\n") file.Write(" width, height, format, type, unpack_alignment_);\n") else: file.Write("// uint32 data_size = 0; // TODO(gman): get correct size!\n")
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, 508, 273, 1326, 18, 529, 309, 508, 18, 5839, 1918, 2932, 22651, 6, 4672, 508, 273, 508, 63, 20, 30, 17, 29, 65, 309, 508, 422, 296, 1892, 751, 4278, 585, 18, 3067, 2932, 225, 2254, 1578, 501, 67, 1467, 273, 963, 9747, 82, 7923, 1327, 261, 529, 422, 296, 16841, 16733, 2040, 22, 40, 11, 578, 508, 422, 296, 16841, 16733, 1676, 2040, 22, 40, 11, 4672, 585, 18, 3067, 2932, 225, 2254, 1578, 501, 67, 1467, 273, 29344, 9747, 82, 7923, 1327, 508, 422, 296, 16841, 16733, 1676, 2040, 22, 40, 4278, 585, 18, 3067, 2932, 225, 2254, 1578, 501, 67, 1467, 273, 29344, 9747, 82, 7923, 1327, 508, 422, 296, 16733, 2040, 22, 40, 4278, 585, 18, 3067, 2932, 225, 2254, 1578, 501, 67, 1467, 273, 611, 11386, 22, 1304, 2866, 7018, 2040, 29414, 4713, 82, 7923, 585, 18, 3067, 2932, 1377, 1835, 16, 2072, 16, 740, 16, 618, 16, 6167, 67, 14409, 67, 20472, 82, 7923, 1327, 508, 422, 296, 16733, 1676, 2040, 22, 40, 4278, 585, 18, 3067, 2932, 225, 2254, 1578, 501, 67, 1467, 273, 611, 11386, 22, 1304, 2866, 7018, 2040, 29414, 4713, 82, 7923, 585, 18, 3067, 2932, 1377, 1835, 16, 2072, 16, 740, 16, 618, 16, 6167, 67, 14409, 67, 20472, 82, 7923, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 508, 273, 1326, 18, 529, 309, 508, 18, 5839, 1918, 2932, 22651, 6, 4672, 508, 273, 508, 63, 20, 30, 17, 29, 65, 309, 508, 422, 296, 1892, 751, 4278, 585, 18, 3067, 2932, 225, 2254, 1578, 501, 67, 1467, 273, 963, 9747, 82, 7923, 1327, 261, 529, 422, 296, 16841, 16733, 2040, 22, 40, 11, 578, 508, 422, 296, 16841, 16733, 1676, 2040, 22, 40, 11, 4672, 585, 18, 3067, 2932, 225, 2254, 1578, 501, 67, 1467, 273, 29344, 9747, 82, 7923, 1327, 2 ]
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, doc)
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_toc, directory, filename, doc)
def write(self, directory=None): """ Write the documentation to the given directory.
efa53d0cb5b90524e3e4219b8789997f18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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 determined. """ if "sqlite3" in repr(connection): return "sqlite3" if "mysql" in repr(connection): return "mysql" raise TypeError, connection
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, 1021, 810, 353, 279, 2383, 1491, 576, 18, 20, 24820, 1459, 733, 16, 326, 327, 460, 353, 1245, 434, 326, 2064, 315, 19460, 23, 6, 578, 315, 12527, 9654, 225, 20497, 3580, 1347, 326, 2063, 618, 2780, 506, 11383, 18, 3536, 309, 315, 19460, 6, 316, 8480, 12, 4071, 4672, 327, 315, 19460, 6, 309, 315, 12527, 6, 316, 8480, 12, 4071, 4672, 327, 315, 12527, 6, 1002, 3580, 16, 1459, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 353, 279, 2383, 1491, 576, 18, 20, 24820, 1459, 733, 16, 326, 327, 460, 353, 1245, 434, 326, 2064, 315, 19460, 23, 6, 578, 315, 12527, 9654, 225, 20497, 3580, 1347, 326, 2063, 618, 2780, 506, 11383, 18, 3536, 309, 315, 19460, 6, 316, 8480, 12, 4071, 4672, 327, 315, 19460, 6, 309, 315, 12527, 6, 316, 8480, 12, 4071, 4672, 327, 315, 12527, 6, 1002, 3580, 16, 1459, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 5689, 67, 76, 2218, 4482, 2187, 5689, 67, 90, 2218, 3669, 11, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 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, 5689, 67, 76, 2218, 4482, 2187, 5689, 67, 90, 2218, 3669, 11, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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.FileMessage(fp, filename, os.path.join(dir, 'new', fname))
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, 1355, 2853, 12, 529, 13, 5299, 273, 389, 7163, 49, 69, 545, 481, 461, 1435, 1544, 273, 1140, 18, 803, 18, 5701, 12, 1214, 16, 296, 5645, 2187, 5299, 13, 4253, 273, 1696, 12, 3459, 16, 296, 91, 6134, 4253, 18, 2626, 2932, 20813, 329, 17, 774, 30, 8975, 529, 13, 87, 36, 17105, 4308, 13, 87, 64, 82,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 1355, 2853, 12, 529, 13, 5299, 273, 389, 7163, 49, 69, 545, 481, 461, 1435, 1544, 273, 1140, 18, 803, 18, 5701, 12, 1214, 16, 296, 5645, 2187, 5299, 13, 4253, 273, 1696, 12, 3459, 16, 296, 91, 6134, 4253, 18, 2626, 2932, 20813, 329, 17, 774, 30, 8975, 529, 13, 87, 36, 17105, 4308, 13, 87, 64, 82, 6, 738, 4153, 10756, 327, 4791, 18, 812, 1079, 12, 7944, 16, 1544, 16, 1140, 18, 803, 18, 5701, 12, 1214, 16, 296, 2704, 2 ]
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. This can be a good idea when dot is in the middle of a larger graph, because the types of gx and gy will match those of x and y. This conversion might be annoying if the gradients are graph outputs though, hence this mask. """ def __init__(self, *args, **kwargs): gof.op.Op.__init__(self, **kwargs) self.grad_preserves_dense = [True, True] def gen_outputs(self): return [SparseR()] def impl(x,y): if hasattr(x, 'getnnz'): return x.dot(y) else: return y.transpose().dot(x.transpose()).transpose() def grad(self, x, y, gz): rval = [dot(gz, y.T), dot(x.T, gz)] for i in 0,1: if not isinstance(self.inputs[i], SparseR): if self.grad_preserves_dense[i]: rval[i] = dense_from_sparse(rval[i]) return rval
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 keys = [key for key in data if key.startswith(prefix)] # Clean up 'pootle.fullname' into 'pootle' projs = set([key[len(prefix):].split('.')[0] for key in keys]) for proj in map(lambda s: unicode(s, 'utf-8'), projs): # id, for free # code: try: db_proj = Project.objects.get(code=proj) logging.log(logging.INFO, 'Already found a project named %s. '\ 'Data for this project are not imported.', proj) continue except Project.DoesNotExist: db_proj = Project(code=proj) # fullname db_proj.fullname = _get_attribute(data, proj, 'fullname') # description db_proj.description = _get_attribute(data, proj, 'description') # checkstyle db_proj.checkstyle = _get_attribute(data, proj, 'checkstyle', unicode_me = False) # localfiletype db_proj.localfiletype = _get_attribute(data, proj, 'localfiletype', default='po') # createmofiles? db_proj.createmofiles = try_type(bool, _get_attribute(data, proj, 'createmofiles', unicode_me=False, default=0)) # treestyle db_proj.treestyle = _get_attribute(data, proj, 'treestyle', unicode_me = False, default='auto') # ignoredfiles db_proj.ignoredfiles = _get_attribute(data, proj, 'ignoredfiles', default=u'') db_proj.save()
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, 3096, 326, 10137, 358, 326, 394, 453, 1632, 298, 2383, 316, 326, 3311, 6484, 1199, 225, 501, 273, 2707, 67, 892, 16186, 3085, 972, 6315, 24326, 468, 2585, 333, 8654, 326, 2145, 4031, 35, 1633, 273, 296, 52, 1632, 298, 18, 13582, 1093, 225, 468, 4008, 596, 640, 9243, 1311, 1311, 273, 306, 856, 364, 498, 316, 501, 309, 498, 18, 17514, 1918, 12, 3239, 25887, 225, 468, 9645, 731, 296, 1631, 352, 298, 18, 21885, 11, 1368, 296, 1631, 352, 298, 11, 450, 2924, 273, 444, 3816, 856, 63, 1897, 12, 3239, 4672, 8009, 4939, 2668, 1093, 25146, 20, 65, 364, 498, 316, 1311, 5717, 225, 364, 10296, 316, 852, 12, 14661, 272, 30, 5252, 12, 87, 16, 296, 3158, 17, 28, 19899, 450, 2924, 4672, 468, 612, 16, 364, 4843, 468, 981, 30, 775, 30, 1319, 67, 17995, 273, 5420, 18, 6911, 18, 588, 12, 710, 33, 17995, 13, 2907, 18, 1330, 12, 11167, 18, 5923, 16, 296, 9430, 1392, 279, 1984, 4141, 738, 87, 18, 2337, 296, 751, 364, 333, 1984, 854, 486, 9101, 1093, 16, 10296, 13, 1324, 1335, 5420, 18, 15264, 30, 1319, 67, 17995, 273, 5420, 12, 710, 33, 17995, 13, 225, 468, 13321, 1319, 67, 17995, 18, 21885, 273, 389, 588, 67, 4589, 12, 892, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3096, 326, 10137, 358, 326, 394, 453, 1632, 298, 2383, 316, 326, 3311, 6484, 1199, 225, 501, 273, 2707, 67, 892, 16186, 3085, 972, 6315, 24326, 468, 2585, 333, 8654, 326, 2145, 4031, 35, 1633, 273, 296, 52, 1632, 298, 18, 13582, 1093, 225, 468, 4008, 596, 640, 9243, 1311, 1311, 273, 306, 856, 364, 498, 316, 501, 309, 498, 18, 17514, 1918, 12, 3239, 25887, 225, 468, 9645, 731, 296, 1631, 352, 298, 18, 21885, 11, 1368, 296, 1631, 352, 298, 11, 450, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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) @param col_name_b: name of second column (y-axis) @param plot_type: One of 'linear' (default) ,'logx','logy','loglog','seconds' @param plot_sym : Symbol for plot, default 'kx' @param plot_name: Name for the plot in the legend @param output_name: If given, save the plot, with output_name as prefix @param ifo: Name of ifo @param x_min: Minimum value of x axis @param x_max: Maximum value of x axis """ if not ifo and len(table): if ("ifo" in table.validcolumns.keys()): ifo = table[0].ifo col_a = readcol(table, col_name_a, ifo ) col_b = readcol(table, col_name_b, ifo ) if plot_type != 'seconds': if 'time' in col_name_a: col_a = timeindays(col_a) if 'time' in col_name_b: col_b = timeindays(col_b) if (plot_type == 'linear') or (plot_type == 'seconds'): plot(col_a, col_b, plot_sym, markersize=12,markeredgewidth=1,\ markerfacecolor=None, label = plot_label) elif plot_type == 'logx': semilogx(col_a, col_b, plot_sym, markersize=12,markeredgewidth=1,\ markerfacecolor=None, label = plot_label) elif plot_type == 'logy': semilogy(col_a, col_b, plot_sym, markersize=12,markeredgewidth=1,\ markerfacecolor=None, label = plot_label) elif plot_type == 'loglog': loglog(col_a, col_b, plot_sym, markersize=12,markeredgewidth=1,\ markerfacecolor=None, label = plot_label) xlim(0.95 * min(col_a), 1.05 * max(col_a)) ylim(0.95 * min(col_b), 1.05 * max(col_b)) xlabel(col_name_a.replace("_"," "),size='x-large') ylabel(col_name_b.replace("_"," "),size='x-large') xticks(fontsize='x-large') yticks(fontsize='x-large') if ifo: title(ifo + ' ' + col_name_a.replace("_"," ") + ' vs ' + \ col_name_b.replace("_"," "), size='x-large') else: title(col_name_b.replace("_"," ") + ' vs ' + col_name_a.replace("_"," "), \ size='x-large') grid(True) if plot_label: legend() if x_min: xlim(xmin=x_min) if x_max: xlim(xmax=x_max) if output_name: if ifo: output_name += '_' + ifo output_name += '_' + col_name_a + '_vs_' + col_name_b + '.png' savefig(output_name)
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, 67, 1925, 273, 599, 16, 876, 67, 529, 273, 599, 16, 21479, 273, 599, 16, 619, 67, 1154, 273, 599, 16, 619, 67, 1896, 273, 599, 4672, 3536, 445, 358, 3207, 326, 924, 434, 645, 67, 529, 67, 69, 6195, 645, 67, 529, 67, 70, 628, 326, 1014, 225, 632, 891, 1014, 30, 11651, 1388, 632, 891, 645, 67, 529, 67, 69, 30, 508, 434, 1122, 1057, 261, 92, 17, 4890, 13, 632, 891, 645, 67, 529, 67, 70, 30, 508, 434, 2205, 1057, 261, 93, 17, 4890, 13, 632, 891, 3207, 67, 723, 30, 6942, 434, 296, 12379, 11, 261, 1886, 13, 269, 11, 1330, 92, 17023, 1330, 93, 17023, 1330, 1330, 17023, 7572, 11, 632, 891, 3207, 67, 8117, 294, 8565, 364, 3207, 16, 805, 296, 79, 92, 11, 632, 891, 3207, 67, 529, 30, 1770, 364, 326, 3207, 316, 326, 7241, 632, 891, 876, 67, 529, 30, 971, 864, 16, 1923, 326, 3207, 16, 598, 876, 67, 529, 487, 1633, 632, 891, 21479, 30, 1770, 434, 21479, 632, 891, 619, 67, 1154, 30, 23456, 460, 434, 619, 2654, 632, 891, 619, 67, 1896, 30, 18848, 460, 434, 619, 2654, 3536, 309, 486, 21479, 471, 562, 12, 2121, 4672, 309, 7566, 20299, 6, 316, 1014, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 1925, 273, 599, 16, 876, 67, 529, 273, 599, 16, 21479, 273, 599, 16, 619, 67, 1154, 273, 599, 16, 619, 67, 1896, 273, 599, 4672, 3536, 445, 358, 3207, 326, 924, 434, 645, 67, 529, 67, 69, 6195, 645, 67, 529, 67, 70, 628, 326, 1014, 225, 632, 891, 1014, 30, 11651, 1388, 632, 891, 645, 67, 529, 67, 69, 30, 508, 434, 1122, 1057, 261, 92, 17, 4890, 13, 632, 891, 645, 67, 529, 67, 70, 30, 2 ]
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, 273, 365, 18, 94, 4669, 24182, 1815, 5248, 3140, 1138, 273, 8596, 1138, 12, 2890, 16, 5248, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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, 273, 365, 18, 94, 4669, 24182, 1815, 5248, 3140, 1138, 273, 8596, 1138, 12, 2890, 16, 5248, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"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, 18, 896, 3548, 13332, 309, 980, 18, 17514, 1918, 2932, 759, 5790, 30, 2561, 315, 4672, 365, 18, 31417, 273, 980, 63, 3600, 30, 8009, 4939, 2932, 9369, 7314, 18, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 18, 896, 3548, 13332, 309, 980, 18, 17514, 1918, 2932, 759, 5790, 30, 2561, 315, 4672, 365, 18, 31417, 273, 980, 63, 3600, 30, 8009, 4939, 2932, 9369, 7314, 18, 4412, 1435, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 273, 3821, 18, 2681, 16, 599, 268, 273, 2110, 2656, 18, 4146, 1810, 12, 2681, 13, 3821, 18, 88, 273, 268, 1562, 1810, 67, 869, 67, 11571, 1810, 63, 88, 65, 273, 3821, 268, 18, 8401, 30857, 1968, 16, 2826, 9987, 13, 563, 273, 268, 18, 2681, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 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, 273, 3821, 18, 2681, 16, 599, 268, 273, 2110, 2656, 18, 4146, 1810, 12, 2681, 13, 3821, 18, 88, 273, 268, 1562, 1810, 67, 869, 67, 11571, 1810, 63, 88, 65, 273, 3821, 268, 18, 8401, 30857, 1968, 16, 2826, 9987, 13, 563, 273, 268, 18, 2681, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 Info.ModuleType == 'BASE': if len(ConstructorList) == 0: AutoGenC.Append(gLibraryString[0], Dict) else: AutoGenC.Append(gLibraryString[3], Dict) elif Info.ModuleType in ['PEI_CORE','PEIM']: if len(ConstructorList) == 0: AutoGenC.Append(gLibraryString[1], Dict) else: AutoGenC.Append(gLibraryString[4], Dict) elif Info.ModuleType in ['DXE_CORE','DXE_DRIVER','DXE_SMM_DRIVER','DXE_RUNTIME_DRIVER','DXE_SAL_DRIVER','UEFI_DRIVER','UEFI_APPLICATION']: if len(ConstructorList) == 0: AutoGenC.Append(gLibraryString[2], Dict) else: AutoGenC.Append(gLibraryString[5], Dict)
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, 316, 3807, 18, 18571, 9313, 682, 30, 309, 562, 12, 5664, 18, 6293, 682, 13, 1648, 374, 30, 1324, 11417, 682, 18, 14313, 12, 5664, 18, 6293, 682, 13, 225, 9696, 273, 13666, 559, 11, 2497, 6293, 2187, 296, 2083, 4278, 6293, 682, 97, 309, 3807, 18, 3120, 559, 422, 296, 8369, 4278, 309, 562, 12, 6293, 682, 13, 422, 374, 30, 8064, 7642, 39, 18, 5736, 12, 75, 9313, 780, 63, 20, 6487, 9696, 13, 469, 30, 8064, 7642, 39, 18, 5736, 12, 75, 9313, 780, 63, 23, 6487, 9696, 13, 1327, 3807, 18, 3120, 559, 316, 10228, 1423, 45, 67, 15715, 17023, 1423, 3445, 3546, 30, 8064, 7642, 39, 18, 5736, 12, 75, 9313, 780, 3292, 1423, 45, 17337, 9696, 13, 1327, 3807, 18, 3120, 559, 316, 10228, 28826, 41, 67, 15715, 17023, 28826, 41, 67, 27720, 17023, 28826, 41, 67, 7303, 49, 67, 27720, 17023, 28826, 41, 67, 54, 25375, 67, 27720, 17023, 28826, 41, 67, 55, 1013, 67, 27720, 17023, 1821, 1653, 67, 27720, 17023, 1821, 1653, 67, 25039, 3546, 30, 309, 562, 12, 6293, 682, 13, 422, 374, 30, 8064, 7642, 39, 18, 5736, 12, 75, 9313, 780, 63, 22, 6487, 9696, 13, 469, 30, 8064, 7642, 39, 18, 5736, 12, 75, 9313, 780, 63, 25, 6487, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 316, 3807, 18, 18571, 9313, 682, 30, 309, 562, 12, 5664, 18, 6293, 682, 13, 1648, 374, 30, 1324, 11417, 682, 18, 14313, 12, 5664, 18, 6293, 682, 13, 225, 9696, 273, 13666, 559, 11, 2497, 6293, 2187, 296, 2083, 4278, 6293, 682, 97, 309, 3807, 18, 3120, 559, 422, 296, 8369, 4278, 309, 562, 12, 6293, 682, 13, 422, 374, 30, 8064, 7642, 39, 18, 5736, 12, 75, 9313, 780, 63, 20, 6487, 9696, 13, 469, 30, 8064, 7642, 39, 18, 5736, 12, 2 ]
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, 17879, 18, 3797, 8300, 18, 588, 4064, 892, 1435, 327, 1520, 892, 18, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 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, 17879, 18, 3797, 8300, 18, 588, 4064, 892, 1435, 327, 1520, 892, 18, 2906, 723, 67, 792, 67, 4064, 67, 1132, 469, 30, 327, 14898, 12, 9413, 921, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 ]
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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 2201, 33, 7036, 4672, 365, 18, 3278, 67, 718, 273, 1156, 67, 718, 365, 18, 3278, 67, 3085, 273, 1156, 67, 3085, 365, 18, 718, 273, 599, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
@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: <cleanup> """ def helper(*args, **kwds): return GeneratorContext(func(*args, **kwds)) try: helper.__name__ = func.__name__ helper.__doc__ = func.__doc__ helper.__dict__ = func.__dict__ except: pass return helper
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, 411, 1132, 34, 3095, 30, 411, 16732, 34, 225, 1220, 7297, 333, 30, 225, 598, 2690, 67, 8812, 12, 32, 7099, 23429, 487, 411, 6105, 28593, 411, 3432, 34, 225, 7680, 358, 333, 30, 225, 411, 8401, 34, 775, 30, 411, 6105, 34, 273, 411, 1132, 34, 411, 3432, 34, 3095, 30, 411, 16732, 34, 225, 3536, 1652, 4222, 30857, 1968, 16, 2826, 25577, 4672, 327, 10159, 1042, 12, 644, 30857, 1968, 16, 2826, 25577, 3719, 775, 30, 4222, 16186, 529, 972, 273, 1326, 16186, 529, 972, 4222, 16186, 2434, 972, 273, 1326, 16186, 2434, 972, 4222, 16186, 1576, 972, 273, 1326, 16186, 1576, 972, 1335, 30, 1342, 327, 4222, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 225, 598, 2690, 67, 8812, 12, 32, 7099, 23429, 487, 411, 6105, 28593, 411, 3432, 34, 225, 7680, 358, 333, 30, 225, 411, 8401, 34, 775, 30, 411, 6105, 34, 273, 411, 1132, 34, 411, 3432, 34, 3095, 30, 411, 16732, 34, 225, 3536, 1652, 4222, 30857, 1968, 16, 2826, 25577, 4672, 327, 10159, 1042, 12, 644, 30857, 1968, 16, 2826, 25577, 3719, 775, 30, 4222, 16186, 529, 972, 273, 2 ]
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, 77, 16, 1147, 13, 316, 358, 67, 2079, 30, 268, 63, 77, 65, 273, 1147, 320, 273, 740, 12, 88, 16, 605, 15774, 5074, 12, 15620, 55, 18, 3266, 67, 9068, 3719, 365, 18, 24638, 18, 8501, 12, 17782, 16, 1059, 13, 852, 12, 2890, 18, 12946, 16, 320, 18, 4939, 2668, 64, 92, 3028, 26112, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 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, 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, 77, 16, 1147, 13, 316, 358, 67, 2079, 30, 268, 63, 77, 65, 273, 1147, 320, 273, 740, 12, 88, 16, 605, 15774, 5074, 12, 15620, 55, 18, 3266, 67, 9068, 3719, 365, 18, 24638, 18, 8501, 12, 17782, 16, 1059, 13, 852, 12, 2890, 18, 12946, 16, 320, 18, 4939, 2668, 64, 92, 3028, 26112, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print >> 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 printed only whenever the Exception type is not containing the word Invenio @param stream: 'error' or 'warning' @param req = mod_python request @param prefix a message to be printed before the exception in the log @param suffix a message to be printed before the exception in the log @return 1 if successfully wrote to stream, 0 if not """ try: exc_info = sys.exc_info() if exc_info[0]: if stream=='error': stream='err' else: stream='log' stream_to_write = open(logdir + '/invenio.' + stream, 'a') # <type 'exceptions.StandardError'> -> exceptions.StandardError exc_name = str(exc_info[0])[7:-2] # exceptions.StandardError -> StandardError exc_name = exc_name.split('.')[-1] exc_value = str(exc_info[1]) print >> stream_to_write, "%(time)s -> %(name)s %(value)s" % { 'time' : time.strftime("%Y-%m-%d %H:%M:%S"), 'name' : exc_name, 'value' : exc_value } if prefix: print >> stream_to_write, prefix print >> stream_to_write, get_pretty_wide_client_info(req) if not exc_name.startswith('Invenio') or force_stack: tracestack = traceback.extract_stack()[-5:-2] #force traceback except for this call tracestack_pretty = "%sForced traceback (most recent call last)" % (' '*4,) for trace_tuple in tracestack: tracestack_pretty += """ File "%(file)s", line %(line)s, in %(function)s %(text)s""" % \ { 'file' : trace_tuple[0], 'line' : trace_tuple[1], 'function' : trace_tuple[2], 'text' : trace_tuple[3] is not None and str(trace_tuple[3]) or "" } print >> stream_to_write, tracestack_pretty traceback.print_exception(exc_info[0], exc_info[1], exc_info[2], None, stream_to_write) if suffix: print >> stream_to_write, suffix print >> stream_to_write, '\n' stream_to_write.close() return 1 else: return 0 except Exception, e: print >> sys.stderr, "Error in registering exception to '%s': '%s'" % (logdir + '/invenio.' + stream, e) return 0
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, 370, 471, 3436, 1520, 358, 2198, 275, 1594, 18, 1330, 1334, 903, 506, 7545, 598, 1004, 1779, 261, 430, 1111, 353, 864, 13, 225, 632, 891, 2944, 67, 3772, 30, 1347, 1053, 2110, 353, 3712, 14099, 16, 1323, 1347, 1083, 16, 2110, 353, 14099, 1338, 17334, 326, 1185, 618, 353, 486, 4191, 326, 2076, 657, 3995, 1594, 225, 632, 891, 1407, 30, 296, 1636, 11, 578, 296, 8551, 11, 225, 632, 891, 1111, 273, 681, 67, 8103, 590, 225, 632, 891, 1633, 279, 883, 358, 506, 14099, 1865, 326, 1520, 316, 326, 613, 225, 632, 891, 3758, 279, 883, 358, 506, 14099, 1865, 326, 1520, 316, 326, 613, 225, 632, 2463, 404, 309, 4985, 341, 21436, 358, 1407, 16, 374, 309, 486, 3536, 775, 30, 3533, 67, 1376, 273, 225, 2589, 18, 10075, 67, 1376, 1435, 309, 3533, 67, 1376, 63, 20, 14542, 309, 1407, 18920, 1636, 4278, 1407, 2218, 370, 11, 469, 30, 1407, 2218, 1330, 11, 1407, 67, 869, 67, 2626, 273, 1696, 12, 1330, 1214, 397, 1173, 267, 3995, 1594, 1093, 397, 1407, 16, 296, 69, 6134, 468, 411, 723, 296, 11855, 18, 8336, 668, 29256, 317, 4798, 18, 8336, 668, 3533, 67, 529, 273, 609, 12, 10075, 67, 1376, 63, 20, 5717, 63, 27, 30, 17, 22, 65, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 370, 471, 3436, 1520, 358, 2198, 275, 1594, 18, 1330, 1334, 903, 506, 7545, 598, 1004, 1779, 261, 430, 1111, 353, 864, 13, 225, 632, 891, 2944, 67, 3772, 30, 1347, 1053, 2110, 353, 3712, 14099, 16, 1323, 1347, 1083, 16, 2110, 353, 14099, 1338, 17334, 326, 1185, 618, 353, 486, 4191, 326, 2076, 657, 3995, 1594, 225, 632, 891, 1407, 30, 296, 1636, 11, 578, 296, 8551, 11, 225, 632, 891, 1111, 273, 681, 67, 8103, 590, 225, 632, 891, 1633, 279, 883, 2 ]
'--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': runChandler = 'RunChandler.bat' else: runChandler = 'RunChandler' if releaseMode == 'debug': runChandler = os.path.join(chandlerDir, 'debug', runChandler) elif releaseMode == 'release': runChandler = os.path.join(chandlerDir, 'release', runChandler) os.chdir(chandlerDir) try: print "Running %s Functional Tests" % releaseMode log.write(separator) log.write("Running %s Functional Tests ...\n" % releaseMode) try: os.remove(chandlerLog) except OSError: pass args = [runChandler, '--create', '--nocatch', '--profileDir=%s' % logDir, '--parcelPath=tools/QATestScripts/DataFiles', '--scriptTimeout=600', '--scriptFile=tools/cats/Functional/FunctionalTestSuite.py', # '--chandlerTestLogfile=FunctionalTestSuite.log', #new framework defaults to no log without this '--chandlerTestDebug=1', '--chandlerTestMask=0',] outputList = hardhatutil.executeCommandReturnOutput(args) for line in outputList: if line.find('#TINDERBOX# Status = FAIL') >= 0 or \ line.find('#TINDERBOX# Status = UNCHECKED') >= 0: raise hardhatutil.ExternalCommandErrorWithOutputList([0, outputList]) hardhatutil.dumpOutputList(outputList, log) dumpTestLogs(log, chandlerLog, FuncTestLog) except hardhatutil.ExternalCommandErrorWithOutputList, e: print "functional tests failed", e log.write("***Error during functional tests***\n") hardhatutil.dumpOutputList(e.outputList, log) dumpTestLogs(log, chandlerLog, FuncTestLog, e.args) forceBuildNextCycle(log, workingDir) return "test_failed" except Exception, e: print "functional tests failed", e log.write("***Error during functional tests***\n") log.write("Exception:\n") log.write(str(e) + "\n") forceBuildNextCycle(log, workingDir) return "test_failed" else: log.write("Functional tests exit code=0\n") return "success"
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, 273, 1140, 18, 803, 18, 5701, 12, 343, 464, 749, 1621, 16, 296, 3813, 67, 5040, 6134, 462, 464, 749, 1343, 273, 1140, 18, 803, 18, 5701, 12, 1330, 1621, 16, 1377, 296, 343, 464, 749, 18, 1330, 6134, 6165, 4709, 1343, 273, 1140, 18, 803, 18, 5701, 12, 1330, 1621, 16, 1377, 296, 2083, 287, 4709, 13587, 18, 1330, 6134, 225, 309, 1361, 3074, 3292, 538, 3546, 422, 296, 8082, 4278, 1086, 782, 464, 749, 273, 296, 1997, 782, 464, 749, 18, 28260, 11, 469, 30, 1086, 782, 464, 749, 273, 296, 1997, 782, 464, 749, 11, 225, 309, 3992, 2309, 422, 296, 4148, 4278, 1086, 782, 464, 749, 273, 1140, 18, 803, 18, 5701, 12, 343, 464, 749, 1621, 16, 296, 4148, 2187, 1086, 782, 464, 749, 13, 1327, 3992, 2309, 422, 296, 9340, 4278, 1086, 782, 464, 749, 273, 1140, 18, 803, 18, 5701, 12, 343, 464, 749, 1621, 16, 296, 9340, 2187, 1086, 782, 464, 749, 13, 225, 1140, 18, 343, 1214, 12, 343, 464, 749, 1621, 13, 225, 775, 30, 1172, 315, 7051, 738, 87, 4284, 287, 7766, 87, 6, 738, 3992, 2309, 613, 18, 2626, 12, 11287, 13, 613, 18, 2626, 2932, 7051, 738, 87, 4284, 287, 7766, 87, 1372, 64, 82, 6, 738, 3992, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 273, 1140, 18, 803, 18, 5701, 12, 343, 464, 749, 1621, 16, 296, 3813, 67, 5040, 6134, 462, 464, 749, 1343, 273, 1140, 18, 803, 18, 5701, 12, 1330, 1621, 16, 1377, 296, 343, 464, 749, 18, 1330, 6134, 6165, 4709, 1343, 273, 1140, 18, 803, 18, 5701, 12, 1330, 1621, 16, 1377, 296, 2083, 287, 4709, 13587, 18, 1330, 6134, 225, 309, 1361, 3074, 3292, 538, 3546, 422, 296, 8082, 4278, 1086, 782, 464, 749, 273, 296, 1997, 782, 464, 749, 18, 2 ]
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] # TZI contains a structure of time zone information and is similar to # TIME_ZONE_INFORMATION described in the Windows Platform SDK winTZI, type = _winreg.QueryValueEx( key, "TZI" ) winTZI = struct.unpack( '3l8h8h', winTZI ) makeMinuteTimeDelta = lambda x: datetime.timedelta( minutes = x ) self.bias, self.standardBiasOffset, self.daylightBiasOffset = \ map( makeMinuteTimeDelta, winTZI[:3] ) # daylightEnd and daylightStart are 8-tuples representing a Win32 SYSTEMTIME structure self.daylightEnd, self.daylightStart = winTZI[3:11], winTZI[11:19] self._LoadDynamicInfoFromKey( key )
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, 461, 273, 389, 8082, 1574, 18, 1138, 620, 424, 12, 498, 16, 315, 4236, 6, 262, 63, 20, 65, 365, 18, 10005, 461, 273, 389, 8082, 1574, 18, 1138, 620, 424, 12, 498, 16, 315, 10436, 6, 262, 63, 20, 65, 365, 18, 2881, 5099, 461, 273, 389, 8082, 1574, 18, 1138, 620, 424, 12, 498, 16, 315, 40, 5618, 6, 262, 63, 20, 65, 468, 399, 62, 45, 1914, 279, 3695, 434, 813, 4157, 1779, 471, 353, 7281, 358, 468, 225, 8721, 67, 20725, 67, 706, 23805, 11893, 316, 326, 8202, 11810, 3881, 5657, 21647, 45, 16, 618, 273, 389, 8082, 1574, 18, 1138, 620, 424, 12, 498, 16, 315, 21647, 45, 6, 262, 5657, 21647, 45, 273, 1958, 18, 17309, 12, 296, 23, 80, 28, 76, 28, 76, 2187, 5657, 21647, 45, 262, 1221, 18329, 950, 9242, 273, 3195, 619, 30, 3314, 18, 31295, 12, 6824, 273, 619, 262, 365, 18, 13931, 16, 365, 18, 10005, 31645, 2335, 16, 365, 18, 2881, 5099, 31645, 2335, 273, 521, 852, 12, 1221, 18329, 950, 9242, 16, 4085, 10531, 23, 65, 262, 468, 2548, 5099, 1638, 471, 2548, 5099, 1685, 854, 1725, 17, 17705, 5123, 279, 21628, 1578, 18786, 4684, 3695, 365, 18, 2881, 5099, 1638, 16, 365, 18, 2881, 5099, 1685, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 461, 273, 389, 8082, 1574, 18, 1138, 620, 424, 12, 498, 16, 315, 4236, 6, 262, 63, 20, 65, 365, 18, 10005, 461, 273, 389, 8082, 1574, 18, 1138, 620, 424, 12, 498, 16, 315, 10436, 6, 262, 63, 20, 65, 365, 18, 2881, 5099, 461, 273, 389, 8082, 1574, 18, 1138, 620, 424, 12, 498, 16, 315, 40, 5618, 6, 262, 63, 20, 65, 468, 399, 62, 45, 1914, 279, 3695, 434, 813, 4157, 1779, 471, 353, 7281, 358, 468, 225, 8721, 2 ]
], 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, 67, 12, 7745, 21, 67, 350, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
. 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 12, 2890, 18, 8109, 2697, 1435, 63, 20, 5717, 2153, 18, 1935, 273, 365, 18, 1935, 18, 291, 11454, 1435, 309, 3859, 12, 2890, 11189, 71, 683, 11, 4672, 2153, 18, 71, 683, 273, 365, 18, 71, 683, 18, 1132, 1435, 469, 30, 2153, 18, 71, 683, 273, 374, 327, 2153, 469, 30, 327, 599, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 12, 2890, 18, 8109, 2697, 1435, 63, 20, 5717, 2153, 18, 1935, 273, 365, 18, 1935, 18, 291, 11454, 1435, 309, 3859, 12, 2890, 11189, 71, 683, 11, 4672, 2153, 18, 71, 683, 273, 365, 18, 71, 683, 18, 1132, 1435, 469, 30, 2153, 18, 71, 683, 273, 374, 327, 2153, 469, 30, 327, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
""" 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 cmd list cmdlist = self.commands[self.commands_bnum] if (arg): cmdlist.append(cmd+' '+arg) else: cmdlist.append(cmd) # Determine if we must stop try: func = getattr(self, 'do_' + cmd) except AttributeError: func = self.default # one of the resuming commands if func.__name__ in self.commands_resuming: self.commands_doprompt[self.commands_bnum] = False self.cmdqueue = [] return 1 return
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, 1797, 422, 296, 21862, 4278, 365, 18, 7847, 67, 21862, 63, 2890, 18, 7847, 67, 70, 2107, 65, 273, 1053, 327, 468, 1324, 358, 1640, 1308, 1797, 1652, 316, 326, 1797, 666, 1327, 1797, 422, 296, 409, 4278, 365, 18, 4172, 4000, 273, 5378, 327, 404, 468, 679, 434, 1797, 666, 1797, 1098, 273, 365, 18, 7847, 63, 2890, 18, 7847, 67, 70, 2107, 65, 309, 261, 3175, 4672, 1797, 1098, 18, 6923, 12, 4172, 6797, 15126, 3175, 13, 469, 30, 1797, 1098, 18, 6923, 12, 4172, 13, 468, 10229, 309, 732, 1297, 2132, 775, 30, 1326, 273, 3869, 12, 2890, 16, 296, 2896, 4623, 397, 1797, 13, 1335, 6394, 30, 1326, 273, 365, 18, 1886, 468, 1245, 434, 326, 400, 21249, 4364, 309, 1326, 16186, 529, 972, 316, 365, 18, 7847, 67, 455, 21249, 30, 365, 18, 7847, 67, 72, 556, 8645, 63, 2890, 18, 7847, 67, 70, 2107, 65, 273, 1083, 365, 18, 4172, 4000, 273, 5378, 327, 404, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 1797, 422, 296, 21862, 4278, 365, 18, 7847, 67, 21862, 63, 2890, 18, 7847, 67, 70, 2107, 65, 273, 1053, 327, 468, 1324, 358, 1640, 1308, 1797, 1652, 316, 326, 1797, 666, 1327, 1797, 422, 296, 409, 4278, 365, 18, 4172, 4000, 273, 5378, 327, 404, 468, 679, 434, 1797, 666, 1797, 1098, 273, 365, 18, 7847, 63, 2890, 18, 7847, 67, 70, 2107, 65, 309, 261, 3175, 4672, 1797, 1098, 18, 6923, 12, 4172, 6797, 15126, 3175, 13, 469, 30, 1797, 1098, 2 ]
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, 3011, 12, 3011, 13, 327, 1308, 16186, 74, 383, 517, 427, 972, 12, 2890, 16, 819, 33, 2472, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 3011, 12, 3011, 13, 327, 1308, 16186, 74, 383, 517, 427, 972, 12, 2890, 16, 819, 33, 2472, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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("democracyplayer")
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, 6339, 6, 3719, 24972, 18, 955, 4308, 2932, 19117, 504, 354, 2431, 14872, 7923, 24972, 18, 4376, 67, 955, 4308, 67, 7000, 278, 2932, 19117, 504, 354, 2431, 14872, 15937, 5159, 17, 28, 7923, 22718, 18, 7043, 2486, 18, 4376, 955, 4308, 2932, 19117, 504, 354, 2431, 14872, 3113, 1058, 18, 803, 2932, 16644, 6339, 6, 3719, 22718, 18, 7043, 2486, 18, 955, 4308, 2932, 19117, 504, 354, 2431, 14872, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 6339, 6, 3719, 24972, 18, 955, 4308, 2932, 19117, 504, 354, 2431, 14872, 7923, 24972, 18, 4376, 67, 955, 4308, 67, 7000, 278, 2932, 19117, 504, 354, 2431, 14872, 15937, 5159, 17, 28, 7923, 22718, 18, 7043, 2486, 18, 4376, 955, 4308, 2932, 19117, 504, 354, 2431, 14872, 3113, 1058, 18, 803, 2932, 16644, 6339, 6, 3719, 22718, 18, 7043, 2486, 18, 955, 4308, 2932, 19117, 504, 354, 2431, 14872, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 576, 422, 374, 30, 3724, 7118, 12443, 92, 380, 3827, 1467, 380, 374, 18, 5877, 397, 374, 18, 2947, 380, 3827, 1467, 16, 677, 380, 3827, 1467, 380, 4233, 18, 24492, 12, 23, 13176, 22, 3631, 3827, 1467, 380, 374, 18, 10689, 13, 469, 30, 3724, 7118, 12443, 92, 380, 3827, 1467, 380, 374, 18, 5877, 397, 374, 18, 2947, 16, 677, 380, 3827, 1467, 380, 4233, 18, 24492, 12, 23, 13176, 22, 397, 4233, 18, 24492, 12, 23, 13176, 24, 3631, 3827, 1467, 380, 374, 18, 10689, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 576, 422, 374, 30, 3724, 7118, 12443, 92, 380, 3827, 1467, 380, 374, 18, 5877, 397, 374, 18, 2947, 380, 3827, 1467, 16, 677, 380, 3827, 1467, 380, 4233, 18, 24492, 12, 23, 13176, 22, 3631, 3827, 1467, 380, 374, 18, 10689, 13, 469, 30, 3724, 7118, 12443, 92, 380, 3827, 1467, 380, 374, 18, 5877, 397, 374, 18, 2947, 16, 677, 380, 3827, 1467, 380, 4233, 18, 24492, 12, 23, 13176, 22, 397, 4233, 18, 24492, 12, 23, 13176, 24, 3631, 3827, 2 ]
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] nodeType = child.nodeType if nodeType == xml.dom.core.ELEMENT: if child.tagName in BREAK_ELEMENTS: after = j break elif nodeType == xml.dom.core.TEXT: pos = string.find(child.data, "\n\n") if pos == 0: after = j break if pos >= 1: child.splitText(pos) break else: have_last = 1 if children[after - 1].nodeType == xml.dom.core.TEXT: # we may need to split off trailing white space: child = children[after - 1] data = child.data if string.rstrip(data) != data: have_last = 0 child.splitText(len(string.rstrip(data))) children = parent.childNodes para = doc.createElement("para") prev = None indexes = range(start, after) indexes.reverse() for j in indexes: node = children[j] parent.removeChild(node) para.insertBefore(node, prev) prev = node if have_last: parent.appendChild(para) else: parent.insertBefore(para, parent.childNodes[start])
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, 468, 3939, 37, 67, 10398, 67, 10976, 353, 1392, 18, 1839, 273, 787, 397, 404, 1240, 67, 2722, 273, 374, 605, 22176, 67, 10976, 55, 273, 3939, 37, 67, 10398, 67, 10976, 55, 397, 8563, 3079, 67, 2778, 37, 67, 10976, 55, 364, 525, 316, 1048, 12, 1937, 16, 277, 4672, 1839, 273, 525, 397, 404, 1151, 273, 2325, 63, 78, 65, 9507, 273, 1151, 18, 2159, 559, 309, 9507, 422, 2025, 18, 9859, 18, 3644, 18, 10976, 30, 309, 1151, 18, 2692, 461, 316, 605, 22176, 67, 10976, 55, 30, 1839, 273, 525, 898, 1327, 9507, 422, 2025, 18, 9859, 18, 3644, 18, 5151, 30, 949, 273, 533, 18, 4720, 12, 3624, 18, 892, 16, 1548, 82, 64, 82, 7923, 309, 949, 422, 374, 30, 1839, 273, 525, 898, 309, 949, 1545, 404, 30, 1151, 18, 4939, 1528, 12, 917, 13, 898, 469, 30, 1240, 67, 2722, 273, 404, 309, 2325, 63, 5205, 300, 404, 8009, 2159, 559, 422, 2025, 18, 9859, 18, 3644, 18, 5151, 30, 468, 732, 2026, 1608, 358, 1416, 3397, 7341, 9578, 3476, 30, 1151, 273, 2325, 63, 5205, 300, 404, 65, 501, 273, 1151, 18, 892, 309, 533, 18, 86, 6406, 12, 892, 13, 480, 501, 30, 1240, 67, 2722, 273, 374, 1151, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 468, 3939, 37, 67, 10398, 67, 10976, 353, 1392, 18, 1839, 273, 787, 397, 404, 1240, 67, 2722, 273, 374, 605, 22176, 67, 10976, 55, 273, 3939, 37, 67, 10398, 67, 10976, 55, 397, 8563, 3079, 67, 2778, 37, 67, 10976, 55, 364, 525, 316, 1048, 12, 1937, 16, 277, 4672, 1839, 273, 525, 397, 404, 1151, 273, 2325, 63, 78, 65, 9507, 273, 1151, 18, 2159, 559, 309, 9507, 422, 2025, 18, 9859, 18, 3644, 18, 10976, 30, 309, 1151, 18, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 field in res['fields'].keys(): datas['form'][field] = res['fields'][field].get('value', False) state = res['state'][-1][0] datas['form'].update(fieldvalues) elif res['type']=='state': state = res['state'] return True
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, 452, 529, 13, 919, 273, 296, 2738, 11, 5386, 273, 13666, 687, 4278, 2916, 97, 1323, 919, 5, 33, 409, 2019, 30, 400, 273, 7313, 24, 18, 8837, 12, 20979, 16, 4555, 16, 296, 3666, 2187, 341, 452, 67, 350, 16, 5386, 16, 919, 16, 2618, 13, 309, 296, 13178, 11, 316, 400, 30, 5386, 3292, 687, 29489, 2725, 12, 400, 3292, 13178, 3546, 262, 309, 400, 3292, 723, 3546, 18920, 687, 4278, 364, 652, 316, 400, 3292, 2821, 29489, 2452, 13332, 5386, 3292, 687, 3546, 63, 1518, 65, 273, 400, 3292, 2821, 3546, 63, 1518, 8009, 588, 2668, 1132, 2187, 1083, 13, 919, 273, 400, 3292, 2019, 3546, 18919, 21, 6362, 20, 65, 5386, 3292, 687, 29489, 2725, 12, 1518, 2372, 13, 1327, 400, 3292, 723, 3546, 18920, 2019, 4278, 919, 273, 400, 3292, 2019, 3546, 327, 1053, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 452, 529, 13, 919, 273, 296, 2738, 11, 5386, 273, 13666, 687, 4278, 2916, 97, 1323, 919, 5, 33, 409, 2019, 30, 400, 273, 7313, 24, 18, 8837, 12, 20979, 16, 4555, 16, 296, 3666, 2187, 341, 452, 67, 350, 16, 5386, 16, 919, 16, 2618, 13, 309, 296, 13178, 11, 316, 400, 30, 5386, 3292, 687, 29489, 2725, 12, 400, 3292, 13178, 3546, 262, 309, 400, 3292, 723, 3546, 18920, 687, 4278, 364, 652, 316, 400, 3292, 2821, 29489, 2452, 13332, 5386, 2 ]
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 = download == "1" with_color = withcolor == "1" comments = [] # whichcomments=="none" if whichcomments == "filtered" or whichcomments == "all": #comments = text_version.comment_set.filter(reply_to__isnull=True)# whichcomments=="all" #comments = get_viewable_comments(request, text_version.comment_set.filter(reply_to__isnull=True), text, order_by=('start_wrapper','start_offset','end_wrapper','end_offset'))# whichcomments=="all" _comments = text_version.comment_set.all() if whichcomments == "filtered" : filteredIds = [] if request.method == 'POST' : ll = request.POST.get('filteredIds',[]).split(",") filteredIds = [ int(l) for l in ll if l] _comments = text_version.comment_set.filter(id__in=filteredIds) # security ! TODO CROSS PERMISSIONS WITH POST CONTENT comments = get_viewable_comments(request, _comments, text, order_by=('start_wrapper','start_offset','end_wrapper','end_offset'))# whichcomments=="all" # decide to use pandoc or not if with_color : use_pandoc = False # pandoc wouldn't preserve comments scope background colors else : if format in ('markdown', 'latex') : use_pandoc = True elif format in ('pdf', 'odt') : use_pandoc = (original_format == "markdown") elif format in ('doc', 'html') : use_pandoc = False if len(comments) == 0 : #want to bypass html conversion in this case return content_export2(request, original_content, text_version.title, original_format, format, use_pandoc, download_response) else : # case comments to be added #comments = comments.order_by('start_wrapper','start_offset','end_wrapper','end_offset') html = text_version.get_content() wrapped_text_version, _ , _ = spannify(html) with_markers = True marked_content = insert_comment_markers(wrapped_text_version, comments, with_markers, with_color) viewable_comments = comments_thread(request, text_version, text) # viewable_commentsnoreply = get_viewable_comments(request, commentsnoreply, text, order_by = ('start_wrapper','start_offset','end_wrapper','end_offset')) # viewable_comments = [] # for cc in viewable_commentsnoreply : # viewable_comments += list_viewable_comments(request, [cc], text) # numerotation{ id --> numbered as a child} extended_comments = {} nb_children = {} for cc in viewable_comments : id = 0 #<-- all top comments are children of comment with id 0 if cc.is_reply() : id = cc.reply_to_id nb_children[id] = nb_children.get(id, 0) + 1 cc.num = "%d"%nb_children[id] extended_comments[cc.id] = cc if cc.is_reply() : cc.num = "%s.%s"%(extended_comments[cc.reply_to_id].num, cc.num) # viewable_comments += list_viewable_comments(request, viewable_commentsnoreply, text) html_comments=render_to_string('site/macros/text_comments.html',{'comments':viewable_comments }, context_instance=RequestContext(request)) content = "%s%s"%(marked_content, html_comments) content_format = "html" # impossible to satisfy because of color then no colors instead: if with_color and format in ('markdown', 'tex') : #TODO : add S5 with_color = False return content_export2(request, content, text_version.title, content_format, format, use_pandoc, download_response)
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, 856, 16, 31003, 754, 402, 13, 977, 67, 1589, 273, 977, 18, 588, 67, 13550, 67, 1589, 1435, 2282, 67, 1745, 273, 977, 67, 1589, 18, 1745, 2282, 67, 2139, 273, 977, 67, 1589, 18, 2139, 468, 605, 40, 294, 1729, 578, 12737, 364, 225, 2037, 1372, 225, 4224, 67, 2740, 273, 4224, 422, 315, 21, 6, 598, 67, 3266, 273, 598, 3266, 422, 315, 21, 6, 225, 5678, 273, 5378, 468, 1492, 9231, 31713, 6102, 6, 225, 309, 1492, 9231, 422, 315, 12071, 6, 578, 1492, 9231, 422, 315, 454, 6877, 468, 9231, 273, 977, 67, 1589, 18, 3469, 67, 542, 18, 2188, 12, 10629, 67, 869, 972, 291, 2011, 33, 5510, 13, 7, 1492, 9231, 31713, 454, 6, 468, 9231, 273, 336, 67, 1945, 429, 67, 9231, 12, 2293, 16, 977, 67, 1589, 18, 3469, 67, 542, 18, 2188, 12, 10629, 67, 869, 972, 291, 2011, 33, 5510, 3631, 977, 16, 1353, 67, 1637, 33, 2668, 1937, 67, 8376, 17023, 1937, 67, 3348, 17023, 409, 67, 8376, 17023, 409, 67, 3348, 26112, 7, 1492, 9231, 31713, 454, 6, 225, 389, 9231, 273, 977, 67, 1589, 18, 3469, 67, 542, 18, 454, 1435, 309, 1492, 9231, 422, 315, 12071, 6, 294, 5105, 2673, 273, 5378, 309, 590, 18, 2039, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 856, 16, 31003, 754, 402, 13, 977, 67, 1589, 273, 977, 18, 588, 67, 13550, 67, 1589, 1435, 2282, 67, 1745, 273, 977, 67, 1589, 18, 1745, 2282, 67, 2139, 273, 977, 67, 1589, 18, 2139, 468, 605, 40, 294, 1729, 578, 12737, 364, 225, 2037, 1372, 225, 4224, 67, 2740, 273, 4224, 422, 315, 21, 6, 598, 67, 3266, 273, 598, 3266, 422, 315, 21, 6, 225, 5678, 273, 5378, 468, 1492, 9231, 31713, 6102, 6, 225, 309, 1492, 9231, 422, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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["c"] = 6 c["w"] = 7 c["d"] = -1 return 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, 30, 525, 273, 277, 342, 1725, 469, 30, 525, 273, 300, 21, 30436, 18, 2738, 67, 6017, 12, 277, 15, 21, 16, 277, 738, 1725, 16, 525, 262, 225, 276, 273, 2618, 468, 2811, 1077, 47, 16, 4621, 16, 17766, 16, 1624, 11394, 16, 8069, 344, 16, 490, 5629, 69, 16, 22337, 304, 16, 30233, 16, 2989, 30, 276, 9614, 79, 11929, 273, 374, 276, 9614, 86, 11929, 273, 404, 276, 9614, 75, 11929, 273, 576, 276, 9614, 93, 11929, 273, 890, 276, 9614, 70, 11929, 273, 1059, 276, 9614, 81, 11929, 273, 1381, 276, 9614, 71, 11929, 273, 1666, 276, 9614, 91, 11929, 273, 2371, 276, 9614, 72, 11929, 273, 300, 21, 225, 327, 276, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 30, 525, 273, 277, 342, 1725, 469, 30, 525, 273, 300, 21, 30436, 18, 2738, 67, 6017, 12, 277, 15, 21, 16, 277, 738, 1725, 16, 525, 262, 225, 276, 273, 2618, 468, 2811, 1077, 47, 16, 4621, 16, 17766, 16, 1624, 11394, 16, 8069, 344, 16, 490, 5629, 69, 16, 22337, 304, 16, 30233, 16, 2989, 30, 276, 9614, 79, 11929, 273, 374, 276, 9614, 86, 11929, 273, 404, 276, 9614, 75, 11929, 273, 576, 276, 9614, 93, 11929, 273, 890, 276, 9614, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 17, 1369, 18, 3536, 327, 283, 18, 1717, 12, 86, 11, 3680, 81, 13, 17134, 1093, 16, 11597, 2187, 283, 18, 1717, 12, 86, 11, 15599, 86, 64, 82, 8960, 82, 8960, 86, 19306, 64, 82, 3719, 2187, 21791, 16, 501, 3719, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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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, 17, 1369, 18, 3536, 327, 283, 18, 1717, 12, 86, 11, 3680, 81, 13, 17134, 1093, 16, 11597, 2187, 283, 18, 1717, 12, 86, 11, 15599, 86, 64, 82, 8960, 82, 8960, 86, 19306, 64, 82, 3719, 2187, 21791, 16, 501, 3719, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 should pass _UNSET_). Values in retval are pairs (v1, v2) where v1 = d1.get(key, dflt), and same for v2, unless we pass whatret == 1 or 2, in which case values are just v1 or just v2 respectively. WARNING: v1 and v2 and dflt in these pairs are not copied; retval might share mutable state with d1 and d2 values and dflt arg. """ ###E maybe this dflt feature is not needed, if we already didn't store vals equal to dflt? but how to say "unset" in retval? # Do we need a new unique object not equal to anything else, just to use for Unset? res = {} for key, v1 in d1.iteritems(): v2 = d2.get(key, dflt) if v1 == v2: # optim: == will be faster than != for some of our most common values pass else: res[key] = (v1,v2) for key, v2 in d2.iteritems(): #e (optim note: i don't know how to avoid scanning common keys twice, just to find d2-only keys; # maybe copying d1 and updating with d2 and scanning that would be fastest way?) # if d1 has a value, we handled this key already, and this is usually true, so test that first. if not d1.has_key(key): v1 = dflt if v1 == v2: # same order and test as above pass else: res[key] = (v1,v2) if whatret: #e should optimize by using loop variants above, instead ###@@@ ind = whatret - 1 for key, pair in res.iteritems(): res[key] = pair[ind] return res
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, 4825, 23674, 635, 1081, 578, 667, 3536, 6083, 2795, 15838, 16, 327, 279, 394, 1245, 598, 3222, 622, 1311, 1625, 3675, 924, 15221, 261, 1077, 4643, 358, 422, 3631, 9787, 1776, 3315, 924, 487, 302, 31864, 261, 12784, 353, 599, 309, 486, 2112, 16, 1496, 4906, 19932, 1410, 1342, 389, 2124, 4043, 67, 2934, 6876, 316, 5221, 854, 5574, 261, 90, 21, 16, 331, 22, 13, 1625, 331, 21, 273, 302, 21, 18, 588, 12, 856, 16, 302, 31864, 3631, 471, 1967, 364, 331, 22, 16, 3308, 732, 1342, 4121, 1349, 422, 404, 578, 576, 16, 316, 1492, 648, 924, 854, 2537, 331, 21, 578, 2537, 331, 22, 19629, 18, 9744, 30, 331, 21, 471, 331, 22, 471, 302, 31864, 316, 4259, 5574, 854, 486, 9268, 31, 5221, 4825, 7433, 16074, 919, 598, 302, 21, 471, 302, 22, 924, 471, 302, 31864, 1501, 18, 3536, 11849, 41, 6944, 333, 302, 31864, 2572, 353, 486, 3577, 16, 309, 732, 1818, 10242, 1404, 1707, 5773, 3959, 358, 302, 31864, 35, 1496, 3661, 358, 12532, 315, 18579, 6, 316, 5221, 35, 468, 2256, 732, 1608, 279, 394, 3089, 733, 486, 3959, 358, 6967, 469, 16, 2537, 358, 999, 364, 31769, 35, 400, 273, 2618, 364, 498, 16, 331, 21, 316, 302, 21, 18, 2165, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4825, 23674, 635, 1081, 578, 667, 3536, 6083, 2795, 15838, 16, 327, 279, 394, 1245, 598, 3222, 622, 1311, 1625, 3675, 924, 15221, 261, 1077, 4643, 358, 422, 3631, 9787, 1776, 3315, 924, 487, 302, 31864, 261, 12784, 353, 599, 309, 486, 2112, 16, 1496, 4906, 19932, 1410, 1342, 389, 2124, 4043, 67, 2934, 6876, 316, 5221, 854, 5574, 261, 90, 21, 16, 331, 22, 13, 1625, 331, 21, 273, 302, 21, 18, 588, 12, 856, 16, 302, 31864, 3631, 471, 1967, 364, 2 ]
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 in menu_from_list(function): submenu.append(subitem) menuitem.set_submenu(submenu) else: menuitem.connect("activate", lambda a, f: f(), function) yield menuitem else: yield gtk.SeparatorMenuItem()
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) if isinstance(function, list): menuitem.set_submenu(menu_from_list(function)) else: menuitem.connect("activate", callback, function) menu.append(menuitem) elif menuitem and next: menu.append(gtk.SeparatorMenuItem()) menu.show_all() return menu
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, 273, 761, 225, 3824, 1726, 273, 22718, 18, 2040, 12958, 12, 529, 13, 225, 1327, 562, 12, 1726, 13, 422, 890, 30, 508, 16, 12480, 67, 350, 16, 445, 273, 761, 225, 3824, 1726, 273, 22718, 18, 2040, 12958, 12, 15381, 67, 350, 13, 225, 309, 1549, 12, 915, 16, 666, 4672, 27539, 273, 22718, 18, 4599, 1435, 364, 720, 1726, 316, 3824, 67, 2080, 67, 1098, 12, 915, 4672, 27539, 18, 6923, 12, 1717, 1726, 13, 3824, 1726, 18, 542, 67, 1717, 5414, 12, 1717, 5414, 13, 225, 469, 30, 3824, 1726, 18, 3612, 2932, 10014, 3113, 3195, 279, 16, 284, 30, 284, 9334, 445, 13, 225, 2824, 3824, 1726, 225, 469, 30, 2824, 22718, 18, 6581, 12958, 1435, 225, 3824, 1726, 273, 22718, 18, 2040, 12958, 12, 529, 13, 225, 1327, 562, 12, 1726, 13, 422, 890, 30, 508, 16, 12480, 67, 350, 16, 445, 273, 761, 225, 3824, 1726, 273, 22718, 18, 2040, 12958, 12, 15381, 67, 350, 13, 225, 309, 1549, 12, 915, 16, 666, 4672, 3824, 1726, 18, 542, 67, 1717, 5414, 12, 5414, 67, 2080, 67, 1098, 12, 915, 3719, 469, 30, 3824, 1726, 18, 3612, 2932, 10014, 3113, 1348, 16, 445, 13, 225, 3824, 18, 6923, 12, 5414, 1726, 13, 225, 1327, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 273, 761, 225, 3824, 1726, 273, 22718, 18, 2040, 12958, 12, 529, 13, 225, 1327, 562, 12, 1726, 13, 422, 890, 30, 508, 16, 12480, 67, 350, 16, 445, 273, 761, 225, 3824, 1726, 273, 22718, 18, 2040, 12958, 12, 15381, 67, 350, 13, 225, 309, 1549, 12, 915, 16, 666, 4672, 27539, 273, 22718, 18, 4599, 1435, 364, 720, 1726, 316, 3824, 67, 2080, 67, 1098, 12, 915, 4672, 27539, 18, 6923, 12, 1717, 1726, 13, 3824, 1726, 18, 542, 2 ]
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, 18, 5701, 3816, 2938, 16, 2831, 5717, 775, 30, 327, 365, 6315, 7163, 67, 8746, 12, 3413, 63, 20, 6487, 284, 4806, 33, 74, 4806, 15, 350, 16, 612, 2218, 20, 6134, 397, 521, 365, 6315, 7163, 67, 8746, 12, 3413, 63, 21, 6487, 284, 4806, 33, 74, 4806, 15, 350, 16, 612, 2218, 21, 6134, 397, 521, 23265, 12, 89, 16, 284, 4806, 15, 350, 25887, 309, 261, 74, 4806, 15, 350, 13, 480, 875, 469, 5378, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 18, 5701, 3816, 2938, 16, 2831, 5717, 775, 30, 327, 365, 6315, 7163, 67, 8746, 12, 3413, 63, 20, 6487, 284, 4806, 33, 74, 4806, 15, 350, 16, 612, 2218, 20, 6134, 397, 521, 365, 6315, 7163, 67, 8746, 12, 3413, 63, 21, 6487, 284, 4806, 33, 74, 4806, 15, 350, 16, 612, 2218, 21, 6134, 397, 521, 23265, 12, 89, 16, 284, 4806, 15, 350, 25887, 309, 261, 74, 4806, 15, 350, 13, 480, 875, 469, 5378, 13, 2, -100, -100, -100, -100 ]
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, 67, 20195, 1435, 272, 1011, 365, 6315, 2626, 67, 26065, 1435, 272, 1011, 365, 6315, 2626, 67, 7061, 1435, 272, 1011, 365, 6315, 2626, 67, 6911, 1435, 272, 1011, 365, 6315, 2626, 67, 12873, 67, 4660, 12, 2978, 67, 529, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 67, 20195, 1435, 272, 1011, 365, 6315, 2626, 67, 26065, 1435, 272, 1011, 365, 6315, 2626, 67, 7061, 1435, 272, 1011, 365, 6315, 2626, 67, 6911, 1435, 272, 1011, 365, 6315, 2626, 67, 12873, 67, 4660, 12, 2978, 67, 529, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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.DECIMAL: text += "Decimal" elif numtype == Number.FLOAT: text += "Float" print "Testing %s..." % text for value in data: if size == 1: if numtype == Number.OCTAL: testval = Octal(value) elif numtype == Number.DECIMAL: testval = Decimal(value) else: if numtype == Number.OCTAL: testval = DoubleOctal(value) elif numtype == Number.DECIMAL: testval = DoubleDecimal(value) if testval.isValid(): if size == 1: if testval.value != data[value]: print "FAIL: \"%s\", %06o != %06o" % (value, testval.value, data[value]) failed += 1 else: print "PASS: \"%s\", %06o == %06o" % (value, testval.value, data[value]) passed += 1 else: if testval.value[0] != data[value][0] or testval.value[1] != data[value][1]: print "FAIL: \"%s\", (%06o,%06o) != (%06o,%06o)" % (value, testval.value[0], testval.value[1], data[value][0], data[value][1]) failed += 1 else: print "PASS: \"%s\", (%06o,%06o) == (%06o,%06o)" % (value, testval.value[0], testval.value[1], data[value][0], data[value][1]) passed += 1 else: print "FAIL: \"%s\" failed to parse" % (value) failed += 1 print "%s: %d passed, %d failed of %d total" % (text, passed, failed, passed+failed) print return (passed, failed)
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, 1013, 30, 977, 1011, 315, 19320, 287, 6, 1327, 818, 723, 422, 3588, 18, 23816, 30, 977, 1011, 315, 5749, 6, 1327, 818, 723, 422, 3588, 18, 15640, 30, 977, 1011, 315, 4723, 6, 469, 30, 977, 1011, 315, 8640, 315, 309, 818, 723, 422, 3588, 18, 51, 1268, 1013, 30, 977, 1011, 315, 19320, 287, 6, 1327, 818, 723, 422, 3588, 18, 23816, 30, 977, 1011, 315, 5749, 6, 1327, 818, 723, 422, 3588, 18, 15640, 30, 977, 1011, 315, 4723, 6, 225, 1172, 315, 22218, 738, 87, 7070, 738, 977, 225, 364, 460, 316, 501, 30, 309, 963, 422, 404, 30, 309, 818, 723, 422, 3588, 18, 51, 1268, 1013, 30, 1842, 1125, 273, 29482, 287, 12, 1132, 13, 1327, 818, 723, 422, 3588, 18, 23816, 30, 1842, 1125, 273, 11322, 12, 1132, 13, 469, 30, 309, 818, 723, 422, 3588, 18, 51, 1268, 1013, 30, 1842, 1125, 273, 3698, 19320, 287, 12, 1132, 13, 1327, 818, 723, 422, 3588, 18, 23816, 30, 1842, 1125, 273, 3698, 5749, 12, 1132, 13, 225, 309, 1842, 1125, 18, 26810, 13332, 309, 963, 422, 404, 30, 309, 1842, 1125, 18, 1132, 480, 501, 63, 1132, 14542, 1172, 315, 12319, 30, 22049, 87, 22564, 738, 7677, 83, 480, 738, 7677, 83, 6, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1013, 30, 977, 1011, 315, 19320, 287, 6, 1327, 818, 723, 422, 3588, 18, 23816, 30, 977, 1011, 315, 5749, 6, 1327, 818, 723, 422, 3588, 18, 15640, 30, 977, 1011, 315, 4723, 6, 469, 30, 977, 1011, 315, 8640, 315, 309, 818, 723, 422, 3588, 18, 51, 1268, 1013, 30, 977, 1011, 315, 19320, 287, 6, 1327, 818, 723, 422, 3588, 18, 23816, 30, 977, 1011, 315, 5749, 6, 1327, 818, 723, 422, 3588, 18, 15640, 30, 977, 1011, 315, 4723, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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_user': notebook.default_user(), 'username_error': True, 'recovery': notebook.conf()['email']} return http.Response(stream=template('login.html', **template_dict)) elif self.problem == 'password': template_dict = {'accounts': notebook.get_accounts(), 'default_user': self.username, 'password_error': True, 'recovery': notebook.conf()['email']} return http.Response(stream=template('login.html', **template_dict)) else: return http.Response(stream = message("Please enable cookies and try again."))
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, 971, 9487, 4689, 4591, 5673, 16, 1508, 333, 1410, 506, 5673, 4885, 18, 309, 365, 18, 18968, 422, 296, 5053, 4278, 1542, 67, 1576, 273, 13666, 13739, 4278, 14718, 18, 588, 67, 13739, 9334, 296, 1886, 67, 1355, 4278, 14718, 18, 1886, 67, 1355, 9334, 296, 5053, 67, 1636, 4278, 1053, 16, 296, 23963, 4278, 14718, 18, 3923, 1435, 3292, 3652, 14579, 327, 1062, 18, 1064, 12, 3256, 33, 3202, 2668, 5819, 18, 2620, 2187, 2826, 3202, 67, 1576, 3719, 1327, 365, 18, 18968, 422, 296, 3664, 4278, 1542, 67, 1576, 273, 13666, 13739, 4278, 14718, 18, 588, 67, 13739, 9334, 296, 1886, 67, 1355, 4278, 365, 18, 5053, 16, 296, 3664, 67, 1636, 4278, 1053, 16, 296, 23963, 4278, 14718, 18, 3923, 1435, 3292, 3652, 14579, 327, 1062, 18, 1064, 12, 3256, 33, 3202, 2668, 5819, 18, 2620, 2187, 2826, 3202, 67, 1576, 3719, 469, 30, 327, 1062, 18, 1064, 12, 3256, 273, 883, 2932, 8496, 4237, 7237, 471, 775, 3382, 1199, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 971, 9487, 4689, 4591, 5673, 16, 1508, 333, 1410, 506, 5673, 4885, 18, 309, 365, 18, 18968, 422, 296, 5053, 4278, 1542, 67, 1576, 273, 13666, 13739, 4278, 14718, 18, 588, 67, 13739, 9334, 296, 1886, 67, 1355, 4278, 14718, 18, 1886, 67, 1355, 9334, 296, 5053, 67, 1636, 4278, 1053, 16, 296, 23963, 4278, 14718, 18, 3923, 1435, 3292, 3652, 14579, 327, 1062, 18, 1064, 12, 3256, 33, 3202, 2668, 5819, 18, 2620, 2187, 2826, 3202, 67, 1576, 3719, 1327, 365, 18, 18968, 2 ]
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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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 6188, 25, 1435, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 ]
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, 723, 3546, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 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, 723, 3546, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 ]
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: prevIndirection = None curIndirection = self._indirections[i] if i < len(self._indirections)-1: nextIndirection = self._indirections[i+1] else: nextIndirection = None str += curIndirection.getString(prevIndirection=prevIndirection, nextIndirection=nextIndirection) for indirection in self._indirections: yield None indirection.release() yield str
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, 10804, 603, 584, 364, 1547, 2769, 316, 365, 6315, 728, 2769, 87, 30, 1547, 2769, 18, 1077, 1039, 1435, 364, 277, 316, 12314, 12, 1897, 12, 2890, 6315, 728, 2769, 87, 3719, 30, 2824, 599, 309, 277, 405, 374, 30, 2807, 3866, 2769, 273, 365, 6315, 728, 2769, 87, 63, 77, 17, 21, 65, 469, 30, 2807, 3866, 2769, 273, 599, 662, 3866, 2769, 273, 1547, 2769, 87, 63, 77, 65, 309, 277, 411, 562, 12, 728, 2769, 87, 24950, 21, 30, 1024, 3866, 2769, 273, 1547, 2769, 87, 63, 77, 15, 21, 65, 469, 30, 1024, 3866, 2769, 273, 599, 609, 1011, 662, 3866, 2769, 18, 588, 780, 12, 10001, 3866, 2769, 33, 10001, 3866, 2769, 16, 1024, 3866, 2769, 33, 4285, 3866, 2769, 13, 364, 1547, 2769, 316, 365, 6315, 728, 2769, 87, 30, 2824, 599, 1547, 2769, 18, 9340, 1435, 2824, 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, 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, 10804, 603, 584, 364, 1547, 2769, 316, 365, 6315, 728, 2769, 87, 30, 1547, 2769, 18, 1077, 1039, 1435, 364, 277, 316, 12314, 12, 1897, 12, 2890, 6315, 728, 2769, 87, 3719, 30, 2824, 599, 309, 277, 405, 374, 30, 2807, 3866, 2769, 273, 365, 6315, 728, 2769, 87, 63, 77, 17, 21, 65, 469, 30, 2807, 3866, 2769, 273, 599, 662, 3866, 2769, 273, 1547, 2769, 87, 63, 77, 65, 309, 277, 411, 562, 12, 728, 2769, 87, 24950, 21, 30, 1024, 3866, 2769, 2 ]
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, 63, 2890, 6315, 2972, 1016, 8009, 967, 4247, 1435, 327, 599, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 63, 2890, 6315, 2972, 1016, 8009, 967, 4247, 1435, 327, 599, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 particular Instrument file. imagePath -- absolute path to the Instrument's image (png). Returns: 0 = the new Instrument type was successfully created. 1 = file already exists or defaultName is already used by a loaded Instrument. 2 = cannot load image file. 3 = cannot write to JOKOSHER_DATA_DIR/instruments or JOKOSHER_DATA_DIR/instruments/images. """ typeList = [x[1] for x in Globals.getCachedInstruments()] if typeString in typeList: #if the typeString is already being used, just add a number to the end like "guitar2" count = 1 path = os.path.join(Globals.INSTR_PATHS[1], "%s" + ".instr") typeString = typeString + str(count) while typeString in typeList and not os.path.exists(path% (typeString)): count += 1 typeString = typeString[:-1] + str(count) #check if the type string is being used by any other loaded instrument if defaultName in [x[0] for x in Globals.getCachedInstruments()]: Globals.debug("An instrument already loaded with name", defaultName) return 1 try: pixbuf = gtk.gdk.pixbuf_new_from_file(imagePath) except (gobject.GError, TypeError): return 2 if pixbuf.get_width() != 48 or pixbuf.get_height() != 48: pb = pixbuf.scale_simple(48, 48, gtk.gdk.INTERP_BILINEAR) pixbuf = pb try: pixbuf.save(Globals.INSTR_PATHS[1] + "/images/" + typeString + ".png", "png") except gobject.GError: return 3 Globals.debug("Creating new instrument type") instr = ConfigParser.ConfigParser() instr.add_section("core") instr.add_section("i18n") instr.set("core", "icon", typeString + ".png") instr.set("core", "type", typeString) instr.set("i18n", "en", defaultName)
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, 67, 4537, 19, 22818, 87, 3009, 18, 2597, 903, 1508, 506, 6635, 4203, 603, 11850, 18, 225, 7012, 30, 805, 461, 1493, 326, 570, 67, 5887, 508, 434, 326, 25565, 18, 618, 780, 1493, 279, 3089, 618, 533, 358, 333, 6826, 25565, 585, 18, 29181, 1493, 4967, 589, 358, 326, 25565, 1807, 1316, 261, 6446, 2934, 225, 2860, 30, 374, 273, 326, 394, 25565, 618, 1703, 4985, 2522, 18, 404, 273, 585, 1818, 1704, 578, 805, 461, 353, 1818, 1399, 635, 279, 4203, 25565, 18, 576, 273, 2780, 1262, 1316, 585, 18, 890, 273, 2780, 1045, 358, 804, 3141, 51, 2664, 654, 67, 4883, 67, 14209, 19, 22818, 87, 578, 804, 3141, 51, 2664, 654, 67, 4883, 67, 14209, 19, 22818, 87, 19, 7369, 18, 3536, 618, 682, 273, 306, 92, 63, 21, 65, 364, 619, 316, 18901, 1031, 18, 588, 9839, 19228, 87, 1435, 65, 309, 618, 780, 316, 618, 682, 30, 468, 430, 326, 618, 780, 353, 1818, 3832, 1399, 16, 2537, 527, 279, 1300, 358, 326, 679, 3007, 315, 6891, 305, 297, 22, 6, 1056, 273, 404, 589, 273, 1140, 18, 803, 18, 5701, 12, 19834, 18, 706, 3902, 67, 4211, 55, 63, 21, 6487, 2213, 87, 6, 397, 3552, 267, 701, 7923, 618, 780, 273, 618, 780, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 4537, 19, 22818, 87, 3009, 18, 2597, 903, 1508, 506, 6635, 4203, 603, 11850, 18, 225, 7012, 30, 805, 461, 1493, 326, 570, 67, 5887, 508, 434, 326, 25565, 18, 618, 780, 1493, 279, 3089, 618, 533, 358, 333, 6826, 25565, 585, 18, 29181, 1493, 4967, 589, 358, 326, 25565, 1807, 1316, 261, 6446, 2934, 225, 2860, 30, 374, 273, 326, 394, 25565, 618, 1703, 4985, 2522, 18, 404, 273, 585, 1818, 1704, 578, 805, 461, 353, 1818, 1399, 635, 279, 4203, 2 ]
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, 18, 4288, 18, 13827, 67, 4350, 16, 677, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 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, 18, 4288, 18, 13827, 67, 4350, 16, 677, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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_opnum == rop.GUARD_FALSE: if need_jp: self.mc.J_il8(rx86.Conditions['P'], 6) return self.implement_guard(guard_token, cond) else: if need_jp: self.mc.J_il8(rx86.Conditions['P'], 2) self.mc.J_il8(rx86.Conditions[cond], 5) return self.implement_guard(guard_token) return self.implement_guard(guard_token, false_cond)
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, 556, 18, 588, 556, 2107, 1435, 365, 18, 13952, 18, 57, 4208, 5127, 40, 12, 3175, 24323, 63, 20, 6487, 1501, 24323, 63, 21, 5717, 468, 2872, 353, 7304, 3476, 364, 326, 1279, 28, 525, 23868, 5712, 471, 326, 1279, 1578, 468, 11833, 316, 2348, 67, 24594, 365, 18, 13952, 18, 15735, 67, 3890, 67, 5699, 12, 2313, 397, 11026, 67, 2316, 18, 23963, 67, 12847, 67, 1467, 10756, 309, 11026, 67, 556, 2107, 422, 721, 84, 18, 30673, 8085, 67, 21053, 30, 309, 1608, 67, 21797, 30, 365, 18, 13952, 18, 46, 67, 330, 28, 12, 20122, 5292, 18, 8545, 3292, 52, 17337, 1666, 13, 365, 18, 10442, 67, 24594, 12, 24594, 67, 2316, 16, 6941, 13, 469, 30, 309, 1608, 67, 21797, 30, 365, 18, 13952, 18, 46, 67, 330, 28, 12, 20122, 5292, 18, 8545, 3292, 52, 17337, 576, 13, 365, 18, 13952, 18, 46, 67, 330, 28, 12, 20122, 5292, 18, 8545, 63, 10013, 6487, 1381, 13, 327, 365, 18, 10442, 67, 24594, 12, 24594, 67, 2316, 13, 327, 365, 18, 10442, 67, 24594, 12, 24594, 67, 2316, 16, 629, 67, 10013, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 556, 18, 588, 556, 2107, 1435, 365, 18, 13952, 18, 57, 4208, 5127, 40, 12, 3175, 24323, 63, 20, 6487, 1501, 24323, 63, 21, 5717, 468, 2872, 353, 7304, 3476, 364, 326, 1279, 28, 525, 23868, 5712, 471, 326, 1279, 1578, 468, 11833, 316, 2348, 67, 24594, 365, 18, 13952, 18, 15735, 67, 3890, 67, 5699, 12, 2313, 397, 11026, 67, 2316, 18, 23963, 67, 12847, 67, 1467, 10756, 309, 11026, 67, 556, 2107, 422, 721, 84, 18, 30673, 8085, 67, 21053, 30, 2 ]
'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.getmodulename(path) if modname: modname = pkgpath + modname if not modname in done: done[modname] = 1 writedoc(modname)
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, 2618, 364, 585, 316, 1140, 18, 1098, 1214, 12, 1214, 4672, 589, 273, 1140, 18, 803, 18, 5701, 12, 1214, 16, 585, 13, 309, 353, 5610, 12, 803, 4672, 2518, 329, 22280, 12, 803, 16, 3475, 803, 397, 585, 397, 2611, 16, 2731, 13, 1327, 1140, 18, 803, 18, 291, 768, 12, 803, 4672, 16037, 273, 5334, 18, 588, 1711, 332, 1069, 12, 803, 13, 309, 16037, 30, 16037, 273, 3475, 803, 397, 16037, 309, 486, 16037, 316, 2731, 30, 2731, 63, 1711, 529, 65, 273, 404, 2518, 329, 504, 12, 1711, 529, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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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, 2618, 364, 585, 316, 1140, 18, 1098, 1214, 12, 1214, 4672, 589, 273, 1140, 18, 803, 18, 5701, 12, 1214, 16, 585, 13, 309, 353, 5610, 12, 803, 4672, 2518, 329, 22280, 12, 803, 16, 3475, 803, 397, 585, 397, 2611, 16, 2731, 13, 1327, 1140, 18, 803, 18, 291, 768, 12, 803, 4672, 16037, 273, 5334, 18, 588, 1711, 332, 1069, 12, 803, 13, 309, 16037, 30, 16037, 273, 3475, 803, 397, 16037, 309, 486, 16037, 316, 2731, 30, 2731, 63, 1711, 529, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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() == WikiParser.ENDBLOCK: self.in_code_block -= 1 if self.in_code_block == 0 and self.code_processor: self.close_table() self.close_paragraph() processed = self.code_processor.process(self.code_text) self.out.write(_markup_to_unicode(processed))
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, 710, 67, 2629, 422, 404, 30, 365, 18, 710, 67, 8700, 273, 599, 365, 18, 710, 67, 4385, 273, 5378, 469, 30, 365, 18, 710, 67, 955, 1011, 980, 397, 1140, 18, 3548, 881, 309, 486, 365, 18, 710, 67, 8700, 30, 365, 18, 710, 67, 8700, 273, 28268, 5164, 12, 2890, 16, 296, 1886, 6134, 1327, 980, 18, 6406, 1435, 422, 28268, 2678, 18, 1157, 2290, 6589, 30, 365, 18, 267, 67, 710, 67, 2629, 3947, 404, 309, 365, 18, 267, 67, 710, 67, 2629, 422, 374, 471, 365, 18, 710, 67, 8700, 30, 365, 18, 4412, 67, 2121, 1435, 365, 18, 4412, 67, 22445, 1435, 5204, 273, 365, 18, 710, 67, 8700, 18, 2567, 12, 2890, 18, 710, 67, 955, 13, 365, 18, 659, 18, 2626, 24899, 15056, 67, 869, 67, 9124, 12, 11005, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 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, 710, 67, 2629, 422, 404, 30, 365, 18, 710, 67, 8700, 273, 599, 365, 18, 710, 67, 4385, 273, 5378, 469, 30, 365, 18, 710, 67, 955, 1011, 980, 397, 1140, 18, 3548, 881, 309, 486, 365, 18, 710, 67, 8700, 30, 365, 18, 710, 67, 8700, 273, 28268, 5164, 12, 2890, 16, 296, 1886, 6134, 1327, 980, 18, 6406, 1435, 422, 28268, 2678, 18, 1157, 2290, 6589, 30, 365, 18, 267, 67, 710, 67, 2629, 3947, 404, 309, 365, 18, 267, 2 ]
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(_('The specified URL is invalid. The old URL has been used instead.'), _('Invalid URL')) channel.url = old_url
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, 14827, 1093, 16, 1592, 67, 718, 16, 5793, 33, 2890, 13, 327, 469, 30, 613, 2668, 782, 18183, 1904, 1976, 628, 738, 87, 358, 738, 87, 2187, 1592, 67, 718, 16, 394, 67, 718, 16, 5793, 33, 2890, 13, 225, 1904, 18, 718, 273, 394, 67, 718, 468, 1206, 13655, 471, 1142, 67, 7342, 358, 2944, 392, 1089, 1904, 18, 20788, 273, 875, 1904, 18, 2722, 67, 7342, 273, 875, 261, 4768, 16, 555, 13, 273, 1904, 18, 2725, 1435, 309, 486, 2216, 30, 365, 18, 4500, 67, 2150, 24899, 2668, 1986, 1269, 1976, 353, 2057, 18, 1021, 1592, 1976, 711, 2118, 1399, 3560, 1093, 3631, 389, 2668, 1941, 1976, 26112, 1904, 18, 718, 273, 1592, 67, 718, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 14827, 1093, 16, 1592, 67, 718, 16, 5793, 33, 2890, 13, 327, 469, 30, 613, 2668, 782, 18183, 1904, 1976, 628, 738, 87, 358, 738, 87, 2187, 1592, 67, 718, 16, 394, 67, 718, 16, 5793, 33, 2890, 13, 225, 1904, 18, 718, 273, 394, 67, 718, 468, 1206, 13655, 471, 1142, 67, 7342, 358, 2944, 392, 1089, 1904, 18, 20788, 273, 875, 1904, 18, 2722, 67, 7342, 273, 875, 261, 4768, 16, 555, 13, 273, 1904, 18, 2725, 1435, 309, 486, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 1636, 12, 21696, 18, 2139, 67, 10075, 10756, 365, 18, 4412, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 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, 1636, 12, 21696, 18, 2139, 67, 10075, 10756, 365, 18, 4412, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 == 1 # one more queued assert status.numchannels == numchannels + 2 ch1.send(None) ch2.send(None) ch1.waitclose() ch2.waitclose() status = gw.remote_status() assert status.execqsize == 0 assert status.numexecuting == 0 assert status.numchannels == numchannels
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, 4661, 12, 21, 1769, 1904, 18, 18149, 1435, 7923, 462, 22, 273, 14662, 18, 7222, 67, 4177, 2932, 4327, 18, 18149, 1435, 7923, 462, 21, 18, 18149, 1435, 1267, 273, 14662, 18, 7222, 67, 2327, 1435, 1815, 1267, 18, 2107, 4177, 8490, 422, 404, 468, 1300, 434, 2695, 4588, 7403, 1815, 1267, 18, 4177, 85, 1467, 422, 404, 468, 1245, 1898, 12234, 1815, 1267, 18, 2107, 9114, 1648, 818, 9114, 397, 576, 462, 21, 18, 4661, 12, 7036, 13, 462, 22, 18, 4661, 12, 7036, 13, 462, 21, 18, 7048, 4412, 1435, 462, 22, 18, 7048, 4412, 1435, 1267, 273, 14662, 18, 7222, 67, 2327, 1435, 1815, 1267, 18, 4177, 85, 1467, 422, 374, 1815, 1267, 18, 2107, 4177, 8490, 422, 374, 1815, 1267, 18, 2107, 9114, 422, 818, 9114, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 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, 4661, 12, 21, 1769, 1904, 18, 18149, 1435, 7923, 462, 22, 273, 14662, 18, 7222, 67, 4177, 2932, 4327, 18, 18149, 1435, 7923, 462, 21, 18, 18149, 1435, 1267, 273, 14662, 18, 7222, 67, 2327, 1435, 1815, 1267, 18, 2107, 4177, 8490, 422, 404, 468, 1300, 434, 2695, 4588, 7403, 1815, 1267, 18, 4177, 85, 1467, 422, 404, 468, 1245, 1898, 12234, 1815, 1267, 18, 2107, 9114, 1648, 818, 9114, 397, 576, 462, 21, 18, 4661, 12, 7036, 13, 462, 22, 18, 4661, 2 ]
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 submitted and not cancel_button:
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, 273, 646, 18, 588, 2668, 687, 18, 31575, 2187, 1083, 13, 225, 1923, 67, 5391, 273, 646, 18, 588, 2668, 687, 18, 5391, 18, 4755, 2187, 599, 13, 353, 486, 599, 3755, 67, 5391, 273, 646, 18, 588, 2668, 687, 18, 5391, 18, 6691, 2187, 599, 13, 353, 486, 599, 225, 309, 9638, 471, 486, 3755, 67, 5391, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 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, 273, 646, 18, 588, 2668, 687, 18, 31575, 2187, 1083, 13, 225, 1923, 67, 5391, 273, 646, 18, 588, 2668, 687, 18, 5391, 18, 4755, 2187, 599, 13, 353, 486, 599, 3755, 67, 5391, 273, 646, 18, 588, 2668, 687, 18, 5391, 18, 6691, 2187, 599, 13, 353, 486, 599, 225, 309, 9638, 471, 486, 3755, 67, 5391, 30, 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 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 315, 12645, 71, 67, 2575, 3113, 315, 12645, 71, 67, 2575, 67, 350, 3113, 290, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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', self.backup]) if self.extraArgs: if isinstance(self.extraArgs, str): patchArgs.append(self.extraArgs) else: patchArgs.extend(self.extraArgs)
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, 87, 13, 738, 87, 11, 8975, 74, 16, 26231, 16, 2265, 2418, 5701, 12, 701, 12, 92, 13, 364, 619, 316, 4729, 12095, 20349, 364, 4729, 2815, 316, 4729, 12095, 30, 4729, 2615, 273, 306, 296, 2272, 2187, 2400, 72, 2187, 26231, 16, 2400, 84, 9, 87, 11, 9, 2272, 2815, 16, 308, 309, 365, 18, 9572, 30, 4729, 2615, 18, 14313, 12, 3292, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 87, 13, 738, 87, 11, 8975, 74, 16, 26231, 16, 2265, 2418, 5701, 12, 701, 12, 92, 13, 364, 619, 316, 4729, 12095, 20349, 364, 4729, 2815, 316, 4729, 12095, 30, 4729, 2615, 273, 306, 296, 2272, 2187, 2400, 72, 2187, 26231, 16, 2400, 84, 9, 87, 11, 9, 2272, 2815, 16, 308, 309, 365, 18, 9572, 30, 4729, 2615, 18, 14313, 12, 3292, 17, 70, 2187, 2400, 94, 2187, 365, 18, 9572, 5717, 309, 365, 18, 7763, 2615, 30, 309, 1549, 12, 2 ]
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(d,self.includes))==2: dict_append(info,include_dirs=[d]) flag = 1 incl_dirs = [d] incl_dir = d break if flag: dict_append(info,define_macros=self.macros) else: info = None if info is not None: self.set_info(**info)
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, 15042, 273, 365, 18, 588, 67, 21571, 12, 2890, 18, 3464, 6797, 67, 21571, 2187, 365, 18, 21571, 13, 1123, 273, 599, 364, 302, 316, 2561, 67, 8291, 30, 436, 273, 365, 18, 1893, 67, 21571, 12, 72, 16, 21571, 13, 309, 436, 353, 486, 599, 30, 1123, 273, 436, 898, 309, 1123, 353, 486, 599, 30, 2982, 273, 374, 364, 302, 316, 2823, 67, 8291, 30, 309, 562, 12, 14082, 67, 4481, 12, 72, 16, 2890, 18, 18499, 3719, 631, 22, 30, 2065, 67, 6923, 12, 1376, 16, 6702, 67, 8291, 22850, 72, 5717, 2982, 273, 404, 2823, 67, 8291, 273, 306, 72, 65, 2823, 67, 1214, 273, 302, 898, 309, 2982, 30, 2065, 67, 6923, 12, 1376, 16, 11255, 67, 5821, 6973, 33, 2890, 18, 5821, 6973, 13, 469, 30, 1123, 273, 599, 309, 1123, 353, 486, 599, 30, 365, 18, 542, 67, 1376, 12, 636, 1376, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 15042, 273, 365, 18, 588, 67, 21571, 12, 2890, 18, 3464, 6797, 67, 21571, 2187, 365, 18, 21571, 13, 1123, 273, 599, 364, 302, 316, 2561, 67, 8291, 30, 436, 273, 365, 18, 1893, 67, 21571, 12, 72, 16, 21571, 13, 309, 436, 353, 486, 599, 30, 1123, 273, 436, 898, 309, 1123, 353, 486, 599, 30, 2982, 273, 374, 364, 302, 316, 2823, 67, 8291, 30, 309, 562, 12, 14082, 67, 4481, 12, 72, 16, 2890, 18, 18499, 3719, 631, 22, 30, 2 ]
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 ``hg_sage.bundle(filename)``. If you don't find a revision r that you and the person unbundling both have (by looking at ``hg_sage.log()``), then do ``hg_sage.bundle(filename, base=r)``. Use self.inspect('file.bundle') to inspect the resulting bundle. This is a file that you should probably send to William Stein ([email protected]), post to a web page, or send to sage-devel. It will be written to the current directory. INPUT: - ``filename`` - output file in which to put bundle - ``options`` - pass to hg - ``url`` - url to bundle against (default: SAGE_SERVER, or push_url()) - ``base`` - a base changeset revision number to bundle against (doesn't require internet access) """ if not base is None: url = '' options = '--base=%s %s'%(int(base), options) if url is None: url = self.__push_url
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, 3352, 622, 326, 864, 880, 261, 12784, 353, 635, 805, 326, 296, 3674, 22354, 11, 348, 410, 3352, 16, 3308, 1817, 67, 718, 1435, 353, 3550, 316, 279, 3875, 585, 2934, 225, 971, 1846, 1240, 24264, 2006, 16, 518, 1807, 3796, 358, 2537, 741, 12176, 26981, 67, 87, 410, 18, 9991, 12, 3459, 22025, 8338, 971, 1846, 2727, 1404, 1104, 279, 6350, 436, 716, 1846, 471, 326, 6175, 640, 70, 1074, 2456, 3937, 1240, 261, 1637, 7849, 622, 12176, 26981, 67, 87, 410, 18, 1330, 1435, 10335, 3631, 1508, 741, 12176, 26981, 67, 87, 410, 18, 9991, 12, 3459, 16, 1026, 33, 86, 22025, 8338, 225, 2672, 365, 18, 12009, 2668, 768, 18, 9991, 6134, 358, 5334, 326, 8156, 3440, 18, 225, 1220, 353, 279, 585, 716, 1846, 1410, 8656, 1366, 358, 678, 16607, 301, 7780, 267, 261, 91, 334, 13685, 36, 75, 4408, 18, 832, 3631, 1603, 358, 279, 3311, 1363, 16, 578, 1366, 358, 272, 410, 17, 323, 941, 18, 2597, 903, 506, 5941, 358, 326, 783, 1867, 18, 225, 12943, 30, 282, 300, 225, 12176, 3459, 10335, 300, 876, 585, 316, 1492, 358, 1378, 3440, 225, 300, 225, 12176, 2116, 10335, 300, 1342, 358, 22576, 225, 300, 225, 12176, 718, 10335, 300, 880, 358, 3440, 5314, 261, 1886, 30, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3352, 622, 326, 864, 880, 261, 12784, 353, 635, 805, 326, 296, 3674, 22354, 11, 348, 410, 3352, 16, 3308, 1817, 67, 718, 1435, 353, 3550, 316, 279, 3875, 585, 2934, 225, 971, 1846, 1240, 24264, 2006, 16, 518, 1807, 3796, 358, 2537, 741, 12176, 26981, 67, 87, 410, 18, 9991, 12, 3459, 22025, 8338, 971, 1846, 2727, 1404, 1104, 279, 6350, 436, 716, 1846, 471, 326, 6175, 640, 70, 1074, 2456, 3937, 1240, 261, 1637, 7849, 622, 12176, 26981, 67, 87, 410, 18, 2 ]
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, origSecurityLevel, origContextEngineID, origContextName, origPduVersion, origPdu, origTimeout, origRetryCount, origRetries, origSendRequestHandle ) = self.__pendingReqs[sendPduHandle] del self.__pendingReqs[sendPduHandle]
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, 16, 1267, 5369, 16, 1366, 52, 2544, 3259, 262, 30, 468, 890, 18, 23, 18, 26, 72, 261, 1647, 6568, 3748, 16, 1647, 6568, 1887, 16, 1647, 1079, 7798, 1488, 16, 1647, 4368, 1488, 16, 1647, 4368, 461, 16, 1647, 4368, 2355, 16, 1647, 1042, 4410, 734, 16, 1647, 1042, 461, 16, 1647, 52, 2544, 1444, 16, 1647, 52, 2544, 16, 1647, 2694, 16, 1647, 7539, 1380, 16, 1647, 13656, 16, 1647, 3826, 691, 3259, 262, 273, 365, 16186, 9561, 6113, 87, 63, 4661, 52, 2544, 3259, 65, 1464, 365, 16186, 9561, 6113, 87, 63, 4661, 52, 2544, 3259, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 16, 1267, 5369, 16, 1366, 52, 2544, 3259, 262, 30, 468, 890, 18, 23, 18, 26, 72, 261, 1647, 6568, 3748, 16, 1647, 6568, 1887, 16, 1647, 1079, 7798, 1488, 16, 1647, 4368, 1488, 16, 1647, 4368, 461, 16, 1647, 4368, 2355, 16, 1647, 1042, 4410, 734, 16, 1647, 1042, 461, 16, 1647, 52, 2544, 1444, 16, 1647, 52, 2544, 16, 1647, 2694, 16, 1647, 7539, 1380, 16, 1647, 13656, 16, 1647, 3826, 691, 3259, 262, 273, 365, 16186, 9561, 6113, 87, 63, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 972, 12, 2890, 16, 1725, 6669, 16, 501, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1725, 6669, 13, 469, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1725, 6669, 16, 501, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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-gap to try to prevent the test from hanging. time.sleep(MAX_DURATION + 5) print >> sys.__stdout__, ' child should not have to kill parent' for signame in "SIGHUP", "SIGUSR1", "SIGUSR2", "SIGALRM": os.kill(pid, getattr(signal, signame)) print >> sys.__stdout__, " child sent", signame, "to", pid time.sleep(1) finally: os._exit(0)
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, 657, 982, 18, 327, 12515, 67, 6610, 225, 468, 657, 1151, 18, 1930, 1140, 16, 813, 775, 30, 468, 5838, 1381, 3974, 7144, 2353, 326, 2665, 13721, 358, 8492, 7304, 468, 813, 364, 326, 2212, 3102, 434, 2641, 358, 3334, 18, 225, 1220, 353, 468, 2537, 279, 2132, 17, 14048, 358, 775, 358, 5309, 326, 1842, 628, 366, 18183, 18, 813, 18, 19607, 12, 6694, 67, 24951, 397, 1381, 13, 1172, 1671, 2589, 16186, 10283, 972, 16, 296, 225, 1151, 1410, 486, 1240, 358, 8673, 982, 11, 364, 3553, 529, 316, 315, 2320, 16715, 3079, 3113, 315, 18513, 27984, 21, 3113, 315, 18513, 27984, 22, 3113, 315, 18513, 1013, 8717, 6877, 1140, 18, 16418, 12, 6610, 16, 3869, 12, 10420, 16, 3553, 529, 3719, 1172, 1671, 2589, 16186, 10283, 972, 16, 315, 565, 1151, 3271, 3113, 3553, 529, 16, 315, 869, 3113, 4231, 813, 18, 19607, 12, 21, 13, 3095, 30, 1140, 6315, 8593, 12, 20, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 657, 982, 18, 327, 12515, 67, 6610, 225, 468, 657, 1151, 18, 1930, 1140, 16, 813, 775, 30, 468, 5838, 1381, 3974, 7144, 2353, 326, 2665, 13721, 358, 8492, 7304, 468, 813, 364, 326, 2212, 3102, 434, 2641, 358, 3334, 18, 225, 1220, 353, 468, 2537, 279, 2132, 17, 14048, 358, 775, 358, 5309, 326, 1842, 628, 366, 18183, 18, 813, 18, 19607, 12, 6694, 67, 24951, 397, 1381, 13, 1172, 1671, 2589, 16186, 10283, 972, 16, 296, 225, 1151, 1410, 486, 1240, 358, 2 ]
"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 = dbase.cursor() mrna_dbase.execute("SELECT DISTINCT(MRC_GENEID), GCS_CHROMOSOME, GCS_TAXID, " "GCS_LOCALTAXID, GCS_COMPLEMENT, GCS_START, GCS_STOP " "FROM PAP.MRNA_COORDINATES, PAP.GENE_COORDINATES " "WHERE PAP.MRNA_COORDINATES.MRC_GENEID = PAP.GENE_COORDINATES.GCS_GENEID") for row in SQLGenerator(mrna_dbase): assert(row[5] < row[6]) # Start < Stop mrna_to_seq[row[0]] = tuple(row[1:]) mrna_dbase.close() print "Populated.\n" return mrna_to_seq
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, 5014, 13, 468, 282, 498, 30, 312, 1310, 67, 11857, 350, 225, 468, 2660, 30, 3698, 17, 1893, 716, 312, 1310, 67, 27257, 67, 2135, 353, 4269, 3577, 2674, 468, 282, 1244, 30, 261, 75, 2143, 67, 16298, 16958, 16, 24253, 67, 8066, 350, 16, 24253, 67, 3729, 8066, 350, 16, 24253, 67, 2919, 806, 16, 24253, 67, 1937, 16, 24253, 67, 5681, 13, 9752, 6582, 67, 869, 67, 5436, 273, 2618, 1172, 315, 7049, 27967, 30, 9752, 6582, 67, 869, 67, 5436, 6, 9752, 6582, 67, 1966, 448, 273, 1319, 448, 18, 9216, 1435, 9752, 6582, 67, 1966, 448, 18, 8837, 2932, 4803, 23286, 12, 49, 11529, 67, 16652, 41, 734, 3631, 28428, 67, 1792, 3942, 51, 3584, 958, 16, 28428, 67, 56, 2501, 734, 16, 315, 315, 43, 4596, 67, 14922, 56, 2501, 734, 16, 28428, 67, 10057, 7618, 16, 28428, 67, 7570, 16, 28428, 67, 17513, 315, 315, 11249, 453, 2203, 18, 23464, 11277, 67, 27237, 21329, 1777, 55, 16, 453, 2203, 18, 16652, 41, 67, 27237, 21329, 1777, 55, 315, 315, 12299, 453, 2203, 18, 23464, 11277, 67, 27237, 21329, 1777, 55, 18, 49, 11529, 67, 16652, 41, 734, 273, 453, 2203, 18, 16652, 41, 67, 27237, 21329, 1777, 55, 18, 43, 4596, 67, 16652, 41, 734, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5014, 13, 468, 282, 498, 30, 312, 1310, 67, 11857, 350, 225, 468, 2660, 30, 3698, 17, 1893, 716, 312, 1310, 67, 27257, 67, 2135, 353, 4269, 3577, 2674, 468, 282, 1244, 30, 261, 75, 2143, 67, 16298, 16958, 16, 24253, 67, 8066, 350, 16, 24253, 67, 3729, 8066, 350, 16, 24253, 67, 2919, 806, 16, 24253, 67, 1937, 16, 24253, 67, 5681, 13, 9752, 6582, 67, 869, 67, 5436, 273, 2618, 1172, 315, 7049, 27967, 30, 9752, 6582, 67, 869, 67, 5436, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 1604, 529, 358, 3329, 364, 716, 1604, 468, 79, 740, 399, 18096, 16, 2037, 279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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 1604, 529, 358, 3329, 364, 716, 1604, 468, 79, 740, 399, 18096, 16, 2037, 279, 852, 628, 1604, 529, 358, 3496, 1244, 365, 18, 1106, 21, 273, 667, 21, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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_length] data = dict(slug=orig_slug, sep=self.index_sep, index=index) slug = '%(slug)s%(sep)s%(index)d' % data except model.DoesNotExist:
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, 30, 309, 20288, 316, 389, 1518, 67, 529, 30, 652, 67, 529, 16, 3443, 273, 389, 1518, 67, 529, 18, 4939, 2668, 972, 2187, 404, 13, 469, 30, 652, 67, 529, 16, 3443, 273, 389, 1518, 67, 529, 16, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 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, 30, 309, 20288, 316, 389, 1518, 67, 529, 30, 652, 67, 529, 16, 3443, 273, 389, 1518, 67, 529, 18, 4939, 2668, 972, 2187, 404, 13, 469, 30, 652, 67, 529, 16, 3443, 273, 389, 1518, 67, 529, 16, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 which we are searching for a submodule, and then PATH must be the package search path; otherwise, we are searching for a top-level module, and PATH is combined with sys.path. ''' # Compute the full module name (prepending inpackage if set) if inpackage: fullmodule = "%s.%s" % (inpackage, module) else: fullmodule = module # Check in the cache if fullmodule in _modules: return _modules[fullmodule] # Initialize the dict for this module's contents dict = {} # Check if it is a built-in module; we don't do much for these if module in sys.builtin_module_names and not inpackage: _modules[module] = dict return dict # Check for a dotted module name i = module.rfind('.') if i >= 0: package = module[:i] submodule = module[i+1:] parent = readmodule_ex(package, path, inpackage) if inpackage: package = "%s.%s" % (inpackage, package) return readmodule_ex(submodule, parent['__path__'], package) # Search the path for the module f = None if inpackage: f, file, (suff, mode, type) = imp.find_module(module, path) else: f, file, (suff, mode, type) = imp.find_module(module, path + sys.path) if type == imp.PKG_DIRECTORY: dict['__path__'] = [file] path = [file] + path f, file, (suff, mode, type) = imp.find_module('__init__', [file]) _modules[fullmodule] = dict if type != imp.PY_SOURCE: # not Python source, can't do anything with this module f.close() return dict classstack = [] # stack of (class, indent) pairs g = tokenize.generate_tokens(f.readline) try: for tokentype, token, start, end, line in g: if token == 'def': lineno, thisindent = start tokentype, meth_name, start, end, line = g.next() if tokentype != NAME: continue # Syntax error # close all classes indented at least as much while classstack and \ classstack[-1][1] >= thisindent: del classstack[-1] if classstack: # it's a class method cur_class = classstack[-1][0] cur_class._addmethod(meth_name, lineno) else: # it's a function dict[meth_name] = Function(module, meth_name, file, lineno) elif token == 'class': lineno, thisindent = start tokentype, class_name, start, end, line = g.next() if tokentype != NAME: continue # Syntax error # close all classes indented at least as much while classstack and \ classstack[-1][1] >= thisindent: del classstack[-1] # parse what follows the class name tokentype, token, start, end, line = g.next() inherit = None if token == '(': names = [] # List of superclasses # there's a list of superclasses level = 1 super = [] # Tokens making up current superclass while True: tokentype, token, start, end, line = g.next() if token in (')', ',') and level == 1: n = "".join(super) if n in dict: # we know this super class n = dict[n] else: c = n.split('.') if len(c) > 1: # super class is of the form # module.class: look in module for # class m = c[-2] c = c[-1] if m in _modules: d = _modules[m] if c in d: n = d[c] names.append(n) if token == '(': level += 1 elif token == ')': level -= 1 if level == 0: break elif token == ',' and level == 1: pass else: super.append(token) inherit = names cur_class = Class(module, class_name, inherit, file, lineno) dict[class_name] = cur_class classstack.append((cur_class, thisindent)) elif token == 'import' and start[1] == 0: modules = _getnamelist(g) for mod, mod2 in modules: try: # Recursively read the imported module if not inpackage: readmodule_ex(mod, path) else: try: readmodule_ex(mod, path, inpackage) except ImportError: readmodule_ex(mod) except: # If we can't find or parse the imported module, # too bad -- don't die here. pass elif token == 'from' and start[1] == 0: mod, token = _getname(g) if not mod or token != "import": continue names = _getnamelist(g) try: # Recursively read the imported module d = readmodule_ex(mod, path, inpackage) except: # If we can't find or parse the imported module, # too bad -- don't die here. continue # add any classes that were defined in the imported module # to our name space if they were mentioned in the list for n, n2 in names: if n in d: dict[n2 or n] = d[n] elif n == '*': # only add a name if not already there (to mimic # what Python does internally) also don't add # names that start with _ for n in d: if n[0] != '_' and not n in dict: dict[n] = d[n] except StopIteration: pass f.close() return dict
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, 2589, 18, 803, 16, 855, 471, 1109, 326, 1605, 471, 327, 279, 3880, 598, 1245, 1241, 364, 1517, 667, 1392, 316, 326, 1605, 18, 225, 971, 2120, 19077, 353, 638, 16, 518, 1297, 506, 326, 20965, 508, 434, 326, 2181, 316, 1492, 732, 854, 15300, 364, 279, 27314, 16, 471, 1508, 7767, 1297, 506, 326, 2181, 1623, 589, 31, 3541, 16, 732, 854, 15300, 364, 279, 1760, 17, 2815, 1605, 16, 471, 7767, 353, 8224, 598, 2589, 18, 803, 18, 9163, 225, 468, 8155, 326, 1983, 1605, 508, 261, 1484, 9561, 316, 5610, 309, 444, 13, 309, 316, 5610, 30, 1983, 2978, 273, 2213, 87, 7866, 87, 6, 738, 261, 267, 5610, 16, 1605, 13, 469, 30, 1983, 2978, 273, 1605, 225, 468, 2073, 316, 326, 1247, 309, 1983, 2978, 316, 389, 6400, 30, 327, 389, 6400, 63, 2854, 2978, 65, 225, 468, 9190, 326, 2065, 364, 333, 1605, 1807, 2939, 2065, 273, 2618, 225, 468, 2073, 309, 518, 353, 279, 6650, 17, 267, 1605, 31, 732, 2727, 1404, 741, 9816, 364, 4259, 309, 1605, 316, 2589, 18, 24553, 67, 2978, 67, 1973, 471, 486, 316, 5610, 30, 389, 6400, 63, 2978, 65, 273, 2065, 327, 2065, 225, 468, 2073, 364, 279, 20965, 1605, 508, 277, 273, 1605, 18, 86, 4720, 2668, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2589, 18, 803, 16, 855, 471, 1109, 326, 1605, 471, 327, 279, 3880, 598, 1245, 1241, 364, 1517, 667, 1392, 316, 326, 1605, 18, 225, 971, 2120, 19077, 353, 638, 16, 518, 1297, 506, 326, 20965, 508, 434, 326, 2181, 316, 1492, 732, 854, 15300, 364, 279, 27314, 16, 471, 1508, 7767, 1297, 506, 326, 2181, 1623, 589, 31, 3541, 16, 732, 854, 15300, 364, 279, 1760, 17, 2815, 1605, 16, 471, 7767, 353, 8224, 598, 2589, 18, 803, 18, 9163, 225, 468, 8155, 2 ]
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, 9107, 1966, 18, 8705, 1526, 13332, 327, 225, 324, 7259, 273, 9107, 12, 350, 33, 350, 16, 14295, 33, 17532, 16, 2776, 33, 7066, 16, 21437, 33, 3048, 16, 3789, 1380, 33, 3789, 1380, 15, 21, 13, 324, 7259, 18, 19133, 7634, 12, 3789, 1380, 33, 3789, 1380, 15, 21, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 9107, 1966, 18, 8705, 1526, 13332, 327, 225, 324, 7259, 273, 9107, 12, 350, 33, 350, 16, 14295, 33, 17532, 16, 2776, 33, 7066, 16, 21437, 33, 3048, 16, 3789, 1380, 33, 3789, 1380, 15, 21, 13, 324, 7259, 18, 19133, 7634, 12, 3789, 1380, 33, 3789, 1380, 15, 21, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]