rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
n = ht.do_partition2(filename, "")
n = ht.do_partition3(filename, "")
def test_merge_20_12(self): ht = khmer.new_hashtable(20, 4**12+1)
7a5d6f6a5188c5b939b268bf28a0d3c801663adb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11148/7a5d6f6a5188c5b939b268bf28a0d3c801663adb/test_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2702, 67, 3462, 67, 2138, 12, 2890, 4672, 14049, 273, 417, 76, 6592, 18, 2704, 67, 5332, 14544, 12, 3462, 16, 1059, 636, 2138, 15, 21, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2702, 67, 3462, 67, 2138, 12, 2890, 4672, 14049, 273, 417, 76, 6592, 18, 2704, 67, 5332, 14544, 12, 3462, 16, 1059, 636, 2138, 15, 21, 13, 2, -100, -100, -100, -100, -100, ...
self.extra_assemblies.append(glue.Assembly_Load(name))
self.extra_assemblies.append(glue.Assembly_LoadFrom(name))
def getCORType(self, typestring, really_need_it = 1): # First see if we have cached it. try: # Fastest case since we expect many cache hits. return self.corTypes[typestring] except KeyError: pass if self.extra_assemblies is None: self.extra_assemblies = [] if not self.options.no_python_runtime: try:
6cf91094fb428728787cec2247d544568b4af482 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/6cf91094fb428728787cec2247d544568b4af482/genil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1927, 916, 559, 12, 2890, 16, 1953, 371, 16, 8654, 67, 14891, 67, 305, 273, 404, 4672, 468, 5783, 2621, 309, 732, 1240, 3472, 518, 18, 775, 30, 468, 9545, 395, 648, 3241, 732, 4489, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1927, 916, 559, 12, 2890, 16, 1953, 371, 16, 8654, 67, 14891, 67, 305, 273, 404, 4672, 468, 5783, 2621, 309, 732, 1240, 3472, 518, 18, 775, 30, 468, 9545, 395, 648, 3241, 732, 4489, ...
return {'note':'No bank account for the company.'}
raise wizard.except_wizard('Error', 'No bank account for the company.')
def _create_dta(obj, cr, uid, data, context): v={} v['uid'] = str(uid) v['creation_date']= time.strftime('%y%m%d') log=Log() dta='' pool = pooler.get_pool(cr.dbname) payment_obj = pool.get('payment.order') attachment_obj = pool.get('ir.attachment') payment = payment_obj.browse(cr, uid, data['id'], context=context) if not payment.mode or payment.mode.type.code != 'dta': return {'note':'No payment mode or payment type code invalid.'} bank = payment.mode.bank_id if not bank: return {'note':'No bank account for the company.'} v['comp_bank_name']= bank.bank and bank.bank.name or False v['comp_bank_clearing'] = bank.bank.clearing if not v['comp_bank_clearing']: return {'note': 'You must provide a Clearing Number for your bank account.'} user = pool.get('res.users').browse(cr,uid,[uid])[0] company= user.company_id #XXX dirty code use get_addr co_addr= company.partner_id.address[0] v['comp_country'] = co_addr.country_id and co_addr.country_id.name or '' v['comp_street'] = co_addr.street or '' v['comp_zip'] = co_addr.zip v['comp_city'] = co_addr.city v['comp_name'] = co_addr.name v['comp_dta'] = '' #XXX not mandatory in pratice v['comp_bank_number'] = bank.acc_number or '' v['comp_bank_iban'] = bank.iban or '' if not v['comp_bank_iban'] : return {'note':'No iban number for the company bank account.'} dta_line_obj = pool.get('account.dta.line') res_partner_bank_obj = pool.get('res.partner.bank') seq= 1 amount_tot = 0 amount_currency_tot = 0 for pline in payment.line_ids: if not pline.bank_id: log.add('\nNo partner bank defined. (partner: ' + \ pline.partner_id.name + ', entry:' + \ pline.move_line_id.name + ').') continue if not pline.bank_id.bank: log.add('\nNo bank defined on the bank account. (partner: ' + \ pline.partner_id.name + ', entry:' + \ pline.move_line_id.name + ').') v['sequence'] = str(seq).rjust(5).replace(' ', '0') v['amount_to_pay']= str(pline.amount_currency).replace('.', ',') v['number'] = pline.name v['currency'] = pline.currency.code v['partner_bank_name'] = pline.bank_id.bank and pline.bank_id.bank.name \ or False v['partner_bank_clearing'] = pline.bank_id.bank.clearing or False if not v['partner_bank_name'] : log.add('\nPartner bank account not well defined, please provide a name ' 'for the associated bank (partner: ' + pline.partner_id.name + \ ', bank:' + res_partner_bank_obj.name_get(cr, uid, [pline.bank_id.id], context)[0][1] + ').') continue v['partner_bank_iban']= pline.bank_id.iban or False v['partner_bank_number']= pline.bank_id.acc_number \ and pline.bank_id.acc_number.replace('.','').replace('-','') \ or False v['partner_post_number']= pline.bank_id.post_number \ and pline.bank_id.post_number.replace('.', '').replace('-', '') \ or False v['partner_bvr'] = pline.bank_id.bvr_number or '' if v['partner_bvr']: v['partner_bvr'] = v['partner_bvr'].replace('-','') if len(v['partner_bvr']) < 9: v['partner_bvr'] = v['partner_bvr'][:2] + '0' * \ (9 - len(v['partner_bvr'])) + v['partner_bvr'][2:] if pline.bank_id.bank: v['partner_bank_city'] = pline.bank_id.bank.city or False v['partner_bank_street'] = pline.bank_id.bank.street or '' v['partner_bank_zip'] = pline.bank_id.bank.zip or '' v['partner_bank_country'] = pline.bank_id.bank.country and \ pline.bank_id.bank.country.name or '' v['partner_bank_code'] = pline.bank_id.bank.bic v['reference'] = pline.move_line_id.ref v['partner_name'] = pline.partner_id and pline.partner_id.name or '' if pline.partner_id and pline.partner_id.address \ and pline.partner_id.address[0]: v['partner_street'] = pline.partner_id.address[0].street v['partner_city']= pline.partner_id.address[0].city v['partner_zip']= pline.partner_id.address[0].zip # If iban => country=country code for space reason elec_pay = pline.bank_id.state #Bank type if elec_pay == 'iban': v['partner_country']= pline.partner_id.address[0].country_id \ and pline.partner_id.address[0].country_id.code+'-' \ or '' else: v['partner_country']= pline.partner_id.address[0].country_id \ and pline.partner_id.address[0].country_id.name \ or '' else: v['partner_street'] ='' v['partner_city']= '' v['partner_zip']= '' v['partner_country']= '' log.add('\nNo address for the partner: '+pline.partner_id.name) date_value = mx.DateTime.strptime(pline.value_date, '%Y-%m-%d') \ or mx.DateTime.now() v['date_value'] = date_value.strftime("%y%m%d") # si compte iban -> iban (836) # si payment structure -> bvr (826) # si non -> (827) if elec_pay == 'dta_iban': # If iban => country=country code for space reason v['comp_country'] = co_addr.country_id and co_addr.country_id.code+'-' or '' record_type = record_gt836 if not v['partner_bank_iban']: log.add('\nNo iban number for the partner bank:' + \ res_partner_bank_obj.name_get(cr, uid, [pline.bank_id.id], context)[0][1] + \ ' (partner: ' + pline.partner_id.name + ').') continue if v['partner_bank_code'] : # bank code is swift (BIC address) v['option_id_bank']= 'A' v['partner_bank_ident']= v['partner_bank_code'] elif v['partner_bank_city']: v['option_id_bank']= 'D' v['partner_bank_ident']= v['partner_bank_name'] \ + ' ' + v['partner_bank_street'] \ + ' ' + v['partner_bank_zip'] \ + ' ' + v['partner_bank_city'] \ + ' ' + v['partner_bank_country'] else: log.add("\nYou must provide the bank city " "or the bic code for the partner bank:" + \ res_partner_bank_obj.name_get(cr, uid, [pline.bank_id.id], context)[0][1] + \ ' (partner: ' + pline.partner_id.name + ').') continue elif elec_pay == 'bvrbank' or elec_pay == 'bvrpost': from tools import mod10r if v['reference']: v['reference'] = v['reference'].replace(' ', '').rjust(27).replace(' ', '0') if not v['reference'] \ or mod10r(v['reference'][:-1]) != v['reference']: log.add('\nYou must provide a valid BVR reference number.' ' (payment line ' + pline.name +')') continue if not v['partner_bvr']: log.add("\nYou must provide a BVR number " "on the partner bank:" + \ res_partner_bank_obj.name_get(cr, uid, [pline.bank_id.id], context)[0][1] + \ ' (partner: ' + pline.partner_id.name + ').') continue record_type = record_gt826 elif elec_pay == 'bvbank': if not v['partner_bank_number'] : if v['partner_bank_iban'] : v['partner_bank_number']= v['partner_bank_iban'] else: log.add('\nYou must provide a bank number in the partner bank.' ' (payment line '+ pline.name +')') continue if not v['partner_bank_clearing']: log.add('\nPartner bank must have a Clearing Number' 'for a BV Bank operation. (payment line '+ pline.name +')') continue v['partner_bank_number'] = '/C/'+v['partner_bank_number'] record_type = record_gt827 elif elec_pay == 'bvpost': if not v['partner_post_number']: log.add('\nYou must provide a post number in the partner bank.' ' (payment line '+ pline.name +')') continue v['partner_bank_clearing']= '' v['partner_bank_number'] = '/C/'+v['partner_post_number'] record_type = record_gt827 else: log.add('\nBank type not supported. (partner:'+ pline.partner_id.name + \ ', bank:' + \ res_partner_bank_obj.name_get(cr, uid, [pline.bank_id.id], context)[0][1] + \ ', type:' + elec_pay + ')') continue try: dta_line = record_type(v).generate() except Exception,e : log.add('\nERROR:'+ str(e)+' (payment line '+ pline.name + ')') raise continue #logging log.add('Payment line : %s, Amount paid : %d %s, ' 'Value date : %s, State : Paid.' % \ (pline.name, pline.amount, v['currency'], date_value and \ date_value.strftime("%Y-%m-%d") or 'Empty date'), error=False) dta = dta + dta_line amount_tot += pline.amount amount_currency_tot += pline.amount_currency seq += 1 # segment total v['amount_total'] = str(amount_currency_tot).replace('.',',') v['sequence'] = str(seq).rjust(5).replace(' ','0') try: if dta : dta = dta + record_gt890(v).generate() except Exception,e : log.add('\n'+ str(e) + 'CORRUPTED FILE !\n') raise log.add("\n--\nSummary :\nTotal amount paid : %.2f" \ % (amount_tot,), error=False) if not log.error: dta_data= base64.encodestring(dta) payment_obj.set_done(cr, uid, data['id'], context) attachment_obj.create(cr, uid, { 'name': 'DTA', 'datas': dta_data, 'datas_fname': 'DTA.txt', 'res_model': 'payment.order', 'res_id': data['id'], }, context=context) else: dta_data= False return {'note':log(), 'dta': dta_data}
37f9126996ca14fd28e570694117dd491f10c960 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7339/37f9126996ca14fd28e570694117dd491f10c960/dta_wizard.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 72, 2351, 12, 2603, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 331, 12938, 331, 3292, 1911, 3546, 273, 609, 12, 1911, 13, 331, 3292, 17169, 67, 712, 3546, 33, 813, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 72, 2351, 12, 2603, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 331, 12938, 331, 3292, 1911, 3546, 273, 609, 12, 1911, 13, 331, 3292, 17169, 67, 712, 3546, 33, 813, 18...
self.html[0] = self.req.load(self.parent.url, cookies=True)
self.html[0] = self.load(self.url, cookies=True)
def download_html(self): self.html[0] = self.req.load(self.parent.url, cookies=True) url_captcha_html = "http://netload.in/" + re.search('(index.php\?id=10&amp;.*&amp;captcha=1)', self.html[0]).group(1).replace("amp;", "") for i in range(6): self.html[1] = self.req.load(url_captcha_html, cookies=True) try: captcha_url = "http://netload.in/" + re.search('(share/includes/captcha.php\?t=\d*)', self.html[1]).group(1) except: url_captcha_html = "http://netload.in/" + re.search('(index.php\?id=10&amp;.*&amp;captcha=1)', self.html[1]).group(1).replace("amp;", "") self.html[1] = self.req.load(url_captcha_html, cookies=True) captcha_url = "http://netload.in/" + re.search('(share/includes/captcha.php\?t=\d*)', self.html[1]).group(1)
0f1f260c5cd98839aafb3e47261e62b742fe3f8a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/0f1f260c5cd98839aafb3e47261e62b742fe3f8a/NetloadIn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 67, 2620, 12, 2890, 4672, 365, 18, 2620, 63, 20, 65, 273, 365, 18, 945, 12, 2890, 18, 718, 16, 7237, 33, 5510, 13, 880, 67, 27267, 67, 2620, 273, 315, 2505, 2207, 2758, 945, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4224, 67, 2620, 12, 2890, 4672, 365, 18, 2620, 63, 20, 65, 273, 365, 18, 945, 12, 2890, 18, 718, 16, 7237, 33, 5510, 13, 880, 67, 27267, 67, 2620, 273, 315, 2505, 2207, 2758, 945, ...
self._Table.SetEndFlag()
if self._From == -1: self._Table.SetEndFlag()
def _Done(self): self._Finished = True self._Table.SetEndFlag()
822a931da76d913ca3d7dee701de3db96ef1c4a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/914/822a931da76d913ca3d7dee701de3db96ef1c4a8/MetaFileParser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7387, 12, 2890, 4672, 365, 6315, 10577, 273, 1053, 365, 6315, 1388, 18, 694, 1638, 4678, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7387, 12, 2890, 4672, 365, 6315, 10577, 273, 1053, 365, 6315, 1388, 18, 694, 1638, 4678, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
spinUntil(lambda :(f.called > 0 and getattr(clientF, 'protocol', None) is not None))
spinUntil(lambda :(f.called > 0 and getattr(clientF, 'protocol', None) is not None))
def testTcpNoDelay(self): f = MyServerFactory() port = reactor.listenTCP(0, f, interface="127.0.0.1")
68998e21ef533677da748f03432912990acb38b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/68998e21ef533677da748f03432912990acb38b1/test_tcp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 27591, 2279, 6763, 12, 2890, 4672, 284, 273, 8005, 2081, 1733, 1435, 1756, 273, 19178, 18, 18085, 13891, 12, 20, 16, 284, 16, 1560, 1546, 14260, 18, 20, 18, 20, 18, 21, 7923, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 27591, 2279, 6763, 12, 2890, 4672, 284, 273, 8005, 2081, 1733, 1435, 1756, 273, 19178, 18, 18085, 13891, 12, 20, 16, 284, 16, 1560, 1546, 14260, 18, 20, 18, 20, 18, 21, 7923, 2, ...
if path[1] not in rows[1]:
if path[0] not in rows[1]:
def on_treeview_row_clicked(self, tv, evt): """ Called when the user clicked on a treeview element. """ try: if evt.button == 3: path = tv.get_path_at_pos(int(evt.x), int(evt.y)) sel = tv.get_selection() (rows, _) = sel.get_selected_rows() if path[1] not in rows[1]: sel.unselect_all() sel.select_path(path[1]) tv.grab_focus() self.popup.popup(None, None, None, evt.button, evt.time) return True coords = evt.get_coords() _, path, c, x, y = tv.get_path_at_pos(int(coords[0]), int(coords[1])) if (path.get_depth() == 1): if tv.row_expanded(path): tv.collapse_row(path) else: tv.expand_row(path, False) self.album_button.set_sensitive(True) except: pass
10695c57c6a1090b1de6bc0510f8a76142694d5f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11070/10695c57c6a1090b1de6bc0510f8a76142694d5f/jamendo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3413, 1945, 67, 492, 67, 7475, 329, 12, 2890, 16, 13521, 16, 6324, 4672, 3536, 11782, 1347, 326, 729, 17688, 603, 279, 2151, 1945, 930, 18, 3536, 775, 30, 309, 6324, 18, 5391,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3413, 1945, 67, 492, 67, 7475, 329, 12, 2890, 16, 13521, 16, 6324, 4672, 3536, 11782, 1347, 326, 729, 17688, 603, 279, 2151, 1945, 930, 18, 3536, 775, 30, 309, 6324, 18, 5391,...
self.assert_(mailbox.BabylMessage(msg_maildir).get_labels() == \ result)
self.assertEqual(mailbox.BabylMessage(msg_maildir).get_labels(), result)
def test_maildir_to_babyl(self): # Convert MaildirMessage to Babyl msg_maildir = mailbox.MaildirMessage(_sample_message) pairs = (('D', ['unseen']), ('F', ['unseen']), ('P', ['unseen', 'forwarded']), ('R', ['unseen', 'answered']), ('S', []), ('T', ['unseen', 'deleted']), ('DFPRST', ['deleted', 'answered', 'forwarded'])) for setting, result in pairs: msg_maildir.set_flags(setting) self.assert_(mailbox.BabylMessage(msg_maildir).get_labels() == \ result)
9d1fae6c21b9661e8074aa8a166635ba69122b4b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/9d1fae6c21b9661e8074aa8a166635ba69122b4b/test_mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2540, 545, 481, 67, 869, 67, 70, 24383, 80, 12, 2890, 4672, 468, 4037, 490, 69, 545, 481, 1079, 358, 605, 24383, 80, 1234, 67, 2540, 545, 481, 273, 14187, 18, 49, 69, 545, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2540, 545, 481, 67, 869, 67, 70, 24383, 80, 12, 2890, 4672, 468, 4037, 490, 69, 545, 481, 1079, 358, 605, 24383, 80, 1234, 67, 2540, 545, 481, 273, 14187, 18, 49, 69, 545, ...
self.save_files() try: self.set_files() if kw: r = apply(func, args, kw) else: r = apply(func, args)
self.save_files() try: self.set_files() if kw: r = apply(func, args, kw) else: r = apply(func, args)
def s_apply(self, func, args=(), kw=None):
3ec38f0ee48b31c80510c60b3df0e6bc4dfb89f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3ec38f0ee48b31c80510c60b3df0e6bc4dfb89f9/rexec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 67, 9010, 12, 2890, 16, 1326, 16, 833, 33, 9334, 5323, 33, 7036, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 67, 9010, 12, 2890, 16, 1326, 16, 833, 33, 9334, 5323, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
filtr.writeline('header %s version %d | %s version %d header' %
filtr.writeline('header %s version %d | %s version %d redaeh' %
def generate_diff(self, pagename, version): from Changeset import DiffColorizer cursor = self.db.cursor () cursor.execute ('SELECT text FROM wiki ' 'WHERE name=%s AND (version=%s or version=%s)' 'ORDER BY version ASC', pagename, version - 1, version) res = cursor.fetchall() if (len(res) == 1): old = '' new = res[0][0].splitlines() elif (len(res) == 2): old = res[0][0].splitlines() new = res[1][0].splitlines() else: raise TracError('Version %d of page "%s" not found.' % (version, pagename), 'Page Not Found') filtr = DiffColorizer(self.req.hdf, 'wiki.diff') filtr.writeline('header %s version %d | %s version %d header' % (pagename, version - 1, pagename, version)) try: for line in difflib.Differ().compare(old, new): if line != ' ': filtr.writeline(escape(line)) except AttributeError: raise TracError('Python >= 2.2 is required for diff support.') filtr.close()
d02bb75cd8ab8eec8fb434a3d353dcbb3149e6b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/d02bb75cd8ab8eec8fb434a3d353dcbb3149e6b9/Wiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 5413, 12, 2890, 16, 4262, 1069, 16, 1177, 4672, 628, 17776, 278, 1930, 13008, 2957, 1824, 3347, 273, 365, 18, 1966, 18, 9216, 1832, 3347, 18, 8837, 7707, 4803, 977, 4571, 9050,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 5413, 12, 2890, 16, 4262, 1069, 16, 1177, 4672, 628, 17776, 278, 1930, 13008, 2957, 1824, 3347, 273, 365, 18, 1966, 18, 9216, 1832, 3347, 18, 8837, 7707, 4803, 977, 4571, 9050,...
except exceptions.LicornRuntimeException :
else :
def reload(self) : """ load or reload internal data structures from files on disk. """ GroupsList.groups = {} GroupsList.name_cache = {}
1efcd1a7be6077a3354fe644044ffb72f7582a89 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7650/1efcd1a7be6077a3354fe644044ffb72f7582a89/groups.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7749, 12, 2890, 13, 294, 3536, 1262, 578, 7749, 2713, 501, 12597, 628, 1390, 603, 4234, 18, 3536, 14712, 682, 18, 4650, 377, 273, 2618, 14712, 682, 18, 529, 67, 2493, 273, 2618, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7749, 12, 2890, 13, 294, 3536, 1262, 578, 7749, 2713, 501, 12597, 628, 1390, 603, 4234, 18, 3536, 14712, 682, 18, 4650, 377, 273, 2618, 14712, 682, 18, 529, 67, 2493, 273, 2618, 2, -10...
'ro': (LINKS, u"Wikipedia:Articole de calitate"),
'ro': (LINKS, u"Wikipedia:Articole fructuoase"),
def LINKS(site,name, ignore=[]): p=wikipedia.Page(site, name) links=p.linkedPages() for n in links[:]: if n.titleWithoutNamespace() in ignore: links.remove(n) links.sort() return links
7f473e09b13ec209337900043f5d3de6b5bfd9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/7f473e09b13ec209337900043f5d3de6b5bfd9fc/featured.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22926, 55, 12, 4256, 16, 529, 16, 2305, 33, 8526, 4672, 293, 33, 11999, 13744, 18, 1964, 12, 4256, 16, 508, 13, 4716, 33, 84, 18, 17738, 5716, 1435, 364, 290, 316, 4716, 10531, 14542, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22926, 55, 12, 4256, 16, 529, 16, 2305, 33, 8526, 4672, 293, 33, 11999, 13744, 18, 1964, 12, 4256, 16, 508, 13, 4716, 33, 84, 18, 17738, 5716, 1435, 364, 290, 316, 4716, 10531, 14542, ...
if self.single_select: self.OnOK()
pass
def OnNotify(self, msg, hwnd, wparam, lparam): FolderSelector_Parent.OnNotify(self, hwnd, msg, wparam, lparam) format = "iii" buf = win32gui.PyMakeBuffer(struct.calcsize(format), lparam) hwndFrom, id, code = struct.unpack(format, buf) code += 0x4f0000 # hrm - wtf - commctrl uses this, and it works with mfc. *sigh* id_name = self._GetIDName(id) if id_name == "IDC_LIST_FOLDERS": if code == commctrl.NM_CLICK: self._UpdateStatus() elif code == commctrl.NM_DBLCLK: if self.single_select: # Only close on double-click for single-select self.OnOK() elif code == commctrl.TVN_ITEMEXPANDING: ignore, ignore, ignore, action, itemOld, itemNew = \ UnpackTVNOTIFY(lparam) if action == 1: return 0 # contracting, not expanding itemHandle = itemNew[0] info = itemNew folderSpec = self.item_map[info[7]] if folderSpec.children is None: folderSpec.children = _BuildFoldersMAPI(self.manager, folderSpec) self._InsertSubFolders(itemHandle, folderSpec) elif code == commctrl.TVN_SELCHANGED: self._UpdateStatus() elif code == commctrl.TVN_ENDLABELEDIT: ignore, ignore, ignore, item = UnpackTVDISPINFO(lparam) handle = item[0] stay_in_edit = False try: name = item[3] if name is None: # User cancelled folder creation - delete the item win32gui.SendMessage(self.list, commctrl.TVM_DELETEITEM, 0, handle) return # Attempt to create a folder of that name. parent_handle = win32gui.SendMessage(self.list, commctrl.TVM_GETNEXTITEM, commctrl.TVGN_PARENT, handle) parent_item = self._GetTVItem(parent_handle) parent_spec = self.item_map[parent_item[7]] parent_folder = self.manager.message_store.GetFolder(parent_spec.folder_id) try: new_folder = parent_folder.CreateFolder(name) # Create a new FolderSpec for this folder, and stash new_spec = FolderSpec(new_folder.GetID(), name) # The info passed by the notify message appears to # not have the lparam (even though the docs say it # does.) Fetch it spec_key = self._GetTVItem(handle)[7] self.item_map[spec_key] = new_spec # And update the tree with the new item buf, extra = PackTVITEM(handle, None, None, name, None, None, None, None) win32gui.SendMessage(self.list, commctrl.TVM_SETITEM, 0, buf) except pythoncom.com_error, details: hr, msg, exc, arg = details if hr == mapi.MAPI_E_COLLISION: user_msg = "A folder with that name already exists" else: user_msg = "MAPI error %s" % mapiutil.GetScodeString(hr) self.manager.ReportError("Could not create the folder\r\n\r\n" + user_msg) stay_in_edit = True finally: if stay_in_edit: win32gui.SendMessage(self.list, commctrl.TVM_EDITLABEL, 0, handle) else: # reset to no label edits s = win32api.GetWindowLong(self.list, win32con.GWL_STYLE) s &= ~commctrl.TVS_EDITLABELS win32api.SetWindowLong(self.list, win32con.GWL_STYLE, s) self.in_label_edit = False
b626b89ab30a5c373701cb77677d86755eaa3947 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/b626b89ab30a5c373701cb77677d86755eaa3947/FolderSelector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 9168, 12, 2890, 16, 1234, 16, 16139, 4880, 16, 341, 891, 16, 328, 891, 4672, 12623, 4320, 67, 3054, 18, 1398, 9168, 12, 2890, 16, 16139, 4880, 16, 1234, 16, 341, 891, 16, 328, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2755, 9168, 12, 2890, 16, 1234, 16, 16139, 4880, 16, 341, 891, 16, 328, 891, 4672, 12623, 4320, 67, 3054, 18, 1398, 9168, 12, 2890, 16, 16139, 4880, 16, 1234, 16, 341, 891, 16, 328, ...
[
[ [ [ [
def script_output(stdout): output = "" whole_output = "" for line in stdout.readlines(): whole_output += line p = re.compile('^[#][#]Print.*$',re.VERBOSE|re.DOTALL) if(p.match(line)): output = output + line p = re.compile(r""" (^[#][#] Print\[RecvEvent: \s* RULE \s* q2\]: \s* \[insertEvent\(localhost:10000, \s* [0-9]+\)\] \s* [#][#] Print\[InsertEvent: \s* RULE \s* rule_table_DELTA_INSERT\]: \s* \[table\(localhost:10000, \s* [0-9]+\)\]) """, re.VERBOSE) flag = p.match(output) if flag: print "Test passed" else: print "Test failed" print "Port 10000 output:" print whole_output
2255f4c65967d4a6cc577a7aa679309e27db9caf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/929/2255f4c65967d4a6cc577a7aa679309e27db9caf/watchedTable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2728, 67, 2844, 12, 10283, 4672, 876, 273, 1408, 7339, 67, 2844, 273, 1408, 364, 980, 316, 3909, 18, 896, 3548, 13332, 7339, 67, 2844, 1011, 980, 293, 273, 283, 18, 11100, 2668, 66, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2728, 67, 2844, 12, 10283, 4672, 876, 273, 1408, 7339, 67, 2844, 273, 1408, 364, 980, 316, 3909, 18, 896, 3548, 13332, 7339, 67, 2844, 1011, 980, 293, 273, 283, 18, 11100, 2668, 66, 63...
commit_opts['force_editor'] = True;
commit_opts['force_editor'] = True
def backout(ui, repo, rev, **opts): '''reverse effect of earlier changeset Commit the backed out changes as a new changeset. The new changeset is a child of the backed out changeset. If you back out a changeset other than the tip, a new head is created. This head is the parent of the working directory. If you back out an old changeset, your working directory will appear old after the backout. You should merge the backout changeset with another head. The --merge option remembers the parent of the working directory before starting the backout, then merges the new head with that changeset afterwards. This saves you from doing the merge by hand. The result of this merge is not committed, as for a normal merge.''' bail_if_changed(repo) op1, op2 = repo.dirstate.parents() if op2 != nullid: raise util.Abort(_('outstanding uncommitted merge')) node = repo.lookup(rev) parent, p2 = repo.changelog.parents(node) if parent == nullid: raise util.Abort(_('cannot back out a change with no parents')) if p2 != nullid: raise util.Abort(_('cannot back out a merge')) repo.update(node, force=True, show_stats=False) revert_opts = opts.copy() revert_opts['rev'] = hex(parent) revert(ui, repo, **revert_opts) commit_opts = opts.copy() commit_opts['addremove'] = False if not commit_opts['message'] and not commit_opts['logfile']: commit_opts['message'] = _("Backed out changeset %s") % (hex(node)) commit_opts['force_editor'] = True; commit(ui, repo, **commit_opts) def nice(node): return '%d:%s' % (repo.changelog.rev(node), short(node)) ui.status(_('changeset %s backs out changeset %s\n') % (nice(repo.changelog.tip()), nice(node))) if opts['merge'] and op1 != node: ui.status(_('merging with changeset %s\n') % nice(op1)) update(ui, repo, hex(op1), **opts)
cde03c77be2e8fdec4e9140002e451dd1ac40d7b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/cde03c77be2e8fdec4e9140002e451dd1ac40d7b/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1473, 659, 12, 4881, 16, 3538, 16, 5588, 16, 2826, 4952, 4672, 9163, 9845, 5426, 434, 13805, 22463, 225, 10269, 326, 20732, 596, 3478, 487, 279, 394, 22463, 18, 225, 1021, 394, 22463, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1473, 659, 12, 4881, 16, 3538, 16, 5588, 16, 2826, 4952, 4672, 9163, 9845, 5426, 434, 13805, 22463, 225, 10269, 326, 20732, 596, 3478, 487, 279, 394, 22463, 18, 225, 1021, 394, 22463, 35...
self.textProp(sts, 'tzoffsetfrom', tzs) self.textProp(sts, 'tzoffsetto', tzs) self.textProp(sts, 'tzname', tzs)
self.exportGeneral(E_PROP, sts, tzs, ICAL.tzoffsetfrom, "TZOFFSETFROM") self.exportGeneral(E_PROP, sts, tzs, ICAL.tzoffsetto, "TZOFFSETTO") self.exportGeneral(E_PROP, sts, tzs, ICAL.tzname, "TZNAME")
def exportTZSub(self, sts, tzs, n): w = self._w
04829bd0c6467d1a5ceb640d5981b3facc7553d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/04829bd0c6467d1a5ceb640d5981b3facc7553d5/toIcal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 21647, 1676, 12, 2890, 16, 27099, 16, 6016, 87, 16, 290, 4672, 341, 273, 365, 6315, 91, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 21647, 1676, 12, 2890, 16, 27099, 16, 6016, 87, 16, 290, 4672, 341, 273, 365, 6315, 91, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self._dist_path(debuginfo[0])
self._dist_path(debuginfo[0]))
def run (self):
80789d092d0364580ae8ee264f818acf46901406 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/80789d092d0364580ae8ee264f818acf46901406/bdist_rpm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
timeout = job.timeout
def write_job_file(self, job): """ Writes out the job file to be executed to disk. """ parsed_file = preparse_file(job.code, magic=True, do_time=False, ignore_prompts=False)
b466d7c5d4d984a2d52e1276e93598fcbc20a9d1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/b466d7c5d4d984a2d52e1276e93598fcbc20a9d1/dsage_worker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 4688, 67, 768, 12, 2890, 16, 1719, 4672, 3536, 30053, 596, 326, 1719, 585, 358, 506, 7120, 358, 4234, 18, 225, 3536, 225, 2707, 67, 768, 273, 675, 2670, 67, 768, 12, 4688, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 4688, 67, 768, 12, 2890, 16, 1719, 4672, 3536, 30053, 596, 326, 1719, 585, 358, 506, 7120, 358, 4234, 18, 225, 3536, 225, 2707, 67, 768, 273, 675, 2670, 67, 768, 12, 4688, ...
if (PES[i].isalpha() or PES[i] == '_') and LogicOpPos > PredicateBegin:
if (PES[i].isalnum() or PES[i] == '_') and LogicOpPos > PredicateBegin:
def GetPredicateListFromPredicateExpStr(PES): PredicateList = [] i = 0 PredicateBegin = 0 #PredicateEnd = 0 LogicOpPos = -1 p = GetFuncDeclPattern() while i < len(PES) - 1: if (PES[i].isalpha() or PES[i] == '_') and LogicOpPos > PredicateBegin: PredicateBegin = i if (PES[i] == '&' and PES[i+1] == '&') or (PES[i] == '|' and PES[i+1] == '|'): LogicOpPos = i Exp = PES[PredicateBegin:i].strip() if p.match(Exp): PredicateList.append(Exp) else: PredicateList.append(Exp.rstrip(';').rstrip(')').strip()) i += 1 if PredicateBegin > LogicOpPos: Exp = PES[PredicateBegin:len(PES)].strip() if p.match(Exp): PredicateList.append(Exp) else: PredicateList.append(Exp.rstrip(';').rstrip(')').strip()) return PredicateList
3e32d26bbfc425d9aad1032f86cefc3a7fdb0a64 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/914/3e32d26bbfc425d9aad1032f86cefc3a7fdb0a64/c.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 8634, 682, 1265, 8634, 2966, 1585, 12, 1423, 55, 4672, 225, 10202, 682, 273, 5378, 277, 273, 374, 10202, 8149, 273, 374, 468, 8634, 1638, 273, 374, 10287, 3817, 1616, 273, 300, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 8634, 682, 1265, 8634, 2966, 1585, 12, 1423, 55, 4672, 225, 10202, 682, 273, 5378, 277, 273, 374, 10202, 8149, 273, 374, 468, 8634, 1638, 273, 374, 10287, 3817, 1616, 273, 300, 21, ...
'-r', str(revision), str(self.repository.path)],
'-r', 'date:' + str(local_datetime), str(self.repository.path)],
def get_filenames_in_revision(self, revision): p = subprocess.Popen(['bzr', 'inventory', '-r', str(revision), str(self.repository.path)], stderr=subprocess.PIPE, stdout=subprocess.PIPE, close_fds=True) contents = p.stdout.read() errmsg = p.stderr.read() failure = p.wait()
93014d9144d249956356c8503d567a6b3a46409b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1600/93014d9144d249956356c8503d567a6b3a46409b/bzr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 19875, 67, 267, 67, 13057, 12, 2890, 16, 6350, 4672, 293, 273, 6652, 18, 52, 3190, 12, 3292, 25292, 86, 2187, 296, 26024, 2187, 2400, 86, 2187, 296, 712, 2497, 397, 609, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 19875, 67, 267, 67, 13057, 12, 2890, 16, 6350, 4672, 293, 273, 6652, 18, 52, 3190, 12, 3292, 25292, 86, 2187, 296, 26024, 2187, 2400, 86, 2187, 296, 712, 2497, 397, 609, 12, ...
active_history = self.parent_property.direction is not interfaces.MANYTOONE,
active_history = not self.use_get,
def init_class_attribute(self, mapper): self.is_class_level = True # MANYTOONE currently only needs the "old" value for delete-orphan # cascades. the required _SingleParentValidator will enable active_history # in that case. otherwise we don't need the "old" value during backref operations. _register_attribute(self, mapper, useobject=True, callable_=self._class_level_loader, uselist = self.parent_property.uselist, typecallable = self.parent_property.collection_class, active_history = self.parent_property.direction is not interfaces.MANYTOONE, )
c03b434104368b1c025f45987d7a3fa8048d5e37 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1074/c03b434104368b1c025f45987d7a3fa8048d5e37/strategies.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 1106, 67, 4589, 12, 2890, 16, 5815, 4672, 365, 18, 291, 67, 1106, 67, 2815, 273, 1053, 225, 468, 490, 15409, 4296, 5998, 4551, 1338, 4260, 326, 315, 1673, 6, 460, 364, 1430, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 67, 1106, 67, 4589, 12, 2890, 16, 5815, 4672, 365, 18, 291, 67, 1106, 67, 2815, 273, 1053, 225, 468, 490, 15409, 4296, 5998, 4551, 1338, 4260, 326, 315, 1673, 6, 460, 364, 1430, ...
if self._destroyed: return
if self._destroyed: return
def killDebugger(self): if self._destroyed: return self.running = 0 if self.debug_client: try: self.debug_client.kill() except: print 'Error on killing debugger: %s: %s'%sys.exc_info()[:2] else: self.debug_client = None self.clearViews()
3ec3e7175bb4b122e1be82d87441a901fe9ee83b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3ec3e7175bb4b122e1be82d87441a901fe9ee83b/Debugger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 24113, 12, 2890, 4672, 309, 365, 6315, 11662, 329, 30, 327, 365, 18, 8704, 273, 374, 309, 365, 18, 4148, 67, 2625, 30, 775, 30, 365, 18, 4148, 67, 2625, 18, 16418, 1435, 1335, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 24113, 12, 2890, 4672, 309, 365, 6315, 11662, 329, 30, 327, 365, 18, 8704, 273, 374, 309, 365, 18, 4148, 67, 2625, 30, 775, 30, 365, 18, 4148, 67, 2625, 18, 16418, 1435, 1335, ...
self._updown(reqpkg, cs, lk, pruneweight, depth, force=1)
task = self._updown(reqpkg, cs, lk, pruneweight, depth, force=1) for res in task: yield res
def _pending(self, changeset, locked, pending, pruneweight, depth=0): depth += 1 if traceVerbosity<4: trace(1, depth, "_pending(pw=%f)", (pruneweight)) else: trace(4, depth, "_pending(%s, pw=%f)", (pending, pruneweight))
0a3ab4bfdab2b5f93bf6292cceb0351050047a0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/0a3ab4bfdab2b5f93bf6292cceb0351050047a0d/transaction.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9561, 12, 2890, 16, 22463, 16, 8586, 16, 4634, 16, 846, 318, 359, 1274, 16, 3598, 33, 20, 4672, 3598, 1011, 404, 309, 2606, 30594, 32, 24, 30, 2606, 12, 21, 16, 3598, 16, 4192, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9561, 12, 2890, 16, 22463, 16, 8586, 16, 4634, 16, 846, 318, 359, 1274, 16, 3598, 33, 20, 4672, 3598, 1011, 404, 309, 2606, 30594, 32, 24, 30, 2606, 12, 21, 16, 3598, 16, 4192, ...
releaseConfig['milestone']
releaseConfig['milestone'],
def verify_options(cmd_options, config): """Check release_configs against command-line opts""" success = True if cmd_options.branch != config['sourceRepoName']: log.error("branch passed in does not match release_configs") success = False if cmd_options.version != config['version']: log.error("version passed in does not match release_configs") success = False if int(cmd_options.buildNumber) != int(config['buildNumber']): log.error("buildNumber passed in does not match release_configs") success = False return success
29e2998218cfd0b56a6e7f3dc493dda66b40af1c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6206/29e2998218cfd0b56a6e7f3dc493dda66b40af1c/release_sanity.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 67, 2116, 12, 4172, 67, 2116, 16, 642, 4672, 3536, 1564, 3992, 67, 10955, 5314, 1296, 17, 1369, 1500, 8395, 2216, 273, 1053, 309, 1797, 67, 2116, 18, 7500, 480, 642, 3292, 3168, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3929, 67, 2116, 12, 4172, 67, 2116, 16, 642, 4672, 3536, 1564, 3992, 67, 10955, 5314, 1296, 17, 1369, 1500, 8395, 2216, 273, 1053, 309, 1797, 67, 2116, 18, 7500, 480, 642, 3292, 3168, ...
id = image
id = image.id_name
def do_auto_move(self, state): # if auto-moving is turned off, just return if state == []: return
3f526c820243f92a2971383a388c18e249e97243 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9927/3f526c820243f92a2971383a388c18e249e97243/classifier_display.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 6079, 67, 8501, 12, 2890, 16, 919, 4672, 468, 309, 3656, 17, 81, 13767, 353, 21826, 3397, 16, 2537, 327, 309, 919, 422, 5378, 30, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 6079, 67, 8501, 12, 2890, 16, 919, 4672, 468, 309, 3656, 17, 81, 13767, 353, 21826, 3397, 16, 2537, 327, 309, 919, 422, 5378, 30, 327, 2, -100, -100, -100, -100, -100, -100, ...
pass
__dynamic__ = 0
def rich_comparisons(): if verbose: print "Testing rich comparisons..." class Z(complex): pass z = Z(1) verify(z == 1+0j) verify(1+0j == z) class ZZ(complex): def __eq__(self, other): try: return abs(self - other) <= 1e-6 except: return NotImplemented zz = ZZ(1.0000003) verify(zz == 1+0j) verify(1+0j == zz) class classic: pass for base in (classic, int, object, list): if verbose: print " (base = %s)" % base class C(base): def __init__(self, value): self.value = int(value) def __cmp__(self, other): raise TestFailed, "shouldn't call __cmp__" def __eq__(self, other): if isinstance(other, C): return self.value == other.value if isinstance(other, int) or isinstance(other, long): return self.value == other return NotImplemented def __ne__(self, other): if isinstance(other, C): return self.value != other.value if isinstance(other, int) or isinstance(other, long): return self.value != other return NotImplemented def __lt__(self, other): if isinstance(other, C): return self.value < other.value if isinstance(other, int) or isinstance(other, long): return self.value < other return NotImplemented def __le__(self, other): if isinstance(other, C): return self.value <= other.value if isinstance(other, int) or isinstance(other, long): return self.value <= other return NotImplemented def __gt__(self, other): if isinstance(other, C): return self.value > other.value if isinstance(other, int) or isinstance(other, long): return self.value > other return NotImplemented def __ge__(self, other): if isinstance(other, C): return self.value >= other.value if isinstance(other, int) or isinstance(other, long): return self.value >= other return NotImplemented c1 = C(1) c2 = C(2) c3 = C(3) verify(c1 == 1) c = {1: c1, 2: c2, 3: c3} for x in 1, 2, 3: for y in 1, 2, 3: for op in "<", "<=", "==", "!=", ">", ">=": verify(eval("c[x] %s c[y]" % op) == eval("x %s y" % op), "x=%d, y=%d" % (x, y)) verify(eval("c[x] %s y" % op) == eval("x %s y" % op), "x=%d, y=%d" % (x, y)) verify(eval("x %s c[y]" % op) == eval("x %s y" % op), "x=%d, y=%d" % (x, y))
b0ca68826bc090999a11274a5441140be7ab1e1d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b0ca68826bc090999a11274a5441140be7ab1e1d/test_descr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23657, 67, 23050, 87, 13332, 309, 3988, 30, 1172, 315, 22218, 23657, 23068, 7070, 667, 2285, 12, 14259, 4672, 1001, 14507, 972, 273, 374, 998, 273, 2285, 12, 21, 13, 3929, 12, 94, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23657, 67, 23050, 87, 13332, 309, 3988, 30, 1172, 315, 22218, 23657, 23068, 7070, 667, 2285, 12, 14259, 4672, 1001, 14507, 972, 273, 374, 998, 273, 2285, 12, 21, 13, 3929, 12, 94, 422, ...
deps[f] = deps[f].union(set(this_deps))
return __mtime_cache[f]
def deps_graph(deps, f, visited=set([])): # first we find all the dependencies of f f = module_path(f) this_deps = search_all_includes(f) try: deps[f] = deps[f].union(set(this_deps)) except KeyError: deps[f] = set(this_deps) visited.add(f) for d in this_deps: if d not in visited: deps_graph(deps, d, visited)
1566a0251d3192d0d1c090cbeb6e117ad663da4f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/1566a0251d3192d0d1c090cbeb6e117ad663da4f/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8740, 67, 4660, 12, 14877, 16, 284, 16, 9711, 33, 542, 3816, 22643, 30, 468, 1122, 732, 1104, 777, 326, 5030, 434, 284, 284, 273, 1605, 67, 803, 12, 74, 13, 333, 67, 14877, 273, 1623...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8740, 67, 4660, 12, 14877, 16, 284, 16, 9711, 33, 542, 3816, 22643, 30, 468, 1122, 732, 1104, 777, 326, 5030, 434, 284, 284, 273, 1605, 67, 803, 12, 74, 13, 333, 67, 14877, 273, 1623...
r'''\converter tgif eps "tgif -stdout -print -color -eps $$i > $$o" "" \converter tgif pdf "tgif -stdout -print -color -pdf $$i > $$o" ""''',
r'''\converter tgif eps "tgif -stdout -print -color -eps $$i > $$o" "" \converter tgif pdf "tgif -stdout -print -color -pdf $$i > $$o" ""''',
def checkProg(description, progs, rc_entry = [], path = [] ): ''' This function will search a program in $PATH plus given path If found, return directory and program name (not the options). description: description of the program progs: check programs, for each prog, the first word is used for searching but the whole string is used to replace %% for a rc_entry. So, feel free to add '$$i' etc for programs. path: additional path rc_entry: entry to outfile, can be emtpy, one pattern (%% for chosen prog or 'none'), or one for each prog and 'none'. NOTE: if you do not want 'none' entry to be added to the RC file, specify an entry for each prog and use '' for 'none' entry. FIXME: under windows, we should check registry instead of $PATH ''' # one rc entry for each progs plus none entry if len(rc_entry) > 1 and len(rc_entry) != len(progs) + 1: print "rc entry should have one item or item for each prog and none." sys.exit(2) print 'checking for ' + description + '...' ## print '(' + ','.join(progs) + ')', for idx in range(len(progs)): # ac_prog may have options, ac_word is the command name ac_prog = progs[idx] ac_word = ac_prog.split(' ')[0] print '+checking for "' + ac_word + '"... ', path = os.environ["PATH"].split(os.pathsep) + path for ac_dir in path: # check both ac_word and ac_word.exe (for windows system) if os.path.isfile( os.path.join(ac_dir, ac_word) ) or \ os.path.isfile( os.path.join(ac_dir, ac_word + ".exe") ): print ' yes' # write rc entries for this command if len(rc_entry) == 1: addToRC(rc_entry[0].replace('%%', ac_prog)) elif len(rc_entry) > 1: addToRC(rc_entry[idx].replace('%%', ac_prog)) return [ac_dir, ac_word] # if not successful print ' no' # write rc entries for 'not found' if len(rc_entry) > 0: # the last one. addToRC(rc_entry[-1].replace('%%', 'none')) return ['', 'none']
41dd4f0be3188829e0dccd1c1ec13e281f4fc00d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7514/41dd4f0be3188829e0dccd1c1ec13e281f4fc00d/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 626, 75, 12, 3384, 16, 450, 564, 16, 4519, 67, 4099, 273, 5378, 16, 589, 273, 5378, 262, 30, 9163, 1220, 445, 903, 1623, 279, 5402, 316, 271, 4211, 8737, 864, 589, 971, 1392, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 626, 75, 12, 3384, 16, 450, 564, 16, 4519, 67, 4099, 273, 5378, 16, 589, 273, 5378, 262, 30, 9163, 1220, 445, 903, 1623, 279, 5402, 316, 271, 4211, 8737, 864, 589, 971, 1392, 16...
'order': 0},
'order': 0, 'optional': False},
def test_custom_field_select(self): self.env.config.set('ticket-custom', 'test', 'select') self.env.config.set('ticket-custom', 'test.label', 'Test') self.env.config.set('ticket-custom', 'test.value', '1') self.env.config.set('ticket-custom', 'test.options', 'option1|option2') fields = TicketSystem(self.env).get_custom_fields() self.assertEqual({'name': 'test', 'type': 'select', 'label': 'Test', 'value': '1', 'options': ['option1', 'option2'], 'order': 0}, fields[0])
2b70419bd26d57d88e4f5ff882a9ae29b36188ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/2b70419bd26d57d88e4f5ff882a9ae29b36188ef/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3662, 67, 1518, 67, 4025, 12, 2890, 4672, 365, 18, 3074, 18, 1425, 18, 542, 2668, 16282, 17, 3662, 2187, 296, 3813, 2187, 296, 4025, 6134, 365, 18, 3074, 18, 1425, 18, 542, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3662, 67, 1518, 67, 4025, 12, 2890, 4672, 365, 18, 3074, 18, 1425, 18, 542, 2668, 16282, 17, 3662, 2187, 296, 3813, 2187, 296, 4025, 6134, 365, 18, 3074, 18, 1425, 18, 542, ...
subprocess.call(cmd.split())
subprocess.call(cmd.split(), env=os.environ)
def install(self): """ 1. Run the before-install command if specified 2. Start up the zeoserver if specified 3. Run the script 4. Stop the zeoserver if specified 5. Run the after-install command if specified """ options = self.options # XXX is this needed? location = options['location'] if self.enabled:
9a6474f25862a63b030c93d4ae8a397218529d13 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10968/9a6474f25862a63b030c93d4ae8a397218529d13/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 12, 2890, 4672, 3536, 404, 18, 1939, 326, 1865, 17, 5425, 1296, 309, 1269, 576, 18, 3603, 731, 326, 26637, 538, 12330, 309, 1269, 890, 18, 1939, 326, 2728, 1059, 18, 5131, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 12, 2890, 4672, 3536, 404, 18, 1939, 326, 1865, 17, 5425, 1296, 309, 1269, 576, 18, 3603, 731, 326, 26637, 538, 12330, 309, 1269, 890, 18, 1939, 326, 2728, 1059, 18, 5131, 326, 2...
if not IFinderUploadCapable.providedBy(self.scope) :
if not IFinderUploadCapable.providedBy(self.data['scope']) :
def __call__(self): context = aq_inner(self.context) request = aq_inner(self.request) session = request.get('SESSION', None) # use self.rootpath or rootpath in request or session to change browser root self.rootpath = request.get('rootpath', self.rootpath) # use self.browse=False (or browse=False in request) to disallow browsing globally self.browse = request.get('browse', self.browse) self.showbreadcrumbs = request.get('showbreadcrumbs', self.showbreadcrumbs) if not self.browse : self.showbreadcrumbs = False self.setScopeInfos(context, request, self.showbreadcrumbs) # use self.multiselect = False (or multiselect = False in request) # when multiselect is False window is closed on insert self.multiselect = request.get('multiselect', self.multiselect) # to force close on insert even in multiselect mode self.forcecloseoninsert = request.get('forcecloseoninsert', self.forcecloseoninsert) if not self.multiselect : self.forcecloseoninsert = 1 # use self.types (or types in request) to specify portal_types in catalog request self.types = request.get('types', self.types) # use self.typeupload (or typeupload in request) to specify portal_type for upload self.typeupload = request.get('typeupload', self.typeupload) # use self.typefolder (or typefolder in request) to specify portal_type used to create folder self.typefolder = request.get('typefolder', self.typefolder) # use self.typeview (or typeview in request) to specify typeview ('file' or 'image' for now, 'selection' in future) self.typeview = request.get('typeview', self.typeview) if self.typeview == 'image' : self.typecss = 'float'
8d0e1a032cfde6336dbc8c8e4be99c7fcb7c9176 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9052/8d0e1a032cfde6336dbc8c8e4be99c7fcb7c9176/finder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 225, 819, 273, 279, 85, 67, 7872, 12, 2890, 18, 2472, 13, 590, 273, 279, 85, 67, 7872, 12, 2890, 18, 2293, 13, 1339, 273, 590, 18, 588, 2668, 7042, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 225, 819, 273, 279, 85, 67, 7872, 12, 2890, 18, 2472, 13, 590, 273, 279, 85, 67, 7872, 12, 2890, 18, 2293, 13, 1339, 273, 590, 18, 588, 2668, 7042, ...
line = line + " " + (("%" + self.format(name)) % \ self.data[name][i])
item = (("%" + self.format(name)) % self.data[name][i]) item = ("%" + str(width[name]) + "s") % item line = line + " " + item
def ipac_write(self, filename): ''' Write the table to an IPAC file
271b5fe1e2ddae048e73a632f4532580f6a5bcc9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13233/271b5fe1e2ddae048e73a632f4532580f6a5bcc9/ipactable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2359, 1077, 67, 2626, 12, 2890, 16, 1544, 4672, 9163, 2598, 326, 1014, 358, 392, 2971, 2226, 585, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2359, 1077, 67, 2626, 12, 2890, 16, 1544, 4672, 9163, 2598, 326, 1014, 358, 392, 2971, 2226, 585, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
doc = Request(self, 'user.getInfo', self.api_key, params, True, self.secret).execute()
doc = _Request(self, 'user.getInfo', self.api_key, params, True, self.secret).execute()
def _getInfo(self): """Returns a dictionary with various metadata values.""" params = self._getParams() doc = Request(self, 'user.getInfo', self.api_key, params, True, self.secret).execute() if not doc: return None data = {} data['name'] = self._extract(doc, 'name') data['image'] = self._extract(doc, 'image') data['language'] = self._extract(doc, 'lang') data['country'] = self._extract(doc, 'country') data['age'] = self._extract(doc, 'age') data['gender'] = self._extract(doc, 'gender') data['subscriber'] = self._extract(doc, 'subscriber') data['play_count'] = self._extract(doc, 'playcount') return data
903c9b1622fe56617e5099f20abdc69f2090f8e0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9926/903c9b1622fe56617e5099f20abdc69f2090f8e0/pylast.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 966, 12, 2890, 4672, 3536, 1356, 279, 3880, 598, 11191, 1982, 924, 12123, 225, 859, 273, 365, 6315, 588, 1370, 1435, 997, 273, 389, 691, 12, 2890, 16, 296, 1355, 18, 588, 966...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 966, 12, 2890, 4672, 3536, 1356, 279, 3880, 598, 11191, 1982, 924, 12123, 225, 859, 273, 365, 6315, 588, 1370, 1435, 997, 273, 389, 691, 12, 2890, 16, 296, 1355, 18, 588, 966...
self.__tmpElem = ('preprocessor', text) if self.__tmpLine is None: self.__tmpLine = [] self.__tmpLine.append(self.__tmpElem)
self.__tmpElem = ('include', text) if self.__tmpLine is None: self.__tmpLine = [] self.__tmpLine.append(self.__tmpElem) self.__tmpElem = None
def fStartInclude(self, scanner, text): if self.__tmpElem is not None: if self.__tmpLine is None: self.__tmpLine = [] self.__tmpLine.append(self.__tmpElem) scanner.begin('include') self.__state = 'include' self.__tmpElem = ('preprocessor', text) if self.__tmpLine is None: self.__tmpLine = [] self.__tmpLine.append(self.__tmpElem)
49ef75994a4778842f4e291b6d7b3a011ea4b11b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8874/49ef75994a4778842f4e291b6d7b3a011ea4b11b/CLexer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 1685, 8752, 12, 2890, 16, 7683, 16, 977, 4672, 309, 365, 16186, 5645, 7498, 353, 486, 599, 30, 309, 365, 16186, 5645, 1670, 353, 599, 30, 365, 16186, 5645, 1670, 273, 5378, 365, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 1685, 8752, 12, 2890, 16, 7683, 16, 977, 4672, 309, 365, 16186, 5645, 7498, 353, 486, 599, 30, 309, 365, 16186, 5645, 1670, 353, 599, 30, 365, 16186, 5645, 1670, 273, 5378, 365, 1...
i = m.end(1) - 1
p = m.end() i = p-1 while i >= 0 and str[i] in " \t\n": i = i-1
def _study2(self, _rfind=string.rfind, _find=string.find, _ws=string.whitespace): if self.study_level >= 2: return self._study1() self.study_level = 2
9428fa607b6edc7c5ef46814cd869291a8b4619e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/9428fa607b6edc7c5ef46814cd869291a8b4619e/PyParse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16120, 93, 22, 12, 2890, 16, 389, 86, 4720, 33, 1080, 18, 86, 4720, 16, 389, 4720, 33, 1080, 18, 4720, 16, 389, 4749, 33, 1080, 18, 18777, 4672, 309, 365, 18, 16120, 93, 67, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16120, 93, 22, 12, 2890, 16, 389, 86, 4720, 33, 1080, 18, 86, 4720, 16, 389, 4720, 33, 1080, 18, 4720, 16, 389, 4749, 33, 1080, 18, 18777, 4672, 309, 365, 18, 16120, 93, 67, 2...
for i in xrange(1000):
for unused_i in xrange(1000):
def runtest(self): # may take about a minute or so for i in xrange(1000): self.runcmd(self.distcc() + _gcc + " -o testtmp.o -c testtmp.c")
fdaf4c739372bb2a573823fa0779dc82dc60ac67 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7392/fdaf4c739372bb2a573823fa0779dc82dc60ac67/testdistcc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3813, 12, 2890, 4672, 468, 2026, 4862, 2973, 279, 8044, 578, 1427, 364, 10197, 67, 77, 316, 12314, 12, 18088, 4672, 365, 18, 86, 551, 1264, 12, 2890, 18, 4413, 952, 1435, 397, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3813, 12, 2890, 4672, 468, 2026, 4862, 2973, 279, 8044, 578, 1427, 364, 10197, 67, 77, 316, 12314, 12, 18088, 4672, 365, 18, 86, 551, 1264, 12, 2890, 18, 4413, 952, 1435, 397, 38...
errors.append(ParseError('Internal error: %s' % e))
if epydoc.DEBUG: raise log.error('Internal error while parsing a docstring: %s; ' 'treating docstring as plaintext' % e)
def parse(docstring, markup='plaintext', errors=None, **options): """ Parse the given docstring, and use it to construct a C{ParsedDocstring}. If any fatal C{ParseError}s are encountered while parsing the docstring, then the docstring will be rendered as plaintext, instead. @type docstring: C{string} @param docstring: The docstring to encode. @type markup: C{string} @param markup: The name of the markup language that is used by the docstring. If the markup language is not supported, then the docstring will be treated as plaintext. The markup name is case-insensitive. @param errors: A list where any errors generated during parsing will be stored. If no list is specified, then fatal errors will generate exceptions, and non-fatal errors will be ignored. @type errors: C{list} of L{ParseError} @rtype: L{ParsedDocstring} @return: A L{ParsedDocstring} that encodes the contents of C{docstring}. @raise ParseError: If C{errors} is C{None} and an error is encountered while parsing. """ # Initialize errors list. raise_on_error = (errors is None) if errors == None: errors = [] # Normalize the markup language name. markup = markup.lower() # Is the markup language valid? if not re.match(r'\w+', markup): _parse_warn('Bad markup language name %r. Treating ' 'docstrings as plaintext.' % markup) return plaintext.parse_docstring(docstring, errors, **options) # Is the markup language supported? try: exec('from epydoc.markup.%s import parse_docstring' % markup) except ImportError: _parse_warn('Unsupported markup language %r. Treating ' 'docstrings as plaintext.' % markup) return plaintext.parse_docstring(docstring, errors, **options) # Parse the docstring. try: parsed_docstring = parse_docstring(docstring, errors, **options) except KeyboardInterrupt: raise except Exception, e: errors.append(ParseError('Internal error: %s' % e)) return plaintext.parse_docstring(docstring, errors, **options) # Check for fatal errors. fatal_errors = [e for e in errors if e.is_fatal()] if fatal_errors and raise_on_error: raise fatal_errors[0] if fatal_errors: return plaintext.parse_docstring(docstring, errors, **options) return parsed_docstring
c12f13573a09be4c2af543e1e1237db8301a5eaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/c12f13573a09be4c2af543e1e1237db8301a5eaf/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 24675, 16, 9813, 2218, 412, 10133, 2187, 1334, 33, 7036, 16, 2826, 2116, 4672, 3536, 2884, 326, 864, 14525, 16, 471, 999, 518, 358, 4872, 279, 385, 95, 11257, 1759, 1080, 5496,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 24675, 16, 9813, 2218, 412, 10133, 2187, 1334, 33, 7036, 16, 2826, 2116, 4672, 3536, 2884, 326, 864, 14525, 16, 471, 999, 518, 358, 4872, 279, 385, 95, 11257, 1759, 1080, 5496,...
"patches/pjsip-2425-sdp_media_line.patch", "patches/pjsip-2458-crc32_big_endian_fix.patch"]
"patches/pjsip-2425-sdp_media_line.patch"]
def get_svn_revision(svn_dir): svn_info = distutils_exec_process(["svn", "info", svn_dir], True) return int(re.search("Last Changed Rev: (\d+)", svn_info).group(1))
3f38670ca785dc6fa800efb23b3d87259aad57c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/3f38670ca785dc6fa800efb23b3d87259aad57c3/setup_pjsip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 31505, 67, 13057, 12, 31505, 67, 1214, 4672, 5893, 82, 67, 1376, 273, 2411, 5471, 67, 4177, 67, 2567, 3816, 6, 31505, 3113, 315, 1376, 3113, 5893, 82, 67, 1214, 6487, 1053, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 31505, 67, 13057, 12, 31505, 67, 1214, 4672, 5893, 82, 67, 1376, 273, 2411, 5471, 67, 4177, 67, 2567, 3816, 6, 31505, 3113, 315, 1376, 3113, 5893, 82, 67, 1214, 6487, 1053, 13...
code[skip] = len(code) - skip elif _simple(av) and op != REPEAT: if op == MAX_REPEAT:
code[skip] = _len(code) - skip elif _simple(av) and op is not REPEAT: if op is MAX_REPEAT:
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
2177055b902a7e649c7988bb4499ab5115b4ea1d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2177055b902a7e649c7988bb4499ab5115b4ea1d/sre_compile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 416, 12, 13107, 16, 2943, 33, 7133, 4672, 327, 389, 87, 266, 18, 588, 8167, 12, 13107, 16, 2943, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 416, 12, 13107, 16, 2943, 33, 7133, 4672, 327, 389, 87, 266, 18, 588, 8167, 12, 13107, 16, 2943, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if (device.device_os, device.device_os_version) == (u'Windows Mobile OS', u'7'):
elif (device.device_os, device.device_os_version) == (u'Windows Mobile OS', u'7'):
def device_specific_media(request): """ Uses DEVICE_SPECIFIC_MEDIA as a basis to pass extra context when the wurfl-detected device is a child of a given device id. """ device, browser = request.device, request.browser use_javascript = True # Skyfire if browser.devid == 'generic_skyfire': style_group = "dumb" # Apple products elif device.brand_name == 'Apple' : style_group = "smart" # Symbian S60 v3 and above (iresspective of browser) elif device.device_os in ('Symbian', 'Symbian OS') and parse_version(device.device_os_version) >= (9, 2) : style_group = "smart" # Nokia Maemo elif device.brand_name == 'Nokia' and device.device_os == 'Linux Smartphone OS' : style_group = "smart" # Blackberries elif device.brand_name == 'RIM' : style_group = 'smart' use_javascript = False # Android elif device.device_os == 'Android' : style_group = 'smart' # Palm Web OS elif device.device_os == 'Web OS' : style_group = 'smart' # Opera Mini/Mobile Browsers elif browser.brand_name == 'Opera': style_group = 'smart' # Windows Mobile 7 if (device.device_os, device.device_os_version) == (u'Windows Mobile OS', u'7'): style_group = 'smart' # Desktop browsers elif 'generic_web_browser' in device_parents[browser.devid]: style_group = 'smart' # All Others else: style_group = "dumb" use_javascript = False return { 'style_group': 'groups-%s' % style_group, 'use_javascript': use_javascript, }
e7663eea5657a5186bccb09c913f6a594b177c03 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14173/e7663eea5657a5186bccb09c913f6a594b177c03/context_processors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2346, 67, 12524, 67, 5829, 12, 2293, 4672, 3536, 14854, 23996, 67, 13847, 22183, 67, 26368, 487, 279, 10853, 358, 1342, 2870, 819, 1347, 326, 341, 295, 2242, 17, 8238, 828, 2346, 353, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2346, 67, 12524, 67, 5829, 12, 2293, 4672, 3536, 14854, 23996, 67, 13847, 22183, 67, 26368, 487, 279, 10853, 358, 1342, 2870, 819, 1347, 326, 341, 295, 2242, 17, 8238, 828, 2346, 353, 27...
'en_US', 'model', values[field_name], res_id, '', module))
'en_US', 'model', res_id, module)) if cursor.rowcount: trans_id = cursor.fetchone()[0] cursor.execute('UPDATE ir_translation ' \ 'SET src = %s, module = %s ' \ 'WHERE id = %s', (values[field_name], module, trans_id)) else: cursor.execute('INSERT INTO ir_translation ' \ '(name, lang, type, src, res_id, ' \ 'value, module, fuzzy) ' \ 'VALUES (%s, %s, %s, %s, %s, %s, %s, false)', (table_name + ',' + field_name, 'en_US', 'model', values[field_name], res_id, '', module))
def import_record(self, model, values, fs_id):
e9d29e509f40c9bc039bf0fec526e928c2aaca35 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/e9d29e509f40c9bc039bf0fec526e928c2aaca35/convert.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 3366, 12, 2890, 16, 938, 16, 924, 16, 2662, 67, 350, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 3366, 12, 2890, 16, 938, 16, 924, 16, 2662, 67, 350, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self._policy._now = self._now = int(time.time()) if self._policy.set_ok(cookie, request): self.set_cookie(cookie) self._cookies_lock.release()
try: self._policy._now = self._now = int(time.time()) if self._policy.set_ok(cookie, request): self.set_cookie(cookie) finally: self._cookies_lock.release()
def set_cookie_if_ok(self, cookie, request): """Set a cookie if policy says it's OK to do so.""" self._cookies_lock.acquire() self._policy._now = self._now = int(time.time())
29ff461c832c6677f89aa644893e4ff679393b61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/29ff461c832c6677f89aa644893e4ff679393b61/cookielib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 8417, 67, 430, 67, 601, 12, 2890, 16, 3878, 16, 590, 4672, 3536, 694, 279, 3878, 309, 3329, 20185, 518, 1807, 7791, 358, 741, 1427, 12123, 365, 6315, 16240, 67, 739, 18, 1077,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 8417, 67, 430, 67, 601, 12, 2890, 16, 3878, 16, 590, 4672, 3536, 694, 279, 3878, 309, 3329, 20185, 518, 1807, 7791, 358, 741, 1427, 12123, 365, 6315, 16240, 67, 739, 18, 1077,...
return res
gLogger.error('Problem obtaining directories for transformation %s with result "%s"' %(transID,res)) return S_OK()
def removeTransformationOutput(self,transID): """ This just removes any mention of the output data from the catalog and storage """ gLogger.info( "Removing output data for transformation %s" % transID) res = self.getTransformationDirectories(transID) if not res['OK']: return res directories = res['Value'] for directory in directories: if not re.search('/LOG/', directory): res = self.cleanCatalogContents(directory) if not res['OK']: return res res = self.cleanStorageContents(directory) if not res['OK']: return res gLogger.info( "Removed directories in the catalog and storage for transformation" ) # Clean ALL the possible remnants found in the metadata catalog res = self.cleanMetadataCatalogFiles(transID, directories) if not res['OK']: return res gLogger.info("Successfully removed output of transformation %d" % transID) # Change the status of the transformation to RemovedFiles res = self.transClient.setTransformationParameter(transID,'Status','RemovedFiles') if not res['OK']: gLogger.error("Failed to update status of transformation %s to RemovedFiles" % (transID), res['Message']) return res gLogger.info( "Updated status of transformation %s to RemovedFiles" % (transID)) return S_OK()
882d3abcc8a0d8fbef783c66f7c633891568d27d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/882d3abcc8a0d8fbef783c66f7c633891568d27d/TransformationCleaningAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 15292, 1447, 12, 2890, 16, 2338, 734, 4672, 3536, 1220, 2537, 7157, 1281, 15823, 434, 326, 876, 501, 628, 326, 6222, 471, 2502, 3536, 314, 3328, 18, 1376, 12, 315, 18939, 876, 501,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1206, 15292, 1447, 12, 2890, 16, 2338, 734, 4672, 3536, 1220, 2537, 7157, 1281, 15823, 434, 326, 876, 501, 628, 326, 6222, 471, 2502, 3536, 314, 3328, 18, 1376, 12, 315, 18939, 876, 501,...
title_col.add_attribute(render_text, "cell_background", self.TASK_MODEL_BGCOL)
title_col.add_attribute (render_text, "cell_background", self.TASK_MODEL_BGCOL)
def __create_task_tview(self):
451ea29e3924785bc6c6b8648aa6459b292a0db4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/451ea29e3924785bc6c6b8648aa6459b292a0db4/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2640, 67, 4146, 67, 88, 1945, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2640, 67, 4146, 67, 88, 1945, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
logging.basicConfig(level=logging.DEBUG, format='[%(asctime)s] %(levelname)s:%(name)s:%(message)s', datefmt='%a %b %d %H:%M:%S %Y')
format = '[%(asctime)s] %(levelname)s:%(name)s:%(message)s' datefmt = '%a %b %d %H:%M:%S %Y' logging.basicConfig(level=logging.DEBUG, format=format, datefmt=datefmt)
def __init__(self): logging.basicConfig(level=logging.DEBUG, format='[%(asctime)s] %(levelname)s:%(name)s:%(message)s', datefmt='%a %b %d %H:%M:%S %Y')
d80ac90dda6dc569740bc3508667ba576a71450e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9266/d80ac90dda6dc569740bc3508667ba576a71450e/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2907, 18, 13240, 809, 12, 2815, 33, 11167, 18, 9394, 16, 740, 2218, 14451, 12, 345, 21261, 13, 87, 65, 8975, 31994, 13, 87, 5319, 12, 529, 13, 87, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2907, 18, 13240, 809, 12, 2815, 33, 11167, 18, 9394, 16, 740, 2218, 14451, 12, 345, 21261, 13, 87, 65, 8975, 31994, 13, 87, 5319, 12, 529, 13, 87, 53...
pixbuf = self.svg.get_pixbuf() pixbuf = pixbuf.scale_simple(48, 48, gtk.gdk.INTERP_BILINEAR)
cr.rectangle(0, 0, 64, 48) cr.set_source_rgb(0, 0, 0.9) cr.fill_preserve() cr.set_source_rgb(0, 0, 0) cr.stroke() cr.move_to(25, 35) cr.show_text("123") else:
def expose(self, widget, event):
ff0629e623d6a32f9ddcb2968962182c361dc9ee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8416/ff0629e623d6a32f9ddcb2968962182c361dc9ee/test-effects.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15722, 12, 2890, 16, 3604, 16, 871, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15722, 12, 2890, 16, 3604, 16, 871, 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,...
def connection_lost(self, prot): self.protocols.remove(prot)
def connection_lost(self, ip): del self.relays[ip]
def connection_lost(self, prot): self.protocols.remove(prot) if self.shutting_down: if len(self.protocols) == 0: self.defer.callback(None) else: self.cleanup_timers[prot] = reactor.callLater(Config.cleanup_timeout, self._do_cleanup, prot)
884867b604330ad8461c612a16f98b830b99ec9c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3445/884867b604330ad8461c612a16f98b830b99ec9c/dispatcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1459, 67, 383, 334, 12, 2890, 16, 2359, 4672, 1464, 365, 18, 2878, 8271, 63, 625, 65, 309, 365, 18, 674, 25387, 67, 2378, 30, 309, 562, 12, 2890, 18, 31018, 13, 422, 374, 30, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1459, 67, 383, 334, 12, 2890, 16, 2359, 4672, 1464, 365, 18, 2878, 8271, 63, 625, 65, 309, 365, 18, 674, 25387, 67, 2378, 30, 309, 562, 12, 2890, 18, 31018, 13, 422, 374, 30, 365, ...
try: argtype, argname = fieldarg.split(None, 1) except ValueError: pass else: types.setdefault(typename, {})[argname] = nodes.Text(argtype) fieldarg = argname
if typedesc.is_typed: try: argtype, argname = fieldarg.split(None, 1) except ValueError: pass else: types.setdefault(typename, {})[argname] = \ [nodes.Text(argtype)] fieldarg = argname
def transform(self, node): """Transform a single field list *node*.""" typemap = self.typemap
7ae812e5cd7f285a0f323bb5daf1d4fdc6ba114f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7032/7ae812e5cd7f285a0f323bb5daf1d4fdc6ba114f/docfields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2510, 12, 2890, 16, 756, 4672, 3536, 4059, 279, 2202, 652, 666, 380, 2159, 14, 12123, 618, 1458, 273, 365, 18, 723, 1458, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2510, 12, 2890, 16, 756, 4672, 3536, 4059, 279, 2202, 652, 666, 380, 2159, 14, 12123, 618, 1458, 273, 365, 18, 723, 1458, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.logger.error("\t... due to absense of %s attribute(s)" % \
self.logger.error("\t... due to absence of %s attribute(s)" % \
def canVerify(self, entry): '''test if entry has enough information to be verified''' if not self.handlesEntry(entry): return False
368713348404468a62ad14f0e58339c6a5255d8a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11867/368713348404468a62ad14f0e58339c6a5255d8a/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 848, 8097, 12, 2890, 16, 1241, 4672, 9163, 3813, 309, 1241, 711, 7304, 1779, 358, 506, 13808, 26418, 309, 486, 365, 18, 24111, 1622, 12, 4099, 4672, 327, 1083, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 848, 8097, 12, 2890, 16, 1241, 4672, 9163, 3813, 309, 1241, 711, 7304, 1779, 358, 506, 13808, 26418, 309, 486, 365, 18, 24111, 1622, 12, 4099, 4672, 327, 1083, 2, -100, -100, -100, -100,...
obj.morale -= Rules.moraleLostNoFood
obj.morale = max(obj.morale - Rules.moraleLostNoFood,0)
def processPRODPhase(self, tran, obj, data): if obj.plType == "A": self.cmd(obj).generateAsteroid(tran, obj) # max storage obj.maxPop = obj.plSlots * Rules.popPerSlot + Rules.popBaseStor obj.maxBio = obj.plSlots * Rules.bioPerSlot + Rules.bioBaseStor obj.maxEn = obj.plSlots * Rules.enPerSlot + Rules.enBaseStor # refuel & repair obj.refuelMax = 0 obj.refuelInc = 0 obj.repairShip = 0.0 obj.upgradeShip = 0.0 # train obj.trainShipInc = 0 obj.trainShipMax = 0 obj.fleetSpeedBoost = 1.0 # if obj.storPop <= 0 and not obj.slots and obj.owner == OID_NONE: # do not process this planet return obj.scannerPwr = Rules.scannerMinPwr obj.prodProd = obj.prodSci = 0 obj.changeBio = - obj.storBio obj.changeEn = - obj.storEn obj.changePop = - obj.storPop obj.changeEnv = - obj.plEnv obj.changeMorale = - obj.morale # parent objects system = tran.db[obj.compOf] galaxy = tran.db[system.compOf] # env. conditions emrLevel = galaxy.emrLevel # collect strategic resources owner = tran.db.get(obj.owner, None) if owner and obj.plStratRes != SR_NONE: turn = tran.db[OID_UNIVERSE].turn if turn % Rules.stratResRate == 0: owner.stratRes[obj.plStratRes] = owner.stratRes.get(obj.plStratRes, 0) + 1 Utils.sendMessage(tran, obj, MSG_EXTRACTED_STRATRES, obj.oid, obj.plStratRes) # compute moraleTrgt if owner: homePlanet = tran.db[owner.planets[0]] dist = int(math.sqrt((homePlanet.x - obj.x) ** 2 + (homePlanet.y - obj.y) ** 2)) moraleTrgt = -37.5 * dist / owner.govPwrCtrlRange + 107.5 obj.moraleTrgt = max(Rules.minMoraleTrgt, min(moraleTrgt, Rules.maxMorale)) #@log.debug(obj.oid, "Morale target", obj.moraleTrgt, "dist", dist, owner.govPwrCtrlRange) # auto regulation of min resources if obj.autoMinStor: obj.minBio = obj.minEn = 0 # combat? isCombat = system.combatCounter > 0 obj.unemployedPop = obj.storPop # ok, reset max pop obj.maxPop = 0 # process all structures destroyed = [] obj.maxShield = 0 obj.solarmod = 0 #@log.debug("Morale bonus/penalty for planet", obj.oid, moraleBonus) for struct in obj.slots: tech = Rules.techs[struct[STRUCT_IDX_TECHID]] # compute struct effectivity techEff = Utils.getTechEff(tran, struct[STRUCT_IDX_TECHID], obj.owner) # morale does not affect hit points of structures maxHP = int(tech.maxHP * techEff) if maxHP < struct[STRUCT_IDX_HP]: # damage structure struct[STRUCT_IDX_HP] = max(maxHP, struct[STRUCT_IDX_HP] - int(maxHP * Rules.decayRatio)) # auto regulation of min resources if obj.autoMinStor: obj.minBio += tech.operBio * Rules.autoMinStorTurns obj.minEn += tech.operEn * Rules.autoMinStorTurns struct[STRUCT_IDX_STATUS] &= STRUCT_STATUS_RESETFLGS # each structure accomodate it's workers obj.maxPop += tech.operWorkers # produce/consume resources # find most limitating condition try: opStatus = min(1.0, float(struct[STRUCT_IDX_HP]) / maxHP) except: opStatus = 0.0 log.warning('Invalid max HP of structure', STRUCT_IDX_TECHID) if tech.operBio > 0: opStatus = min(opStatus, float(obj.storBio) / tech.operBio) if tech.operEn > 0: opStatus = min(opStatus, float(obj.storEn) / tech.operEn) if tech.operWorkers > 0: opStatus = min(opStatus, float(obj.unemployedPop) / tech.operWorkers) if not struct[STRUCT_IDX_STATUS] & STRUCT_STATUS_ON: opStatus = 0.0 struct[STRUCT_IDX_OPSTATUS] = int(100 * opStatus) # solarmod effects ENV change and terraforming only if benificial if tech.solarMod * opStatus > 0: obj.solarmod = max(obj.solarmod,tech.solarMod * techEff * opStatus) elif tech.solarMod * opStatus < 0: obj.solarmod = min(obj.solarmod,tech.solarMod * techEff * opStatus) #@log.debug("IPlanet - oper status", obj.oid, struct, opStatus) # set status bits if tech.operBio > obj.storBio: struct[STRUCT_IDX_STATUS] |= STRUCT_STATUS_NOBIO if tech.operEn > obj.storEn: struct[STRUCT_IDX_STATUS] |= STRUCT_STATUS_NOEN if tech.operWorkers > obj.unemployedPop: struct[STRUCT_IDX_STATUS] |= STRUCT_STATUS_NOPOP # produce/consume #@log.debug("Active structure", obj.oid, struct) # bio b, m, e, d = tech.prodBioMod prodMod = (b * obj.plBio + m * obj.plMin + e * obj.plEn + d * 100) / 100 obj.storBio += int(tech.prodBio * prodMod * techEff * opStatus) - int(tech.operBio * opStatus) # en b, m, e, d = tech.prodEnMod prodMod = (b * obj.plBio + m * obj.plMin + e * obj.plEn + d * 100) / 100 obj.storEn += int(tech.prodEn * prodMod * techEff * opStatus) - int(tech.operEn * opStatus)
97e0e474f5e3c8927ad2b51b16f4283148a72bc3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10927/97e0e474f5e3c8927ad2b51b16f4283148a72bc3/IPlanet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 8025, 1212, 11406, 12, 2890, 16, 13637, 16, 1081, 16, 501, 4672, 309, 1081, 18, 412, 559, 422, 315, 37, 6877, 365, 18, 4172, 12, 2603, 2934, 7163, 37, 8190, 839, 12, 13171, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 8025, 1212, 11406, 12, 2890, 16, 13637, 16, 1081, 16, 501, 4672, 309, 1081, 18, 412, 559, 422, 315, 37, 6877, 365, 18, 4172, 12, 2603, 2934, 7163, 37, 8190, 839, 12, 13171, 16, ...
def err(args):
def err(*args):
def err(args): savestdout = sys.stdout try: sys.stdout = sys.stderr for i in args: print i, print finally: sys.stdout = savestdout
6f0fa184056f6f90de6fc2c0546e39bcffc996e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/6f0fa184056f6f90de6fc2c0546e39bcffc996e6/cgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 393, 30857, 1968, 4672, 4087, 395, 72, 659, 273, 2589, 18, 10283, 775, 30, 2589, 18, 10283, 273, 2589, 18, 11241, 364, 277, 316, 833, 30, 1172, 277, 16, 1172, 3095, 30, 2589, 18, 10283...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 393, 30857, 1968, 4672, 4087, 395, 72, 659, 273, 2589, 18, 10283, 775, 30, 2589, 18, 10283, 273, 2589, 18, 11241, 364, 277, 316, 833, 30, 1172, 277, 16, 1172, 3095, 30, 2589, 18, 10283...
if best_ls_point_with_start.betterThan(iterStartPoint):
if best_ls_point_with_start.betterThan(iterStartPoint, altLinInEq=True, bestFeasiblePoint = bestFeasiblePoint):
def __solver__(self, p): h0 = self.h0
0034fc2438405fabb74c74b111b9b3cfa5ac8601 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6196/0034fc2438405fabb74c74b111b9b3cfa5ac8601/gsubg_oo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 27198, 972, 12, 2890, 16, 293, 4672, 225, 366, 20, 273, 365, 18, 76, 20, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 27198, 972, 12, 2890, 16, 293, 4672, 225, 366, 20, 273, 365, 18, 76, 20, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
@param value: desired bg color (RGB)
@param value: desired value
def SetFchunkAttr(ea, attr, value): """ Set a function chunk attribute @param ea: any address in the chunk @param attr: only FUNCATTR_START, FUNCATTR_END, FUNCATTR_OWNER @param value: desired bg color (RGB) @return: 0 if failed, 1 if success """ if attr in [ FUNCATTR_START, FUNCATTR_END, FUNCATTR_OWNER ]: return SetFunctionAttr(ea, attr) else: return -1
29b47497d67cadb8b21d1a3429f7b9be50b6f793 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6984/29b47497d67cadb8b21d1a3429f7b9be50b6f793/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 42, 6551, 3843, 12, 24852, 16, 1604, 16, 460, 4672, 3536, 1000, 279, 445, 2441, 1566, 225, 632, 891, 24164, 30, 1281, 1758, 316, 326, 2441, 632, 891, 1604, 30, 1338, 478, 21163, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1000, 42, 6551, 3843, 12, 24852, 16, 1604, 16, 460, 4672, 3536, 1000, 279, 445, 2441, 1566, 225, 632, 891, 24164, 30, 1281, 1758, 316, 326, 2441, 632, 891, 1604, 30, 1338, 478, 21163, ...
Dispatch.acquire_append_text(self, "_location", "location_text") Dispatch.acquire_text(self, "_location_start", "location_start") Dispatch.acquire_text(self, "_location_end", "location_end") def start_(self, tag, attrs): self.location_style = self.settings["location-style"]
def start_feature(self, tag, attrs): self.location_style = attrs.get("location-style", self.settings["location-style"]) j = attrs.get("join-feature", None) if j is None: self.text_join_func = "".join else: self.text_join_func = Decode.make_typechecked_decoder(j, list, str)
def __init__(self, callback, settings = {}): Dispatch.Callback.__init__(self, callback) self.settings = settings Dispatch.acquire_append_text(self, "_location", "location_text") Dispatch.acquire_text(self, "_location_start", "location_start") Dispatch.acquire_text(self, "_location_end", "location_end")
7795919201eb3f63ba6ae6a328d1c7499aba60a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/7795919201eb3f63ba6ae6a328d1c7499aba60a2/StdHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1348, 16, 1947, 273, 2618, 4672, 11552, 18, 2428, 16186, 2738, 972, 12, 2890, 16, 1348, 13, 365, 18, 4272, 273, 1947, 225, 11552, 18, 1077, 1039, 67, 692...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1348, 16, 1947, 273, 2618, 4672, 11552, 18, 2428, 16186, 2738, 972, 12, 2890, 16, 1348, 13, 365, 18, 4272, 273, 1947, 225, 11552, 18, 1077, 1039, 67, 692...
cols = string.split(self._chomp(string.rstrip(line[5:])), ';')
cols = self._chomp(line[5:].rstrip()).split(';')
def accession(self, line): cols = string.split(self._chomp(string.rstrip(line[5:])), ';') for ac in cols: self.data.accessions.append(string.lstrip(ac))
ade8039411341728bf4bd4dc20b4f5d9433c8f82 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/ade8039411341728bf4bd4dc20b4f5d9433c8f82/SProt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2006, 285, 12, 2890, 16, 980, 4672, 5347, 273, 365, 6315, 343, 20667, 12, 1369, 63, 25, 30, 8009, 86, 6406, 1435, 2934, 4939, 2668, 4359, 13, 364, 1721, 316, 5347, 30, 365, 18, 892, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2006, 285, 12, 2890, 16, 980, 4672, 5347, 273, 365, 6315, 343, 20667, 12, 1369, 63, 25, 30, 8009, 86, 6406, 1435, 2934, 4939, 2668, 4359, 13, 364, 1721, 316, 5347, 30, 365, 18, 892, ...
for ext in book_exts:
for ext in self.book_exts:
def __init__(self, window, db, server=None): QDialog.__init__(self, window) Ui_Dialog.__init__(self) self.ICON_SIZES = {0:QSize(48, 48), 1:QSize(32,32), 2:QSize(24,24)} self.setupUi(self) self._category_model = CategoryModel() self.connect(self.category_view, SIGNAL('activated(QModelIndex)'), lambda i: self.stackedWidget.setCurrentIndex(i.row())) self.connect(self.category_view, SIGNAL('clicked(QModelIndex)'), lambda i: self.stackedWidget.setCurrentIndex(i.row())) self.category_view.setModel(self._category_model) self.db = db self.server = server path = prefs['library_path'] self.location.setText(path if path else '') self.connect(self.browse_button, SIGNAL('clicked(bool)'), self.browse) self.connect(self.compact_button, SIGNAL('clicked(bool)'), self.compact) dirs = config['frequently_used_directories'] rn = config['use_roman_numerals_for_series_number'] self.timeout.setValue(prefs['network_timeout']) self.roman_numerals.setChecked(rn) self.new_version_notification.setChecked(config['new_version_notification']) self.directory_list.addItems(dirs) self.connect(self.add_button, SIGNAL('clicked(bool)'), self.add_dir) self.connect(self.remove_button, SIGNAL('clicked(bool)'), self.remove_dir) if not islinux: self.dirs_box.setVisible(False) column_map = config['column_map'] for col in column_map + [i for i in ALL_COLUMNS if i not in column_map]: item = QListWidgetItem(BooksModel.headers[col], self.columns) item.setData(Qt.UserRole, QVariant(col)) item.setFlags(Qt.ItemIsEnabled|Qt.ItemIsUserCheckable|Qt.ItemIsSelectable) item.setCheckState(Qt.Checked if col in column_map else Qt.Unchecked) self.connect(self.column_up, SIGNAL('clicked()'), self.up_column) self.connect(self.column_down, SIGNAL('clicked()'), self.down_column)
42972375c6fddf31af105036ac0143ab4e780dc9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/42972375c6fddf31af105036ac0143ab4e780dc9/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2742, 16, 1319, 16, 1438, 33, 7036, 4672, 2238, 6353, 16186, 2738, 972, 12, 2890, 16, 2742, 13, 22597, 67, 6353, 16186, 2738, 972, 12, 2890, 13, 365, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2742, 16, 1319, 16, 1438, 33, 7036, 4672, 2238, 6353, 16186, 2738, 972, 12, 2890, 16, 2742, 13, 22597, 67, 6353, 16186, 2738, 972, 12, 2890, 13, 365, 18,...
blah = raw_input("waiting... ")
def _build_sdist(projdir, destdir, version): """Build an sdist out of a develop egg.""" startdir = os.getcwd() try: os.chdir(projdir) # clean up any old builds if os.path.exists('build'): shutil.rmtree('build') _build_dist('sdist', destdir) if sys.platform == 'win32': # turn .zip file into .tar.gz file so setuptools will find it on the server base = os.path.join(destdir, os.path.basename(projdir)+'-%s' % version) zipname = base+'.zip' tarname = base+'.tar.gz' logging.debug('converting %s to %s' % (zipname, tarname)) zarch = zipfile.ZipFile(zipname, 'r') zarch.extractall() zarch.close() archive = tarfile.open(tarname, 'w:gz') archive.add(os.path.basename(base)) archive.close() os.remove(zipname) blah = raw_input("waiting... ") shutil.rmtree(base) if os.path.exists('build'): shutil.rmtree('build') finally: os.chdir(startdir)
121a4576689684b1b4abc362698175d43b23b85f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12610/121a4576689684b1b4abc362698175d43b23b85f/mkrelease.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3510, 67, 87, 4413, 12, 17995, 1214, 16, 1570, 1214, 16, 1177, 4672, 3536, 3116, 392, 272, 4413, 596, 434, 279, 17196, 25144, 12123, 787, 1214, 273, 1140, 18, 588, 11089, 1435, 775,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3510, 67, 87, 4413, 12, 17995, 1214, 16, 1570, 1214, 16, 1177, 4672, 3536, 3116, 392, 272, 4413, 596, 434, 279, 17196, 25144, 12123, 787, 1214, 273, 1140, 18, 588, 11089, 1435, 775,...
self.warn(fn, 'invalid index entry %r' % string)
self.warn(fn, 'invalid index entry %r' % value)
def add_entry(word, subword, dic=new): entry = dic.get(word) if not entry: dic[word] = entry = [[], {}] if subword: add_entry(subword, '', dic=entry[1]) else: try: entry[0].append(builder.get_relative_uri('genindex', fn) + '#' + tid) except NoUri: pass
b423f9f280d4a3a68084201e1fdeb49f7db0f6ad /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5532/b423f9f280d4a3a68084201e1fdeb49f7db0f6ad/environment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 4099, 12, 1095, 16, 720, 1095, 16, 11681, 33, 2704, 4672, 1241, 273, 11681, 18, 588, 12, 1095, 13, 309, 486, 1241, 30, 11681, 63, 1095, 65, 273, 1241, 273, 12167, 6487, 2618, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 4099, 12, 1095, 16, 720, 1095, 16, 11681, 33, 2704, 4672, 1241, 273, 11681, 18, 588, 12, 1095, 13, 309, 486, 1241, 30, 11681, 63, 1095, 65, 273, 1241, 273, 12167, 6487, 2618, ...
NumberOfLines = len(profile.FileLinesList) SizeOfLastLine = len(profile.FileLinesList[-1])
NumberOfLines = len(self.profile.FileLinesList) SizeOfLastLine = len(self.profile.FileLinesList[-1])
def __EndOfFile(self): NumberOfLines = len(profile.FileLinesList) SizeOfLastLine = len(profile.FileLinesList[-1]) if self.CurrentLineNumber == NumberOfLines and self.CurrentOffsetWithinLine >= SizeOfLastLine - 1: return True else: return False
2f743f829e2c9e634d3e62f83c6af106a22f6583 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/2f743f829e2c9e634d3e62f83c6af106a22f6583/FdfParser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 23358, 812, 12, 2890, 4672, 3588, 951, 5763, 273, 562, 12, 2890, 18, 5040, 18, 812, 5763, 682, 13, 6321, 951, 3024, 1670, 273, 562, 12, 2890, 18, 5040, 18, 812, 5763, 682, 18919,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23358, 812, 12, 2890, 4672, 3588, 951, 5763, 273, 562, 12, 2890, 18, 5040, 18, 812, 5763, 682, 13, 6321, 951, 3024, 1670, 273, 562, 12, 2890, 18, 5040, 18, 812, 5763, 682, 18919,...
def test_blend(self):
def test_blit_blend(self):
def test_blend(self): sources = [self._make_src_surface(8), self._make_src_surface(16), self._make_src_surface(16, srcalpha=True), self._make_src_surface(24), self._make_src_surface(32), self._make_src_surface(32, srcalpha=True)] destinations = [self._make_surface(16), self._make_surface(16, srcalpha=True), self._make_surface(24), self._make_surface(32), self._make_surface(32, srcalpha=True)] blend = [('BLEND_ADD', (0, 25, 100, 255), lambda a, b: min(a + b, 255)), ('BLEND_SUB', (0, 25, 100, 255), lambda a, b: max(a - b, 0)), ('BLEND_MULT', (0, 7, 100, 255), lambda a, b: (a * b) // 256), ('BLEND_MIN', (0, 255, 0, 255), min), ('BLEND_MAX', (0, 255, 0, 255), max)]
139523b1f7ba56209b3d81507edbb2c082bb717e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1298/139523b1f7ba56209b3d81507edbb2c082bb717e/surface_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3083, 305, 67, 3083, 409, 12, 2890, 4672, 5550, 273, 306, 2890, 6315, 6540, 67, 4816, 67, 18266, 12, 28, 3631, 365, 6315, 6540, 67, 4816, 67, 18266, 12, 2313, 3631, 365, 6315...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3083, 305, 67, 3083, 409, 12, 2890, 4672, 5550, 273, 306, 2890, 6315, 6540, 67, 4816, 67, 18266, 12, 28, 3631, 365, 6315, 6540, 67, 4816, 67, 18266, 12, 2313, 3631, 365, 6315...
return self._operator(*new_ops)
is_constant = all(map(lambda x: isinstance(x, SymbolicConstant), new_ops)) if is_constant: return SymbolicConstant( self._operator(*map(lambda x: x._obj, new_ops)) ) else: return self._operator(*new_ops)
def _recursive_sub(self, kwds): """ EXAMPLES: sage: var('x, y, z, w') (x, y, z, w) sage: f = (x - x) + y^2 - z/z + (w^2-1)/(w+1); f y^2 + (w^2 - 1)/(w + 1) - 1 sage: f(y=10) (w^2 - 1)/(w + 1) + 99 sage: f(w=1,y=10) 99 sage: f(y=w,w=y) (y^2 - 1)/(y + 1) + w^2 - 1
d04218872c3f30962c38ce60c6c44f4a58666e69 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/d04218872c3f30962c38ce60c6c44f4a58666e69/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10543, 67, 1717, 12, 2890, 16, 17149, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 569, 2668, 92, 16, 677, 16, 998, 16, 341, 6134, 261, 92, 16, 677, 16, 998, 16, 341, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10543, 67, 1717, 12, 2890, 16, 17149, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 569, 2668, 92, 16, 677, 16, 998, 16, 341, 6134, 261, 92, 16, 677, 16, 998, 16, 341, 13, ...
return (stdoutdata, stderrdata, timedelta)
returncode = p.returncode logging.debug("My subprocess returned returncode {0}.".format(returncode)) return (returncode, stdoutdata, stderrdata, timedelta)
def setrlimits(): for rsrc, limits in rlimits.items(): resource.setrlimit(rsrc, limits)
2179086eb1fb19d09e692536ea2cfae89b93d398 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7293/2179086eb1fb19d09e692536ea2cfae89b93d398/benchmark.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 1321, 1038, 87, 13332, 364, 3597, 1310, 16, 8181, 316, 436, 14270, 18, 3319, 13332, 1058, 18, 542, 1321, 1038, 12, 86, 4816, 16, 8181, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 1321, 1038, 87, 13332, 364, 3597, 1310, 16, 8181, 316, 436, 14270, 18, 3319, 13332, 1058, 18, 542, 1321, 1038, 12, 86, 4816, 16, 8181, 13, 2, -100, -100, -100, -100, -100, -100, -...
command_result = stdout.readlines()
command_output = stdout.readlines()
def attemptConnection(hostname, username, password, timeout=30, command=False, local_filepath=False, remote_filepath='/tmp/', execute=False, remove=False, sudo=False, run_as='root'): """Attempt to login to 'hostname' using 'username'/'password' and execute 'command'. Will excute the command via sudo if 'sudo' is set to True (as root by default) and optionally as a given user (run_as). Returns the command output if everything connected and ran successfully. Returns False if connecting was unsuccessful or an exception was encountered.""" debug("attemptConnection(%s, %s, <password>, %s, %s, %s, %s, %s, %s, %s, %s)" % (hostname, username, timeout, command, local_filepath, remote_filepath, execute, remove, sudo, run_as)) command_result = True # TODO: Add stderr handling if hostname != "": try: ssh = paramikoConnect(hostname, username, password, timeout) if local_filepath: sftpPut(ssh, local_filepath, remote_filepath) if execute: debug("Executing %s on %s" % (filename, hostname)) stdin, stdout, stderr = ssh.exec_command("chmod a+x %s" % remote_filepath) # Make it executable (a+x in case we run as another user via sudo) if sudo: stdout, stderr = sudoExecute(transport=ssh, command=command, password=password, run_as=run_as) else: stdin, stdout, stderr = ssh.exec_command(remote_filepath) command_result = stdout.readlines() if remove: ssh.exec_command("rm -f %s" % remote_filepath) if command: if sudo: stdout, stderr = sudoExecute(transport=ssh, command=command, password=password, run_as=run_as) else: stdin, stdout, stderr = ssh.exec_command(command) command_result = stdout.readlines() elif command is False and execute is False: # If we're not given anything to execute run the uptime command to make sure that we can execute *something* stdin, stdout, stderr = ssh.exec_command('uptime') command_result = stdout.readlines() ssh.close() command_result = "".join(command_result) command_result = normalizeString(command_result) except Exception, detail: # Connection failed traceback.print_exc() print "Exception: %s" % detail command_result = False ssh.close() return command_result
af991bd779b6fc6a4e78f3728de9053171539741 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11566/af991bd779b6fc6a4e78f3728de9053171539741/sshpt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4395, 1952, 12, 10358, 16, 2718, 16, 2201, 16, 2021, 33, 5082, 16, 1296, 33, 8381, 16, 1191, 67, 10561, 33, 8381, 16, 2632, 67, 10561, 2218, 19, 5645, 19, 2187, 1836, 33, 8381, 16, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4395, 1952, 12, 10358, 16, 2718, 16, 2201, 16, 2021, 33, 5082, 16, 1296, 33, 8381, 16, 1191, 67, 10561, 33, 8381, 16, 2632, 67, 10561, 2218, 19, 5645, 19, 2187, 1836, 33, 8381, 16, 1...
def create_email(self, content, subject = None, sender = None, multipart = False): if subject is None: subject = self.default_subject if sender is None: sender = self.default_sender
for module in modules: tests = loader.loadTestsFromModule(module) suite.addTests(tests)
def create_email(self, content, subject = None, sender = None, multipart = False): if subject is None: subject = self.default_subject if sender is None: sender = self.default_sender
b537242352ca645916c807ea71a3094758d6b9d8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7754/b537242352ca645916c807ea71a3094758d6b9d8/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3652, 12, 2890, 16, 913, 16, 3221, 273, 599, 16, 5793, 273, 599, 16, 10263, 273, 1083, 4672, 309, 3221, 353, 599, 30, 3221, 273, 365, 18, 1886, 67, 7857, 309, 5793, 353, 599...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3652, 12, 2890, 16, 913, 16, 3221, 273, 599, 16, 5793, 273, 599, 16, 10263, 273, 1083, 4672, 309, 3221, 353, 599, 30, 3221, 273, 365, 18, 1886, 67, 7857, 309, 5793, 353, 599...
elif n%7 == 0: n /= 7
elif number % 7 == 0: number /= 7
def points_in_a_star(self, n): svg_string = "" if n % 3 == 0: x = 25 nn = n / 3 elif n % 2 == 0: x = 37.5 nn = n / 2 else: x = 62.5 nn = n if n%5 == 0: n /= 5 y = 15 elif n%7 == 0: n /= 7 y = 15 else: n /= 11 y = 15 for i in range(n): if n == 3: if i == 0: y += 12 elif i == 1: y -= 24 else: y += 24 svg_string += self._svg_star(nn, x, y) if n == 2: x += 50 else: x += 37.5 return svg_string
3abdde2d4415b99e072401aa95cc310d13046e05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7609/3abdde2d4415b99e072401aa95cc310d13046e05/gencards.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3143, 67, 267, 67, 69, 67, 10983, 12, 2890, 16, 290, 4672, 9804, 67, 1080, 273, 1408, 309, 290, 738, 890, 422, 374, 30, 619, 273, 6969, 7761, 273, 290, 342, 890, 1327, 290, 738, 576,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3143, 67, 267, 67, 69, 67, 10983, 12, 2890, 16, 290, 4672, 9804, 67, 1080, 273, 1408, 309, 290, 738, 890, 422, 374, 30, 619, 273, 6969, 7761, 273, 290, 342, 890, 1327, 290, 738, 576,...
if binary == "dear god why": i = 0 bin = array('H', [0]) while i < 1000: bin.tofile(output_file) i = i + 1
print binary
def main(): #get filename from commandline filename = "" filename = sys.argv[1] if (filename == ""): print "Please provide a target file for the assembler to assemble" sys.exit(0) file = open(filename, "r") output_file = open(filename + ".bin", "wb") for line in file: binary = parse(line) if binary != "-1": if binary == "dear god why": i = 0 bin = array('H', [0]) while i < 1000: bin.tofile(output_file) i = i + 1 B = int(binary[8:16],2) A = int(binary[0:8],2) binary = array('H', [A + B*256]) binary.tofile(output_file) else: print "An error has occurred. Please check the previous errors to determine where you went wrong, you bad, bad boy." output_file.truncate(0) output_file.write("Something went wrong during compilation... Your fault, not mine") break file.close() output_file.close() exit(0)
3544f255124af0db34ea242b135b6b6390308500 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4891/3544f255124af0db34ea242b135b6b6390308500/assembler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 588, 1544, 628, 28305, 1544, 273, 1408, 1544, 273, 2589, 18, 19485, 63, 21, 65, 225, 309, 261, 3459, 422, 1408, 4672, 1172, 315, 8496, 5615, 279, 1018, 585, 364, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 468, 588, 1544, 628, 28305, 1544, 273, 1408, 1544, 273, 2589, 18, 19485, 63, 21, 65, 225, 309, 261, 3459, 422, 1408, 4672, 1172, 315, 8496, 5615, 279, 1018, 585, 364, 326, ...
raw_href = attachment.href(req, format='raw')
raw_href = attachment.raw_href(req)
def _render_view(self, req, attachment): perm_map = {'ticket': 'TICKET_VIEW', 'wiki': 'WIKI_VIEW'} req.perm.require(perm_map[attachment.parent_type])
01d1598a9f5a2526e8b49b34e7e07fa896dbaec9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/01d1598a9f5a2526e8b49b34e7e07fa896dbaec9/attachment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 67, 1945, 12, 2890, 16, 1111, 16, 6042, 4672, 4641, 67, 1458, 273, 13666, 16282, 4278, 296, 56, 16656, 1584, 67, 12145, 2187, 296, 13044, 4278, 296, 23109, 47, 45, 67, 12145, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 67, 1945, 12, 2890, 16, 1111, 16, 6042, 4672, 4641, 67, 1458, 273, 13666, 16282, 4278, 296, 56, 16656, 1584, 67, 12145, 2187, 296, 13044, 4278, 296, 23109, 47, 45, 67, 12145, ...
f.write('\0'* PAGESIZE) f.write('foo') f.write('\0'* (PAGESIZE-3) )
f.write(b'\0'* PAGESIZE) f.write(b'foo') f.write(b'\0'* (PAGESIZE-3) )
def test_basic(self): # Test mmap module on Unix systems and Windows
d5ab51392e332ac6a7a37b2fca62a82b1aee9ec7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/d5ab51392e332ac6a7a37b2fca62a82b1aee9ec7/test_mmap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 13240, 12, 2890, 4672, 468, 7766, 30749, 1605, 603, 9480, 14908, 471, 8202, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13240, 12, 2890, 4672, 468, 7766, 30749, 1605, 603, 9480, 14908, 471, 8202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return S_ERROR("Failed to remove all files found in the catalog") storageElements = gConfig.getValue('Resources/StorageElementGroups/Tier1_MC_M-DST',[])
return S_ERROR( "Failed to remove all files found in the catalog" ) storageElements = gConfig.getValue( 'Resources/StorageElementGroups/Tier1_MC_M-DST', [] )
def __cleanDirectory(self,dir): res = self.__verifyOperationPermission(dir) if not res['OK']: return res if not res['Value']: errStr = "ReplicaManager.__cleanDirectory: Write access not permitted for this credential." gLogger.error(errStr,dir) return S_ERROR(errStr) res = self.__getCatalogDirectoryContents([dir]) if not res['OK']: return res filesFound = res['Value'].keys() if filesFound: gLogger.info("Attempting to remove %d files from the catalog and storage" % len(filesFound)) res = self.removeFile(filesFound) if not res['OK']: return res for lfn,reason in res['Value']['Failed'].items(): gLogger.error("Failed to remove file found in the catalog","%s %s" % (lfn,reason)) if res['Value']['Failed']: return S_ERROR("Failed to remove all files found in the catalog") storageElements = gConfig.getValue('Resources/StorageElementGroups/Tier1_MC_M-DST',[]) # Have to add some additional storage elements because: # 1: CNAF has to use two different SE types # 2: CNAF has to use different namespace for different rentention storageElements.extend(['CNAF_MC-DST','CNAF-RAW']) failed = False for storageElement in sortList(storageElements): res = self.__removeStorageDirectory(dir,storageElement) if not res['OK']: failed = True if failed: return S_ERROR("Failed to clean storage directory at all SEs") return S_OK()
9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 6200, 2853, 12, 2890, 16, 1214, 4672, 400, 273, 365, 16186, 8705, 2988, 5041, 12, 1214, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, 400, 309, 486, 400, 3292, 620, 3546, 30, 393...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6200, 2853, 12, 2890, 16, 1214, 4672, 400, 273, 365, 16186, 8705, 2988, 5041, 12, 1214, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, 400, 309, 486, 400, 3292, 620, 3546, 30, 393...
def encode_cdata(s): return "<![CDATA[" + saxutils.escape(s.encode("utf-8")) + "]]>"
def write_item_XML(e, outfile, reset_learning_data=False): def encode_cdata(s): return "<![CDATA[" + saxutils.escape(s.encode("utf-8")) + "]]>" if reset_learning_data == False: print >> outfile, "<item id=\""+str(e.id) + "\"" \ + " gr=\""+str(e.grade) + "\"" \ + " e=\""+ "%.3f" % e.easiness + "\"" \ + " ac_rp=\""+str(e.acq_reps) + "\"" \ + " rt_rp=\""+str(e.ret_reps) + "\"" \ + " lps=\""+str(e.lapses) + "\"" \ + " ac_rp_l=\""+str(e.acq_reps_since_lapse) + "\"" \ + " rt_rp_l=\""+str(e.ret_reps_since_lapse) + "\"" \ + " l_rp=\""+str(e.last_rep) + "\"" \ + " n_rp=\""+str(e.next_rep) + "\">" else: print >> outfile, "<item>" print >> outfile, " <cat>" + encode_cdata(e.cat.name) + "</cat>" print >> outfile, " <Q>" + encode_cdata(e.q) + "</Q>" print >> outfile, " <A>" + encode_cdata(e.a) + "</A>" print >> outfile, "</item>"
6a18a0a9121db417b88896f5f7dc917fdfe73c04 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1240/6a18a0a9121db417b88896f5f7dc917fdfe73c04/mnemosyne_core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 1726, 67, 4201, 12, 73, 16, 8756, 16, 2715, 67, 21455, 67, 892, 33, 8381, 4672, 225, 309, 2715, 67, 21455, 67, 892, 422, 1083, 30, 1172, 1671, 8756, 16, 3532, 1726, 612, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 1726, 67, 4201, 12, 73, 16, 8756, 16, 2715, 67, 21455, 67, 892, 33, 8381, 4672, 225, 309, 2715, 67, 21455, 67, 892, 422, 1083, 30, 1172, 1671, 8756, 16, 3532, 1726, 612, 13...
self.vboxlayout9.addWidget(self.radioButton_2) self.radioButton_3 = QtGui.QRadioButton(self.layoutWidget) self.radioButton_3.setObjectName("radioButton_3") self.vboxlayout9.addWidget(self.radioButton_3)
self.vboxlayout11.addWidget(self.radioButton_2) self.vboxlayout10.addWidget(self.groupBox_5)
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(QtCore.QSize(QtCore.QRect(0,0,776,532).size()).expandedTo(MainWindow.minimumSizeHint())) MainWindow.setWindowIcon(QtGui.QIcon(" "))
63111e1c9754b5d54a0f7495871ccaf05c2651b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1108/63111e1c9754b5d54a0f7495871ccaf05c2651b1/main_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 12740, 3829, 4672, 12740, 3829, 18, 542, 16707, 2932, 6376, 3829, 7923, 12740, 3829, 18, 15169, 12, 23310, 4670, 18, 53, 1225, 12, 23310, 4670, 18, 53, 6120, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3875, 13943, 12, 2890, 16, 12740, 3829, 4672, 12740, 3829, 18, 542, 16707, 2932, 6376, 3829, 7923, 12740, 3829, 18, 15169, 12, 23310, 4670, 18, 53, 1225, 12, 23310, 4670, 18, 53, 6120, 1...
modes.pop(MM_NETWORK_BAND_ANY)
modes.pop(MM_NETWORK_MODE_ANY)
def get_network_modes(self): """Returns the supported network modes""" modes = self.custom.conn_dict.keys() if MM_NETWORK_MODE_ANY in modes: modes.pop(MM_NETWORK_BAND_ANY) # cast it to UInt32 return defer.succeed(dbus.UInt32(sum(modes)))
187ca8e9f439ac5dbe67df2e89560ed1e50496f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12036/187ca8e9f439ac5dbe67df2e89560ed1e50496f7/middleware.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5185, 67, 19282, 12, 2890, 4672, 3536, 1356, 326, 3260, 2483, 12382, 8395, 12382, 273, 365, 18, 3662, 18, 4646, 67, 1576, 18, 2452, 1435, 309, 18295, 67, 28047, 67, 7038, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5185, 67, 19282, 12, 2890, 4672, 3536, 1356, 326, 3260, 2483, 12382, 8395, 12382, 273, 365, 18, 3662, 18, 4646, 67, 1576, 18, 2452, 1435, 309, 18295, 67, 28047, 67, 7038, 67, ...
if child is not item and child is not autostartMacro:
if child is not item and child.isDeactivatable:
def DoIt(): item.isEnabled = True wx.CallAfter(item.Enable, True) autostartMacro = item.document.autostartMacro for child in item.parent.childs: if child is not item and child is not autostartMacro: child.isEnabled = False wx.CallAfter(child.Enable, False)
0267a740c8f7191a04922b0afb4347b57f936787 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8076/0267a740c8f7191a04922b0afb4347b57f936787/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2256, 7193, 13332, 761, 18, 291, 1526, 273, 1053, 7075, 18, 1477, 4436, 12, 1726, 18, 8317, 16, 1053, 13, 2059, 669, 485, 17392, 273, 761, 18, 5457, 18, 5854, 669, 485, 17392, 364, 115...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2256, 7193, 13332, 761, 18, 291, 1526, 273, 1053, 7075, 18, 1477, 4436, 12, 1726, 18, 8317, 16, 1053, 13, 2059, 669, 485, 17392, 273, 761, 18, 5457, 18, 5854, 669, 485, 17392, 364, 115...
try: PeriodicTable.getElement(sym) except KeyError: print 'unknown element "',sym,'" in: ',card
try: PeriodicTable.getElement(sym) except: assy.w.history.message( redmsg( "Warning: Pdb file: unknown element %s in: %s" % (sym,card) ))
def _readpdb(assy, filename, isInsert = False): f=open(filename,"rU").readlines() dir, nodename = os.path.split (filename) if not isInsert: assy.filename=filename ndix={} mol=molecule(assy, nodename) for card in f: key=card[:6].lower().replace(" ", "") if key in ["atom", "hetatm"]: sym = capitalize(card[12:14].replace(" ", "").replace("_", "")) try: PeriodicTable.getElement(sym) except KeyError: print 'unknown element "',sym,'" in: ',card else: xyz = map(float, [card[30:38],card[38:46],card[46:54]]) n=int(card[6:11]) a=atom(sym, A(xyz), mol) ndix[n]=a elif key == "conect": a1=ndix[int(card[6:11])] for i in range(11, 70, 5): try: a2=ndix[int(card[i:i+5])] except ValueError: break mol.bond(a1, a2)
3c632856f218e8df8cff6eb05f22782775245dfe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/3c632856f218e8df8cff6eb05f22782775245dfe/fileIO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 17414, 12, 428, 93, 16, 1544, 16, 353, 4600, 273, 1083, 4672, 225, 284, 33, 3190, 12, 3459, 10837, 86, 57, 20387, 896, 3548, 1435, 225, 1577, 16, 14003, 1069, 273, 1140, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 17414, 12, 428, 93, 16, 1544, 16, 353, 4600, 273, 1083, 4672, 225, 284, 33, 3190, 12, 3459, 10837, 86, 57, 20387, 896, 3548, 1435, 225, 1577, 16, 14003, 1069, 273, 1140, 18, ...
refs = [node.getAttribute('href') for node in dom.getElementsByTagName('a')]
refs = [node.getAttribute('href') for node in dom.getElementsByTagName('a') if 'pypy' in node.getAttribute('href')]
def browse_nightly(branch, baseurl=BASEURL, override_xml=None): if override_xml is None: url = baseurl + branch + '/' xml = urllib2.urlopen(url).read() else: xml = override_xml dom = minidom.parseString(xml) refs = [node.getAttribute('href') for node in dom.getElementsByTagName('a')] # all refs are of form: pypy-{type}-{revision}-{platform}.tar.bz2 r = re.compile('pypy-c-([\w\d]+)-(\d+)-([\w\d]+).tar.bz2$') d = {} for ref in refs: kind, rev, platform = r.match(ref).groups() rev = int(rev) try: lastrev, _ = d[(kind, platform)] except KeyError: lastrev = -1 if rev > lastrev: d[(kind, platform)] = rev, ref return d
b53016ab8949ca7c46d7e18de13ae92ded4f9553 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/b53016ab8949ca7c46d7e18de13ae92ded4f9553/make_release.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21670, 67, 18840, 715, 12, 7500, 16, 25427, 33, 8369, 1785, 16, 3849, 67, 2902, 33, 7036, 4672, 309, 3849, 67, 2902, 353, 599, 30, 880, 273, 25427, 397, 3803, 397, 2023, 2025, 273, 115...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21670, 67, 18840, 715, 12, 7500, 16, 25427, 33, 8369, 1785, 16, 3849, 67, 2902, 33, 7036, 4672, 309, 3849, 67, 2902, 353, 599, 30, 880, 273, 25427, 397, 3803, 397, 2023, 2025, 273, 115...
self.negative_scale_label.set_text('%.2f' % -scale_y)
def user_changes_cb(self, widget): if self.block_user_changes_cb: return
fff4683d2057ad3731c93a7aa4f2bbc1e49251d5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7129/fff4683d2057ad3731c93a7aa4f2bbc1e49251d5/functionwindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 729, 67, 6329, 67, 7358, 12, 2890, 16, 3604, 4672, 309, 365, 18, 2629, 67, 1355, 67, 6329, 67, 7358, 30, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 729, 67, 6329, 67, 7358, 12, 2890, 16, 3604, 4672, 309, 365, 18, 2629, 67, 1355, 67, 6329, 67, 7358, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if 'BOOLEAN' not in sqlite.pragma_names:
if hasattr( sqlite, 'pragma_names') and 'BOOLEAN' not in sqlite.pragma_names:
def indexes( me, table): return table.indexes
d3c06fd5b181cdf1d6d7c6fda6e03bdb23984a1f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10808/d3c06fd5b181cdf1d6d7c6fda6e03bdb23984a1f/autoload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5596, 12, 1791, 16, 1014, 4672, 327, 1014, 18, 11265, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5596, 12, 1791, 16, 1014, 4672, 327, 1014, 18, 11265, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
def wrap_conn (self):
def wrap_conn(self):
def wrap_conn (self): try: self.sslconn = ssl.wrap_socket(self.sock, server_side=True, certfile=self.server.certificate, ssl_version=self.server.protocol, ca_certs=self.server.cacerts, cert_reqs=self.server.certreqs, ciphers=self.server.ciphers) except ssl.SSLError: # XXX Various errors can have happened here, for example # a mismatching protocol version, an invalid certificate, # or a low-level bug. This should be made more discriminating. if self.server.chatty: handle_error("\n server: bad connection attempt from " + str(self.sock.getpeername()) + ":\n") self.close() self.running = False self.server.stop() return False else: return True
0dd64f6a0e5850fce167a308c0d887027fbc21ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/0dd64f6a0e5850fce167a308c0d887027fbc21ee/test_ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2193, 67, 4646, 12, 2890, 4672, 775, 30, 365, 18, 8157, 4646, 273, 5832, 18, 4113, 67, 7814, 12, 2890, 18, 15031, 16, 1438, 67, 5564, 33, 5510, 16, 3320, 768, 33, 2890, 18, 3567, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2193, 67, 4646, 12, 2890, 4672, 775, 30, 365, 18, 8157, 4646, 273, 5832, 18, 4113, 67, 7814, 12, 2890, 18, 15031, 16, 1438, 67, 5564, 33, 5510, 16, 3320, 768, 33, 2890, 18, 3567, 18,...
def copy(self, cr, uid, id, default=None, context={}):
def copy(self, cr, uid, id, default=None, context=None):
def copy(self, cr, uid, id, default=None, context={}): user2copy = self.read(cr, uid, [id], ['login','name'])[0] if default is None: default = {} copy_pattern = _("%s (copy)") default.update(login=(copy_pattern % user2copy['login']), name=(copy_pattern % user2copy['name']), address_id=False, # avoid sharing the address of the copied user! ) return super(users, self).copy(cr, uid, id, default, context)
6f3ccc7c071dc17166464d303da93268e3b5a6b2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/6f3ccc7c071dc17166464d303da93268e3b5a6b2/res_user.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 805, 33, 7036, 16, 819, 33, 7036, 4672, 729, 22, 3530, 273, 365, 18, 896, 12, 3353, 16, 4555, 16, 306, 350, 6487, 10228, 5819, 17023,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1610, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 805, 33, 7036, 16, 819, 33, 7036, 4672, 729, 22, 3530, 273, 365, 18, 896, 12, 3353, 16, 4555, 16, 306, 350, 6487, 10228, 5819, 17023,...
if not hasattr(errno, 'EOPNOTSUPP') or why.errno != errno.EOPNOTSUPP:
if (not hasattr(errno, 'EOPNOTSUPP') or why.errno != errno.EOPNOTSUPP):
def copystat(src, dst): """Copy all stat info (mode bits, atime, mtime, flags) from src to dst""" st = os.stat(src) mode = stat.S_IMODE(st.st_mode) if hasattr(os, 'utime'): os.utime(dst, (st.st_atime, st.st_mtime)) if hasattr(os, 'chmod'): os.chmod(dst, mode) if hasattr(os, 'chflags') and hasattr(st, 'st_flags'): try: os.chflags(dst, st.st_flags) except OSError, why: if not hasattr(errno, 'EOPNOTSUPP') or why.errno != errno.EOPNOTSUPP: raise
2e7a9635fe2e1c995f360cbf64bc93b35c825a19 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/2e7a9635fe2e1c995f360cbf64bc93b35c825a19/shutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6529, 1094, 270, 12, 4816, 16, 3046, 4672, 3536, 2951, 777, 610, 1123, 261, 3188, 4125, 16, 622, 494, 16, 13158, 16, 2943, 13, 628, 1705, 358, 3046, 8395, 384, 273, 1140, 18, 5642, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6529, 1094, 270, 12, 4816, 16, 3046, 4672, 3536, 2951, 777, 610, 1123, 261, 3188, 4125, 16, 622, 494, 16, 13158, 16, 2943, 13, 628, 1705, 358, 3046, 8395, 384, 273, 1140, 18, 5642, 12,...
data = asTaggedArray(data, value)
data = asTaggedArray(data, list(value))
def xt_(self, lexeme): 'apply this for atomic data and arrays.' data = self._nextExprData(lexeme) if lexeme.hasAttr and lexeme.attrTypeCode == XT_LIST_TAG: for tag, value in lexeme.attr: if tag == 'dim': # the array has a defined shape data.shape = value elif tag == 'names': data = asTaggedArray(data, value) elif tag in ['dimnames', 'assign']: print 'Warning: applying LIST_TAG "%s" on array not yet implemented' % tag else: raise NotImplementedError('cannot apply tag "%s" on array' % tag) return data
3e66c7a7cf3384248fc78eb4b3b177eb3e6c2421 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8984/3e66c7a7cf3384248fc78eb4b3b177eb3e6c2421/rparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26508, 67, 12, 2890, 16, 5275, 4698, 4672, 296, 9010, 333, 364, 7960, 501, 471, 5352, 1093, 501, 273, 365, 6315, 4285, 4742, 751, 12, 4149, 4698, 13, 309, 5275, 4698, 18, 5332, 3843, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26508, 67, 12, 2890, 16, 5275, 4698, 4672, 296, 9010, 333, 364, 7960, 501, 471, 5352, 1093, 501, 273, 365, 6315, 4285, 4742, 751, 12, 4149, 4698, 13, 309, 5275, 4698, 18, 5332, 3843, 4...
env.Append(LINKFLAGS = "-Wl,-rpath-link -Wl,%s" % \ os.environ["LD_LIBRARY_PATH"])
env.Append(LINKFLAGS = ["-Wl,-rpath-link -Wl,%s" % os.environ["LD_LIBRARY_PATH"]])
def IsGcc(context): context.Message("Checking if CC is really gcc...") result = context.TryAction(["%s --help | grep gcc" % env['CC']])[0] context.Result(result) return result
50ba4e889e3d144aba422fb2a117a16bf0be3173 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6561/50ba4e889e3d144aba422fb2a117a16bf0be3173/SConsUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2585, 43, 952, 12, 2472, 4672, 819, 18, 1079, 2932, 14294, 309, 225, 16525, 353, 8654, 314, 952, 7070, 13, 563, 273, 819, 18, 7833, 1803, 3816, 28385, 87, 1493, 5201, 571, 23366, 314, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2585, 43, 952, 12, 2472, 4672, 819, 18, 1079, 2932, 14294, 309, 225, 16525, 353, 8654, 314, 952, 7070, 13, 563, 273, 819, 18, 7833, 1803, 3816, 28385, 87, 1493, 5201, 571, 23366, 314, ...
sys.stderr.write("%s: %s\n" % (sys.argv[0], msg))
print >> sys.stderr, "%s: %s" % (sys.argv[0], msg)
def _err_exit(msg): sys.stderr.write("%s: %s\n" % (sys.argv[0], msg)) sys.exit(1)
894961335102d1da3e013a6c403542d89fcb4d40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/894961335102d1da3e013a6c403542d89fcb4d40/trace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 370, 67, 8593, 12, 3576, 4672, 1172, 1671, 2589, 18, 11241, 16, 2213, 87, 30, 738, 87, 6, 738, 261, 9499, 18, 19485, 63, 20, 6487, 1234, 13, 2589, 18, 8593, 12, 21, 13, 225, 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, 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, 370, 67, 8593, 12, 3576, 4672, 1172, 1671, 2589, 18, 11241, 16, 2213, 87, 30, 738, 87, 6, 738, 261, 9499, 18, 19485, 63, 20, 6487, 1234, 13, 2589, 18, 8593, 12, 21, 13, 225, 2...
class SMTPRecipientsRefused(SMTPResponseException):
class SMTPRecipientsRefused(SMTPException):
def __init__(self, code, msg, sender): self.smtp_code = code self.smtp_error = msg self.sender = sender self.args = (code, msg, sender)
2d5c062ad997249deadaee3127fec469f314848b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2d5c062ad997249deadaee3127fec469f314848b/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 981, 16, 1234, 16, 5793, 4672, 365, 18, 20278, 67, 710, 273, 981, 365, 18, 20278, 67, 1636, 273, 1234, 365, 18, 15330, 273, 5793, 365, 18, 1968, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 981, 16, 1234, 16, 5793, 4672, 365, 18, 20278, 67, 710, 273, 981, 365, 18, 20278, 67, 1636, 273, 1234, 365, 18, 15330, 273, 5793, 365, 18, 1968, 273, 2...
permutation objects. ::
permutation objects::
def PermutationGroup(gens=None, gap_group=None, canonicalize=True): """ Return the permutation group associated to `x` (typically a list of generators). INPUT: - ``gens`` - list of generators - ``gap_group`` - a gap permutation group - ``canonicalize`` - bool (default: True), if True sort generators and remove duplicates OUTPUT: a permutation group EXAMPLES:: sage: G = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]]) sage: G Permutation Group with generators [(3,4), (1,2,3)(4,5)] We can also make permutation groups from PARI groups:: sage: H = pari('x^4 - 2*x^3 - 2*x + 1').polgalois() sage: G = PariGroup(H, 4); G PARI group [8, -1, 3, "D(4)"] of degree 4 sage: H = PermutationGroup(G); H # optional - database_gap Transitive group number 3 of degree 4 sage: H.gens() # optional - database_gap [(1,2,3,4), (1,3)] We can also create permutation groups whose generators are Gap permutation objects. :: sage: p = gap('(1,2)(3,7)(4,6)(5,8)'); p (1,2)(3,7)(4,6)(5,8) sage: PermutationGroup([p]) Permutation Group with generators [(1,2)(3,7)(4,6)(5,8)] EXAMPLES: There is an underlying gap object that implements each permutation group. :: sage: G = PermutationGroup([[(1,2,3,4)]]) sage: G._gap_() Group( [ (1,2,3,4) ] ) sage: gap(G) Group( [ (1,2,3,4) ] ) sage: gap(G) is G._gap_() True sage: G = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]]) sage: current_randstate().set_seed_gap() sage: G._gap_().DerivedSeries() [ Group( [ (3,4), (1,2,3)(4,5) ] ), Group( [ (1,5)(3,4), (1,5)(2,4), (1,5,3) ] ) ] TESTS:: sage: PermutationGroup(SymmetricGroup(5)) Traceback (most recent call last): ... TypeError: gens must be a tuple, list, or GapElement """ if not is_ExpectElement(gens) and hasattr(gens, '_permgroup_'): return gens._permgroup_() if gens is not None and not isinstance(gens, (tuple,list, GapElement)): raise TypeError, "gens must be a tuple, list, or GapElement" return PermutationGroup_generic(gens=gens, gap_group=gap_group, canonicalize=canonicalize)
1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13813, 9245, 1114, 12, 23730, 33, 7036, 16, 9300, 67, 1655, 33, 7036, 16, 25839, 33, 5510, 4672, 3536, 2000, 326, 17440, 1041, 3627, 358, 1375, 92, 68, 261, 12846, 6478, 279, 666, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13813, 9245, 1114, 12, 23730, 33, 7036, 16, 9300, 67, 1655, 33, 7036, 16, 25839, 33, 5510, 4672, 3536, 2000, 326, 17440, 1041, 3627, 358, 1375, 92, 68, 261, 12846, 6478, 279, 666, 434, ...
sage: sr._insert_matrix_into_matrix(A,B,1,1)
sage: sr._insert_matrix_into_matrix(A, B, 1, 1)
def _insert_matrix_into_matrix(self, dst, src, row, col): """ Insert matrix src into matrix dst starting at row and col.
cd82551727ddbae04c5b28f55b59ec14654a84ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/cd82551727ddbae04c5b28f55b59ec14654a84ab/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6387, 67, 5667, 67, 18591, 67, 5667, 12, 2890, 16, 3046, 16, 1705, 16, 1027, 16, 645, 4672, 3536, 8040, 3148, 1705, 1368, 3148, 3046, 5023, 622, 1027, 471, 645, 18, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6387, 67, 5667, 67, 18591, 67, 5667, 12, 2890, 16, 3046, 16, 1705, 16, 1027, 16, 645, 4672, 3536, 8040, 3148, 1705, 1368, 3148, 3046, 5023, 622, 1027, 471, 645, 18, 2, -100, -100,...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 407) else quickfix.DoubleField.__init__(self, 407, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 8063, 27, 13, 469, 9549, 904, 18, 5265, 974, 16186, 2738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 8063, 27, 13, 469, 9549, 904, 18, 5265, 974, 16186, 2738, ...
if url.scheme == "" or url.scheme == "http": host = url.hostname port = url.port if url.username != None: self.headers["Proxy-authorization"] = "Basic " + base64.encodestring(url.username+':'+url.password) + "\r\n"
if url[0] == "" or url[0] == "http": port = httplib.HTTP_PORT if url[1].find("@") != -1: host = url[1].split("@", 2)[1] else: host = url[1] try: if url.port != None: port = url.port if url.username != None: self.headers["Proxy-authorization"] = "Basic " + base64.encodestring(url.username+':'+url.password) + "\r\n" except AttributeError: pass
def connect(self, host, port=ftplib.FTP_PORT): if FTP_PROXY != "": # parse proxy URL url = urlparse.urlparse(FTP_PROXY) if url.scheme == "" or url.scheme == "http": host = url.hostname port = url.port if url.username != None: self.headers["Proxy-authorization"] = "Basic " + base64.encodestring(url.username+':'+url.password) + "\r\n" self.conn = httplib.HTTPConnection(host, port) else: raise AssertionError, _("Transport not supported for FTP_PROXY, %s") % url.scheme
462a6dbb41e9f4cb8d539c7e4487477f3110cbcb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6425/462a6dbb41e9f4cb8d539c7e4487477f3110cbcb/download.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 12, 2890, 16, 1479, 16, 1756, 33, 1222, 6673, 18, 17104, 67, 6354, 4672, 309, 19324, 67, 16085, 480, 1408, 30, 468, 1109, 2889, 1976, 880, 273, 15185, 18, 718, 2670, 12, 17104, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 12, 2890, 16, 1479, 16, 1756, 33, 1222, 6673, 18, 17104, 67, 6354, 4672, 309, 19324, 67, 16085, 480, 1408, 30, 468, 1109, 2889, 1976, 880, 273, 15185, 18, 718, 2670, 12, 17104, 6...
_DebugFormatter = logging.Formatter("[%(asctime)s.%(msecs)d]: %(message)s", datefmt="%H:%M:%S")
def Initialize(): # # Since we use different format to log different levels of message into differen # place (stdout or stderr), we have to use different "Logger" object to do this. # # For DEBUG level (All DEBUG_0~9 are applicable) _DebugLogger.setLevel(INFO) _DebugChannel = logging.StreamHandler(sys.stdout) _DebugFormatter = logging.Formatter("[%(asctime)s.%(msecs)d]: %(message)s", datefmt="%H:%M:%S") _DebugChannel.setFormatter(_DebugFormatter) _DebugLogger.addHandler(_DebugChannel) # For VERBOSE, INFO, WARN level _InfoLogger.setLevel(INFO) _InfoChannel = logging.StreamHandler(sys.stdout) _InfoFormatter = logging.Formatter("%(message)s") _InfoChannel.setFormatter(_InfoFormatter) _InfoLogger.addHandler(_InfoChannel) # For ERROR level _ErrorLogger.setLevel(INFO) _ErrorCh = logging.StreamHandler(sys.stderr) _ErrorFormatter = logging.Formatter("%(message)s") _ErrorCh.setFormatter(_ErrorFormatter) _ErrorLogger.addHandler(_ErrorCh)
b937d16b0362c062c4b3fa33576ac7e3564bb22f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/914/b937d16b0362c062c4b3fa33576ac7e3564bb22f/EdkLogger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9190, 13332, 468, 468, 7897, 732, 999, 3775, 740, 358, 613, 3775, 7575, 434, 883, 1368, 15221, 275, 468, 3166, 261, 10283, 578, 4514, 3631, 732, 1240, 358, 999, 3775, 315, 3328, 6, 733, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9190, 13332, 468, 468, 7897, 732, 999, 3775, 740, 358, 613, 3775, 7575, 434, 883, 1368, 15221, 275, 468, 3166, 261, 10283, 578, 4514, 3631, 732, 1240, 358, 999, 3775, 315, 3328, 6, 733, ...
self.setDb()
def setUp(self): super(BantrackerTestCase, self).setUp() pluginConf.request.setValue(False) # disable comments pluginConf.request.ignore.set('') pluginConf.request.forward.set('') pluginConf.request.review.setValue(1.0/86400) # one second self.setDb() # Bantracker for some reason doesn't use Supybot's own methods for check capabilities, # so it doesn't have a clue about testing and screws my tests by default. # This would fix it until I bring myself to take a look cb = self.getCallback() f = cb.check_auth def test_check_auth(*args, **kwargs): if world.testing: return True else: return f(*args, **kwargs) cb.check_auth = test_check_auth
62201d9a1258b15db6e5c689b78ff52ecf0a1d20 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3124/62201d9a1258b15db6e5c689b78ff52ecf0a1d20/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 2240, 12, 38, 304, 16543, 4709, 2449, 16, 365, 2934, 542, 1211, 1435, 1909, 3976, 18, 2293, 18, 542, 620, 12, 8381, 13, 468, 4056, 5678, 1909, 3976, 18, 2293, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 2240, 12, 38, 304, 16543, 4709, 2449, 16, 365, 2934, 542, 1211, 1435, 1909, 3976, 18, 2293, 18, 542, 620, 12, 8381, 13, 468, 4056, 5678, 1909, 3976, 18, 2293, 18...
if __debug__: onScreenDebug.clear()
onScreenDebug.clear()
def igLoop(self, state): if __debug__: # We render the watch variables for the onScreenDebug as soon # as we reasonably can before the renderFrame(). onScreenDebug.render()
ca447203a5b95d1efa632ba76d5fbd0fd5ee75d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/ca447203a5b95d1efa632ba76d5fbd0fd5ee75d4/ShowBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18158, 6452, 12, 2890, 16, 919, 4672, 309, 1001, 4148, 972, 30, 468, 1660, 1743, 326, 4267, 3152, 364, 326, 603, 7956, 2829, 487, 17136, 468, 487, 732, 3971, 6906, 848, 1865, 326, 1743, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18158, 6452, 12, 2890, 16, 919, 4672, 309, 1001, 4148, 972, 30, 468, 1660, 1743, 326, 4267, 3152, 364, 326, 603, 7956, 2829, 487, 17136, 468, 487, 732, 3971, 6906, 848, 1865, 326, 1743, ...
Gstr = str(gap(G)) vstr = str(gap(right))
Gstr = str(gap(G)) if not(type(right) == list): v = right.list() else: v = right vstr = str(gap(v))
def decode(self, right): r""" Wraps GUAVA's Decodeword. Hamming codes have a special decoding algorithm. Otherwise, syndrome decoding is used.
5e69e7357f9aea2b3d8f499f067eb772dd3d8397 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/5e69e7357f9aea2b3d8f499f067eb772dd3d8397/linear_code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 2890, 16, 2145, 4672, 436, 8395, 678, 7506, 611, 57, 15705, 1807, 6209, 1095, 18, 670, 301, 11987, 6198, 1240, 279, 4582, 13547, 4886, 18, 5272, 16, 6194, 72, 10896, 13547, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 2890, 16, 2145, 4672, 436, 8395, 678, 7506, 611, 57, 15705, 1807, 6209, 1095, 18, 670, 301, 11987, 6198, 1240, 279, 4582, 13547, 4886, 18, 5272, 16, 6194, 72, 10896, 13547, 353...
representative of an element of SL_2(Z) modulo G. This function specfically returns data needed for the first part of the reduction step (the first coordinate).
representative of an element of SL_2(Z) modulo G. This function specifically returns data needed for the first part of the reduction step (the first coordinate).
def _coset_reduction_data_first_coord(G): """ Compute data used for determining the canonical coset representative of an element of SL_2(Z) modulo G. This function specfically returns data needed for the first part of the reduction step (the first coordinate).
2754ca38f80e86b93c864b0ae7696e60d5aebcad /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2754ca38f80e86b93c864b0ae7696e60d5aebcad/congroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14445, 278, 67, 1118, 4062, 67, 892, 67, 3645, 67, 5732, 12, 43, 4672, 3536, 8155, 501, 1399, 364, 23789, 326, 7378, 4987, 278, 23174, 434, 392, 930, 434, 348, 48, 67, 22, 12, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14445, 278, 67, 1118, 4062, 67, 892, 67, 3645, 67, 5732, 12, 43, 4672, 3536, 8155, 501, 1399, 364, 23789, 326, 7378, 4987, 278, 23174, 434, 392, 930, 434, 348, 48, 67, 22, 12, 6...
parser.add_option("-C", "--console", action="store_true", dest="console", default=True, help="print to stdout [default]")
parser.add_option("-C", "--console", action="store_true", dest="console", default=True, help="print to console [default]")
def run(self, method): self.generate() self.dump(method)
8505aa412496bf1438c43b2c22bd794ad044a9fe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/600/8505aa412496bf1438c43b2c22bd794ad044a9fe/process.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 707, 4672, 365, 18, 7163, 1435, 365, 18, 8481, 12, 2039, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 707, 4672, 365, 18, 7163, 1435, 365, 18, 8481, 12, 2039, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.valueOf_ = valueOf_ if mixedclass_ is None: self.mixedclass_ = MixedContainer else: self.mixedclass_ = mixedclass_ if content_ is None: self.content_ = [] else: self.content_ = content_ self.valueOf_ = valueOf_
def __init__(self, about=None, meta=None, label=None, id=None, symbol=None, member=None, valueOf_=None, mixedclass_=None, content_=None): super(AbstractUncertainStateSet, self).__init__(about, meta, label, id, symbol, valueOf_, mixedclass_, content_, ) if member is None: self.member = [] else: self.member = member self.valueOf_ = valueOf_ if mixedclass_ is None: self.mixedclass_ = MixedContainer else: self.mixedclass_ = mixedclass_ if content_ is None: self.content_ = [] else: self.content_ = content_ self.valueOf_ = valueOf_
9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/9c12e50d449fa27d6f8f3415ece228ae97bb0266/_nexml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2973, 33, 7036, 16, 2191, 33, 7036, 16, 1433, 33, 7036, 16, 612, 33, 7036, 16, 3273, 33, 7036, 16, 3140, 33, 7036, 16, 4323, 67, 33, 7036, 16, 7826, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2973, 33, 7036, 16, 2191, 33, 7036, 16, 1433, 33, 7036, 16, 612, 33, 7036, 16, 3273, 33, 7036, 16, 3140, 33, 7036, 16, 4323, 67, 33, 7036, 16, 7826, ...
return timedelta(*dsm)
return datetime.timedelta(*dsm)
def divide_timedelta_float(td, divisor): """ Divide a timedelta by a float value >>> divide_timedelta_float(datetime.timedelta(days=1), 2) datetime.timedelta(0, 43200) """ # td is comprised of days, seconds, microseconds dsm = [getattr(td, attr) for attr in ('days', 'seconds', 'microseconds')] dsm = map(lambda elem: elem/divisor, dsm) return timedelta(*dsm)
5971fc02a0c7ca389c576a7537795deef99cd6a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/865/5971fc02a0c7ca389c576a7537795deef99cd6a0/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12326, 67, 31295, 67, 5659, 12, 4465, 16, 15013, 4672, 3536, 21411, 831, 279, 10661, 635, 279, 1431, 460, 4080, 12326, 67, 31295, 67, 5659, 12, 6585, 18, 31295, 12, 9810, 33, 21, 3631, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12326, 67, 31295, 67, 5659, 12, 4465, 16, 15013, 4672, 3536, 21411, 831, 279, 10661, 635, 279, 1431, 460, 4080, 12326, 67, 31295, 67, 5659, 12, 6585, 18, 31295, 12, 9810, 33, 21, 3631, ...
start = min(start, len(lines) - context)
start = max(0, min(start, len(lines) - context))
def getframeinfo(frame, context=1): """Get information about a frame or traceback object. A tuple of five things is returned: the filename, the line number of the current line, the function name, a list of lines of context from the source code, and the index of the current line within that list. The optional second argument specifies the number of lines of context to return, which are centered around the current line.""" if istraceback(frame): lineno = frame.tb_lineno frame = frame.tb_frame else: lineno = frame.f_lineno if not isframe(frame): raise TypeError('arg is not a frame or traceback object') filename = getsourcefile(frame) or getfile(frame) if context > 0: start = lineno - 1 - context//2 try: lines, lnum = findsource(frame) except IOError: lines = index = None else: start = max(start, 1) start = min(start, len(lines) - context) lines = lines[start:start+context] index = lineno - 1 - start else: lines = index = None return (filename, lineno, frame.f_code.co_name, lines, index)
5e01e6607b6cc210e7647863f716ec06078d2389 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/5e01e6607b6cc210e7647863f716ec06078d2389/inspect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 3789, 1376, 12, 3789, 16, 819, 33, 21, 4672, 3536, 967, 1779, 2973, 279, 2623, 578, 10820, 733, 18, 225, 432, 3193, 434, 23714, 9198, 353, 2106, 30, 326, 1544, 16, 326, 980, 1300,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3789, 1376, 12, 3789, 16, 819, 33, 21, 4672, 3536, 967, 1779, 2973, 279, 2623, 578, 10820, 733, 18, 225, 432, 3193, 434, 23714, 9198, 353, 2106, 30, 326, 1544, 16, 326, 980, 1300,...
if (CALIBRATE_WITH_FAILED_CALIBRATION_DATA):
if (CALIBRATE_WITH_FAILED_CALIBRATION_DATA and self.motionPlusPresent()):
def zeroDevice(self): """Find the at-rest values of the accelerometer and the gyro.
014c57bd25a3cf37d5eafc34366f656ac62b1370 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/917/014c57bd25a3cf37d5eafc34366f656ac62b1370/WIIMote.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3634, 3654, 12, 2890, 4672, 3536, 3125, 326, 622, 17, 8792, 924, 434, 326, 15153, 264, 362, 847, 471, 326, 25295, 303, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3634, 3654, 12, 2890, 4672, 3536, 3125, 326, 622, 17, 8792, 924, 434, 326, 15153, 264, 362, 847, 471, 326, 25295, 303, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
(revision, self._path))
(revision, self._relpath))
def _fetch(self, source, revision): if not os.path.exists('%s/.git' % self._path): self._ui.status(_('cloning subrepo %s\n') % self._relpath) self._gitnodir(['clone', source, self._path]) if self._githavelocally(revision): return self._ui.status(_('pulling subrepo %s\n') % self._relpath) # first try from origin self._gitcommand(['fetch']) if self._githavelocally(revision): return # then try from known subrepo source self._gitcommand(['fetch', source]) if not self._githavelocally(revision): raise util.Abort(_("revision %s does not exist in subrepo %s\n") % (revision, self._path))
51b86ca31bbe6bb9d97c098b43cb9fa45776b689 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/51b86ca31bbe6bb9d97c098b43cb9fa45776b689/subrepo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5754, 12, 2890, 16, 1084, 16, 6350, 4672, 309, 486, 1140, 18, 803, 18, 1808, 29909, 87, 15865, 6845, 11, 738, 365, 6315, 803, 4672, 365, 6315, 4881, 18, 2327, 24899, 2668, 830, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5754, 12, 2890, 16, 1084, 16, 6350, 4672, 309, 486, 1140, 18, 803, 18, 1808, 29909, 87, 15865, 6845, 11, 738, 365, 6315, 803, 4672, 365, 6315, 4881, 18, 2327, 24899, 2668, 830, 22...
number = baseGlyphsNewNames[oldname] adjustGlyphHeight(oldname, -1)
number = baseGlyphsNewNames[oldname][0] adjustGlyphHeight(oldname, baseGlyphsNewNames[oldname][1])
def renameBaseGlyphs(): if fontName=="gregoria": for oldname in baseGlyphs: number = baseGlyphsNewNames[oldname] adjustGlyphHeight(oldname, -1) renameGlyph(oldname, "_%04d" % number) renameGlyph('inclinatum', '_0019') adjustGlyphHeight('_0019', -1) renameGlyph('punctum', '_0017') adjustGlyphHeight('_0017', -1) renameGlyph('s', '_0020') adjustGlyphHeight('_0020', -1) elif fontName=="gregoria-auctae": renameGlyph('inclinatum', '_0031') adjustGlyphHeight('_0031', -1) renameGlyph('punctum', '_0073') adjustGlyphHeight('_0073', -1) renameGlyph('s', '_0021') adjustGlyphHeight('_0021', -1) else: renameGlyph('inclinatum', '_0032') adjustGlyphHeight('_0032', -1) deleteGlyph('s') deleteGlyph('punctum')
5793a8d9c69a539fd28403473bebf475356c4700 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7096/5793a8d9c69a539fd28403473bebf475356c4700/gregoria2gregorio.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6472, 2171, 25399, 13332, 309, 3512, 461, 31713, 2810, 280, 1155, 6877, 364, 1592, 529, 316, 1026, 25399, 30, 1300, 273, 1026, 25399, 1908, 1557, 63, 1673, 529, 6362, 20, 65, 5765, 15141, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6472, 2171, 25399, 13332, 309, 3512, 461, 31713, 2810, 280, 1155, 6877, 364, 1592, 529, 316, 1026, 25399, 30, 1300, 273, 1026, 25399, 1908, 1557, 63, 1673, 529, 6362, 20, 65, 5765, 15141, ...