rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
self.log.warn(result['Message'])
self.log.warn(resolvedSandbox['Message'])
def processJobOutputs(self,arguments): """Outputs for a job may be treated here. """
104cb9632bc3b5543dbcbce5a35dbc3ae6cdedfd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/104cb9632bc3b5543dbcbce5a35dbc3ae6cdedfd/JobWrapper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 2278, 13856, 12, 2890, 16, 7099, 4672, 3536, 13856, 364, 279, 1719, 2026, 506, 13974, 2674, 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 ]
[ 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 2278, 13856, 12, 2890, 16, 7099, 4672, 3536, 13856, 364, 279, 1719, 2026, 506, 13974, 2674, 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 ]
events = []
events = []
def tearDown(self): del self.engine
5ae6a9b32bea5d1f32fc61bcb082ee8d52d88abc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5451/5ae6a9b32bea5d1f32fc61bcb082ee8d52d88abc/PyV8.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 1464, 365, 18, 8944, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 1464, 365, 18, 8944, 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, -100, -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 getattr(mod, inst)()
return getattr(mod, inst)
def get_index_dashboard(context): """ Returns the admin dashboard defined by the user or the default one. """ dashboard_cls = getattr( settings, 'ADMIN_TOOLS_INDEX_DASHBOARD', 'admin_tools.dashboard.dashboards.DefaultIndexDashboard' ) if type(dashboard_cls) is types.DictType: curr_url = context.get('request').META['PATH_INFO'] for key in dashboard_cls: admin_site_mod, admin_site_inst = key.rsplit('.', 1) admin_site_mod = import_module(admin_site_mod) admin_site = getattr(admin_site_mod, admin_site_inst) admin_url = reverse('%s:index' % admin_site.name) if curr_url.startswith(admin_url): mod, inst = dashboard_cls[key].rsplit('.', 1) mod = import_module(mod) return getattr(mod, inst)() else: mod, inst = dashboard_cls.rsplit('.', 1) mod = import_module(mod) return getattr(mod, inst)()
4c054e990fa9567ee99c54d9fda3801c20656a26 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6707/4c054e990fa9567ee99c54d9fda3801c20656a26/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1615, 67, 13479, 12, 2472, 4672, 3536, 2860, 326, 3981, 11825, 2553, 635, 326, 729, 578, 326, 805, 1245, 18, 3536, 11825, 67, 6429, 273, 3869, 12, 1947, 16, 296, 15468, 67, 26263, 55, 67, 9199, 67, 9793, 2664, 5315, 8085, 2187, 296, 3666, 67, 6642, 18, 13479, 18, 13479, 87, 18, 1868, 1016, 14830, 11, 262, 225, 309, 618, 12, 13479, 67, 6429, 13, 353, 1953, 18, 5014, 559, 30, 4306, 67, 718, 273, 819, 18, 588, 2668, 2293, 16063, 19294, 3292, 4211, 67, 5923, 3546, 225, 364, 498, 316, 11825, 67, 6429, 30, 3981, 67, 4256, 67, 1711, 16, 3981, 67, 4256, 67, 8591, 273, 498, 18, 86, 4939, 2668, 1093, 16, 404, 13, 3981, 67, 4256, 67, 1711, 273, 1930, 67, 2978, 12, 3666, 67, 4256, 67, 1711, 13, 3981, 67, 4256, 273, 3869, 12, 3666, 67, 4256, 67, 1711, 16, 3981, 67, 4256, 67, 8591, 13, 3981, 67, 718, 273, 4219, 29909, 87, 30, 1615, 11, 738, 3981, 67, 4256, 18, 529, 13, 309, 4306, 67, 718, 18, 17514, 1918, 12, 3666, 67, 718, 4672, 681, 16, 1804, 273, 11825, 67, 6429, 63, 856, 8009, 86, 4939, 2668, 1093, 16, 404, 13, 681, 273, 1930, 67, 2978, 12, 1711, 13, 327, 3869, 12, 1711, 16, 1804, 13, 469, 30, 681, 16, 1804, 273, 11825, 67, 6429, 18, 86, 4939, 2668, 1093, 16, 404, 13, 681, 273, 1930, 67, 2978, 12, 1711, 13, 327, 3869, 12, 1711, 16, 1804, 13, 565, 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, 336, 67, 1615, 67, 13479, 12, 2472, 4672, 3536, 2860, 326, 3981, 11825, 2553, 635, 326, 729, 578, 326, 805, 1245, 18, 3536, 11825, 67, 6429, 273, 3869, 12, 1947, 16, 296, 15468, 67, 26263, 55, 67, 9199, 67, 9793, 2664, 5315, 8085, 2187, 296, 3666, 67, 6642, 18, 13479, 18, 13479, 87, 18, 1868, 1016, 14830, 11, 262, 225, 309, 618, 12, 13479, 67, 6429, 13, 353, 1953, 18, 5014, 559, 30, 4306, 67, 718, 273, 819, 18, 588, 2668, 2293, 16063, 19294, 3292, 4211, 67, 5923, 3546, 225, 364, 498, 316, 11825, 67, 6429, 30, 3981, 67, 4256, 67, 1711, 16, 3981, 67, 4256, 67, 8591, 273, 498, 18, 86, 4939, 2668, 1093, 16, 404, 13, 2 ]
return '<a id="%s"></a>' % (id, )
return '<span id="%s" class="anchor"></span>' % (id, )
def anchordef(self, id): return '<a id="%s"></a>' % (id, ) # do not add a \n here, it breaks pre sections with line_anchordef
db6a05d98f954a6968e2a039ee6e36c5679eee91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/db6a05d98f954a6968e2a039ee6e36c5679eee91/text_html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6984, 536, 12, 2890, 16, 612, 4672, 282, 327, 2368, 3969, 612, 11613, 87, 6, 667, 1546, 16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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6984, 536, 12, 2890, 16, 612, 4672, 282, 327, 2368, 3969, 612, 11613, 87, 6, 667, 1546, 16215, 13762, 3969, 1870, 738, 261, 350, 16, 262, 468, 741, 486, 527, 279, 521, 82, 2674, 16, 518, 16217, 675, 7178, 598, 980, 67, 16215, 536, 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 ]
dump = serializer.dumper(output) if activity: count = len(aliases) activity.update(msg=_(u"Exporting %(total)d records") % {'total':count}, totalWork=count) i = 0 for alias in aliases: uuid = trans.getUUIDForAlias(alias) item = rv.findUUID(uuid) for record in trans.exportItem(item):
try: dump = serializer.dumper(output) if activity: count = len(aliases) activity.update(msg=_(u"Exporting %(total)d records") % {'total':count}, totalWork=count) i = 0 for alias in aliases: uuid = trans.getUUIDForAlias(alias) item = rv.findUUID(uuid) for record in trans.exportItem(item): dump(record) i += 1 if activity: activity.update(msg=_(u"Exported %(number)d of %(total)d items") % \ {'number':i, 'total':count}, work=1) if activity: activity.update(totalWork=None) for record in trans.finishExport(): if activity: count += 1 activity.update(msg=_(u"Exporting additional record"))
def dump(rv, filename, uuids=None, serializer=PickleSerializer, activity=None, obfuscate=False): """ Dumps EIM records to a file, file permissions 0600. """ translator = getTranslator() trans = translator(rv) trans.obfuscation = obfuscate aliases = list() if uuids: for uuid in uuids: aliases.append(trans.getAliasForItem(rv.findUUID(uuid))) else: for item in schema.Item.iterItems(rv): if not str(item.itsPath).startswith("//parcels"): aliases.append(trans.getAliasForItem(item)) # Sort on alias so masters are dumped before occurrences aliases.sort() trans.startExport() try: flags = os.O_EXCL | os.O_CREAT | os.O_WRONLY | os.O_BINARY except AttributeError: flags = os.O_EXCL | os.O_CREAT | os.O_WRONLY try: # Need to remove the file, otherwise we'll use existing permissions os.remove(filename) except OSError: pass # XXX This will fail if someone created the file after the remove but # XXX before we got here, so the caller should be prepared to handle that. output = os.fdopen(os.open(filename, flags, 0600), 'wb') try: dump = serializer.dumper(output) if activity: count = len(aliases) activity.update(msg=_(u"Exporting %(total)d records") % {'total':count}, totalWork=count) i = 0 for alias in aliases: uuid = trans.getUUIDForAlias(alias) item = rv.findUUID(uuid) for record in trans.exportItem(item): dump(record) i += 1 if activity: activity.update(msg=_(u"Exported %(number)d of %(total)d items") % \ {'number':i, 'total':count}, work=1) if activity: activity.update(totalWork=None) # we don't know upcoming total work for record in trans.finishExport(): if activity: count += 1 activity.update(msg=_(u"Exporting additional record")) dump(record) dump(None) del dump except ActivityAborted: os.remove(filename) finally: output.close() if activity: activity.update(msg=_(u"Exported %(total)d records") % {'total':count})
60d7106846cbd1b3995e18bbd2c65098a0713462 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/60d7106846cbd1b3995e18bbd2c65098a0713462/dumpreload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 12, 4962, 16, 1544, 16, 26938, 33, 7036, 16, 6340, 33, 17968, 298, 6306, 16, 5728, 33, 7036, 16, 29004, 340, 33, 8381, 4672, 3536, 21250, 1121, 512, 3445, 3853, 358, 279, 585, 16, 585, 4371, 13026, 713, 18, 3536, 225, 8333, 273, 30322, 1435, 282, 906, 273, 8333, 12, 4962, 13, 906, 18, 947, 21935, 367, 273, 29004, 340, 225, 6900, 273, 666, 1435, 225, 309, 26938, 30, 364, 3822, 316, 26938, 30, 6900, 18, 6923, 12, 2338, 18, 588, 2936, 1290, 1180, 12, 4962, 18, 4720, 5562, 12, 7080, 20349, 469, 30, 364, 761, 316, 1963, 18, 1180, 18, 2165, 3126, 12, 4962, 4672, 309, 486, 609, 12, 1726, 18, 1282, 743, 2934, 17514, 1918, 2932, 759, 1065, 2183, 87, 6, 4672, 6900, 18, 6923, 12, 2338, 18, 588, 2936, 1290, 1180, 12, 1726, 3719, 225, 468, 5928, 603, 2308, 1427, 31354, 854, 29942, 1865, 15698, 6900, 18, 3804, 1435, 225, 906, 18, 1937, 6144, 1435, 225, 775, 30, 2943, 273, 1140, 18, 51, 67, 2294, 5017, 571, 1140, 18, 51, 67, 5458, 789, 571, 1140, 18, 51, 67, 7181, 10857, 571, 1140, 18, 51, 67, 16813, 1335, 6394, 30, 2943, 273, 1140, 18, 51, 67, 2294, 5017, 571, 1140, 18, 51, 67, 5458, 789, 571, 1140, 18, 51, 67, 7181, 10857, 225, 775, 30, 468, 12324, 358, 1206, 326, 585, 16, 3541, 732, 5614, 999, 2062, 4371, 1140, 18, 4479, 12, 3459, 13, 1335, 10002, 30, 1342, 468, 11329, 1220, 903, 2321, 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, 4657, 12, 4962, 16, 1544, 16, 26938, 33, 7036, 16, 6340, 33, 17968, 298, 6306, 16, 5728, 33, 7036, 16, 29004, 340, 33, 8381, 4672, 3536, 21250, 1121, 512, 3445, 3853, 358, 279, 585, 16, 585, 4371, 13026, 713, 18, 3536, 225, 8333, 273, 30322, 1435, 282, 906, 273, 8333, 12, 4962, 13, 906, 18, 947, 21935, 367, 273, 29004, 340, 225, 6900, 273, 666, 1435, 225, 309, 26938, 30, 364, 3822, 316, 26938, 30, 6900, 18, 6923, 12, 2338, 18, 588, 2936, 1290, 1180, 12, 4962, 18, 4720, 5562, 12, 7080, 20349, 469, 30, 364, 761, 316, 1963, 18, 1180, 18, 2165, 3126, 12, 4962, 4672, 309, 486, 609, 12, 1726, 18, 1282, 743, 2934, 17514, 1918, 2 ]
for article in item['items']:
for article in item.get('items', []):
def getItems(self): items = [] for item in self.items: if item['type'] == 'article': items.append(item) elif item['type'] == 'chapter': items.append(item) for article in item['items']: items.append(article) return items
38f864d553b695cc4116e4da79097e647401a16d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12391/38f864d553b695cc4116e4da79097e647401a16d/metabook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15515, 12, 2890, 4672, 1516, 273, 5378, 364, 761, 316, 365, 18, 3319, 30, 309, 761, 3292, 723, 3546, 422, 296, 11480, 4278, 1516, 18, 6923, 12, 1726, 13, 1327, 761, 3292, 723, 3546, 422, 296, 31254, 4278, 1516, 18, 6923, 12, 1726, 13, 364, 7559, 316, 761, 18, 588, 2668, 3319, 2187, 5378, 4672, 1516, 18, 6923, 12, 11480, 13, 327, 1516, 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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761, 18, 588, 2668, 3319, 2187, 5378, 4672, 1516, 18, 6923, 12, 11480, 13, 327, 1516, 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 ]
os.system(cmd)
failure = os.system(cmd) if failure: raise FortranBuildError,\ 'failure during build (exit status = %s)'%failure
def create_static_lib(self, object_files, library_name, output_dir='', debug=None): lib_file = os.path.join(output_dir, self.lib_prefix+library_name+self.lib_suffix) objects = string.join(object_files) if objects: cmd = '%s%s %s' % (self.lib_ar,lib_file,objects) print yellow_text(cmd) os.system(cmd) if self.lib_ranlib: # Digital compiler does not have ranlib (?). cmd = '%s %s' %(self.lib_ranlib,lib_file) print yellow_text(cmd) os.system(cmd)
efb1608fe16ebd999c51b4509f4072366caff768 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/efb1608fe16ebd999c51b4509f4072366caff768/build_flib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3845, 67, 2941, 12, 2890, 16, 733, 67, 2354, 16, 5313, 67, 529, 16, 876, 67, 1214, 2218, 2187, 1198, 33, 7036, 4672, 2561, 67, 768, 273, 1140, 18, 803, 18, 5701, 12, 2844, 67, 1214, 16, 365, 18, 2941, 67, 3239, 15, 12083, 67, 529, 15, 2890, 18, 2941, 67, 8477, 13, 2184, 273, 533, 18, 5701, 12, 1612, 67, 2354, 13, 309, 2184, 30, 1797, 273, 1995, 87, 9, 87, 738, 87, 11, 738, 261, 2890, 18, 2941, 67, 297, 16, 2941, 67, 768, 16, 6911, 13, 1172, 20614, 67, 955, 12, 4172, 13, 5166, 273, 1140, 18, 4299, 12, 4172, 13, 309, 5166, 30, 1002, 2457, 13171, 3116, 668, 17211, 296, 12251, 4982, 1361, 261, 8593,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3845, 67, 2941, 12, 2890, 16, 733, 67, 2354, 16, 5313, 67, 529, 16, 876, 67, 1214, 2218, 2187, 1198, 33, 7036, 4672, 2561, 67, 768, 273, 1140, 18, 803, 18, 5701, 12, 2844, 67, 1214, 16, 365, 18, 2941, 67, 3239, 15, 12083, 67, 529, 15, 2890, 18, 2941, 67, 8477, 13, 2184, 273, 533, 18, 5701, 12, 1612, 67, 2354, 13, 309, 2184, 30, 1797, 273, 1995, 87, 9, 87, 738, 87, 11, 738, 261, 2890, 18, 2941, 67, 297, 16, 2941, 67, 768, 16, 6911, 13, 1172, 20614, 67, 955, 12, 4172, 13, 5166, 273, 1140, 18, 4299, 12, 4172, 13, 309, 5166, 30, 1002, 2457, 13171, 3116, 668, 17211, 296, 12251, 4982, 2 ]
options.compiler = 'msvc'
if which('cl.exe') is not None: options.compiler = 'msvc' elif which('g++.exe') is not None: options.compiler = 'gcc' else: options.compiler = 'msvc'
def log_level(): if options.verbose: return logging.DEBUG if options.quiet: return logging.WARNING return logging.INFO
2f16053e01758662c814d96876feaf670fa7eb97 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9556/2f16053e01758662c814d96876feaf670fa7eb97/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 67, 2815, 13332, 309, 702, 18, 11369, 30, 327, 2907, 18, 9394, 309, 702, 18, 20380, 30, 327, 2907, 18, 9511, 327, 2907, 18, 5923, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 613, 67, 2815, 13332, 309, 702, 18, 11369, 30, 327, 2907, 18, 9394, 309, 702, 18, 20380, 30, 327, 2907, 18, 9511, 327, 2907, 18, 5923, 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 ]
import IRC prefix = IRC.format("%s:" % message.xml.source.project, 'bold') + " "
from IRC.Formatting import format prefix = format("%s:" % message.xml.source.project, 'bold') + " "
def format(self, message, input): if not input: return if message.xml.source and message.xml.source.project: import IRC prefix = IRC.format("%s:" % message.xml.source.project, 'bold') + " " return "\n".join([prefix + line for line in input.split("\n")]) else: return input
d830e60292e5b3177afd7169fb02bbe99a80d291 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9478/d830e60292e5b3177afd7169fb02bbe99a80d291/Formatters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 12, 2890, 16, 883, 16, 810, 4672, 309, 486, 810, 30, 327, 309, 883, 18, 2902, 18, 3168, 471, 883, 18, 2902, 18, 3168, 18, 4406, 30, 628, 467, 11529, 18, 23974, 1930, 740, 1633, 273, 740, 27188, 87, 2773, 738, 883, 18, 2902, 18, 3168, 18, 4406, 16, 296, 16390, 6134, 397, 315, 315, 327, 1548, 82, 9654, 5701, 3816, 3239, 397, 980, 364, 980, 316, 810, 18, 4939, 31458, 82, 7923, 5717, 469, 30, 327, 810, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 12, 2890, 16, 883, 16, 810, 4672, 309, 486, 810, 30, 327, 309, 883, 18, 2902, 18, 3168, 471, 883, 18, 2902, 18, 3168, 18, 4406, 30, 628, 467, 11529, 18, 23974, 1930, 740, 1633, 273, 740, 27188, 87, 2773, 738, 883, 18, 2902, 18, 3168, 18, 4406, 16, 296, 16390, 6134, 397, 315, 315, 327, 1548, 82, 9654, 5701, 3816, 3239, 397, 980, 364, 980, 316, 810, 18, 4939, 31458, 82, 7923, 5717, 469, 30, 327, 810, 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 ]
def update(self, index, left_score, rigt_score, valid) : count += 1
def update(self, index, left_score, rigt_score, valid): global g_max_sub self.count += 1
def update(self, index, left_score, rigt_score, valid) : count += 1
ab984dfcf4152172bb5c41c3da2fe1f6a428492f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/600/ab984dfcf4152172bb5c41c3da2fe1f6a428492f/process.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 770, 16, 2002, 67, 6355, 16, 436, 360, 88, 67, 6355, 16, 923, 13, 294, 1056, 1011, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1089, 12, 2890, 16, 770, 16, 2002, 67, 6355, 16, 436, 360, 88, 67, 6355, 16, 923, 13, 294, 1056, 1011, 404, 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 ]
b3.events.EVT_UNKOWN,
b3.events.EVT_UNKNOWN,
def parseLine(self, line): """Parse a single line from the log file""" m = re.match(self._lineFormat, line) if m: self.queueEvent(b3.events.Event( b3.events.EVT_UNKOWN, m.group(2)[:1] ))
2cceca8e0c8d8782ff525b7fbaee6667fa2c772f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12909/2cceca8e0c8d8782ff525b7fbaee6667fa2c772f/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1670, 12, 2890, 16, 980, 4672, 3536, 3201, 279, 2202, 980, 628, 326, 613, 585, 8395, 312, 273, 283, 18, 1916, 12, 2890, 6315, 1369, 1630, 16, 980, 13, 309, 312, 30, 365, 18, 4000, 1133, 12, 70, 23, 18, 5989, 18, 1133, 12, 324, 23, 18, 5989, 18, 24427, 56, 67, 14737, 16, 312, 18, 1655, 12, 22, 13, 10531, 21, 65, 8623, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1670, 12, 2890, 16, 980, 4672, 3536, 3201, 279, 2202, 980, 628, 326, 613, 585, 8395, 312, 273, 283, 18, 1916, 12, 2890, 6315, 1369, 1630, 16, 980, 13, 309, 312, 30, 365, 18, 4000, 1133, 12, 70, 23, 18, 5989, 18, 1133, 12, 324, 23, 18, 5989, 18, 24427, 56, 67, 14737, 16, 312, 18, 1655, 12, 22, 13, 10531, 21, 65, 8623, 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 ]
sections respectively.
sections respectively.
def __calculate_ratio(conf, ctib, t=None): """ This function runs amorphous_reduction_sqe and calculates the ratio for the given time-independent background constant. @param conf: Object containing the data reduction configuration information. @type conf: L{hlr_utils.Configure} @param ctib: Value of the time-independent background to run reduction with @type ctib: C{float} @param t: (OPTIONAL) Object that will allow the method to perform timing evaluations. @type t: C{sns_time.DiffTime} @return: The values of the integration in the positive and negative sections respectively. @rtype: C{tuple} """ import copy import amorphous_reduction_sqe import dr_lib amr_config = copy.deepcopy(conf) amr_config.verbose = conf.amr_verbose amr_config.tib_data_const = hlr_utils.DrParameter(ctib, 0.0) if t is not None: t.getTime(False) if conf.verbose: print "Running amorphous_reduction_sqe" som = amorphous_reduction_sqe.run(amr_config) if t is not None: t.getTime(msg="After running amorphous_reduction_sqe ") pos_int = dr_lib.integrate_spectra(som, start=conf.et_pos_range[0], end=conf.et_pos_range[1], axis_pos=1) neg_int = dr_lib.integrate_spectra(som, start=conf.et_neg_range[0], end=conf.et_neg_range[1], axis_pos=1) if conf.verbose: print "Ratio: %e / %e, %f" % (pos_int[0].y, neg_int[0].y, __make_ratio((pos_int[0].y, neg_int[0].y))) return (pos_int[0].y, neg_int[0].y)
36badd65c251eeb079d3bfab833aabc1dc8ebc9b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/763/36badd65c251eeb079d3bfab833aabc1dc8ebc9b/find_ldb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11162, 67, 9847, 12, 3923, 16, 5691, 495, 16, 268, 33, 7036, 4672, 3536, 1220, 445, 7597, 2125, 7657, 1481, 67, 1118, 4062, 67, 11410, 73, 471, 17264, 326, 7169, 364, 326, 864, 813, 17, 267, 10891, 5412, 5381, 18, 225, 632, 891, 2195, 30, 1033, 4191, 326, 501, 20176, 1664, 1779, 18, 632, 723, 2195, 30, 511, 95, 76, 10826, 67, 5471, 18, 11207, 97, 225, 632, 891, 5691, 495, 30, 1445, 434, 326, 813, 17, 267, 10891, 5412, 358, 1086, 20176, 598, 632, 723, 5691, 495, 30, 385, 95, 5659, 97, 225, 632, 891, 268, 30, 261, 14165, 13, 1033, 716, 903, 1699, 326, 707, 358, 3073, 15538, 3765, 1012, 18, 632, 723, 268, 30, 385, 95, 87, 2387, 67, 957, 18, 5938, 950, 97, 225, 632, 2463, 30, 1021, 924, 434, 326, 12040, 316, 326, 6895, 471, 6092, 7178, 19629, 18, 632, 86, 723, 30, 385, 95, 8052, 97, 3536, 1930, 1610, 1930, 2125, 7657, 1481, 67, 1118, 4062, 67, 11410, 73, 1930, 5081, 67, 2941, 225, 2125, 86, 67, 1425, 273, 1610, 18, 16589, 3530, 12, 3923, 13, 2125, 86, 67, 1425, 18, 11369, 273, 2195, 18, 301, 86, 67, 11369, 2125, 86, 67, 1425, 18, 88, 495, 67, 892, 67, 10248, 273, 366, 10826, 67, 5471, 18, 8956, 1662, 12, 299, 495, 16, 374, 18, 20, 13, 225, 309, 268, 353, 486, 599, 30, 268, 18, 588, 950, 12, 8381, 13, 225, 309, 2195, 18, 11369, 30, 1172, 315, 7051, 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, 1001, 11162, 67, 9847, 12, 3923, 16, 5691, 495, 16, 268, 33, 7036, 4672, 3536, 1220, 445, 7597, 2125, 7657, 1481, 67, 1118, 4062, 67, 11410, 73, 471, 17264, 326, 7169, 364, 326, 864, 813, 17, 267, 10891, 5412, 5381, 18, 225, 632, 891, 2195, 30, 1033, 4191, 326, 501, 20176, 1664, 1779, 18, 632, 723, 2195, 30, 511, 95, 76, 10826, 67, 5471, 18, 11207, 97, 225, 632, 891, 5691, 495, 30, 1445, 434, 326, 813, 17, 267, 10891, 5412, 358, 1086, 20176, 598, 632, 723, 5691, 495, 30, 385, 95, 5659, 97, 225, 632, 891, 268, 30, 261, 14165, 13, 1033, 716, 903, 1699, 326, 707, 358, 3073, 15538, 3765, 1012, 18, 632, 723, 268, 30, 2 ]
if key in self.names:
member = 0 if key in self._files: member = 1 elif key in self.files: member = 1 key += '.npy' if member:
def __getitem__(self, key): # FIXME: This seems like it will copy strings around # more than is strictly necessary. The zipfile # will read the string and then # the format.read_array will copy the string # to another place in memory. # It would be better if the zipfile could read # (or at least uncompress) the data # directly into the array memory. if key in self.names: bytes = self.zip.read(key) if bytes.startswith(format.MAGIC_PREFIX): value = cStringIO.StringIO(bytes) return format.read_array(value) else: return bytes else: raise KeyError, "%s is not a file in the archive" % key
89d0310a07059f4b75aaaf6764326c97afdd1014 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/89d0310a07059f4b75aaaf6764326c97afdd1014/io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 498, 4672, 468, 9852, 30, 1220, 12001, 3007, 518, 903, 1610, 2064, 6740, 468, 282, 1898, 2353, 353, 23457, 4573, 18, 225, 1021, 18823, 468, 282, 903, 855, 326, 533, 471, 1508, 468, 282, 326, 740, 18, 896, 67, 1126, 903, 1610, 326, 533, 468, 282, 358, 4042, 3166, 316, 3778, 18, 468, 282, 2597, 4102, 506, 7844, 309, 326, 18823, 3377, 855, 468, 282, 261, 280, 622, 4520, 12704, 1028, 13, 326, 501, 468, 282, 5122, 1368, 326, 526, 3778, 18, 3140, 273, 374, 309, 498, 316, 365, 6315, 2354, 30, 3140, 273, 404, 1327, 498, 316, 365, 18, 2354, 30, 3140, 273, 404, 498, 1011, 2418, 82, 2074, 11, 309, 3140, 30, 1731, 273, 365, 18, 4450, 18, 896, 12, 856, 13, 309, 1731, 18, 17514, 1918, 12, 2139, 18, 49, 22247, 67, 6307, 4672, 460, 273, 276, 780, 4294, 18, 780, 4294, 12, 3890, 13, 327, 740, 18, 896, 67, 1126, 12, 1132, 13, 469, 30, 327, 1731, 469, 30, 1002, 4999, 16, 2213, 87, 353, 486, 279, 585, 316, 326, 5052, 6, 738, 498, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 498, 4672, 468, 9852, 30, 1220, 12001, 3007, 518, 903, 1610, 2064, 6740, 468, 282, 1898, 2353, 353, 23457, 4573, 18, 225, 1021, 18823, 468, 282, 903, 855, 326, 533, 471, 1508, 468, 282, 326, 740, 18, 896, 67, 1126, 903, 1610, 326, 533, 468, 282, 358, 4042, 3166, 316, 3778, 18, 468, 282, 2597, 4102, 506, 7844, 309, 326, 18823, 3377, 855, 468, 282, 261, 280, 622, 4520, 12704, 1028, 13, 326, 501, 468, 282, 5122, 1368, 326, 526, 3778, 18, 3140, 273, 374, 309, 498, 316, 365, 6315, 2354, 30, 3140, 273, 404, 1327, 498, 316, 365, 18, 2354, 30, 3140, 273, 404, 498, 1011, 2418, 82, 2074, 11, 309, 2 ]
proxy_user=None, proxy_pass=None, debug=2,
proxy_user=None, proxy_pass=None, debug=0,
def __init__(self, aws_access_key_id=None, aws_secret_access_key=None, is_secure=True, host=None, port=None, proxy=None, proxy_port=None, proxy_user=None, proxy_pass=None, debug=2, https_connection_factory=None, region=None, path='/'): """ Init method to create a new connection to EC2.
dadfdf504a45fdd7e42ef36a2075492226de0604 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1098/dadfdf504a45fdd7e42ef36a2075492226de0604/connection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2287, 67, 3860, 67, 856, 67, 350, 33, 7036, 16, 2287, 67, 5875, 67, 3860, 67, 856, 33, 7036, 16, 353, 67, 8869, 33, 5510, 16, 1479, 33, 7036, 16, 1756, 33, 7036, 16, 2889, 33, 7036, 16, 2889, 67, 655, 33, 7036, 16, 2889, 67, 1355, 33, 7036, 16, 2889, 67, 5466, 33, 7036, 16, 1198, 33, 20, 16, 2333, 67, 4071, 67, 6848, 33, 7036, 16, 3020, 33, 7036, 16, 589, 2218, 2473, 4672, 3536, 4378, 707, 358, 752, 279, 394, 1459, 358, 7773, 22, 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, 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 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2287, 67, 3860, 67, 856, 67, 350, 33, 7036, 16, 2287, 67, 5875, 67, 3860, 67, 856, 33, 7036, 16, 353, 67, 8869, 33, 5510, 16, 1479, 33, 7036, 16, 1756, 33, 7036, 16, 2889, 33, 7036, 16, 2889, 67, 655, 33, 7036, 16, 2889, 67, 1355, 33, 7036, 16, 2889, 67, 5466, 33, 7036, 16, 1198, 33, 20, 16, 2333, 67, 4071, 67, 6848, 33, 7036, 16, 3020, 33, 7036, 16, 589, 2218, 2473, 4672, 3536, 4378, 707, 358, 752, 279, 394, 1459, 358, 7773, 22, 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 ]
return value
return b''.join(value)
def _read_chunked(self, amt): assert self.chunked != _UNKNOWN chunk_left = self.chunk_left value = b""
9c33cbfbef5858e83a0079e89d81ae6fb15fc360 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/9c33cbfbef5858e83a0079e89d81ae6fb15fc360/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 6551, 329, 12, 2890, 16, 25123, 4672, 1815, 365, 18, 6551, 329, 480, 389, 14737, 2441, 67, 4482, 273, 365, 18, 6551, 67, 4482, 460, 273, 324, 3660, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 6551, 329, 12, 2890, 16, 25123, 4672, 1815, 365, 18, 6551, 329, 480, 389, 14737, 2441, 67, 4482, 273, 365, 18, 6551, 67, 4482, 460, 273, 324, 3660, 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 ]
lang=False, update_tax=True,date_order=False,packaging=False,fiscal_position=False):
lang=False, update_tax=True,date_order=False,packaging=False,fiscal_position=False, flag=False):
def product_id_change(self, cr, uid, ids, pricelist, product, qty=0, uom=False, qty_uos=0, uos=False, name='', partner_id=False, lang=False, update_tax=True,date_order=False,packaging=False,fiscal_position=False): res=super(sale_order_line, self).product_id_change(cr, uid, ids, pricelist, product, qty, uom, qty_uos, uos, name, partner_id, lang, update_tax,date_order,fiscal_position=fiscal_position)
09263c29730891dba703fcb1a2bfb60b2db55bf7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/09263c29730891dba703fcb1a2bfb60b2db55bf7/product.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3017, 67, 350, 67, 3427, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 846, 335, 5449, 16, 3017, 16, 26667, 33, 20, 16, 582, 362, 33, 8381, 16, 26667, 67, 89, 538, 33, 20, 16, 582, 538, 33, 8381, 16, 508, 2218, 2187, 19170, 67, 350, 33, 8381, 16, 3303, 33, 8381, 16, 1089, 67, 8066, 33, 5510, 16, 712, 67, 1019, 33, 8381, 16, 2920, 5755, 33, 8381, 16, 74, 291, 771, 67, 3276, 33, 8381, 16, 2982, 33, 8381, 4672, 400, 33, 9565, 12, 87, 5349, 67, 1019, 67, 1369, 16, 365, 2934, 5896, 67, 350, 67, 3427, 12, 3353, 16, 4555, 16, 3258, 16, 846, 335, 5449, 16, 3017, 16, 26667, 16, 582, 362, 16, 26667, 67, 89, 538, 16, 582, 538, 16, 508, 16, 19170, 67, 350, 16, 3303, 16, 1089, 67, 8066, 16, 712, 67, 1019, 16, 74, 291, 771, 67, 3276, 33, 74, 291, 771, 67, 3276, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3017, 67, 350, 67, 3427, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 846, 335, 5449, 16, 3017, 16, 26667, 33, 20, 16, 582, 362, 33, 8381, 16, 26667, 67, 89, 538, 33, 20, 16, 582, 538, 33, 8381, 16, 508, 2218, 2187, 19170, 67, 350, 33, 8381, 16, 3303, 33, 8381, 16, 1089, 67, 8066, 33, 5510, 16, 712, 67, 1019, 33, 8381, 16, 2920, 5755, 33, 8381, 16, 74, 291, 771, 67, 3276, 33, 8381, 16, 2982, 33, 8381, 4672, 400, 33, 9565, 12, 87, 5349, 67, 1019, 67, 1369, 16, 365, 2934, 5896, 67, 350, 67, 3427, 12, 3353, 16, 4555, 16, 3258, 16, 846, 335, 5449, 16, 3017, 16, 26667, 16, 582, 362, 2 ]
parser.add_option("--configure-WxStation", action="store_true", dest="configure_VP", help="To configure a WxStation weather station")
parser.add_option("--configure-VantagePro", action="store_true", dest="configure_VP", help="To configure a VantagePro weather station")
def main(): parser = OptionParser(usage=usagestr) parser.add_option("--create-database", action="store_true", dest="create_database", help="To create the SQL database wview-archive.sdb") parser.add_option("--create-stats", action="store_true", dest="create_stats", help="To create the statistical statistical database stats.sdb") parser.add_option("--backfill-stats", action="store_true", dest="backfill_stats", help="To backfill the statistical database from the main database") parser.add_option("--configure-WxStation", action="store_true", dest="configure_VP", help="To configure a WxStation weather station") (options, args) = parser.parse_args() if len(args) < 1: print "Missing argument(s)." print parser.parse_args(["--help"]) exit() config_path = args[0] # Set defaults for the system logger: syslog.openlog('configure', syslog.LOG_PID|syslog.LOG_CONS) # Try to open up the given configuration file. Declare an error if unable to. try : config_dict = configobj.ConfigObj(config_path, file_error=True) except IOError: print "Unable to open configuration file ", config_path syslog.syslog(syslog.LOG_CRIT, "main: Unable to open configuration file %s" % config_path) exit() if options.create_database: createMainDatabase(config_dict) if options.create_stats: createStatsDatabase(config_dict) if options.backfill_stats: backfillStatsDatabase(config_dict) if options.configure_VP: configureVP(config_dict)
e46ea6899da7d1018d94aa20624c1cfd4f6c9f31 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6433/e46ea6899da7d1018d94aa20624c1cfd4f6c9f31/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2082, 273, 18862, 12, 9167, 33, 407, 1023, 313, 13, 2082, 18, 1289, 67, 3482, 2932, 413, 2640, 17, 6231, 3113, 1301, 1546, 2233, 67, 3767, 3113, 1570, 1546, 2640, 67, 6231, 3113, 2809, 1546, 774, 752, 326, 3063, 2063, 341, 1945, 17, 10686, 18, 27056, 7923, 2082, 18, 1289, 67, 3482, 2932, 413, 2640, 17, 5296, 3113, 565, 1301, 1546, 2233, 67, 3767, 3113, 1570, 1546, 2640, 67, 5296, 3113, 565, 2809, 1546, 774, 752, 326, 610, 376, 1706, 610, 376, 1706, 2063, 3177, 18, 27056, 7923, 2082, 18, 1289, 67, 3482, 2932, 413, 823, 5935, 17, 5296, 3113, 225, 1301, 1546, 2233, 67, 3767, 3113, 1570, 1546, 823, 5935, 67, 5296, 3113, 225, 2809, 1546, 774, 1473, 5935, 326, 610, 376, 1706, 2063, 628, 326, 2774, 2063, 7923, 2082, 18, 1289, 67, 3482, 2932, 413, 14895, 17, 58, 970, 410, 626, 3113, 1301, 1546, 2233, 67, 3767, 3113, 1570, 1546, 14895, 67, 26152, 3113, 2809, 1546, 774, 5068, 279, 776, 970, 410, 626, 21534, 13282, 7923, 225, 261, 2116, 16, 833, 13, 273, 2082, 18, 2670, 67, 1968, 1435, 225, 309, 562, 12, 1968, 13, 411, 404, 30, 1172, 315, 4841, 1237, 12, 87, 14944, 1172, 2082, 18, 2670, 67, 1968, 3816, 6, 413, 5201, 6, 5717, 2427, 1435, 225, 642, 67, 803, 273, 833, 63, 20, 65, 225, 468, 1000, 3467, 364, 326, 2619, 1194, 30, 16718, 18, 3190, 1330, 2668, 14895, 2187, 16718, 18, 4842, 67, 16522, 96, 9499, 1330, 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, 2774, 13332, 2082, 273, 18862, 12, 9167, 33, 407, 1023, 313, 13, 2082, 18, 1289, 67, 3482, 2932, 413, 2640, 17, 6231, 3113, 1301, 1546, 2233, 67, 3767, 3113, 1570, 1546, 2640, 67, 6231, 3113, 2809, 1546, 774, 752, 326, 3063, 2063, 341, 1945, 17, 10686, 18, 27056, 7923, 2082, 18, 1289, 67, 3482, 2932, 413, 2640, 17, 5296, 3113, 565, 1301, 1546, 2233, 67, 3767, 3113, 1570, 1546, 2640, 67, 5296, 3113, 565, 2809, 1546, 774, 752, 326, 610, 376, 1706, 610, 376, 1706, 2063, 3177, 18, 27056, 7923, 2082, 18, 1289, 67, 3482, 2932, 413, 823, 5935, 17, 5296, 3113, 225, 1301, 1546, 2233, 67, 3767, 3113, 1570, 1546, 823, 5935, 67, 5296, 3113, 225, 2809, 2 ]
self.setPosition(len(self.covers)-1)
self.setPosition(len(self.coverData)-1)
def _handleCustomCoverButton(self): fileName = QtGui.QFileDialog.getOpenFileName(self,"Cover öffnen",os.path.expanduser("~"), "Bilddateien (*.png *.jpg *.bmp);;Alle Dateien (*)"); if fileName == "": # user cancelled the dialog return image = QtGui.QPixmap(fileName) if image.isNull(): QtGui.QMessageBox(QtGui.QMessageBox.Warning,"Fehler beim Öffnen der Datei", "Die Datei konnte nicht geöffnet werden.",QtGui.QMessageBox.Ok,self).exec_() else: self.addImage(image,fileName) self.setPosition(len(self.covers)-1)
23314926f1305b4dffda643018bbddea06f6e317 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5948/23314926f1305b4dffda643018bbddea06f6e317/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 3802, 8084, 3616, 12, 2890, 4672, 3968, 273, 23425, 18, 53, 812, 6353, 18, 588, 3678, 4771, 12, 2890, 10837, 8084, 225, 132, 119, 1403, 82, 275, 3113, 538, 18, 803, 18, 12320, 1355, 2932, 98, 6, 3631, 315, 38, 330, 449, 340, 77, 275, 261, 11146, 6446, 380, 18, 14362, 380, 18, 70, 1291, 1769, 31, 1067, 298, 2167, 77, 275, 261, 14, 2225, 1769, 309, 3968, 422, 1408, 30, 468, 729, 13927, 326, 6176, 327, 225, 1316, 273, 23425, 18, 53, 21816, 1458, 12, 17812, 13, 309, 1316, 18, 291, 2041, 13332, 23425, 18, 53, 27647, 12, 23310, 18070, 18, 53, 27647, 18, 6210, 10837, 2954, 76, 749, 506, 381, 225, 132, 249, 1403, 82, 275, 4854, 2167, 77, 3113, 315, 23196, 2167, 77, 417, 265, 496, 73, 11562, 647, 8244, 132, 119, 1403, 2758, 22646, 13002, 1199, 16, 23310, 18070, 18, 53, 27647, 18, 8809, 16, 2890, 2934, 4177, 67, 1435, 469, 30, 365, 18, 1289, 2040, 12, 2730, 16, 17812, 13, 365, 18, 542, 2555, 12, 1897, 12, 2890, 18, 3165, 751, 24950, 21, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 3802, 8084, 3616, 12, 2890, 4672, 3968, 273, 23425, 18, 53, 812, 6353, 18, 588, 3678, 4771, 12, 2890, 10837, 8084, 225, 132, 119, 1403, 82, 275, 3113, 538, 18, 803, 18, 12320, 1355, 2932, 98, 6, 3631, 315, 38, 330, 449, 340, 77, 275, 261, 11146, 6446, 380, 18, 14362, 380, 18, 70, 1291, 1769, 31, 1067, 298, 2167, 77, 275, 261, 14, 2225, 1769, 309, 3968, 422, 1408, 30, 468, 729, 13927, 326, 6176, 327, 225, 1316, 273, 23425, 18, 53, 21816, 1458, 12, 17812, 13, 309, 1316, 18, 291, 2041, 13332, 23425, 18, 53, 27647, 12, 23310, 18070, 18, 53, 27647, 18, 6210, 10837, 2954, 76, 749, 506, 381, 225, 132, 249, 1403, 2 ]
if self.distribution.has_ext_modules():
if not self.skip_build and self.distribution.has_ext_modules():
def finalize_options (self): if self.bdist_dir is None: bdist_base = self.get_finalized_command('bdist').bdist_base self.bdist_dir = os.path.join(bdist_base, 'wininst') if not self.target_version: self.target_version = "" if self.distribution.has_ext_modules(): short_version = get_python_version() if self.target_version and self.target_version != short_version: raise DistutilsOptionError, \ "target version can only be" + short_version self.target_version = short_version
f9ba0caf6fda157ad4d46363371dba1a10f802f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f9ba0caf6fda157ad4d46363371dba1a10f802f7/bdist_wininst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12409, 67, 2116, 261, 2890, 4672, 309, 365, 18, 70, 4413, 67, 1214, 353, 599, 30, 324, 4413, 67, 1969, 273, 365, 18, 588, 67, 6385, 1235, 67, 3076, 2668, 70, 4413, 16063, 70, 4413, 67, 1969, 365, 18, 70, 4413, 67, 1214, 273, 1140, 18, 803, 18, 5701, 12, 70, 4413, 67, 1969, 16, 296, 8082, 8591, 6134, 309, 486, 365, 18, 3299, 67, 1589, 30, 365, 18, 3299, 67, 1589, 273, 1408, 309, 486, 365, 18, 7457, 67, 3510, 471, 365, 18, 16279, 18, 5332, 67, 408, 67, 6400, 13332, 3025, 67, 1589, 273, 336, 67, 8103, 67, 1589, 1435, 309, 365, 18, 3299, 67, 1589, 471, 365, 18, 3299, 67, 1589, 480, 3025, 67, 1589, 30, 1002, 19893, 5471, 1895, 668, 16, 521, 315, 3299, 1177, 848, 1338, 506, 6, 397, 3025, 67, 1589, 365, 18, 3299, 67, 1589, 273, 3025, 67, 1589, 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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67, 1969, 273, 365, 18, 588, 67, 6385, 1235, 67, 3076, 2668, 70, 4413, 16063, 70, 4413, 67, 1969, 365, 18, 70, 4413, 67, 1214, 273, 1140, 18, 803, 18, 5701, 12, 70, 4413, 67, 1969, 16, 296, 8082, 8591, 6134, 309, 486, 365, 18, 3299, 67, 1589, 30, 365, 18, 3299, 67, 1589, 273, 1408, 309, 486, 365, 18, 7457, 67, 3510, 471, 365, 18, 16279, 18, 5332, 67, 408, 67, 6400, 13332, 3025, 67, 1589, 273, 336, 67, 8103, 67, 1589, 1435, 309, 365, 18, 3299, 67, 1589, 471, 365, 18, 3299, 67, 1589, 480, 3025, 67, 1589, 2 ]
f = self.create_function(0)
f = self.create_function([])
def generate(self, opts, args_num, globals): fon = self.generate_globalon() foff = self.generate_globaloff()
a53ae9ad63b9112b4f06f0d7b4e2b61e3da9e1a2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9463/a53ae9ad63b9112b4f06f0d7b4e2b61e3da9e1a2/globalsgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 2890, 16, 1500, 16, 833, 67, 2107, 16, 10941, 4672, 284, 265, 273, 365, 18, 7163, 67, 6347, 265, 1435, 284, 3674, 273, 365, 18, 7163, 67, 6347, 3674, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 2890, 16, 1500, 16, 833, 67, 2107, 16, 10941, 4672, 284, 265, 273, 365, 18, 7163, 67, 6347, 265, 1435, 284, 3674, 273, 365, 18, 7163, 67, 6347, 3674, 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 ]
elif stdout == PIPE:
if c2pwrite is not None: pass elif stdout is None or stdout == PIPE:
def _get_handles(self, stdin, stdout, stderr): """Construct and return tupel with IO objects: p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite """ if stdin is None and stdout is None and stderr is None: return (None, None, None, None, None, None)
0e57c3fa251ec5f3e093e6db214906e54503bba3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/0e57c3fa251ec5f3e093e6db214906e54503bba3/subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 24111, 12, 2890, 16, 8801, 16, 3909, 16, 4514, 4672, 3536, 7249, 471, 327, 15822, 292, 598, 1665, 2184, 30, 293, 22, 71, 896, 16, 293, 22, 71, 2626, 16, 276, 22, 84, 896, 16, 276, 22, 84, 2626, 16, 393, 896, 16, 393, 2626, 3536, 309, 8801, 353, 599, 471, 3909, 353, 599, 471, 4514, 353, 599, 30, 327, 261, 7036, 16, 599, 16, 599, 16, 599, 16, 599, 16, 599, 13, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 24111, 12, 2890, 16, 8801, 16, 3909, 16, 4514, 4672, 3536, 7249, 471, 327, 15822, 292, 598, 1665, 2184, 30, 293, 22, 71, 896, 16, 293, 22, 71, 2626, 16, 276, 22, 84, 896, 16, 276, 22, 84, 2626, 16, 393, 896, 16, 393, 2626, 3536, 309, 8801, 353, 599, 471, 3909, 353, 599, 471, 4514, 353, 599, 30, 327, 261, 7036, 16, 599, 16, 599, 16, 599, 16, 599, 16, 599, 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 ]
data = unicode(context.get_form_value('data'), 'UTF-8') self.set_data(data)
data = context.get_form_value('data') resource = memory.File(data) self.load_state(resource)
def edit(self, context): data = unicode(context.get_form_value('data'), 'UTF-8') self.set_data(data)
1d208a8b0a263b75f6063f0f59a4a1c940068c8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/1d208a8b0a263b75f6063f0f59a4a1c940068c8c/text.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 12, 2890, 16, 819, 4672, 501, 273, 5252, 12, 2472, 18, 588, 67, 687, 67, 1132, 2668, 892, 19899, 296, 5159, 17, 28, 6134, 365, 18, 542, 67, 892, 12, 892, 13, 2, 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, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 12, 2890, 16, 819, 4672, 501, 273, 5252, 12, 2472, 18, 588, 67, 687, 67, 1132, 2668, 892, 19899, 296, 5159, 17, 28, 6134, 365, 18, 542, 67, 892, 12, 892, 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 ]
builder['is_green'] = not re.search('fail', cell.renderContents())
builder['is_green'] = not re.search('fail', cell.renderContents()) or \ re.search('lost', cell.renderContents())
def _parse_last_build_cell(self, builder, cell): status_link = cell.find('a') if status_link: # Will be either a revision number or a build number revision_string = status_link.string # If revision_string has non-digits assume it's not a revision number. builder['built_revision'] = int(revision_string) \ if not re.match('\D', revision_string) \ else None builder['is_green'] = not re.search('fail', cell.renderContents())
8ce0f40179cb55526c5e93c4feee791163cab42a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/8ce0f40179cb55526c5e93c4feee791163cab42a/buildbot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 67, 2722, 67, 3510, 67, 3855, 12, 2890, 16, 2089, 16, 2484, 4672, 1267, 67, 1232, 273, 2484, 18, 4720, 2668, 69, 6134, 309, 1267, 67, 1232, 30, 468, 9980, 506, 3344, 279, 6350, 1300, 578, 279, 1361, 1300, 6350, 67, 1080, 273, 1267, 67, 1232, 18, 1080, 468, 971, 6350, 67, 1080, 711, 1661, 17, 16649, 6750, 518, 1807, 486, 279, 6350, 1300, 18, 2089, 3292, 12406, 67, 13057, 3546, 273, 509, 12, 13057, 67, 1080, 13, 521, 309, 486, 283, 18, 1916, 2668, 64, 40, 2187, 6350, 67, 1080, 13, 521, 469, 599, 2089, 3292, 291, 67, 11571, 3546, 273, 486, 283, 18, 3072, 2668, 6870, 2187, 2484, 18, 5902, 6323, 10756, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 67, 2722, 67, 3510, 67, 3855, 12, 2890, 16, 2089, 16, 2484, 4672, 1267, 67, 1232, 273, 2484, 18, 4720, 2668, 69, 6134, 309, 1267, 67, 1232, 30, 468, 9980, 506, 3344, 279, 6350, 1300, 578, 279, 1361, 1300, 6350, 67, 1080, 273, 1267, 67, 1232, 18, 1080, 468, 971, 6350, 67, 1080, 711, 1661, 17, 16649, 6750, 518, 1807, 486, 279, 6350, 1300, 18, 2089, 3292, 12406, 67, 13057, 3546, 273, 509, 12, 13057, 67, 1080, 13, 521, 309, 486, 283, 18, 1916, 2668, 64, 40, 2187, 6350, 67, 1080, 13, 521, 469, 599, 2089, 3292, 291, 67, 11571, 3546, 273, 486, 283, 18, 3072, 2668, 6870, 2187, 2484, 18, 5902, 6323, 10756, 2, -100, -100 ]
if aslocator: default = N.arange(vmin, vmax+1) else: format = N.empty(locs.size, dtype="|S8")
if not aslocator: format = N.empty(default.shape, dtype="|S10")
def _daily_finder(locs, freqstr, aslocator): if freqstr == 'B': periodsperyear = 261 elif freqstr == 'D': periodsperyear = 365 else: raise ValueError("unexpected frequency") locs = N.asarray(locs) (vmin, vmax) = locs[[0,-1]] span = vmax - vmin + 1 dates = date_array(start_date=Date(freqstr,vmin), end_date=Date(freqstr, vmax)) # Initialize the output if aslocator: default = N.arange(vmin, vmax+1) else: #asformatter format = N.empty(locs.size, dtype="|S8") format.flat = '' # Case 1. Less than a month if span <= (periodsperyear//12 - 2): month_start = period_break(dates,'month') if aslocator: major = default[month_start] minor = default else: year_start = period_break(dates,'year') format[:] = '%d' format[month_start] = '%d\n%b' format[year_start] = '%d\n%b\n%Y' if year_start.size == 0: if month_start.size == 0: if dates.size > 1: idx = 1 else: idx = 0 format[idx] = '%d\n%b\n%Y' else: format[month_break[0]] = '%d\n%b\n%Y' # Case 2. Less than three months elif span <= periodsperyear//4: month_start = period_break(dates,'month') if aslocator: major = default[month_start] minor = default else: week_start = (dates.day_of_week == 1) year_start = period_break(dates,'year') week_start[0] = False month_start[0] = False year_start[0] = False format[week_start] = '%d' format[month_start] = '\n\n%b' format[year_start] = '\n\n%b\n%Y' if year_start.size == 0: month_break = month_start.nonzero()[0] if month_break.size == 0: week_break = week_start.nonzero()[0] format[week_break[0]] = '\n\n%b\n%Y' else: format[month_break[0]] = '\n\n%b\n%Y' # Case 3. Less than 14 months ............... elif span <= 1.15 * periodsperyear: month_start = period_break(dates,'month') if aslocator: week_start = period_break(dates, 'week') minor_idx = (week_start | month_start) minor_idx[0] = True major = default[month_start] minor = default[minor_idx] else: year_start = period_break(dates,'year') month_start[0] = False year_start[0] = False format[month_start] = '%b' format[year_start] = '%b\n%Y' if not year_start.size: format[month_break[0]] = '%b\n%Y' # Case 4. Less than 2.5 years ............... elif span <= 2.5 * periodsperyear: year_start = period_break(dates,'year') if aslocator: month_start = period_break(dates, 'quarter') major = default[year_start] minor = default[month_start] else: quarter_start = period_break(dates, 'quarter') format[quarter_start] = '%b' format[year_start] = '%b\n%Y' # Case 4. Less than 4 years ................. elif span <= 4 * periodsperyear: year_start = period_break(dates,'year') month_start = period_break(dates, 'month') if aslocator: major = default[year_start] minor = default[month_start] else: month_break = dates[month_start].month jan_or_jul = month_start[(month_break == 1 | month_break == 7)] format[jan_or_jul] = '%b' format[year_start] = '%b\n%Y' # Case 5. Less than 11 years ................ elif span <= 11 * periodsperyear: year_start = period_break(dates,'year') if aslocator: quarter_start = period_break(dates, 'quarter') major = default[year_start] minor = default[quarter_start] else: format[year_start] = '%Y' # Case 6. More than 12 years ................ else: year_start = period_break(dates,'year') year_break = dates[year_start].years nyears = span/periodsperyear (min_anndef, maj_anndef) = _get_default_annual_spacing(nyears) major_idx = year_start[(year_break % maj_anndef == 0)] if aslocator: major = default[major_idx] minor_idx = year_start[(year_break % min_anndef == 0)] minor = default[minor_idx] else: format[major_idx] = '%Y' #............................................ if aslocator: return minor, major else: formatted = (format != '') return dict([(d,f) for (d,f) in zip(dates[formatted],format[formatted])])
7a3c507a500aec86f9240f3a0e8437c36eeb7238 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/7a3c507a500aec86f9240f3a0e8437c36eeb7238/mpl_timeseries_pgm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 26790, 67, 15356, 12, 24323, 16, 7684, 701, 16, 487, 20048, 4672, 225, 309, 7684, 701, 422, 296, 38, 4278, 12777, 457, 6874, 273, 576, 9498, 1327, 7684, 701, 422, 296, 40, 4278, 12777, 457, 6874, 273, 21382, 469, 30, 1002, 2068, 2932, 21248, 8670, 7923, 225, 26357, 273, 423, 18, 345, 1126, 12, 24323, 13, 261, 90, 1154, 16, 17831, 13, 273, 26357, 31128, 20, 16, 17, 21, 13563, 4548, 273, 17831, 300, 17501, 397, 404, 7811, 273, 1509, 67, 1126, 12, 1937, 67, 712, 33, 1626, 12, 10212, 701, 16, 90, 1154, 3631, 679, 67, 712, 33, 1626, 12, 10212, 701, 16, 17831, 3719, 468, 9190, 326, 876, 309, 487, 20048, 30, 805, 273, 423, 18, 297, 726, 12, 90, 1154, 16, 17831, 15, 21, 13, 469, 30, 468, 345, 12354, 740, 273, 423, 18, 5531, 12, 24323, 18, 1467, 16, 3182, 1546, 96, 55, 28, 7923, 740, 18, 15401, 273, 875, 468, 12605, 404, 18, 17304, 2353, 279, 3138, 309, 4548, 1648, 261, 20659, 457, 6874, 759, 2138, 300, 576, 4672, 3138, 67, 1937, 273, 3879, 67, 8820, 12, 9683, 11189, 7496, 6134, 309, 487, 20048, 30, 7888, 273, 805, 63, 7496, 67, 1937, 65, 8439, 273, 805, 469, 30, 3286, 67, 1937, 273, 3879, 67, 8820, 12, 9683, 11189, 6874, 6134, 740, 10531, 65, 273, 1995, 72, 11, 740, 63, 7496, 67, 1937, 65, 273, 1995, 72, 64, 82, 9, 70, 11, 740, 63, 6874, 67, 1937, 65, 273, 1995, 72, 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, 26790, 67, 15356, 12, 24323, 16, 7684, 701, 16, 487, 20048, 4672, 225, 309, 7684, 701, 422, 296, 38, 4278, 12777, 457, 6874, 273, 576, 9498, 1327, 7684, 701, 422, 296, 40, 4278, 12777, 457, 6874, 273, 21382, 469, 30, 1002, 2068, 2932, 21248, 8670, 7923, 225, 26357, 273, 423, 18, 345, 1126, 12, 24323, 13, 261, 90, 1154, 16, 17831, 13, 273, 26357, 31128, 20, 16, 17, 21, 13563, 4548, 273, 17831, 300, 17501, 397, 404, 7811, 273, 1509, 67, 1126, 12, 1937, 67, 712, 33, 1626, 12, 10212, 701, 16, 90, 1154, 3631, 679, 67, 712, 33, 1626, 12, 10212, 701, 16, 17831, 3719, 468, 9190, 326, 876, 309, 487, 20048, 30, 805, 273, 423, 2 ]
if _iscommand("mozilla"): register("mozilla", None, Netscape("mozilla")) if _iscommand("netscape"): register("netscape", None, Netscape("netscape"))
for browser in ("mozilla-firefox", "mozilla-firebird", "mozilla", "netscape"): if _iscommand(browser): register(browser, None, Netscape(browser))
def open_new(self, url): self.open(url)
31db3d373dd9924c51d98492bfe7cb0d447e94b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/31db3d373dd9924c51d98492bfe7cb0d447e94b4/webbrowser.py
[ 1, 8585, 326, 22398, 316, 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, 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, 1696, 67, 2704, 12, 2890, 16, 880, 4672, 365, 18, 3190, 12, 718, 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, -100, -100, -100, -100, -100, -100, -100 ]
nim.longitudeOrientation = configElement(cname + "longitudeOrientation", configSelection, 0, (("east",_("East")), ("west", _("West"))))
nim.longitudeOrientation = configElement(cname + "longitudeOrientation", configSelection, 0, (("east", _("East")), ("west", _("West"))))
def nimPortDChanged(slotid, configElement): nimmgr.nimPortDChanged(slotid, configElement.vals[configElement.value][1])
f503f202686fc9ff6859cf834e9a021922011b81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/f503f202686fc9ff6859cf834e9a021922011b81/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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
def compile_cmd(f, m): """ Given a .pyx file f, which is a part of module m, copy the file to SITE_PACKAGES, and return a string which will call Cython on it.
def compile_command(f): """ Given a pair p, consisting of a filename f and a module m, compile the file f. Given a pair p = [f, m], with a .pyx file f which is a part the module m, call Cython on f copy the file to SITE_PACKAGES, and return a string which will call Cython on it.
def compile_cmd(f, m): """ Given a .pyx file f, which is a part of module m, copy the file to SITE_PACKAGES, and return a string which will call Cython on it. """ if f.endswith('.pyx'): # process cython file pyx_inst_file = '%s/%s'%(SITE_PACKAGES, f) retval = os.system('cp %s %s 2>/dev/null'%(f, pyx_inst_file)) # we could do this more elegantly -- load the files, use # os.path.exists to check that they exist, etc. ... but the # *vast* majority of the time, the copy just works. so this is # just specializing for the most common use case. if retval: dirname, filename = os.path.split(pyx_inst_file) if not os.path.exists(dirname): os.makedirs(dirname) retval = os.system('cp %s %s 2>/dev/null'%(f, pyx_inst_file)) if retval: raise OSError, "cannot copy %s to %s"%(f,pyx_inst_file) print "%s --> %s"%(f, pyx_inst_file) outfile = f[:-4] if m.language == 'c++': outfile += ".cpp" else: outfile += ".c" cmd = "python2.5 `which cython` --embed-positions --incref-local-binop -I%s -o %s %s"%(os.getcwd(), outfile, f) elif f.endswith(('.c','.cc','.cpp')): # process C/C++ file cmd = "touch %s"%f return cmd #"NEED TO COMPILE file " + f + " in module " + m.name
b403c4ae7ce95128471152617e3a5b4e526b43bd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/b403c4ae7ce95128471152617e3a5b4e526b43bd/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 67, 3076, 12, 74, 4672, 3536, 16803, 279, 3082, 293, 16, 23570, 434, 279, 1544, 284, 471, 279, 1605, 312, 16, 4074, 326, 585, 284, 18, 225, 16803, 279, 3082, 293, 273, 306, 74, 16, 312, 6487, 598, 279, 263, 2074, 92, 585, 284, 1492, 353, 279, 1087, 326, 1605, 312, 16, 745, 385, 18490, 603, 284, 225, 1610, 326, 585, 358, 23832, 67, 19077, 55, 16, 471, 327, 279, 533, 1492, 903, 745, 385, 18490, 603, 518, 18, 3536, 309, 284, 18, 5839, 1918, 2668, 18, 2074, 92, 11, 4672, 468, 1207, 6143, 3041, 585, 2395, 92, 67, 8591, 67, 768, 273, 1995, 87, 5258, 87, 11, 17105, 20609, 67, 19077, 55, 16, 284, 13, 5221, 273, 1140, 18, 4299, 2668, 4057, 738, 87, 738, 87, 576, 16893, 5206, 19, 2011, 11, 17105, 74, 16, 2395, 92, 67, 8591, 67, 768, 3719, 468, 732, 3377, 741, 333, 1898, 415, 1332, 970, 715, 1493, 1262, 326, 1390, 16, 999, 468, 1140, 18, 803, 18, 1808, 358, 866, 716, 2898, 1005, 16, 5527, 18, 1372, 1496, 326, 468, 380, 90, 689, 14, 7888, 560, 434, 326, 813, 16, 326, 1610, 2537, 6330, 18, 1427, 333, 353, 468, 2537, 4582, 6894, 364, 326, 4486, 2975, 999, 648, 18, 309, 5221, 30, 4283, 16, 1544, 273, 1140, 18, 803, 18, 4939, 12, 2074, 92, 67, 8591, 67, 768, 13, 309, 486, 1140, 18, 803, 18, 1808, 12, 12287, 4672, 1140, 18, 81, 9477, 10539, 12, 12287, 13, 5221, 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, 4074, 67, 3076, 12, 74, 4672, 3536, 16803, 279, 3082, 293, 16, 23570, 434, 279, 1544, 284, 471, 279, 1605, 312, 16, 4074, 326, 585, 284, 18, 225, 16803, 279, 3082, 293, 273, 306, 74, 16, 312, 6487, 598, 279, 263, 2074, 92, 585, 284, 1492, 353, 279, 1087, 326, 1605, 312, 16, 745, 385, 18490, 603, 284, 225, 1610, 326, 585, 358, 23832, 67, 19077, 55, 16, 471, 327, 279, 533, 1492, 903, 745, 385, 18490, 603, 518, 18, 3536, 309, 284, 18, 5839, 1918, 2668, 18, 2074, 92, 11, 4672, 468, 1207, 6143, 3041, 585, 2395, 92, 67, 8591, 67, 768, 273, 1995, 87, 5258, 87, 11, 17105, 20609, 67, 19077, 55, 16, 284, 13, 5221, 2 ]
for test in self._full_test_list: if not test in self._test_list_paths: self._AddTest(test, modifiers, expectations, options)
if self._full_test_list: for test in self._full_test_list: if not test in self._test_list_paths: self._AddTest(test, modifiers, expectations, options)
def _Read(self, expectations): """For each test in an expectations iterable, generate the expectations for it. """ lineno = 0 for line in expectations: lineno += 1
a624129450e1912bedde02a7805630838b2be73f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/a624129450e1912bedde02a7805630838b2be73f/test_expectations.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1994, 12, 2890, 16, 26305, 4672, 3536, 1290, 1517, 1842, 316, 392, 26305, 6087, 16, 2103, 326, 26305, 364, 518, 18, 3536, 7586, 273, 374, 364, 980, 316, 26305, 30, 7586, 1011, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 389, 1994, 12, 2890, 16, 26305, 4672, 3536, 1290, 1517, 1842, 316, 392, 26305, 6087, 16, 2103, 326, 26305, 364, 518, 18, 3536, 7586, 273, 374, 364, 980, 316, 26305, 30, 7586, 1011, 404, 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 ]
self.error(col, row + 1, ERROR_NOT_UNICODE_OR_ASCII)
self.error(row, col, ERROR_NOT_UNICODE_OR_ASCII)
def getTextFromCell(self, sheet, row, col, default=u''): try: value = sheet.cell_value(rowx=row, colx=col) except: return '' if isinstance(value, str): try: value = unicode(value) except UnicodeError: self.error(col, row + 1, ERROR_NOT_UNICODE_OR_ASCII) return default elif not isinstance(value, unicode): self.error(col, row + 1, ERROR_NOT_UNICODE_OR_ASCII) return default return value
57d3328c0c1a99c8d6574f10fa1d32e8fe0d442c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7127/57d3328c0c1a99c8d6574f10fa1d32e8fe0d442c/importer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6701, 1265, 4020, 12, 2890, 16, 6202, 16, 1027, 16, 645, 16, 805, 33, 89, 6309, 4672, 775, 30, 460, 273, 6202, 18, 3855, 67, 1132, 12, 492, 92, 33, 492, 16, 645, 92, 33, 1293, 13, 1335, 30, 327, 875, 309, 1549, 12, 1132, 16, 609, 4672, 775, 30, 460, 273, 5252, 12, 1132, 13, 1335, 9633, 668, 30, 365, 18, 1636, 12, 492, 16, 645, 16, 5475, 67, 4400, 67, 26642, 67, 916, 67, 13756, 13, 327, 805, 1327, 486, 1549, 12, 1132, 16, 5252, 4672, 365, 18, 1636, 12, 492, 16, 645, 16, 5475, 67, 4400, 67, 26642, 67, 916, 67, 13756, 13, 327, 805, 327, 460, 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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, 3855, 67, 1132, 12, 492, 92, 33, 492, 16, 645, 92, 33, 1293, 13, 1335, 30, 327, 875, 309, 1549, 12, 1132, 16, 609, 4672, 775, 30, 460, 273, 5252, 12, 1132, 13, 1335, 9633, 668, 30, 365, 18, 1636, 12, 492, 16, 645, 16, 5475, 67, 4400, 67, 26642, 67, 916, 67, 13756, 13, 327, 805, 1327, 486, 1549, 12, 1132, 16, 5252, 4672, 365, 18, 1636, 12, 492, 16, 645, 16, 5475, 67, 4400, 67, 26642, 67, 916, 67, 13756, 13, 327, 805, 327, 460, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
i = p + 1
if epoch.isdigit(): i = p + 1 else: epoch = ""
def evrSplitString(evr): """Split evr to components. Return (E, V, R). Default epoch and release to "" if not specified.""" i = 0 p = evr.find(":") # epoch if p != -1: epoch = evr[:p] i = p + 1 else: epoch = "" p = evr.find("-", i) # version if p != -1: version = evr[i:p] release = evr[p+1:] else: version = evr[i:] release = "" return (epoch, version, release)
3d90487c8f513c091b2c04776c1278099b05913b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/3d90487c8f513c091b2c04776c1278099b05913b/functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2113, 86, 5521, 780, 12, 14965, 86, 4672, 3536, 5521, 2113, 86, 358, 4085, 18, 225, 2000, 261, 41, 16, 776, 16, 534, 2934, 225, 2989, 7632, 471, 3992, 358, 1408, 309, 486, 1269, 12123, 277, 273, 374, 293, 273, 2113, 86, 18, 4720, 2932, 2773, 13, 468, 7632, 309, 293, 480, 300, 21, 30, 7632, 273, 2113, 86, 10531, 84, 65, 309, 7632, 18, 291, 11052, 13332, 277, 273, 293, 397, 404, 469, 30, 7632, 273, 1408, 469, 30, 7632, 273, 1408, 293, 273, 2113, 86, 18, 4720, 2932, 17, 3113, 277, 13, 468, 1177, 309, 293, 480, 300, 21, 30, 1177, 273, 2113, 86, 63, 77, 30, 84, 65, 3992, 273, 2113, 86, 63, 84, 15, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2113, 86, 5521, 780, 12, 14965, 86, 4672, 3536, 5521, 2113, 86, 358, 4085, 18, 225, 2000, 261, 41, 16, 776, 16, 534, 2934, 225, 2989, 7632, 471, 3992, 358, 1408, 309, 486, 1269, 12123, 277, 273, 374, 293, 273, 2113, 86, 18, 4720, 2932, 2773, 13, 468, 7632, 309, 293, 480, 300, 21, 30, 7632, 273, 2113, 86, 10531, 84, 65, 309, 7632, 18, 291, 11052, 13332, 277, 273, 293, 397, 404, 469, 30, 7632, 273, 1408, 469, 30, 7632, 273, 1408, 293, 273, 2113, 86, 18, 4720, 2932, 17, 3113, 277, 13, 468, 1177, 309, 293, 480, 300, 21, 30, 1177, 273, 2113, 86, 63, 77, 30, 84, 65, 3992, 273, 2113, 86, 63, 84, 15, 2 ]
print "* ",som2[0]
print "* ", som2[0]
def integrate_axis(obj, **kwargs): """ This function takes a SOM or a SO and integrates the given axis. The function assumes that the incoming data is in the histogram form. Parameters: ---------- -> obj is a SOM or a SO -> kwargs is a list of key word arguments that the function accepts: start=<index of starting bin> end=<index of ending bin> This index is made inclusive by the function. axis=<y or x> This is the axis one wishes to manipulate. If no argument is given the default value is y axis_pos=<number> This is position of the axis in the axis array. If no argument is given, the default value is 0 Returns: ------- <- A tuple containing the integration value and its associated error Exceptions: ---------- <- RuntimError is raised if a SOM or SO is not given to the function """ # import the helper functions import hlr_utils # set up for working through data o_descr=hlr_utils.get_descr(obj) if o_descr == "number" or o_descr == "list": raise RuntimeError, "Must provide a SOM of a SO to the function." # Go on else: pass # Check for starting bin try: start = kwargs["start"] except KeyError: start = 0 # Check for ending bin try: end = kwargs["end"]+1 except KeyError: end = -1 # Check for axis keyword argument try: axis = kwargs["axis"] except KeyError: axis = "y" # Check for axis_pos keyword argument try: axis_pos = kwargs["axis_pos"] except KeyError: axis_pos = 0 integration = 0 integration_error2 = 0 for i in range(hlr_utils.get_length(obj)): value = hlr_utils.get_value(obj,i,o_descr,axis,axis_pos) error = hlr_utils.get_err2(obj,i,o_descr,axis,axis_pos) if end == -1: value = value[start:] error = error[start:] else: value = value[start:end] error = error[start:end] for (val,err) in map(None, value, error): integration += val integration_error2 += err return (integration,integration_error2)
6fe6bd8f1c3a8e6b1bc8ec8a02a774c1f6891ea9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/6fe6bd8f1c3a8e6b1bc8ec8a02a774c1f6891ea9/hlr_integrate_axis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23367, 67, 4890, 12, 2603, 16, 2826, 4333, 4672, 3536, 1220, 445, 5530, 279, 348, 1872, 578, 279, 7460, 471, 11301, 815, 326, 864, 2654, 18, 1021, 445, 13041, 716, 326, 6935, 501, 353, 316, 326, 8892, 646, 18, 225, 7012, 30, 12181, 317, 1081, 353, 279, 348, 1872, 578, 279, 7460, 317, 1205, 353, 279, 666, 434, 498, 2076, 1775, 716, 326, 445, 8104, 30, 787, 27127, 1615, 434, 5023, 4158, 34, 679, 27127, 1615, 434, 11463, 4158, 34, 1220, 770, 353, 7165, 13562, 635, 326, 445, 18, 2654, 27127, 93, 578, 619, 34, 1220, 353, 326, 2654, 1245, 14302, 281, 358, 28286, 18, 971, 1158, 1237, 353, 864, 326, 805, 460, 353, 677, 2654, 67, 917, 27127, 2696, 34, 1220, 353, 1754, 434, 326, 2654, 316, 326, 2654, 526, 18, 971, 1158, 1237, 353, 864, 16, 326, 805, 460, 353, 374, 225, 2860, 30, 18365, 3290, 432, 3193, 4191, 326, 12040, 460, 471, 2097, 3627, 555, 225, 12781, 30, 12181, 3290, 1939, 8584, 668, 353, 11531, 309, 279, 348, 1872, 578, 7460, 353, 486, 864, 358, 326, 445, 3536, 225, 468, 1930, 326, 4222, 4186, 1930, 366, 10826, 67, 5471, 225, 468, 444, 731, 364, 5960, 3059, 501, 320, 67, 28313, 33, 76, 10826, 67, 5471, 18, 588, 67, 28313, 12, 2603, 13, 225, 309, 320, 67, 28313, 422, 315, 2696, 6, 578, 320, 67, 28313, 422, 315, 1098, 6877, 1002, 7265, 16, 315, 10136, 5615, 279, 348, 1872, 434, 279, 7460, 358, 326, 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, 23367, 67, 4890, 12, 2603, 16, 2826, 4333, 4672, 3536, 1220, 445, 5530, 279, 348, 1872, 578, 279, 7460, 471, 11301, 815, 326, 864, 2654, 18, 1021, 445, 13041, 716, 326, 6935, 501, 353, 316, 326, 8892, 646, 18, 225, 7012, 30, 12181, 317, 1081, 353, 279, 348, 1872, 578, 279, 7460, 317, 1205, 353, 279, 666, 434, 498, 2076, 1775, 716, 326, 445, 8104, 30, 787, 27127, 1615, 434, 5023, 4158, 34, 679, 27127, 1615, 434, 11463, 4158, 34, 1220, 770, 353, 7165, 13562, 635, 326, 445, 18, 2654, 27127, 93, 578, 619, 34, 1220, 353, 326, 2654, 1245, 14302, 281, 358, 28286, 18, 971, 1158, 1237, 353, 864, 326, 805, 460, 353, 677, 2654, 67, 917, 2 ]
'on_reboot', 'on_crash', 'vcpus', 'vcpu_avail', 'features', 'on_xend_start', 'on_xend_stop', 'target', 'cpuid', 'cpuid_check', 'machine_address_size', 'suppress_spurious_page_faults'])
'on_reboot', 'on_crash', 'features', 'on_xend_start', 'on_xend_stop', 'target', 'cpuid', 'cpuid_check', 'machine_address_size', 'suppress_spurious_page_faults']) vcpu_conf()
def add_conf(n): if hasattr(vals, n): v = getattr(vals, n) if v: config.append([n, v])
9a443e7526585d3b28c0343d0c9b0a8818a94625 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6195/9a443e7526585d3b28c0343d0c9b0a8818a94625/create.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 3923, 12, 82, 4672, 309, 3859, 12, 4524, 16, 290, 4672, 331, 273, 3869, 12, 4524, 16, 290, 13, 309, 331, 30, 642, 18, 6923, 3816, 82, 16, 331, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 3923, 12, 82, 4672, 309, 3859, 12, 4524, 16, 290, 4672, 331, 273, 3869, 12, 4524, 16, 290, 13, 309, 331, 30, 642, 18, 6923, 3816, 82, 16, 331, 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, -100, -100, -100, -100, -100 ]
if execcheckfile != None: execlog = execcheckfile.strip('good')+'exec.out.tmp' else: execlog = execname+'.'+str(compoptsnum)+'-'+str(execoptsnum)+'.exec.out.tmp'
execlog = execname+'.'+str(compoptsnum)+'-'+str(execoptsnum)+'.exec.out.tmp'
def kill_proc(p, timeout): k = subprocess.Popen(['kill',str(p.pid)]) k.wait() now = time.time() end_time = now + timeout # give it a little time while end_time > now: if p.poll(): return now = time.time() # use the big hammer (and don't bother waiting) subprocess.Popen(['kill','-9', str(p.pid)]) return
97dd26e665e2ca235f4c8596da4b25c90663de32 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6895/97dd26e665e2ca235f4c8596da4b25c90663de32/sub_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 67, 9381, 12, 84, 16, 2021, 4672, 417, 273, 6652, 18, 52, 3190, 12, 3292, 16418, 2187, 701, 12, 84, 18, 6610, 13, 5717, 417, 18, 7048, 1435, 2037, 273, 813, 18, 957, 1435, 679, 67, 957, 273, 2037, 397, 2021, 468, 8492, 518, 279, 12720, 813, 1323, 679, 67, 957, 405, 2037, 30, 309, 293, 18, 13835, 13332, 327, 2037, 273, 813, 18, 957, 1435, 468, 999, 326, 5446, 366, 301, 6592, 261, 464, 2727, 1404, 23440, 7336, 13, 6652, 18, 52, 3190, 12, 3292, 16418, 17023, 17, 29, 2187, 609, 12, 84, 18, 6610, 13, 5717, 327, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8673, 67, 9381, 12, 84, 16, 2021, 4672, 417, 273, 6652, 18, 52, 3190, 12, 3292, 16418, 2187, 701, 12, 84, 18, 6610, 13, 5717, 417, 18, 7048, 1435, 2037, 273, 813, 18, 957, 1435, 679, 67, 957, 273, 2037, 397, 2021, 468, 8492, 518, 279, 12720, 813, 1323, 679, 67, 957, 405, 2037, 30, 309, 293, 18, 13835, 13332, 327, 2037, 273, 813, 18, 957, 1435, 468, 999, 326, 5446, 366, 301, 6592, 261, 464, 2727, 1404, 23440, 7336, 13, 6652, 18, 52, 3190, 12, 3292, 16418, 17023, 17, 29, 2187, 609, 12, 84, 18, 6610, 13, 5717, 327, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
name.replace(Name(self.DECORATOR_NAME, prefix=name.get_prefix()))
name.replace(Name(self.DECORATOR_NAME, prefix=name.prefix))
def transform(self, node, results): if 'name' in results: # This matched an import statement. Fix that up: name = results["name"] name.replace(Name(self.DECORATOR_NAME, prefix=name.get_prefix())) if 'rename' in results: # The import statement use import as self._add_pattern("'%s'" % results['rename'].value) if 'interface_rename' in results: self._add_pattern("'%s' trailer< '.' '%s' > " % ( results['interface_rename'].value, self.FUNCTION_NAME)) if 'statement' in results: # This matched a class that has an <FUNCTION_NAME>(IFoo) statement. # We must convert that statement to a class decorator # and put it before the class definition. statement = results['statement'] if not isinstance(statement, list): statement = [statement] # Make a copy for insertion before the class: statement = [x.clone() for x in statement] # Get rid of leading whitespace: statement[0].prefix = '' # Rename function to decorator: if statement[-1].children: func = statement[-1].children[-1] else: func = statement[-1] if func.value == self.FUNCTION_NAME: func.value = self.DECORATOR_NAME interface = results['interface'] if not isinstance(interface, list): interface = [interface] interface = [x.clone() for x in interface]
864cdb407c17834f96f311325fe9c0dc8b150cf1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9750/864cdb407c17834f96f311325fe9c0dc8b150cf1/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2510, 12, 2890, 16, 756, 16, 1686, 4672, 309, 296, 529, 11, 316, 1686, 30, 468, 1220, 4847, 392, 1930, 3021, 18, 12139, 716, 731, 30, 508, 273, 1686, 9614, 529, 11929, 508, 18, 2079, 12, 461, 12, 2890, 18, 1639, 9428, 3575, 67, 1985, 16, 1633, 33, 529, 18, 3239, 3719, 309, 296, 18539, 11, 316, 1686, 30, 468, 1021, 1930, 3021, 999, 1930, 487, 365, 6315, 1289, 67, 4951, 29823, 9, 87, 4970, 738, 1686, 3292, 18539, 29489, 1132, 13, 309, 296, 5831, 67, 18539, 11, 316, 1686, 30, 365, 6315, 1289, 67, 4951, 29823, 9, 87, 11, 25899, 32, 2611, 1995, 87, 11, 405, 315, 738, 261, 1686, 3292, 5831, 67, 18539, 29489, 1132, 16, 365, 18, 7788, 67, 1985, 3719, 309, 296, 11516, 11, 316, 1686, 30, 468, 1220, 4847, 279, 667, 716, 711, 392, 411, 7788, 67, 1985, 34, 12, 5501, 5161, 13, 3021, 18, 468, 1660, 1297, 1765, 716, 3021, 358, 279, 667, 7367, 468, 471, 1378, 518, 1865, 326, 667, 2379, 18, 225, 3021, 273, 1686, 3292, 11516, 3546, 309, 486, 1549, 12, 11516, 16, 666, 4672, 3021, 273, 306, 11516, 65, 468, 4344, 279, 1610, 364, 12626, 1865, 326, 667, 30, 3021, 273, 306, 92, 18, 14056, 1435, 364, 619, 316, 3021, 65, 468, 968, 10911, 434, 7676, 7983, 30, 3021, 63, 20, 8009, 3239, 273, 875, 468, 19996, 445, 358, 7367, 30, 309, 3021, 18919, 21, 8009, 5906, 30, 1326, 273, 3021, 18919, 21, 8009, 5906, 18919, 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, 2510, 12, 2890, 16, 756, 16, 1686, 4672, 309, 296, 529, 11, 316, 1686, 30, 468, 1220, 4847, 392, 1930, 3021, 18, 12139, 716, 731, 30, 508, 273, 1686, 9614, 529, 11929, 508, 18, 2079, 12, 461, 12, 2890, 18, 1639, 9428, 3575, 67, 1985, 16, 1633, 33, 529, 18, 3239, 3719, 309, 296, 18539, 11, 316, 1686, 30, 468, 1021, 1930, 3021, 999, 1930, 487, 365, 6315, 1289, 67, 4951, 29823, 9, 87, 4970, 738, 1686, 3292, 18539, 29489, 1132, 13, 309, 296, 5831, 67, 18539, 11, 316, 1686, 30, 365, 6315, 1289, 67, 4951, 29823, 9, 87, 11, 25899, 32, 2611, 1995, 87, 11, 405, 315, 738, 261, 1686, 3292, 5831, 67, 18539, 29489, 1132, 16, 2 ]
messages=False
self.site().messages=False
def getEditPage(self, get_redirect=False, throttle = True, sysop = False, oldid = None, nofollow_redirects = False): """ Get the contents of the Page via the edit page. Do not use this directly, use get() instead.
e4bd616ff92c7c3c48c1e1d51e77f36de3451623 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/e4bd616ff92c7c3c48c1e1d51e77f36de3451623/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21221, 1964, 12, 2890, 16, 336, 67, 7590, 33, 8381, 16, 18304, 273, 1053, 16, 2589, 556, 273, 1083, 16, 1592, 350, 273, 599, 16, 290, 792, 2392, 67, 22715, 273, 1083, 4672, 3536, 968, 326, 2939, 434, 326, 3460, 3970, 326, 3874, 1363, 18, 2256, 486, 999, 333, 5122, 16,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21221, 1964, 12, 2890, 16, 336, 67, 7590, 33, 8381, 16, 18304, 273, 1053, 16, 2589, 556, 273, 1083, 16, 1592, 350, 273, 599, 16, 290, 792, 2392, 67, 22715, 273, 1083, 4672, 3536, 968, 326, 2939, 434, 326, 3460, 3970, 326, 3874, 1363, 18, 2256, 486, 999, 333, 5122, 16, 999, 336, 1435, 3560, 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 ]
if step <= 0: raise ValueError, "step (=%s) must be positive"%step
if step == 0: raise ValueError, "step size must be nonzero"
def srange(a,b=None,step=1, include_endpoint=False): """ Return list of numbers \code{a, a+step, ..., a+k*step}, where \code{a+k*step < b} and \code{a+(k+1)*step > b}. This is the best way to get an iterator over SAGE integers as opposed to Python int's. It also allows you to specify step sizes to iterate. It is potentially much slower than the Python range statement, depending on your application. INPUT: a -- number b -- number (default: None) step -- number (default: 1) OUTPUT: list If b is None, then b is set equal to a and a is set equal to the 0 in the parent of b. Unlike range, a and b can be any type of numbers, and the resulting list involves numbers of that type. NOTE: This function is called \code{srange} to distinguish it from the builtin Python \code{range} command. The s at the beginning of the name stands for ``SAGE''. SEE ALSO: xsrange -- iterator version EXAMPLES: sage: v = srange(5); v [0, 1, 2, 3, 4] sage: type(v[2]) <type 'integer.Integer'> sage: srange(1, 10) [1, 2, 3, 4, 5, 6, 7, 8, 9] sage: Q = RationalField() sage: srange(1,10,Q('1/2')) [1, 3/2, 2, 5/2, 3, 7/2, 4, 9/2, 5, 11/2, 6, 13/2, 7, 15/2, 8, 17/2, 9, 19/2] sage: R = RealField() sage: srange(1,5,R('0.5')) [1, 1.5000000000000000, 2.0000000000000000, 2.5000000000000000, 3.0000000000000000, 3.5000000000000000, 4.0000000000000000, 4.5000000000000000] sage: srange(0,1,R('0.4')) [0, 0.40000000000000002, 0.80000000000000004] """ if b is None: b = a try: a = b.parent()(0) except AttributeError: a = type(b)(0) if step <= 0: raise ValueError, "step (=%s) must be positive"%step num_steps = int(float((b-a)/step)) + 1 v = [a] + [a + k*step for k in range(1,num_steps)] if v[num_steps-1] >= b: if include_endpoint: return v[:-1] + [b] else: return v[:-1] else: return v
16d466cd3656832f743210eb6d553eeed1c61c07 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/16d466cd3656832f743210eb6d553eeed1c61c07/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 3676, 12, 69, 16, 70, 33, 7036, 16, 4119, 33, 21, 16, 2341, 67, 8003, 33, 8381, 4672, 3536, 2000, 666, 434, 5600, 521, 710, 95, 69, 16, 279, 15, 4119, 16, 1372, 16, 279, 15, 79, 14, 4119, 5779, 1625, 521, 710, 95, 69, 15, 79, 14, 4119, 411, 324, 97, 471, 521, 710, 95, 69, 15, 12, 79, 15, 21, 17653, 4119, 405, 324, 5496, 225, 1220, 353, 326, 3796, 4031, 358, 336, 392, 2775, 1879, 348, 2833, 12321, 487, 1061, 7423, 358, 6600, 509, 1807, 18, 225, 2597, 2546, 5360, 1846, 358, 4800, 2235, 8453, 358, 7401, 18, 225, 2597, 353, 13935, 9816, 27926, 2353, 326, 6600, 1048, 3021, 16, 8353, 603, 3433, 2521, 18, 225, 12943, 30, 279, 1493, 1300, 324, 1493, 1300, 261, 1886, 30, 599, 13, 2235, 1493, 1300, 261, 1886, 30, 404, 13, 225, 11550, 30, 666, 225, 971, 324, 353, 599, 16, 1508, 324, 353, 444, 3959, 358, 279, 471, 279, 353, 444, 3959, 358, 326, 374, 316, 326, 982, 434, 324, 18, 225, 25448, 1048, 16, 279, 471, 324, 848, 506, 1281, 618, 434, 5600, 16, 471, 326, 8156, 666, 29876, 3324, 5600, 434, 716, 618, 18, 225, 5219, 30, 1220, 445, 353, 2566, 521, 710, 95, 87, 3676, 97, 358, 23926, 518, 628, 326, 15273, 6600, 521, 710, 95, 3676, 97, 1296, 18, 225, 1021, 272, 622, 326, 8435, 434, 326, 508, 384, 5708, 364, 12176, 55, 2833, 6309, 18, 225, 3174, 41, 432, 3045, 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, 272, 3676, 12, 69, 16, 70, 33, 7036, 16, 4119, 33, 21, 16, 2341, 67, 8003, 33, 8381, 4672, 3536, 2000, 666, 434, 5600, 521, 710, 95, 69, 16, 279, 15, 4119, 16, 1372, 16, 279, 15, 79, 14, 4119, 5779, 1625, 521, 710, 95, 69, 15, 79, 14, 4119, 411, 324, 97, 471, 521, 710, 95, 69, 15, 12, 79, 15, 21, 17653, 4119, 405, 324, 5496, 225, 1220, 353, 326, 3796, 4031, 358, 336, 392, 2775, 1879, 348, 2833, 12321, 487, 1061, 7423, 358, 6600, 509, 1807, 18, 225, 2597, 2546, 5360, 1846, 358, 4800, 2235, 8453, 358, 7401, 18, 225, 2597, 353, 13935, 9816, 27926, 2353, 326, 6600, 1048, 3021, 16, 8353, 603, 3433, 2521, 2 ]
for i, f in enum([f['name'] for f in fields]):
i = 0 for f in [f['name'] for f in fields if f['type'] != 'textarea']:
def format_props(self): tkt = self.ticket fields = [f for f in tkt.fields if f['type'] != 'textarea' and f['name'] not in ('summary', 'cc')] t = self.modtime or tkt.time_changed width = [0, 0, 0, 0] for i, f in enum([f['name'] for f in fields]): if not tkt.values.has_key(f): continue fval = tkt[f] if fval.find('\n') > -1: continue idx = 2 * (i % 2) if len(f) > width[idx]: width[idx] = len(f) if len(fval) > width[idx + 1]: width[idx + 1] = len(fval) format = ('%%%is: %%-%is | ' % (width[0], width[1]), ' %%%is: %%-%is%s' % (width[2], width[3], CRLF)) l = (width[0] + width[1] + 5) sep = l * '-' + '+' + (self.COLS - l) * '-' txt = sep + CRLF big = [f for f in tkt.fields if f['type'] == 'textarea' and f['name'] != 'description'] i = 0 for f in [f['name'] for f in fields]: if not tkt.values.has_key(f): continue fval = tkt[f] if '\n' in str(fval): big.append((f.capitalize(), CRLF.join(fval.splitlines()))) else: txt += format[i % 2] % (f.capitalize(), fval) i += 1 if not i % 2: txt += CRLF if big: txt += sep for name, value in big: txt += CRLF.join(['', name + ':', value, '', '']) txt += sep return txt
7b38e5e2562a1b297a40077b152eab2636e37614 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/7b38e5e2562a1b297a40077b152eab2636e37614/Notify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 67, 9693, 12, 2890, 4672, 268, 8629, 273, 365, 18, 16282, 1466, 273, 306, 74, 364, 284, 316, 268, 8629, 18, 2821, 309, 284, 3292, 723, 3546, 480, 296, 16701, 11, 471, 284, 3292, 529, 3546, 486, 316, 7707, 7687, 2187, 296, 952, 6134, 65, 268, 273, 365, 18, 1711, 957, 578, 268, 8629, 18, 957, 67, 6703, 1835, 273, 306, 20, 16, 374, 16, 374, 16, 374, 65, 277, 273, 374, 364, 284, 316, 306, 74, 3292, 529, 3546, 364, 284, 316, 1466, 309, 284, 3292, 723, 3546, 480, 296, 16701, 3546, 30, 309, 486, 268, 8629, 18, 2372, 18, 5332, 67, 856, 12, 74, 4672, 1324, 284, 1125, 273, 268, 8629, 63, 74, 65, 309, 284, 1125, 18, 4720, 2668, 64, 82, 6134, 405, 300, 21, 30, 1324, 2067, 273, 576, 380, 261, 77, 738, 576, 13, 309, 562, 12, 74, 13, 405, 1835, 63, 3465, 14542, 1835, 63, 3465, 65, 273, 562, 12, 74, 13, 309, 562, 12, 74, 1125, 13, 405, 1835, 63, 3465, 397, 404, 14542, 1835, 63, 3465, 397, 404, 65, 273, 562, 12, 74, 1125, 13, 740, 273, 7707, 11438, 9, 291, 30, 225, 26510, 6456, 291, 225, 571, 225, 296, 738, 261, 2819, 63, 20, 6487, 1835, 63, 21, 65, 3631, 296, 738, 11438, 291, 30, 225, 26510, 6456, 291, 9, 87, 11, 738, 261, 2819, 63, 22, 6487, 1835, 63, 23, 6487, 21791, 3719, 328, 273, 261, 2819, 63, 20, 65, 397, 1835, 63, 21, 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, 740, 67, 9693, 12, 2890, 4672, 268, 8629, 273, 365, 18, 16282, 1466, 273, 306, 74, 364, 284, 316, 268, 8629, 18, 2821, 309, 284, 3292, 723, 3546, 480, 296, 16701, 11, 471, 284, 3292, 529, 3546, 486, 316, 7707, 7687, 2187, 296, 952, 6134, 65, 268, 273, 365, 18, 1711, 957, 578, 268, 8629, 18, 957, 67, 6703, 1835, 273, 306, 20, 16, 374, 16, 374, 16, 374, 65, 277, 273, 374, 364, 284, 316, 306, 74, 3292, 529, 3546, 364, 284, 316, 1466, 309, 284, 3292, 723, 3546, 480, 296, 16701, 3546, 30, 309, 486, 268, 8629, 18, 2372, 18, 5332, 67, 856, 12, 74, 4672, 1324, 284, 1125, 273, 268, 8629, 63, 74, 65, 309, 2 ]
raise DistutilsFileError, "could not open %s: %s" % (src, errstr)
raise DistutilsFileError, \ "could not open '%s': %s" % (src, errstr)
def _copy_file_contents (src, dst, buffer_size=16*1024): """Copy the file 'src' to 'dst'; both must be filenames. Any error opening either file, reading from 'src', or writing to 'dst', raises DistutilsFileError. Data is read/written in chunks of 'buffer_size' bytes (default 16k). No attempt is made to handle anything apart from regular files.""" # Stolen from shutil module in the standard library, but with # custom error-handling added. fsrc = None fdst = None try: try: fsrc = open(src, 'rb') except os.error, (errno, errstr): raise DistutilsFileError, "could not open %s: %s" % (src, errstr) try: fdst = open(dst, 'wb') except os.error, (errno, errstr): raise DistutilsFileError, "could not create %s: %s" % (dst, errstr) while 1: try: buf = fsrc.read (buffer_size) except os.error, (errno, errstr): raise DistutilsFileError, \ "could not read from %s: %s" % (src, errstr) if not buf: break try: fdst.write(buf) except os.error, (errno, errstr): raise DistutilsFileError, \ "could not write to %s: %s" % (dst, errstr) finally: if fdst: fdst.close() if fsrc: fsrc.close()
031994d923a677aa78f425f5289409ea94321872 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/031994d923a677aa78f425f5289409ea94321872/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3530, 67, 768, 67, 3980, 261, 4816, 16, 3046, 16, 1613, 67, 1467, 33, 2313, 14, 2163, 3247, 4672, 3536, 2951, 326, 585, 296, 4816, 11, 358, 296, 11057, 13506, 3937, 1297, 506, 9066, 18, 225, 5502, 555, 10890, 3344, 585, 16, 6453, 628, 296, 4816, 2187, 578, 7410, 358, 296, 11057, 2187, 14183, 19893, 5471, 812, 668, 18, 225, 1910, 353, 855, 19, 9748, 316, 6055, 434, 296, 4106, 67, 1467, 11, 1731, 261, 1886, 2872, 79, 2934, 225, 2631, 4395, 353, 7165, 358, 1640, 6967, 513, 485, 628, 6736, 1390, 12123, 225, 468, 934, 355, 275, 628, 11060, 1605, 316, 326, 4529, 5313, 16, 1496, 598, 468, 1679, 555, 17, 26822, 3096, 18, 225, 2662, 1310, 273, 599, 5194, 334, 273, 599, 775, 30, 775, 30, 2662, 1310, 273, 1696, 12, 4816, 16, 296, 6731, 6134, 1335, 1140, 18, 1636, 16, 261, 19088, 16, 19147, 4672, 1002, 19893, 5471, 812, 668, 16, 521, 315, 15195, 486, 1696, 1995, 87, 4278, 738, 87, 6, 738, 261, 4816, 16, 19147, 13, 225, 775, 30, 5194, 334, 273, 1696, 12, 11057, 16, 296, 9464, 6134, 1335, 1140, 18, 1636, 16, 261, 19088, 16, 19147, 4672, 1002, 19893, 5471, 812, 668, 16, 315, 15195, 486, 752, 738, 87, 30, 738, 87, 6, 738, 261, 11057, 16, 19147, 13, 225, 1323, 404, 30, 775, 30, 1681, 273, 2662, 1310, 18, 896, 261, 4106, 67, 1467, 13, 1335, 1140, 18, 1636, 16, 261, 19088, 16, 19147, 4672, 1002, 19893, 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, 3530, 67, 768, 67, 3980, 261, 4816, 16, 3046, 16, 1613, 67, 1467, 33, 2313, 14, 2163, 3247, 4672, 3536, 2951, 326, 585, 296, 4816, 11, 358, 296, 11057, 13506, 3937, 1297, 506, 9066, 18, 225, 5502, 555, 10890, 3344, 585, 16, 6453, 628, 296, 4816, 2187, 578, 7410, 358, 296, 11057, 2187, 14183, 19893, 5471, 812, 668, 18, 225, 1910, 353, 855, 19, 9748, 316, 6055, 434, 296, 4106, 67, 1467, 11, 1731, 261, 1886, 2872, 79, 2934, 225, 2631, 4395, 353, 7165, 358, 1640, 6967, 513, 485, 628, 6736, 1390, 12123, 225, 468, 934, 355, 275, 628, 11060, 1605, 316, 326, 4529, 5313, 16, 1496, 598, 468, 1679, 555, 17, 26822, 3096, 18, 225, 2662, 2 ]
return socket.gethostbyname(name)
try: return socket.gethostbyname(name) except socket.gaierror: raise NetworkAddressError("The name '%s' could not be resolved." % name) except TypeError: raise ArgumentError("gethostbyname() takes a string as argument.")
def gethostbyname(name): """ <Purpose> Provides information about a hostname. Calls socket.gethostbyname(). Translate a host name to IPv4 address format. The IPv4 address is returned as a string, such as '100.50.200.5'. If the host name is an IPv4 address itself it is returned unchanged. <Arguments> name: The host name to translate. <Exceptions> NetworkAddressError (descends from NetworkError) if the address cannot be resolved. <Side Effects> None. <Resource Consumption> This operation consumes network bandwidth of 4K netrecv, 1K netsend. (It's hard to tell how much was actually sent / received at this level.) <Returns> The IPv4 address as a string. """ restrictions.assertisallowed('gethostbyname',name) # charge 4K for a look up... I don't know the right number, but we should # charge something. We'll always charge to the netsend interface... nanny.tattle_quantity('netsend', 1024) nanny.tattle_quantity('netrecv', 4096) return socket.gethostbyname(name)
6ba7a3a02514a1aaa385cf7a33ecec136b06aa93 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7280/6ba7a3a02514a1aaa385cf7a33ecec136b06aa93/emulcomm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2564, 1637, 529, 12, 529, 4672, 3536, 411, 10262, 4150, 34, 28805, 1779, 2973, 279, 5199, 18, 23665, 2987, 18, 75, 546, 669, 1637, 529, 7675, 16820, 279, 1479, 508, 358, 7853, 24, 1758, 740, 18, 1021, 7853, 24, 1758, 353, 2106, 487, 279, 533, 16, 4123, 487, 296, 6625, 18, 3361, 18, 6976, 18, 25, 10332, 971, 326, 1479, 508, 353, 392, 7853, 24, 1758, 6174, 518, 353, 2106, 14827, 18, 225, 411, 4628, 34, 508, 30, 1021, 1479, 508, 358, 4204, 18, 225, 411, 11416, 34, 5128, 1887, 668, 261, 5569, 5839, 628, 5128, 668, 13, 309, 326, 1758, 2780, 506, 4640, 18, 225, 411, 8895, 30755, 87, 34, 599, 18, 225, 411, 1420, 22210, 375, 34, 1220, 1674, 25479, 2483, 20508, 434, 1059, 47, 2901, 18334, 16, 404, 47, 21954, 409, 18, 261, 7193, 1807, 7877, 358, 9276, 3661, 9816, 1703, 6013, 3271, 342, 5079, 622, 333, 1801, 12998, 225, 411, 1356, 34, 1021, 7853, 24, 1758, 487, 279, 533, 18, 3536, 225, 17499, 18, 11231, 291, 8151, 2668, 75, 546, 669, 1637, 529, 2187, 529, 13, 225, 468, 13765, 1059, 47, 364, 279, 2324, 731, 2777, 282, 467, 2727, 1404, 5055, 326, 2145, 1300, 16, 1496, 732, 1410, 468, 13765, 5943, 18, 282, 1660, 5614, 3712, 13765, 358, 326, 21954, 409, 1560, 2777, 290, 1072, 93, 18, 88, 4558, 298, 67, 16172, 2668, 11296, 409, 2187, 6250, 13, 290, 1072, 93, 18, 88, 4558, 298, 67, 16172, 2668, 2758, 18334, 2187, 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, 336, 2564, 1637, 529, 12, 529, 4672, 3536, 411, 10262, 4150, 34, 28805, 1779, 2973, 279, 5199, 18, 23665, 2987, 18, 75, 546, 669, 1637, 529, 7675, 16820, 279, 1479, 508, 358, 7853, 24, 1758, 740, 18, 1021, 7853, 24, 1758, 353, 2106, 487, 279, 533, 16, 4123, 487, 296, 6625, 18, 3361, 18, 6976, 18, 25, 10332, 971, 326, 1479, 508, 353, 392, 7853, 24, 1758, 6174, 518, 353, 2106, 14827, 18, 225, 411, 4628, 34, 508, 30, 1021, 1479, 508, 358, 4204, 18, 225, 411, 11416, 34, 5128, 1887, 668, 261, 5569, 5839, 628, 5128, 668, 13, 309, 326, 1758, 2780, 506, 4640, 18, 225, 411, 8895, 30755, 87, 34, 599, 18, 225, 411, 1420, 22210, 2 ]
PDB defined standard residues. PDB standard residues are amino
PDB defined standard residues. PDB standard residues are amino
def is_standard_residue(self): """Returns True if the Fragment/Residue object is one of the PDB defined standard residues. PDB standard residues are amino and nucleic acid residues. """ return False
a181eacbeb3c68b8f7caba918a821d3f3e6c50f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10674/a181eacbeb3c68b8f7caba918a821d3f3e6c50f6/Structure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 10005, 67, 23388, 12, 2890, 4672, 3536, 1356, 1053, 309, 326, 18009, 19, 607, 23965, 733, 353, 1245, 434, 326, 21601, 2553, 4529, 25435, 18, 21601, 4529, 25435, 854, 26117, 471, 9244, 2131, 335, 1721, 350, 25435, 18, 3536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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 10005, 67, 23388, 12, 2890, 4672, 3536, 1356, 1053, 309, 326, 18009, 19, 607, 23965, 733, 353, 1245, 434, 326, 21601, 2553, 4529, 25435, 18, 21601, 4529, 25435, 854, 26117, 471, 9244, 2131, 335, 1721, 350, 25435, 18, 3536, 327, 1083, 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 ]
if os.name == 'nt' or ( os.uname()[0].lower().startswith('cygwin') and get_toolset() != 'gcc') :
if (os.name == 'nt' or os.uname()[0].lower().startswith('cygwin')) and get_toolset() != 'gcc':
#ifdef _WIN32
e825755eedd13b068e03df70d37f204dbdb51f14 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/e825755eedd13b068e03df70d37f204dbdb51f14/searched_lib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 430,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 430, 536, 389, 24572, 1578, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
marshal.load(file(test_support.TESTFN, "rb"))
new = marshal.load(file(test_support.TESTFN, "rb"))
def test_string(self): for s in ["", "Andr Previn", "abc", " "*10000]: new = marshal.loads(marshal.dumps(s)) self.assertEqual(s, new) self.assertEqual(type(s), type(new)) marshal.dump(s, file(test_support.TESTFN, "wb")) marshal.load(file(test_support.TESTFN, "rb")) self.assertEqual(s, new) self.assertEqual(type(s), type(new)) os.unlink(test_support.TESTFN)
61aa630d0169c4aecb40cf937adcf9250f23529d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/61aa630d0169c4aecb40cf937adcf9250f23529d/test_marshal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1080, 12, 2890, 4672, 364, 272, 316, 8247, 3113, 315, 1876, 86, 2962, 21529, 3113, 315, 18947, 3113, 315, 15902, 23899, 14542, 394, 273, 10893, 18, 17135, 12, 3108, 18, 13302, 1121, 12, 87, 3719, 365, 18, 11231, 5812, 12, 87, 16, 394, 13, 365, 18, 11231, 5812, 12, 723, 12, 87, 3631, 618, 12, 2704, 3719, 10893, 18, 8481, 12, 87, 16, 585, 12, 3813, 67, 13261, 18, 16961, 19793, 16, 315, 9464, 6, 3719, 394, 273, 10893, 18, 945, 12, 768, 12, 3813, 67, 13261, 18, 16961, 19793, 16, 315, 6731, 6, 3719, 365, 18, 11231, 5812, 12, 87, 16, 394, 13, 365, 18, 11231, 5812, 12, 723, 12, 87, 3631, 618, 12, 2704, 3719, 1140, 18, 318, 1232, 12, 3813, 67, 13261, 18, 16961, 19793, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1080, 12, 2890, 4672, 364, 272, 316, 8247, 3113, 315, 1876, 86, 2962, 21529, 3113, 315, 18947, 3113, 315, 15902, 23899, 14542, 394, 273, 10893, 18, 17135, 12, 3108, 18, 13302, 1121, 12, 87, 3719, 365, 18, 11231, 5812, 12, 87, 16, 394, 13, 365, 18, 11231, 5812, 12, 723, 12, 87, 3631, 618, 12, 2704, 3719, 10893, 18, 8481, 12, 87, 16, 585, 12, 3813, 67, 13261, 18, 16961, 19793, 16, 315, 9464, 6, 3719, 394, 273, 10893, 18, 945, 12, 768, 12, 3813, 67, 13261, 18, 16961, 19793, 16, 315, 6731, 6, 3719, 365, 18, 11231, 5812, 12, 87, 16, 394, 13, 365, 18, 11231, 5812, 12, 723, 12, 87, 3631, 618, 12, 2704, 2 ]
self.Widget = gtk.ColorButton() Tooltips.set_tip(self.Widget, self.Setting.LongDesc) self.Widget.set_use_alpha(True) self.Widget.connect('color-set', self.Changed)
self.Button = gtk.ColorButton() self.Button.set_size_request (100, -1) Tooltips.set_tip(self.Button, self.Setting.LongDesc) self.Button.set_use_alpha(True) self.Button.connect('color-set', self.Changed) self.Widget = gtk.Alignment (1, 0.5) self.Widget.add (self.Button)
def _Init(self): self.Widget = gtk.ColorButton() Tooltips.set_tip(self.Widget, self.Setting.LongDesc) self.Widget.set_use_alpha(True) self.Widget.connect('color-set', self.Changed)
da13cd1ea63c9d893ebf5ee6f16025f25a623512 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7183/da13cd1ea63c9d893ebf5ee6f16025f25a623512/Settings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2570, 12, 2890, 4672, 365, 18, 4609, 273, 22718, 18, 2957, 3616, 1435, 13288, 88, 7146, 18, 542, 67, 14587, 12, 2890, 18, 4609, 16, 365, 18, 5568, 18, 3708, 4217, 13, 365, 18, 4609, 18, 542, 67, 1202, 67, 5429, 12, 5510, 13, 365, 18, 4609, 18, 3612, 2668, 3266, 17, 542, 2187, 365, 18, 5033, 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, 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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, 389, 2570, 12, 2890, 4672, 365, 18, 4609, 273, 22718, 18, 2957, 3616, 1435, 13288, 88, 7146, 18, 542, 67, 14587, 12, 2890, 18, 4609, 16, 365, 18, 5568, 18, 3708, 4217, 13, 365, 18, 4609, 18, 542, 67, 1202, 67, 5429, 12, 5510, 13, 365, 18, 4609, 18, 3612, 2668, 3266, 17, 542, 2187, 365, 18, 5033, 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 ]
def key_class(updates, image_strip, image_rects, is_white=True):
def key_class(updates, image_strip, image_rects, is_white_key=True):
def key_class(updates, image_strip, image_rects, is_white=True): """Return a keyboard key widget class Arguments: updates - a set into which a key instance adds itself if it needs redrawing. image_strip - The surface containing the images of all key states. image_rects - A list of Rects giving the regions within image_strip that are relevant to this key class. is_white (default True) - Set false if this is a black key. This function automates the creation of a key widget class for the three basic key types. A key has two basic states, up or down ( depressed). Corresponding up and down images are drawn for each of these two states. But to give the illusion of depth, a key may have shadows cast upon it by the adjacent keys to its right. These shadows change depending on the up/down state of the key and its neighbors. So a key may support multiple images and states depending on the shadows. A key type is determined by the length of image_rects and the value of is_white. """ # Naming convention: Variables used by the Key class as part of a # closure start with 'c_'. # State logic and shadows: # # A key may cast a shadow upon the key to its left. A black key casts a # shadow on an adjacent white key. The shadow changes depending of whether # the black or white key is depressed. A white key casts a shadow on the # white key to its left if it is up and the left key is down. Therefore # a keys state, and image it will draw, is determined entirely by its # itself and the key immediately adjacent to it on the right. A white key # is always assumed to have an adjacent white key. # # There can be up to eight key states, representing all permutations # of the three fundamental states of self up/down, adjacent white # right up/down, adjacent black up/down. # down_state_none = 0 down_state_self = 1 down_state_white = down_state_self << 1 down_state_self_white = down_state_self | down_state_white down_state_black = down_state_white << 1 down_state_self_black = down_state_self | down_state_black down_state_white_black = down_state_white | down_state_black down_state_all = down_state_self | down_state_white_black # Some values used in the class. # c_down_state_initial = down_state_none c_down_state_rect_initial = image_rects[0] c_down_state_self = down_state_self c_updates = updates c_image_strip = image_strip c_width, c_height = image_rects[0].size # A key propagates its up/down state change to the adjacent white key on # the left by calling the adjacent key's _right_black_down or # _right_white_down method. # if is_white: key_color = 'white' else: key_color = 'black' c_notify_down_method = "_right_%s_down" % key_color c_notify_up_method = "_right_%s_up" % key_color # Images: # # A black key only needs two images, for the up and down states. Its # appearance is unaffected by the adjacent keys to its right, which cast no # shadows upon it. # # A white key with a no adjacent black to its right only needs three # images, for self up, self down, and both self and adjacent white down. # # A white key with both a black and white key to its right needs six # images: self up, self up and adjacent black down, self down, self and # adjacent white down, self and adjacent black down, and all three down. # # Each 'c_event' dictionary maps the current key state to a new key state, # along with corresponding image, for the related event. If no redrawing # is required for the state change then the image rect is simply None. # c_event_down = {down_state_none: (down_state_self, image_rects[1])} c_event_up = {down_state_self: (down_state_none, image_rects[0])} c_event_right_white_down = { down_state_none: (down_state_none, None), down_state_self: (down_state_self, None)} c_event_right_white_up = c_event_right_white_down.copy() c_event_right_black_down = c_event_right_white_down.copy() c_event_right_black_up = c_event_right_white_down.copy() if len(image_rects) > 2: c_event_down[down_state_white] = ( down_state_self_white, image_rects[2]) c_event_up[down_state_self_white] = (down_state_white, image_rects[0]) c_event_right_white_down[down_state_none] = (down_state_white, None) c_event_right_white_down[down_state_self] = ( down_state_self_white, image_rects[2]) c_event_right_white_up[down_state_white] = (down_state_none, None) c_event_right_white_up[down_state_self_white] = ( down_state_self, image_rects[1]) c_event_right_black_down[down_state_white] = ( down_state_white, None) c_event_right_black_down[down_state_self_white] = ( down_state_self_white, None) c_event_right_black_up[down_state_white] = ( down_state_white, None) c_event_right_black_up[down_state_self_white] = ( down_state_self_white, None) if len(image_rects) > 3: c_event_down[down_state_black] = (down_state_self_black, image_rects[4]) c_event_down[down_state_white_black] = (down_state_all, image_rects[5]) c_event_up[down_state_self_black] = (down_state_black, image_rects[3]) c_event_up[down_state_all] = (down_state_white_black, image_rects[3]) c_event_right_white_down[down_state_black] = ( down_state_white_black, None) c_event_right_white_down[down_state_self_black] = ( down_state_all, image_rects[5]) c_event_right_white_up[down_state_white_black] = ( down_state_black, None) c_event_right_white_up[down_state_all] = ( down_state_self_black, image_rects[4]) c_event_right_black_down[down_state_none] = ( down_state_black, image_rects[3]) c_event_right_black_down[down_state_self] = ( down_state_self_black, image_rects[4]) c_event_right_black_down[down_state_white] = ( down_state_white_black, image_rects[3]) c_event_right_black_down[down_state_self_white] = ( down_state_all, image_rects[5]) c_event_right_black_up[down_state_black] = ( down_state_none, image_rects[0]) c_event_right_black_up[down_state_self_black] = ( down_state_self, image_rects[1]) c_event_right_black_up[down_state_white_black] = ( down_state_white, image_rects[0]) c_event_right_black_up[down_state_all] = ( down_state_self_white, image_rects[2]) class Key(object): """A key widget, maintains key state and draws the key's image Constructor arguments: ident - A unique key identifier. Any immutable type suitable as a key. posn - The location of the key on the display surface. key_left - Optional, the adjacent white key to the left. Changes in up and down state are propagated to that key. A key has an associated position and state. Related to state is the image drawn. State changes are managed with method calls, one method per event type. The up and down event methods are public. Other internal methods are for passing on state changes to the key_left key instance. The key will evaluate True if it is down, False otherwise. """ def __init__(self, ident, posn, key_left = None): """Return a new Key instance The initial state is up, with all adjacent keys to the right also up. """ if key_left is None: key_left = null_key rect = Rect(posn[0], posn[1], c_width, c_height) self.rect = rect self._state = c_down_state_initial self._source_rect = c_down_state_rect_initial self._ident = ident self._hash = hash(ident) self._notify_down = getattr(key_left, c_notify_down_method) self._notify_up = getattr(key_left, c_notify_up_method) self._key_left = key_left self._background_rect = Rect(rect.left, rect.bottom - 10, c_width, 10) c_updates.add(self) def down(self): """Signal that this key has been depressed (is down)""" self._state, source_rect = c_event_down[self._state] if source_rect is not None: self._source_rect = source_rect c_updates.add(self) self._notify_down() def up(self): """Signal that this key has been released (is up)""" self._state, source_rect = c_event_up[self._state] if source_rect is not None: self._source_rect = source_rect c_updates.add(self) self._notify_up() def _right_white_down(self): """Signal that the adjacent white key has been depressed This method is for internal propagation of events between key instances. """ self._state, source_rect = c_event_right_white_down[self._state] if source_rect is not None: self._source_rect = source_rect c_updates.add(self) def _right_white_up(self): """Signal that the adjacent white key has been released This method is for internal propagation of events between key instances. """ self._state, source_rect = c_event_right_white_up[self._state] if source_rect is not None: self._source_rect = source_rect c_updates.add(self) def _right_black_down(self): """Signal that the adjacent black key has been depressed This method is for internal propagation of events between key instances. """ self._state, source_rect = c_event_right_black_down[self._state] if source_rect is not None: self._source_rect = source_rect c_updates.add(self) def _right_black_up(self): """Signal that the adjacent black key has been released This method is for internal propagation of events between key instances. """ self._state, source_rect = c_event_right_black_up[self._state] if source_rect is not None: self._source_rect = source_rect c_updates.add(self) def __eq__(self, other): """True if same identifiers""" return self._ident == other._ident def __hash__(self): """Return the immutable hash value""" return self._hash def __str__(self): """Return the key's identifier and position as a string""" return ("<Key %s at (%d, %d)>" % (self._ident, self.rect.top, self.rect.left)) def __nonzero__(self): """True if the key is down""" return bool(self._state & c_down_state_self) def draw(self, surf, background, dirty_rects): """Redraw the key on the surface surf The background is redrawn. The altered region is added to the dirty_rects list. """ surf.blit(background, self._background_rect, self._background_rect) surf.blit(c_image_strip, self.rect, self._source_rect) dirty_rects.append(self.rect) return Key
9e61bac9fc6608263eef619c47ffd88c510cb83f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1298/9e61bac9fc6608263eef619c47ffd88c510cb83f/midi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 498, 67, 1106, 12, 14703, 16, 1316, 67, 6406, 16, 1316, 67, 2607, 87, 16, 353, 67, 14739, 67, 856, 33, 5510, 4672, 3536, 990, 279, 16263, 498, 3604, 667, 225, 13599, 30, 4533, 300, 279, 444, 1368, 1492, 279, 498, 791, 4831, 6174, 309, 518, 4260, 16540, 310, 18, 1316, 67, 6406, 300, 1021, 9034, 4191, 326, 4602, 434, 777, 498, 5493, 18, 1316, 67, 2607, 87, 300, 432, 666, 434, 9315, 87, 21057, 326, 10085, 3470, 1316, 67, 6406, 716, 854, 9368, 358, 333, 498, 667, 18, 353, 67, 14739, 261, 1886, 1053, 13, 300, 1000, 629, 309, 333, 353, 279, 7721, 498, 18, 225, 1220, 445, 18472, 815, 326, 6710, 434, 279, 498, 3604, 667, 364, 326, 8925, 5337, 498, 1953, 18, 432, 498, 711, 2795, 5337, 5493, 16, 731, 578, 2588, 261, 5993, 4638, 2934, 9557, 17863, 310, 731, 471, 2588, 4602, 854, 19377, 364, 1517, 434, 4259, 2795, 5493, 18, 12484, 358, 8492, 326, 277, 2906, 7063, 434, 3598, 16, 279, 498, 2026, 1240, 10510, 87, 4812, 12318, 518, 635, 326, 16335, 1311, 358, 2097, 2145, 18, 8646, 10510, 87, 2549, 8353, 603, 326, 731, 19, 2378, 919, 434, 326, 498, 471, 2097, 11003, 18, 6155, 279, 498, 2026, 2865, 3229, 4602, 471, 5493, 8353, 603, 326, 10510, 87, 18, 432, 498, 618, 353, 11383, 635, 326, 769, 434, 1316, 67, 2607, 87, 471, 326, 460, 434, 353, 67, 14739, 18, 225, 3536, 225, 468, 18884, 15797, 30, 23536, 1399, 635, 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, 498, 67, 1106, 12, 14703, 16, 1316, 67, 6406, 16, 1316, 67, 2607, 87, 16, 353, 67, 14739, 67, 856, 33, 5510, 4672, 3536, 990, 279, 16263, 498, 3604, 667, 225, 13599, 30, 4533, 300, 279, 444, 1368, 1492, 279, 498, 791, 4831, 6174, 309, 518, 4260, 16540, 310, 18, 1316, 67, 6406, 300, 1021, 9034, 4191, 326, 4602, 434, 777, 498, 5493, 18, 1316, 67, 2607, 87, 300, 432, 666, 434, 9315, 87, 21057, 326, 10085, 3470, 1316, 67, 6406, 716, 854, 9368, 358, 333, 498, 667, 18, 353, 67, 14739, 261, 1886, 1053, 13, 300, 1000, 629, 309, 333, 353, 279, 7721, 498, 18, 225, 1220, 445, 18472, 815, 326, 6710, 434, 279, 498, 3604, 667, 2 ]
option_tuple = self._parse_optional(arg_string)
option_tuple = self._parse_optional(arg_string, contiguous)
def _parse_known_args(self, arg_strings, namespace, contiguous): # replace arg strings that are file references if self.fromfile_prefix_chars is not None: arg_strings = self._read_args_from_files(arg_strings)
c59109f5a551e93851187af656e0f8ca78dcb5a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5223/c59109f5a551e93851187af656e0f8ca78dcb5a2/argparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 67, 2994, 67, 1968, 12, 2890, 16, 1501, 67, 10219, 16, 1981, 16, 26928, 4672, 468, 1453, 1501, 2064, 716, 854, 585, 5351, 309, 365, 18, 2080, 768, 67, 3239, 67, 7549, 353, 486, 599, 30, 1501, 67, 10219, 273, 365, 6315, 896, 67, 1968, 67, 2080, 67, 2354, 12, 3175, 67, 10219, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 67, 2994, 67, 1968, 12, 2890, 16, 1501, 67, 10219, 16, 1981, 16, 26928, 4672, 468, 1453, 1501, 2064, 716, 854, 585, 5351, 309, 365, 18, 2080, 768, 67, 3239, 67, 7549, 353, 486, 599, 30, 1501, 67, 10219, 273, 365, 6315, 896, 67, 1968, 67, 2080, 67, 2354, 12, 3175, 67, 10219, 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 ]
if type(orig_key) is types.TupleType:
if isinstance(orig_key, tuple):
def _map_and_prefix_keys(self, key_iterable, key_prefix): """Compute the mapping of server (_Host instance) -> list of keys to stuff onto that server, as well as the mapping of prefixed key -> original key.
aa973f034fdfe4801db987afda8191177edefc04 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11935/aa973f034fdfe4801db987afda8191177edefc04/memcache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1458, 67, 464, 67, 3239, 67, 2452, 12, 2890, 16, 498, 67, 15364, 16, 498, 67, 3239, 4672, 3536, 7018, 326, 2874, 434, 1438, 261, 67, 2594, 791, 13, 317, 666, 434, 1311, 358, 10769, 10170, 716, 1438, 16, 487, 5492, 487, 326, 2874, 434, 12829, 498, 317, 2282, 498, 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,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769, 10170, 716, 1438, 16, 487, 5492, 487, 326, 2874, 434, 12829, 498, 317, 2282, 498, 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 ]
sage: import os; os.unlink(filename)
sage: import os; os.unlink(filename)
def plot(self, *args, **kwargs): """ The R plot function. Type r.help('plot') for much more extensive documentatin about this function. See the examples below for how to use it to write output to a FILE.
42a77e19371576e2f0fa4a64916832f43f940a8c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/42a77e19371576e2f0fa4a64916832f43f940a8c/r.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 1021, 534, 3207, 445, 18, 225, 1412, 436, 18, 5201, 2668, 4032, 6134, 364, 9816, 1898, 1110, 14315, 1668, 270, 267, 2973, 333, 445, 18, 225, 2164, 326, 10991, 5712, 364, 3661, 358, 999, 518, 358, 1045, 876, 358, 279, 7527, 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, 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, 30, 1652, 3207, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 1021, 534, 3207, 445, 18, 225, 1412, 436, 18, 5201, 2668, 4032, 6134, 364, 9816, 1898, 1110, 14315, 1668, 270, 267, 2973, 333, 445, 18, 225, 2164, 326, 10991, 5712, 364, 3661, 358, 999, 518, 358, 1045, 876, 358, 279, 7527, 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 ]
return os.getcwd()
return "Not implemented, for now"
def index(self, format='html'): """GET /uploads: All items in the collection""" # url('uploads') return os.getcwd()
b840397e72564d270e2a724ec5a44823ba42f79b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4401/b840397e72564d270e2a724ec5a44823ba42f79b/uploads.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 12, 2890, 16, 740, 2218, 2620, 11, 4672, 3536, 3264, 342, 27717, 30, 4826, 1516, 316, 326, 1849, 8395, 468, 880, 2668, 27717, 6134, 327, 1140, 18, 588, 11089, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 12, 2890, 16, 740, 2218, 2620, 11, 4672, 3536, 3264, 342, 27717, 30, 4826, 1516, 316, 326, 1849, 8395, 468, 880, 2668, 27717, 6134, 327, 1140, 18, 588, 11089, 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 ]
items = self._items lock = self.gateway._channelfactory._receivelock lock.acquire() try: _callbacks = self.gateway._channelfactory._callbacks dictvalue = (callback, endmarker) if _callbacks.setdefault(self.id, dictvalue) != dictvalue:
_callbacks = self.gateway._channelfactory._callbacks _receivelock = self.gateway._channelfactory._receivelock _receivelock.acquire() try: if self._items is None:
def setcallback(self, callback, endmarker=NO_ENDMARKER_WANTED): items = self._items lock = self.gateway._channelfactory._receivelock lock.acquire() try: _callbacks = self.gateway._channelfactory._callbacks dictvalue = (callback, endmarker) if _callbacks.setdefault(self.id, dictvalue) != dictvalue: raise IOError("%r has callback already registered" %(self,)) self._items = None while 1: try: olditem = items.get(block=False) except queue.Empty: break else: if olditem is ENDMARKER: items.put(olditem) break else: callback(olditem) if self._closed or self._receiveclosed.isSet(): # no need to keep a callback self.gateway._channelfactory._close_callback(self.id) finally: lock.release()
a5bfb8e501203c8e51497d9683602631bf98cb56 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7009/a5bfb8e501203c8e51497d9683602631bf98cb56/gateway_base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 3394, 12, 2890, 16, 1348, 16, 679, 11145, 33, 3417, 67, 4415, 25989, 67, 26499, 6404, 4672, 1377, 389, 13316, 273, 365, 18, 11127, 6315, 4327, 6848, 6315, 13316, 389, 8606, 427, 292, 975, 273, 365, 18, 11127, 6315, 4327, 6848, 6315, 8606, 427, 292, 975, 389, 8606, 427, 292, 975, 18, 1077, 1039, 1435, 775, 30, 309, 365, 6315, 3319, 353, 599, 30, 1002, 8340, 27188, 86, 711, 1348, 1818, 4104, 6, 8975, 2890, 16, 3719, 365, 6315, 3319, 273, 599, 1323, 404, 30, 775, 30, 1592, 1726, 273, 1516, 18, 588, 12, 2629, 33, 8381, 13, 1335, 2389, 18, 1921, 30, 898, 469, 30, 309, 1592, 1726, 353, 7273, 25989, 30, 1516, 18, 458, 12, 1673, 1726, 13, 898, 469, 30, 1348, 12, 1673, 1726, 13, 309, 365, 6315, 12204, 578, 365, 6315, 8606, 427, 557, 13783, 18, 291, 694, 13332, 468, 1158, 1608, 358, 3455, 279, 1348, 365, 18, 11127, 6315, 4327, 6848, 6315, 4412, 67, 3394, 12, 2890, 18, 350, 13, 3095, 30, 2176, 18, 9340, 1435, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 3394, 12, 2890, 16, 1348, 16, 679, 11145, 33, 3417, 67, 4415, 25989, 67, 26499, 6404, 4672, 1377, 389, 13316, 273, 365, 18, 11127, 6315, 4327, 6848, 6315, 13316, 389, 8606, 427, 292, 975, 273, 365, 18, 11127, 6315, 4327, 6848, 6315, 8606, 427, 292, 975, 389, 8606, 427, 292, 975, 18, 1077, 1039, 1435, 775, 30, 309, 365, 6315, 3319, 353, 599, 30, 1002, 8340, 27188, 86, 711, 1348, 1818, 4104, 6, 8975, 2890, 16, 3719, 365, 6315, 3319, 273, 599, 1323, 404, 30, 775, 30, 1592, 1726, 273, 1516, 18, 588, 12, 2629, 33, 8381, 13, 1335, 2389, 18, 1921, 30, 898, 469, 30, 309, 1592, 1726, 353, 7273, 25989, 30, 1516, 18, 458, 12, 2 ]
atoms.s.append(atoms.r - atoms.r_old)
self.s.append(self.r - self.r_old)
def step(self, f): atoms = self.atoms self.ni = atoms.nimages-2 # try: atoms.imax # except: atoms.imax=0 # if(not self.ni):atoms.imax=1 g = open('out','w') atoms.r = npy.zeros((self.ni, atoms.natoms, self.dim), 'd') for i in range(1, atoms.nimages-1): atoms.r[i-1] = atoms.images[i].get_positions() print >> g,'atoms.r',atoms.r atoms.f = npy.zeros((self.ni, atoms.natoms, self.dim), 'd') for i in range(1, atoms.nimages-1): atoms.f[i-1] = atoms.images[i].get_forces() print >> g,'atoms.f',atoms.f try: atoms.start except:atoms.start=0 if(not atoms.start): atoms.start = 1 atoms.a = npy.zeros(self.memory+1, 'd') self.ptmp = atoms self.maxstep = npy.sqrt(self.maxstep * self.ni) atoms.lbfgsinit = 0 try: atoms.lbfgsinit except:atoms.lbfgsinit=0 if(not atoms.lbfgsinit): atoms.lbfgsinit = 1 atoms.Ho = npy.ones((self.ni, atoms.natoms, self.dim), 'd') if (not self.min=='line'):atoms.Ho = atoms.Ho * self.alpha atoms.ITR = 1 atoms.s = [1.] atoms.y = [1.] atoms.rho = [1.] else: a1 = abs (npy.vdot(atoms.f, atoms.f_old)) a2 = npy.vdot(atoms.f_old, atoms.f_old) print 'a1,a2 created',a1,a2 if(self.min=='line'): if(a1<=0.5* a2 and a2!=0): reset_flag = 0 else: reset_flag = 1 else: reset_flag = 0 if(reset_flag==0): g1 = open('out1','w') g2 = open('out2','w') print >> g1,'atoms.r',atoms.r print >> g2,'atoms.r_old',atoms.r_old ITR = atoms.ITR#correctly generated if(ITR > self.memory): atoms.s.pop(1) atoms.y.pop(1) atoms.rho.pop(1) ITR=self.memory atoms.s.append(atoms.r - atoms.r_old)#!!atoms.r is not updating # boundry cond # for i in range(atoms.ni): # if(method=='min'):i=0 # try: # DBC(atoms.s[ITR][i],atoms.p[i].Box) #need to make matrix for box # except: # print "Box not found." # if(method=='min'):break atoms.y.append(-(atoms.f-atoms.f_old)) atoms.rho.append(1/npy.vdot(atoms.y[ITR],atoms.s[ITR])) atoms.ITR += 1 else:
689ed3715e535adf898039f50971002aa6c5a5e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1380/689ed3715e535adf898039f50971002aa6c5a5e9/glbfgs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2235, 12, 2890, 16, 284, 4672, 9006, 273, 365, 18, 14937, 365, 18, 15834, 273, 9006, 18, 82, 7369, 17, 22, 468, 775, 30, 9006, 18, 381, 651, 468, 1335, 30, 9006, 18, 381, 651, 33, 20, 468, 309, 12, 902, 365, 18, 15834, 4672, 14937, 18, 381, 651, 33, 21, 314, 273, 1696, 2668, 659, 17023, 91, 6134, 9006, 18, 86, 273, 1130, 93, 18, 22008, 12443, 2890, 18, 15834, 16, 9006, 18, 82, 14937, 16, 365, 18, 3509, 3631, 296, 72, 6134, 364, 277, 316, 1048, 12, 21, 16, 9006, 18, 82, 7369, 17, 21, 4672, 9006, 18, 86, 63, 77, 17, 21, 65, 273, 9006, 18, 7369, 63, 77, 8009, 588, 67, 12388, 1435, 1172, 1671, 314, 11189, 14937, 18, 86, 2187, 14937, 18, 86, 9006, 18, 74, 273, 1130, 93, 18, 22008, 12443, 2890, 18, 15834, 16, 9006, 18, 82, 14937, 16, 365, 18, 3509, 3631, 296, 72, 6134, 364, 277, 316, 1048, 12, 21, 16, 9006, 18, 82, 7369, 17, 21, 4672, 9006, 18, 74, 63, 77, 17, 21, 65, 273, 9006, 18, 7369, 63, 77, 8009, 588, 67, 1884, 764, 1435, 1172, 1671, 314, 11189, 14937, 18, 74, 2187, 14937, 18, 74, 775, 30, 9006, 18, 1937, 1335, 30, 14937, 18, 1937, 33, 20, 309, 12, 902, 9006, 18, 1937, 4672, 9006, 18, 1937, 273, 404, 9006, 18, 69, 273, 1130, 93, 18, 22008, 12, 2890, 18, 7858, 15, 21, 16, 296, 72, 6134, 365, 18, 337, 1291, 273, 9006, 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, 2235, 12, 2890, 16, 284, 4672, 9006, 273, 365, 18, 14937, 365, 18, 15834, 273, 9006, 18, 82, 7369, 17, 22, 468, 775, 30, 9006, 18, 381, 651, 468, 1335, 30, 9006, 18, 381, 651, 33, 20, 468, 309, 12, 902, 365, 18, 15834, 4672, 14937, 18, 381, 651, 33, 21, 314, 273, 1696, 2668, 659, 17023, 91, 6134, 9006, 18, 86, 273, 1130, 93, 18, 22008, 12443, 2890, 18, 15834, 16, 9006, 18, 82, 14937, 16, 365, 18, 3509, 3631, 296, 72, 6134, 364, 277, 316, 1048, 12, 21, 16, 9006, 18, 82, 7369, 17, 21, 4672, 9006, 18, 86, 63, 77, 17, 21, 65, 273, 9006, 18, 7369, 63, 77, 8009, 588, 67, 12388, 1435, 1172, 2 ]
"""Returns first index id where the field code FIELD is indexed. Returns zero in case there is no table for this index. Example: field='author', output=4."""
""" Return index id with name corresponding to FIELD, or the first index id where the logical field code named FIELD is indexed. Return zero in case there is no index defined for this field. Example: field='author', output=4. """
def get_index_id_from_field(field): """Returns first index id where the field code FIELD is indexed. Returns zero in case there is no table for this index. Example: field='author', output=4.""" out = 0 if field == '': field = 'anyfield' # empty string field means 'anyfield' res = run_sql("""SELECT w.id FROM idxINDEX AS w, idxINDEX_field AS wf, field AS f WHERE f.code=%s AND wf.id_field=f.id AND w.id=wf.id_idxINDEX LIMIT 1""", (field,)) if res: out = res[0][0] return out
ecba2d17f2c659fb5f546a1510c9950bb439cc75 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2139/ecba2d17f2c659fb5f546a1510c9950bb439cc75/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1615, 67, 350, 67, 2080, 67, 1518, 12, 1518, 4672, 3536, 2000, 770, 612, 598, 508, 4656, 358, 9921, 16, 578, 326, 1122, 770, 612, 1625, 326, 6374, 652, 981, 4141, 9921, 353, 8808, 18, 225, 2000, 3634, 316, 648, 1915, 353, 1158, 770, 2553, 364, 333, 652, 18, 225, 5090, 30, 652, 2218, 4161, 2187, 876, 33, 24, 18, 3536, 596, 273, 374, 309, 652, 422, 875, 30, 652, 273, 296, 2273, 1518, 11, 468, 1008, 533, 652, 4696, 296, 2273, 1518, 11, 400, 273, 1086, 67, 4669, 2932, 3660, 4803, 341, 18, 350, 4571, 2067, 9199, 5355, 341, 16, 2067, 9199, 67, 1518, 5355, 11578, 16, 652, 5355, 284, 4852, 284,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1615, 67, 350, 67, 2080, 67, 1518, 12, 1518, 4672, 3536, 2000, 770, 612, 598, 508, 4656, 358, 9921, 16, 578, 326, 1122, 770, 612, 1625, 326, 6374, 652, 981, 4141, 9921, 353, 8808, 18, 225, 2000, 3634, 316, 648, 1915, 353, 1158, 770, 2553, 364, 333, 652, 18, 225, 5090, 30, 652, 2218, 4161, 2187, 876, 33, 24, 18, 3536, 596, 273, 374, 309, 652, 422, 875, 30, 652, 273, 296, 2273, 1518, 11, 468, 1008, 533, 652, 4696, 296, 2273, 1518, 11, 400, 273, 1086, 67, 4669, 2932, 3660, 4803, 341, 18, 350, 4571, 2067, 9199, 5355, 341, 16, 2067, 9199, 67, 1518, 5355, 11578, 16, 652, 5355, 284, 4852, 284, 18, 710, 5095, 2 ]
for y in xrange(self.y, self.y + self.height, self.height/num): line = Rect(self.x, y, self.width, self.height/num)
if num == 1: yVals = [self.y] else: yVals = frange(self.y, self.y + h, h/num) for y in yVals: stripe = Rect(self.x, y, w, h/num)
def draw(self): # general widget bits group = Group() rect = Rect(self.x, self.y, self.width, self.height) rect.strokeColor = self.strokeColor rect.strokeWidth = self.strokeWidth rect.fillColor = None group.add(rect)
2a3e6fc48d80b9c6c5c11a9c8c3f597a854a27ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/2a3e6fc48d80b9c6c5c11a9c8c3f597a854a27ab/grids.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 4672, 468, 7470, 3604, 4125, 1041, 273, 3756, 1435, 225, 4917, 273, 9315, 12, 2890, 18, 92, 16, 365, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 4672, 468, 7470, 3604, 4125, 1041, 273, 3756, 1435, 225, 4917, 273, 9315, 12, 2890, 18, 92, 16, 365, 18, 93, 16, 365, 18, 2819, 16, 365, 18, 4210, 13, 4917, 18, 16181, 2957, 273, 365, 18, 16181, 2957, 4917, 18, 16181, 2384, 273, 365, 18, 16181, 2384, 4917, 18, 5935, 2957, 273, 599, 1041, 18, 1289, 12, 2607, 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 ]
"""Calls calculateTangentLists with the constructor parameters and merges tangent lists when merging edges."""
"""Stores precomputed tangent lists for each edge and merges then when merging edges."""
def calculateTangentListsGaussianReflective(map, sigma, diff=0.0): """calculateTangentListsGaussianReflective(map, sigma, diff=0.0) Add 'tangents' property to all edges, containing the result of running tangentListGaussianReflective on it with the given parameters. Note that all edges which are too small will have an empty 'tangents' list.""" result = [None] * map.maxEdgeLabel() for edge in map.edgeIter(): try: result[edge.label()] = tangentListGaussianReflective(edge, sigma, diff) except RuntimeError: sys.stderr.write("calculateTangentListsGaussianReflective: %s too short!\n" % edge) return result
4ef96517287a1d5ca47341c77866d3cec450dc72 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/4ef96517287a1d5ca47341c77866d3cec450dc72/statistics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4604, 56, 24255, 7432, 43, 12086, 24452, 688, 12, 1458, 16, 7299, 16, 3122, 33, 20, 18, 20, 4672, 3536, 11162, 56, 24255, 7432, 43, 12086, 24452, 688, 12, 1458, 16, 7299, 16, 3122, 33, 20, 18, 20, 13, 1436, 296, 88, 539, 4877, 11, 1272, 358, 777, 5231, 16, 4191, 326, 563, 434, 3549, 268, 24255, 682, 43, 12086, 24452, 688, 603, 518, 598, 326, 864, 1472, 18, 225, 3609, 716, 777, 5231, 1492, 854, 4885, 5264, 903, 1240, 392, 1008, 296, 88, 539, 4877, 11, 666, 12123, 225, 563, 273, 306, 7036, 65, 380, 852, 18, 1896, 6098, 2224, 1435, 364, 3591, 316, 852, 18, 7126, 2360, 13332, 775, 30, 563, 63, 7126, 18, 1925, 1435, 65, 273, 268, 24255, 682, 43, 12086, 24452, 688, 12, 7126, 16, 7299, 16, 3122, 13, 1335, 7265, 30, 2589, 18, 11241, 18, 2626, 2932, 11162, 56, 24255, 7432, 43, 12086, 24452, 688, 30, 738, 87, 4885, 3025, 24440, 82, 6, 738, 3591, 13, 327, 563, 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, 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272, 358, 777, 5231, 16, 4191, 326, 563, 434, 3549, 268, 24255, 682, 43, 12086, 24452, 688, 603, 518, 598, 326, 864, 1472, 18, 225, 3609, 716, 777, 5231, 1492, 854, 4885, 5264, 903, 1240, 392, 1008, 296, 88, 539, 4877, 11, 666, 12123, 225, 563, 273, 306, 7036, 65, 380, 852, 18, 1896, 6098, 2224, 1435, 364, 3591, 316, 852, 18, 7126, 2360, 13332, 775, 30, 563, 63, 7126, 18, 1925, 1435, 2 ]
yield firstline
if firstline is not None: yield firstline
def reader(fp, firstline): yield firstline for line in fp: yield line
5636d52ec05ad9b16844c9ce646859e0ecd81642 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/5636d52ec05ad9b16844c9ce646859e0ecd81642/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2949, 12, 7944, 16, 1122, 1369, 4672, 309, 1122, 1369, 353, 486, 599, 30, 2824, 1122, 1369, 364, 980, 316, 4253, 30, 2824, 980, 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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364, 980, 316, 4253, 30, 2824, 980, 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 ]
EXAMPLES::
EXAMPLES: A generator object for binary sequencences of length 3, listed::
def search_forest_iterator(roots, childs): """ INPUT: - ``roots``: a list (or iterable) - ``childs``: a function returning a list (or iterable) Returns an iterator on the nodes of the forest having the given roots, and where ``child(x)`` returns the childs of the node ``x`` of the forest. EXAMPLES:: sage: from sage.combinat.backtrack import search_forest_iterator sage: list(search_forest_iterator([[]], lambda l: [l+[0], l+[1]] if len(l) < 3 else [])) [[], [0], [0, 0], [0, 0, 0], [0, 0, 1], [0, 1], [0, 1, 0], [0, 1, 1], [1], [1, 0], [1, 0, 0], [1, 0, 1], [1, 1], [1, 1, 0], [1, 1, 1]] """ #Invariant: stack[i] contains an iterator for the siblings of the i-th node of the current branch stack = [iter(roots)] while len(stack) > 0: # Try to get the next node at this depth try: node = stack[-1].next() except StopIteration: #If there are no more, go back up the tree # We also need to check if we've exhausted all # possibilities stack.pop() continue yield node stack.append( iter(childs(node)) )
f267a0642a59e1808e00bcbe18399f8d154f25c0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f267a0642a59e1808e00bcbe18399f8d154f25c0/backtrack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 1405, 334, 67, 9838, 12, 22078, 16, 21619, 4672, 3536, 12943, 30, 225, 300, 12176, 22078, 10335, 30, 279, 666, 261, 280, 6087, 13, 225, 300, 12176, 3624, 87, 10335, 30, 279, 445, 5785, 279, 666, 261, 280, 6087, 13, 225, 2860, 392, 2775, 603, 326, 2199, 434, 326, 30763, 7999, 326, 864, 12876, 16, 471, 1625, 12176, 3624, 12, 92, 13, 10335, 1135, 326, 21619, 434, 326, 756, 12176, 92, 10335, 434, 326, 30763, 18, 225, 5675, 8900, 11386, 30, 225, 432, 4456, 733, 364, 3112, 26401, 1331, 2369, 434, 769, 890, 16, 12889, 2866, 225, 272, 410, 30, 628, 272, 410, 18, 832, 4757, 270, 18, 823, 4101, 1930, 1623, 67, 1405, 334, 67, 9838, 272, 410, 30, 666, 12, 3072, 67, 1405, 334, 67, 9838, 3816, 8526, 6487, 3195, 328, 30, 306, 80, 15, 63, 20, 6487, 328, 15, 63, 21, 13563, 309, 562, 12, 80, 13, 411, 890, 469, 5378, 3719, 12167, 6487, 306, 20, 6487, 306, 20, 16, 374, 6487, 306, 20, 16, 374, 16, 374, 6487, 306, 20, 16, 374, 16, 404, 6487, 306, 20, 16, 404, 6487, 306, 20, 16, 404, 16, 374, 6487, 306, 20, 16, 404, 16, 404, 6487, 306, 21, 6487, 306, 21, 16, 374, 6487, 306, 21, 16, 374, 16, 374, 6487, 306, 21, 16, 374, 16, 404, 6487, 306, 21, 16, 404, 6487, 306, 21, 16, 404, 16, 374, 6487, 306, 21, 16, 404, 16, 404, 13563, 225, 3536, 225, 468, 382, 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, 1623, 67, 1405, 334, 67, 9838, 12, 22078, 16, 21619, 4672, 3536, 12943, 30, 225, 300, 12176, 22078, 10335, 30, 279, 666, 261, 280, 6087, 13, 225, 300, 12176, 3624, 87, 10335, 30, 279, 445, 5785, 279, 666, 261, 280, 6087, 13, 225, 2860, 392, 2775, 603, 326, 2199, 434, 326, 30763, 7999, 326, 864, 12876, 16, 471, 1625, 12176, 3624, 12, 92, 13, 10335, 1135, 326, 21619, 434, 326, 756, 12176, 92, 10335, 434, 326, 30763, 18, 225, 5675, 8900, 11386, 30, 225, 432, 4456, 733, 364, 3112, 26401, 1331, 2369, 434, 769, 890, 16, 12889, 2866, 225, 272, 410, 30, 628, 272, 410, 18, 832, 4757, 270, 18, 823, 4101, 1930, 1623, 67, 1405, 334, 67, 2 ]
f.write(SETUPTOOLS_PKG_INFO) f.write()
try: f.write(SETUPTOOLS_PKG_INFO) finally: f.close() args = [sys.executable] + sys.argv if is_jython: sys.exit(subprocess.Popen([sys.executable] + args).wait()) else: sys.exit(os.spawnv(os.P_WAIT, sys.executable, args))
def fake_setuptools(): try: import pkg_resources except ImportError: # we're cool return ws = pkg_resources.working_set setuptools_dist = ws.find(pkg_resources.Requirement.parse('setuptools')) if setuptools_dist is None: return # let's create a fake egg replacing setuptools one setuptools_location = setuptools_dist.location os.rename(setuptools_location, setuptools_location+'.OLD') os.mkdir(setuptools_location) os.mkdir(os.path.join(setuptools_location, 'EGG-INFO')) pkg_info = os.path.join(setuptools_location, 'EGG-INFO', 'PKG-INFO') f = open(pkg_info, 'w') f.write(SETUPTOOLS_PKG_INFO) f.write()
3d4f3060886dd7ef9b074df9667fbabf4760fd2a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/495/3d4f3060886dd7ef9b074df9667fbabf4760fd2a/ez_setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10517, 67, 542, 30693, 13332, 775, 30, 1930, 3475, 67, 4683, 1335, 11308, 30, 468, 732, 4565, 27367, 327, 4945, 225, 273, 3475, 67, 4683, 18, 20478, 67, 542, 444, 30693, 67, 4413, 273, 4945, 18, 4720, 12, 10657, 67, 4683, 18, 18599, 18, 2670, 2668, 542, 30693, 26112, 309, 444, 30693, 67, 4413, 353, 599, 30, 327, 468, 2231, 1807, 752, 279, 10517, 25144, 13993, 444, 30693, 1245, 444, 30693, 67, 3562, 273, 444, 30693, 67, 4413, 18, 3562, 1140, 18, 18539, 12, 542, 30693, 67, 3562, 16, 444, 30693, 67, 3562, 6797, 18, 11846, 6134, 1140, 18, 26686, 12, 542, 30693, 67, 3562, 13, 1140, 18, 26686, 12, 538, 18, 803, 18, 5701, 12, 542, 30693, 67, 3562, 16, 296, 41, 19491, 17, 5923, 26112, 3475, 67, 1376, 273, 1140, 18, 803, 18, 5701, 12, 542, 30693, 67, 3562, 16, 296, 41, 19491, 17, 5923, 2187, 296, 8784, 43, 17, 5923, 6134, 284, 273, 1696, 12, 10657, 67, 1376, 16, 296, 91, 6134, 775, 30, 284, 18, 2626, 12, 4043, 57, 1856, 51, 1741, 55, 67, 8784, 43, 67, 5923, 13, 3095, 30, 284, 18, 4412, 1435, 282, 833, 273, 306, 9499, 18, 17751, 65, 225, 397, 2589, 18, 19485, 309, 353, 67, 78, 18490, 30, 2589, 18, 8593, 12, 1717, 2567, 18, 52, 3190, 3816, 9499, 18, 17751, 65, 397, 833, 2934, 7048, 10756, 469, 30, 2589, 18, 8593, 12, 538, 18, 1752, 9533, 90, 12, 538, 18, 52, 67, 19046, 16, 2589, 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, 10517, 67, 542, 30693, 13332, 775, 30, 1930, 3475, 67, 4683, 1335, 11308, 30, 468, 732, 4565, 27367, 327, 4945, 225, 273, 3475, 67, 4683, 18, 20478, 67, 542, 444, 30693, 67, 4413, 273, 4945, 18, 4720, 12, 10657, 67, 4683, 18, 18599, 18, 2670, 2668, 542, 30693, 26112, 309, 444, 30693, 67, 4413, 353, 599, 30, 327, 468, 2231, 1807, 752, 279, 10517, 25144, 13993, 444, 30693, 1245, 444, 30693, 67, 3562, 273, 444, 30693, 67, 4413, 18, 3562, 1140, 18, 18539, 12, 542, 30693, 67, 3562, 16, 444, 30693, 67, 3562, 6797, 18, 11846, 6134, 1140, 18, 26686, 12, 542, 30693, 67, 3562, 13, 1140, 18, 26686, 12, 538, 18, 803, 18, 5701, 12, 542, 30693, 2 ]
x, y = self._calc_image_position()
x, y = self._icon_position()
def _event_inside_icon(self, event): x, y = self._calc_image_position() return (x <= event.x < x + 16) and (y <= event.y < y + 16)
006b0b1783dee80eaa3b03dcd298253d0de14390 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/006b0b1783dee80eaa3b03dcd298253d0de14390/searchentry.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2575, 67, 28091, 67, 3950, 12, 2890, 16, 871, 4672, 619, 16, 677, 273, 365, 6315, 3950, 67, 3276, 1435, 327, 261, 92, 1648, 871, 18, 92, 411, 619, 397, 2872, 13, 471, 261, 93, 1648, 871, 18, 93, 411, 677, 397, 2872, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2575, 67, 28091, 67, 3950, 12, 2890, 16, 871, 4672, 619, 16, 677, 273, 365, 6315, 3950, 67, 3276, 1435, 327, 261, 92, 1648, 871, 18, 92, 411, 619, 397, 2872, 13, 471, 261, 93, 1648, 871, 18, 93, 411, 677, 397, 2872, 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 ]
file.Write(" EXPECT_EQ(sizeof(cmd) + // NOLINT\n")
file.Write(" EXPECT_EQ(sizeof(cmd)\n")
def WriteImmediateFormatTest(self, func, file): """Overrriden from TypeHandler.""" file.Write("TEST(GLES2FormatTest, %s) {\n" % func.name) file.Write(" int8 buf[256] = { 0, };\n") file.Write(" %s& cmd = *static_cast<%s*>(static_cast<void*>(&buf));\n" % (func.name, func.name)) file.Write(" static const char* const test_str = \"test string\";\n") file.Write(" void* next_cmd = cmd.Set(\n") file.Write(" &cmd") all_but_last_arg = func.GetCmdArgs()[:-1] value = 11 for arg in all_but_last_arg: file.Write(",\n static_cast<%s>(%d)" % (arg.type, value)) value += 1 file.Write(",\n test_str);\n") value = 11 file.Write(" EXPECT_EQ(%s::kCmdId ^ cmd.header.command);\n" % func.name) file.Write(" EXPECT_EQ(sizeof(cmd) + // NOLINT\n") file.Write(" RoundSizeToMultipleOfEntries(strlen(test_str)),\n") file.Write(" cmd.header.size * 4u);\n") file.Write(" EXPECT_EQ(static_cast<char*>(next_cmd),\n") file.Write(" reinterpret_cast<char*>(&cmd) + sizeof(cmd));\n"); for arg in all_but_last_arg: file.Write(" EXPECT_EQ(static_cast<%s>(%d), cmd.%s);\n" % (arg.type, value, arg.name)) value += 1 file.Write(" // TODO(gman): check that string got copied.\n") file.Write("}\n") file.Write("\n")
20d6af8de9f49c5a4b9a5d098840a1523ad90cb6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/20d6af8de9f49c5a4b9a5d098840a1523ad90cb6/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 22651, 1630, 4709, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 585, 18, 3067, 2932, 16961, 12, 43, 11386, 22, 1630, 4709, 16, 738, 87, 13, 18890, 82, 6, 738, 1326, 18, 529, 13, 585, 18, 3067, 2932, 225, 509, 28, 1681, 63, 5034, 65, 273, 288, 374, 16, 289, 9747, 82, 7923, 585, 18, 3067, 2932, 225, 738, 87, 10, 1797, 273, 380, 3845, 67, 4155, 32, 9, 87, 14, 34, 12, 3845, 67, 4155, 32, 6459, 14, 34, 12, 10, 4385, 10019, 64, 82, 6, 738, 261, 644, 18, 529, 16, 1326, 18, 529, 3719, 585, 18, 3067, 2932, 225, 760, 1866, 1149, 14, 1866, 1842, 67, 701, 273, 1239, 3813, 533, 2412, 9747, 82, 7923, 585, 18, 3067, 2932, 225, 918, 14, 1024, 67, 4172, 273, 1797, 18, 694, 4713, 82, 7923, 585, 18, 3067, 2932, 1377, 473, 4172, 7923, 777, 67, 12885, 67, 2722, 67, 3175, 273, 1326, 18, 967, 5931, 2615, 1435, 10531, 17, 21, 65, 460, 273, 4648, 364, 1501, 316, 777, 67, 12885, 67, 2722, 67, 3175, 30, 585, 18, 3067, 2932, 17211, 82, 1377, 760, 67, 4155, 32, 9, 87, 34, 9275, 72, 2225, 738, 261, 3175, 18, 723, 16, 460, 3719, 460, 1011, 404, 585, 18, 3067, 2932, 17211, 82, 1377, 1842, 67, 701, 20472, 82, 7923, 460, 273, 4648, 585, 18, 3067, 2932, 225, 5675, 1423, 1268, 67, 27247, 9275, 87, 2866, 79, 5931, 548, 3602, 1797, 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, 2598, 22651, 1630, 4709, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 585, 18, 3067, 2932, 16961, 12, 43, 11386, 22, 1630, 4709, 16, 738, 87, 13, 18890, 82, 6, 738, 1326, 18, 529, 13, 585, 18, 3067, 2932, 225, 509, 28, 1681, 63, 5034, 65, 273, 288, 374, 16, 289, 9747, 82, 7923, 585, 18, 3067, 2932, 225, 738, 87, 10, 1797, 273, 380, 3845, 67, 4155, 32, 9, 87, 14, 34, 12, 3845, 67, 4155, 32, 6459, 14, 34, 12, 10, 4385, 10019, 64, 82, 6, 738, 261, 644, 18, 529, 16, 1326, 18, 529, 3719, 585, 18, 3067, 2932, 225, 760, 1866, 1149, 14, 1866, 1842, 67, 701, 2 ]
(sys.platform.startswith('linux') and
((sys.platform.startswith('linux') or sys.platform.startswith('gnu')) and
def finalize_options (self): from distutils import sysconfig
b432f3ee81ae7f4f466a2a31a6df3f3542e99a1c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b432f3ee81ae7f4f466a2a31a6df3f3542e99a1c/build_ext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12409, 67, 2116, 261, 2890, 4672, 628, 2411, 5471, 1930, 2589, 1425, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12409, 67, 2116, 261, 2890, 4672, 628, 2411, 5471, 1930, 2589, 1425, 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 ]
flagdata2(vis=self.vis, selectdata=True, timerange='09:50:00~10:20:00', manualflag=True, mf_timerange='09:20:00~10:20:00') test_eq(flagdata2(vis=self.vis, summary=True, antenna='2'), 196434, 6552)
flagdata2(vis=self.vis, selectdata=True, timerange='09:50:00~10:23:00', manualflag=True, mf_timerange='09:33:00~10:43:00') test_eq(flagdata2(vis=self.vis, summary=True, selectdata=True, field='2'), 1619352, 0) test_eq(flagdata2(vis=self.vis, summary=True, selectdata=True, field='1'), 666792, 238140)
def test_timerange(self): flagdata2(vis=self.vis, selectdata=True, timerange='09:50:00~10:20:00', manualflag=True, mf_timerange='09:20:00~10:20:00') test_eq(flagdata2(vis=self.vis, summary=True, antenna='2'), 196434, 6552)
05385c9baca107ae37130d13ada12822cc89d8d5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2098/05385c9baca107ae37130d13ada12822cc89d8d5/test_flagdata2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 12542, 726, 12, 2890, 4672, 2982, 892, 22, 12, 3516, 33, 2890, 18, 3516, 16, 2027, 892, 33, 5510, 16, 5441, 726, 2218, 5908, 30, 3361, 30, 713, 98, 2163, 30, 3462, 30, 713, 2187, 11297, 6420, 33, 5510, 16, 14749, 67, 12542, 726, 2218, 5908, 30, 3462, 30, 713, 98, 2163, 30, 3462, 30, 713, 6134, 1842, 67, 11253, 12, 6420, 892, 22, 12, 3516, 33, 2890, 18, 3516, 16, 4916, 33, 5510, 16, 392, 2253, 6582, 2218, 22, 19899, 5342, 1105, 5026, 16, 8982, 22, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 12542, 726, 12, 2890, 4672, 2982, 892, 22, 12, 3516, 33, 2890, 18, 3516, 16, 2027, 892, 33, 5510, 16, 5441, 726, 2218, 5908, 30, 3361, 30, 713, 98, 2163, 30, 3462, 30, 713, 2187, 11297, 6420, 33, 5510, 16, 14749, 67, 12542, 726, 2218, 5908, 30, 3462, 30, 713, 98, 2163, 30, 3462, 30, 713, 6134, 1842, 67, 11253, 12, 6420, 892, 22, 12, 3516, 33, 2890, 18, 3516, 16, 4916, 33, 5510, 16, 392, 2253, 6582, 2218, 22, 19899, 5342, 1105, 5026, 16, 8982, 22, 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 ]
use_double = True use_complex = True
use_double = 1 use_complex = 1
def tril(a_gpu, dev, overwrite=True): """ Lower triangle of a matrix. Return the lower triangle of a square matrix. Parameters ---------- a_gpu : pycuda.gpuarray.GPUArray Input matrix of shape `(m, m)` dev : pycuda.driver.Device Device object to be used. overwrite : boolean If true (default), zero out the upper triangle of the matrix. If false, return the result in a newly allocated matrix. Returns ------- l_gpu : pycuda.gpuarray The lower triangle of the original matrix. Examples -------- >>> import pycuda.driver as drv >>> import pycuda.gpuarray as gpuarray >>> import pycuda.autoinit >>> import numpy as np >>> import linalg >>> linalg.init() >>> a = np.asarray(np.random.rand(4, 4), np.float32) >>> a_gpu = gpuarray.to_gpu(a) >>> l_gpu = tril(a_gpu, pycuda.autoinit.device, False) >>> np.allclose(np.tril(a), l_gpu.get()) True """ if len(a_gpu.shape) != 2 or a_gpu.shape[0] != a_gpu.shape[1]: raise ValueError('matrix must be square') if a_gpu.dtype == np.float32: swap_func = cublas.cublasSswap copy_func = cublas.cublasScopy use_double = False use_complex = False elif a_gpu.dtype == np.float64: swap_func = cublas.cublasDswap copy_func = cublas.cublasDcopy use_double = True use_complex = False elif a_gpu.dtype == np.complex64: swap_func = cublas.cublasCswap copy_func = cublas.cublasCcopy use_double = False use_complex = True elif a_gpu.dtype == np.complex128: swap_func = cublas.cublasZswap copy_func = cublas.cublasZcopy use_double = True use_complex = True else: raise ValueError('unrecognized type') N = a_gpu.shape[0] # Get block/grid sizes: max_threads_per_block, max_block_dim, max_grid_dim = get_dev_attrs(dev) block_dim, grid_dim = select_block_grid_sizes(dev, a_gpu.shape) max_blocks_per_grid = max(max_grid_dim) # Set this to False when debugging to make sure the compiled kernel is # not cached: cache_dir=None tril_mod = \ SourceModule(tril_mod_template.substitute(use_double=use_double, use_complex=use_complex, max_threads_per_block=max_threads_per_block, max_blocks_per_grid=max_blocks_per_grid, cols=N), cache_dir=cache_dir) tril = tril_mod.get_function("tril") if not overwrite: a_orig_gpu = gpuarray.empty(a_gpu.shape, a_gpu.dtype) copy_func(a_gpu.size, int(a_gpu.gpudata), 1, int(a_orig_gpu.gpudata), 1) tril(a_gpu.gpudata, np.uint32(a_gpu.size), block=block_dim, grid=grid_dim) if overwrite: return a_gpu else: # Restore original contents of a_gpu: swap_func(a_gpu.size, int(a_gpu.gpudata), 1, int(a_orig_gpu.gpudata), 1) return a_orig_gpu
aa4c309bc91f0d6e6804183ddb9941ea6337c203 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14753/aa4c309bc91f0d6e6804183ddb9941ea6337c203/linalg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 433, 330, 12, 69, 67, 23162, 16, 4461, 16, 6156, 33, 5510, 4672, 3536, 24804, 15002, 434, 279, 3148, 18, 225, 2000, 326, 2612, 15002, 434, 279, 8576, 3148, 18, 225, 7012, 12181, 279, 67, 23162, 294, 2395, 71, 13177, 18, 23162, 1126, 18, 9681, 57, 1076, 2741, 3148, 434, 2179, 1375, 12, 81, 16, 312, 22025, 4461, 294, 2395, 71, 13177, 18, 7407, 18, 3654, 6077, 733, 358, 506, 1399, 18, 6156, 294, 1250, 971, 638, 261, 1886, 3631, 3634, 596, 326, 3854, 15002, 434, 326, 3148, 18, 971, 629, 16, 327, 326, 563, 316, 279, 10894, 11977, 3148, 18, 225, 2860, 18365, 328, 67, 23162, 294, 2395, 71, 13177, 18, 23162, 1126, 1021, 2612, 15002, 434, 326, 2282, 3148, 18, 225, 19830, 27093, 4080, 1930, 2395, 71, 13177, 18, 7407, 487, 302, 4962, 4080, 1930, 2395, 71, 13177, 18, 23162, 1126, 487, 21810, 1126, 4080, 1930, 2395, 71, 13177, 18, 5854, 885, 305, 4080, 1930, 3972, 487, 1130, 4080, 1930, 11818, 4080, 11818, 18, 2738, 1435, 4080, 279, 273, 1130, 18, 345, 1126, 12, 6782, 18, 9188, 18, 7884, 12, 24, 16, 1059, 3631, 1130, 18, 5659, 1578, 13, 4080, 279, 67, 23162, 273, 21810, 1126, 18, 869, 67, 23162, 12, 69, 13, 4080, 328, 67, 23162, 273, 433, 330, 12, 69, 67, 23162, 16, 2395, 71, 13177, 18, 5854, 885, 305, 18, 5964, 16, 1083, 13, 4080, 1130, 18, 454, 4412, 12, 6782, 18, 313, 330, 12, 69, 3631, 328, 67, 23162, 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, 433, 330, 12, 69, 67, 23162, 16, 4461, 16, 6156, 33, 5510, 4672, 3536, 24804, 15002, 434, 279, 3148, 18, 225, 2000, 326, 2612, 15002, 434, 279, 8576, 3148, 18, 225, 7012, 12181, 279, 67, 23162, 294, 2395, 71, 13177, 18, 23162, 1126, 18, 9681, 57, 1076, 2741, 3148, 434, 2179, 1375, 12, 81, 16, 312, 22025, 4461, 294, 2395, 71, 13177, 18, 7407, 18, 3654, 6077, 733, 358, 506, 1399, 18, 6156, 294, 1250, 971, 638, 261, 1886, 3631, 3634, 596, 326, 3854, 15002, 434, 326, 3148, 18, 971, 629, 16, 327, 326, 563, 316, 279, 10894, 11977, 3148, 18, 225, 2860, 18365, 328, 67, 23162, 294, 2395, 71, 13177, 18, 23162, 1126, 1021, 2612, 15002, 434, 2 ]
class LDBDServer(SocketServer.BaseRequestHandler):
class ServerHandler(SocketServer.BaseRequestHandler):
def __init__(self, args=None): """ Initialize an instance.
fbc9803c65a4ee0294e471687c20c1853319f147 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/fbc9803c65a4ee0294e471687c20c1853319f147/LDBDServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 833, 33, 7036, 4672, 3536, 9190, 392, 791, 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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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 ]
gray = False
gray = True
def graph_get(self, cr, uid, id, res_model, res_id, scale, context): pool = pooler.get_pool(cr.dbname) process = pool.get('process.process').browse(cr, uid, [id])[0] current_object = pool.get(res_model).browse(cr, uid, [res_id], context)[0] current_user = pool.get('res.users').browse(cr, uid, [uid], context)[0] expr_context = Env(current_object, current_user) nodes = {} start = [] transitions = {}
6346d5d49d3ff8dbbfe21bd28dfecc821e980825 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/6346d5d49d3ff8dbbfe21bd28dfecc821e980825/process.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2667, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 400, 67, 2284, 16, 400, 67, 350, 16, 3159, 16, 819, 4672, 2845, 273, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 13, 225, 1207, 273, 2845, 18, 588, 2668, 2567, 18, 2567, 16063, 25731, 12, 3353, 16, 4555, 16, 306, 350, 5717, 63, 20, 65, 783, 67, 1612, 273, 2845, 18, 588, 12, 455, 67, 2284, 2934, 25731, 12, 3353, 16, 4555, 16, 306, 455, 67, 350, 6487, 819, 25146, 20, 65, 783, 67, 1355, 273, 2845, 18, 588, 2668, 455, 18, 5577, 16063, 25731, 12, 3353, 16, 4555, 16, 306, 1911, 6487, 819, 25146, 20, 65, 225, 3065, 67, 2472, 273, 5266, 12, 2972, 67, 1612, 16, 783, 67, 1355, 13, 225, 2199,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2667, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 400, 67, 2284, 16, 400, 67, 350, 16, 3159, 16, 819, 4672, 2845, 273, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 13, 225, 1207, 273, 2845, 18, 588, 2668, 2567, 18, 2567, 16063, 25731, 12, 3353, 16, 4555, 16, 306, 350, 5717, 63, 20, 65, 783, 67, 1612, 273, 2845, 18, 588, 12, 455, 67, 2284, 2934, 25731, 12, 3353, 16, 4555, 16, 306, 455, 67, 350, 6487, 819, 25146, 20, 65, 783, 67, 1355, 273, 2845, 18, 588, 2668, 455, 18, 5577, 16063, 25731, 12, 3353, 16, 4555, 16, 306, 1911, 6487, 819, 25146, 20, 65, 225, 3065, 67, 2472, 273, 5266, 2 ]
from twisted.internet.reactor import callFromThread
def process(self): """ This is called in the 'source' thread, and just basically sucks the iterator, appending items back to the main thread. """ try: self.source.init() except: self.failure = failure.Failure() from twisted.internet.reactor import callFromThread try: while 1: val = self.source.next() if self.extend: self.buff.extend(val) else: self.buff.append(val) except StopIteration: callFromThread(self.stop) except: if not self.failure: self.failure = failure.Failure() self.source = None
7a17965f7f9d51bb2b40aa2d87a7456676424e64 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/7a17965f7f9d51bb2b40aa2d87a7456676424e64/flow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 2890, 4672, 3536, 1220, 353, 2566, 316, 326, 296, 3168, 11, 2650, 16, 471, 2537, 23772, 1597, 363, 87, 326, 2775, 16, 19997, 1516, 1473, 358, 326, 2774, 2650, 18, 3536, 775, 30, 365, 18, 3168, 18, 2738, 1435, 1335, 30, 365, 18, 12251, 273, 5166, 18, 5247, 1435, 775, 30, 1323, 404, 30, 1244, 273, 365, 18, 3168, 18, 4285, 1435, 309, 365, 18, 14313, 30, 365, 18, 20664, 18, 14313, 12, 1125, 13, 469, 30, 365, 18, 20664, 18, 6923, 12, 1125, 13, 1335, 16179, 30, 745, 1265, 3830, 12, 2890, 18, 5681, 13, 1335, 30, 309, 486, 365, 18, 12251, 30, 365, 18, 12251, 273, 5166, 18, 5247, 1435, 365, 18, 3168, 273, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 2890, 4672, 3536, 1220, 353, 2566, 316, 326, 296, 3168, 11, 2650, 16, 471, 2537, 23772, 1597, 363, 87, 326, 2775, 16, 19997, 1516, 1473, 358, 326, 2774, 2650, 18, 3536, 775, 30, 365, 18, 3168, 18, 2738, 1435, 1335, 30, 365, 18, 12251, 273, 5166, 18, 5247, 1435, 775, 30, 1323, 404, 30, 1244, 273, 365, 18, 3168, 18, 4285, 1435, 309, 365, 18, 14313, 30, 365, 18, 20664, 18, 14313, 12, 1125, 13, 469, 30, 365, 18, 20664, 18, 6923, 12, 1125, 13, 1335, 16179, 30, 745, 1265, 3830, 12, 2890, 18, 5681, 13, 1335, 30, 309, 486, 365, 18, 12251, 30, 365, 18, 12251, 273, 5166, 18, 5247, 1435, 365, 18, 3168, 273, 2 ]
if self.array_length_ofs == -1: self.array_length_ofs = ofs_length else: assert self.array_length_ofs == ofs_length
def arraydescrof(self, A, translate_support_code): assert translate_support_code, "required with the framework GC" basesize, itemsize, ofs_length = symbolic.get_array_token(A, True) assert rffi.sizeof(A.OF) in [1, 2, WORD] if self.array_length_ofs == -1: self.array_length_ofs = ofs_length else: assert self.array_length_ofs == ofs_length # all the same if isinstance(A.OF, lltype.Ptr) and A.OF.TO._gckind == 'gc': ptr = True else: ptr = False type_id = self.layoutbuilder.get_type_id(A) descr = ConstDescr3(basesize, itemsize, ptr) descr.type_id = type_id return descr
8722c12efc744e8b56ff14119d58a1c9a8efbf1a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/8722c12efc744e8b56ff14119d58a1c9a8efbf1a/gc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 526, 5569, 303, 74, 12, 2890, 16, 432, 16, 4204, 67, 13261, 67, 710, 4672, 1815, 4204, 67, 13261, 67, 710, 16, 315, 4718, 598, 326, 8257, 15085, 6, 8337, 554, 16, 761, 1467, 16, 26927, 67, 2469, 273, 16754, 18, 588, 67, 1126, 67, 2316, 12, 37, 16, 1053, 13, 1815, 436, 1403, 77, 18, 1467, 792, 12, 37, 18, 3932, 13, 316, 306, 21, 16, 576, 16, 21464, 65, 377, 468, 777, 326, 1967, 309, 1549, 12, 37, 18, 3932, 16, 6579, 723, 18, 5263, 13, 471, 432, 18, 3932, 18, 4296, 6315, 75, 363, 728, 422, 296, 13241, 4278, 6571, 273, 1053, 469, 30, 6571, 273, 1083, 618, 67, 350, 273, 365, 18, 6741, 9574, 18, 588, 67, 723, 67, 350, 12, 37, 13, 18426, 273, 9333, 16198, 23, 12, 18602, 554, 16, 761, 1467, 16, 6571, 13, 18426, 18, 723, 67, 350, 273, 618, 67, 350, 327, 18426, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 526, 5569, 303, 74, 12, 2890, 16, 432, 16, 4204, 67, 13261, 67, 710, 4672, 1815, 4204, 67, 13261, 67, 710, 16, 315, 4718, 598, 326, 8257, 15085, 6, 8337, 554, 16, 761, 1467, 16, 26927, 67, 2469, 273, 16754, 18, 588, 67, 1126, 67, 2316, 12, 37, 16, 1053, 13, 1815, 436, 1403, 77, 18, 1467, 792, 12, 37, 18, 3932, 13, 316, 306, 21, 16, 576, 16, 21464, 65, 377, 468, 777, 326, 1967, 309, 1549, 12, 37, 18, 3932, 16, 6579, 723, 18, 5263, 13, 471, 432, 18, 3932, 18, 4296, 6315, 75, 363, 728, 422, 296, 13241, 4278, 6571, 273, 1053, 469, 30, 6571, 273, 1083, 618, 67, 350, 273, 365, 18, 6741, 9574, 2 ]
version = sys.version[:3] config_dir = os.path.join( sys.exec_prefix, "lib", "python" + version, "config")
def get_makefile_filename(): return os.path.join(sys.exec_prefix, "lib", "python" + sys.version[:3], "config", "Makefile")
def _init_posix(): import os import re import string import sys g = globals() version = sys.version[:3] config_dir = os.path.join( sys.exec_prefix, "lib", "python" + version, "config") # load the installed config.h: define_rx = re.compile("#define ([A-Z][A-Z0-9_]+) (.*)\n") undef_rx = re.compile("/[*] #undef ([A-Z][A-Z0-9_]+) [*]/\n") fp = open(os.path.join(config_dir, "config.h")) while 1: line = fp.readline() if not line: break m = define_rx.match(line) if m: n, v = m.group(1, 2) try: v = string.atoi(v) except ValueError: pass g[n] = v else: m = undef_rx.match(line) if m: g[m.group(1)] = 0 # load the installed Makefile.pre.in: variable_rx = re.compile("([a-zA-Z][a-zA-Z0-9_]+)\s*=\s*(.*)\n") done = {} notdone = {} fp = open(os.path.join(config_dir, "Makefile")) while 1: line = fp.readline() if not line: break m = variable_rx.match(line) if m: n, v = m.group(1, 2) v = string.strip(v) if "$" in v: notdone[n] = v else: try: v = string.atoi(v) except ValueError: pass done[n] = v # do variable interpolation here findvar1_rx = re.compile(r"\$\(([A-Za-z][A-Za-z0-9_]*)\)") findvar2_rx = re.compile(r"\${([A-Za-z][A-Za-z0-9_]*)}") while notdone: for name in notdone.keys(): value = notdone[name] m = findvar1_rx.search(value) if not m: m = findvar2_rx.search(value) if m: n = m.group(1) if done.has_key(n): after = value[m.end():] value = value[:m.start()] + done[n] + after if "$" in after: notdone[name] = value else: try: value = string.atoi(value) except ValueError: pass done[name] = string.strip(value) del notdone[name] elif notdone.has_key(n): # get it on a subsequent round pass else: done[n] = "" after = value[m.end():] value = value[:m.start()] + after if "$" in after: notdone[name] = value else: try: value = string.atoi(value) except ValueError: pass done[name] = string.strip(value) del notdone[name] else: # bogus variable reference; just drop it since we can't deal del notdone[name] # save the results in the global dictionary g.update(done)
9f5ee39e7a9278d824ad2d987313a26f8a9d5f73 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9f5ee39e7a9278d824ad2d987313a26f8a9d5f73/sysconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 24463, 13332, 1930, 1140, 1930, 283, 1930, 533, 1930, 2589, 225, 314, 273, 10941, 1435, 225, 1652, 336, 67, 6540, 768, 67, 3459, 13332, 327, 1140, 18, 803, 18, 5701, 12, 9499, 18, 4177, 67, 3239, 16, 315, 2941, 3113, 315, 8103, 6, 397, 2589, 18, 1589, 10531, 23, 6487, 315, 1425, 3113, 315, 6464, 768, 7923, 225, 468, 1262, 326, 5876, 642, 18, 76, 30, 4426, 67, 20122, 273, 283, 18, 11100, 2932, 7, 11255, 23265, 37, 17, 62, 6362, 37, 17, 62, 20, 17, 29, 67, 7941, 29049, 5153, 82, 7923, 640, 536, 67, 20122, 273, 283, 18, 11100, 2932, 19, 63, 14, 65, 468, 318, 536, 23265, 37, 17, 62, 6362, 37, 17, 62, 20, 17, 29, 67, 7941, 306, 14, 18537, 64, 82, 7923, 4253, 273, 1696, 12, 538, 18, 803, 18, 5701, 12, 1425, 67, 1214, 16, 315, 1425, 18, 76, 6, 3719, 225, 1323, 404, 30, 980, 273, 4253, 18, 896, 1369, 1435, 309, 486, 980, 30, 898, 312, 273, 4426, 67, 20122, 18, 1916, 12, 1369, 13, 309, 312, 30, 290, 16, 331, 273, 312, 18, 1655, 12, 21, 16, 576, 13, 775, 30, 331, 273, 533, 18, 270, 11359, 12, 90, 13, 1335, 2068, 30, 1342, 314, 63, 82, 65, 273, 331, 469, 30, 312, 273, 640, 536, 67, 20122, 18, 1916, 12, 1369, 13, 309, 312, 30, 314, 63, 81, 18, 1655, 12, 21, 25887, 273, 374, 225, 468, 1262, 326, 5876, 4344, 768, 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, 2738, 67, 24463, 13332, 1930, 1140, 1930, 283, 1930, 533, 1930, 2589, 225, 314, 273, 10941, 1435, 225, 1652, 336, 67, 6540, 768, 67, 3459, 13332, 327, 1140, 18, 803, 18, 5701, 12, 9499, 18, 4177, 67, 3239, 16, 315, 2941, 3113, 315, 8103, 6, 397, 2589, 18, 1589, 10531, 23, 6487, 315, 1425, 3113, 315, 6464, 768, 7923, 225, 468, 1262, 326, 5876, 642, 18, 76, 30, 4426, 67, 20122, 273, 283, 18, 11100, 2932, 7, 11255, 23265, 37, 17, 62, 6362, 37, 17, 62, 20, 17, 29, 67, 7941, 29049, 5153, 82, 7923, 640, 536, 67, 20122, 273, 283, 18, 11100, 2932, 19, 63, 14, 65, 468, 318, 536, 23265, 37, 17, 62, 6362, 37, 2 ]
tmpFile = XiboFile(self.tmpPath,self.tmpHash)
tmpFile = XiboFile(self.tmpFileName,self.tmpHash)
def downloadMedia(self): # Actually download the Media file finished = False tries = 0
66a075cab3d68c237f51e86004d5840adb9c1f9c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5464/66a075cab3d68c237f51e86004d5840adb9c1f9c/XiboClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 5419, 12, 2890, 4672, 468, 4603, 3452, 4224, 326, 6128, 585, 6708, 273, 1083, 9327, 273, 374, 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,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12, 2890, 4672, 468, 4603, 3452, 4224, 326, 6128, 585, 6708, 273, 1083, 9327, 273, 374, 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 self._spawn('./js_interactive.py', argv)
return self._spawn(str(py.magic.autopath().dirpath().dirpath().join('js_interactive.py')), argv)
def spawn(self, argv): return self._spawn('./js_interactive.py', argv)
4324e4abeedb4eb2ecc0b2426b2d29c71e2248cb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/4324e4abeedb4eb2ecc0b2426b2d29c71e2248cb/test_interactive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12560, 12, 2890, 16, 5261, 4672, 327, 365, 6315, 1752, 9533, 12, 701, 12, 2074, 18, 11179, 18, 5854, 556, 421, 7675, 1214, 803, 7675, 1214, 803, 7675, 5701, 2668, 2924, 67, 24761, 18, 2074, 6134, 3631, 5261, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12560, 12, 2890, 16, 5261, 4672, 327, 365, 6315, 1752, 9533, 12, 701, 12, 2074, 18, 11179, 18, 5854, 556, 421, 7675, 1214, 803, 7675, 1214, 803, 7675, 5701, 2668, 2924, 67, 24761, 18, 2074, 6134, 3631, 5261, 13, 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 ]
return -ENOSYS
raise NFSError(status)
def main(self): if hasattr(self,"server"): self.host, self.path = self.server.split(':',1); else: raise fuse.FuseError, "No server specified"
a6954f248eb680271ef81b78d6aeb0303c5f085b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12550/a6954f248eb680271ef81b78d6aeb0303c5f085b/nfsfuse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2890, 4672, 309, 3859, 12, 2890, 10837, 3567, 6, 4672, 365, 18, 2564, 16, 365, 18, 803, 273, 365, 18, 3567, 18, 4939, 2668, 30, 2187, 21, 1769, 469, 30, 1002, 19552, 18, 42, 1202, 668, 16, 315, 2279, 1438, 1269, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2890, 4672, 309, 3859, 12, 2890, 10837, 3567, 6, 4672, 365, 18, 2564, 16, 365, 18, 803, 273, 365, 18, 3567, 18, 4939, 2668, 30, 2187, 21, 1769, 469, 30, 1002, 19552, 18, 42, 1202, 668, 16, 315, 2279, 1438, 1269, 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 ]
self.xmlstream.streamError(None)
self.xmlstream.dispatch(iq, self.AUTH_FAILED_EVENT)
def _authResultEvent(self, iq): if iq["type"] == "result": self.xmlstream.dispatch(self.xmlstream, xmlstream.STREAM_AUTHD_EVENT) else: self.xmlstream.streamError(None)
a5cc51f58c35d2745538468bab42d7d27c6b31dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/a5cc51f58c35d2745538468bab42d7d27c6b31dd/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1944, 1253, 1133, 12, 2890, 16, 24288, 4672, 309, 24288, 9614, 723, 11929, 422, 315, 2088, 6877, 365, 18, 2902, 3256, 18, 10739, 12, 2890, 18, 2902, 3256, 16, 2025, 3256, 18, 13693, 67, 7131, 40, 67, 10454, 13, 469, 30, 365, 18, 2902, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1944, 1253, 1133, 12, 2890, 16, 24288, 4672, 309, 24288, 9614, 723, 11929, 422, 315, 2088, 6877, 365, 18, 2902, 3256, 18, 10739, 12, 2890, 18, 2902, 3256, 16, 2025, 3256, 18, 13693, 67, 7131, 40, 67, 10454, 13, 469, 30, 365, 18, 2902, 3256, 18, 3256, 668, 12, 7036, 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 ]
You can call connector.stopConnecting() to stop the connection attempt.
def startedConnecting(self, connector): """Called when a connection has been started.
c503658558d29642b85df33783801929be286e40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/c503658558d29642b85df33783801929be286e40/protocol.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5746, 30049, 12, 2890, 16, 8703, 4672, 3536, 8185, 1347, 279, 1459, 711, 2118, 5746, 18, 2, 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, 0, 0, 0, 0, 0, 0, 0, 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, 5746, 30049, 12, 2890, 16, 8703, 4672, 3536, 8185, 1347, 279, 1459, 711, 2118, 5746, 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, -100 ]
return _mod
return _mod
def swig_import_helper(): from os.path import dirname import imp fp = None try: fp, pathname, description = imp.find_module('_gdal', [dirname(__file__)]) except ImportError: import _gdal return _gdal if fp is not None: try: _mod = imp.load_module('_gdal', fp, pathname, description) finally: fp.close() return _mod
fb5a095e8e24eb873fdd020ee40e8f924062ee23 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10290/fb5a095e8e24eb873fdd020ee40e8f924062ee23/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1352, 360, 67, 5666, 67, 4759, 13332, 628, 1140, 18, 803, 1930, 4283, 1930, 1646, 4253, 273, 599, 775, 30, 4253, 16, 9806, 16, 2477, 273, 1646, 18, 4720, 67, 2978, 2668, 67, 19016, 287, 2187, 306, 12287, 12, 972, 768, 972, 13, 5717, 1335, 11308, 30, 1930, 389, 19016, 287, 327, 389, 19016, 287, 309, 4253, 353, 486, 599, 30, 775, 30, 389, 1711, 273, 1646, 18, 945, 67, 2978, 2668, 67, 19016, 287, 2187, 4253, 16, 9806, 16, 2477, 13, 3095, 30, 4253, 18, 4412, 1435, 327, 389, 1711, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1352, 360, 67, 5666, 67, 4759, 13332, 628, 1140, 18, 803, 1930, 4283, 1930, 1646, 4253, 273, 599, 775, 30, 4253, 16, 9806, 16, 2477, 273, 1646, 18, 4720, 67, 2978, 2668, 67, 19016, 287, 2187, 306, 12287, 12, 972, 768, 972, 13, 5717, 1335, 11308, 30, 1930, 389, 19016, 287, 327, 389, 19016, 287, 309, 4253, 353, 486, 599, 30, 775, 30, 389, 1711, 273, 1646, 18, 945, 67, 2978, 2668, 67, 19016, 287, 2187, 4253, 16, 9806, 16, 2477, 13, 3095, 30, 4253, 18, 4412, 1435, 327, 389, 1711, 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 ]
for o in [opt for opt in self.options.keys() if opt not in ('version','language','translate_out','translate_in','init','update')]: p.set('options', o, self.options[o])
for opt in self.options.keys(): if opt in ('version', 'language', 'translate_out', 'translate_in', 'init', 'update'): continue if opt in ('log_level', 'assert_exit_level'): p.set('options', opt, loglevelnames.get(self.options[opt], self.options[opt])) else: p.set('options', opt, self.options[opt])
def save(self): p = ConfigParser.ConfigParser() p.add_section('options') for o in [opt for opt in self.options.keys() if opt not in ('version','language','translate_out','translate_in','init','update')]: p.set('options', o, self.options[o])
b7f8f65711a024887d7bc7c6a83bfc3642e345bf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/b7f8f65711a024887d7bc7c6a83bfc3642e345bf/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 4672, 293, 273, 25076, 18, 809, 2678, 1435, 293, 18, 1289, 67, 3464, 2668, 2116, 6134, 364, 320, 316, 306, 3838, 364, 2153, 316, 365, 18, 2116, 18, 2452, 1435, 309, 2153, 486, 316, 7707, 1589, 17023, 4923, 17023, 13929, 67, 659, 17023, 13929, 67, 267, 17023, 2738, 17023, 2725, 6134, 14542, 293, 18, 542, 2668, 2116, 2187, 320, 16, 365, 18, 2116, 63, 83, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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116, 6134, 364, 320, 316, 306, 3838, 364, 2153, 316, 365, 18, 2116, 18, 2452, 1435, 309, 2153, 486, 316, 7707, 1589, 17023, 4923, 17023, 13929, 67, 659, 17023, 13929, 67, 267, 17023, 2738, 17023, 2725, 6134, 14542, 293, 18, 542, 2668, 2116, 2187, 320, 16, 365, 18, 2116, 63, 83, 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 ]
>>> if self._top_page_url not in ("trees.html", "identifier-index.html", "help.html"):
>>> if self._top_page_url not in (self._trees_url, "identifier-index.html", "help.html"):
def callgraph_link(self, callgraph): if callgraph is None: return '' return ('<br /><span class="codelink"><a href="javascript: void(0);" ' 'onclick="toggleCallGraph(\'%s-div\');return false;">' 'call&nbsp;graph</a></span>&nbsp;' % callgraph.uid)
ead96d86090e18fdeec64a06319b925d20efd2b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/ead96d86090e18fdeec64a06319b925d20efd2b2/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 4660, 67, 1232, 12, 2890, 16, 745, 4660, 4672, 309, 745, 4660, 353, 599, 30, 327, 875, 327, 7707, 32, 2848, 342, 4438, 3969, 667, 1546, 71, 1009, 754, 14050, 69, 3897, 1546, 11242, 30, 918, 12, 20, 12171, 296, 296, 265, 7475, 1546, 14401, 1477, 4137, 21923, 9, 87, 17, 2892, 3730, 1769, 2463, 629, 4868, 1870, 296, 1991, 10, 10600, 31, 4660, 1757, 69, 4695, 3969, 22393, 10600, 4359, 738, 745, 4660, 18, 1911, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 4660, 67, 1232, 12, 2890, 16, 745, 4660, 4672, 309, 745, 4660, 353, 599, 30, 327, 875, 327, 7707, 32, 2848, 342, 4438, 3969, 667, 1546, 71, 1009, 754, 14050, 69, 3897, 1546, 11242, 30, 918, 12, 20, 12171, 296, 296, 265, 7475, 1546, 14401, 1477, 4137, 21923, 9, 87, 17, 2892, 3730, 1769, 2463, 629, 4868, 1870, 296, 1991, 10, 10600, 31, 4660, 1757, 69, 4695, 3969, 22393, 10600, 4359, 738, 745, 4660, 18, 1911, 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 ]
if CMP_BUG_FIXED: t2 = t2.replace(tzinfo=FixedOffset(0, "")) self.assertRaises(TypeError, lambda: t1 == t2)
t2 = t2.replace(tzinfo=FixedOffset(0, "")) self.assertRaises(TypeError, lambda: t1 == t2)
def test_mixed_compare(self): t1 = datetime(1, 2, 3, 4, 5, 6, 7) t2 = datetime(1, 2, 3, 4, 5, 6, 7) self.assertEqual(t1, t2) t2 = t2.replace(tzinfo=None) self.assertEqual(t1, t2) t2 = t2.replace(tzinfo=FixedOffset(None, "")) self.assertEqual(t1, t2) if CMP_BUG_FIXED: t2 = t2.replace(tzinfo=FixedOffset(0, "")) self.assertRaises(TypeError, lambda: t1 == t2)
68124bb771697104add6c850139684729e2e6777 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/68124bb771697104add6c850139684729e2e6777/test_datetime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 19562, 67, 9877, 12, 2890, 4672, 268, 21, 273, 3314, 12, 21, 16, 576, 16, 890, 16, 1059, 16, 1381, 16, 1666, 16, 2371, 13, 268, 22, 273, 3314, 12, 21, 16, 576, 16, 890, 16, 1059, 16, 1381, 16, 1666, 16, 2371, 13, 365, 18, 11231, 5812, 12, 88, 21, 16, 268, 22, 13, 268, 22, 273, 268, 22, 18, 2079, 12, 12994, 1376, 33, 7036, 13, 365, 18, 11231, 5812, 12, 88, 21, 16, 268, 22, 13, 268, 22, 273, 268, 22, 18, 2079, 12, 12994, 1376, 33, 7505, 2335, 12, 7036, 16, 1408, 3719, 365, 18, 11231, 5812, 12, 88, 21, 16, 268, 22, 13, 309, 385, 4566, 67, 4827, 67, 30406, 30, 268, 22, 273, 268, 22, 18, 2079, 12, 12994, 1376, 33, 7505, 2335, 12, 20, 16, 1408, 3719, 365, 18, 11231, 12649, 6141, 12, 19030, 16, 3195, 30, 268, 21, 422, 268, 22, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 19562, 67, 9877, 12, 2890, 4672, 268, 21, 273, 3314, 12, 21, 16, 576, 16, 890, 16, 1059, 16, 1381, 16, 1666, 16, 2371, 13, 268, 22, 273, 3314, 12, 21, 16, 576, 16, 890, 16, 1059, 16, 1381, 16, 1666, 16, 2371, 13, 365, 18, 11231, 5812, 12, 88, 21, 16, 268, 22, 13, 268, 22, 273, 268, 22, 18, 2079, 12, 12994, 1376, 33, 7036, 13, 365, 18, 11231, 5812, 12, 88, 21, 16, 268, 22, 13, 268, 22, 273, 268, 22, 18, 2079, 12, 12994, 1376, 33, 7505, 2335, 12, 7036, 16, 1408, 3719, 365, 18, 11231, 5812, 12, 88, 21, 16, 268, 22, 13, 309, 385, 4566, 67, 4827, 67, 30406, 30, 2 ]
__implements__ = (z2IBaseObject, ) + Referenceable.__implements__ implements(IBaseObject, IReferenceable)
__implements__ = (IBaseObject, ) + Referenceable.__implements__
def __call__(self, name, value): context = aq_parent(self) schema = context.Schema() if not schema.has_key(name): return 1 field = schema[name] if not isinstance(field.getStorage(), AttributeStorage): return 1 perm = field.read_permission if checkPerm(perm, context): return 1 return 0
460696da815e0d1149ab34005370b03bdbb656a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/460696da815e0d1149ab34005370b03bdbb656a6/BaseObject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 508, 16, 460, 4672, 819, 273, 279, 85, 67, 2938, 12, 2890, 13, 1963, 273, 819, 18, 3078, 1435, 309, 486, 1963, 18, 5332, 67, 856, 12, 529, 4672, 327, 404, 652, 273, 1963, 63, 529, 65, 309, 486, 1549, 12, 1518, 18, 588, 3245, 9334, 3601, 3245, 4672, 327, 404, 4641, 273, 652, 18, 896, 67, 9827, 309, 866, 9123, 12, 12160, 16, 819, 4672, 327, 404, 327, 374, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 508, 16, 460, 4672, 819, 273, 279, 85, 67, 2938, 12, 2890, 13, 1963, 273, 819, 18, 3078, 1435, 309, 486, 1963, 18, 5332, 67, 856, 12, 529, 4672, 327, 404, 652, 273, 1963, 63, 529, 65, 309, 486, 1549, 12, 1518, 18, 588, 3245, 9334, 3601, 3245, 4672, 327, 404, 4641, 273, 652, 18, 896, 67, 9827, 309, 866, 9123, 12, 12160, 16, 819, 4672, 327, 404, 327, 374, 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 ]
" from", self.todo[url_pair])
" from", self.todo[url_pair])
def dopage(self, url_pair):
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 556, 410, 12, 2890, 16, 880, 67, 6017, 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 ]
[ 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, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 556, 410, 12, 2890, 16, 880, 67, 6017, 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 ]
selenium = self.layer['selenium']
sel = self.layer['selenium']
def test_basic_search(self):
90cb345a031409147dbcbef6b8d6e6043f6cf197 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12249/90cb345a031409147dbcbef6b8d6e6043f6cf197/test_selenium.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 13240, 67, 3072, 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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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 ]
descr='test short users/groups commands'
descr='''test short users/groups commands'''
def test_short_syntax(): uname = 'user_test' gname = 'group_test' pname = 'profil_test' ScenarioTest([ ADD + [ 'user', uname, '-v' ], GET + [ 'user', uname ], ADD + [ 'group', gname, '-v' ], GET + [ 'group', gname ], ADD + [ 'user', uname, gname, '-v' ], GET + [ 'user', uname, '-l' ], ADD + [ 'group', '%s2' % gname, '-v' ], GET + [ 'group', '%s2' % gname ], ADD + [ 'group', '%s3,%s4' % (gname, gname), '-v' ], # should fail (already present) GET + [ 'group', '%s3,%s4' % (gname, gname) ], # should add user2 & user3 ADD + [ 'user', '%s2,%s3' % (uname, uname), '-v' ], GET + [ 'user', '%s2,%s3' % (uname, uname) ], # add 2 users in 3 groups each ADD + [ 'user', '%s2,%s3' % (uname, uname), '%s2,%s3,%s4' % (gname,gname,gname), '-v' ], GET + [ 'user', '%s2,%s3' % (uname, uname), '-l' ], # should add ONLY ONE user in a group and bypass empty one ADD + [ 'user', ',%s' % uname, ',%s2' % gname, '-v' ], # idem ADD + [ 'user', '%s,' % uname, '%s3,' % gname, '-v' ], GET + [ 'user', uname, '-l' ], # should delete only one user and bypass empty one DEL + [ 'user', ',%s' % uname, '-v'], # should fail (already deleted) DEL + [ 'user', '%s,' % uname, '-v'], # IDEM DEL + [ 'user', uname, '-v'], # delete 2 users at same time DEL + [ 'user', '%s2,%s3' % (uname, uname), '-v'], # delete groups, one, then two, then one (bypassing empty) DEL + [ 'group', gname, '-v'], DEL + [ 'group', '%s2,%s3' % (gname, gname), '-v'], DEL + [ 'group', ',%s4' % gname, '-v'], DEL + [ 'group', '%s4,' % gname, '-v'], DEL + [ 'group', '%s4' % gname, '-v'], ], descr='test short users/groups commands' ).Run() ScenarioTest([ ADD + [ 'group', gname, '-v' ], #should fail (the group is not a system group) ADD + [ 'privilege', gname, '-v' ], GET + [ 'privileges' ], ADD + [ 'group', '%ssys' % gname, '--system', '-v' ], ADD + [ 'privilege', '%ssys' % gname, '-v' ], GET + [ 'privileges' ], DEL + [ 'privilege', '%ssys' % gname ], GET + [ 'privileges' ], DEL + [ 'group', gname ], DEL + [ 'group', '%ssys' % gname ], ], descr='test short privileges commands' ).Run() ScenarioTest([ ADD + [ 'group', gname, '--system', '-v' ], ADD + [ 'group', '%s2' % gname, '-v' ], ADD + [ 'group', '%s3' % gname, '-v' ], # should fail (not a system group) ADD + [ 'profile', pname, '--group=%s2' % gname, '--force-existing' ], GET + [ 'profiles' ], # should be OK ADD + [ 'profile', pname, '--group=%s' % gname, '--force-existing' ], GET + [ 'profiles' ], MOD + [ 'profile', pname, '--add-groups=%s2,%s3' % (gname,gname) ], GET + [ 'profiles' ], MOD + [ 'profile', pname, '--del-groups=%s2,%s3' % (gname,gname) ], GET + [ 'profiles' ], DEL + [ 'profile', pname ], DEL + [ 'group', '%s2' % gname, '-v' ], DEL + [ 'group', '%s3' % gname, '-v' ], GET + [ 'profiles' ], ], descr='test short profiles commands' ).Run() ScenarioTest([ ADD + [ 'group', gname, '-v' ], ADD + [ 'group', '%s2' % gname, '-v' ], CHK + [ 'group', gname, '--auto-no', '-vv' ], CHK + [ 'group', gname, '--auto-yes', '-vv' ], CHK + [ 'group', gname, '-vb' ], CHK + [ 'group', '%s,%s2' % (gname,gname), '--auto-no', '-vv' ], CHK + [ 'group', '%s,%s2' % (gname,gname), '--auto-yes', '-vv' ], CHK + [ 'group', '%s,%s2' % (gname,gname), '-vb' ], DEL + [ 'group', '%s,%s2' % (gname,gname), '-v' ], CHK + [ 'config','--auto-no', '-vvae' ], CHK + [ 'config','--auto-yes', '-vvae' ], CHK + [ 'config','--batch', '-vvae' ], ADD + [ 'user', uname, '-v' ], CHK + [ 'user', uname, '--auto-no', '-v' ], CHK + [ 'user', uname, '--auto-yes', '-v' ], CHK + [ 'user', uname, '-vb' ], DEL + [ 'user', uname, '-v' ], ], descr='test short chk commands' ).Run() """ # extended check on user not implemented yet CHK + [ 'user', '%s,%s2' % (uname,uname), '--auto-no', '-vve' ], CHK + [ 'user', '%s,%s2' % (uname,uname), '--auto-yes', '-vve' ], CHK + [ 'user', '%s,%s2' % (uname,uname), '--batch', '-vve' ], DEL + [ 'user', '%s,%s2' % (uname,uname), '-v' ], # check on profile not implemented yet ADD + [ 'profile', '%s,%s2' % (pname,pname), '-v' ], CHK + [ 'profile', pname, '--auto-no', '-vve' ], CHK + [ 'profile', pname, '--auto-yes', '-vve' ], CHK + [ 'profile', pname, '--batch', '-vve' ], CHK + [ 'profile', '%s,%s2' % (pname,pname), '--auto-no', '-vve' ], CHK + [ 'profile', '%s,%s2' % (pname,pname), '--auto-yes', '-vve' ], CHK + [ 'profile', '%s,%s2' % (pname,pname), '--batch', '-vve' ], DEL + [ 'profile', '%s,%s2' % (pname,pname), '-v' ], """
38a496a61795ec7fb8b2f6589579ac75d0b90d9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/38a496a61795ec7fb8b2f6589579ac75d0b90d9d/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6620, 67, 14308, 13332, 31444, 273, 296, 1355, 67, 3813, 11, 314, 529, 273, 296, 1655, 67, 3813, 11, 19952, 273, 296, 685, 7540, 67, 3813, 11, 225, 2850, 7754, 4709, 3816, 11689, 397, 306, 296, 1355, 2187, 31444, 16, 2400, 90, 11, 308, 16, 4978, 397, 306, 296, 1355, 2187, 31444, 308, 16, 11689, 397, 306, 296, 1655, 2187, 314, 529, 16, 2400, 90, 11, 308, 16, 4978, 397, 306, 296, 1655, 2187, 314, 529, 308, 16, 11689, 397, 306, 296, 1355, 2187, 31444, 16, 314, 529, 16, 2400, 90, 11, 308, 16, 4978, 397, 306, 296, 1355, 2187, 31444, 16, 2400, 80, 11, 308, 16, 11689, 397, 306, 296, 1655, 2187, 1995, 87, 22, 11, 738, 314, 529, 16, 2400, 90, 11, 308, 16, 4978, 397, 306, 296, 1655, 2187, 1995, 87, 22, 11, 738, 314, 529, 308, 16, 11689, 397, 306, 296, 1655, 2187, 1995, 87, 23, 15529, 87, 24, 11, 738, 261, 75, 529, 16, 314, 529, 3631, 2400, 90, 11, 308, 16, 468, 1410, 2321, 261, 17583, 3430, 13, 4978, 397, 306, 296, 1655, 2187, 1995, 87, 23, 15529, 87, 24, 11, 738, 261, 75, 529, 16, 314, 529, 13, 308, 16, 468, 1410, 527, 729, 22, 473, 729, 23, 11689, 397, 306, 296, 1355, 2187, 1995, 87, 22, 15529, 87, 23, 11, 738, 261, 318, 339, 16, 31444, 3631, 2400, 90, 11, 308, 16, 4978, 397, 306, 296, 1355, 2187, 1995, 87, 22, 15529, 87, 23, 11, 738, 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, 67, 6620, 67, 14308, 13332, 31444, 273, 296, 1355, 67, 3813, 11, 314, 529, 273, 296, 1655, 67, 3813, 11, 19952, 273, 296, 685, 7540, 67, 3813, 11, 225, 2850, 7754, 4709, 3816, 11689, 397, 306, 296, 1355, 2187, 31444, 16, 2400, 90, 11, 308, 16, 4978, 397, 306, 296, 1355, 2187, 31444, 308, 16, 11689, 397, 306, 296, 1655, 2187, 314, 529, 16, 2400, 90, 11, 308, 16, 4978, 397, 306, 296, 1655, 2187, 314, 529, 308, 16, 11689, 397, 306, 296, 1355, 2187, 31444, 16, 314, 529, 16, 2400, 90, 11, 308, 16, 4978, 397, 306, 296, 1355, 2187, 31444, 16, 2400, 80, 11, 308, 16, 11689, 397, 306, 296, 1655, 2187, 1995, 87, 22, 2 ]
except KeyError, e:
except KeyError:
def setFont(self, node): fname = node.get('name') if fname not in pdfmetrics.getRegisteredFontNames()\ or fname not in pdfmetrics.standardFonts: # let reportlab attempt to find it try: pdfmetrics.getFont(fname) except Exception: logging.getLogger('report.fonts').\ debug('Could not locate font %s, substituting default: %s', fname, self.canvas._fontname) fontname = self.canvas._fontname try: return self.canvas.setFont(fname, utils.unit_get(node.get('size'))) except KeyError, e: raise KeyError('Font "%s" cannot be used in the PDF engine' % fname)
83041ccb04cdc8b7ddbd25d315a7ed32e456e8c6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/83041ccb04cdc8b7ddbd25d315a7ed32e456e8c6/trml2pdf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20454, 12, 2890, 16, 756, 4672, 5299, 273, 756, 18, 588, 2668, 529, 6134, 309, 5299, 486, 316, 8169, 9597, 18, 588, 10868, 5711, 1557, 1435, 64, 578, 5299, 486, 316, 8169, 9597, 18, 10005, 5711, 87, 30, 468, 2231, 2605, 7411, 4395, 358, 1104, 518, 775, 30, 8169, 9597, 18, 588, 5711, 12, 12749, 13, 1335, 1185, 30, 2907, 18, 588, 3328, 2668, 6006, 18, 22052, 16063, 64, 1198, 2668, 4445, 486, 10627, 3512, 738, 87, 16, 7461, 8490, 805, 30, 738, 87, 2187, 5299, 16, 365, 18, 15424, 6315, 5776, 529, 13, 3512, 529, 273, 365, 18, 15424, 6315, 5776, 529, 775, 30, 327, 365, 18, 15424, 18, 542, 5711, 12, 12749, 16, 2990, 18, 4873, 67, 588, 12, 2159, 18, 588, 2668, 1467, 11, 20349, 1335, 4999, 30, 1002, 4999, 2668, 5711, 2213, 87, 6, 2780, 506, 1399, 316, 326, 12667, 4073, 11, 738, 5299, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20454, 12, 2890, 16, 756, 4672, 5299, 273, 756, 18, 588, 2668, 529, 6134, 309, 5299, 486, 316, 8169, 9597, 18, 588, 10868, 5711, 1557, 1435, 64, 578, 5299, 486, 316, 8169, 9597, 18, 10005, 5711, 87, 30, 468, 2231, 2605, 7411, 4395, 358, 1104, 518, 775, 30, 8169, 9597, 18, 588, 5711, 12, 12749, 13, 1335, 1185, 30, 2907, 18, 588, 3328, 2668, 6006, 18, 22052, 16063, 64, 1198, 2668, 4445, 486, 10627, 3512, 738, 87, 16, 7461, 8490, 805, 30, 738, 87, 2187, 5299, 16, 365, 18, 15424, 6315, 5776, 529, 13, 3512, 529, 273, 365, 18, 15424, 6315, 5776, 529, 775, 30, 327, 365, 18, 15424, 18, 542, 5711, 12, 12749, 16, 2990, 18, 4873, 2 ]
via 2-descent they should alreday be 2-saturated.)
via :meth:``two_descent()`` they should already be 2-saturated.)
def saturate(self, max_prime=-1, odd_primes_only=False): r""" Saturate this subgroup of the Mordell-Weil group. INPUT: - ``max_prime`` (int, default -1) -- saturation is performed for all primes up to `max_prime`. If `-1` (default) then an upper bound is computed for the primes at which the subgroup may not be saturated, and this is used; however, if the computed bound is greater than a value set by the eclib library (currently 97) then no saturation will be attempted at primes above this. - ``odd_primes_only`` (bool, default False) -- only do saturation at odd primes. (If the points have been found via 2-descent they should alreday be 2-saturated.)
c2ebf8bfa15bcdb4318f58bfcf2982e3a69cce87 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/c2ebf8bfa15bcdb4318f58bfcf2982e3a69cce87/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5942, 295, 340, 12, 2890, 16, 943, 67, 16382, 29711, 21, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 436, 8395, 25793, 295, 340, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, 3218, 330, 1041, 18, 225, 12943, 30, 225, 300, 12176, 1896, 67, 16382, 10335, 261, 474, 16, 805, 300, 21, 13, 1493, 22824, 353, 9591, 364, 777, 846, 4485, 731, 358, 1375, 1896, 67, 16382, 8338, 971, 1375, 17, 21, 68, 261, 1886, 13, 1508, 392, 3854, 2489, 353, 8470, 364, 326, 846, 4485, 622, 1492, 326, 720, 1655, 2026, 486, 506, 5942, 28480, 16, 471, 333, 353, 1399, 31, 14025, 16, 309, 326, 8470, 2489, 353, 6802, 2353, 279, 460, 444, 635, 326, 425, 830, 495, 5313, 261, 2972, 715, 16340, 13, 1508, 1158, 22824, 903, 506, 18121, 622, 846, 4485, 5721, 333, 18, 225, 300, 12176, 31755, 67, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5942, 295, 340, 12, 2890, 16, 943, 67, 16382, 29711, 21, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 436, 8395, 25793, 295, 340, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, 3218, 330, 1041, 18, 225, 12943, 30, 225, 300, 12176, 1896, 67, 16382, 10335, 261, 474, 16, 805, 300, 21, 13, 1493, 22824, 353, 9591, 364, 777, 846, 4485, 731, 358, 1375, 1896, 67, 16382, 8338, 971, 1375, 17, 21, 68, 261, 1886, 13, 1508, 392, 3854, 2489, 353, 8470, 364, 326, 846, 4485, 622, 1492, 326, 720, 1655, 2026, 486, 506, 5942, 28480, 16, 471, 333, 353, 1399, 31, 14025, 16, 309, 326, 8470, 2489, 353, 6802, 2353, 279, 460, 444, 635, 2 ]
def _posHprBroadcast(self, task=None):
def _posHprBroadcast(self, task=DummyTask):
def _posHprBroadcast(self, task=None): # TODO: we explicitly stagger the initial task timing in # startPosHprBroadcast; we should at least make an effort to keep # this task accurately aligned with its period and starting time. if task is None: task = DummyTask() self.d_broadcastPosHpr() task.setDelay(self.__broadcastPeriod) return Task.again
cba293317174126383de8ebf64a11bb1fad02206 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7242/cba293317174126383de8ebf64a11bb1fad02206/DistributedSmoothNodeBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 917, 44, 683, 15926, 12, 2890, 16, 1562, 33, 20094, 2174, 4672, 468, 2660, 30, 732, 8122, 384, 7594, 326, 2172, 1562, 15538, 316, 468, 16013, 44, 683, 15926, 31, 732, 1410, 622, 4520, 1221, 392, 23445, 358, 3455, 468, 333, 1562, 19361, 5173, 13939, 598, 2097, 3879, 471, 5023, 813, 18, 309, 1562, 353, 599, 30, 1562, 273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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, 389, 917, 44, 683, 15926, 12, 2890, 16, 1562, 33, 20094, 2174, 4672, 468, 2660, 30, 732, 8122, 384, 7594, 326, 2172, 1562, 15538, 316, 468, 16013, 44, 683, 15926, 31, 732, 1410, 622, 4520, 1221, 392, 23445, 358, 3455, 468, 333, 1562, 19361, 5173, 13939, 598, 2097, 3879, 471, 5023, 813, 18, 309, 1562, 353, 599, 30, 1562, 273, 28622, 2174, 1435, 365, 18, 72, 67, 19805, 1616, 44, 683, 1435, 1562, 18, 542, 6763, 12, 2890, 16186, 19805, 5027, 13, 327, 3837, 18, 23095, 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 ]
2203319 sage: a(20) 2334414826276390013171 sage: a.list(8) [0, 1, 5, 31, 227, 1909, 18089, 190435]
1909 sage: a(22) 98125321641110663023 sage: a.list(9) [0, 1, 5, 31, 227, 1909, 18089, 190435, 2203319]
def list(self, n): self._eval(n) # force computation return self._b[:n]
17696bad4576e0d4a9f73f71f06b50e19587f0be /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/17696bad4576e0d4a9f73f71f06b50e19587f0be/sloane_functions.py
[ 1, 8585, 326, 22398, 316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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, 666, 12, 2890, 16, 290, 4672, 365, 6315, 8622, 12, 82, 13, 282, 468, 2944, 16039, 327, 365, 6315, 70, 10531, 82, 65, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (self._utility_registrations.get((provided, name))[:2] == (component, info)):
reg = self._utility_registrations.get((provided, name)) if reg is not None and reg[:2] == (component, info):
def registerUtility(self, component=None, provided=None, name=u'', info=u'', event=True, factory=None): if factory: if component: raise TypeError("Can't specify factory and component.") component = factory()
6371ce1d26b96367c83db2b96959bc73a82775d2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10012/6371ce1d26b96367c83db2b96959bc73a82775d2/registry.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 6497, 12, 2890, 16, 1794, 33, 7036, 16, 2112, 33, 7036, 16, 508, 33, 89, 11, 2187, 1123, 33, 89, 11, 2187, 871, 33, 5510, 16, 3272, 33, 7036, 4672, 309, 3272, 30, 309, 1794, 30, 1002, 3580, 2932, 2568, 1404, 4800, 3272, 471, 1794, 1199, 13, 1794, 273, 3272, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 6497, 12, 2890, 16, 1794, 33, 7036, 16, 2112, 33, 7036, 16, 508, 33, 89, 11, 2187, 1123, 33, 89, 11, 2187, 871, 33, 5510, 16, 3272, 33, 7036, 4672, 309, 3272, 30, 309, 1794, 30, 1002, 3580, 2932, 2568, 1404, 4800, 3272, 471, 1794, 1199, 13, 1794, 273, 3272, 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 ]
'''Override the parent version. Specific drawing code for the object. '''
""" Override the parent version. Specific drawing code for the object. """
def drawSelected(self, obj): '''Override the parent version. Specific drawing code for the object. ''' if isinstance(obj, atom) and (obj.element is Singlet): obj.draw_in_abs_coords(self, env.prefs[bondpointHighlightColor_prefs_key])
7828cbef13f84d50298938f6ae339289db2ec006 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/7828cbef13f84d50298938f6ae339289db2ec006/ThumbView.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 7416, 12, 2890, 16, 1081, 4672, 3536, 1439, 326, 982, 1177, 18, 23043, 16327, 981, 364, 326, 733, 18, 3536, 309, 1549, 12, 2603, 16, 3179, 13, 471, 261, 2603, 18, 2956, 353, 348, 310, 1810, 4672, 1081, 18, 9446, 67, 267, 67, 5113, 67, 9076, 12, 2890, 16, 1550, 18, 1484, 2556, 63, 26425, 1153, 16205, 2957, 67, 1484, 2556, 67, 856, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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, 4672, 1081, 18, 9446, 67, 267, 67, 5113, 67, 9076, 12, 2890, 16, 1550, 18, 1484, 2556, 63, 26425, 1153, 16205, 2957, 67, 1484, 2556, 67, 856, 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 ]
Abelian variety factor of dimension 1 of J0(67), Abelian variety factor of dimension 2 of J0(67), Abelian variety factor of dimension 2 of J0(67)
Simple abelian subvariety 67a(1,67) of dimension 1 of J0(67), Simple abelian subvariety 67b(1,67) of dimension 2 of J0(67), Simple abelian subvariety 67c(1,67) of dimension 2 of J0(67)
def intersection(self, other): """ Returns the intersection of self and other inside a common ambient Jacobian product.
62147d82541f9aed0900f78cd10df5f262f228f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62147d82541f9aed0900f78cd10df5f262f228f5/abvar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7619, 12, 2890, 16, 1308, 4672, 3536, 2860, 326, 7619, 434, 365, 471, 1308, 4832, 279, 2975, 13232, 1979, 804, 1077, 26968, 3017, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7619, 12, 2890, 16, 1308, 4672, 3536, 2860, 326, 7619, 434, 365, 471, 1308, 4832, 279, 2975, 13232, 1979, 804, 1077, 26968, 3017, 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 ]
if 0 : buildPackage( 'libmad',
if 1 : buildPackage( 'libmad',
def buildPackage(name, uri, checkVersion, downloadUri, tarballName, buildCommand, srcdir=None, deps="", pinnedVersion = None, ) : print "Module:", name subst = dict( sandbox = sandbox, prefix = prefix, target = target, sfmirror = sfmirror, apachemirror = apachemirror, name = name, pinned = pinnedVersion if pinnedVersion else "None", ) availableVersion = output(checkVersion).strip() availableVersion or die("No online version found for the package\n Command used:\n%s" % checkVersion) print "Found version: '%s'" % availableVersion if (pinnedVersion and pinnedVersion != availableVersion) : warning("Package: Pinning to version %s, although version %s is available" % (pinnedVersion, availableVersion)) version = pinnedVersion if pinnedVersion else availableVersion subst.update ( version = version, majorversion = ".".join(version.split(".")[:1]), minorversion = ".".join(version.split(".")[:2]), ) subst.update( tarball = tarballName % subst, srcdir = ("%(sandbox)s/src/" + (srcdir or "%(name)s-%(version)s/")) % subst, ) print "srcdir:", subst['srcdir'] download(downloadUri % subst) extractSource(subst['tarball']) patches = glob.glob(scriptRelative("mingw-"+name+"*")) patches.sort() print patches for patch in patches : applyPatch(subst['srcdir'], patch, level=1) run(buildCommand % subst)
9516624bdaf457fb48cb287da6115af5d509bbca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1456/9516624bdaf457fb48cb287da6115af5d509bbca/setup_mingw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 2261, 12, 529, 16, 2003, 16, 866, 1444, 16, 4224, 3006, 16, 29441, 461, 16, 1361, 2189, 16, 1705, 1214, 33, 7036, 16, 8740, 1546, 3113, 26193, 1444, 273, 599, 16, 262, 294, 1172, 315, 3120, 2773, 16, 508, 27750, 273, 2065, 12, 15202, 273, 15202, 16, 1633, 273, 1633, 16, 1018, 273, 1018, 16, 9033, 27197, 273, 9033, 27197, 16, 513, 497, 351, 8299, 273, 513, 497, 351, 8299, 16, 508, 273, 508, 16, 26193, 273, 26193, 1444, 309, 26193, 1444, 469, 315, 7036, 3113, 262, 2319, 1444, 273, 876, 12, 1893, 1444, 2934, 6406, 1435, 2319, 1444, 578, 10387, 2932, 2279, 12365, 1177, 1392, 364, 326, 2181, 64, 82, 3498, 1399, 5581, 82, 9, 87, 6, 738, 866, 1444, 13, 1172, 315, 2043, 1177, 30, 1995, 87, 4970, 738, 2319, 1444, 309, 261, 13097, 11748, 1444, 471, 26193, 1444, 480, 2319, 1444, 13, 294, 3436, 2932, 2261, 30, 14999, 2093, 358, 1177, 738, 87, 16, 26347, 1177, 738, 87, 353, 2319, 6, 738, 261, 13097, 11748, 1444, 16, 2319, 1444, 3719, 1177, 273, 26193, 1444, 309, 26193, 1444, 469, 2319, 1444, 27750, 18, 2725, 261, 1177, 273, 1177, 16, 7888, 1589, 273, 4585, 18, 5701, 12, 1589, 18, 4939, 2932, 1199, 13, 10531, 21, 65, 3631, 8439, 1589, 273, 4585, 18, 5701, 12, 1589, 18, 4939, 2932, 1199, 13, 10531, 22, 65, 3631, 262, 225, 27750, 18, 2725, 12, 29441, 273, 29441, 461, 738, 27750, 16, 1705, 1214, 273, 7566, 17105, 27004, 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, 1361, 2261, 12, 529, 16, 2003, 16, 866, 1444, 16, 4224, 3006, 16, 29441, 461, 16, 1361, 2189, 16, 1705, 1214, 33, 7036, 16, 8740, 1546, 3113, 26193, 1444, 273, 599, 16, 262, 294, 1172, 315, 3120, 2773, 16, 508, 27750, 273, 2065, 12, 15202, 273, 15202, 16, 1633, 273, 1633, 16, 1018, 273, 1018, 16, 9033, 27197, 273, 9033, 27197, 16, 513, 497, 351, 8299, 273, 513, 497, 351, 8299, 16, 508, 273, 508, 16, 26193, 273, 26193, 1444, 309, 26193, 1444, 469, 315, 7036, 3113, 262, 2319, 1444, 273, 876, 12, 1893, 1444, 2934, 6406, 1435, 2319, 1444, 578, 10387, 2932, 2279, 12365, 1177, 1392, 364, 326, 2181, 64, 82, 3498, 1399, 5581, 82, 9, 87, 2 ]
e = hasattr(m.email, 'val') and m.email.val or m.email if e is not None:
e = (m.email, m.email.val)[isinstance(m.email, omero.RString)] if e is not None and e!="":
def prepareRecipients(self, recipients): recps = list() for m in recipients: try: e = hasattr(m.email, 'val') and m.email.val or m.email if e is not None: recps.append(e) except: logger.error(traceback.format_exc()) logger.info(recps) if len(recps) == 0: raise AttributeError("Recipients list is empty") return recps
82078b206d271270dcc354ed0ad781a98d100872 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/82078b206d271270dcc354ed0ad781a98d100872/gateway.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 22740, 12, 2890, 16, 12045, 4672, 1950, 1121, 273, 666, 1435, 364, 312, 316, 12045, 30, 775, 30, 425, 273, 261, 81, 18, 3652, 16, 312, 18, 3652, 18, 1125, 25146, 291, 1336, 12, 81, 18, 3652, 16, 8068, 2439, 18, 54, 780, 25887, 309, 425, 353, 486, 599, 471, 425, 5, 1546, 6877, 1950, 1121, 18, 6923, 12, 73, 13, 1335, 30, 1194, 18, 1636, 12, 21696, 18, 2139, 67, 10075, 10756, 1194, 18, 1376, 12, 3927, 1121, 13, 309, 562, 12, 3927, 1121, 13, 422, 374, 30, 1002, 6394, 2932, 22740, 666, 353, 1008, 7923, 327, 1950, 1121, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 22740, 12, 2890, 16, 12045, 4672, 1950, 1121, 273, 666, 1435, 364, 312, 316, 12045, 30, 775, 30, 425, 273, 261, 81, 18, 3652, 16, 312, 18, 3652, 18, 1125, 25146, 291, 1336, 12, 81, 18, 3652, 16, 8068, 2439, 18, 54, 780, 25887, 309, 425, 353, 486, 599, 471, 425, 5, 1546, 6877, 1950, 1121, 18, 6923, 12, 73, 13, 1335, 30, 1194, 18, 1636, 12, 21696, 18, 2139, 67, 10075, 10756, 1194, 18, 1376, 12, 3927, 1121, 13, 309, 562, 12, 3927, 1121, 13, 422, 374, 30, 1002, 6394, 2932, 22740, 666, 353, 1008, 7923, 327, 1950, 1121, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
stats['years'][year]['dist_scaled'] = int(240*stats['years'][year]['distance']/top_year_dist)
if not statyear: stats['years'][year]['dist_scaled'] = int(240*stats['years'][year]['distance']/top_year_dist)
def build_stats(trip_list, type, statyear=False): # TODO break this apart and/or do similar things in subroutines # TODO build more year metadata # TODO don't do as much work for front page # TODO cache? stats = {'countries': {}, 'cities': {}, 'years': {}, 'months': {}, 'home': { 'trips': 0, 'duration':0, }, 'away': { 'trips': 0, 'duration':0, }, 'future': 0, 'types': {}, 'ordered': {}, 'trips': 0, } if not trip_list: return stats for trip in trip_list: # skip if not a past trip if trip['status'] != "Past": if trip['status'] == "Ongoing": stats['current'] = trip['city']['name'] else: stats['future'] += 1 continue if statyear and trip['startdate'].year != int(statyear): stats['years'][trip['startdate'].year] = { 'duration': 0, 'trips': 0, 'away':{}, 'home':{}, } continue # else: # logging.info(" + count this trip") stats['trips'] += 1 # how long (simple version...) # TODO never double count date duration = trip['finishdate'] - trip['startdate'] trip['duration'] = duration.days # build country data country = trip['city']['country'] display = country inline = country # special casing! if not country.find("United"): # TODO there's something wrong here... inline = "the "+country # TODO and this should be a hash anyway if not country.find("Hong Kong"): display = "Hong Kong" inline = "Hong Kong" # stuff info into the data structure if not country in stats['countries']: stats['countries'][country] = { 'duration': 0, 'trips': 0, 'display':display, 'inline':inline, 'code':trip['city']['country_code'], 'rgb':md5.new(country).hexdigest()[0:6]} stats['countries'][country]['duration'] += duration.days stats['countries'][country]['trips'] += 1 if type != "front": if trip.has_key('return_transport_type'): # TODO remove if not trip['return_transport_type'] in stats['types']: stats['types'][trip['return_transport_type']] = {'trips':0, 'journeys':0, } stats['types'][trip['return_transport_type']]['trips'] += 0.5 if trip.has_key('return_transport_type'): # TODO remove if not trip['outgoing_transport_type'] in stats['types']: stats['types'][trip['outgoing_transport_type']] = {'trips':0, 'journeys':0, } stats['types'][trip['outgoing_transport_type']]['trips'] += 0.5 # if (country == home_country): # stats['home']['trips'] += 1; # stats['home']['duration'] += duration.days # else: # stats['away']['trips'] += 1; # stats['away']['duration'] += duration.days # build city data city = trip['city']['name'] rgb = trip['city']['rgb'] if not city in stats['cities']: stats['cities'][city] = { 'duration': 0, 'trips': 0, 'dist_to':0, 'dist_from':0, 'rgb':rgb, 'country':country, 'id':trip['city']['woeid'], 'trip_list': [], 'code':trip['city']['country_code'] } stats['cities'][city]['duration'] += duration.days stats['cities'][city]['trips'] += 1 if type != "front": stats['cities'][city]['trip_list'].append(trip) # build year data year = trip['startdate'].year # initialise data structure's if not year in stats['years']: stats['years'][year] = { 'duration': 0, 'trips': 0, 'away':{}, 'home':{}, 'distance': 0, } if year == trip['finishdate'].year: stats['years'][year]['duration'] += duration.days stats['years'][year]['trips'] += 1 if type == "detail": stats['years'][year]['distance'] += (trip['distance']['out']+trip['distance']['return']) else: if trip['finishdate'].year - year == 1: # spans a single year boundary, and is therefore Sane # if there's *anyone* who has a trip spanning two, they can bloody # well write this themselves. Otherwise, assume they mean they're # living there now. Onwards... year_end = datetime(year, 12, 31) stats['years'][year]['duration'] += (year_end-trip['startdate']).days stats['years'][year]['trips'] += 1 if type == "detail": stats['years'][year]['distance'] += trip['distance']['out'] # redefine year from year-start to year-end year = trip['finishdate'].year year_start = datetime(year, 1, 1) if not year in stats['years']: stats['years'][year] = { 'duration': 0, 'trips': 0, 'away':{}, 'home':{}, 'distance': 0, } # for now we don't count trips in both years. change? # we do count trip days and distance in the end year stats['years'][year]['duration'] += (trip['finishdate']-year_start).days if type == "detail": stats['years'][year]['distance'] += trip['distance']['return'] if type != "front": # do we care about finish months? month = trip['startdate'].month if not stats['months'].has_key(month): stats['months'][month] = {'trips':0, 'duration':0, 'cities':[]} stats['months'][month]['trips'] += 1 stats['months'][month]['duration'] += duration.days stats['months'][month]['cities'].append(trip) # do we want to supply full-blown cross-cut stats? maybe later... # END TRIP LOOP # reorder final stats stats['ordered']['years'] = sorted(stats['years']) stats['ordered']['years'].reverse() stats['ordered']['types'] = sorted(stats['types'], lambda x, y: (int(stats['types'][y]['trips']))-(int(stats['types'][x]['trips']))) stats['ordered']['years_by_trip'] = sorted(stats['years'], lambda x, y: (stats['years'][y]['trips'])-(stats['years'][x]['trips'])) stats['ordered']['years_by_days'] = sorted(stats['years'], lambda x, y: (stats['years'][y]['duration'])-(stats['years'][x]['duration'])) stats['ordered']['years_by_dist'] = sorted(stats['years'], lambda x, y: (stats['years'][y]['distance'])-(stats['years'][x]['distance'])) stats['ordered']['countries'] = sorted(stats['countries'], lambda x, y: (stats['countries'][y]['duration'])-(stats['countries'][x]['duration'])) stats['ordered']['cities'] = sorted(stats['cities'], lambda x, y: (stats['cities'][y]['duration'])-(stats['cities'][x]['duration'])) if (statyear and not int(statyear) in stats['ordered']['years']): logging.info("no entries for year '%'" % statyear) return False; # colours if type != "front": rgb = stats['countries'][stats['ordered']['countries'][0]]['rgb'] raw = colors.hex('#'+rgb) saturated = raw.saturate(1); lightened = saturated.lighten(0.5); desaturated = lightened.desaturate(0.8); stats['rgb'] = hex_from(lightened) stats['rgb_start'] = hex_from(desaturated) # scale country stats for map (including colours) top_country = stats['ordered']['countries'][0] top_duration = stats['countries'][top_country]['duration'] r = stats['rgb'][0:2]; g = stats['rgb'][2:4]; b = stats['rgb'][4:6] for country in stats['countries'].keys(): scaled = 100*stats['countries'][country]['duration']/top_duration satscale = (float(100-scaled)/100)*0.8 satcolor = lightened.desaturate(satscale) # ligscale = (float(100-scaled)/100)*0.9 # ligcolor = saturated.lighten(ligscale) stats['countries'][country]['scaled'] = scaled stats['countries'][country]['rgb_scaled'] = hex_from(satcolor) # scale transport types if len(stats['types'].keys()): # TODO remove top_type = stats['ordered']['types'][0] top_trip = int(stats['types'][top_type]['trips']) for type in stats['types'].keys(): stats['types'][type]['scaled'] = 240*int(stats['types'][type]['trips'])/top_trip stats['types'][type]['journeys'] = int((stats['types'][type]['trips']*2)) # scale years top_year_by_days = stats['ordered']['years_by_days'][0] top_year_days = stats['years'][top_year_by_days]['duration'] top_year_by_dist = stats['ordered']['years_by_dist'][0] top_year_dist = stats['years'][top_year_by_dist]['distance'] # scale years (for front page too) top_year_by_trip = stats['ordered']['years_by_trip'][0] top_year_trips = stats['years'][top_year_by_trip]['trips'] if type != "front": # width per trip scaling for years trips_per_block = 1 while 90*trips_per_block/top_year_trips < 10: trips_per_block += 1 stats['top_year_trips'] = top_year_trips stats['trips_per_block'] = trips_per_block stats['block_width'] = 90*trips_per_block/top_year_trips for year in stats['years']: if year == top_year_by_days: # TODO do this in template (the data's there...) stats['away']['days'] = (stats['years'][top_year_by_days]['duration'])/3.66 stats['home']['days'] = (366-stats['years'][top_year_by_days]['duration'])/3.66 stats['years'][year]['away']['days'] = (stats['years'][top_year_by_days]['duration'])/3.66 stats['years'][year]['home']['days'] = (366-stats['years'][top_year_by_days]['duration'])/3.66 # raw scaling stats['years'][year]['duration_scaled'] = int(240*stats['years'][year]['duration']/top_year_days) stats['years'][year]['trips_scaled'] = int(240*stats['years'][year]['trips']/top_year_trips) stats['years'][year]['dist_scaled'] = int(240*stats['years'][year]['distance']/top_year_dist) # block scaling stats['years'][year]['trips_blocks'] = float(stats['years'][year]['trips'])/stats['trips_per_block'] stats['years'][year]['trips_blocks_l'] = [True] * (stats['years'][year]['trips']/stats['trips_per_block']) stats['years'][year]['trips_blocks_r'] = int((stats['years'][year]['trips_blocks']-len(stats['years'][year]['trips_blocks_l']))*stats['block_width']) return stats
d9ec1df773d8b8e13ee86486a89e6cfa3129798f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11110/d9ec1df773d8b8e13ee86486a89e6cfa3129798f/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 5296, 12, 25125, 67, 1098, 16, 618, 16, 610, 6874, 33, 8381, 4672, 468, 2660, 898, 333, 513, 485, 471, 19, 280, 741, 7281, 9198, 316, 720, 7028, 1465, 468, 2660, 1361, 1898, 3286, 1982, 468, 2660, 2727, 1404, 741, 487, 9816, 1440, 364, 6641, 1363, 468, 2660, 1247, 35, 225, 3177, 273, 13666, 22904, 4278, 10615, 296, 71, 1961, 4278, 565, 10615, 296, 29391, 4278, 377, 10615, 296, 27584, 4278, 565, 10615, 296, 8712, 4278, 1377, 288, 296, 313, 7146, 4278, 374, 16, 296, 8760, 4278, 20, 16, 19879, 296, 26718, 4278, 1377, 288, 296, 313, 7146, 4278, 374, 16, 296, 8760, 4278, 20, 16, 19879, 296, 14343, 4278, 565, 374, 16, 296, 2352, 4278, 377, 10615, 296, 9885, 4278, 282, 10615, 296, 313, 7146, 4278, 377, 374, 16, 289, 225, 309, 486, 20654, 67, 1098, 30, 327, 3177, 225, 364, 20654, 316, 20654, 67, 1098, 30, 468, 2488, 309, 486, 279, 8854, 20654, 309, 20654, 3292, 2327, 3546, 480, 315, 52, 689, 6877, 309, 20654, 3292, 2327, 3546, 422, 315, 1398, 8162, 6877, 3177, 3292, 2972, 3546, 273, 20654, 3292, 14240, 21712, 529, 3546, 469, 30, 3177, 3292, 14343, 3546, 1011, 404, 1324, 225, 309, 610, 6874, 471, 20654, 3292, 1937, 712, 29489, 6874, 480, 509, 12, 5642, 6874, 4672, 3177, 3292, 29391, 3546, 63, 25125, 3292, 1937, 712, 29489, 6874, 65, 273, 288, 296, 8760, 4278, 374, 16, 296, 313, 7146, 4278, 374, 16, 296, 26718, 4278, 2916, 16, 296, 8712, 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, 5296, 12, 25125, 67, 1098, 16, 618, 16, 610, 6874, 33, 8381, 4672, 468, 2660, 898, 333, 513, 485, 471, 19, 280, 741, 7281, 9198, 316, 720, 7028, 1465, 468, 2660, 1361, 1898, 3286, 1982, 468, 2660, 2727, 1404, 741, 487, 9816, 1440, 364, 6641, 1363, 468, 2660, 1247, 35, 225, 3177, 273, 13666, 22904, 4278, 10615, 296, 71, 1961, 4278, 565, 10615, 296, 29391, 4278, 377, 10615, 296, 27584, 4278, 565, 10615, 296, 8712, 4278, 1377, 288, 296, 313, 7146, 4278, 374, 16, 296, 8760, 4278, 20, 16, 19879, 296, 26718, 4278, 1377, 288, 296, 313, 7146, 4278, 374, 16, 296, 8760, 4278, 20, 16, 19879, 296, 14343, 4278, 565, 374, 16, 296, 2352, 4278, 2 ]
return len(preferenceList), flavorList
curScore = len(preferenceList) if curScore <= scoreToMatch: return len(preferenceList), flavorList return None, []
def _filterByPreferences(self, flavorList, scoreToMatch): preferenceList = self._flavorPreferences if not preferenceList: return 0, flavorList strongList = [ (x.toStrongFlavor(), x) for x in flavorList ] indexedList = enumerate(preferenceList[:scoreToMatch + 1]) for prefScore, preferenceFlavor in indexedList: matchingFlavors = [ x[1] for x in strongList if x[0].satisfies(preferenceFlavor) ] if matchingFlavors: return prefScore, matchingFlavors return len(preferenceList), flavorList
20b14777b4372607b724f0538866e5c6e135c2cf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/20b14777b4372607b724f0538866e5c6e135c2cf/trovesource.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2188, 858, 12377, 12, 2890, 16, 19496, 682, 16, 4462, 26726, 4672, 11555, 682, 273, 365, 6315, 2242, 9444, 12377, 309, 486, 11555, 682, 30, 327, 374, 16, 19496, 682, 11773, 682, 273, 306, 261, 92, 18, 869, 1585, 932, 2340, 9444, 9334, 619, 13, 364, 619, 316, 19496, 682, 308, 8808, 682, 273, 4241, 12, 19141, 682, 10531, 6355, 26726, 397, 404, 5717, 364, 11307, 7295, 16, 11555, 2340, 9444, 316, 8808, 682, 30, 3607, 2340, 842, 1383, 273, 306, 619, 63, 21, 65, 364, 619, 316, 11773, 682, 309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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2188, 858, 12377, 12, 2890, 16, 19496, 682, 16, 4462, 26726, 4672, 11555, 682, 273, 365, 6315, 2242, 9444, 12377, 309, 486, 11555, 682, 30, 327, 374, 16, 19496, 682, 11773, 682, 273, 306, 261, 92, 18, 869, 1585, 932, 2340, 9444, 9334, 619, 13, 364, 619, 316, 19496, 682, 308, 8808, 682, 273, 4241, 12, 19141, 682, 10531, 6355, 26726, 397, 404, 5717, 364, 11307, 7295, 16, 11555, 2340, 9444, 316, 8808, 682, 30, 3607, 2340, 842, 1383, 273, 306, 619, 63, 21, 65, 364, 619, 316, 11773, 682, 309, 619, 63, 20, 8009, 12973, 7396, 606, 12, 19141, 2340, 9444, 13, 308, 309, 3607, 2340, 842, 1383, 30, 327, 11307, 7295, 16, 3607, 2340, 842, 2 ]
exitPolicy = [str(policyLine) for policyLine in descInfo[nsEntry.idhex][1]]
if nsEntry.idhex in descInfo: bwLabel = getSizeLabel(descInfo[nsEntry.idhex][0], 2) exitPolicyLabel = ", ".join([str(policyLine) for policyLine in descInfo[nsEntry.idhex][1]]) else: bwLabel = getSizeLabel(nsEntry.bandwidth, 2) exitPolicyLabel = "Unknown"
def monitorConsensus(): gmailAccount, gmailPassword = DEFAULT_GMAIL_ACCOUNT, "" toAddress = DEFAULT_TO_ADDRESS seenFingerprintsPath = DEFAULT_FINGERPRINTS nsOutputPath = DEFAULT_NS_OUTPUT isQuiet = False # parses user input, noting any issues try: opts, args = getopt.getopt(sys.argv[1:], OPT, OPT_EXPANDED) except getopt.GetoptError, exc: print str(exc) + " (for usage provide --help)" sys.exit() for opt, arg in opts: if opt in ("-g", "--gmail"): gmailAccount = arg elif opt in ("-t", "--to"): toAddress = arg elif opt in ("-f", "--fingerprints"): seenFingerprintsPath = arg elif opt in ("-n", "--nsOutput"): nsOutputPath = arg elif opt in ("-q", "--quiet"): isQuiet = True elif opt in ("-h", "--help"): # notes default values if they exist gmailAcctLabel = " (%s)" % gmailAccount if gmailAccount else "" toAddrLabel = " (%s)" % toAddress if toAddress else "" seenFpLabel = " (%s)" % seenFingerprintsPath if seenFingerprintsPath else "" nsOutputLabel = " (%s)" % nsOutputPath if nsOutputPath else "" print HELP_MSG % (gmailAcctLabel, toAddrLabel, seenFpLabel, nsOutputLabel) sys.exit() # ns output path is a directory, and later expected to end with a slash if nsOutputPath and not nsOutputPath.endswith("/"): nsOutputPath += "/" # fetches gmail password if we're sending email alerts isEmailUsed = gmailAccount and toAddress if isEmailUsed: gmailPassword = getpass.getpass("GMail Password: ") if not gmailAccount or not gmailPassword or not toAddress: print "Email notifications disabled" # get a control port connection conn = util.torTools.connect() if conn == None: print "Unable to connect to control port" sys.exit(1) # prepopulate seenFingerprints with past entries if available seenFingerprints = set() if seenFingerprintsPath and os.path.exists(seenFingerprintsPath): try: seenFingerprintsFile = open(seenFingerprintsPath, "r") for entry in seenFingerprintsFile: seenFingerprints.add(entry.upper().strip()) seenFingerprintsFile.close() except IOError: print "Unable to prepopulate fingerprints from %s" % seenFingerprintsPath seenFingerprintsFile = None if seenFingerprintsPath: try: seenFingerprintsFile = open(seenFingerprintsPath, "a") except IOError: print FP_WRITE_FAIL_MSG % seenFingerprintsPath tick = 0 # number of consensuses processed samplings = [] validAfterDate = None # the 'valid-after' time of the last consensus we've processed # fingerprint => (observedBandwidth, exitPolicy) for all relays descInfo = {} for nsEntry in conn.get_network_status(): try: descLookupCmd = "desc/id/%s" % nsEntry.idhex router = TorCtl.Router.build_from_desc(conn.get_info(descLookupCmd)[descLookupCmd].split("\n"), nsEntry) descInfo[router.idhex] = (router.desc_bw, router.exitpolicy) except TorCtl.ErrorReply: descInfo[nsEntry.idhex] = (0, "") except TorCtl.TorCtlClosed: print "Connection to tor is closed" sys.exit() while True: tick += 1 # fetches the consensus, blocking until a new one's available newConsensus, validAfterDate = getNextConsensus(conn, validAfterDate) nsEntries = TorCtl.parse_ns_body(newConsensus) # determines which entries are new newEntries = [] for nsEntry in nsEntries: # adds entry to descInfo hash if not nsEntry.idhex in descInfo: try: descLookupCmd = "desc/id/%s" % nsEntry.idhex router = TorCtl.Router.build_from_desc(conn.get_info(descLookupCmd)[descLookupCmd].split("\n"), nsEntry) descInfo[router.idhex] = (router.desc_bw, router.exitpolicy) except TorCtl.ErrorReply: descInfo[nsEntry.idhex] = (0, "") except TorCtl.TorCtlClosed: print "Connection to tor is closed" sys.exit() if not nsEntry.idhex in seenFingerprints: newEntries.append(nsEntry) seenFingerprints.add(nsEntry.idhex) # records the seen fingerprint if seenFingerprintsFile: try: seenFingerprintsFile.write(nsEntry.idhex + "\n") except IOError: print FP_WRITE_FAIL_MSG % seenFingerprintsPath seenFingerprintsFile = None newSampling = Sampling(conn, validAfterDate, nsEntries, newEntries) # check if we broke any thresholds (currently just checking hourly exit stats) countAlert = newSampling.getCount(RELAY_EXIT, True) > HOURLY_COUNT_THRESHOLD bwAlert = newSampling.getBandwidth(descInfo, RELAY_EXIT, True) > HOURLY_BW_THRESHOLD samplings.insert(0, newSampling) if len(samplings) > 168: # only remove entries if we have a full day's worth of data to discard lastDate = samplings[-1].getValidAfter().split(" ")[0] earlierDate = samplings[-25].getValidAfter().split(" ")[0] if lastDate == earlierDate: samplings = samplings[:-25] # writes new ns entries if nsOutputPath: nsContents = "" entryDir = nsOutputPath + newSampling.getValidAfter().split(" ")[0] + "/" entryFilename = newSampling.getValidAfter().split(" ")[1] + ".txt" for label, relayType in (("Exits:", RELAY_EXIT), ("Middle:", RELAY_MIDDLE), ("Guards:", RELAY_GUARD)): nsContents += label + "\n" nsContents += "-" * 40 + "\n" for nsEntry in newSampling.newRelays[relayType]: # TODO: the str call of the following produces a deprecation warning, as discussed on: # https://trac.torproject.org/projects/tor/ticket/1777 exitPolicy = [str(policyLine) for policyLine in descInfo[nsEntry.idhex][1]] nsContents += "%s (%s:%s)\n" % (nsEntry.idhex, nsEntry.ip, nsEntry.orport) nsContents += " nickname: %s\n" % nsEntry.nickname nsContents += " bandwidth: %s\n" % getSizeLabel(descInfo[nsEntry.idhex][0], 2) nsContents += " flags: %s\n" % ", ".join(nsEntry.flags) nsContents += " exit policy: %s\n\n" % ", ".join(exitPolicy) try: # make ns entries directory if it doesn't already exist if not os.path.exists(entryDir): os.makedirs(entryDir) # creates subdirectory for each date, then file named after the time nsFile = open(entryDir + entryFilename, "w") nsFile.write(nsContents) nsFile.close() except IOError: print "Unable to access '%s', network status summaries won't be persisted" % (entryDir + entryFilename) nsOutputPath = None # prints results to terminal, ex: # 7. 2010-07-18 10:00:00 - 941/1732/821 relays (8/12/4 are new, 153 MB / 215 MB / 48 MB added bandwidth) if not isQuiet: print "%i. %s" % (tick, newSampling.getSummary(descInfo)) if countAlert: print " *count threshold broken*" if bwAlert: print " *bandwidth threshold broken*" if countAlert or bwAlert or (tick % 24 == 0): currentTime = time.strftime("%H:%M", time.localtime(time.time())) currentDate = time.strftime("%m/%d/%Y", time.localtime(time.time())) if countAlert: subject = "Alert: Relay Count Threshold Broken" noticeBody = "The relay count threshold was broken today at %s (%s) with the addition of %i new exits (the current threshold is set at %i)." noticeMsg = noticeBody % (currentTime, currentDate, newSampling.getCount(RELAY_EXIT), HOURLY_COUNT_THRESHOLD) elif bwAlert: subject = "Alert: Relay Bandwidth Threshold Broken" noticeBody = "The relay bandwidth threshold was broken today at %s (%s) with the addition of %s of new exit capacity (the current threshold is set at %i)." noticeMsg = noticeBody % (currentTime, currentDate, getSizeLabel(newSampling.getBandwidth(descInfo, RELAY_EXIT)), getSizeLabel(HOURLY_BW_THRESHOLD)) else: subject = "Daily Consensus Report for %s" % currentDate noticeMsg = "At present there's no breaches to report. See below for a summary of consensus additions." greetingMsg = "Greetings from your friendly consensus monitoring daemon. %s" % noticeMsg # constructs the plain text message msgText = greetingMsg + "\n" msgText += "-" * 80 + "\n\n" for sampling in samplings: msgText += sampling.getSummary(descInfo) + "\n" # constructs the html message msgHtml = """<html> <head></head> <body> <p>%s</p> <hr /> <table style="border-collapse:collapse;"> <tr> <td></td> <td colspan="3" bgcolor="green"><b>&nbsp;Guards</b></td> <td colspan="3" bgcolor="yellow"><b>&nbsp;Middle</b></td> <td colspan="3" bgcolor="red"><b>&nbsp;Exits</b></td> <td bgcolor="blue"><b>&nbsp;Total</b></td> </tr> <tr> <td bgcolor="#444444"><b>&nbsp;Date:</b></td> <td bgcolor="green"><b>&nbsp;Count:&nbsp;</b></td> <td bgcolor="green"><b>New:&nbsp;</b></td> <td bgcolor="green"><b>Bandwidth:&nbsp;</b></td> <td bgcolor="yellow"><b>&nbsp;Count:&nbsp;</b></td> <td bgcolor="yellow"><b>New:&nbsp;</b></td> <td bgcolor="yellow"><b>Bandwidth:&nbsp;</b></td> <td bgcolor="red"><b>&nbsp;Count:&nbsp;</b></td> <td bgcolor="red"><b>New:&nbsp;</b></td> <td bgcolor="red"><b>Bandwidth:&nbsp;</b></td> <td bgcolor="blue"><b>&nbsp;Bandwidth:&nbsp;</b></td> </tr>
22da42af41f7b69227eb4a16ec1028b853c9b023 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13459/22da42af41f7b69227eb4a16ec1028b853c9b023/consensusTracker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6438, 9054, 9781, 13332, 314, 4408, 3032, 16, 314, 4408, 3913, 273, 3331, 67, 43, 18191, 67, 21690, 16, 1408, 358, 1887, 273, 3331, 67, 4296, 67, 15140, 5881, 17678, 87, 743, 273, 3331, 67, 42, 1360, 654, 19350, 55, 3153, 1447, 743, 273, 3331, 67, 3156, 67, 15527, 353, 16457, 273, 1083, 225, 468, 8940, 729, 810, 16, 486, 310, 1281, 8296, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 16456, 16, 16456, 67, 16109, 1258, 7660, 13, 1335, 336, 3838, 18, 967, 3838, 668, 16, 3533, 30, 1172, 609, 12, 10075, 13, 397, 315, 261, 1884, 4084, 5615, 1493, 5201, 2225, 2589, 18, 8593, 1435, 225, 364, 2153, 16, 1501, 316, 1500, 30, 309, 2153, 316, 7566, 17, 75, 3113, 5238, 75, 4408, 6, 4672, 314, 4408, 3032, 273, 1501, 1327, 2153, 316, 7566, 17, 88, 3113, 5238, 869, 6, 4672, 358, 1887, 273, 1501, 1327, 2153, 316, 7566, 17, 74, 3113, 5238, 24716, 87, 6, 4672, 5881, 17678, 87, 743, 273, 1501, 1327, 2153, 316, 7566, 17, 82, 3113, 5238, 2387, 1447, 6, 4672, 3153, 1447, 743, 273, 1501, 1327, 2153, 316, 7566, 17, 85, 3113, 5238, 20380, 6, 4672, 353, 16457, 273, 1053, 1327, 2153, 316, 7566, 17, 76, 3113, 5238, 5201, 6, 4672, 468, 10913, 805, 924, 309, 2898, 1005, 314, 4408, 9988, 299, 2224, 273, 315, 6142, 87, 2225, 738, 314, 4408, 3032, 309, 314, 4408, 3032, 469, 1408, 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, 6438, 9054, 9781, 13332, 314, 4408, 3032, 16, 314, 4408, 3913, 273, 3331, 67, 43, 18191, 67, 21690, 16, 1408, 358, 1887, 273, 3331, 67, 4296, 67, 15140, 5881, 17678, 87, 743, 273, 3331, 67, 42, 1360, 654, 19350, 55, 3153, 1447, 743, 273, 3331, 67, 3156, 67, 15527, 353, 16457, 273, 1083, 225, 468, 8940, 729, 810, 16, 486, 310, 1281, 8296, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 16456, 16, 16456, 67, 16109, 1258, 7660, 13, 1335, 336, 3838, 18, 967, 3838, 668, 16, 3533, 30, 1172, 609, 12, 10075, 13, 397, 315, 261, 1884, 4084, 5615, 1493, 5201, 2225, 2589, 18, 8593, 1435, 2 ]
inpop = self.pop.individual(ind.info('oldindex'))
inpop = self.pop.individual(int(ind.oldindex))
def testRandomSample(self): 'Testing random sampling (imcomplete)' (s,) = RandomSample(self.pop, 10) self.assertEqual(s.popSize(), 10) for ind in s.individuals(): inpop = self.pop.individual(ind.info('oldindex')) self.assertEqual(ind, inpop) # (s,) = RandomSample(self.pop, [2, 8]) self.assertEqual(s.subPopSize(0), 2) self.assertEqual(s.subPopSize(1), 8) # for ind in s.individuals(): inpop = self.pop.individual(ind.info('oldindex')) self.assertEqual(ind, inpop)
78c7ea1285035525823b8c7293256c6bd2a72438 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/78c7ea1285035525823b8c7293256c6bd2a72438/test_16_asertainment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 8529, 8504, 12, 2890, 4672, 296, 22218, 2744, 11558, 261, 381, 6226, 2506, 261, 87, 16, 13, 273, 8072, 8504, 12, 2890, 18, 5120, 16, 1728, 13, 365, 18, 11231, 5812, 12, 87, 18, 5120, 1225, 9334, 1728, 13, 364, 1547, 316, 272, 18, 22032, 30910, 13332, 316, 5120, 273, 365, 18, 5120, 18, 22032, 5557, 12, 474, 12, 728, 18, 1673, 1615, 3719, 365, 18, 11231, 5812, 12, 728, 16, 316, 5120, 13, 468, 261, 87, 16, 13, 273, 8072, 8504, 12, 2890, 18, 5120, 16, 306, 22, 16, 1725, 5717, 365, 18, 11231, 5812, 12, 87, 18, 1717, 7049, 1225, 12, 20, 3631, 576, 13, 365, 18, 11231, 5812, 12, 87, 18, 1717, 7049, 1225, 12, 21, 3631, 1725, 13, 468, 364, 1547, 316, 272, 18, 22032, 30910, 13332, 316, 5120, 273, 365, 18, 5120, 18, 22032, 5557, 12, 474, 12, 728, 18, 1673, 1615, 3719, 365, 18, 11231, 5812, 12, 728, 16, 316, 5120, 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, 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910, 13332, 316, 5120, 273, 365, 18, 5120, 18, 22032, 5557, 12, 474, 12, 728, 18, 1673, 1615, 3719, 365, 18, 11231, 5812, 12, 728, 16, 316, 5120, 13, 468, 261, 87, 16, 13, 273, 8072, 8504, 12, 2890, 18, 5120, 16, 306, 22, 16, 1725, 5717, 365, 18, 11231, 5812, 12, 87, 18, 1717, 7049, 1225, 12, 20, 3631, 576, 13, 365, 18, 11231, 5812, 12, 87, 18, 1717, 7049, 1225, 2 ]
'help': line[helpstring_offset:]})
'help': line[helpstring_offset:] + ' '})
def help2optparse(self): """convert from help strings to optparse.OptionParser object.""" helpstring_offset = self._get_helpoffset() option_cnt = -1 option_list = [] ## 1 == 'Options' line for line in self.parselines[1:]: if '--help' in line: continue tmp = line.split() metavar = None if tmp[0][:2] == '--': ## only long option longopt = tmp[0] if '=' in longopt: longtmp = longopt.split("=") longopt = longtmp[0] metavar = longtmp[1] option_list.append({'short': None, 'long': longopt, 'metavar': metavar, 'help': line[helpstring_offset:]}) option_cnt += 1 elif tmp[0][0] == '-': ## short option shortopt = tmp[0][:2] longopt = None if tmp[1][:2] == '--': longopt = tmp[1] if '=' in longopt: longtmp = longopt.split("=") longopt = longtmp[0] metavar = longtmp[1] option_list.append({'short': shortopt, 'long': longopt, 'metavar': None, 'help': line[helpstring_offset:]}) option_cnt += 1 else: ## only help-strings line option_list[option_cnt]['help'] += " " option_list[option_cnt]['help'] += line[helpstring_offset:] if '--version' in self.parselines[0]: parser = OptionParser(version="dummy") else: parser = OptionParser() for opt in option_list: if opt['short']: parser.add_option(opt['short'], opt['long'], metavar=opt['metavar'], help=opt['help']) else: parser.add_option(opt['long'], metavar=opt['metavar'], help=opt['help']) return parser
44b92c0383af6b5d59540979b51575856d2afab8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/605/44b92c0383af6b5d59540979b51575856d2afab8/genzshcomp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2809, 22, 3838, 2670, 12, 2890, 4672, 3536, 6283, 628, 2809, 2064, 358, 2153, 2670, 18, 1895, 2678, 733, 12123, 2809, 1080, 67, 3348, 273, 365, 6315, 588, 67, 5201, 3348, 1435, 1456, 67, 13085, 273, 300, 21, 1456, 67, 1098, 273, 5378, 7541, 404, 422, 296, 1320, 11, 980, 364, 980, 316, 365, 18, 1065, 1786, 1465, 63, 21, 30, 14542, 309, 3534, 5201, 11, 316, 980, 30, 1324, 1853, 273, 980, 18, 4939, 1435, 15050, 273, 599, 309, 1853, 63, 20, 6362, 30, 22, 65, 422, 3534, 4278, 7541, 1338, 1525, 1456, 1525, 3838, 273, 1853, 63, 20, 65, 309, 5214, 316, 1525, 3838, 30, 1525, 5645, 273, 1525, 3838, 18, 4939, 2932, 1546, 13, 1525, 3838, 273, 1525, 5645, 63, 20, 65, 15050, 273, 1525, 5645, 63, 21, 65, 1456, 67, 1098, 18, 6923, 12590, 11, 6620, 4278, 599, 16, 296, 5748, 4278, 1525, 3838, 16, 296, 10578, 842, 297, 4278, 15050, 16, 296, 5201, 4278, 980, 63, 5201, 1080, 67, 3348, 26894, 397, 296, 296, 6792, 1456, 67, 13085, 1011, 404, 1327, 1853, 63, 20, 6362, 20, 65, 422, 4014, 30, 7541, 3025, 1456, 3025, 3838, 273, 1853, 63, 20, 6362, 30, 22, 65, 1525, 3838, 273, 599, 309, 1853, 63, 21, 6362, 30, 22, 65, 422, 3534, 4278, 1525, 3838, 273, 1853, 63, 21, 65, 309, 5214, 316, 1525, 3838, 30, 1525, 5645, 273, 1525, 3838, 18, 4939, 2932, 1546, 13, 1525, 3838, 273, 1525, 5645, 63, 20, 65, 15050, 273, 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, 2809, 22, 3838, 2670, 12, 2890, 4672, 3536, 6283, 628, 2809, 2064, 358, 2153, 2670, 18, 1895, 2678, 733, 12123, 2809, 1080, 67, 3348, 273, 365, 6315, 588, 67, 5201, 3348, 1435, 1456, 67, 13085, 273, 300, 21, 1456, 67, 1098, 273, 5378, 7541, 404, 422, 296, 1320, 11, 980, 364, 980, 316, 365, 18, 1065, 1786, 1465, 63, 21, 30, 14542, 309, 3534, 5201, 11, 316, 980, 30, 1324, 1853, 273, 980, 18, 4939, 1435, 15050, 273, 599, 309, 1853, 63, 20, 6362, 30, 22, 65, 422, 3534, 4278, 7541, 1338, 1525, 1456, 1525, 3838, 273, 1853, 63, 20, 65, 309, 5214, 316, 1525, 3838, 30, 1525, 5645, 273, 1525, 3838, 18, 4939, 2932, 1546, 13, 1525, 2 ]
bin = gst.parse_launch ("decodebin name=am_decodebin ! \
bin = gst.parse_launch("decodebin name=am_decodebin ! \
def __init__ (self, source): super (AudioMetadata, self).__init__ () # setup the metadata extracting pipeline bin = gst.parse_launch ("decodebin name=am_decodebin ! \ fakesink name=am_fakesink") self.__oper = GstOperation(pipeline = bin) # link source with decodebin bin.add (source) source.link (bin.get_by_name ("am_decodebin")) # set fakesink as the query_element self._fakesink = bin.get_by_name ("am_fakesink") self._fakesink.set_property ("signal-handoffs", True) self._fakesink.connect ("handoff", self.on_handoff) self.__oper.query_element = self._fakesink self.__oper.listeners.append (self) self.__metadata = {} self.__element = None
016aec4a85d3438c0d49f1f8b2012e23eb7805ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2207/016aec4a85d3438c0d49f1f8b2012e23eb7805ec/audio.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 1084, 4672, 2240, 261, 12719, 2277, 16, 365, 2934, 972, 2738, 972, 1832, 225, 468, 3875, 326, 1982, 27117, 5873, 4158, 273, 314, 334, 18, 2670, 67, 20738, 2932, 3922, 4757, 508, 33, 301, 67, 3922, 4757, 401, 521, 284, 3223, 754, 508, 33, 301, 67, 507, 79, 281, 754, 7923, 365, 16186, 4063, 273, 611, 334, 2988, 12, 14511, 273, 4158, 13, 468, 1692, 1084, 598, 2495, 4757, 4158, 18, 1289, 261, 3168, 13, 1084, 18, 1232, 261, 4757, 18, 588, 67, 1637, 67, 529, 7566, 301, 67, 3922, 4757, 6, 3719, 468, 444, 284, 3223, 754, 487, 326, 843, 67, 2956, 365, 6315, 507, 79, 281, 754, 273, 4158, 18, 588, 67, 1637, 67, 529, 7566, 301, 67, 507, 79, 281, 754, 7923, 365, 6315, 507, 79, 281, 754, 18, 542, 67, 4468, 7566, 10420, 17, 2349, 26600, 3113, 1053, 13, 365, 6315, 507, 79, 281, 754, 18, 3612, 7566, 2349, 3674, 3113, 365,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 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 1084, 4672, 2240, 261, 12719, 2277, 16, 365, 2934, 972, 2738, 972, 1832, 225, 468, 3875, 326, 1982, 27117, 5873, 4158, 273, 314, 334, 18, 2670, 67, 20738, 2932, 3922, 4757, 508, 33, 301, 67, 3922, 4757, 401, 521, 284, 3223, 754, 508, 33, 301, 67, 507, 79, 281, 754, 7923, 365, 16186, 4063, 273, 611, 334, 2988, 12, 14511, 273, 4158, 13, 468, 1692, 1084, 598, 2495, 4757, 4158, 18, 1289, 261, 3168, 13, 1084, 18, 1232, 261, 4757, 18, 588, 67, 1637, 67, 529, 7566, 301, 67, 3922, 4757, 6, 3719, 468, 444, 284, 3223, 754, 487, 326, 843, 67, 2956, 365, 6315, 507, 79, 281, 754, 273, 4158, 18, 2 ]
if len(className) == 0:
if len(classMap) == 0:
def findVariables(rootNode): variables = [] for node in treeutil.nodeIterator(rootNode, ["assignment", "call"]): if node.type == "assignment": variables.append(node.getChild("left")) elif node.type == "call": variables.append(node.getChild("operand")) return variables
7305e5fd7d70ec8e8ab267637f24ae9c34e56f85 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/7305e5fd7d70ec8e8ab267637f24ae9c34e56f85/ecmalint.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 6158, 12, 3085, 907, 4672, 3152, 273, 5378, 364, 756, 316, 2151, 1367, 18, 2159, 3198, 12, 3085, 907, 16, 8247, 12960, 3113, 315, 1991, 11929, 4672, 309, 756, 18, 723, 422, 315, 12960, 6877, 3152, 18, 6923, 12, 2159, 18, 588, 1763, 2932, 4482, 6, 3719, 1327, 756, 18, 723, 422, 315, 1991, 6877, 3152, 18, 6923, 12, 2159, 18, 588, 1763, 2932, 4063, 464, 6, 3719, 327, 3152, 2, 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, 1104, 6158, 12, 3085, 907, 4672, 3152, 273, 5378, 364, 756, 316, 2151, 1367, 18, 2159, 3198, 12, 3085, 907, 16, 8247, 12960, 3113, 315, 1991, 11929, 4672, 309, 756, 18, 723, 422, 315, 12960, 6877, 3152, 18, 6923, 12, 2159, 18, 588, 1763, 2932, 4482, 6, 3719, 1327, 756, 18, 723, 422, 315, 1991, 6877, 3152, 18, 6923, 12, 2159, 18, 588, 1763, 2932, 4063, 464, 6, 3719, 327, 3152, 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 ]
attrs.append('%s: %s' % (key, value))
attrs.append(u'%s: %s' % (key, value))
def structure_to_str(structure, level=0, overline=False): structure.sort() text = [] for name, attributes, sub_struct in structure: # Don't show the empty elements if not sub_struct and not attributes: return None name = translations[name] # Underline and Overline the name if level < len(underline_lvl): underline = underline_lvl[level] * len(name) if overline: text.append(underline) text.append(name) text.append(underline) # Add a separation between name and attributes text[-1] += '\n' attrs = [] # Attributes for key, value in attributes.iteritems(): attrs.append('%s: %s' % (key, value)) if attrs: attrs.sort() # Add a separation between attributes and children attrs[-1] += '\n' text.extend(attrs) # Children sub_struct_text = structure_to_str(sub_struct, level + 1) if sub_struct_text: text.append(sub_struct_text) return u'\n'.join(text)
26dac8ed27632acf387500a93fe9bc60dc7d55fa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10612/26dac8ed27632acf387500a93fe9bc60dc7d55fa/lpod-style.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3695, 67, 869, 67, 701, 12, 7627, 16, 1801, 33, 20, 16, 1879, 1369, 33, 8381, 4672, 3695, 18, 3804, 1435, 977, 273, 5378, 364, 508, 16, 1677, 16, 720, 67, 1697, 316, 3695, 30, 468, 7615, 1404, 2405, 326, 1008, 2186, 309, 486, 720, 67, 1697, 471, 486, 1677, 30, 327, 599, 508, 273, 7863, 63, 529, 65, 468, 21140, 1369, 471, 10752, 1369, 326, 508, 309, 1801, 411, 562, 12, 9341, 1369, 67, 25748, 4672, 25985, 273, 25985, 67, 25748, 63, 2815, 65, 380, 562, 12, 529, 13, 309, 1879, 1369, 30, 977, 18, 6923, 12, 9341, 1369, 13, 977, 18, 6923, 12, 529, 13, 977, 18, 6923, 12, 9341, 1369, 13, 468, 1436, 279, 5102, 367, 3086, 508, 471, 1677, 977, 18919, 21, 65, 1011, 2337, 82, 11, 3422, 273, 5378, 468, 9055, 364, 498, 16, 460, 316, 1677, 18, 2165, 3319, 13332, 3422, 18, 6923, 12, 89, 11, 9, 87, 30, 738, 87, 11, 738, 261, 856, 16, 460, 3719, 309, 3422, 30, 3422, 18, 3804, 1435, 468, 1436, 279, 5102, 367, 3086, 1677, 471, 2325, 3422, 18919, 21, 65, 1011, 2337, 82, 11, 977, 18, 14313, 12, 7039, 13, 468, 16992, 720, 67, 1697, 67, 955, 273, 3695, 67, 869, 67, 701, 12, 1717, 67, 1697, 16, 1801, 397, 404, 13, 309, 720, 67, 1697, 67, 955, 30, 977, 18, 6923, 12, 1717, 67, 1697, 67, 955, 13, 327, 582, 8314, 82, 10332, 5701, 12, 955, 13, 565, 2, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3695, 67, 869, 67, 701, 12, 7627, 16, 1801, 33, 20, 16, 1879, 1369, 33, 8381, 4672, 3695, 18, 3804, 1435, 977, 273, 5378, 364, 508, 16, 1677, 16, 720, 67, 1697, 316, 3695, 30, 468, 7615, 1404, 2405, 326, 1008, 2186, 309, 486, 720, 67, 1697, 471, 486, 1677, 30, 327, 599, 508, 273, 7863, 63, 529, 65, 468, 21140, 1369, 471, 10752, 1369, 326, 508, 309, 1801, 411, 562, 12, 9341, 1369, 67, 25748, 4672, 25985, 273, 25985, 67, 25748, 63, 2815, 65, 380, 562, 12, 529, 13, 309, 1879, 1369, 30, 977, 18, 6923, 12, 9341, 1369, 13, 977, 18, 6923, 12, 529, 13, 977, 18, 6923, 12, 9341, 1369, 13, 468, 1436, 279, 5102, 2 ]
18 + 18*19 + 18*19^2 + 18*19^3 + 18*19^4 + O(19^Infinity)
18 + 18*19 + 18*19^2 + 18*19^3 + 18*19^4 + O(19^5)
def __pow__(self, right): """ EXAMPLES: sage: K = Qp(19) sage: K.prec(5) sage: a = K(-1); a 18 + 18*19 + 18*19^2 + 18*19^3 + 18*19^4 + O(19^Infinity) sage: a^2 1 sage: a^3 18 + 18*19 + 18*19^2 + 18*19^3 + 18*19^4 + O(19^Infinity) sage: K(5)^30 11 + 14*19 + 19^2 + 7*19^3 + O(19^Infinity) """ right = integer.Integer(right) if self == 0: if right == 0: raise ValueError, "0^0 not defined" return 0 if right < 0: inv = 1/self return inv**(-right) if right == 0: return pAdic(self.__parent, 1) ordp = right * self.__ordp if self.__prec == infinity: z = pAdic(self.__parent, self.__unit**right) z.__ordp = ordp return z else: prec = self.__prec unit = arith.power_mod(self.__unit, right, self.__p**prec) return pAdic(self.__parent, unit, prec + ordp, ordp)
0d96c2fdcec1f6e0880d2e9dd2ff28f4fa764306 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/0d96c2fdcec1f6e0880d2e9dd2ff28f4fa764306/padic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 23509, 972, 12, 2890, 16, 2145, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 1475, 273, 2238, 84, 12, 3657, 13, 272, 410, 30, 1475, 18, 4036, 12, 25, 13, 272, 410, 30, 279, 273, 1475, 19236, 21, 1769, 279, 6549, 397, 6549, 14, 3657, 397, 6549, 14, 3657, 66, 22, 397, 6549, 14, 3657, 66, 23, 397, 6549, 14, 3657, 66, 24, 397, 531, 12, 3657, 66, 25, 13, 272, 410, 30, 279, 66, 22, 404, 272, 410, 30, 279, 66, 23, 6549, 397, 6549, 14, 3657, 397, 6549, 14, 3657, 66, 22, 397, 6549, 14, 3657, 66, 23, 397, 6549, 14, 3657, 66, 24, 397, 531, 12, 3657, 66, 25, 13, 272, 410, 30, 1475, 12, 25, 13, 66, 5082, 4648, 397, 5045, 14, 3657, 397, 5342, 66, 22, 397, 2371, 14, 3657, 66, 23, 397, 531, 12, 3657, 66, 382, 7850, 13, 3536, 2145, 273, 3571, 18, 4522, 12, 4083, 13, 309, 365, 422, 374, 30, 309, 2145, 422, 374, 30, 1002, 2068, 16, 315, 20, 66, 20, 486, 2553, 6, 327, 374, 309, 2145, 411, 374, 30, 2198, 273, 404, 19, 2890, 327, 2198, 636, 19236, 4083, 13, 309, 2145, 422, 374, 30, 327, 293, 1871, 335, 12, 2890, 16186, 2938, 16, 404, 13, 4642, 84, 273, 2145, 380, 365, 16186, 517, 84, 309, 365, 16186, 4036, 422, 27272, 30, 998, 273, 293, 1871, 335, 12, 2890, 16186, 2938, 16, 365, 16186, 4873, 636, 4083, 13, 998, 16186, 517, 84, 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, 1001, 23509, 972, 12, 2890, 16, 2145, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 1475, 273, 2238, 84, 12, 3657, 13, 272, 410, 30, 1475, 18, 4036, 12, 25, 13, 272, 410, 30, 279, 273, 1475, 19236, 21, 1769, 279, 6549, 397, 6549, 14, 3657, 397, 6549, 14, 3657, 66, 22, 397, 6549, 14, 3657, 66, 23, 397, 6549, 14, 3657, 66, 24, 397, 531, 12, 3657, 66, 25, 13, 272, 410, 30, 279, 66, 22, 404, 272, 410, 30, 279, 66, 23, 6549, 397, 6549, 14, 3657, 397, 6549, 14, 3657, 66, 22, 397, 6549, 14, 3657, 66, 23, 397, 6549, 14, 3657, 66, 24, 397, 531, 12, 3657, 66, 25, 13, 272, 410, 30, 2 ]
self.popContent('summary')
if self._summaryKey == 'content': self._end_content() else: self.popContent(self._summaryKey or 'summary') self._summaryKey = None
def _end_summary(self): self.popContent('summary')
50cbe5fb44dbff087e8cca95d332bb7b7cc15747 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10695/50cbe5fb44dbff087e8cca95d332bb7b7cc15747/feedparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 409, 67, 7687, 12, 2890, 4672, 365, 18, 5120, 1350, 2668, 7687, 6134, 2, 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, 0, 0, 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, 409, 67, 7687, 12, 2890, 4672, 365, 18, 5120, 1350, 2668, 7687, 6134, 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 ]
'subarches': SchemaItemList(),
def __call__(self, i): i = i.strip() if not i: return [] return [j.strip() for j in re.split(self.type, i)]
4fce5d1f110fa164dbdea466ff857ee6aec6f31a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5794/4fce5d1f110fa164dbdea466ff857ee6aec6f31a/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 277, 4672, 277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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 277, 4672, 277, 273, 277, 18, 6406, 1435, 309, 486, 277, 30, 327, 5378, 327, 306, 78, 18, 6406, 1435, 364, 525, 316, 283, 18, 4939, 12, 2890, 18, 723, 16, 277, 25887, 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 ]
if self.__subpartDict.keys(): partName = self.__subpartDict.keys()[0] else: partName = 'modelRoot'
partName = 'modelRoot'
def getAnimControl(self, animName, partName=None, lodName=None): """ getAnimControl(self, string, string, string="lodRoot") Search the animControl dictionary indicated by lodName for a given anim and part. If none specified, try the first part and lod. Return the animControl if present, or None otherwise """ if not partName: if self.__subpartDict.keys(): partName = self.__subpartDict.keys()[0] else: partName = 'modelRoot'
7ee602f9339dcb42047a2daf78a722cc99582eb3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/7ee602f9339dcb42047a2daf78a722cc99582eb3/Actor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 20892, 3367, 12, 2890, 16, 10536, 461, 16, 1087, 461, 33, 7036, 16, 328, 369, 461, 33, 7036, 4672, 3536, 336, 20892, 3367, 12, 2890, 16, 533, 16, 533, 16, 533, 1546, 80, 369, 2375, 7923, 5167, 326, 10536, 3367, 3880, 17710, 635, 328, 369, 461, 364, 279, 864, 10536, 471, 1087, 18, 971, 6555, 1269, 16, 775, 326, 1122, 1087, 471, 328, 369, 18, 2000, 326, 10536, 3367, 309, 3430, 16, 578, 599, 3541, 3536, 309, 486, 1087, 461, 30, 309, 365, 16186, 1717, 2680, 5014, 18, 2452, 13332, 1087, 461, 273, 365, 16186, 1717, 2680, 5014, 18, 2452, 1435, 63, 20, 65, 469, 30, 1087, 461, 273, 296, 2284, 2375, 11, 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, 336, 20892, 3367, 12, 2890, 16, 10536, 461, 16, 1087, 461, 33, 7036, 16, 328, 369, 461, 33, 7036, 4672, 3536, 336, 20892, 3367, 12, 2890, 16, 533, 16, 533, 16, 533, 1546, 80, 369, 2375, 7923, 5167, 326, 10536, 3367, 3880, 17710, 635, 328, 369, 461, 364, 279, 864, 10536, 471, 1087, 18, 971, 6555, 1269, 16, 775, 326, 1122, 1087, 471, 328, 369, 18, 2000, 326, 10536, 3367, 309, 3430, 16, 578, 599, 3541, 3536, 309, 486, 1087, 461, 30, 309, 365, 16186, 1717, 2680, 5014, 18, 2452, 13332, 1087, 461, 273, 365, 16186, 1717, 2680, 5014, 18, 2452, 1435, 63, 20, 65, 469, 30, 1087, 461, 273, 296, 2284, 2375, 11, 2, -100, -100, -100, -100 ]