rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
sequencelengths 256
256
| attention_mask
sequencelengths 256
256
| labels
sequencelengths 128
128
|
---|---|---|---|---|---|---|
sa.add(wikipedia.PageLink(wikipedia.mylang, (date.date_format[startmonth][wikipedia.mylang]) % day)) | sa.add(wikipedia.PageLink(wikipedia.mylang, (date.date_format[month][wikipedia.mylang]) % day)) | def ReadWarnfile(fn, sa): import re R=re.compile(r'WARNING: ([^\[]*):\[\[([^\[]+)\]\]([^\[]+)\[\[([^\[]+):([^\[]+)\]\]') f=open(fn) hints={} for line in f.readlines(): m=R.search(line) if m: #print "DBG>",line if m.group(1)==wikipedia.mylang: #print m.group(1), m.group(2), m.group(3), m.group(4), m.group(5) if not hints.has_key(m.group(2)): hints[m.group(2)]=[] #print m.group(3) if m.group(3) != ' links to incorrect ': try: hints[m.group(2)].append('%s:%s'%(m.group(4),wikipedia.link2url(m.group(5),m.group(4)))) except wikipedia.Error: print "DBG> Failed to add", line #print "DBG> %s : %s" % (m.group(2), hints[m.group(2)]) f.close() for pagename in hints: pl = wikipedia.PageLink(wikipedia.mylang, pagename) sa.add(pl, hints = hints[pagename]) | 8ffb9b713792c7bf26176954fe9e3b8ccfb783e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/8ffb9b713792c7bf26176954fe9e3b8ccfb783e0/interwiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2720,
3160,
768,
12,
4293,
16,
7864,
4672,
1930,
283,
534,
33,
266,
18,
11100,
12,
86,
11,
9511,
30,
261,
15441,
63,
5772,
4672,
64,
7438,
63,
19042,
63,
16004,
13944,
65,
19042,
63,
16004,
7438,
63,
19042,
63,
3737,
4672,
19042,
63,
16004,
13944,
3864,
13,
284,
33,
3190,
12,
4293,
13,
13442,
12938,
364,
980,
316,
284,
18,
896,
3548,
13332,
312,
33,
54,
18,
3072,
12,
1369,
13,
309,
312,
30,
468,
1188,
315,
2290,
43,
2984,
16,
1369,
309,
312,
18,
1655,
12,
21,
13,
631,
11999,
13744,
18,
4811,
4936,
30,
468,
1188,
312,
18,
1655,
12,
21,
3631,
312,
18,
1655,
12,
22,
3631,
312,
18,
1655,
12,
23,
3631,
312,
18,
1655,
12,
24,
3631,
312,
18,
1655,
12,
25,
13,
309,
486,
13442,
18,
5332,
67,
856,
12,
81,
18,
1655,
12,
22,
3719,
30,
13442,
63,
81,
18,
1655,
12,
22,
25887,
33,
8526,
468,
1188,
312,
18,
1655,
12,
23,
13,
309,
312,
18,
1655,
12,
23,
13,
480,
296,
4716,
358,
11332,
4290,
775,
30,
13442,
63,
81,
18,
1655,
12,
22,
13,
8009,
6923,
29909,
87,
5319,
87,
11,
17105,
81,
18,
1655,
12,
24,
3631,
11999,
13744,
18,
1232,
22,
718,
12,
81,
18,
1655,
12,
25,
3631,
81,
18,
1655,
12,
24,
3719,
3719,
1335,
21137,
18,
668,
30,
1172,
315,
2290,
43,
34,
11175,
358,
527,
3113,
980,
468,
1188,
315,
2290,
43,
34,
738,
87,
294,
738,
87,
6,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2720,
3160,
768,
12,
4293,
16,
7864,
4672,
1930,
283,
534,
33,
266,
18,
11100,
12,
86,
11,
9511,
30,
261,
15441,
63,
5772,
4672,
64,
7438,
63,
19042,
63,
16004,
13944,
65,
19042,
63,
16004,
7438,
63,
19042,
63,
3737,
4672,
19042,
63,
16004,
13944,
3864,
13,
284,
33,
3190,
12,
4293,
13,
13442,
12938,
364,
980,
316,
284,
18,
896,
3548,
13332,
312,
33,
54,
18,
3072,
12,
1369,
13,
309,
312,
30,
468,
1188,
315,
2290,
43,
2984,
16,
1369,
309,
312,
18,
1655,
12,
21,
13,
631,
11999,
13744,
18,
4811,
4936,
30,
468,
1188,
312,
18,
1655,
12,
21,
3631,
312,
18,
1655,
12,
22,
3631,
312,
18,
1655,
12,
23,
3631,
312,
2
] |
Returns NetworkX information about the graph or the given node. | Returns NetworkX information about the graph or the given vertex. | def networkx_info(self, vertex=None): """ Returns NetworkX information about the graph or the given node. | 139028392b54ae237314b7536b21897e9b1d7ed3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/139028392b54ae237314b7536b21897e9b1d7ed3/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2483,
92,
67,
1376,
12,
2890,
16,
5253,
33,
7036,
4672,
3536,
2860,
5128,
60,
1779,
2973,
326,
2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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2483,
92,
67,
1376,
12,
2890,
16,
5253,
33,
7036,
4672,
3536,
2860,
5128,
60,
1779,
2973,
326,
2667,
578,
326,
864,
756,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
os.mkdir(filesdir) | mkdir(filesdir) | def okBtnClicked(self): filesdir = getFilesDir() if not path.exists(filesdir): os.mkdir(filesdir) url = self.images[self.img_index] [u,img_name] = url.rsplit("/",1) [name,ext] = img_name.rsplit(".",1) #get a unique file name if path.exists(filesdir+"/"+name+"."+ext): c = 1 while path.exists(filesdir+"/"+name+"-"+str(c)+"."+ext): c += 1 fn = filesdir+"/"+name+"-"+str(c)+"."+ext else: fn = filesdir+"/"+name+"."+ext print fn self.imageLabel.pixmap().save(fn) self.translation.imageUrl = fn self.close() | 604b58e43b0619d4b935f60336ef893de8f50831 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1692/604b58e43b0619d4b935f60336ef893de8f50831/google_images.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1529,
20541,
27633,
12,
2890,
4672,
1390,
1214,
273,
18262,
1621,
1435,
309,
486,
589,
18,
1808,
12,
2354,
1214,
4672,
6535,
12,
2354,
1214,
13,
880,
273,
365,
18,
7369,
63,
2890,
18,
6081,
67,
1615,
65,
306,
89,
16,
6081,
67,
529,
65,
273,
880,
18,
86,
4939,
2932,
19,
3113,
21,
13,
306,
529,
16,
408,
65,
273,
3774,
67,
529,
18,
86,
4939,
2932,
1199,
16,
21,
13,
225,
468,
588,
279,
3089,
585,
508,
309,
589,
18,
1808,
12,
2354,
1214,
9078,
4898,
15,
529,
9078,
1199,
15,
408,
4672,
276,
273,
404,
1323,
589,
18,
1808,
12,
2354,
1214,
9078,
4898,
15,
529,
9078,
10951,
15,
701,
12,
71,
13,
9078,
1199,
15,
408,
4672,
276,
1011,
404,
2295,
273,
1390,
1214,
9078,
4898,
15,
529,
9078,
10951,
15,
701,
12,
71,
13,
9078,
1199,
15,
408,
469,
30,
2295,
273,
1390,
1214,
9078,
4898,
15,
529,
9078,
1199,
15,
408,
225,
1172,
2295,
225,
365,
18,
2730,
2224,
18,
14861,
1458,
7675,
5688,
12,
4293,
13,
365,
18,
10173,
18,
2730,
1489,
273,
2295,
365,
18,
4412,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
63,
2890,
18,
6081,
67,
1615,
65,
306,
89,
16,
6081,
67,
529,
65,
273,
880,
18,
86,
4939,
2932,
19,
3113,
21,
13,
306,
529,
16,
408,
65,
273,
3774,
67,
529,
18,
86,
4939,
2932,
1199,
16,
21,
13,
225,
468,
588,
279,
3089,
585,
508,
309,
589,
18,
1808,
12,
2354,
1214,
9078,
4898,
15,
529,
9078,
1199,
15,
408,
4672,
276,
273,
404,
1323,
589,
18,
1808,
12,
2354,
1214,
9078,
4898,
15,
529,
9078,
10951,
15,
701,
12,
71,
13,
9078,
1199,
2
] |
company_contrib = 0 if line.company_contrib > line.total: company_contrib = line.total else: company_contrib = line.company_contrib | company_contrib = line.company_contrib | def verify_sheet(self, cr, uid, ids, context={}): move_pool = self.pool.get('account.move') movel_pool = self.pool.get('account.move.line') exp_pool = self.pool.get('hr.expense.expense') for slip in self.browse(cr,uid,ids): total_deduct = 0.0 line_ids = [] partner = False partner_id = False if not slip.employee_id.address_home_id: raise osv.except_osv(_('Integrity Error !'), _('Please defined the Employee Home Address Along with Partners !!')) if not slip.employee_id.address_home_id.partner_id: raise osv.except_osv(_('Integrity Error !'), _('Please defined the Partner in Home Address !!')) partner = slip.employee_id.address_home_id.partner_id partner_id = slip.employee_id.address_home_id.partner_id.id period_id = False if slip.period_id: period_id = slip.period_id.id else: fiscal_year_ids = self.pool.get('account.fiscalyear').search(cr, uid, []) if not fiscal_year_ids: raise osv.except_osv(_('Warning !'), _('Please define fiscal year for perticular contract')) fiscal_year_objs = self.pool.get('account.fiscalyear').read(cr, uid, fiscal_year_ids, ['date_start','date_stop']) year_exist = False for fiscal_year in fiscal_year_objs: if ((fiscal_year['date_start'] <= slip.date) and (fiscal_year['date_stop'] >= slip.date)): year_exist = True if not year_exist: raise osv.except_osv(_('Warning !'), _('Fiscal Year is not defined for slip date %s'%slip.date)) search_period = self.pool.get('account.period').search(cr,uid,[('date_start','<=',slip.date),('date_stop','>=',slip.date)]) if not search_period: raise osv.except_osv(_('Warning !'), _('Period is not defined for slip date %s'%slip.date)) period_id = search_period[0] move = { #'name': slip.name, 'journal_id': slip.journal_id.id, 'period_id': period_id, 'date': slip.date, 'ref':slip.number, 'narration': slip.name } move_id = move_pool.create(cr, uid, move) self.create_voucher(cr, uid, [slip.id], slip.name, move_id) line = { 'move_id':move_id, 'name': "By Basic Salary / " + slip.employee_id.name, 'date': slip.date, 'account_id': slip.employee_id.salary_account.id, 'debit': slip.basic, 'credit': 0.0, 'quantity':slip.working_days, 'journal_id': slip.journal_id.id, 'period_id': period_id, 'analytic_account_id': False, 'ref':slip.number } #Setting Analysis Account for Basic Salary if slip.employee_id.analytic_account: line['analytic_account_id'] = slip.employee_id.analytic_account.id move_line_id = movel_pool.create(cr, uid, line) line_ids += [move_line_id] line = { 'move_id':move_id, 'name': "To Basic Paysble Salary / " + slip.employee_id.name, 'partner_id': partner_id, 'date': slip.date, 'account_id': slip.employee_id.employee_account.id, 'debit': 0.0, 'quantity':slip.working_days, 'credit': slip.basic, 'journal_id': slip.journal_id.id, 'period_id': period_id, 'ref':slip.number } line_ids += [movel_pool.create(cr, uid, line)] for line in slip.line_ids: name = "[%s] - %s / %s" % (line.code, line.name, slip.employee_id.name) amount = line.total | 9cefb7520803ded7f648633ccca30e623a0dd192 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/9cefb7520803ded7f648633ccca30e623a0dd192/hr_payroll.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
67,
8118,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
225,
3635,
67,
6011,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
8501,
6134,
7344,
941,
67,
6011,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
8501,
18,
1369,
6134,
1329,
67,
6011,
273,
365,
18,
6011,
18,
588,
2668,
7256,
18,
338,
1907,
307,
18,
338,
1907,
307,
6134,
225,
364,
272,
3169,
316,
365,
18,
25731,
12,
3353,
16,
1911,
16,
2232,
4672,
2078,
67,
785,
853,
273,
374,
18,
20,
225,
980,
67,
2232,
273,
5378,
19170,
273,
1083,
19170,
67,
350,
273,
1083,
225,
309,
486,
272,
3169,
18,
351,
2817,
1340,
67,
350,
18,
2867,
67,
8712,
67,
350,
30,
1002,
1140,
90,
18,
14137,
67,
538,
90,
24899,
2668,
30669,
1068,
401,
19899,
389,
2668,
8496,
2553,
326,
512,
27520,
21321,
5267,
2262,
932,
598,
6393,
9646,
401,
5124,
3719,
225,
309,
486,
272,
3169,
18,
351,
2817,
1340,
67,
350,
18,
2867,
67,
8712,
67,
350,
18,
31993,
67,
350,
30,
1002,
1140,
90,
18,
14137,
67,
538,
90,
24899,
2668,
30669,
1068,
401,
19899,
389,
2668,
8496,
2553,
326,
6393,
1224,
316,
21321,
5267,
401,
5124,
3719,
225,
19170,
273,
272,
3169,
18,
351,
2817,
1340,
67,
350,
18,
2867,
67,
8712,
67,
350,
18,
31993,
67,
350,
19170,
67,
350,
273,
272,
3169,
18,
351,
2817,
1340,
67,
350,
18,
2867,
67,
8712,
67,
350,
18,
31993,
67,
350,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
67,
8118,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
225,
3635,
67,
6011,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
8501,
6134,
7344,
941,
67,
6011,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
8501,
18,
1369,
6134,
1329,
67,
6011,
273,
365,
18,
6011,
18,
588,
2668,
7256,
18,
338,
1907,
307,
18,
338,
1907,
307,
6134,
225,
364,
272,
3169,
316,
365,
18,
25731,
12,
3353,
16,
1911,
16,
2232,
4672,
2078,
67,
785,
853,
273,
374,
18,
20,
225,
980,
67,
2232,
273,
5378,
19170,
273,
1083,
19170,
67,
350,
273,
1083,
225,
309,
486,
272,
3169,
18,
351,
2817,
1340,
67,
350,
18,
2867,
67,
2
] |
from pypy import conftest tdir = udir.ensure("t", dir=True) dest = tdir.join("test_expect.py") dest.write(source) col = conftest.Module(dest, config="dummy") result = col.run() assert len(result) == 1 | passed, skipped, failed = sorter.countoutcomes() assert passed == 1 | def test_one(self): pass | bdadb575274ee4b0b5924254fc75663055032293 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/bdadb575274ee4b0b5924254fc75663055032293/test_pytestsupport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
476,
12,
2890,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
476,
12,
2890,
4672,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
mixinClass = self.stampMixinClass() mixinKind = mixinClass.getKind(self.itsView) stamped = item.isItemOf(mixinKind) if __debug__: looksStampedbyClass = isinstance(item, mixinClass) assert looksStampedbyClass == stamped, \ "Class/Kind mismatch! Item is class %s, kind %s; " \ "stamping with class %s, kind %s" % ( item.__class__.__name__, item.itsKind.itsName, mixinClass.__name__, mixinKind.itsName) self.widget.SetState("%s.%s" % (self.icon, stamped and "Stamped" or "Unstamped")) | if item is not None: mixinClass = self.stampMixinClass() mixinKind = mixinClass.getKind(self.itsView) stamped = item.isItemOf(mixinKind) if __debug__: looksStampedbyClass = isinstance(item, mixinClass) assert looksStampedbyClass == stamped, \ "Class/Kind mismatch! Item is class %s, kind %s; " \ "stamping with class %s, kind %s" % ( item.__class__.__name__, item.itsKind.itsName, mixinClass.__name__, mixinKind.itsName) self.widget.SetState("%s.%s" % (self.icon, stamped and "Stamped" or "Unstamped")) | def synchronizeWidget(self, useHints=False): super(DetailStampButton, self).synchronizeWidget(useHints) | 28605a8213a2f8559d4b40c08d40befb8025fccb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/28605a8213a2f8559d4b40c08d40befb8025fccb/Detail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16978,
4609,
12,
2890,
16,
999,
13368,
33,
8381,
4672,
2240,
12,
6109,
8860,
3616,
16,
365,
2934,
87,
2600,
554,
4609,
12,
1202,
13368,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16978,
4609,
12,
2890,
16,
999,
13368,
33,
8381,
4672,
2240,
12,
6109,
8860,
3616,
16,
365,
2934,
87,
2600,
554,
4609,
12,
1202,
13368,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.vibcarts.append(p[0:len(broken)/3]) | self.vibcarts.extend(p[0:len(broken)/3]) | def parse(self, fupdate=0.05, cupdate=0.002): """Extract information from the logfile.""" inputfile = utils.openlogfile(self.filename) if self.progress: inputfile.seek(0, 2) #go to end of file nstep = inputfile.tell() inputfile.seek(0) self.progress.initialize(nstep) oldstep = 0 optfinished = False # Flag that indicates whether it has reached the end of a geoopt for line in inputfile: if self.progress and random.random() < cupdate: step = inputfile.tell() if step != oldstep: self.progress.update(step, "Unsupported Information") oldstep = step if line[1:8] == "NAtoms=": | 37adb8d3cb9d170c545f9adaf1593e038281e07c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8167/37adb8d3cb9d170c545f9adaf1593e038281e07c/gaussianparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
284,
2725,
33,
20,
18,
6260,
16,
276,
2725,
33,
20,
18,
24908,
4672,
3536,
4976,
1779,
628,
326,
15204,
12123,
810,
768,
273,
2990,
18,
3190,
28806,
12,
2890,
18,
3459,
13,
225,
309,
365,
18,
8298,
30,
225,
810,
768,
18,
16508,
12,
20,
16,
576,
13,
468,
3240,
358,
679,
434,
585,
290,
4119,
273,
810,
768,
18,
88,
1165,
1435,
810,
768,
18,
16508,
12,
20,
13,
365,
18,
8298,
18,
11160,
12,
82,
4119,
13,
1592,
4119,
273,
374,
225,
2153,
13527,
273,
1083,
468,
9960,
716,
8527,
2856,
518,
711,
8675,
326,
679,
434,
279,
7856,
3838,
225,
364,
980,
316,
810,
768,
30,
225,
309,
365,
18,
8298,
471,
2744,
18,
9188,
1435,
411,
276,
2725,
30,
225,
2235,
273,
810,
768,
18,
88,
1165,
1435,
309,
2235,
480,
1592,
4119,
30,
365,
18,
8298,
18,
2725,
12,
4119,
16,
315,
8544,
15353,
7923,
1592,
4119,
273,
2235,
225,
309,
980,
63,
21,
30,
28,
65,
422,
315,
50,
14280,
1546,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
284,
2725,
33,
20,
18,
6260,
16,
276,
2725,
33,
20,
18,
24908,
4672,
3536,
4976,
1779,
628,
326,
15204,
12123,
810,
768,
273,
2990,
18,
3190,
28806,
12,
2890,
18,
3459,
13,
225,
309,
365,
18,
8298,
30,
225,
810,
768,
18,
16508,
12,
20,
16,
576,
13,
468,
3240,
358,
679,
434,
585,
290,
4119,
273,
810,
768,
18,
88,
1165,
1435,
810,
768,
18,
16508,
12,
20,
13,
365,
18,
8298,
18,
11160,
12,
82,
4119,
13,
1592,
4119,
273,
374,
225,
2153,
13527,
273,
1083,
468,
9960,
716,
8527,
2856,
518,
711,
8675,
326,
679,
434,
279,
7856,
3838,
225,
364,
980,
316,
810,
768,
30,
225,
309,
365,
18,
2
] |
self.k0_dkc = self.Gdir_dc.reshape(-1, 1, 3) | k0_dkc = self.Gdir_dc.reshape(-1, 1, 3) | def __init__(self, nwannier, calc, nbands=None, occupationenergy=None, fixedstates=None, spin=0, verbose=True): | a8b3a713b28e2bc93f8874ac2ca600a18b2884ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5735/a8b3a713b28e2bc93f8874ac2ca600a18b2884ec/wannier.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
14376,
1072,
2453,
16,
7029,
16,
4264,
5708,
33,
7036,
16,
18928,
367,
15358,
33,
7036,
16,
5499,
7992,
33,
7036,
16,
12490,
33,
20,
16,
3988,
33,
5510,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
14376,
1072,
2453,
16,
7029,
16,
4264,
5708,
33,
7036,
16,
18928,
367,
15358,
33,
7036,
16,
5499,
7992,
33,
7036,
16,
12490,
33,
20,
16,
3988,
33,
5510,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
count[x] += 1 sum = 0 cnt = 0 for x in count.values(): if x != 0: sum += x cnt += 1 avg = sum / cnt counts[angle] = cnt highest[angle] = 0 for x in count.values(): if x > highest[angle]: highest[angle] = x highest[angle] = highest[angle] - avg hkey = 0 hvalue = 0 for key, value in highest.iteritems(): if value > hvalue: hkey = key hvalue = value self.image = self.image.rotate(hkey) pixels = self.image.load() for x in xrange(w): for y in xrange(h): if pixels[x, y] == 0: pixels[x, y] = 255 if pixels[x, y] == 155: pixels[x, y] = 0 self.pixels = pixels def split_captcha_letters(self): captcha = self.image started = False letters = [] width, height = captcha.size bottomY, topY = 0, height pixels = captcha.load() for x in xrange(width): black_pixel_in_col = False for y in xrange(height): if pixels[x, y] != 255: if started == False: started = True firstX = x lastX = x if y > bottomY: bottomY = y if y < topY: topY = y if x > lastX: lastX = x black_pixel_in_col = True if black_pixel_in_col == False and started == True: rect = (firstX, topY, lastX, bottomY) new_captcha = captcha.crop(rect) w, h = new_captcha.size if w > 5 and h > 5: letters.append(new_captcha) started = False bottomY, topY = 0, height return letters def correct(self, values, var=None): if var: result = var else: result = self.result_captcha for key, item in values.iteritems(): if key.__class__ == str: result = result.replace(key, item) | pixels[x, y] = 0 self.pixels = pixels def split_captcha_letters(self): captcha = self.image started = False letters = [] width, height = captcha.size bottomY, topY = 0, height pixels = captcha.load() for x in xrange(width): black_pixel_in_col = False for y in xrange(height): if pixels[x, y] != 255: if started == False: started = True firstX = x lastX = x if y > bottomY: bottomY = y if y < topY: topY = y if x > lastX: lastX = x black_pixel_in_col = True if black_pixel_in_col == False and started == True: rect = (firstX, topY, lastX, bottomY) new_captcha = captcha.crop(rect) w, h = new_captcha.size if w > 5 and h > 5: letters.append(new_captcha) started = False bottomY, topY = 0, height return letters def correct(self, values, var=None): if var: result = var | def derotate_by_average(self): """rotate by checking each angle and guess most suitable""" w, h = self.image.size pixels = self.pixels for x in xrange(w): for y in xrange(h): if pixels[x, y] == 0: pixels[x, y] = 155 highest = {} counts = {} for angle in range(-45, 45): tmpimage = self.image.rotate(angle) pixels = tmpimage.load() w, h = self.image.size for x in xrange(w): for y in xrange(h): if pixels[x, y] == 0: pixels[x, y] = 255 count = {} for x in xrange(w): count[x] = 0 for y in xrange(h): if pixels[x, y] == 155: count[x] += 1 sum = 0 cnt = 0 for x in count.values(): if x != 0: sum += x cnt += 1 avg = sum / cnt counts[angle] = cnt highest[angle] = 0 for x in count.values(): if x > highest[angle]: highest[angle] = x highest[angle] = highest[angle] - avg hkey = 0 hvalue = 0 for key, value in highest.iteritems(): if value > hvalue: hkey = key hvalue = value self.image = self.image.rotate(hkey) pixels = self.image.load() for x in xrange(w): for y in xrange(h): if pixels[x, y] == 0: pixels[x, y] = 255 if pixels[x, y] == 155: pixels[x, y] = 0 self.pixels = pixels | ce0e9fa939a3c6d9e22f28561f86282a96ddb9c5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/ce0e9fa939a3c6d9e22f28561f86282a96ddb9c5/captcha.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4854,
352,
340,
67,
1637,
67,
15621,
12,
2890,
4672,
3536,
20342,
635,
6728,
1517,
5291,
471,
7274,
4486,
10631,
8395,
225,
341,
16,
366,
273,
365,
18,
2730,
18,
1467,
8948,
273,
365,
18,
21084,
225,
364,
619,
316,
12314,
12,
91,
4672,
364,
677,
316,
12314,
12,
76,
4672,
309,
8948,
63,
92,
16,
677,
65,
422,
374,
30,
8948,
63,
92,
16,
677,
65,
273,
404,
2539,
225,
9742,
273,
2618,
6880,
273,
2618,
225,
364,
5291,
316,
1048,
19236,
7950,
16,
12292,
4672,
225,
1853,
2730,
273,
365,
18,
2730,
18,
20342,
12,
4341,
13,
225,
8948,
273,
1853,
2730,
18,
945,
1435,
225,
341,
16,
366,
273,
365,
18,
2730,
18,
1467,
225,
364,
619,
316,
12314,
12,
91,
4672,
364,
677,
316,
12314,
12,
76,
4672,
309,
8948,
63,
92,
16,
677,
65,
422,
374,
30,
8948,
63,
92,
16,
677,
65,
273,
4561,
282,
1056,
273,
2618,
225,
364,
619,
316,
12314,
12,
91,
4672,
1056,
63,
92,
65,
273,
374,
364,
677,
316,
12314,
12,
76,
4672,
309,
8948,
63,
92,
16,
677,
65,
422,
404,
2539,
30,
1056,
63,
92,
65,
1011,
404,
225,
2142,
273,
374,
7599,
273,
374,
225,
364,
619,
316,
1056,
18,
2372,
13332,
309,
619,
480,
374,
30,
2142,
1011,
619,
7599,
1011,
404,
225,
11152,
273,
2142,
342,
7599,
6880,
63,
4341,
65,
273,
7599,
9742,
63,
4341,
65,
273,
374,
364,
619,
316,
1056,
18,
2372,
13332,
309,
619,
405,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4854,
352,
340,
67,
1637,
67,
15621,
12,
2890,
4672,
3536,
20342,
635,
6728,
1517,
5291,
471,
7274,
4486,
10631,
8395,
225,
341,
16,
366,
273,
365,
18,
2730,
18,
1467,
8948,
273,
365,
18,
21084,
225,
364,
619,
316,
12314,
12,
91,
4672,
364,
677,
316,
12314,
12,
76,
4672,
309,
8948,
63,
92,
16,
677,
65,
422,
374,
30,
8948,
63,
92,
16,
677,
65,
273,
404,
2539,
225,
9742,
273,
2618,
6880,
273,
2618,
225,
364,
5291,
316,
1048,
19236,
7950,
16,
12292,
4672,
225,
1853,
2730,
273,
365,
18,
2730,
18,
20342,
12,
4341,
13,
225,
8948,
273,
1853,
2730,
18,
945,
1435,
225,
341,
16,
366,
273,
365,
18,
2730,
18,
1467,
225,
2
] |
cue = FakeNormalReader("cue/normal/Portishead - Dummy.cue", 45) | path = os.path.join("test", "cue", "normal", "Portishead - Dummy.cue") if not os.path.exists(path): path = os.path.join("cue", "normal", "Portishead - Dummy.cue") cue = FakeNormalReader(os.path.join(path), 45) | def get_full_duration(self, cue_file): return 60 * self.duration_min | 5e65a4a92750acc9f2661718b80c10d4fc613eda /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14563/5e65a4a92750acc9f2661718b80c10d4fc613eda/test_cue_service.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2854,
67,
8760,
12,
2890,
16,
276,
344,
67,
768,
4672,
327,
4752,
380,
365,
18,
8760,
67,
1154,
2,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2854,
67,
8760,
12,
2890,
16,
276,
344,
67,
768,
4672,
327,
4752,
380,
365,
18,
8760,
67,
1154,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
tar_cmd = "tar rvf %s firefox" % self.uncompressed_build | if options.quiet: tar_flags = "rf" else: tar_flags = "rvf" tar_cmd = "tar %s %s firefox" % (tar_flags, self.uncompressed_build) | def repackBuild(self): tar_cmd = "tar rvf %s firefox" % self.uncompressed_build shellCommand(tar_cmd) bzip2_command = "bzip2 %s" % self.uncompressed_build shellCommand(bzip2_command) | 8345bd04fc746d831846644290606cce5844b5a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10262/8345bd04fc746d831846644290606cce5844b5a8/partner-repacks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2071,
484,
3116,
12,
2890,
4672,
309,
702,
18,
20380,
30,
8232,
67,
7133,
273,
315,
5809,
6,
469,
30,
8232,
67,
7133,
273,
315,
4962,
74,
6,
8232,
67,
4172,
273,
315,
11718,
738,
87,
738,
87,
4452,
13873,
6,
738,
261,
11718,
67,
7133,
16,
365,
18,
551,
362,
10906,
67,
3510,
13,
5972,
2189,
12,
11718,
67,
4172,
13,
324,
4450,
22,
67,
3076,
273,
315,
70,
4450,
22,
738,
87,
6,
738,
365,
18,
551,
362,
10906,
67,
3510,
5972,
2189,
12,
70,
4450,
22,
67,
3076,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2071,
484,
3116,
12,
2890,
4672,
309,
702,
18,
20380,
30,
8232,
67,
7133,
273,
315,
5809,
6,
469,
30,
8232,
67,
7133,
273,
315,
4962,
74,
6,
8232,
67,
4172,
273,
315,
11718,
738,
87,
738,
87,
4452,
13873,
6,
738,
261,
11718,
67,
7133,
16,
365,
18,
551,
362,
10906,
67,
3510,
13,
5972,
2189,
12,
11718,
67,
4172,
13,
324,
4450,
22,
67,
3076,
273,
315,
70,
4450,
22,
738,
87,
6,
738,
365,
18,
551,
362,
10906,
67,
3510,
5972,
2189,
12,
70,
4450,
22,
67,
3076,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return self._inc(key, channel, channels) | return channel | def inc(self, *args, **keys): key = self._key(*args, **keys) | 010e3ceb7ac4166a932dfbd4f9020a6aa1795911 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14361/010e3ceb7ac4166a932dfbd4f9020a6aa1795911/taskfarm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7290,
12,
2890,
16,
380,
1968,
16,
2826,
2452,
4672,
498,
273,
365,
6315,
856,
30857,
1968,
16,
2826,
2452,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if signature != built: key, base = signature_method.build_signature_base_string(oauth_request, consumer, token) raise OAuthError('Signature does not match. Expected: %s Got: %s Expected signature base string: %s' % (built, signature, base)) | def _check_signature(self, oauth_request, consumer, token): timestamp, nonce = oauth_request._get_timestamp_nonce() self._check_timestamp(timestamp) self._check_nonce(consumer, token, nonce) signature_method = self._get_signature_method(oauth_request) try: signature = oauth_request.get_parameter('oauth_signature') except: raise OAuthError('Missing signature') # attempt to construct the same signature built = signature_method.build_signature(oauth_request, consumer, token) if signature != built: key, base = signature_method.build_signature_base_string(oauth_request, consumer, token) raise OAuthError('Signature does not match. Expected: %s Got: %s Expected signature base string: %s' % (built, signature, base)) | 073065fae4e9688900399c1a17162f9fb2f0f797 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1598/073065fae4e9688900399c1a17162f9fb2f0f797/oauth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
8195,
12,
2890,
16,
6924,
67,
2293,
16,
4765,
16,
1147,
4672,
2858,
16,
7448,
273,
6924,
67,
2293,
6315,
588,
67,
5508,
67,
12824,
1435,
365,
6315,
1893,
67,
5508,
12,
5508,
13,
365,
6315,
1893,
67,
12824,
12,
13230,
16,
1147,
16,
7448,
13,
3372,
67,
2039,
273,
365,
6315,
588,
67,
8195,
67,
2039,
12,
7280,
67,
2293,
13,
775,
30,
3372,
273,
6924,
67,
2293,
18,
588,
67,
6775,
2668,
7280,
67,
8195,
6134,
1335,
30,
1002,
7270,
668,
2668,
4841,
3372,
6134,
468,
4395,
358,
4872,
326,
1967,
3372,
6650,
273,
3372,
67,
2039,
18,
3510,
67,
8195,
12,
7280,
67,
2293,
16,
4765,
16,
1147,
13,
309,
3372,
480,
6650,
30,
498,
16,
1026,
273,
3372,
67,
2039,
18,
3510,
67,
8195,
67,
1969,
67,
1080,
12,
7280,
67,
2293,
16,
4765,
16,
1147,
13,
1002,
7270,
668,
2668,
5374,
1552,
486,
845,
18,
13219,
30,
738,
87,
19578,
30,
738,
87,
13219,
3372,
1026,
533,
30,
738,
87,
11,
738,
261,
12406,
16,
3372,
16,
1026,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
8195,
12,
2890,
16,
6924,
67,
2293,
16,
4765,
16,
1147,
4672,
2858,
16,
7448,
273,
6924,
67,
2293,
6315,
588,
67,
5508,
67,
12824,
1435,
365,
6315,
1893,
67,
5508,
12,
5508,
13,
365,
6315,
1893,
67,
12824,
12,
13230,
16,
1147,
16,
7448,
13,
3372,
67,
2039,
273,
365,
6315,
588,
67,
8195,
67,
2039,
12,
7280,
67,
2293,
13,
775,
30,
3372,
273,
6924,
67,
2293,
18,
588,
67,
6775,
2668,
7280,
67,
8195,
6134,
1335,
30,
1002,
7270,
668,
2668,
4841,
3372,
6134,
468,
4395,
358,
4872,
326,
1967,
3372,
6650,
273,
3372,
67,
2039,
18,
3510,
67,
8195,
12,
7280,
67,
2293,
16,
4765,
16,
1147,
13,
309,
3372,
480,
2
] |
|
if len>0: raise IOError(errno.ENOSYS,path) | if len>0: warn("truncate not implemented",path,len) raise IOError(errno.ENOSYS,path) | def truncate(self,path,len): if len>0: raise IOError(errno.ENOSYS,path) self.fs.delete(path) self.fs.mkentry(path) return 0 | 2164ea993cae3a272123c9380327f54f0c3a10bb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5937/2164ea993cae3a272123c9380327f54f0c3a10bb/archivefs.py | [
1,
8585,
326,
22398,
316,
326,
981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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10310,
12,
2890,
16,
803,
16,
1897,
4672,
309,
562,
34,
20,
30,
1894,
2932,
27201,
486,
8249,
3113,
803,
16,
1897,
13,
1002,
8340,
12,
19088,
18,
1157,
4618,
61,
55,
16,
803,
13,
365,
18,
2556,
18,
3733,
12,
803,
13,
365,
18,
2556,
18,
24816,
4099,
12,
803,
13,
327,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
resp = (yield dev.query('SENS:SWE:TIME?; POIN?')) | resp = yield dev.query('SENS:SWE:TIME?; POIN?') | def startSweep(self, dev, sweeptype): yield dev.write('SENS:SWE:TIME:AUTO ON; :INIT:CONT OFF; :OUTP ON') | 6a9afdf1dbe4defcb7a645d94ee6236e87f6c82e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7016/6a9afdf1dbe4defcb7a645d94ee6236e87f6c82e/agilentN5320A.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
55,
25236,
12,
2890,
16,
4461,
16,
1352,
1340,
27672,
4672,
2824,
4461,
18,
2626,
2668,
26753,
30,
55,
6950,
30,
4684,
30,
18909,
6229,
31,
294,
12919,
30,
6067,
17511,
31,
294,
5069,
52,
6229,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
55,
25236,
12,
2890,
16,
4461,
16,
1352,
1340,
27672,
4672,
2824,
4461,
18,
2626,
2668,
26753,
30,
55,
6950,
30,
4684,
30,
18909,
6229,
31,
294,
12919,
30,
6067,
17511,
31,
294,
5069,
52,
6229,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
properties['outgoingEmailMonitorLevel'] = 'HEADERS_ONLY' | properties['outgoingEmailMonitorLevel'] = 'HEADER_ONLY' | def createEmailMonitor(self, source_user, destination_user, end_date, begin_date=None, incoming_headers_only=False, outgoing_headers_only=False, drafts=False, drafts_headers_only=False, chats=False, chats_headers_only=False): """Creates a email monitor, forwarding the source_users emails/chats | 562df59fada74b8cb8025319e87fa9d2764d0e32 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5609/562df59fada74b8cb8025319e87fa9d2764d0e32/service.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
4134,
7187,
12,
2890,
16,
1084,
67,
1355,
16,
2929,
67,
1355,
16,
679,
67,
712,
16,
2376,
67,
712,
33,
7036,
16,
6935,
67,
2485,
67,
3700,
33,
8381,
16,
12902,
67,
2485,
67,
3700,
33,
8381,
16,
12246,
87,
33,
8381,
16,
12246,
87,
67,
2485,
67,
3700,
33,
8381,
16,
462,
2323,
33,
8381,
16,
462,
2323,
67,
2485,
67,
3700,
33,
8381,
4672,
3536,
2729,
279,
2699,
6438,
16,
20635,
326,
1084,
67,
5577,
14255,
19,
343,
2323,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
4134,
7187,
12,
2890,
16,
1084,
67,
1355,
16,
2929,
67,
1355,
16,
679,
67,
712,
16,
2376,
67,
712,
33,
7036,
16,
6935,
67,
2485,
67,
3700,
33,
8381,
16,
12902,
67,
2485,
67,
3700,
33,
8381,
16,
12246,
87,
33,
8381,
16,
12246,
87,
67,
2485,
67,
3700,
33,
8381,
16,
462,
2323,
33,
8381,
16,
462,
2323,
67,
2485,
67,
3700,
33,
8381,
4672,
3536,
2729,
279,
2699,
6438,
16,
20635,
326,
1084,
67,
5577,
14255,
19,
343,
2323,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
random.seed(time.time()) | def __getRandomContentNodeList(self, au, minCount, maxCount): """Return a randomly sized list of nodes with content, between min and max in length. If there are fewer than 'max' nodes, this will return a list between 'min' and 'len(allnodes)'.""" nodes = self.getAuNodesWithContent(au) maxCount = min(maxCount, len(nodes)) | cb9a70c7bbdce1e09c351d60188d3e6bda051e84 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/766/cb9a70c7bbdce1e09c351d60188d3e6bda051e84/lockss_daemon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
8529,
1350,
19914,
12,
2890,
16,
20309,
16,
1131,
1380,
16,
943,
1380,
4672,
3536,
990,
279,
20153,
26046,
666,
434,
2199,
598,
913,
16,
3086,
1131,
471,
943,
316,
769,
18,
971,
1915,
854,
27886,
2353,
296,
1896,
11,
2199,
16,
333,
903,
327,
279,
666,
3086,
296,
1154,
11,
471,
296,
1897,
12,
454,
4690,
2506,
12123,
2199,
273,
365,
18,
588,
37,
89,
3205,
1190,
1350,
12,
8377,
13,
943,
1380,
273,
1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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
8529,
1350,
19914,
12,
2890,
16,
20309,
16,
1131,
1380,
16,
943,
1380,
4672,
3536,
990,
279,
20153,
26046,
666,
434,
2199,
598,
913,
16,
3086,
1131,
471,
943,
316,
769,
18,
971,
1915,
854,
27886,
2353,
296,
1896,
11,
2199,
16,
333,
903,
327,
279,
666,
3086,
296,
1154,
11,
471,
296,
1897,
12,
454,
4690,
2506,
12123,
2199,
273,
365,
18,
588,
37,
89,
3205,
1190,
1350,
12,
8377,
13,
943,
1380,
273,
1131,
12,
1896,
1380,
16,
562,
12,
4690,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
if self.debug>0: print 'vars to delete: ',ncvars print 'deleting ncvar: ',v | log.debug('vars to delete: %s ' % ncvars) log.debug('deleting ncvar: %s' % v) | def delete_ncattdimvar(self,ncf,ncattrs=(),ncdims=(),ncvars=()): ''' helper function to delete attributes, dimensions and variables in a netcdffile | 97d65b7f6de853ae8bd02694f63966f3dfe9ab9e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/97d65b7f6de853ae8bd02694f63966f3dfe9ab9e/jacapo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
82,
2574,
88,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
82,
2574,
88,
3509,
1401,
12,
2890,
16,
82,
8522,
16,
14202,
7039,
33,
9334,
14202,
8550,
33,
9334,
14202,
4699,
33,
1435,
4672,
9163,
4222,
445,
358,
1430,
1677,
16,
5769,
471,
3152,
316,
279,
2901,
24799,
768,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
except DBInvalidArgError: | except db.DBInvalidArgError: | def open_shelve(filename): from bsddb3 import db,dbshelve,DBInvalidArgError log.debug('Opening database ' + filename) | 6c7d87ef8f67d23bcd0237379d380c1297ee590f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7531/6c7d87ef8f67d23bcd0237379d380c1297ee590f/apt_proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
674,
292,
537,
12,
3459,
4672,
628,
7081,
449,
70,
23,
1930,
1319,
16,
1966,
674,
292,
537,
16,
2290,
1941,
4117,
668,
613,
18,
4148,
2668,
21378,
2063,
296,
397,
1544,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
674,
292,
537,
12,
3459,
4672,
628,
7081,
449,
70,
23,
1930,
1319,
16,
1966,
674,
292,
537,
16,
2290,
1941,
4117,
668,
613,
18,
4148,
2668,
21378,
2063,
296,
397,
1544,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def endElement(self, name ): """Signals the end of an element. | def endElementNS(self, name, qname): """Signals the end of an element in namespace mode. | def endElement(self, name ): """Signals the end of an element. | b4d6bb098776de48275c2e422c608ddfd85f4198 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b4d6bb098776de48275c2e422c608ddfd85f4198/handler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14840,
12,
2890,
16,
508,
262,
30,
3536,
23346,
326,
679,
434,
392,
930,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def handleResponsePart(self, data): | self.got_metadata = True def handleEndHeaders(self): if self.got_metadata: self.handleResponsePart = self.handleResponsePart_with_metadata else: self.handleResponsePart = self.gotMP3Data def handleResponsePart_with_metadata(self, data): | def handleHeader(self, key, value): if key.lower() == 'icy-metaint': self.metaint = int(value) | f7135a2918b3d018f599459d44ae113bbc294985 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/f7135a2918b3d018f599459d44ae113bbc294985/shoutcast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
1864,
12,
2890,
16,
498,
16,
460,
4672,
309,
498,
18,
8167,
1435,
422,
296,
335,
93,
17,
3901,
474,
4278,
365,
18,
3901,
474,
273,
509,
12,
1132,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
1864,
12,
2890,
16,
498,
16,
460,
4672,
309,
498,
18,
8167,
1435,
422,
296,
335,
93,
17,
3901,
474,
4278,
365,
18,
3901,
474,
273,
509,
12,
1132,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print "Starting BT downloader" | def getDownloader(self,url): | 0d0a41169cea83bb7c142896fe5df9d0bc8a96e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/0d0a41169cea83bb7c142896fe5df9d0bc8a96e9/downloader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2343,
995,
6714,
12,
2890,
16,
718,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2343,
995,
6714,
12,
2890,
16,
718,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
print "call contact called" | logger.debug("call contact called") | def call_contact(self, emission, source, param): print "call contact called" number = emission.part_text_get('label-number') name = emission.part_text_get('label') self.extra_child.edj.part_swallow_get('contacts-items').visible_set(0) self.extra_child.edj.part_swallow_get('contacts-items').delete() Caller(None, number, name).start() try: self.extra_child.edj.delete() except Exception,e: print e | 01c25941dcc46b5166dcddd3aeed3ae3b26b48e6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4712/01c25941dcc46b5166dcddd3aeed3ae3b26b48e6/paroli-dialer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
8994,
12,
2890,
16,
801,
19710,
16,
1084,
16,
579,
4672,
1194,
18,
4148,
2932,
1991,
5388,
2566,
7923,
1300,
273,
801,
19710,
18,
2680,
67,
955,
67,
588,
2668,
1925,
17,
2696,
6134,
508,
273,
801,
19710,
18,
2680,
67,
955,
67,
588,
2668,
1925,
6134,
365,
18,
7763,
67,
3624,
18,
329,
78,
18,
2680,
67,
5328,
5965,
67,
588,
2668,
20777,
17,
3319,
16063,
8613,
67,
542,
12,
20,
13,
365,
18,
7763,
67,
3624,
18,
329,
78,
18,
2680,
67,
5328,
5965,
67,
588,
2668,
20777,
17,
3319,
16063,
3733,
1435,
20646,
12,
7036,
16,
1300,
16,
508,
2934,
1937,
1435,
775,
30,
365,
18,
7763,
67,
3624,
18,
329,
78,
18,
3733,
1435,
1335,
1185,
16,
73,
30,
1172,
425,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
8994,
12,
2890,
16,
801,
19710,
16,
1084,
16,
579,
4672,
1194,
18,
4148,
2932,
1991,
5388,
2566,
7923,
1300,
273,
801,
19710,
18,
2680,
67,
955,
67,
588,
2668,
1925,
17,
2696,
6134,
508,
273,
801,
19710,
18,
2680,
67,
955,
67,
588,
2668,
1925,
6134,
365,
18,
7763,
67,
3624,
18,
329,
78,
18,
2680,
67,
5328,
5965,
67,
588,
2668,
20777,
17,
3319,
16063,
8613,
67,
542,
12,
20,
13,
365,
18,
7763,
67,
3624,
18,
329,
78,
18,
2680,
67,
5328,
5965,
67,
588,
2668,
20777,
17,
3319,
16063,
3733,
1435,
20646,
12,
7036,
16,
1300,
16,
508,
2934,
1937,
1435,
775,
30,
365,
18,
7763,
67,
3624,
18,
329,
78,
18,
2
] |
def plus(): | def inc_indent(): | def plus(): global indent indent += 1 | 6ae6ed47bd06d9e4a84ff98ecaaaa5baa53ddb47 /local1/tlutelli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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7290,
67,
9355,
13332,
2552,
3504,
3504,
1011,
404,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
fields = self.context.REQUEST hebPk=fields.get('heb_maj_hebpk') tableHotePk=fields.get('hebhot_tabhot_fk') | def insertTypeTableHoteOfHebergementMaj(self): """ ajoute les infos de mise à jour des tables d'hote d'un hebergement par le proprio table heb_tab_hote_maj """ fields = self.context.REQUEST hebPk=fields.get('heb_maj_hebpk') tableHotePk=fields.get('hebhot_tabhot_fk') wrapper = getSAWrapper('gites_wallons') session = wrapper.session insertTypeTableHoteOfHebergementMaj = wrapper.getMapper('heb_tab_hote_maj') for table in tableHotePk: newEntry = insertTypeTableHoteOfHebergementMaj(hebhot_maj_heb_fk = hebPk,\ hebhot_maj_tabho_fk = table) session.save(newEntry) session.flush() | 05260e966db103e2372db7e0275d8e49b07078e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10188/05260e966db103e2372db7e0275d8e49b07078e8/hebergement.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
559,
1388,
44,
1168,
951,
5256,
31317,
820,
49,
4365,
12,
2890,
4672,
3536,
24787,
2571,
18022,
10626,
443,
312,
784,
225,
132,
259,
525,
477,
2832,
4606,
302,
11,
76,
1168,
302,
11,
318,
3904,
31317,
820,
779,
884,
2270,
566,
83,
1014,
3904,
70,
67,
7032,
67,
76,
1168,
67,
12585,
3536,
4053,
273,
1322,
37,
3611,
2668,
75,
2997,
67,
8019,
7008,
6134,
1339,
273,
4053,
18,
3184,
2243,
559,
1388,
44,
1168,
951,
5256,
31317,
820,
49,
4365,
273,
4053,
18,
588,
4597,
2668,
580,
70,
67,
7032,
67,
76,
1168,
67,
12585,
6134,
364,
1014,
316,
1014,
44,
1168,
7789,
30,
24086,
273,
2243,
559,
1388,
44,
1168,
951,
5256,
31317,
820,
49,
4365,
12,
580,
70,
15224,
67,
12585,
67,
580,
70,
67,
23120,
273,
3904,
70,
7789,
17211,
3904,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
559,
1388,
44,
1168,
951,
5256,
31317,
820,
49,
4365,
12,
2890,
4672,
3536,
24787,
2571,
18022,
10626,
443,
312,
784,
225,
132,
259,
525,
477,
2832,
4606,
302,
11,
76,
1168,
302,
11,
318,
3904,
31317,
820,
779,
884,
2270,
566,
83,
1014,
3904,
70,
67,
7032,
67,
76,
1168,
67,
12585,
3536,
4053,
273,
1322,
37,
3611,
2668,
75,
2997,
67,
8019,
7008,
6134,
1339,
273,
4053,
18,
3184,
2243,
559,
1388,
44,
1168,
951,
5256,
31317,
820,
49,
4365,
273,
4053,
18,
588,
4597,
2668,
580,
70,
67,
7032,
67,
76,
1168,
67,
12585,
6134,
364,
1014,
316,
1014,
44,
1168,
7789,
30,
24086,
273,
2243,
559,
1388,
44,
1168,
951,
5256,
31317,
820,
2
] |
|
item.slot(3).setType("Unused") | item.slot(3).setType('Unused') | def chooseItemType(self, action): newtype = str(action.data().toString()) item = self.itemattrlist[self.currentTabLabel] if newtype == 'Normal Item' or newtype == 'Enhanced Bow': item.slot(4).setSlotType('effect') if item.slot(5).type()[-6:] == "Effect": item.slot(4).setAll(item.slot(5).type(), item.slot(5).amount(), item.slot(5).effect(), item.slot(5).requirement()) item.slot(5).setType('Unused') item.slot(5).setSlotType('unused') else: item.slot(5).setSlotType('effect') if item.slot(4).type()[-6:] == "Effect": item.slot(5).setAll(item.slot(4).type(), item.slot(4).amount(), item.slot(4).effect(), item.slot(4).requirement()) item.slot(4).setSlotType('crafted') if newtype == 'Caster Staff' or newtype == 'Legendary Staff': for fixslot in item.slots(): if fixslot.type() == "Focus": fixslot.setType = "Unused" if newtype == 'Normal Item': item.slot(3).setSlotType('player') elif newtype == 'Caster Staff': item.slot(3).setSlotType('player') item.slot(4).setAll('Focus', '50', 'All Spell Lines') elif newtype == 'Legendary Staff': item.slot(3).setSlotType('crafted') item.slot(3).setAll('Focus', '50', 'All Spell Lines') item.slot(4).setAll('Other Bonus', '2', 'Magic Damage', requirement="vs All Monsters") item.slot(5).setAll('Charged Effect', '60', 'Dmg w/Resist Debuff', requirement="Level 50") elif newtype == 'Enhanced Bow': item.slot(3).setSlotType('player') item.slot(4).setAll('Offensive Effect', '20', 'Direct Damage') elif newtype == 'Legendary Bow': item.slot(3).setSlotType('crafted') item.slot(3).setAll('Other Bonus', '2', 'Archery Damage', requirement="vs All Monsters") item.slot(4).setAll('Other Bonus', '10', 'AF') item.slot(5).setAll('Offensive Effect', '25', 'Dmg w/Resist Debuff', requirement="Level 50") elif newtype == 'Legendary Weapon': item.slot(3).setSlotType('crafted') item.slot(3).setAll('Other Bonus', '2', 'Melee Damage', requirement="vs All Monsters") item.slot(4).setAll('Other Bonus', '10', 'AF') item.slot(5).setAll('Offensive Effect', '60', 'Dmg w/Resist Debuff', requirement="Level 50") elif newtype == 'Enhanced Armor': item.slot(3).setSlotType('player') # Recover from previously legendary items if item.slot(3).slotType() == 'player' and \ not item.slot(3).crafted(): item.slot(3).setType("Unused") self.restoreItem(item) | e9cb97a07852b15f89969cefa507f1e097a1c9a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6671/e9cb97a07852b15f89969cefa507f1e097a1c9a8/ScWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9876,
22580,
12,
2890,
16,
1301,
4672,
394,
723,
273,
609,
12,
1128,
18,
892,
7675,
10492,
10756,
761,
273,
365,
18,
1726,
1747,
1098,
63,
2890,
18,
2972,
5661,
2224,
65,
309,
394,
723,
422,
296,
5506,
4342,
11,
578,
394,
723,
422,
296,
664,
17221,
605,
543,
4278,
761,
18,
14194,
12,
24,
2934,
542,
8764,
559,
2668,
13867,
6134,
309,
761,
18,
14194,
12,
25,
2934,
723,
1435,
18919,
26,
26894,
422,
315,
12477,
6877,
761,
18,
14194,
12,
24,
2934,
542,
1595,
12,
1726,
18,
14194,
12,
25,
2934,
723,
9334,
761,
18,
14194,
12,
25,
2934,
8949,
9334,
761,
18,
14194,
12,
25,
2934,
13867,
9334,
761,
18,
14194,
12,
25,
2934,
30848,
10756,
761,
18,
14194,
12,
25,
2934,
542,
559,
2668,
21106,
6134,
761,
18,
14194,
12,
25,
2934,
542,
8764,
559,
2668,
14375,
6134,
469,
30,
761,
18,
14194,
12,
25,
2934,
542,
8764,
559,
2668,
13867,
6134,
309,
761,
18,
14194,
12,
24,
2934,
723,
1435,
18919,
26,
26894,
422,
315,
12477,
6877,
761,
18,
14194,
12,
25,
2934,
542,
1595,
12,
1726,
18,
14194,
12,
24,
2934,
723,
9334,
761,
18,
14194,
12,
24,
2934,
8949,
9334,
761,
18,
14194,
12,
24,
2934,
13867,
9334,
761,
18,
14194,
12,
24,
2934,
30848,
10756,
761,
18,
14194,
12,
24,
2934,
542,
8764,
559,
2668,
71,
5015,
329,
6134,
309,
394,
723,
422,
296,
39,
2440,
934,
7329,
11,
578,
394,
723,
422,
296,
16812,
814,
934,
7329,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9876,
22580,
12,
2890,
16,
1301,
4672,
394,
723,
273,
609,
12,
1128,
18,
892,
7675,
10492,
10756,
761,
273,
365,
18,
1726,
1747,
1098,
63,
2890,
18,
2972,
5661,
2224,
65,
309,
394,
723,
422,
296,
5506,
4342,
11,
578,
394,
723,
422,
296,
664,
17221,
605,
543,
4278,
761,
18,
14194,
12,
24,
2934,
542,
8764,
559,
2668,
13867,
6134,
309,
761,
18,
14194,
12,
25,
2934,
723,
1435,
18919,
26,
26894,
422,
315,
12477,
6877,
761,
18,
14194,
12,
24,
2934,
542,
1595,
12,
1726,
18,
14194,
12,
25,
2934,
723,
9334,
761,
18,
14194,
12,
25,
2934,
8949,
9334,
761,
18,
14194,
12,
25,
2934,
13867,
9334,
761,
18,
14194,
12,
25,
2934,
30848,
2
] |
tgeo=read_file_with_comments('./EXECOPTS') | tgeo=ReadFileWithComments('./EXECOPTS') | def kill_proc(p, timeout): k = subprocess.Popen(['kill',str(p.pid)]) k.wait() now = time.time() end_time = now + timeout # give it a little time while end_time > now: if p.poll(): return now = time.time() # use the big hammer (and don't bother waiting) subprocess.Popen(['kill','-9', str(p.pid)]) return | 6726fd039f7a0494d6243f612d9ade4ec88db45d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6895/6726fd039f7a0494d6243f612d9ade4ec88db45d/sub_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8673,
67,
9381,
12,
84,
16,
2021,
4672,
417,
273,
6652,
18,
52,
3190,
12,
3292,
16418,
2187,
701,
12,
84,
18,
6610,
13,
5717,
417,
18,
7048,
1435,
2037,
273,
813,
18,
957,
1435,
679,
67,
957,
273,
2037,
397,
2021,
468,
8492,
518,
279,
12720,
813,
1323,
679,
67,
957,
405,
2037,
30,
309,
293,
18,
13835,
13332,
327,
2037,
273,
813,
18,
957,
1435,
468,
999,
326,
5446,
366,
301,
6592,
261,
464,
2727,
1404,
23440,
7336,
13,
6652,
18,
52,
3190,
12,
3292,
16418,
17023,
17,
29,
2187,
609,
12,
84,
18,
6610,
13,
5717,
327,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8673,
67,
9381,
12,
84,
16,
2021,
4672,
417,
273,
6652,
18,
52,
3190,
12,
3292,
16418,
2187,
701,
12,
84,
18,
6610,
13,
5717,
417,
18,
7048,
1435,
2037,
273,
813,
18,
957,
1435,
679,
67,
957,
273,
2037,
397,
2021,
468,
8492,
518,
279,
12720,
813,
1323,
679,
67,
957,
405,
2037,
30,
309,
293,
18,
13835,
13332,
327,
2037,
273,
813,
18,
957,
1435,
468,
999,
326,
5446,
366,
301,
6592,
261,
464,
2727,
1404,
23440,
7336,
13,
6652,
18,
52,
3190,
12,
3292,
16418,
17023,
17,
29,
2187,
609,
12,
84,
18,
6610,
13,
5717,
327,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
known_failures = ["i386-debian-etch-story6", "i386-ubuntu-intrepid-story6", "amd64-ubuntu-intrepid-story6", "i386-ubuntu-edgy-story6", "amd64-ubuntu-edgy-story6", | known_failures = ["i386-debian-etch", "i386-ubuntu-intrepid", "amd64-ubuntu-intrepid", "i386-ubuntu-edgy", "amd64-ubuntu-edgy", | def get_targets(config, deb_versions): # Plash needs Ubuntu universe for dietlibc-dev. ubuntu = {"name": "ubuntu", "url": config.ubuntu_mirror, "script": config.ubuntu_debootstrap_script, "subdists": ["main", "universe"]} ubuntu_old = {"name": "ubuntu", "url": config.ubuntu_old_mirror, "script": config.ubuntu_debootstrap_script, "subdists": ["main", "universe"]} debian = {"name": "debian", "url": config.debian_mirror, "script": None, "subdists": ["main"]} cases = [ (ubuntu_old, "edgy"), (ubuntu, "feisty"), (ubuntu, "gutsy"), (ubuntu, "hardy"), (ubuntu, "intrepid"), (debian, "etch"), (debian, "lenny"), (debian, "sid")] targets = [] for distro, release in cases: for arch in ("i386", "amd64"): bootstrapper = Debootstrapper(distro["url"], release, arch, subdists=distro["subdists"], script=distro["script"]) # TODO: remove story6 suffix name = "%s-%s-%s-story6" % (arch, distro["name"], release) base_dir = os.path.join(config.dest_dir, name) stamps = StampDir(os.path.join(base_dir, "stamps")) chroot_env = ChrootEnv(os.path.join(base_dir, "chroot"), stamps, config.normal_user, bootstrapper) targets.append((name, Builder(chroot_env, base_dir, stamps, name, config, deb_versions))) return targets | 60158ea2354ad073c4f41dfd7f51984a581d8c41 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1008/60158ea2354ad073c4f41dfd7f51984a581d8c41/chroot_build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11358,
12,
1425,
16,
18202,
67,
10169,
4672,
468,
3008,
961,
4260,
587,
70,
25348,
29235,
364,
4314,
278,
2941,
71,
17,
5206,
18,
13910,
25348,
273,
12528,
529,
6877,
315,
373,
25348,
3113,
315,
718,
6877,
642,
18,
373,
25348,
67,
27197,
16,
315,
4263,
6877,
642,
18,
373,
25348,
67,
323,
12722,
67,
4263,
16,
315,
1717,
30467,
6877,
8247,
5254,
3113,
315,
318,
17488,
11929,
97,
13910,
25348,
67,
1673,
273,
12528,
529,
6877,
315,
373,
25348,
3113,
315,
718,
6877,
642,
18,
373,
25348,
67,
1673,
67,
27197,
16,
315,
4263,
6877,
642,
18,
373,
25348,
67,
323,
12722,
67,
4263,
16,
315,
1717,
30467,
6877,
8247,
5254,
3113,
315,
318,
17488,
11929,
97,
18202,
2779,
273,
12528,
529,
6877,
315,
31888,
2779,
3113,
315,
718,
6877,
642,
18,
31888,
2779,
67,
27197,
16,
315,
4263,
6877,
599,
16,
315,
1717,
30467,
6877,
8247,
5254,
11929,
97,
6088,
273,
306,
261,
373,
25348,
67,
1673,
16,
315,
329,
7797,
6,
3631,
261,
373,
25348,
16,
315,
3030,
376,
93,
6,
3631,
261,
373,
25348,
16,
315,
75,
322,
9009,
6,
3631,
261,
373,
25348,
16,
315,
20379,
93,
6,
3631,
261,
373,
25348,
16,
315,
474,
266,
6610,
6,
3631,
261,
31888,
2779,
16,
315,
1593,
6,
3631,
261,
31888,
2779,
16,
315,
1897,
18538,
6,
3631,
261,
31888,
2779,
16,
315,
7453,
7923,
65,
5774,
273,
5378,
364,
27450,
16,
3992,
316,
6088,
30,
364,
6637,
316,
7566,
77,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11358,
12,
1425,
16,
18202,
67,
10169,
4672,
468,
3008,
961,
4260,
587,
70,
25348,
29235,
364,
4314,
278,
2941,
71,
17,
5206,
18,
13910,
25348,
273,
12528,
529,
6877,
315,
373,
25348,
3113,
315,
718,
6877,
642,
18,
373,
25348,
67,
27197,
16,
315,
4263,
6877,
642,
18,
373,
25348,
67,
323,
12722,
67,
4263,
16,
315,
1717,
30467,
6877,
8247,
5254,
3113,
315,
318,
17488,
11929,
97,
13910,
25348,
67,
1673,
273,
12528,
529,
6877,
315,
373,
25348,
3113,
315,
718,
6877,
642,
18,
373,
25348,
67,
1673,
67,
27197,
16,
315,
4263,
6877,
642,
18,
373,
25348,
67,
323,
12722,
67,
4263,
16,
315,
1717,
30467,
6877,
8247,
5254,
3113,
315,
318,
17488,
2
] |
ChildTopWindow.__init__(self, _("Preferences"), 800, 500) | ChildTopWindow.__init__(self, _("Preferences"), 900, 500) | def __init__(self, controls): FControl.__init__(self, controls) | 9a4c14ee4cd00ac581c40c57126e6a81d3bd8d49 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14563/9a4c14ee4cd00ac581c40c57126e6a81d3bd8d49/preferences_window.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
11022,
4672,
478,
3367,
16186,
2738,
972,
12,
2890,
16,
11022,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
11022,
4672,
478,
3367,
16186,
2738,
972,
12,
2890,
16,
11022,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
assert False, "Tuple not in dependency tree: " + str(tuple) | assert False, "Tuple not in dependency tree: " + str(tuple) + " " + str(node) | def assert_tuple(tuple, node): if node[1]: cycles = node[1] else: cycles = [] if tuple[0] is node[0] or tuple[0] in cycles: tuple.pop() if tuple[0] is node[0] or tuple[0] in cycles: return elif len(tuple) > 1 and tuple[1] is node[0]: assert False, "Tuple not in dependency tree: " + str(tuple) for c in node[2]: assert_tuple(tuple, c) | 1b1f8d78dfe3a83cee1353fbdfe722bc1713124f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1074/1b1f8d78dfe3a83cee1353fbdfe722bc1713124f/dependency.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
67,
8052,
12,
8052,
16,
756,
4672,
309,
756,
63,
21,
14542,
15139,
273,
756,
63,
21,
65,
469,
30,
15139,
273,
5378,
309,
3193,
63,
20,
65,
353,
756,
63,
20,
65,
578,
3193,
63,
20,
65,
316,
15139,
30,
3193,
18,
5120,
1435,
309,
3193,
63,
20,
65,
353,
756,
63,
20,
65,
578,
3193,
63,
20,
65,
316,
15139,
30,
327,
1327,
562,
12,
8052,
13,
405,
404,
471,
3193,
63,
21,
65,
353,
756,
63,
20,
14542,
1815,
1083,
16,
315,
9038,
486,
316,
4904,
2151,
30,
315,
397,
609,
12,
8052,
13,
397,
315,
315,
397,
609,
12,
2159,
13,
364,
276,
316,
756,
63,
22,
14542,
1815,
67,
8052,
12,
8052,
16,
276,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
15139,
273,
756,
63,
21,
65,
469,
30,
15139,
273,
5378,
309,
3193,
63,
20,
65,
353,
756,
63,
20,
65,
578,
3193,
63,
20,
65,
316,
15139,
30,
3193,
18,
5120,
1435,
309,
3193,
63,
20,
65,
353,
756,
63,
20,
65,
578,
3193,
63,
20,
65,
316,
15139,
30,
327,
1327,
562,
12,
8052,
13,
405,
404,
471,
3193,
63,
21,
65,
353,
756,
63,
20,
14542,
1815,
1083,
16,
315,
9038,
486,
316,
4904,
2151,
30,
315,
397,
609,
12,
8052,
13,
397,
315,
315,
397,
609,
12,
2159,
13,
364,
276,
316,
756,
63,
22,
14542,
1815,
67,
8052,
12,
8052,
2
] |
bt += "/" | bt += " /" | def handle_starttag(self, tag, method, attrs): if tag not in self.permitted_tags: if tag not in self.stripped_tags: self.result.append( xssescape("<%s>" % tag) ) else: bt = "<" + tag if tag in self.allowed_attributes: attrs = dict(attrs) self.allowed_attributes_here = \ [x for x in self.allowed_attributes[tag] if x in attrs \ and len(attrs[x]) > 0] for attribute in self.allowed_attributes_here: if attribute in ['href', 'src', 'background']: if self.url_is_acceptable(attrs[attribute]): bt += ' %s="%s"' % (attribute, attrs[attribute]) else: bt += ' %s=%s' % \ (xssescape(attribute), quoteattr(attrs[attribute])) if bt == "<a" or bt == "<img": return if tag in self.requires_no_close: bt += "/" bt += ">" self.result.append( bt ) self.open_tags.insert(0, tag) | e052e3b35747c8f40688b2146c2cba1c6ee73f70 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6754/e052e3b35747c8f40688b2146c2cba1c6ee73f70/Html_cleaner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
1937,
2692,
12,
2890,
16,
1047,
16,
707,
16,
3422,
4672,
309,
1047,
486,
316,
365,
18,
457,
7948,
67,
4156,
30,
309,
1047,
486,
316,
365,
18,
6406,
1845,
67,
4156,
30,
365,
18,
2088,
18,
6923,
12,
619,
1049,
6939,
2932,
32,
9,
87,
2984,
738,
225,
1047,
13,
262,
469,
30,
10921,
273,
18165,
397,
1047,
309,
1047,
316,
365,
18,
8151,
67,
4350,
30,
3422,
273,
2065,
12,
7039,
13,
365,
18,
8151,
67,
4350,
67,
14852,
273,
521,
306,
92,
364,
619,
316,
365,
18,
8151,
67,
4350,
63,
2692,
65,
309,
619,
316,
3422,
521,
471,
562,
12,
7039,
63,
92,
5717,
405,
374,
65,
364,
1566,
316,
365,
18,
8151,
67,
4350,
67,
14852,
30,
309,
1566,
316,
10228,
7547,
2187,
296,
4816,
2187,
296,
9342,
3546,
30,
309,
365,
18,
718,
67,
291,
67,
9436,
429,
12,
7039,
63,
4589,
65,
4672,
10921,
1011,
296,
738,
87,
11613,
87,
5187,
738,
261,
4589,
16,
3422,
63,
4589,
5717,
469,
30,
10921,
1011,
296,
738,
87,
5095,
87,
11,
738,
521,
261,
92,
1049,
6939,
12,
4589,
3631,
3862,
1747,
12,
7039,
63,
4589,
22643,
309,
10921,
422,
3532,
69,
6,
578,
10921,
422,
3532,
6081,
6877,
327,
309,
1047,
316,
365,
18,
18942,
67,
2135,
67,
4412,
30,
10921,
1011,
315,
342,
6,
10921,
1011,
14675,
365,
18,
2088,
18,
6923,
12,
10921,
262,
365,
18,
3190,
67,
4156,
18,
6387,
12,
20,
16,
1047,
13,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
1937,
2692,
12,
2890,
16,
1047,
16,
707,
16,
3422,
4672,
309,
1047,
486,
316,
365,
18,
457,
7948,
67,
4156,
30,
309,
1047,
486,
316,
365,
18,
6406,
1845,
67,
4156,
30,
365,
18,
2088,
18,
6923,
12,
619,
1049,
6939,
2932,
32,
9,
87,
2984,
738,
225,
1047,
13,
262,
469,
30,
10921,
273,
18165,
397,
1047,
309,
1047,
316,
365,
18,
8151,
67,
4350,
30,
3422,
273,
2065,
12,
7039,
13,
365,
18,
8151,
67,
4350,
67,
14852,
273,
521,
306,
92,
364,
619,
316,
365,
18,
8151,
67,
4350,
63,
2692,
65,
309,
619,
316,
3422,
521,
471,
562,
12,
7039,
63,
92,
5717,
405,
374,
65,
364,
1566,
316,
365,
18,
2
] |
self._lineDict[name] = _Line(name, axes=axes, doAutoscale=doAutoscale, **kargs) | self._lineDict[name] = _Line(self, subplotInd, **kargs) def getDoAutoscale(self, subplotInd): return self._doAutoscaleArr[subplotInd] def getSubplot(self, subplotInd): return self.subplotArr[subplotInd] | def addLine(self, name, subplotInd=0, doLabel=True, **kargs): """Add a new quantity to plot Inputs: - name: name for line - subplotInd: index of subplot - doLabel: if True then the Line's label is set to name. Set True if you want the line to show up in the legend using name. Set False if you want no label (the line will not show in the legend) or if you prefer to specify a legend that is different than name all other keyword arguments are sent to the _Line constructor """ if name in self._lineDict: raise RuntimeError("Line %s already exists" % (name,)) axes = self.subplotArr[subplotInd] doAutoscale = self._doAutoscaleArr[subplotInd] if doLabel: kargs["label"] = name self._lineDict[name] = _Line(name, axes=axes, doAutoscale=doAutoscale, **kargs) | 8f0db37bc375c56ac27469781575815f4f3b008d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6353/8f0db37bc375c56ac27469781575815f4f3b008d/StripChartWdg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26772,
12,
2890,
16,
508,
16,
19826,
3866,
33,
20,
16,
741,
2224,
33,
5510,
16,
2826,
79,
1968,
4672,
3536,
986,
279,
394,
10457,
358,
3207,
225,
24472,
30,
300,
508,
30,
508,
364,
980,
300,
19826,
3866,
30,
770,
434,
19826,
300,
741,
2224,
30,
309,
1053,
1508,
326,
5377,
1807,
1433,
353,
444,
358,
508,
18,
1000,
1053,
309,
1846,
2545,
326,
980,
358,
2405,
731,
316,
326,
7241,
1450,
508,
18,
1000,
1083,
309,
1846,
2545,
1158,
1433,
261,
5787,
980,
903,
486,
2405,
316,
326,
7241,
13,
578,
309,
1846,
13256,
358,
4800,
279,
7241,
716,
353,
3775,
2353,
508,
777,
1308,
4932,
1775,
854,
3271,
358,
326,
389,
1670,
3885,
3536,
309,
508,
316,
365,
6315,
1369,
5014,
30,
1002,
7265,
2932,
1670,
738,
87,
1818,
1704,
6,
738,
261,
529,
16,
3719,
6515,
273,
365,
18,
24523,
5715,
63,
24523,
3866,
65,
741,
21023,
1869,
273,
365,
6315,
2896,
21023,
1869,
5715,
63,
24523,
3866,
65,
309,
741,
2224,
30,
25916,
9614,
1925,
11929,
273,
508,
365,
6315,
1369,
5014,
63,
529,
65,
273,
389,
1670,
12,
2890,
16,
19826,
3866,
16,
2826,
79,
1968,
13,
225,
1652,
11165,
21023,
1869,
12,
2890,
16,
19826,
3866,
4672,
327,
365,
6315,
2896,
21023,
1869,
5715,
63,
24523,
3866,
65,
225,
1652,
7040,
4032,
12,
2890,
16,
19826,
3866,
4672,
327,
365,
18,
24523,
5715,
63,
24523,
3866,
65,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26772,
12,
2890,
16,
508,
16,
19826,
3866,
33,
20,
16,
741,
2224,
33,
5510,
16,
2826,
79,
1968,
4672,
3536,
986,
279,
394,
10457,
358,
3207,
225,
24472,
30,
300,
508,
30,
508,
364,
980,
300,
19826,
3866,
30,
770,
434,
19826,
300,
741,
2224,
30,
309,
1053,
1508,
326,
5377,
1807,
1433,
353,
444,
358,
508,
18,
1000,
1053,
309,
1846,
2545,
326,
980,
358,
2405,
731,
316,
326,
7241,
1450,
508,
18,
1000,
1083,
309,
1846,
2545,
1158,
1433,
261,
5787,
980,
903,
486,
2405,
316,
326,
7241,
13,
578,
309,
1846,
13256,
358,
4800,
279,
7241,
716,
353,
3775,
2353,
508,
777,
1308,
4932,
1775,
854,
3271,
358,
326,
389,
1670,
3885,
3536,
309,
2
] |
try: if self.config['GENERAL']['DIRECT_CONNECT_IF_POSSIBLE'] and self.can_connect(): self.move_to_www_mode() else: rs, rsp = self.client_head_obj.get_http_server() if rs in self.config['GENERAL']['HOSTS_TO_BYPASS_PARENT_PROXY']: self.move_to_www_mode() else: self.move_to_proxy_mode() except KeyError: | rs, rsp = self.client_head_obj.get_http_server() if rs in self.config['GENERAL']['HOSTS_TO_BYPASS_PARENT_PROXY']: self.move_to_www_mode() elif self.config['GENERAL']['DIRECT_CONNECT_IF_POSSIBLE'] and self.can_connect(rs, rsp): self.move_to_www_mode() else: | def determine_mode(self): if self.config['GENERAL']['PARENT_PROXY']: if self.config['GENERAL']['HOSTS_TO_BYPASS_PARENT_PROXY'] or self.config['GENERAL']['DIRECT_CONNECT_IF_POSSIBLE']: try: if self.config['GENERAL']['DIRECT_CONNECT_IF_POSSIBLE'] and self.can_connect(): self.move_to_www_mode() else: rs, rsp = self.client_head_obj.get_http_server() if rs in self.config['GENERAL']['HOSTS_TO_BYPASS_PARENT_PROXY']: self.move_to_www_mode() else: self.move_to_proxy_mode() #host = self.client_head_obj.get_param_values('Host') #if host: # if host[0] in self.config['GENERAL']['HOSTS_TO_BYPASS_PARENT_PROXY']: # self.move_to_www_mode() # else: # self.move_to_proxy_mode() except KeyError: self.move_to_proxy_mode() else: self.move_to_proxy_mode() else: self.move_to_www_mode() return | 1c1e0aa9234eedf1ee6b79332cf55fa48586134b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2865/1c1e0aa9234eedf1ee6b79332cf55fa48586134b/proxy_client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4199,
67,
3188,
12,
2890,
4672,
309,
365,
18,
1425,
3292,
13990,
1013,
21712,
14943,
67,
16085,
3546,
30,
309,
365,
18,
1425,
3292,
13990,
1013,
21712,
8908,
55,
67,
4296,
67,
6486,
10884,
67,
14943,
67,
16085,
3546,
578,
365,
18,
1425,
3292,
13990,
1013,
21712,
17541,
67,
11032,
67,
5501,
67,
2419,
1260,
13450,
900,
3546,
30,
775,
30,
309,
365,
18,
1425,
3292,
13990,
1013,
21712,
17541,
67,
11032,
67,
5501,
67,
2419,
1260,
13450,
900,
3546,
471,
365,
18,
4169,
67,
3612,
13332,
365,
18,
8501,
67,
869,
67,
5591,
67,
3188,
1435,
469,
30,
3597,
16,
12049,
273,
365,
18,
2625,
67,
1978,
67,
2603,
18,
588,
67,
2505,
67,
3567,
1435,
309,
3597,
316,
365,
18,
1425,
3292,
13990,
1013,
21712,
8908,
55,
67,
4296,
67,
6486,
10884,
67,
14943,
67,
16085,
3546,
30,
365,
18,
8501,
67,
869,
67,
5591,
67,
3188,
1435,
469,
30,
365,
18,
8501,
67,
869,
67,
5656,
67,
3188,
1435,
468,
2564,
273,
365,
18,
2625,
67,
1978,
67,
2603,
18,
588,
67,
891,
67,
2372,
2668,
2594,
6134,
468,
430,
1479,
30,
468,
565,
309,
1479,
63,
20,
65,
316,
365,
18,
1425,
3292,
13990,
1013,
21712,
8908,
55,
67,
4296,
67,
6486,
10884,
67,
14943,
67,
16085,
3546,
30,
468,
3639,
365,
18,
8501,
67,
869,
67,
5591,
67,
3188,
1435,
468,
565,
469,
30,
468,
3639,
365,
18,
8501,
67,
869,
67,
5656,
67,
3188,
1435,
1335,
4999,
30,
365,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4199,
67,
3188,
12,
2890,
4672,
309,
365,
18,
1425,
3292,
13990,
1013,
21712,
14943,
67,
16085,
3546,
30,
309,
365,
18,
1425,
3292,
13990,
1013,
21712,
8908,
55,
67,
4296,
67,
6486,
10884,
67,
14943,
67,
16085,
3546,
578,
365,
18,
1425,
3292,
13990,
1013,
21712,
17541,
67,
11032,
67,
5501,
67,
2419,
1260,
13450,
900,
3546,
30,
775,
30,
309,
365,
18,
1425,
3292,
13990,
1013,
21712,
17541,
67,
11032,
67,
5501,
67,
2419,
1260,
13450,
900,
3546,
471,
365,
18,
4169,
67,
3612,
13332,
365,
18,
8501,
67,
869,
67,
5591,
67,
3188,
1435,
469,
30,
3597,
16,
12049,
273,
365,
18,
2625,
67,
1978,
67,
2603,
18,
588,
67,
2505,
67,
3567,
1435,
309,
2
] |
pstdout = PIPE | if sys.platform == 'os2emx': pstdout = None else: pstdout = PIPE | def processLeakLog(leakLogFile): """Process the leak log.""" # For the time being, don't warn (nor "info") if the log file is not there. (Bug 469523) if not os.path.exists(leakLogFile): return None | 2a8d758d6245d7de4e12f8f763bae830faf8087e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/2a8d758d6245d7de4e12f8f763bae830faf8087e/runxpcshelltests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
1682,
581,
1343,
12,
298,
581,
19103,
4672,
3536,
2227,
326,
20891,
613,
12123,
468,
2457,
326,
813,
3832,
16,
2727,
1404,
1894,
261,
29561,
315,
1376,
7923,
309,
326,
613,
585,
353,
486,
1915,
18,
261,
19865,
1059,
8148,
25,
4366,
13,
309,
486,
1140,
18,
803,
18,
1808,
12,
298,
581,
19103,
4672,
327,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
981,
30,
1652,
1207,
1682,
581,
1343,
12,
298,
581,
19103,
4672,
3536,
2227,
326,
20891,
613,
12123,
468,
2457,
326,
813,
3832,
16,
2727,
1404,
1894,
261,
29561,
315,
1376,
7923,
309,
326,
613,
585,
353,
486,
1915,
18,
261,
19865,
1059,
8148,
25,
4366,
13,
309,
486,
1140,
18,
803,
18,
1808,
12,
298,
581,
19103,
4672,
327,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
[(0, 1), (0, 10), (0, 19), (1, 8), (1, 2), (2, 3), (2, 6), (3, 19), (3, 4), (4, 17), (4, 5), (5, 6), (5, 15), (6, 7), (7, 8), (7, 14), (8, 9), (9, 10), (9, 13), (10, 11), (11, 12), (11, 18), (12, 16), (12, 13), (13, 14), (14, 15), (15, 16), (16, 17), (17, 18), (18, 19)] | [(0, 1), (0, 10), (0, 19), (1, 2), (1, 8), (2, 3), (2, 6), (3, 4), (3, 19), (4, 5), (4, 17), (5, 6), (5, 15), (6, 7), (7, 8), (7, 14), (8, 9), (9, 10), (9, 13), (10, 11), (11, 12), (11, 18), (12, 13), (12, 16), (13, 14), (14, 15), (15, 16), (16, 17), (17, 18), (18, 19)] | def edges(self, labels=True, sort=True): """ Return a list of edges. Each edge is a triple (u,v,l) where u and v are vertices and l is a label. INPUT: labels -- (bool; default: True) if False, each edge is a tuple (u,v) of vertices. sort -- (bool; default: True) if True, ensure that the list of edges is sorted. | 8f2d854c03fa1d7cf1003912572ef6bf352712d5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/8f2d854c03fa1d7cf1003912572ef6bf352712d5/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5231,
12,
2890,
16,
3249,
33,
5510,
16,
1524,
33,
5510,
4672,
3536,
2000,
279,
666,
434,
5231,
18,
8315,
3591,
353,
279,
14543,
261,
89,
16,
90,
16,
80,
13,
1625,
582,
471,
331,
854,
6928,
471,
328,
353,
279,
1433,
18,
225,
12943,
30,
3249,
1493,
261,
6430,
31,
805,
30,
1053,
13,
309,
1083,
16,
1517,
3591,
353,
279,
3193,
261,
89,
16,
90,
13,
434,
6928,
18,
1524,
1493,
261,
6430,
31,
805,
30,
1053,
13,
309,
1053,
16,
3387,
716,
326,
666,
434,
5231,
353,
3115,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5231,
12,
2890,
16,
3249,
33,
5510,
16,
1524,
33,
5510,
4672,
3536,
2000,
279,
666,
434,
5231,
18,
8315,
3591,
353,
279,
14543,
261,
89,
16,
90,
16,
80,
13,
1625,
582,
471,
331,
854,
6928,
471,
328,
353,
279,
1433,
18,
225,
12943,
30,
3249,
1493,
261,
6430,
31,
805,
30,
1053,
13,
309,
1083,
16,
1517,
3591,
353,
279,
3193,
261,
89,
16,
90,
13,
434,
6928,
18,
1524,
1493,
261,
6430,
31,
805,
30,
1053,
13,
309,
1053,
16,
3387,
716,
326,
666,
434,
5231,
353,
3115,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
j = end.start(0) res = tagfind.match(rawdata, i+1) if not res: raise RuntimeError, 'unexpected call to parse_starttag' k = res.end(0) tag = res.group(0) if not self.__seen_starttag and self.__seen_doctype: if tag != self.__seen_doctype: self.syntax_error('starttag does not match DOCTYPE') | tag = starttagmatch.match(rawdata, i) if tag is None or tag.end(0) != end.end(0): self.syntax_error('garbage in starttag') return end.end(0) tagname = tag.group('tagname') if not self.__seen_starttag and self.__seen_doctype and \ tagname != self.__seen_doctype: self.syntax_error('starttag does not match DOCTYPE') | def parse_starttag(self, i): rawdata = self.rawdata # i points to start of tag end = endbracket.search(rawdata, i+1) if not end: return -1 j = end.start(0) res = tagfind.match(rawdata, i+1) if not res: raise RuntimeError, 'unexpected call to parse_starttag' k = res.end(0) tag = res.group(0) if not self.__seen_starttag and self.__seen_doctype: if tag != self.__seen_doctype: self.syntax_error('starttag does not match DOCTYPE') if self.__seen_starttag and not self.stack: self.syntax_error('multiple elements on top level') if hasattr(self, tag + '_attributes'): attributes = getattr(self, tag + '_attributes') else: attributes = None attrdict, k = self.parse_attributes(tag, k, j, attributes) res = starttagend.match(rawdata, k) if not res: self.syntax_error('garbage in start tag') self.finish_starttag(tag, attrdict) if res and res.group('slash') == '/': self.finish_endtag(tag) return end.end(0) | 6ab07a6994f604145de2212d52c2267c7ebfeb5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6ab07a6994f604145de2212d52c2267c7ebfeb5c/xmllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
1937,
2692,
12,
2890,
16,
277,
4672,
1831,
892,
273,
365,
18,
1899,
892,
468,
277,
3143,
358,
787,
434,
1047,
679,
273,
679,
21025,
18,
3072,
12,
1899,
892,
16,
277,
15,
21,
13,
309,
486,
679,
30,
327,
300,
21,
1047,
273,
787,
2692,
1916,
18,
1916,
12,
1899,
892,
16,
277,
13,
309,
1047,
353,
599,
578,
1047,
18,
409,
12,
20,
13,
480,
679,
18,
409,
12,
20,
4672,
365,
18,
14308,
67,
1636,
2668,
75,
12332,
316,
787,
2692,
6134,
327,
679,
18,
409,
12,
20,
13,
25586,
273,
1047,
18,
1655,
2668,
2692,
529,
6134,
309,
486,
365,
16186,
15156,
67,
1937,
2692,
471,
365,
16186,
15156,
67,
2896,
12387,
471,
521,
25586,
480,
365,
16186,
15156,
67,
2896,
12387,
30,
365,
18,
14308,
67,
1636,
2668,
1937,
2692,
1552,
486,
845,
5467,
17331,
6134,
309,
365,
16186,
15156,
67,
1937,
2692,
471,
486,
365,
18,
3772,
30,
365,
18,
14308,
67,
1636,
2668,
9622,
2186,
603,
1760,
1801,
6134,
309,
3859,
12,
2890,
16,
1047,
397,
2070,
4350,
11,
4672,
1677,
273,
3869,
12,
2890,
16,
1047,
397,
2070,
4350,
6134,
469,
30,
1677,
273,
599,
1604,
1576,
16,
417,
273,
365,
18,
2670,
67,
4350,
12,
2692,
16,
417,
16,
525,
16,
1677,
13,
400,
273,
787,
2692,
409,
18,
1916,
12,
1899,
892,
16,
417,
13,
309,
486,
400,
30,
365,
18,
14308,
67,
1636,
2668,
75,
12332,
316,
787,
1047,
6134,
365,
18,
13749,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
1937,
2692,
12,
2890,
16,
277,
4672,
1831,
892,
273,
365,
18,
1899,
892,
468,
277,
3143,
358,
787,
434,
1047,
679,
273,
679,
21025,
18,
3072,
12,
1899,
892,
16,
277,
15,
21,
13,
309,
486,
679,
30,
327,
300,
21,
1047,
273,
787,
2692,
1916,
18,
1916,
12,
1899,
892,
16,
277,
13,
309,
1047,
353,
599,
578,
1047,
18,
409,
12,
20,
13,
480,
679,
18,
409,
12,
20,
4672,
365,
18,
14308,
67,
1636,
2668,
75,
12332,
316,
787,
2692,
6134,
327,
679,
18,
409,
12,
20,
13,
25586,
273,
1047,
18,
1655,
2668,
2692,
529,
6134,
309,
486,
365,
16186,
15156,
67,
1937,
2692,
471,
365,
16186,
15156,
67,
2896,
12387,
2
] |
if e[0] != _errno.EEXIST: | if e.args[0] != _errno.EEXIST: | def _get_default_tempdir(): """Calculate the default directory to use for temporary files. This routine should be called exactly once. We determine whether or not a candidate temp dir is usable by trying to create and write to a file in that directory. If this is successful, the test file is deleted. To prevent denial of service, the name of the test file must be randomized.""" namer = _RandomNameSequence() dirlist = _candidate_tempdir_list() flags = _text_openflags for dir in dirlist: if dir != _os.curdir: dir = _os.path.normcase(_os.path.abspath(dir)) # Try only a few names per directory. for seq in range(100): name = next(namer) filename = _os.path.join(dir, name) try: fd = _os.open(filename, flags, 0o600) fp = _io.open(fd, 'wb') fp.write(b'blat') fp.close() _os.unlink(filename) del fp, fd return dir except (OSError, IOError) as e: if e[0] != _errno.EEXIST: break # no point trying more names in this directory pass raise IOError(_errno.ENOENT, "No usable temporary directory found in %s" % dirlist) | 62202e160bda60c00625487d4f103754838aa676 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/62202e160bda60c00625487d4f103754838aa676/tempfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1886,
67,
5814,
1214,
13332,
3536,
8695,
326,
805,
1867,
358,
999,
364,
6269,
1390,
18,
1220,
12245,
1410,
506,
2566,
8950,
3647,
18,
225,
1660,
4199,
2856,
578,
486,
279,
5500,
1906,
1577,
353,
15603,
635,
8374,
358,
752,
471,
1045,
358,
279,
585,
316,
716,
1867,
18,
225,
971,
333,
353,
6873,
16,
326,
1842,
585,
353,
4282,
18,
225,
2974,
5309,
5545,
649,
434,
1156,
16,
326,
508,
434,
326,
1842,
585,
1297,
506,
2744,
1235,
12123,
225,
15135,
264,
273,
389,
8529,
461,
4021,
1435,
1577,
1098,
273,
389,
19188,
67,
5814,
1214,
67,
1098,
1435,
2943,
273,
389,
955,
67,
3190,
7133,
225,
364,
1577,
316,
1577,
1098,
30,
309,
1577,
480,
389,
538,
18,
1397,
1214,
30,
1577,
273,
389,
538,
18,
803,
18,
7959,
3593,
24899,
538,
18,
803,
18,
5113,
803,
12,
1214,
3719,
468,
6161,
1338,
279,
11315,
1257,
1534,
1867,
18,
364,
3833,
316,
1048,
12,
6625,
4672,
508,
273,
1024,
12,
17808,
264,
13,
1544,
273,
389,
538,
18,
803,
18,
5701,
12,
1214,
16,
508,
13,
775,
30,
5194,
273,
389,
538,
18,
3190,
12,
3459,
16,
2943,
16,
374,
83,
28133,
13,
4253,
273,
389,
1594,
18,
3190,
12,
8313,
16,
296,
9464,
6134,
4253,
18,
2626,
12,
70,
11,
3083,
270,
6134,
4253,
18,
4412,
1435,
389,
538,
18,
318,
1232,
12,
3459,
13,
1464,
4253,
16,
5194,
327,
1577,
1335,
261,
4618,
668,
16,
8340,
13,
487,
425,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1886,
67,
5814,
1214,
13332,
3536,
8695,
326,
805,
1867,
358,
999,
364,
6269,
1390,
18,
1220,
12245,
1410,
506,
2566,
8950,
3647,
18,
225,
1660,
4199,
2856,
578,
486,
279,
5500,
1906,
1577,
353,
15603,
635,
8374,
358,
752,
471,
1045,
358,
279,
585,
316,
716,
1867,
18,
225,
971,
333,
353,
6873,
16,
326,
1842,
585,
353,
4282,
18,
225,
2974,
5309,
5545,
649,
434,
1156,
16,
326,
508,
434,
326,
1842,
585,
1297,
506,
2744,
1235,
12123,
225,
15135,
264,
273,
389,
8529,
461,
4021,
1435,
1577,
1098,
273,
389,
19188,
67,
5814,
1214,
67,
1098,
1435,
2943,
273,
389,
955,
67,
3190,
7133,
225,
364,
1577,
316,
1577,
1098,
30,
309,
2
] |
if not ex: if modified: log = 'push(m)' else: log = 'push' self.refresh_patch(cache_update = False, log = log) else: self.refresh_patch(cache_update = False, log = 'push(c)') raise StackException, str(ex) return modified | self.refresh_patch(cache_update = False, log = 'push(m)') | def push_empty_patch(self, name): """Pushes an empty patch on the stack """ unapplied = self.get_unapplied() assert(name in unapplied) | d12b37ad2e67c914ec0d63d0877bf1ac90f7e044 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12366/d12b37ad2e67c914ec0d63d0877bf1ac90f7e044/stack.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1817,
67,
5531,
67,
2272,
12,
2890,
16,
508,
4672,
3536,
7621,
281,
392,
1008,
4729,
603,
326,
2110,
3536,
640,
438,
3110,
273,
365,
18,
588,
67,
318,
438,
3110,
1435,
1815,
12,
529,
316,
640,
438,
3110,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1817,
67,
5531,
67,
2272,
12,
2890,
16,
508,
4672,
3536,
7621,
281,
392,
1008,
4729,
603,
326,
2110,
3536,
640,
438,
3110,
273,
365,
18,
588,
67,
318,
438,
3110,
1435,
1815,
12,
529,
316,
640,
438,
3110,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
hvm_pvdrv = xc.hvm_get_param(self.domid, HVM_PARAM_CALLBACK_IRQ) if self.info.is_hvm() and not hvm_pvdrv: code = REVERSE_DOMAIN_SHUTDOWN_REASONS[reason] log.info("HVM save:remote shutdown dom %d!", self.domid) xc.domain_shutdown(self.domid, code) | if self.info.is_hvm(): hvm_pvdrv = xc.hvm_get_param(self.domid, HVM_PARAM_CALLBACK_IRQ) if not hvm_pvdrv: code = REVERSE_DOMAIN_SHUTDOWN_REASONS[reason] log.info("HVM save:remote shutdown dom %d!", self.domid) xc.domain_shutdown(self.domid, code) | def shutdown(self, reason): """Shutdown a domain by signalling this via xenstored.""" log.debug('XendDomainInfo.shutdown(%s)', reason) if self.state in (DOM_STATE_SHUTDOWN, DOM_STATE_HALTED,): raise XendError('Domain cannot be shutdown') | e5bc494866cc08ce7ae37d1778e7e82570e8786c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/e5bc494866cc08ce7ae37d1778e7e82570e8786c/XendDomainInfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5731,
12,
2890,
16,
3971,
4672,
3536,
10961,
279,
2461,
635,
1573,
454,
310,
333,
3970,
23048,
22601,
12123,
613,
18,
4148,
2668,
60,
409,
3748,
966,
18,
15132,
9275,
87,
13,
2187,
3971,
13,
309,
365,
18,
2019,
316,
261,
8168,
67,
7998,
67,
2664,
1693,
12711,
16,
4703,
67,
7998,
67,
44,
1013,
6404,
16,
4672,
1002,
1139,
409,
668,
2668,
3748,
2780,
506,
5731,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5731,
12,
2890,
16,
3971,
4672,
3536,
10961,
279,
2461,
635,
1573,
454,
310,
333,
3970,
23048,
22601,
12123,
613,
18,
4148,
2668,
60,
409,
3748,
966,
18,
15132,
9275,
87,
13,
2187,
3971,
13,
309,
365,
18,
2019,
316,
261,
8168,
67,
7998,
67,
2664,
1693,
12711,
16,
4703,
67,
7998,
67,
44,
1013,
6404,
16,
4672,
1002,
1139,
409,
668,
2668,
3748,
2780,
506,
5731,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
else: template_name = success_template_name | template_name = success_template_name | def follow(request, to_user_id, template_name='relationships/relationship_add_confirm.html', success_template_name='relationships/relationship_add_success.html', mimetype='text/html'): """ Allows a user to follow another user. Templates: ``relationships/relationship_add_confirm.html`` and ``relationships/relationship_add_success.html`` Context: to_user User object """ to_user = get_object_or_404(User, pk=to_user_id) from_user = request.user if request.method == 'POST': relationship, created = Relationship.objects.get_or_create(from_user=from_user, to_user=to_user) if request.is_ajax(): response = { 'success': 'Success', 'to_user': { 'username': to_user.username, 'user_id': to_user.pk }, 'from_user': { 'username': from_user.username, 'user_id': from_user.pk } } return HttpResponse(json.dumps(response), mimetype="application/json") else: template_name = success_template_name context = {'to_user': to_user} return render_to_response(template_name, context, context_instance=RequestContext(request), mimetype=mimetype) | 24068c98deeb5437ddc267accc7519be064fadda /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11830/24068c98deeb5437ddc267accc7519be064fadda/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2805,
12,
2293,
16,
358,
67,
1355,
67,
350,
16,
1542,
67,
529,
2218,
21632,
19,
12873,
67,
1289,
67,
10927,
18,
2620,
2187,
2216,
67,
3202,
67,
529,
2218,
21632,
19,
12873,
67,
1289,
67,
4768,
18,
2620,
2187,
12595,
2218,
955,
19,
2620,
11,
4672,
3536,
25619,
279,
729,
358,
2805,
4042,
729,
18,
225,
26212,
30,
12176,
21632,
19,
12873,
67,
1289,
67,
10927,
18,
2620,
10335,
471,
12176,
21632,
19,
12873,
67,
1289,
67,
4768,
18,
2620,
10335,
1772,
30,
358,
67,
1355,
2177,
733,
3536,
358,
67,
1355,
273,
336,
67,
1612,
67,
280,
67,
11746,
12,
1299,
16,
2365,
33,
869,
67,
1355,
67,
350,
13,
628,
67,
1355,
273,
590,
18,
1355,
225,
309,
590,
18,
2039,
422,
296,
3798,
4278,
5232,
16,
2522,
273,
15463,
18,
6911,
18,
588,
67,
280,
67,
2640,
12,
2080,
67,
1355,
33,
2080,
67,
1355,
16,
358,
67,
1355,
33,
869,
67,
1355,
13,
225,
309,
590,
18,
291,
67,
12813,
13332,
766,
273,
288,
296,
4768,
4278,
296,
4510,
2187,
296,
869,
67,
1355,
4278,
288,
296,
5053,
4278,
358,
67,
1355,
18,
5053,
16,
296,
1355,
67,
350,
4278,
358,
67,
1355,
18,
5465,
19879,
296,
2080,
67,
1355,
4278,
288,
296,
5053,
4278,
628,
67,
1355,
18,
5053,
16,
296,
1355,
67,
350,
4278,
628,
67,
1355,
18,
5465,
289,
289,
327,
9476,
12,
1977,
18,
13302,
1121,
12,
2740,
3631,
12595,
1546,
3685,
19,
1977,
7923,
1542,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2805,
12,
2293,
16,
358,
67,
1355,
67,
350,
16,
1542,
67,
529,
2218,
21632,
19,
12873,
67,
1289,
67,
10927,
18,
2620,
2187,
2216,
67,
3202,
67,
529,
2218,
21632,
19,
12873,
67,
1289,
67,
4768,
18,
2620,
2187,
12595,
2218,
955,
19,
2620,
11,
4672,
3536,
25619,
279,
729,
358,
2805,
4042,
729,
18,
225,
26212,
30,
12176,
21632,
19,
12873,
67,
1289,
67,
10927,
18,
2620,
10335,
471,
12176,
21632,
19,
12873,
67,
1289,
67,
4768,
18,
2620,
10335,
1772,
30,
358,
67,
1355,
2177,
733,
3536,
358,
67,
1355,
273,
336,
67,
1612,
67,
280,
67,
11746,
12,
1299,
16,
2365,
33,
869,
67,
1355,
67,
350,
13,
628,
67,
1355,
273,
590,
18,
2
] |
def get_current_xml_bug_tree(self): return mysite.customs.bugtrackers.bugzilla.url2bug_data( '') | def generate_current_bug_xml(self): queries = { 'Easy bugs': '', 'Documentation bugs': '' } return self.generate_bug_xml_from_queries(queries) | def get_current_xml_bug_tree(self): return mysite.customs.bugtrackers.bugzilla.url2bug_data( '') | e18f8d0790dd7a4976e34fcd84482d92c3f9b23f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/e18f8d0790dd7a4976e34fcd84482d92c3f9b23f/bugzilla_instances.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2972,
67,
2902,
67,
925,
67,
3413,
12,
2890,
4672,
327,
312,
1900,
1137,
18,
3662,
87,
18,
925,
4101,
414,
18,
925,
15990,
18,
718,
22,
925,
67,
892,
12,
28707,
2,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2972,
67,
2902,
67,
925,
67,
3413,
12,
2890,
4672,
327,
312,
1900,
1137,
18,
3662,
87,
18,
925,
4101,
414,
18,
925,
15990,
18,
718,
22,
925,
67,
892,
12,
28707,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
sub['combined'], sub['left'], sub['top'], sub['width'], sub['height'], sub['type']) config[sub['file']] = x.meta_format() | Path.posifyPath(sub['combined']), sub['left'], sub['top'], sub['width'], sub['height'], sub['type']) config[Path.posifyPath(sub['file'])] = x.meta_format() | def runImageCombining(self): """Go through a list of images and create them as combination of other images""" if not self._job.get("combine-images", False): return | ee265889d0f5ee1c21a3b5885a13444646e1343c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/ee265889d0f5ee1c21a3b5885a13444646e1343c/Generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
2040,
24107,
310,
12,
2890,
4672,
3536,
5741,
3059,
279,
666,
434,
4602,
471,
752,
2182,
487,
10702,
434,
1308,
4602,
8395,
309,
486,
365,
6315,
4688,
18,
588,
2932,
14082,
17,
7369,
3113,
1083,
4672,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
2040,
24107,
310,
12,
2890,
4672,
3536,
5741,
3059,
279,
666,
434,
4602,
471,
752,
2182,
487,
10702,
434,
1308,
4602,
8395,
309,
486,
365,
6315,
4688,
18,
588,
2932,
14082,
17,
7369,
3113,
1083,
4672,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if oneTwoVersion is False: return False | def checkVersion(self, oneZeroVersion, oneOneVersion, oneTwoVersion=None, twoZeroVersion=None): if self.majorVersion == [1,0]: if not oneZeroVersion: return False return self.minorVersion >= oneZeroVersion elif self.majorVersion == [1,1]: if not oneOneVersion: return False return self.minorVersion >= oneOneVersion elif self.majorVersion == [1,2]: if oneTwoVersion is None: return True if oneTwoVersion is False: return False return self.minorVersion >= oneTwoVersion elif self.majorVersion == [2,0]: if twoZeroVersion is None: return True if twoZeroVersion is False: return False return self.minorVersion >= twoZeroVersion # default to supporting everything - we're running something really new! return True | 98ccac4228c9b941ab478aa38f812ce80ace7691 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8749/98ccac4228c9b941ab478aa38f812ce80ace7691/compat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
1444,
12,
2890,
16,
1245,
7170,
1444,
16,
1245,
3335,
1444,
16,
1245,
11710,
1444,
33,
7036,
16,
2795,
7170,
1444,
33,
7036,
4672,
309,
365,
18,
14019,
1444,
422,
306,
21,
16,
20,
14542,
309,
486,
1245,
7170,
1444,
30,
327,
1083,
327,
365,
18,
17364,
1444,
1545,
1245,
7170,
1444,
1327,
365,
18,
14019,
1444,
422,
306,
21,
16,
21,
14542,
309,
486,
1245,
3335,
1444,
30,
327,
1083,
327,
365,
18,
17364,
1444,
1545,
1245,
3335,
1444,
1327,
365,
18,
14019,
1444,
422,
306,
21,
16,
22,
14542,
309,
1245,
11710,
1444,
353,
599,
30,
327,
1053,
327,
365,
18,
17364,
1444,
1545,
1245,
11710,
1444,
1327,
365,
18,
14019,
1444,
422,
306,
22,
16,
20,
14542,
309,
2795,
7170,
1444,
353,
599,
30,
327,
1053,
309,
2795,
7170,
1444,
353,
1083,
30,
327,
1083,
327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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
1444,
12,
2890,
16,
1245,
7170,
1444,
16,
1245,
3335,
1444,
16,
1245,
11710,
1444,
33,
7036,
16,
2795,
7170,
1444,
33,
7036,
4672,
309,
365,
18,
14019,
1444,
422,
306,
21,
16,
20,
14542,
309,
486,
1245,
7170,
1444,
30,
327,
1083,
327,
365,
18,
17364,
1444,
1545,
1245,
7170,
1444,
1327,
365,
18,
14019,
1444,
422,
306,
21,
16,
21,
14542,
309,
486,
1245,
3335,
1444,
30,
327,
1083,
327,
365,
18,
17364,
1444,
1545,
1245,
3335,
1444,
1327,
365,
18,
14019,
1444,
422,
306,
21,
16,
22,
14542,
309,
1245,
11710,
1444,
353,
599,
30,
327,
1053,
327,
365,
18,
17364,
1444,
1545,
1245,
11710,
1444,
1327,
365,
18,
14019,
1444,
422,
306,
22,
2
] |
|
m.resize(512) except SystemError: pass else: self.assertEqual(len(m), 512) self.assertRaises(ValueError, m.seek, 513, 0) f = open(TESTFN) | def test_basic(self): # Test mmap module on Unix systems and Windows | 456fe5d3cafc065b919fd4e8ba939c666f420dfa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/456fe5d3cafc065b919fd4e8ba939c666f420dfa/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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
position = linear_interp (rootstart, rootend, i, len (paths['root'])) | position = linear_interp (rootstart, rootend, i, len(paths)) | def build_order(asf): order = ['root'] pos = 0 while pos < len(order): for group in asf.hierarchy: if len(group) and group[0] == order[pos]: order.extend(group[1:]) pos += 1 return order | 07d9044de24812334fbc0e0919fbef89c45b6f19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/07d9044de24812334fbc0e0919fbef89c45b6f19/shuffle-interpolate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
1019,
12,
345,
74,
4672,
1353,
273,
10228,
3085,
3546,
949,
273,
374,
1323,
949,
411,
562,
12,
1019,
4672,
364,
1041,
316,
487,
74,
18,
17937,
30,
309,
562,
12,
1655,
13,
471,
1041,
63,
20,
65,
422,
1353,
63,
917,
14542,
1353,
18,
14313,
12,
1655,
63,
21,
30,
5717,
949,
1011,
404,
225,
327,
1353,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
1019,
12,
345,
74,
4672,
1353,
273,
10228,
3085,
3546,
949,
273,
374,
1323,
949,
411,
562,
12,
1019,
4672,
364,
1041,
316,
487,
74,
18,
17937,
30,
309,
562,
12,
1655,
13,
471,
1041,
63,
20,
65,
422,
1353,
63,
917,
14542,
1353,
18,
14313,
12,
1655,
63,
21,
30,
5717,
949,
1011,
404,
225,
327,
1353,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Plone treats recognizes him, assigns local permissions if ShibbolethPermissions is installed and passes control to the next | Plone recognizes him and passes control to the next | def safe_int(s, default=0): try: return int(s) except (ValueError, TypeError): return default | 2de4ef7b586d1fa2962de407bcc01fa802722718 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11319/2de4ef7b586d1fa2962de407bcc01fa802722718/auth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4183,
67,
474,
12,
87,
16,
805,
33,
20,
4672,
775,
30,
327,
509,
12,
87,
13,
1335,
261,
23610,
16,
3580,
4672,
327,
805,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4183,
67,
474,
12,
87,
16,
805,
33,
20,
4672,
775,
30,
327,
509,
12,
87,
13,
1335,
261,
23610,
16,
3580,
4672,
327,
805,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
sys.ps1 = "[DEBUG ON]>>> " | sys.ps1 = "[DEBUG ON]\n>>> " | def open_debugger(self): import Debugger self.interp.setdebugger(Debugger.Debugger(self)) sys.ps1 = "[DEBUG ON]>>> " self.showprompt() self.top.tkraise() self.text.focus_set() | adfe773d2c0ab1aa9f692956ed8f7fec0caaf940 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/adfe773d2c0ab1aa9f692956ed8f7fec0caaf940/PyShell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
4148,
693,
12,
2890,
4672,
1930,
28645,
365,
18,
24940,
18,
542,
4148,
693,
12,
24113,
18,
24113,
12,
2890,
3719,
2589,
18,
1121,
21,
273,
5158,
9394,
6229,
13944,
82,
23012,
315,
365,
18,
4500,
13325,
1435,
365,
18,
3669,
18,
16099,
11628,
1435,
365,
18,
955,
18,
13923,
67,
542,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
1121,
21,
273,
5158,
9394,
6229,
13944,
82,
23012,
315,
365,
18,
4500,
13325,
1435,
365,
18,
3669,
18,
16099,
11628,
1435,
365,
18,
955,
18,
13923,
67,
542,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print 'user theme' | def LoadThemeCfg(self): ##current theme type radiobutton self.themeIsBuiltin.set(idleConf.GetOption('main','Theme','default', type='bool',default=1)) ##currently set theme currentOption=idleConf.CurrentTheme() print 'current option',currentOption ##load available theme option menus if self.themeIsBuiltin.get(): #default theme selected print 'builtin theme' itemList=idleConf.GetSectionList('default','highlight') itemList.sort() print 'builtin items:',itemList self.optMenuThemeBuiltin.SetMenu(itemList,currentOption) itemList=idleConf.GetSectionList('user','highlight') itemList.sort() print 'user items:',itemList if not itemList: self.radioThemeCustom.config(state=DISABLED) self.customTheme.set('- no custom themes -') else: self.optMenuThemeCustom.SetMenu(itemList,itemList[0]) else: #user theme selected print 'user theme' itemList=idleConf.GetSectionList('user','highlight') itemList.sort() print 'user items:',itemList self.optMenuThemeCustom.SetMenu(itemList,currentOption) itemList=idleConf.GetSectionList('default','highlight') itemList.sort() print 'builtin items:',itemList self.optMenuThemeBuiltin.SetMenu(itemList,itemList[0]) self.SetThemeType() ##load theme element option menu themeNames=self.themeElements.keys() themeNames.sort(self.__ThemeNameIndexCompare) self.optMenuHighlightTarget.SetMenu(themeNames,themeNames[0]) self.PaintThemeSample() self.SetHighlightTarget() | dfd0b296d766645bd2e01955a61f52643a483922 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dfd0b296d766645bd2e01955a61f52643a483922/configDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
8335,
8198,
12,
2890,
4672,
7541,
2972,
5006,
618,
12094,
947,
2644,
365,
18,
7997,
2520,
28032,
18,
542,
12,
20390,
3976,
18,
967,
1895,
2668,
5254,
17023,
8335,
17023,
1886,
2187,
618,
2218,
6430,
2187,
1886,
33,
21,
3719,
7541,
2972,
715,
444,
5006,
783,
1895,
33,
20390,
3976,
18,
3935,
8335,
1435,
1172,
296,
2972,
1456,
2187,
2972,
1895,
7541,
945,
2319,
5006,
1456,
21374,
309,
365,
18,
7997,
2520,
28032,
18,
588,
13332,
468,
1886,
5006,
3170,
1172,
296,
24553,
5006,
11,
761,
682,
33,
20390,
3976,
18,
967,
5285,
682,
2668,
1886,
17023,
15978,
6134,
761,
682,
18,
3804,
1435,
1172,
296,
24553,
1516,
30,
2187,
1726,
682,
365,
18,
3838,
4599,
8335,
28032,
18,
694,
4599,
12,
1726,
682,
16,
2972,
1895,
13,
761,
682,
33,
20390,
3976,
18,
967,
5285,
682,
2668,
1355,
17023,
15978,
6134,
761,
682,
18,
3804,
1435,
1172,
296,
1355,
1516,
30,
2187,
1726,
682,
309,
486,
761,
682,
30,
365,
18,
17006,
8335,
3802,
18,
1425,
12,
2019,
33,
24493,
13,
365,
18,
3662,
8335,
18,
542,
2668,
17,
1158,
1679,
15455,
300,
6134,
469,
30,
365,
18,
3838,
4599,
8335,
3802,
18,
694,
4599,
12,
1726,
682,
16,
1726,
682,
63,
20,
5717,
469,
30,
468,
1355,
5006,
3170,
761,
682,
33,
20390,
3976,
18,
967,
5285,
682,
2668,
1355,
17023,
15978,
6134,
761,
682,
18,
3804,
1435,
1172,
296,
1355,
1516,
30,
2187,
1726,
682,
365,
18,
3838,
4599,
8335,
3802,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
8335,
8198,
12,
2890,
4672,
7541,
2972,
5006,
618,
12094,
947,
2644,
365,
18,
7997,
2520,
28032,
18,
542,
12,
20390,
3976,
18,
967,
1895,
2668,
5254,
17023,
8335,
17023,
1886,
2187,
618,
2218,
6430,
2187,
1886,
33,
21,
3719,
7541,
2972,
715,
444,
5006,
783,
1895,
33,
20390,
3976,
18,
3935,
8335,
1435,
1172,
296,
2972,
1456,
2187,
2972,
1895,
7541,
945,
2319,
5006,
1456,
21374,
309,
365,
18,
7997,
2520,
28032,
18,
588,
13332,
468,
1886,
5006,
3170,
1172,
296,
24553,
5006,
11,
761,
682,
33,
20390,
3976,
18,
967,
5285,
682,
2668,
1886,
17023,
15978,
6134,
761,
682,
18,
3804,
1435,
1172,
296,
24553,
1516,
30,
2187,
1726,
682,
365,
18,
3838,
4599,
8335,
2
] |
|
if storagegroups.has_key(u'posterdir'): videometadata[u'host'] = localhostname.lower() | def createVideometadataRecord(item): '''Using the details from a Miro item create a MythTV videometadata record return an dictionary of MythTV an initialised videometadata record ''' global localhostname, simulation, verbose, storagegroups, ffmpeg, channel_id, flat, image_extensions global videometadata_initialize_record, vid_graphics_dirs, channel_icon_override ffmpeg_details = getVideoDetails(item[u'videoFilename']) start_end = getStartEndTimes(ffmpeg_details[u'duration'], item[u'downloadedTime']) fieldnames = mythvideo.getTableFieldNames(u'videometadata') sympath = u'Miro' if not flat: sympath+=u"/%s" % item[u'channelTitle'] banners = u'mirobridge_banner.jpg' for ext in image_extensions: filename = u"%s_banner.%s" % (item[u'channelTitle'], ext) if os.path.isfile(vid_graphics_dirs[u'bannerdir']+filename): banners = setSymbolic(vid_graphics_dirs[u'bannerdir']+filename, u'bannerdir', item[u'channelTitle']) break else: if not os.path.isfile(vid_graphics_dirs[u'bannerdir']+banners): banners = '' fanart = u'mirobridge_fanart.jpg' for ext in image_extensions: filename = u"%s_fanart.%s" % (item[u'channelTitle'], ext) if os.path.isfile(vid_graphics_dirs[u'fanartdir']+filename): fanart = setSymbolic(vid_graphics_dirs[u'fanartdir']+filename, u'fanartdir', item[u'channelTitle']) break else: if not os.path.isfile(vid_graphics_dirs[u'fanartdir']+fanart): fanart = '' ffmpeg_details = getVideoDetails(item[u'videoFilename']) start_end = getStartEndTimes(ffmpeg_details[u'duration'], item[u'downloadedTime']) videometadata = {} for key in videometadata_initialize_record: # Initialize the videometadata record videometadata[key] = videometadata_initialize_record[key] videometadata[u'title'] = item[u'channelTitle'] videometadata[u'subtitle'] = item[u'title'] try: details = massageDescription(item[u'description'], extras=True) except TypeError: print print u"MythVideo-Channel title(%s) subtitle(%s)" % (item[u'channelTitle'], item[u'title']) print u"The 'massageDescription()' function could not remove HTML and XML tags from:" print u"Description (%s)\n\n" % item[u'description'] details = {u'plot': item[u'description']} for key in details.keys(): videometadata[key] = details[key] if item[u'releasedate'] == None: item[u'releasedate'] = item[u'downloadedTime'] try: dummy = item[u'releasedate'].strftime('%Y-%m-%d') except ValueError: item[u'releasedate'] = item[u'downloadedTime'] if item[u'releasedate'] != None: videometadata[u'year'] = item[u'releasedate'].strftime('%Y') if u'episode' in fieldnames: videometadata[u'season'] = 0 videometadata[u'episode'] = 0 videometadata[u'length'] = ffmpeg_details[u'duration']/60 videometadata[u'category'] = mythvideo.getGenreId(u'Miro') if storagegroups.has_key(u'mythvideo'): videometadata[u'host'] = localhostname.lower() if not u'copied' in item.keys(): ext = (item[u'videoFilename']) videofile = setSymbolic(item[u'videoFilename'], u'mythvideo', "%s/%s - %s" % (sympath, item[u'channelTitle'], item[u'title']), allow_symlink=True) if videofile != None: videometadata[u'filename'] = videofile else: logger.critical(u"The file (%s) must exist to create a videometadata record" % item[u'videoFilename']) sys.exit(False) else: videometadata[u'filename'] = item[u'videoFilename'] if not u'copied' in item.keys(): if item[u'channel_icon'] and not item[u'channelTitle'].lower() in channel_icon_override: if storagegroups.has_key(u'posterdir'): videometadata[u'host'] = localhostname.lower() ext = (item[u'channel_icon']) filename = setSymbolic(item[u'channel_icon'], u'posterdir', u"%s" % (item[u'channelTitle'])) if filename != None: videometadata[u'coverfile'] = filename else: if item[u'item_icon']: if storagegroups.has_key(u'posterdir'): videometadata[u'host'] = localhostname.lower() ext = (item[u'item_icon']) filename = setSymbolic(item[u'item_icon'], u'posterdir', u"%s - %s" % (item[u'channelTitle'], item[u'title'])) if filename != None: videometadata[u'coverfile'] = filename else: if storagegroups.has_key(u'posterdir'): videometadata[u'host'] = localhostname.lower() videometadata[u'coverfile'] = item[u'channel_icon'] if not item.has_key(u'copied'): if item[u'screenshot']: if storagegroups.has_key(u'episodeimagedir'): videometadata[u'host'] = localhostname.lower() ext = (item[u'screenshot']) filename = setSymbolic(item[u'screenshot'], u'episodeimagedir', u"%s - %s" % (item[u'channelTitle'], item[u'title'])) if filename != None: videometadata[u'screenshot'] = filename else: if item[u'screenshot']: if storagegroups.has_key(u'episodeimagedir'): videometadata[u'host'] = localhostname.lower() videometadata[u'screenshot'] = item[u'screenshot'] if banners != u'' and videometadata[u'subtitle'] != u'': if storagegroups.has_key(u'bannerdir'): videometadata[u'host'] = localhostname.lower() videometadata[u'banner'] = banners else: videometadata[u'banner'] = vid_graphics_dirs[u'bannerdir']+banners if fanart != u'': if storagegroups.has_key(u'fanartdir'): videometadata[u'host'] = localhostname.lower() videometadata[u'fanart'] = fanart else: videometadata[u'fanart'] = vid_graphics_dirs[u'fanartdir']+fanart return [videometadata, createOldRecordedRecord(item, start_end[0], start_end[1])] # end createVideometadataRecord() | cefa7947527c8e9e2184befa6fb1cdca04096461 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/cefa7947527c8e9e2184befa6fb1cdca04096461/mirobridge.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
58,
831,
362,
1175,
2115,
12,
1726,
4672,
9163,
7736,
326,
3189,
628,
279,
490,
11373,
761,
752,
279,
8005,
451,
15579,
331,
831,
362,
1175,
1409,
327,
392,
3880,
434,
8005,
451,
15579,
392,
30372,
331,
831,
362,
1175,
1409,
9163,
2552,
1191,
10358,
16,
14754,
16,
3988,
16,
2502,
4650,
16,
6875,
19951,
16,
1904,
67,
350,
16,
3569,
16,
1316,
67,
9489,
2552,
331,
831,
362,
1175,
67,
11160,
67,
3366,
16,
18339,
67,
31586,
67,
8291,
16,
1904,
67,
3950,
67,
10601,
225,
6875,
19951,
67,
6395,
273,
336,
10083,
3790,
12,
1726,
63,
89,
11,
9115,
5359,
19486,
787,
67,
409,
273,
8635,
1638,
10694,
12,
1403,
19951,
67,
6395,
63,
89,
14271,
872,
17337,
761,
63,
89,
14271,
995,
4230,
950,
19486,
225,
25051,
273,
3399,
451,
9115,
18,
588,
1388,
20393,
12,
89,
11,
6768,
362,
1175,
6134,
225,
5382,
803,
273,
582,
11,
49,
11373,
11,
309,
486,
3569,
30,
5382,
803,
15,
33,
89,
6,
5258,
87,
6,
738,
761,
63,
89,
11,
4327,
4247,
3546,
324,
19637,
273,
582,
17784,
11373,
18337,
67,
16563,
18,
14362,
11,
364,
1110,
316,
1316,
67,
9489,
30,
1544,
273,
582,
28385,
87,
67,
16563,
7866,
87,
6,
738,
261,
1726,
63,
89,
11,
4327,
4247,
17337,
1110,
13,
309,
1140,
18,
803,
18,
291,
768,
12,
1246,
67,
31586,
67,
8291,
63,
89,
11,
16563,
1214,
3546,
15,
3459,
4672,
324,
19637,
273,
444,
10876,
12164,
12,
1246,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
58,
831,
362,
1175,
2115,
12,
1726,
4672,
9163,
7736,
326,
3189,
628,
279,
490,
11373,
761,
752,
279,
8005,
451,
15579,
331,
831,
362,
1175,
1409,
327,
392,
3880,
434,
8005,
451,
15579,
392,
30372,
331,
831,
362,
1175,
1409,
9163,
2552,
1191,
10358,
16,
14754,
16,
3988,
16,
2502,
4650,
16,
6875,
19951,
16,
1904,
67,
350,
16,
3569,
16,
1316,
67,
9489,
2552,
331,
831,
362,
1175,
67,
11160,
67,
3366,
16,
18339,
67,
31586,
67,
8291,
16,
1904,
67,
3950,
67,
10601,
225,
6875,
19951,
67,
6395,
273,
336,
10083,
3790,
12,
1726,
63,
89,
11,
9115,
5359,
19486,
787,
67,
409,
273,
8635,
1638,
10694,
12,
1403,
19951,
67,
6395,
63,
89,
2
] |
|
return descriptors, tcoeff_names def getNames(self, descriptors, tcoeff_names): | return descriptors, tcoeff_names, true_values def getNames(self, descriptors, tcoeff_names, true_values): | def getDescriptors(self, trans, examples, buckets): tcoeff_names = [] descriptors = [] # used for managing continuous atts for i in range(len(trans)): t = trans[i] tc = ["%s"%t.attr.name] d = t.description() #print tc[0],d if d[0]==0: # continuous values = self.bucketize(examples, t.attr, buckets) tc += values descriptors.append((i,-1)) else: # nominal x = 0 for n in d[2]: if n!='': tc.append(n) descriptors.append((i,x)) x += 1 tcoeff_names.append(tc) return descriptors, tcoeff_names | d5d765a106ee2fda0789f07a6a122d52f838cef9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/d5d765a106ee2fda0789f07a6a122d52f838cef9/orngLinVis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2343,
8379,
12,
2890,
16,
906,
16,
10991,
16,
9169,
4672,
1715,
15548,
1403,
67,
1973,
273,
5378,
14215,
273,
5378,
468,
1399,
364,
30632,
17235,
15687,
364,
277,
316,
1048,
12,
1897,
12,
2338,
3719,
30,
268,
273,
906,
63,
77,
65,
1715,
273,
8247,
9,
87,
28385,
88,
18,
1747,
18,
529,
65,
302,
273,
268,
18,
3384,
1435,
468,
1188,
1715,
63,
20,
6487,
72,
309,
302,
63,
20,
65,
631,
20,
30,
468,
17235,
924,
273,
365,
18,
7242,
554,
12,
16858,
16,
268,
18,
1747,
16,
9169,
13,
1715,
1011,
924,
14215,
18,
6923,
12443,
77,
16,
17,
21,
3719,
469,
30,
468,
12457,
1490,
619,
273,
374,
364,
290,
316,
302,
63,
22,
14542,
309,
290,
5,
2218,
4278,
1715,
18,
6923,
12,
82,
13,
14215,
18,
6923,
12443,
77,
16,
92,
3719,
619,
1011,
404,
1715,
15548,
1403,
67,
1973,
18,
6923,
12,
5111,
13,
327,
14215,
16,
1715,
15548,
1403,
67,
1973,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2343,
8379,
12,
2890,
16,
906,
16,
10991,
16,
9169,
4672,
1715,
15548,
1403,
67,
1973,
273,
5378,
14215,
273,
5378,
468,
1399,
364,
30632,
17235,
15687,
364,
277,
316,
1048,
12,
1897,
12,
2338,
3719,
30,
268,
273,
906,
63,
77,
65,
1715,
273,
8247,
9,
87,
28385,
88,
18,
1747,
18,
529,
65,
302,
273,
268,
18,
3384,
1435,
468,
1188,
1715,
63,
20,
6487,
72,
309,
302,
63,
20,
65,
631,
20,
30,
468,
17235,
924,
273,
365,
18,
7242,
554,
12,
16858,
16,
268,
18,
1747,
16,
9169,
13,
1715,
1011,
924,
14215,
18,
6923,
12443,
77,
16,
17,
21,
3719,
469,
30,
468,
12457,
1490,
619,
273,
374,
364,
290,
316,
302,
63,
2
] |
fd = os.open(filename, os.O_RDONLY, 0777) def call_fstat(fd): | def call_fstat(): fd = os.open(filename, os.O_RDONLY, 0777) | def test_os_fstat(): if os.environ.get('PYPY_CC', '').startswith('tcc'): py.test.skip("segfault with tcc :-(") filename = str(py.magic.autopath()) fd = os.open(filename, os.O_RDONLY, 0777) def call_fstat(fd): st = os.fstat(fd) return (st.st_mode, st[1], st.st_mtime) f = compile(call_fstat, [int]) osstat = os.stat(filename) st_mode, st_ino, st_mtime = f(fd) os.close(fd) assert st_mode == osstat.st_mode assert st_ino == osstat.st_ino if sys.platform.startswith('win'): py.test.skip("in-progress - bogus stat().st_time") if isinstance(st_mtime, float): assert st_mtime == osstat.st_mtime else: assert st_mtime == int(osstat.st_mtime) | 7ade73798be092b77257e5fe57c2788969feaff1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/7ade73798be092b77257e5fe57c2788969feaff1/test_extfunc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
538,
67,
74,
5642,
13332,
309,
1140,
18,
28684,
18,
588,
2668,
16235,
16235,
67,
6743,
2187,
875,
2934,
17514,
1918,
2668,
88,
952,
11,
4672,
2395,
18,
3813,
18,
7457,
2932,
5680,
643,
598,
268,
952,
294,
17,
2932,
13,
1544,
273,
609,
12,
2074,
18,
11179,
18,
5854,
556,
421,
10756,
1652,
745,
67,
74,
5642,
13332,
5194,
273,
1140,
18,
3190,
12,
3459,
16,
1140,
18,
51,
67,
20403,
10857,
16,
16660,
13,
384,
273,
1140,
18,
74,
5642,
12,
8313,
13,
327,
261,
334,
18,
334,
67,
3188,
16,
384,
63,
21,
6487,
384,
18,
334,
67,
10838,
13,
284,
273,
4074,
12,
1991,
67,
74,
5642,
16,
306,
474,
5717,
1140,
5642,
273,
1140,
18,
5642,
12,
3459,
13,
384,
67,
3188,
16,
384,
67,
15020,
16,
384,
67,
10838,
273,
284,
12,
8313,
13,
1140,
18,
4412,
12,
8313,
13,
1815,
384,
67,
3188,
225,
422,
1140,
5642,
18,
334,
67,
3188,
1815,
384,
67,
15020,
282,
422,
1140,
5642,
18,
334,
67,
15020,
309,
2589,
18,
9898,
18,
17514,
1918,
2668,
8082,
11,
4672,
2395,
18,
3813,
18,
7457,
2932,
267,
17,
8298,
300,
324,
28774,
610,
7675,
334,
67,
957,
7923,
309,
1549,
12,
334,
67,
10838,
16,
1431,
4672,
1815,
384,
67,
10838,
422,
1140,
5642,
18,
334,
67,
10838,
469,
30,
1815,
384,
67,
10838,
422,
509,
12,
538,
5642,
18,
334,
67,
10838,
13,
225,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
538,
67,
74,
5642,
13332,
309,
1140,
18,
28684,
18,
588,
2668,
16235,
16235,
67,
6743,
2187,
875,
2934,
17514,
1918,
2668,
88,
952,
11,
4672,
2395,
18,
3813,
18,
7457,
2932,
5680,
643,
598,
268,
952,
294,
17,
2932,
13,
1544,
273,
609,
12,
2074,
18,
11179,
18,
5854,
556,
421,
10756,
1652,
745,
67,
74,
5642,
13332,
5194,
273,
1140,
18,
3190,
12,
3459,
16,
1140,
18,
51,
67,
20403,
10857,
16,
16660,
13,
384,
273,
1140,
18,
74,
5642,
12,
8313,
13,
327,
261,
334,
18,
334,
67,
3188,
16,
384,
63,
21,
6487,
384,
18,
334,
67,
10838,
13,
284,
273,
4074,
12,
1991,
67,
74,
5642,
16,
306,
474,
5717,
1140,
2
] |
cr.execute('update ir_sequence set number_next=number_next+number_increment where id=%s and active=True', (res['id'],)) | cr.execute('UPDATE ir_sequence SET number_next=number_next+number_increment WHERE id=%s AND active=%s', (res['id'], True)) | def get_id(self, cr, uid, sequence_id, test='id=%s', context={}): try: cr.execute('lock table ir_sequence') cr.execute('select id,number_next,number_increment,prefix,suffix,padding from ir_sequence where '+test+' and active=True', (sequence_id,)) res = cr.dictfetchone() if res: cr.execute('update ir_sequence set number_next=number_next+number_increment where id=%s and active=True', (res['id'],)) if res['number_next']: return self._process(res['prefix']) + '%%0%sd' % res['padding'] % res['number_next'] + self._process(res['suffix']) else: return self._process(res['prefix']) + self._process(res['suffix']) finally: cr.commit() return False | 3dfafb4181f1899abe184c89975fca1dd32d5dad /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/3dfafb4181f1899abe184c89975fca1dd32d5dad/ir_sequence.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3102,
67,
350,
16,
1842,
2218,
350,
5095,
87,
2187,
819,
12938,
4672,
775,
30,
4422,
18,
8837,
2668,
739,
1014,
9482,
67,
6178,
6134,
4422,
18,
8837,
2668,
4025,
612,
16,
2696,
67,
4285,
16,
2696,
67,
15016,
16,
3239,
16,
8477,
16,
9598,
628,
9482,
67,
6178,
1625,
15126,
3813,
6797,
471,
2695,
33,
5510,
2187,
261,
6178,
67,
350,
16,
3719,
400,
273,
4422,
18,
1576,
5754,
476,
1435,
309,
400,
30,
4422,
18,
8837,
2668,
8217,
9482,
67,
6178,
7855,
1300,
67,
4285,
33,
2696,
67,
4285,
15,
2696,
67,
15016,
4852,
612,
5095,
87,
4116,
2695,
5095,
87,
2187,
261,
455,
3292,
350,
17337,
1053,
3719,
309,
400,
3292,
2696,
67,
4285,
3546,
30,
327,
365,
6315,
2567,
12,
455,
3292,
3239,
19486,
397,
1995,
9,
20,
9,
6427,
11,
738,
400,
3292,
9598,
3546,
738,
400,
3292,
2696,
67,
4285,
3546,
397,
365,
6315,
2567,
12,
455,
3292,
8477,
19486,
469,
30,
327,
365,
6315,
2567,
12,
455,
3292,
3239,
19486,
397,
365,
6315,
2567,
12,
455,
3292,
8477,
19486,
3095,
30,
4422,
18,
7371,
1435,
327,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3102,
67,
350,
16,
1842,
2218,
350,
5095,
87,
2187,
819,
12938,
4672,
775,
30,
4422,
18,
8837,
2668,
739,
1014,
9482,
67,
6178,
6134,
4422,
18,
8837,
2668,
4025,
612,
16,
2696,
67,
4285,
16,
2696,
67,
15016,
16,
3239,
16,
8477,
16,
9598,
628,
9482,
67,
6178,
1625,
15126,
3813,
6797,
471,
2695,
33,
5510,
2187,
261,
6178,
67,
350,
16,
3719,
400,
273,
4422,
18,
1576,
5754,
476,
1435,
309,
400,
30,
4422,
18,
8837,
2668,
8217,
9482,
67,
6178,
7855,
1300,
67,
4285,
33,
2696,
67,
4285,
15,
2696,
67,
15016,
4852,
612,
5095,
87,
4116,
2695,
5095,
87,
2187,
261,
455,
3292,
350,
2
] |
print >> web.debug, "* query fmt: returning (%r)"% r | def __query_fmt(self, query, **attribs): # rows=None, start=None, wt=None, sort=None): fshards = ','.join('%s:%s/solr'%(host,port) for host,port in self.shards) ax = list((k,v) for k,v in attribs.items() if v is not None) if fshards: ax.append(('shards', fshards)) | 32367ba00b90bef054832983fcf0d1ce85720412 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3913/32367ba00b90bef054832983fcf0d1ce85720412/solr_client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2271,
67,
8666,
12,
2890,
16,
843,
16,
2826,
19617,
4672,
468,
2595,
33,
7036,
16,
787,
33,
7036,
16,
18201,
33,
7036,
16,
1524,
33,
7036,
4672,
284,
24633,
273,
3316,
18,
5701,
29909,
87,
5319,
87,
19,
22495,
11,
17105,
2564,
16,
655,
13,
364,
1479,
16,
655,
316,
365,
18,
24633,
13,
1740,
273,
666,
12443,
79,
16,
90,
13,
364,
417,
16,
90,
316,
11460,
18,
3319,
1435,
309,
331,
353,
486,
599,
13,
309,
284,
24633,
30,
1740,
18,
6923,
12,
2668,
24633,
2187,
284,
24633,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2271,
67,
8666,
12,
2890,
16,
843,
16,
2826,
19617,
4672,
468,
2595,
33,
7036,
16,
787,
33,
7036,
16,
18201,
33,
7036,
16,
1524,
33,
7036,
4672,
284,
24633,
273,
3316,
18,
5701,
29909,
87,
5319,
87,
19,
22495,
11,
17105,
2564,
16,
655,
13,
364,
1479,
16,
655,
316,
365,
18,
24633,
13,
1740,
273,
666,
12443,
79,
16,
90,
13,
364,
417,
16,
90,
316,
11460,
18,
3319,
1435,
309,
331,
353,
486,
599,
13,
309,
284,
24633,
30,
1740,
18,
6923,
12,
2668,
24633,
2187,
284,
24633,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
def ensureDir(dirname): try: os.mkdir(dirname) except OSError, e: if e.errno != errno.EEXIST: raise | def ensureDir(dirname): try: os.mkdir(dirname) except OSError, e: if e.errno != errno.EEXIST: raise | 7b9d4a307a746d896df59c0625a9cc28f1b2a629 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/7b9d4a307a746d896df59c0625a9cc28f1b2a629/sb_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3387,
1621,
12,
12287,
4672,
775,
30,
1140,
18,
26686,
12,
12287,
13,
1335,
10002,
16,
425,
30,
309,
425,
18,
19088,
480,
8402,
18,
41,
11838,
30,
1002,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
8402,
18,
41,
11838,
30,
1002,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
return beta * self.stdgamma(alpha) def stdgamma(self, alpha, *args): | if alpha <= 0.0 or beta <= 0.0: raise ValueError, 'gammavariate: alpha and beta must be > 0.0' | def gammavariate(self, alpha, beta): # beta times standard gamma return beta * self.stdgamma(alpha) | 1ef4463cc4c8aa15656fd0bdff420ad6c0ca29da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1ef4463cc4c8aa15656fd0bdff420ad6c0ca29da/random.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23411,
20689,
297,
3840,
12,
2890,
16,
4190,
16,
6796,
4672,
468,
6796,
4124,
4529,
9601,
327,
6796,
380,
365,
18,
5084,
20589,
12,
5429,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23411,
20689,
297,
3840,
12,
2890,
16,
4190,
16,
6796,
4672,
468,
6796,
4124,
4529,
9601,
327,
6796,
380,
365,
18,
5084,
20589,
12,
5429,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
str, "\\N{blah}", 'unicode-escape', 'strict' | str, b"\\N{blah}", 'unicode-escape', 'strict' | def test_strict_eror_handling(self): # bogus character name self.assertRaises( UnicodeError, str, "\\N{blah}", 'unicode-escape', 'strict' ) # long bogus character name self.assertRaises( UnicodeError, str, "\\N{%s}" % ("x" * 100000), 'unicode-escape', 'strict' ) # missing closing brace self.assertRaises( UnicodeError, str, "\\N{SPACE", 'unicode-escape', 'strict' ) # missing opening brace self.assertRaises( UnicodeError, str, "\\NSPACE", 'unicode-escape', 'strict' ) | e560a3660e775406196138e35838041e5b7b5780 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/e560a3660e775406196138e35838041e5b7b5780/test_ucn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13948,
67,
264,
280,
67,
26822,
12,
2890,
4672,
468,
324,
28774,
3351,
508,
365,
18,
11231,
12649,
6141,
12,
9633,
668,
16,
609,
16,
324,
6,
1695,
50,
95,
3083,
9795,
1532,
16,
296,
9124,
17,
6939,
2187,
296,
13948,
11,
262,
468,
1525,
324,
28774,
3351,
508,
365,
18,
11231,
12649,
6141,
12,
9633,
668,
16,
609,
16,
8422,
50,
95,
9,
87,
1532,
738,
7566,
92,
6,
380,
25259,
3631,
296,
9124,
17,
6939,
2187,
296,
13948,
11,
262,
468,
3315,
7647,
22500,
365,
18,
11231,
12649,
6141,
12,
9633,
668,
16,
609,
16,
8422,
50,
95,
6616,
3113,
296,
9124,
17,
6939,
2187,
296,
13948,
11,
262,
468,
3315,
10890,
22500,
365,
18,
11231,
12649,
6141,
12,
9633,
668,
16,
609,
16,
8422,
50,
6616,
3113,
296,
9124,
17,
6939,
2187,
296,
13948,
11,
262,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13948,
67,
264,
280,
67,
26822,
12,
2890,
4672,
468,
324,
28774,
3351,
508,
365,
18,
11231,
12649,
6141,
12,
9633,
668,
16,
609,
16,
324,
6,
1695,
50,
95,
3083,
9795,
1532,
16,
296,
9124,
17,
6939,
2187,
296,
13948,
11,
262,
468,
1525,
324,
28774,
3351,
508,
365,
18,
11231,
12649,
6141,
12,
9633,
668,
16,
609,
16,
8422,
50,
95,
9,
87,
1532,
738,
7566,
92,
6,
380,
25259,
3631,
296,
9124,
17,
6939,
2187,
296,
13948,
11,
262,
468,
3315,
7647,
22500,
365,
18,
11231,
12649,
6141,
12,
9633,
668,
16,
609,
16,
8422,
50,
95,
6616,
3113,
296,
9124,
17,
6939,
2187,
296,
13948,
11,
262,
468,
3315,
10890,
22500,
365,
2
] |
raise ConfigFileReadErrorException("File '" + CONF_FILE + "' is missing or does not contain a '" + section + "' section") | raise ConfigFileReadErrorException("File '" + self.config_file + "' is missing or does not contain a '" + section + "' section") | def read_var(self, section, name): if not self.config.has_section(section) : raise ConfigFileReadErrorException("File '" + CONF_FILE + "' is missing or does not contain a '" + section + "' section") | 02d4f54f9bf105783c378e298f525b5055ee8a66 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1319/02d4f54f9bf105783c378e298f525b5055ee8a66/Config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
1401,
12,
2890,
16,
2442,
16,
508,
4672,
309,
486,
365,
18,
1425,
18,
5332,
67,
3464,
12,
3464,
13,
294,
1002,
31988,
1994,
10009,
2932,
812,
2119,
397,
18733,
67,
3776,
397,
2491,
353,
3315,
578,
1552,
486,
912,
279,
2119,
397,
2442,
397,
2491,
2442,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
855,
67,
1401,
12,
2890,
16,
2442,
16,
508,
4672,
309,
486,
365,
18,
1425,
18,
5332,
67,
3464,
12,
3464,
13,
294,
1002,
31988,
1994,
10009,
2932,
812,
2119,
397,
18733,
67,
3776,
397,
2491,
353,
3315,
578,
1552,
486,
912,
279,
2119,
397,
2442,
397,
2491,
2442,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
client = get_client(client) client.delete(self.endpoint, id) | if client is None: client = get_client() client.delete(cls.endpoint, id) | def __class_delete(cls, id, client=None): """Deletes an object identified by `id`""" client = get_client(client) client.delete(self.endpoint, id) | 70d2dda2f37ca4c6fcc13695437b4e150ef275a9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10415/70d2dda2f37ca4c6fcc13695437b4e150ef275a9/resource.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1106,
67,
3733,
12,
6429,
16,
612,
16,
1004,
33,
7036,
4672,
3536,
7551,
392,
733,
9283,
635,
1375,
350,
68,
8395,
1004,
273,
336,
67,
2625,
12,
2625,
13,
1004,
18,
3733,
12,
2890,
18,
8003,
16,
612,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
16,
612,
16,
1004,
33,
7036,
4672,
3536,
7551,
392,
733,
9283,
635,
1375,
350,
68,
8395,
1004,
273,
336,
67,
2625,
12,
2625,
13,
1004,
18,
3733,
12,
2890,
18,
8003,
16,
612,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self._itemName = '' | self._itemName = u'' | def init(self): self = super(ASDictionary, self).init() if self is None: return self._selectedFiles = [] # {'name': '...', 'path': '...'} self._canExport = False self._htmlOptionsEnabled = False self._itemName = '' self._progressBar = 0 self._showLog = False # Connect to StandardAdditions (see note at top of script) self._stdadditions = osax.ScriptingAddition() return self | 8f9010fda4ea23709fcac7764ebade390a893a95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10961/8f9010fda4ea23709fcac7764ebade390a893a95/ASDictionary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
4672,
365,
273,
2240,
12,
3033,
10905,
16,
365,
2934,
2738,
1435,
309,
365,
353,
599,
30,
327,
365,
6315,
8109,
2697,
273,
5378,
468,
13666,
529,
4278,
20243,
16,
296,
803,
4278,
20243,
97,
365,
6315,
4169,
6144,
273,
1083,
365,
6315,
2620,
1320,
1526,
273,
1083,
365,
6315,
1726,
461,
273,
582,
6309,
365,
6315,
8298,
5190,
273,
374,
365,
6315,
4500,
1343,
273,
1083,
468,
8289,
358,
8263,
986,
5029,
261,
5946,
4721,
622,
1760,
434,
2728,
13,
365,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
4672,
365,
273,
2240,
12,
3033,
10905,
16,
365,
2934,
2738,
1435,
309,
365,
353,
599,
30,
327,
365,
6315,
8109,
2697,
273,
5378,
468,
13666,
529,
4278,
20243,
16,
296,
803,
4278,
20243,
97,
365,
6315,
4169,
6144,
273,
1083,
365,
6315,
2620,
1320,
1526,
273,
1083,
365,
6315,
1726,
461,
273,
582,
6309,
365,
6315,
8298,
5190,
273,
374,
365,
6315,
4500,
1343,
273,
1083,
468,
8289,
358,
8263,
986,
5029,
261,
5946,
4721,
622,
1760,
434,
2728,
13,
365,
6315,
5084,
1289,
5029,
273,
1140,
651,
18,
3651,
310,
30296,
1435,
327,
365,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
@staticmethod | @staticmethod | def getPath(self, path): """ Created: Unknown, KP Description: Returns a valid path based on the parameter """ if type(path) == types.StringType: path = [path] return os.path.normpath(os.path.join(self.installPath, reduce(os.path.join, path))) | 51eb7efbd47abaa0e8a0282a154f6aa787052985 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/51eb7efbd47abaa0e8a0282a154f6aa787052985/Configuration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4339,
12,
2890,
16,
589,
4672,
3536,
12953,
30,
9077,
16,
1475,
52,
6507,
30,
2860,
279,
923,
589,
2511,
603,
326,
1569,
3536,
309,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4339,
12,
2890,
16,
589,
4672,
3536,
12953,
30,
9077,
16,
1475,
52,
6507,
30,
2860,
279,
923,
589,
2511,
603,
326,
1569,
3536,
309,
618,
12,
803,
13,
422,
1953,
18,
780,
559,
30,
589,
273,
306,
803,
65,
327,
1140,
18,
803,
18,
7959,
803,
12,
538,
18,
803,
18,
5701,
12,
2890,
18,
5425,
743,
16,
5459,
12,
538,
18,
803,
18,
5701,
16,
589,
20349,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.attachProcess(command[7:]) | errmsg = self.attachProcess(command[7:]) | def execute(self, command): errmsg = None if command == "cont": errmsg = self.cont() elif command == "proc": self.procInfo() elif command == "proclist": self.procList() elif command.startswith("attach "): self.attachProcess(command[7:]) elif command == "regs": self.process.dumpRegs() elif command == "stack": self.process.dumpStack() elif command == "backtrace": errmsg = self.backtrace() elif command == "where" or command.startswith("where "): errmsg = self.where(command[6:]) elif command == "where2" or command.startswith("where2 "): errmsg = self.where(command[7:], manage_bp=True) elif command == "maps": self.process.dumpMaps() elif command == "step": errmsg = self.step(False) elif command == "stepi": errmsg = self.step(True) elif command == "sys": errmsg = self.syscallTrace() elif command == "help": self.help() elif command.startswith("set "): errmsg = self.set(command) elif command.startswith("until "): errmsg = self.until(command[6:]) elif command.startswith("switch") or command == "switch": errmsg = self.switch(command[6:]) elif command.startswith("break "): errmsg = self.breakpoint(command[6:]) elif command.startswith("breakpoints"): self.displayBreakpoints() elif command.startswith("signals"): self.displaySignals() elif command.startswith("delete "): errmsg = self.delete(command[7:]) elif command.startswith("hexdump "): errmsg = self.hexdump(command[8:]) elif command.startswith("signal "): errmsg = self.signal(command[7:]) elif command.startswith("print "): errmsg = self.print_(command[6:]) else: errmsg = "Unknown command: %r" % command if errmsg: print >>stderr, errmsg return False return True | 491ccbf2caa99ae67adeec33acc32a8eed95341a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/296/491ccbf2caa99ae67adeec33acc32a8eed95341a/gdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
1296,
4672,
17460,
273,
599,
309,
1296,
422,
315,
1213,
6877,
17460,
273,
365,
18,
1213,
1435,
1327,
1296,
422,
315,
9381,
6877,
365,
18,
9381,
966,
1435,
1327,
1296,
422,
315,
685,
830,
376,
6877,
365,
18,
9381,
682,
1435,
1327,
1296,
18,
17514,
1918,
2932,
7331,
315,
4672,
17460,
273,
365,
18,
7331,
2227,
12,
3076,
63,
27,
30,
5717,
1327,
1296,
422,
315,
266,
564,
6877,
365,
18,
2567,
18,
8481,
426,
564,
1435,
1327,
1296,
422,
315,
3772,
6877,
365,
18,
2567,
18,
8481,
2624,
1435,
1327,
1296,
422,
315,
18728,
6877,
17460,
273,
365,
18,
18728,
1435,
1327,
1296,
422,
315,
6051,
6,
578,
1296,
18,
17514,
1918,
2932,
6051,
315,
4672,
17460,
273,
365,
18,
6051,
12,
3076,
63,
26,
30,
5717,
1327,
1296,
422,
315,
6051,
22,
6,
578,
1296,
18,
17514,
1918,
2932,
6051,
22,
315,
4672,
17460,
273,
365,
18,
6051,
12,
3076,
63,
27,
30,
6487,
10680,
67,
17152,
33,
5510,
13,
1327,
1296,
422,
315,
10711,
6877,
365,
18,
2567,
18,
8481,
8903,
1435,
1327,
1296,
422,
315,
4119,
6877,
17460,
273,
365,
18,
4119,
12,
8381,
13,
1327,
1296,
422,
315,
4119,
77,
6877,
17460,
273,
365,
18,
4119,
12,
5510,
13,
1327,
1296,
422,
315,
9499,
6877,
17460,
273,
365,
18,
9009,
7795,
3448,
1435,
1327,
1296,
422,
315,
5201,
6877,
365,
18,
5201,
1435,
1327,
1296,
18,
17514,
1918,
2932,
542,
315,
4672,
17460,
273,
365,
18,
542,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
1296,
4672,
17460,
273,
599,
309,
1296,
422,
315,
1213,
6877,
17460,
273,
365,
18,
1213,
1435,
1327,
1296,
422,
315,
9381,
6877,
365,
18,
9381,
966,
1435,
1327,
1296,
422,
315,
685,
830,
376,
6877,
365,
18,
9381,
682,
1435,
1327,
1296,
18,
17514,
1918,
2932,
7331,
315,
4672,
17460,
273,
365,
18,
7331,
2227,
12,
3076,
63,
27,
30,
5717,
1327,
1296,
422,
315,
266,
564,
6877,
365,
18,
2567,
18,
8481,
426,
564,
1435,
1327,
1296,
422,
315,
3772,
6877,
365,
18,
2567,
18,
8481,
2624,
1435,
1327,
1296,
422,
315,
18728,
6877,
17460,
273,
365,
18,
18728,
1435,
1327,
1296,
422,
315,
6051,
6,
578,
1296,
18,
17514,
1918,
2932,
2
] |
setup_layer(options, layer, setup_layers) return run_tests(options, tests, layer_name, failures, errors) | try: setup_layer(options, layer, setup_layers) except EndRun: raise except Exception: f = cStringIO.StringIO() traceback.print_exc(file=f) output.error(f.getvalue()) errors.append((SetUpLayerFailure(), sys.exc_info())) return 0 else: return run_tests(options, tests, layer_name, failures, errors) class SetUpLayerFailure(unittest.TestCase): def runTest(self): "Layer set up failure." | def run_layer(options, layer_name, layer, tests, setup_layers, failures, errors): output = options.output gathered = [] gather_layers(layer, gathered) needed = dict([(l, 1) for l in gathered]) if options.resume_number != 0: output.info("Running %s tests:" % layer_name) tear_down_unneeded(options, needed, setup_layers) if options.resume_layer != None: output.info_suboptimal( " Running in a subprocess.") setup_layer(options, layer, setup_layers) return run_tests(options, tests, layer_name, failures, errors) | 77e0f64f2b2d42166edd0b1f03ae8c1f023220b5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10007/77e0f64f2b2d42166edd0b1f03ae8c1f023220b5/testrunner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
6363,
12,
2116,
16,
3018,
67,
529,
16,
3018,
16,
7434,
16,
3875,
67,
10396,
16,
11720,
16,
1334,
4672,
225,
876,
273,
702,
18,
2844,
11090,
329,
273,
5378,
11090,
67,
10396,
12,
6363,
16,
11090,
329,
13,
3577,
273,
2065,
3816,
12,
80,
16,
404,
13,
364,
328,
316,
11090,
329,
5717,
309,
702,
18,
25158,
67,
2696,
480,
374,
30,
876,
18,
1376,
2932,
7051,
738,
87,
7434,
2773,
738,
3018,
67,
529,
13,
268,
2091,
67,
2378,
67,
318,
17471,
12,
2116,
16,
3577,
16,
3875,
67,
10396,
13,
225,
309,
702,
18,
25158,
67,
6363,
480,
599,
30,
876,
18,
1376,
67,
1717,
3838,
2840,
12,
315,
225,
20480,
316,
279,
6652,
1199,
13,
225,
775,
30,
3875,
67,
6363,
12,
2116,
16,
3018,
16,
3875,
67,
10396,
13,
1335,
4403,
1997,
30,
1002,
1335,
1185,
30,
284,
273,
276,
780,
4294,
18,
780,
4294,
1435,
10820,
18,
1188,
67,
10075,
12,
768,
33,
74,
13,
876,
18,
1636,
12,
74,
18,
588,
1132,
10756,
1334,
18,
6923,
12443,
694,
1211,
4576,
5247,
9334,
2589,
18,
10075,
67,
1376,
1435,
3719,
327,
374,
469,
30,
327,
1086,
67,
16341,
12,
2116,
16,
7434,
16,
3018,
67,
529,
16,
11720,
16,
1334,
13,
225,
667,
1000,
1211,
4576,
5247,
12,
4873,
3813,
18,
4709,
2449,
4672,
1652,
1086,
4709,
12,
2890,
4672,
315,
4576,
444,
731,
5166,
1199,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
6363,
12,
2116,
16,
3018,
67,
529,
16,
3018,
16,
7434,
16,
3875,
67,
10396,
16,
11720,
16,
1334,
4672,
225,
876,
273,
702,
18,
2844,
11090,
329,
273,
5378,
11090,
67,
10396,
12,
6363,
16,
11090,
329,
13,
3577,
273,
2065,
3816,
12,
80,
16,
404,
13,
364,
328,
316,
11090,
329,
5717,
309,
702,
18,
25158,
67,
2696,
480,
374,
30,
876,
18,
1376,
2932,
7051,
738,
87,
7434,
2773,
738,
3018,
67,
529,
13,
268,
2091,
67,
2378,
67,
318,
17471,
12,
2116,
16,
3577,
16,
3875,
67,
10396,
13,
225,
309,
702,
18,
25158,
67,
6363,
480,
599,
30,
876,
18,
1376,
67,
1717,
3838,
2840,
12,
315,
225,
20480,
316,
279,
2
] |
def test_index(self): b = b'parrot' self.assertEqual(b.index('p'), 0) self.assertEqual(b.index('rr'), 2) self.assertEqual(b.index('t'), 5) self.assertRaises(ValueError, lambda: b.index('w')) def test_count(self): b = b'mississippi' self.assertEqual(b.count(b'i'), 4) self.assertEqual(b.count(b'ss'), 2) self.assertEqual(b.count(b'w'), 0) | def test_index(self): b = b'parrot' self.assertEqual(b.index('p'), 0) self.assertEqual(b.index('rr'), 2) self.assertEqual(b.index('t'), 5) self.assertRaises(ValueError, lambda: b.index('w')) | ee68bbafb3455a5d2d59063851393925977e8adc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/ee68bbafb3455a5d2d59063851393925977e8adc/test_bytes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1615,
12,
2890,
4672,
324,
273,
324,
11,
1065,
8342,
11,
365,
18,
11231,
5812,
12,
70,
18,
1615,
2668,
84,
19899,
374,
13,
365,
18,
11231,
5812,
12,
70,
18,
1615,
2668,
523,
19899,
576,
13,
365,
18,
11231,
5812,
12,
70,
18,
1615,
2668,
88,
19899,
1381,
13,
365,
18,
11231,
12649,
6141,
12,
23610,
16,
3195,
30,
324,
18,
1615,
2668,
91,
26112,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1615,
12,
2890,
4672,
324,
273,
324,
11,
1065,
8342,
11,
365,
18,
11231,
5812,
12,
70,
18,
1615,
2668,
84,
19899,
374,
13,
365,
18,
11231,
5812,
12,
70,
18,
1615,
2668,
523,
19899,
576,
13,
365,
18,
11231,
5812,
12,
70,
18,
1615,
2668,
88,
19899,
1381,
13,
365,
18,
11231,
12649,
6141,
12,
23610,
16,
3195,
30,
324,
18,
1615,
2668,
91,
26112,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
query = "INSERT INTO cmtRECORDCOMMENT (id_bibrec, id_user, body, date_creation, star_score, nb_votes_total, title) " \ "VALUES (%s, %s, %s, %s, %s, %s, %s)" | query = """INSERT INTO cmtRECORDCOMMENT (id_bibrec, id_user, body, date_creation, star_score, nb_votes_total, title) VALUES (%s, %s, %s, %s, %s, %s, %s)""" | def query_add_comment_or_remark(reviews=0, recID=0, uid=-1, msg="", note="", score=0, priority=0, client_ip_address=''): """ Private function Insert a comment/review or remarkinto the database @param recID: record id @param uid: user id @param msg: comment body @param note: comment title @param score: review star score @param priority: remark priority #!FIXME @return integer >0 representing id if successful, integer 0 if not """ current_date = calculate_start_date('0d') #change utf-8 message into general unicode msg = msg.decode('utf-8') note = note.decode('utf-8') #change general unicode back to utf-8 msg = msg.encode('utf-8') note = note.encode('utf-8') query = "INSERT INTO cmtRECORDCOMMENT (id_bibrec, id_user, body, date_creation, star_score, nb_votes_total, title) " \ "VALUES (%s, %s, %s, %s, %s, %s, %s)" params = (recID, uid, msg, current_date, score, 0, note) res = run_sql(query, params) if res: action_code = cfg_webcomment_action_code[reviews and 'ADD_REVIEW' or 'ADD_COMMENT'] action_time = convert_datestruct_to_datetext(time.localtime()) query2 = """INSERT INTO cmtACTIONHISTORY values ('', %i, %i, inet_aton('%s'), '%s', '%s')""" params2 = (recID, uid, client_ip_address, action_time, action_code) run_sql(query2%params2) return int(res) | 19293d1d7864d96de149757fd866961c1ff4b39a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3302/19293d1d7864d96de149757fd866961c1ff4b39a/webcomment.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
67,
1289,
67,
3469,
67,
280,
67,
2764,
1313,
12,
266,
7061,
33,
20,
16,
1950,
734,
33,
20,
16,
4555,
29711,
21,
16,
1234,
1546,
3113,
4721,
1546,
3113,
4462,
33,
20,
16,
4394,
33,
20,
16,
1004,
67,
625,
67,
2867,
2218,
11,
4672,
3536,
8726,
445,
8040,
279,
2879,
19,
16041,
578,
849,
1313,
18591,
326,
2063,
632,
891,
1950,
734,
30,
1409,
612,
632,
891,
4555,
30,
729,
612,
632,
891,
1234,
30,
2879,
1417,
632,
891,
4721,
30,
2879,
2077,
632,
891,
4462,
30,
10725,
10443,
4462,
632,
891,
4394,
30,
849,
1313,
4394,
468,
5,
25810,
632,
2463,
3571,
405,
20,
5123,
612,
309,
6873,
16,
3571,
374,
309,
486,
3536,
783,
67,
712,
273,
4604,
67,
1937,
67,
712,
2668,
20,
72,
6134,
468,
3427,
7718,
17,
28,
883,
1368,
7470,
5252,
1234,
273,
1234,
18,
3922,
2668,
3158,
17,
28,
6134,
4721,
273,
4721,
18,
3922,
2668,
3158,
17,
28,
6134,
468,
3427,
7470,
5252,
1473,
358,
7718,
17,
28,
1234,
273,
1234,
18,
3015,
2668,
3158,
17,
28,
6134,
4721,
273,
4721,
18,
3015,
2668,
3158,
17,
28,
6134,
843,
273,
3536,
11356,
12421,
276,
1010,
22261,
12200,
261,
350,
67,
70,
495,
3927,
16,
612,
67,
1355,
16,
1417,
16,
1509,
67,
17169,
16,
10443,
67,
6355,
16,
4264,
67,
27800,
67,
4963,
16,
2077,
13,
13477,
6142,
87,
16,
738,
87,
16,
738,
87,
16,
738,
87,
16,
738,
87,
16,
738,
87,
16,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
67,
1289,
67,
3469,
67,
280,
67,
2764,
1313,
12,
266,
7061,
33,
20,
16,
1950,
734,
33,
20,
16,
4555,
29711,
21,
16,
1234,
1546,
3113,
4721,
1546,
3113,
4462,
33,
20,
16,
4394,
33,
20,
16,
1004,
67,
625,
67,
2867,
2218,
11,
4672,
3536,
8726,
445,
8040,
279,
2879,
19,
16041,
578,
849,
1313,
18591,
326,
2063,
632,
891,
1950,
734,
30,
1409,
612,
632,
891,
4555,
30,
729,
612,
632,
891,
1234,
30,
2879,
1417,
632,
891,
4721,
30,
2879,
2077,
632,
891,
4462,
30,
10725,
10443,
4462,
632,
891,
4394,
30,
849,
1313,
4394,
468,
5,
25810,
632,
2463,
3571,
405,
20,
5123,
612,
309,
6873,
16,
3571,
374,
309,
486,
3536,
2
] |
valp = extract(c1,val) | def _cdf(self, x, c): output = 0.0*x val = (1.0+c)/(1.0-c) c1 = x<pi c2 = 1-c1 xp = extract( c1,x) valp = extract(c1,val) xn = extract( c2,x) valn = extract(c2,val) if (any(xn)): xn = 2*pi - xn yn = tan(xn/2.0) on = 1.0-1.0/pi*arctan(valn*yn) place(output, c2, on) if (any(xp)): yp = tan(xp/2.0) op = 1.0/pi*arctan(valp*yp) place(output, c1, op) return output | 71676a6a55d58d6bf27bd58f974692564970e1af /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12971/71676a6a55d58d6bf27bd58f974692564970e1af/distributions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
24799,
12,
2890,
16,
619,
16,
276,
4672,
876,
273,
374,
18,
20,
14,
92,
1244,
273,
261,
21,
18,
20,
15,
71,
13176,
12,
21,
18,
20,
17,
71,
13,
276,
21,
273,
619,
32,
7259,
276,
22,
273,
404,
17,
71,
21,
13681,
273,
2608,
12,
276,
21,
16,
92,
13,
225,
619,
82,
273,
2608,
12,
276,
22,
16,
92,
13,
1244,
82,
273,
2608,
12,
71,
22,
16,
1125,
13,
309,
261,
2273,
12,
22695,
3719,
30,
619,
82,
273,
576,
14,
7259,
300,
619,
82,
677,
82,
273,
17126,
12,
22695,
19,
22,
18,
20,
13,
603,
273,
404,
18,
20,
17,
21,
18,
20,
19,
7259,
14,
297,
299,
304,
12,
1125,
82,
14,
878,
13,
3166,
12,
2844,
16,
276,
22,
16,
603,
13,
309,
261,
2273,
12,
23829,
3719,
30,
29647,
273,
17126,
12,
23829,
19,
22,
18,
20,
13,
1061,
273,
404,
18,
20,
19,
7259,
14,
297,
299,
304,
12,
1125,
84,
14,
879,
13,
3166,
12,
2844,
16,
276,
21,
16,
1061,
13,
327,
876,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
24799,
12,
2890,
16,
619,
16,
276,
4672,
876,
273,
374,
18,
20,
14,
92,
1244,
273,
261,
21,
18,
20,
15,
71,
13176,
12,
21,
18,
20,
17,
71,
13,
276,
21,
273,
619,
32,
7259,
276,
22,
273,
404,
17,
71,
21,
13681,
273,
2608,
12,
276,
21,
16,
92,
13,
225,
619,
82,
273,
2608,
12,
276,
22,
16,
92,
13,
1244,
82,
273,
2608,
12,
71,
22,
16,
1125,
13,
309,
261,
2273,
12,
22695,
3719,
30,
619,
82,
273,
576,
14,
7259,
300,
619,
82,
677,
82,
273,
17126,
12,
22695,
19,
22,
18,
20,
13,
603,
273,
404,
18,
20,
17,
21,
18,
20,
19,
7259,
14,
297,
299,
304,
12,
2
] |
|
headers_out = res.getheaders() | headers_out = [] for header, value in res.getheaders(): if header.lower() not in filtered_headers: headers_out.append((header, value)) | def __call__(self, environ, start_response): if self.scheme == 'http': ConnClass = httplib.HTTPConnection elif self.scheme == 'https': ConnClass = httplib.HTTPSConnection else: raise ValueError( "Unknown scheme for %r: %r" % (self.address, self.scheme)) conn = ConnClass(self.host) headers = {} for key, value in environ.items(): if key.startswith('HTTP_'): key = key[5:].lower().replace('_', '-') if key == 'host': continue headers[key] = value headers['host'] = self.host if 'REMOTE_ADDR' in environ: headers['x-forwarded-for'] = environ['REMOTE_ADDR'] if environ.get('CONTENT_TYPE'): headers['content-type'] = environ['CONTENT_TYPE'] if environ.get('CONTENT_LENGTH'): length = int(environ['CONTENT_LENGTH']) body = environ['wsgi.input'].read(length) else: body = '' print (environ['REQUEST_METHOD'], environ['PATH_INFO'], body, headers) conn.request(environ['REQUEST_METHOD'], environ['PATH_INFO'], body, headers) res = conn.getresponse() # @@: 2.4ism: headers_out = res.getheaders() status = '%s %s' % (res.status, res.reason) start_response(status, headers_out) # @@: Default? length = res.getheader('content-length') body = res.read(int(length)) conn.close() return [body] | cb7bdabc239c4002b380017cfbcdfe2a0e517f51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11400/cb7bdabc239c4002b380017cfbcdfe2a0e517f51/proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
309,
365,
18,
9068,
422,
296,
2505,
4278,
6683,
797,
273,
15851,
6673,
18,
3693,
1952,
1327,
365,
18,
9068,
422,
296,
4528,
4278,
6683,
797,
273,
15851,
6673,
18,
18657,
1952,
469,
30,
1002,
2068,
12,
315,
4874,
4355,
364,
738,
86,
30,
738,
86,
6,
738,
261,
2890,
18,
2867,
16,
365,
18,
9068,
3719,
1487,
273,
6683,
797,
12,
2890,
18,
2564,
13,
1607,
273,
2618,
364,
498,
16,
460,
316,
5473,
18,
3319,
13332,
309,
498,
18,
17514,
1918,
2668,
3693,
4623,
4672,
498,
273,
498,
63,
25,
30,
8009,
8167,
7675,
2079,
2668,
67,
2187,
4014,
13,
309,
498,
422,
296,
2564,
4278,
1324,
1607,
63,
856,
65,
273,
460,
1607,
3292,
2564,
3546,
273,
365,
18,
2564,
309,
296,
15790,
67,
14142,
11,
316,
5473,
30,
1607,
3292,
92,
17,
1884,
11804,
17,
1884,
3546,
273,
5473,
3292,
15790,
67,
14142,
3546,
309,
5473,
18,
588,
2668,
9689,
67,
2399,
11,
4672,
1607,
3292,
1745,
17,
723,
3546,
273,
5473,
3292,
9689,
67,
2399,
3546,
309,
5473,
18,
588,
2668,
9689,
67,
7096,
11,
4672,
769,
273,
509,
12,
28684,
3292,
9689,
67,
7096,
19486,
1417,
273,
5473,
3292,
28539,
18,
2630,
29489,
896,
12,
2469,
13,
469,
30,
1417,
273,
875,
1172,
261,
28684,
3292,
5519,
67,
5327,
17337,
5473,
3292,
4211,
67,
5923,
17337,
1417,
16,
1607,
13,
1487,
18,
2293,
12,
28684,
3292,
5519,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
309,
365,
18,
9068,
422,
296,
2505,
4278,
6683,
797,
273,
15851,
6673,
18,
3693,
1952,
1327,
365,
18,
9068,
422,
296,
4528,
4278,
6683,
797,
273,
15851,
6673,
18,
18657,
1952,
469,
30,
1002,
2068,
12,
315,
4874,
4355,
364,
738,
86,
30,
738,
86,
6,
738,
261,
2890,
18,
2867,
16,
365,
18,
9068,
3719,
1487,
273,
6683,
797,
12,
2890,
18,
2564,
13,
1607,
273,
2618,
364,
498,
16,
460,
316,
5473,
18,
3319,
13332,
309,
498,
18,
17514,
1918,
2668,
3693,
4623,
4672,
498,
273,
498,
63,
25,
30,
8009,
8167,
7675,
2079,
2668,
67,
2187,
4014,
13,
309,
498,
422,
296,
2
] |
self.vpan.set_position(275) | tmp = 0 w, h = self.window.get_size() self.vpan.set_position(h) tmp = self.vpan.get_position() print tmp self.vpan.set_position(int((275.0/450)*h)) | def tree_select_changed(self, widget=None, event=None): model, iter = self.selection.get_selected() value = model.get_value(iter,0) #print value if value not in list_groups(): self.vpan.set_position(275) else: self.vpan.set_position(10000) detail = get_details(value) buff = self.output_txtview.get_buffer() buff.set_text(detail) self.output_txtview.set_buffer(buff) | b35ac0bc384cf082ae603d692369925f2c13cf46 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10994/b35ac0bc384cf082ae603d692369925f2c13cf46/wordgroupz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2151,
67,
4025,
67,
6703,
12,
2890,
16,
3604,
33,
7036,
16,
871,
33,
7036,
4672,
938,
16,
1400,
273,
365,
18,
10705,
18,
588,
67,
8109,
1435,
460,
273,
938,
18,
588,
67,
1132,
12,
2165,
16,
20,
13,
468,
1188,
460,
309,
460,
486,
316,
666,
67,
4650,
13332,
1853,
273,
374,
341,
16,
366,
273,
365,
18,
5668,
18,
588,
67,
1467,
1435,
365,
18,
90,
7355,
18,
542,
67,
3276,
12,
76,
13,
1853,
273,
365,
18,
90,
7355,
18,
588,
67,
3276,
1435,
1172,
1853,
365,
18,
90,
7355,
18,
542,
67,
3276,
12,
474,
12443,
5324,
25,
18,
20,
19,
24,
3361,
17653,
76,
3719,
469,
30,
365,
18,
90,
7355,
18,
542,
67,
3276,
12,
23899,
13,
7664,
273,
336,
67,
6395,
12,
1132,
13,
6139,
273,
365,
18,
2844,
67,
5830,
1945,
18,
588,
67,
4106,
1435,
6139,
18,
542,
67,
955,
12,
8992,
13,
365,
18,
2844,
67,
5830,
1945,
18,
542,
67,
4106,
12,
20664,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2151,
67,
4025,
67,
6703,
12,
2890,
16,
3604,
33,
7036,
16,
871,
33,
7036,
4672,
938,
16,
1400,
273,
365,
18,
10705,
18,
588,
67,
8109,
1435,
460,
273,
938,
18,
588,
67,
1132,
12,
2165,
16,
20,
13,
468,
1188,
460,
309,
460,
486,
316,
666,
67,
4650,
13332,
1853,
273,
374,
341,
16,
366,
273,
365,
18,
5668,
18,
588,
67,
1467,
1435,
365,
18,
90,
7355,
18,
542,
67,
3276,
12,
76,
13,
1853,
273,
365,
18,
90,
7355,
18,
588,
67,
3276,
1435,
1172,
1853,
365,
18,
90,
7355,
18,
542,
67,
3276,
12,
474,
12443,
5324,
25,
18,
20,
19,
24,
3361,
17653,
76,
3719,
469,
30,
365,
18,
90,
7355,
18,
2
] |
@xfail | def test_style(): yield check_style, u"''frankfurt''", (2,) yield check_style, u"'''mainz'''", (3,) yield check_style,u"'''''hamburg'''''", (3,2) yield check_style, u"'''''foo'' bla'''", (3,2,3) yield check_style, u"'''''mainz''' bla''", (3,2,2) yield check_style, u"'''''''''''''''''''pp'''''", (3,2) yield check_style, u"'''test''bla", (2,) | 0a40078fb3d66df1a669344fc1392ded8202d50a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/0a40078fb3d66df1a669344fc1392ded8202d50a/test_parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4060,
13332,
2824,
866,
67,
4060,
16,
582,
5187,
11,
4840,
2304,
74,
295,
88,
6309,
3113,
261,
22,
16,
13,
2824,
866,
67,
4060,
16,
582,
5187,
6309,
5254,
94,
26418,
3113,
261,
23,
16,
13,
2824,
866,
67,
4060,
16,
89,
5187,
6309,
6309,
76,
2536,
295,
75,
6309,
26418,
3113,
261,
23,
16,
22,
13,
2824,
866,
67,
4060,
16,
582,
5187,
6309,
6309,
11351,
6309,
2811,
69,
26418,
3113,
261,
23,
16,
22,
16,
23,
13,
2824,
866,
67,
4060,
16,
582,
5187,
6309,
6309,
5254,
94,
26418,
2811,
69,
6309,
3113,
261,
23,
16,
22,
16,
22,
13,
2824,
866,
67,
4060,
16,
582,
5187,
6309,
6309,
6309,
6309,
6309,
6309,
6309,
6309,
6309,
11858,
6309,
26418,
3113,
261,
23,
16,
22,
13,
2824,
866,
67,
4060,
16,
582,
5187,
6309,
3813,
6309,
3083,
69,
3113,
261,
22,
16,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4060,
13332,
2824,
866,
67,
4060,
16,
582,
5187,
11,
4840,
2304,
74,
295,
88,
6309,
3113,
261,
22,
16,
13,
2824,
866,
67,
4060,
16,
582,
5187,
6309,
5254,
94,
26418,
3113,
261,
23,
16,
13,
2824,
866,
67,
4060,
16,
89,
5187,
6309,
6309,
76,
2536,
295,
75,
6309,
26418,
3113,
261,
23,
16,
22,
13,
2824,
866,
67,
4060,
16,
582,
5187,
6309,
6309,
11351,
6309,
2811,
69,
26418,
3113,
261,
23,
16,
22,
16,
23,
13,
2824,
866,
67,
4060,
16,
582,
5187,
6309,
6309,
5254,
94,
26418,
2811,
69,
6309,
3113,
261,
23,
16,
22,
16,
22,
13,
2824,
866,
67,
4060,
16,
582,
5187,
6309,
6309,
6309,
6309,
6309,
6309,
2
] |
|
if self.command == 'POST': | if self.command == 'POST' or self.command == 'PUT' : | def FileHandler(self): """This handler sends the contents of the requested file. Wow, it's like a real webserver!""" | 762d2db5d5e1b0d7852ddb2efef982b00e897322 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/762d2db5d5e1b0d7852ddb2efef982b00e897322/testserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1387,
1503,
12,
2890,
4672,
3536,
2503,
1838,
9573,
326,
2939,
434,
326,
3764,
585,
18,
225,
678,
543,
16,
518,
1807,
3007,
279,
2863,
732,
2266,
502,
5,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1387,
1503,
12,
2890,
4672,
3536,
2503,
1838,
9573,
326,
2939,
434,
326,
3764,
585,
18,
225,
678,
543,
16,
518,
1807,
3007,
279,
2863,
732,
2266,
502,
5,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if item.Class == constants.olMail: msgstore_message = self.manager.message_store.GetMessage(item) | msgstore_message = self.manager.message_store.GetMessage(item) if msgstore_message and msgstore_message.IsFilterCandidate(): | def GetSelectedMessages(self, allow_multi = True, explorer = None): if explorer is None: explorer = self.Application.ActiveExplorer() sel = explorer.Selection if sel.Count > 1 and not allow_multi: self.manager.ReportError("Please select a single item", "Large selection") return None | d5eee01743d5a25f38ae1bfa806f20c668cc6121 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/d5eee01743d5a25f38ae1bfa806f20c668cc6121/addin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
7416,
5058,
12,
2890,
16,
1699,
67,
7027,
273,
1053,
16,
22147,
273,
599,
4672,
309,
22147,
353,
599,
30,
22147,
273,
365,
18,
3208,
18,
3896,
20938,
1435,
357,
273,
22147,
18,
6233,
309,
357,
18,
1380,
405,
404,
471,
486,
1699,
67,
7027,
30,
365,
18,
4181,
18,
4820,
668,
2932,
8496,
2027,
279,
2202,
761,
3113,
315,
20020,
4421,
7923,
327,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
67,
7027,
273,
1053,
16,
22147,
273,
599,
4672,
309,
22147,
353,
599,
30,
22147,
273,
365,
18,
3208,
18,
3896,
20938,
1435,
357,
273,
22147,
18,
6233,
309,
357,
18,
1380,
405,
404,
471,
486,
1699,
67,
7027,
30,
365,
18,
4181,
18,
4820,
668,
2932,
8496,
2027,
279,
2202,
761,
3113,
315,
20020,
4421,
7923,
327,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return | from calibre.ebooks.oeb.base import urlnormalize href = urlnormalize(oeb.guide['toc'].href) if href in oeb.manifest.hrefs: item = oeb.manifest.hrefs[href] if oeb.spine.index(item) < 0: oeb.spine.add(item, linear=False) return else: oeb.guide.remove('toc') | def __call__(self, oeb, context): if 'toc' in oeb.guide: return if not getattr(getattr(oeb, 'toc', False), 'nodes', False): return oeb.logger.info('Generating in-line TOC...') title = self.title or oeb.translate(DEFAULT_TITLE) style = self.style if style not in STYLE_CSS: oeb.logger.error('Unknown TOC style %r' % style) style = 'nested' id, css_href = oeb.manifest.generate('tocstyle', 'tocstyle.css') oeb.manifest.add(id, css_href, CSS_MIME, data=STYLE_CSS[style]) language = str(oeb.metadata.language[0]) contents = element(None, XHTML('html'), nsmap={None: XHTML_NS}, attrib={XML('lang'): language}) head = element(contents, XHTML('head')) htitle = element(head, XHTML('title')) htitle.text = title element(head, XHTML('link'), rel='stylesheet', type=CSS_MIME, href=css_href) body = element(contents, XHTML('body'), attrib={'class': 'calibre_toc'}) h1 = element(body, XHTML('h1'), attrib={'class': 'calibre_toc_header'}) h1.text = title self.add_toc_level(body, oeb.toc) id, href = oeb.manifest.generate('contents', 'contents.xhtml') item = oeb.manifest.add(id, href, XHTML_MIME, data=contents) oeb.spine.add(item, linear=False) oeb.guide.add('toc', 'Table of Contents', href) | 3a4ac4663befd39598385c771d25e14e6ba648b5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/3a4ac4663befd39598385c771d25e14e6ba648b5/htmltoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
320,
24008,
16,
819,
4672,
309,
296,
1391,
11,
316,
320,
24008,
18,
12118,
30,
225,
628,
26139,
266,
18,
73,
12567,
18,
15548,
70,
18,
1969,
1930,
880,
12237,
3897,
273,
880,
12237,
12,
15548,
70,
18,
12118,
3292,
1391,
29489,
7547,
13,
309,
3897,
316,
320,
24008,
18,
14357,
18,
7547,
87,
30,
761,
273,
320,
24008,
18,
14357,
18,
7547,
87,
63,
7547,
65,
309,
320,
24008,
18,
1752,
558,
18,
1615,
12,
1726,
13,
411,
374,
30,
320,
24008,
18,
1752,
558,
18,
1289,
12,
1726,
16,
9103,
33,
8381,
13,
327,
469,
30,
320,
24008,
18,
12118,
18,
4479,
2668,
1391,
6134,
309,
486,
3869,
12,
588,
1747,
12,
15548,
70,
16,
296,
1391,
2187,
1083,
3631,
296,
4690,
2187,
1083,
4672,
225,
628,
26139,
266,
18,
73,
12567,
18,
15548,
70,
18,
1969,
1930,
880,
12237,
3897,
273,
880,
12237,
12,
15548,
70,
18,
12118,
3292,
1391,
29489,
7547,
13,
309,
3897,
316,
320,
24008,
18,
14357,
18,
7547,
87,
30,
761,
273,
320,
24008,
18,
14357,
18,
7547,
87,
63,
7547,
65,
309,
320,
24008,
18,
1752,
558,
18,
1615,
12,
1726,
13,
411,
374,
30,
320,
24008,
18,
1752,
558,
18,
1289,
12,
1726,
16,
9103,
33,
8381,
13,
327,
469,
30,
320,
24008,
18,
12118,
18,
4479,
2668,
1391,
6134,
320,
24008,
18,
4901,
18,
1376,
2668,
21755,
316,
17,
1369,
8493,
39,
7821,
13,
2077,
273,
365,
18,
2649,
578,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
320,
24008,
16,
819,
4672,
309,
296,
1391,
11,
316,
320,
24008,
18,
12118,
30,
225,
628,
26139,
266,
18,
73,
12567,
18,
15548,
70,
18,
1969,
1930,
880,
12237,
3897,
273,
880,
12237,
12,
15548,
70,
18,
12118,
3292,
1391,
29489,
7547,
13,
309,
3897,
316,
320,
24008,
18,
14357,
18,
7547,
87,
30,
761,
273,
320,
24008,
18,
14357,
18,
7547,
87,
63,
7547,
65,
309,
320,
24008,
18,
1752,
558,
18,
1615,
12,
1726,
13,
411,
374,
30,
320,
24008,
18,
1752,
558,
18,
1289,
12,
1726,
16,
9103,
33,
8381,
13,
327,
469,
30,
320,
24008,
18,
12118,
18,
4479,
2668,
1391,
6134,
309,
486,
3869,
12,
588,
2
] |
z = zipfile.ZipFile(zip_filename, "w", compression=zipfile.ZIP_DEFLATED) | z = zipfile.ZipFile(zip_filename, "w", compression=compression) | def visit (z, dirname, names): for name in names: path = os.path.normpath(os.path.join(dirname, name)) if os.path.isfile(path): p = path[len(base_dir)+1:] if not dry_run: z.write(path, p) log.debug("adding '%s'" % p) | 51744a3040da5d1a8489eda8647f253047628c1e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8186/51744a3040da5d1a8489eda8647f253047628c1e/bdist_egg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
261,
94,
16,
4283,
16,
1257,
4672,
364,
508,
316,
1257,
30,
589,
273,
1140,
18,
803,
18,
7959,
803,
12,
538,
18,
803,
18,
5701,
12,
12287,
16,
508,
3719,
309,
1140,
18,
803,
18,
291,
768,
12,
803,
4672,
293,
273,
589,
63,
1897,
12,
1969,
67,
1214,
27921,
21,
26894,
309,
486,
10299,
67,
2681,
30,
998,
18,
2626,
12,
803,
16,
293,
13,
613,
18,
4148,
2932,
3439,
1995,
87,
4970,
738,
293,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
326,
22398,
316,
326,
981,
30,
1652,
3757,
261,
94,
16,
4283,
16,
1257,
4672,
364,
508,
316,
1257,
30,
589,
273,
1140,
18,
803,
18,
7959,
803,
12,
538,
18,
803,
18,
5701,
12,
12287,
16,
508,
3719,
309,
1140,
18,
803,
18,
291,
768,
12,
803,
4672,
293,
273,
589,
63,
1897,
12,
1969,
67,
1214,
27921,
21,
26894,
309,
486,
10299,
67,
2681,
30,
998,
18,
2626,
12,
803,
16,
293,
13,
613,
18,
4148,
2932,
3439,
1995,
87,
4970,
738,
293,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if self._short_opts or self._long_opts: return "/".join(self._short_opts + self._long_opts) else: raise RuntimeError, "short_opts and long_opts both empty!" | return "/".join(self._short_opts + self._long_opts) | def __str__ (self): if self._short_opts or self._long_opts: return "/".join(self._short_opts + self._long_opts) else: raise RuntimeError, "short_opts and long_opts both empty!" | 2492fcf3b0d58eafc9a7551263857649fcc7f1a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/2492fcf3b0d58eafc9a7551263857649fcc7f1a4/optparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
261,
2890,
4672,
309,
365,
6315,
6620,
67,
4952,
578,
365,
6315,
5748,
67,
4952,
30,
327,
4016,
18,
5701,
12,
2890,
6315,
6620,
67,
4952,
397,
365,
6315,
5748,
67,
4952,
13,
469,
30,
1002,
7265,
16,
315,
6620,
67,
4952,
471,
1525,
67,
4952,
3937,
1008,
4442,
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,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
261,
2890,
4672,
309,
365,
6315,
6620,
67,
4952,
578,
365,
6315,
5748,
67,
4952,
30,
327,
4016,
18,
5701,
12,
2890,
6315,
6620,
67,
4952,
397,
365,
6315,
5748,
67,
4952,
13,
469,
30,
1002,
7265,
16,
315,
6620,
67,
4952,
471,
1525,
67,
4952,
3937,
1008,
4442,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
raise TestFailed, 'list index, negative stop argument' | raise TestFailed, 'list index, very -stop argument' | def __getitem__(self, key): return str(key) + '!!!' | e618d3051dd46bc547d5524bef5e38ece3f4bc7a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e618d3051dd46bc547d5524bef5e38ece3f4bc7a/test_types.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
498,
4672,
327,
609,
12,
856,
13,
397,
296,
8548,
5124,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
498,
4672,
327,
609,
12,
856,
13,
397,
296,
8548,
5124,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def __parseGroupHierarchy(self, node): | def __parseGroupHierarchy(self, ip): | def __parseGroupHierarchy(self, node): """Parse <grouphierarchy>. | 548339ade027fa3106a7161f4e817ac9e2f1e024 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/548339ade027fa3106a7161f4e817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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2670,
1114,
12074,
12,
2890,
16,
2359,
4672,
3536,
3201,
411,
1655,
17937,
18652,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
re_mac = re.compile('([a-f\d]{2}[:]?){5}[a-f\d]{2}') hwaddress_validator = RegexValidator(re_mac,'Enter a valid hardware address.', 'invalid') | re_valid_mac = re.compile(r'([A-Fa-f\d]{2}[:-]?){5}[A-Fa-f\d]{2}') re_mac_octets = re.compile(r'[A-Fa-f\d]{2}') hwaddress_validator = RegexValidator(re_valid_mac,'Enter a valid hardware address.', 'invalid') | def default_label(self): # TODO: make dynamic for different types of clusters try: assert self.rack.label is not None and self.first_slot is not \ None, 'not able to generate a label' return 'r%sn%s' % (self.rack.label, self.first_slot) except: pass | 1b6035eab3dc9c56376c34054483cbe42d90a9f1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1104/1b6035eab3dc9c56376c34054483cbe42d90a9f1/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
1925,
12,
2890,
4672,
468,
2660,
30,
1221,
5976,
364,
3775,
1953,
434,
9566,
775,
30,
1815,
365,
18,
21580,
18,
1925,
353,
486,
599,
471,
365,
18,
3645,
67,
14194,
353,
486,
521,
599,
16,
296,
902,
7752,
358,
2103,
279,
1433,
11,
327,
296,
86,
9,
8134,
9,
87,
11,
738,
261,
2890,
18,
21580,
18,
1925,
16,
365,
18,
3645,
67,
14194,
13,
1335,
30,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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2660,
30,
1221,
5976,
364,
3775,
1953,
434,
9566,
775,
30,
1815,
365,
18,
21580,
18,
1925,
353,
486,
599,
471,
365,
18,
3645,
67,
14194,
353,
486,
521,
599,
16,
296,
902,
7752,
358,
2103,
279,
1433,
11,
327,
296,
86,
9,
8134,
9,
87,
11,
738,
261,
2890,
18,
21580,
18,
1925,
16,
365,
18,
3645,
67,
14194,
13,
1335,
30,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return subprocess.call(args2, executable=prog) | return subprocess.call(args2) | def exec_pg_command(name, *args): prog = find_pg_tool(name) if not prog: raise Exception('Couldn\'t find %s' % name) args2 = (os.path.basename(prog),) + args return subprocess.call(args2, executable=prog) | 9c03b09c67306d972f9fa20840cf51875b73e5d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/9c03b09c67306d972f9fa20840cf51875b73e5d0/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1196,
67,
8365,
67,
3076,
12,
529,
16,
380,
1968,
4672,
11243,
273,
1104,
67,
8365,
67,
6738,
12,
529,
13,
309,
486,
11243,
30,
1002,
1185,
2668,
16342,
3730,
88,
1104,
738,
87,
11,
738,
508,
13,
833,
22,
273,
261,
538,
18,
803,
18,
13909,
12,
14654,
3631,
13,
397,
833,
225,
327,
6652,
18,
1991,
12,
1968,
22,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1196,
67,
8365,
67,
3076,
12,
529,
16,
380,
1968,
4672,
11243,
273,
1104,
67,
8365,
67,
6738,
12,
529,
13,
309,
486,
11243,
30,
1002,
1185,
2668,
16342,
3730,
88,
1104,
738,
87,
11,
738,
508,
13,
833,
22,
273,
261,
538,
18,
803,
18,
13909,
12,
14654,
3631,
13,
397,
833,
225,
327,
6652,
18,
1991,
12,
1968,
22,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
parts = [] for c in self.clients: parts.append(c.request_template.url) parts.append(c.request_template.params.layer) self.identifier = ''.join(parts) | self.identifier = legend_identifier( [(c.request_template.url, c.request_template.params.layer) for c in self.clients]) | def __init__(self, clients, legend_cache): self.clients = clients parts = [] for c in self.clients: parts.append(c.request_template.url) parts.append(c.request_template.params.layer) self.identifier = ''.join(parts) self._cache = legend_cache self._size = None | cd68ae175e3d3546ee8017c54d906894c19009a9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11249/cd68ae175e3d3546ee8017c54d906894c19009a9/wms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7712,
16,
7241,
67,
2493,
4672,
365,
18,
16931,
273,
7712,
365,
18,
5644,
273,
7241,
67,
5644,
12,
306,
12,
71,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7712,
16,
7241,
67,
2493,
4672,
365,
18,
16931,
273,
7712,
365,
18,
5644,
273,
7241,
67,
5644,
12,
306,
12,
71,
18,
2293,
67,
3202,
18,
718,
16,
276,
18,
2293,
67,
3202,
18,
2010,
18,
6363,
13,
364,
276,
316,
365,
18,
16931,
5717,
365,
6315,
2493,
273,
7241,
67,
2493,
365,
6315,
1467,
273,
599,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
do('dmap.supportsextensions', False), do('dmap.supportsindex', False), do('dmap.supportsbrowse', False), do('dmap.supportsquery', False), do('dmap.supportspersistentids', False), | do('dmap.supportspersistentids', True), | def GET(self): msrv = do('dmap.serverinforesponse', [ do('dmap.status', 200), do('dmap.protocolversion', '2.0'), do('daap.protocolversion', '3.0'), do('dmap.timeoutinterval', 1800), do('dmap.itemname', server_name), do('dmap.loginrequired', False), do('dmap.authenticationmethod', 0), do('dmap.supportsextensions', False), do('dmap.supportsindex', False), do('dmap.supportsbrowse', False), do('dmap.supportsquery', False), do('dmap.supportspersistentids', False), do('dmap.databasescount', 1), do('dmap.supportsautologout', True), do('dmap.supportsupdate', False), do('dmap.supportsresolve', True), ]) return self.h(web,msrv.encode()) | 1f8be4b2efc5528d7122cf9175e4e41b129ebc76 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8691/1f8be4b2efc5528d7122cf9175e4e41b129ebc76/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4978,
12,
2890,
4672,
4086,
4962,
273,
741,
2668,
72,
1458,
18,
3567,
1376,
2740,
2187,
306,
741,
2668,
72,
1458,
18,
2327,
2187,
4044,
3631,
741,
2668,
72,
1458,
18,
8373,
1589,
2187,
296,
22,
18,
20,
19899,
741,
2668,
2414,
438,
18,
8373,
1589,
2187,
296,
23,
18,
20,
19899,
741,
2668,
72,
1458,
18,
4538,
6624,
2187,
6549,
713,
3631,
741,
2668,
72,
1458,
18,
1726,
529,
2187,
1438,
67,
529,
3631,
741,
2668,
72,
1458,
18,
5819,
4718,
2187,
1083,
3631,
741,
2668,
72,
1458,
18,
12293,
2039,
2187,
374,
3631,
377,
741,
2668,
72,
1458,
18,
13261,
1752,
6572,
2232,
2187,
1053,
3631,
741,
2668,
72,
1458,
18,
3404,
378,
345,
742,
592,
2187,
404,
3631,
741,
2668,
72,
1458,
18,
28064,
5854,
3966,
659,
2187,
1053,
3631,
741,
2668,
72,
1458,
18,
28064,
2725,
2187,
1083,
3631,
741,
2668,
72,
1458,
18,
28064,
10828,
2187,
1053,
3631,
308,
13,
327,
365,
18,
76,
12,
4875,
16,
959,
4962,
18,
3015,
10756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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668,
72,
1458,
18,
3567,
1376,
2740,
2187,
306,
741,
2668,
72,
1458,
18,
2327,
2187,
4044,
3631,
741,
2668,
72,
1458,
18,
8373,
1589,
2187,
296,
22,
18,
20,
19899,
741,
2668,
2414,
438,
18,
8373,
1589,
2187,
296,
23,
18,
20,
19899,
741,
2668,
72,
1458,
18,
4538,
6624,
2187,
6549,
713,
3631,
741,
2668,
72,
1458,
18,
1726,
529,
2187,
1438,
67,
529,
3631,
741,
2668,
72,
1458,
18,
5819,
4718,
2187,
1083,
3631,
741,
2668,
72,
1458,
18,
12293,
2039,
2187,
374,
3631,
377,
741,
2668,
72,
1458,
18,
13261,
1752,
6572,
2232,
2187,
1053,
3631,
741,
2668,
72,
1458,
18,
3404,
378,
345,
742,
592,
2
] |
if k == 'text' and fnmatch.fnmatch(filename, args.include): | if k == 'text' and fnmatch.fnmatch(os.path.basename(filename), args.include): | def get_filenames(args): """ Generate the filenames to grep. """ files = [] # If the user has given us a file with filenames, consume them first. if args.files_from_file is not None: if args.files_from_file == '-': files_file = sys.stdin should_close = False elif os.path.exists(args.files_from_file): files_file = open(args.files_from_file) should_close = True try: # Remove '' if args.null_separated: files.extend([x.strip() for x in files_file.read().split('\0')]) else: files.extend([x.strip() for x in files_file]) finally: if should_close: files_file.close() # Now add the filenames provided on the command line itself. files.extend(args.files) if len(files) == 0: # Add the current directory at least. files = ['.'] # Make sure we don't have any empty strings lying around. while '' in files: files.remove('') # Go over our list of filenames and see if we can recognize each as # something we want to grep. fr = get_recognizer(args) for fn in files: kind = fr.recognize(fn) if kind == 'text' and fnmatch.fnmatch(fn, args.include): yield fn elif kind == 'directory': for filename, k in fr.walk(fn): if k == 'text' and fnmatch.fnmatch(filename, args.include): yield filename # XXX: warn about other files? # XXX: handle binary? | 99fb606c1730356378f611089d7fe166cec788e2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10903/99fb606c1730356378f611089d7fe166cec788e2/grin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
19875,
12,
1968,
4672,
3536,
6654,
326,
9066,
358,
23366,
18,
3536,
1390,
273,
5378,
468,
971,
326,
729,
711,
864,
584,
279,
585,
598,
9066,
16,
7865,
2182,
1122,
18,
309,
833,
18,
2354,
67,
2080,
67,
768,
353,
486,
599,
30,
309,
833,
18,
2354,
67,
2080,
67,
768,
422,
4014,
30,
1390,
67,
768,
273,
2589,
18,
21772,
1410,
67,
4412,
273,
1083,
1327,
1140,
18,
803,
18,
1808,
12,
1968,
18,
2354,
67,
2080,
67,
768,
4672,
1390,
67,
768,
273,
1696,
12,
1968,
18,
2354,
67,
2080,
67,
768,
13,
1410,
67,
4412,
273,
1053,
225,
775,
30,
468,
3581,
875,
309,
833,
18,
2011,
67,
24622,
30,
1390,
18,
14313,
3816,
92,
18,
6406,
1435,
364,
619,
316,
1390,
67,
768,
18,
896,
7675,
4939,
2668,
64,
20,
6134,
5717,
469,
30,
1390,
18,
14313,
3816,
92,
18,
6406,
1435,
364,
619,
316,
1390,
67,
768,
5717,
3095,
30,
309,
1410,
67,
4412,
30,
1390,
67,
768,
18,
4412,
1435,
225,
468,
4494,
527,
326,
9066,
2112,
603,
326,
1296,
980,
6174,
18,
1390,
18,
14313,
12,
1968,
18,
2354,
13,
309,
562,
12,
2354,
13,
422,
374,
30,
468,
1436,
326,
783,
1867,
622,
4520,
18,
1390,
273,
10228,
1093,
65,
225,
468,
4344,
3071,
732,
2727,
1404,
1240,
1281,
1008,
2064,
328,
14946,
6740,
18,
1323,
875,
316,
1390,
30,
1390,
18,
4479,
2668,
6134,
225,
468,
4220,
1879,
3134,
666,
434,
9066,
471,
2621,
309,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
19875,
12,
1968,
4672,
3536,
6654,
326,
9066,
358,
23366,
18,
3536,
1390,
273,
5378,
468,
971,
326,
729,
711,
864,
584,
279,
585,
598,
9066,
16,
7865,
2182,
1122,
18,
309,
833,
18,
2354,
67,
2080,
67,
768,
353,
486,
599,
30,
309,
833,
18,
2354,
67,
2080,
67,
768,
422,
4014,
30,
1390,
67,
768,
273,
2589,
18,
21772,
1410,
67,
4412,
273,
1083,
1327,
1140,
18,
803,
18,
1808,
12,
1968,
18,
2354,
67,
2080,
67,
768,
4672,
1390,
67,
768,
273,
1696,
12,
1968,
18,
2354,
67,
2080,
67,
768,
13,
1410,
67,
4412,
273,
1053,
225,
775,
30,
468,
3581,
875,
309,
833,
18,
2011,
67,
24622,
30,
1390,
18,
14313,
2
] |
print >>STDERR, 'At step=' + str(step) | print >>STDERR, 'At formPerfectRuns, step=' + str(step) | def runOld(self): self.globals['atacAlgorithmVersion'] = str(17) print >>STDERR, "runName = %s\n" % self.runName | b0320aafbfa4ffff8c6908c5f59785ef879bfba8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2088/b0320aafbfa4ffff8c6908c5f59785ef879bfba8/AtacDriver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
7617,
12,
2890,
4672,
365,
18,
16227,
3292,
396,
71,
6801,
1444,
3546,
273,
609,
12,
4033,
13,
1172,
1671,
882,
25617,
16,
315,
2681,
461,
273,
738,
87,
64,
82,
6,
738,
365,
18,
2681,
461,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
7617,
12,
2890,
4672,
365,
18,
16227,
3292,
396,
71,
6801,
1444,
3546,
273,
609,
12,
4033,
13,
1172,
1671,
882,
25617,
16,
315,
2681,
461,
273,
738,
87,
64,
82,
6,
738,
365,
18,
2681,
461,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def set_write_buffered(): | def _set_write_buffered(): | def set_write_buffered(): flag = fcntl.fcntl(sys.stdout, fcntl.F_GETFL) fcntl.fcntl(sys.stdout, fcntl.F_SETFL, flag & ~os.O_NDELAY) | e4098373e5716f8e9470cb371a433c13b3d73ade /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11479/e4098373e5716f8e9470cb371a433c13b3d73ade/clush.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
2626,
67,
26385,
13332,
2982,
273,
30894,
18,
7142,
16681,
12,
9499,
18,
10283,
16,
30894,
18,
42,
67,
3264,
19054,
13,
30894,
18,
7142,
16681,
12,
9499,
18,
10283,
16,
30894,
18,
42,
67,
4043,
19054,
16,
2982,
473,
4871,
538,
18,
51,
67,
50,
26101,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
18,
7142,
16681,
12,
9499,
18,
10283,
16,
30894,
18,
42,
67,
3264,
19054,
13,
30894,
18,
7142,
16681,
12,
9499,
18,
10283,
16,
30894,
18,
42,
67,
4043,
19054,
16,
2982,
473,
4871,
538,
18,
51,
67,
50,
26101,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if isinstance(focusObject,NVDAObjects.IAccessible.IAccessible) and window==focusObject.event_windowHandle: eventName="caret" objectID=focusObject.event_objectID childID=focusObject.IAccessibleChildID | if isinstance(focusObject,NVDAObjects.IAccessible.IAccessible) and (window==focusObject.event_windowHandle or window==focusObject.windowHandle): return queueHandler.queueFunction(queueHandler.eventQueue,eventHandler.manageEvent,"caret",focusObject) | def winEventCallback(handle,eventID,window,objectID,childID,threadID,timestamp): try: focusObject=api.getFocusObject() foregroundObject=api.getForegroundObject() desktopObject=api.getDesktopObject() navigatorObject=api.getNavigatorObject() mouseObject=api.getMouseObject() eventName=eventMap[eventID] #Change window objIDs to client objIDs for better reporting of objects if (objectID==0) and (childID==0): objectID=OBJID_CLIENT #Remove any objects that are being hidden or destroyed if eventName in ["hide","destroy"]: if isinstance(focusObject,NVDAObjects.IAccessible.IAccessible) and (window==focusObject.event_windowHandle) and (objectID==focusObject.event_objectID) and (childID==focusObject.event_childID): try: parent=api.getFocusAncestors()[-1] except: parent=desktopObject globalVars.focusObject=parent api.setMouseObject(desktopObject) return elif isinstance(foregroundObject,NVDAObjects.IAccessible.IAccessible) and (window==foregroundObject.event_windowHandle) and (objectID==foregroundObject.event_objectID) and (childID==foregroundObject.event_childID): api.setForegroundObject(desktopObject) api.setMouseObject(desktopObject) api.setNavigatorObject(desktopObject) return #Ignore any other destroy events since the object does not exist if eventName=="destroy": return #Ignore events with invalid window handles isWindow = winUser.isWindow(window) if not window or eventName == "switchEnd" or (not isWindow and eventName == "menuEnd"): window=winUser.getDesktopWindow() elif not isWindow: return windowClassName=winUser.getClassName(window) controlID=winUser.getControlID(window) if windowClassName.startswith('Mozilla') and eventName in ("show","hide","reorder"): return #A hack to fix a bug in Notepad++ where focus is constantly given to some strange list if eventID==winUser.EVENT_OBJECT_FOCUS and controlID==30002 and winUser.getClassName(winUser.getAncestor(window,winUser.GA_ROOTOWNER))=="Notepad++": return if objectID==OBJID_CARET and eventName=="locationChange": if isinstance(focusObject,NVDAObjects.IAccessible.IAccessible) and window==focusObject.event_windowHandle: eventName="caret" objectID=focusObject.event_objectID childID=focusObject.IAccessibleChildID else: return #Report mouse shape changes if (eventID==winUser.EVENT_OBJECT_NAMECHANGE) and (objectID==OBJID_CURSOR): if not config.conf["mouse"]["reportMouseShapeChanges"]: return obj=NVDAObjects.IAccessible.getNVDAObjectFromEvent(winUser.getDesktopWindow(),OBJID_CURSOR,0) if obj: queueHandler.queueFunction(queueHandler.eventQueue,mouseHandler.updateMouseShape,obj.name) return #Process focus events elif eventName=="gainFocus": if focusEventQueue.full(): focusEventQueue.get() focusEventQueue.put((eventCounter.next(),window,objectID,childID)) return elif eventName.endswith("Change") or eventName in ("reorder","caret"): propertyChangeEventCache[(eventName,window,objectID,childID)]=eventCounter.next() return #Its a generic event which should just be queued with eventLock: heapq.heappush(eventHeap,(eventCounter.next(),eventName,window,objectID,childID)) except: globalVars.log.error("winEventCallback", exc_info=True) | 2769732836f58cc8e4925d4ce4df5c7e4afcc74b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/2769732836f58cc8e4925d4ce4df5c7e4afcc74b/IAccessibleHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5657,
1133,
2428,
12,
4110,
16,
2575,
734,
16,
5668,
16,
1612,
734,
16,
3624,
734,
16,
5930,
734,
16,
5508,
4672,
775,
30,
7155,
921,
33,
2425,
18,
588,
9233,
921,
1435,
16231,
921,
33,
2425,
18,
588,
23206,
921,
1435,
21304,
921,
33,
2425,
18,
588,
27583,
921,
1435,
19796,
921,
33,
2425,
18,
588,
22817,
921,
1435,
7644,
921,
33,
2425,
18,
588,
9186,
921,
1435,
7933,
33,
2575,
863,
63,
2575,
734,
65,
468,
3043,
2742,
1081,
5103,
358,
1004,
1081,
5103,
364,
7844,
16096,
434,
2184,
309,
261,
1612,
734,
631,
20,
13,
471,
261,
3624,
734,
631,
20,
4672,
23021,
33,
24547,
734,
67,
11935,
468,
3288,
1281,
2184,
716,
854,
3832,
5949,
578,
17689,
309,
7933,
316,
8247,
11248,
15937,
11662,
11929,
30,
309,
1549,
12,
13923,
921,
16,
11679,
9793,
4710,
18,
45,
10451,
18,
45,
10451,
13,
471,
261,
5668,
631,
13923,
921,
18,
2575,
67,
5668,
3259,
13,
471,
261,
1612,
734,
631,
13923,
921,
18,
2575,
67,
1612,
734,
13,
471,
261,
3624,
734,
631,
13923,
921,
18,
2575,
67,
3624,
734,
4672,
775,
30,
982,
33,
2425,
18,
588,
9233,
28304,
1435,
18919,
21,
65,
1335,
30,
982,
33,
31949,
921,
2552,
5555,
18,
13923,
921,
33,
2938,
1536,
18,
542,
9186,
921,
12,
31949,
921,
13,
327,
1327,
1549,
12,
1405,
2915,
921,
16,
11679,
9793,
4710,
18,
45,
10451,
18,
45,
10451,
13,
471,
261,
5668,
631,
1405,
2915,
921,
18,
2575,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5657,
1133,
2428,
12,
4110,
16,
2575,
734,
16,
5668,
16,
1612,
734,
16,
3624,
734,
16,
5930,
734,
16,
5508,
4672,
775,
30,
7155,
921,
33,
2425,
18,
588,
9233,
921,
1435,
16231,
921,
33,
2425,
18,
588,
23206,
921,
1435,
21304,
921,
33,
2425,
18,
588,
27583,
921,
1435,
19796,
921,
33,
2425,
18,
588,
22817,
921,
1435,
7644,
921,
33,
2425,
18,
588,
9186,
921,
1435,
7933,
33,
2575,
863,
63,
2575,
734,
65,
468,
3043,
2742,
1081,
5103,
358,
1004,
1081,
5103,
364,
7844,
16096,
434,
2184,
309,
261,
1612,
734,
631,
20,
13,
471,
261,
3624,
734,
631,
20,
4672,
23021,
33,
24547,
734,
67,
11935,
468,
3288,
1281,
2184,
716,
854,
3832,
2
] |
response = self.br.open(url) | response = self.newBrowser().open(url) | def fetchSiteSurvey(self): url = "http://%s/Site_Survey.asp" % self.hostname | 2d093c14be5a548e7f2de89704c1a8517e2d5677 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9143/2d093c14be5a548e7f2de89704c1a8517e2d5677/ddwrt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
4956,
22165,
12,
2890,
4672,
880,
273,
315,
2505,
23155,
87,
19,
4956,
67,
22165,
18,
28264,
6,
738,
365,
18,
10358,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
4956,
22165,
12,
2890,
4672,
880,
273,
315,
2505,
23155,
87,
19,
4956,
67,
22165,
18,
28264,
6,
738,
365,
18,
10358,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Set the list of time slides to be considered when deciding the bins in which each file belongs. Must be called before packing any files. The input is a list of dictionaries, each mapping instruments to offsets. | Set the list of offset vectors to be considered when deciding the bins in which each file belongs. Must be called before packing any files. The input is a list of dictionaries, each mapping instruments to offsets. | def set_time_slides(self, offsetdictlist): """ Set the list of time slides to be considered when deciding the bins in which each file belongs. Must be called before packing any files. The input is a list of dictionaries, each mapping instruments to offsets. """ self.timeslides = offsetdictlist min_offset = min(min(timeslide.values()) for timeslide in offsetdictlist) max_offset = max(max(timeslide.values()) for timeslide in offsetdictlist) # largest gap that can conceivably be closed by the time # slides self.max_gap = max_offset - min_offset if self.max_gap < 0: raise Exception, "crash!" | 5afd00a93e9df3377b0390c41b2e01173c997532 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/5afd00a93e9df3377b0390c41b2e01173c997532/ligolw_cafe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
957,
67,
2069,
4369,
12,
2890,
16,
1384,
1576,
1098,
4672,
3536,
1000,
326,
666,
434,
1384,
10046,
358,
506,
7399,
1347,
2109,
10415,
326,
8963,
316,
1492,
1517,
585,
11081,
18,
225,
6753,
506,
2566,
1865,
2298,
310,
1281,
1390,
18,
225,
1021,
810,
353,
279,
666,
434,
16176,
16,
1517,
2874,
29555,
358,
8738,
18,
3536,
365,
18,
8293,
80,
4369,
273,
1384,
1576,
1098,
1131,
67,
3348,
273,
1131,
12,
1154,
12,
8293,
8130,
18,
2372,
10756,
364,
4124,
8130,
316,
1384,
1576,
1098,
13,
943,
67,
3348,
273,
943,
12,
1896,
12,
8293,
8130,
18,
2372,
10756,
364,
4124,
8130,
316,
1384,
1576,
1098,
13,
468,
12756,
9300,
716,
848,
356,
311,
427,
6906,
506,
4375,
635,
326,
813,
468,
30119,
365,
18,
1896,
67,
14048,
273,
943,
67,
3348,
300,
1131,
67,
3348,
309,
365,
18,
1896,
67,
14048,
411,
374,
30,
1002,
1185,
16,
315,
3353,
961,
4442,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
957,
67,
2069,
4369,
12,
2890,
16,
1384,
1576,
1098,
4672,
3536,
1000,
326,
666,
434,
1384,
10046,
358,
506,
7399,
1347,
2109,
10415,
326,
8963,
316,
1492,
1517,
585,
11081,
18,
225,
6753,
506,
2566,
1865,
2298,
310,
1281,
1390,
18,
225,
1021,
810,
353,
279,
666,
434,
16176,
16,
1517,
2874,
29555,
358,
8738,
18,
3536,
365,
18,
8293,
80,
4369,
273,
1384,
1576,
1098,
1131,
67,
3348,
273,
1131,
12,
1154,
12,
8293,
8130,
18,
2372,
10756,
364,
4124,
8130,
316,
1384,
1576,
1098,
13,
943,
67,
3348,
273,
943,
12,
1896,
12,
8293,
8130,
18,
2372,
10756,
364,
4124,
8130,
316,
1384,
1576,
1098,
13,
468,
12756,
9300,
716,
848,
356,
311,
2
] |
zLOG.LOG("ZEOStorage:%s:%s" % (pid, name), level, msg, error=error) | zLOG.LOG("%s:%s" % (_label, name), level, msg, error=error) | def _log(self, msg, level=zLOG.INFO, error=None, pid=os.getpid()): name = getattr(self.__storage, '__name__', None) if name is None: name = str(self.__storage) zLOG.LOG("ZEOStorage:%s:%s" % (pid, name), level, msg, error=error) | b65ac5ca69f921a61a6c92be02c15bb88f981bfb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/b65ac5ca69f921a61a6c92be02c15bb88f981bfb/StorageServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1330,
12,
2890,
16,
1234,
16,
1801,
33,
94,
4842,
18,
5923,
16,
555,
33,
7036,
16,
4231,
33,
538,
18,
588,
6610,
1435,
4672,
508,
273,
3869,
12,
2890,
16186,
5697,
16,
4940,
529,
972,
2187,
599,
13,
309,
508,
353,
599,
30,
508,
273,
609,
12,
2890,
16186,
5697,
13,
998,
4842,
18,
4842,
2932,
3794,
51,
3245,
5319,
87,
5319,
87,
6,
738,
261,
6610,
16,
508,
3631,
1801,
16,
1234,
16,
555,
33,
1636,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1330,
12,
2890,
16,
1234,
16,
1801,
33,
94,
4842,
18,
5923,
16,
555,
33,
7036,
16,
4231,
33,
538,
18,
588,
6610,
1435,
4672,
508,
273,
3869,
12,
2890,
16186,
5697,
16,
4940,
529,
972,
2187,
599,
13,
309,
508,
353,
599,
30,
508,
273,
609,
12,
2890,
16186,
5697,
13,
998,
4842,
18,
4842,
2932,
3794,
51,
3245,
5319,
87,
5319,
87,
6,
738,
261,
6610,
16,
508,
3631,
1801,
16,
1234,
16,
555,
33,
1636,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if len(temp)==0: return if temp[-1]=='/': temp = temp[:-1] | self.base = path path = path.split('/') | def __init__(self, uri): | 4cc4d01d5479a695fcf128146a17545a587923d7 /local1/tlutel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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2003,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.propMgr.rotateAboutPointButton.setChecked(False) | def _acceptLineModePoints(self, params): #bruce 080801, revises acceptParamsFromTemporaryMode """ Accept returned points from the Line_Command request command. """ ### REVIEW: can this be called with params == None, # and/or never called, if Line_Command is terminated early? # In current code, it must always be called, # and is always called regardless of how Line_Command exits # (at least in USE_COMMAND_STACK case, which Ninad implemented today, # and probably in the old other case as well). # [bruce 080904 comment] (points,) = params del params #Usually points will contain 2 items. But if user abruptly terminates #the temporary mode, this might not be true. So move the chunk by offset #only when you have got 2 points! Ninad 2007-10-16 if len(points) == 2: startPoint = points[0] endPoint = points[1] offset = endPoint - startPoint movables = self.graphicsMode.getMovablesForLeftDragging() self.assy.translateSpecifiedMovables(offset, movables = movables) self.o.gl_update() | df89c25a8efcb7b63783a6955bffa3bdd3657f47 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/df89c25a8efcb7b63783a6955bffa3bdd3657f47/Move_Command.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9436,
1670,
2309,
5636,
12,
2890,
16,
859,
4672,
468,
2848,
3965,
374,
3672,
28,
1611,
16,
283,
3516,
281,
2791,
1370,
1265,
11685,
2309,
3536,
8662,
2106,
3143,
628,
326,
5377,
67,
2189,
590,
1296,
18,
3536,
11849,
2438,
12145,
30,
848,
333,
506,
2566,
598,
859,
422,
599,
16,
468,
471,
19,
280,
5903,
2566,
16,
309,
5377,
67,
2189,
353,
14127,
11646,
35,
468,
657,
783,
981,
16,
518,
1297,
3712,
506,
2566,
16,
468,
471,
353,
3712,
2566,
15255,
434,
3661,
5377,
67,
2189,
19526,
468,
261,
270,
4520,
316,
14988,
67,
19104,
67,
21971,
648,
16,
1492,
423,
267,
361,
8249,
10074,
16,
468,
225,
471,
8656,
316,
326,
1592,
1308,
648,
487,
5492,
2934,
468,
306,
2848,
3965,
374,
3672,
29,
3028,
2879,
65,
225,
261,
4139,
16,
13,
273,
859,
1464,
859,
225,
468,
3477,
3452,
3143,
903,
912,
576,
1516,
18,
12484,
309,
729,
1223,
10433,
715,
30559,
468,
5787,
6269,
1965,
16,
333,
4825,
486,
506,
638,
18,
6155,
3635,
326,
2441,
635,
1384,
468,
3700,
1347,
1846,
1240,
2363,
576,
3143,
5,
225,
423,
267,
361,
4044,
27,
17,
2163,
17,
2313,
309,
562,
12,
4139,
13,
422,
576,
30,
787,
2148,
273,
3143,
63,
20,
65,
19849,
273,
3143,
63,
21,
65,
1384,
273,
19849,
300,
787,
2148,
5730,
1538,
273,
365,
18,
31586,
2309,
18,
588,
49,
1527,
1538,
1290,
3910,
11728,
1998,
1435,
365,
18,
428,
93,
18,
13929,
17068,
49,
1527,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9436,
1670,
2309,
5636,
12,
2890,
16,
859,
4672,
468,
2848,
3965,
374,
3672,
28,
1611,
16,
283,
3516,
281,
2791,
1370,
1265,
11685,
2309,
3536,
8662,
2106,
3143,
628,
326,
5377,
67,
2189,
590,
1296,
18,
3536,
11849,
2438,
12145,
30,
848,
333,
506,
2566,
598,
859,
422,
599,
16,
468,
471,
19,
280,
5903,
2566,
16,
309,
5377,
67,
2189,
353,
14127,
11646,
35,
468,
657,
783,
981,
16,
518,
1297,
3712,
506,
2566,
16,
468,
471,
353,
3712,
2566,
15255,
434,
3661,
5377,
67,
2189,
19526,
468,
261,
270,
4520,
316,
14988,
67,
19104,
67,
21971,
648,
16,
1492,
423,
267,
361,
8249,
10074,
16,
468,
225,
471,
8656,
316,
326,
1592,
1308,
648,
2
] |
|
"chisq_dof": "real_4", "sigmasq": "real_4", | "chisq_dof": "int_4s", "sigmasq": "real_8", | def set_band(self, band): self.central_freq = (band[0] + band[1])/2.0 self.bandwidth = band.duration() | b1cbab0ab7468a82afef33c240272a6fdc8e6cf1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/b1cbab0ab7468a82afef33c240272a6fdc8e6cf1/lsctables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
12752,
12,
2890,
16,
8937,
4672,
365,
18,
71,
12839,
67,
10212,
273,
261,
12752,
63,
20,
65,
397,
8937,
63,
21,
5717,
19,
22,
18,
20,
365,
18,
29750,
273,
8937,
18,
8760,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
12752,
12,
2890,
16,
8937,
4672,
365,
18,
71,
12839,
67,
10212,
273,
261,
12752,
63,
20,
65,
397,
8937,
63,
21,
5717,
19,
22,
18,
20,
365,
18,
29750,
273,
8937,
18,
8760,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return xen_api_error(['HANDLE_INVALID', 'VM', vtpm_struct['VM']]) | return xen_api_error(['HANDLE_INVALID', 'VTPM', vtpm_ref]) | def VTPM_destroy(self, session, vtpm_ref): xendom = XendDomain.instance() dom = xendom.get_vm_with_dev_uuid('vtpm', vtpm_ref) if dom: if dom.state != XEN_API_VM_POWER_STATE_HALTED: vm_ref = dom.get_dev_property('vtpm', vtpm_ref, 'VM') return xen_api_error(['VM_BAD_POWER_STATE', vm_ref, XendDomain.POWER_STATE_NAMES[XEN_API_VM_POWER_STATE_HALTED], XendDomain.POWER_STATE_NAMES[dom.state]]) from xen.xend.server import tpmif tpmif.destroy_vtpmstate(dom.getName()) return xen_api_success_void() else: return xen_api_error(['HANDLE_INVALID', 'VM', vtpm_struct['VM']]) | 3070d0cfb532c3b4a9b62a3d967edd6f3daa970b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6195/3070d0cfb532c3b4a9b62a3d967edd6f3daa970b/XendAPI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
776,
11130,
49,
67,
11662,
12,
2890,
16,
1339,
16,
331,
6834,
81,
67,
1734,
4672,
619,
409,
362,
273,
1139,
409,
3748,
18,
1336,
1435,
4092,
273,
619,
409,
362,
18,
588,
67,
3489,
67,
1918,
67,
5206,
67,
7080,
2668,
90,
6834,
81,
2187,
331,
6834,
81,
67,
1734,
13,
309,
4092,
30,
309,
4092,
18,
2019,
480,
1139,
1157,
67,
2557,
67,
7397,
67,
2419,
18839,
67,
7998,
67,
44,
1013,
6404,
30,
4268,
67,
1734,
273,
4092,
18,
588,
67,
5206,
67,
4468,
2668,
90,
6834,
81,
2187,
331,
6834,
81,
67,
1734,
16,
296,
7397,
6134,
327,
23048,
67,
2425,
67,
1636,
12,
3292,
7397,
67,
16234,
67,
2419,
18839,
67,
7998,
2187,
4268,
67,
1734,
16,
1139,
409,
3748,
18,
2419,
18839,
67,
7998,
67,
16257,
63,
60,
1157,
67,
2557,
67,
7397,
67,
2419,
18839,
67,
7998,
67,
44,
1013,
6404,
6487,
1139,
409,
3748,
18,
2419,
18839,
67,
7998,
67,
16257,
63,
9859,
18,
2019,
65,
5717,
628,
23048,
18,
92,
409,
18,
3567,
1930,
268,
7755,
430,
268,
7755,
430,
18,
11662,
67,
90,
6834,
81,
2019,
12,
9859,
18,
17994,
10756,
327,
23048,
67,
2425,
67,
4768,
67,
6459,
1435,
469,
30,
327,
23048,
67,
2425,
67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1435,
4092,
273,
619,
409,
362,
18,
588,
67,
3489,
67,
1918,
67,
5206,
67,
7080,
2668,
90,
6834,
81,
2187,
331,
6834,
81,
67,
1734,
13,
309,
4092,
30,
309,
4092,
18,
2019,
480,
1139,
1157,
67,
2557,
67,
7397,
67,
2419,
18839,
67,
7998,
67,
44,
1013,
6404,
30,
4268,
67,
1734,
273,
4092,
18,
588,
67,
5206,
67,
4468,
2668,
90,
6834,
81,
2187,
331,
6834,
81,
67,
1734,
16,
296,
7397,
6134,
327,
23048,
67,
2425,
67,
1636,
12,
3292,
7397,
67,
16234,
67,
2419,
18839,
67,
7998,
2187,
2
] |
res = super(crm_case, self).search(cr, uid, args, offset, | res = super(crm_case, self).search(cr, uid, args, offset, | def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False): res = super(crm_case, self).search(cr, uid, args, offset, limit, order, context, count) return res | 6ef425eb9ba53031aed0c6d62efd20dc99d4dc99 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/6ef425eb9ba53031aed0c6d62efd20dc99d4dc99/crm_calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
4422,
16,
4555,
16,
833,
16,
1384,
33,
20,
16,
1800,
33,
7036,
16,
1353,
33,
7036,
16,
819,
33,
7036,
16,
1056,
33,
8381,
4672,
400,
273,
2240,
12,
3353,
81,
67,
3593,
16,
365,
2934,
3072,
12,
3353,
16,
4555,
16,
833,
16,
1384,
16,
1800,
16,
1353,
16,
819,
16,
1056,
13,
327,
400,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
4422,
16,
4555,
16,
833,
16,
1384,
33,
20,
16,
1800,
33,
7036,
16,
1353,
33,
7036,
16,
819,
33,
7036,
16,
1056,
33,
8381,
4672,
400,
273,
2240,
12,
3353,
81,
67,
3593,
16,
365,
2934,
3072,
12,
3353,
16,
4555,
16,
833,
16,
1384,
16,
1800,
16,
1353,
16,
819,
16,
1056,
13,
327,
400,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def __setitem__(self, obj): | def add(self, obj): | def __setitem__(self, obj): """ Add the documentation for an object, and everything contained by that object, to this documentation map. | 3cd49f83d0d683c0b0adea1a5358cdc2234d7583 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/3cd49f83d0d683c0b0adea1a5358cdc2234d7583/objdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12,
2890,
16,
1081,
4672,
3536,
1436,
326,
7323,
364,
392,
733,
16,
471,
7756,
7542,
635,
716,
733,
16,
358,
333,
7323,
852,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12,
2890,
16,
1081,
4672,
3536,
1436,
326,
7323,
364,
392,
733,
16,
471,
7756,
7542,
635,
716,
733,
16,
358,
333,
7323,
852,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
<p> See also the <em>forbidden_posters</em> option for a related mechanism.""")), | <p> See also the <em>forbidden_posters</em> option for a related mechanism.""")), | def GetConfigInfo(self): langs = self.GetAvailableLanguages() | d4117e2559487604b13fa55121d903681fad00c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/d4117e2559487604b13fa55121d903681fad00c3/MailList.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26666,
966,
12,
2890,
4672,
26467,
273,
365,
18,
967,
5268,
12912,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
26666,
966,
12,
2890,
4672,
26467,
273,
365,
18,
967,
5268,
12912,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return None | return (0, None) | def runScript(prog=None, script=None, otherargs=[], force=False, rusage=False, tmpdir="/var/tmp", chroot=None): """Run (script otherargs) with interpreter prog (which can be a list containing initial arguments). Return None, or getrusage() stats of the script if rusage. Disable ldconfig optimization if force. Raise IOError, OSError.""" # FIXME? hardcodes config.rpmconfig usage if prog == None: prog = "/bin/sh" if prog == "/bin/sh" and script == None: return None if not os.path.exists(tmpdir): try: os.makedirs(os.path.dirname(tmpdir), mode=0755) except: pass try: os.makedirs(tmpdir, mode=01777) except: return None if isinstance(prog, TupleType): args = prog else: args = [prog] if not force and args == ["/sbin/ldconfig"] and script == None: if rpmconfig.delayldconfig == 1: rpmconfig.ldconfig += 1 # FIXME: assumes delayldconfig is checked after all runScript # invocations rpmconfig.delayldconfig = 1 return None elif rpmconfig.delayldconfig: rpmconfig.delayldconfig = 0 runScript("/sbin/ldconfig", force=1) if script != None: (fd, tmpfilename) = mkstemp_file(tmpdir, "rpm-tmp.") # test for open fds: # script = "ls -l /proc/$$/fd >> /$$.out\n" + script os.write(fd, script) os.close(fd) fd = None args.append(tmpfilename) args += otherargs (rfd, wfd) = os.pipe() if rusage: rusage_old = resource.getrusage(resource.RUSAGE_CHILDREN) pid = os.fork() if pid == 0: try: if chroot != None: os.chroot(chroot) os.close(rfd) if not os.path.exists("/dev"): os.mkdir("/dev") if not os.path.exists("/dev/null"): os.mknod("/dev/null", 0666, 259) fd = os.open("/dev/null", os.O_RDONLY) if fd != 0: os.dup2(fd, 0) os.close(fd) if wfd != 1: os.dup2(wfd, 1) os.close(wfd) os.dup2(1, 2) os.chdir("/") e = {"HOME": "/", "USER": "root", "LOGNAME": "root", "PATH": "/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin"} os.execve(args[0], args, e) finally: os._exit(255) os.close(wfd) # no need to read in chunks if we don't pass on data to some output func cret = "" cout = os.read(rfd, 8192) while cout: cret += cout cout = os.read(rfd, 8192) os.close(rfd) (cpid, status) = os.waitpid(pid, 0) if rusage: rusage_new = resource.getrusage(resource.RUSAGE_CHILDREN) rusage_val = [rusage_new[i] - rusage_old[i] for i in xrange(len(rusage_new))] else: rusage_val = None if script != None: os.unlink(tmpfilename) if status != 0: #or cret != "": if os.WIFEXITED(status): rpmconfig.printError("Script %s ended with exit code %d:" % \ (str(args), os.WEXITSTATUS(status))) elif os.WIFSIGNALED(status): core = "" if os.WCOREDUMP(status): core = "(with coredump)" rpmconfig.printError("Script %s killed by signal %d%s:" % \ (str(args), os.WTERMSIG(status), core)) elif os.WIFSTOPPED(status): # Can't happen, needs os.WUNTRACED rpmconfig.printError("Script %s stopped with signal %d:" % \ (str(args), os.WSTOPSIG(status))) else: rpmconfig.printError("Script %s ended (fixme: reason unknown):" % \ str(args)) cret.rstrip() rpmconfig.printError("Script %s failed: %s" % (args, cret)) # FIXME: should we be swallowing the script output? return (status, rusage_val) | 1fc8cf80445525becdf49d3dac1a462c3136a76c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/1fc8cf80445525becdf49d3dac1a462c3136a76c/functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3651,
12,
14654,
33,
7036,
16,
2728,
33,
7036,
16,
1308,
1968,
22850,
6487,
2944,
33,
8381,
16,
436,
9167,
33,
8381,
16,
20213,
1546,
19,
1401,
19,
5645,
3113,
462,
3085,
33,
7036,
4672,
3536,
1997,
261,
4263,
1308,
1968,
13,
598,
16048,
11243,
261,
12784,
848,
506,
279,
666,
4191,
2172,
1775,
2934,
225,
2000,
599,
16,
578,
336,
8010,
410,
1435,
3177,
434,
326,
2728,
309,
436,
9167,
18,
225,
10639,
16916,
1425,
14850,
309,
2944,
18,
225,
20539,
8340,
16,
10002,
12123,
225,
468,
9852,
35,
7877,
7000,
642,
18,
86,
7755,
1425,
4084,
309,
11243,
422,
599,
30,
11243,
273,
2206,
4757,
19,
674,
6,
309,
11243,
422,
2206,
4757,
19,
674,
6,
471,
2728,
422,
599,
30,
327,
261,
20,
16,
599,
13,
309,
486,
1140,
18,
803,
18,
1808,
12,
5645,
1214,
4672,
775,
30,
1140,
18,
81,
9477,
10539,
12,
538,
18,
803,
18,
12287,
12,
5645,
1214,
3631,
1965,
33,
8642,
2539,
13,
1335,
30,
1342,
775,
30,
1140,
18,
81,
9477,
10539,
12,
5645,
1214,
16,
1965,
33,
1611,
14509,
13,
1335,
30,
327,
261,
20,
16,
599,
13,
309,
1549,
12,
14654,
16,
7257,
559,
4672,
833,
273,
11243,
469,
30,
833,
273,
306,
14654,
65,
309,
486,
2944,
471,
833,
422,
8247,
19,
87,
4757,
19,
1236,
1425,
11929,
471,
2728,
422,
599,
30,
309,
25228,
1425,
18,
10790,
1236,
1425,
422,
404,
30,
25228,
1425,
18,
1236,
1425,
1011,
404,
468,
9852,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3651,
12,
14654,
33,
7036,
16,
2728,
33,
7036,
16,
1308,
1968,
22850,
6487,
2944,
33,
8381,
16,
436,
9167,
33,
8381,
16,
20213,
1546,
19,
1401,
19,
5645,
3113,
462,
3085,
33,
7036,
4672,
3536,
1997,
261,
4263,
1308,
1968,
13,
598,
16048,
11243,
261,
12784,
848,
506,
279,
666,
4191,
2172,
1775,
2934,
225,
2000,
599,
16,
578,
336,
8010,
410,
1435,
3177,
434,
326,
2728,
309,
436,
9167,
18,
225,
10639,
16916,
1425,
14850,
309,
2944,
18,
225,
20539,
8340,
16,
10002,
12123,
225,
468,
9852,
35,
7877,
7000,
642,
18,
86,
7755,
1425,
4084,
309,
11243,
422,
599,
30,
11243,
273,
2206,
4757,
19,
674,
6,
309,
11243,
422,
2206,
4757,
19,
674,
2
] |
self.valueOf_ = get_all_text_(node) if node.text is not None: obj_ = self.mixedclass_(MixedContainer.CategoryText, MixedContainer.TypeNone, '', node.text) self.content_.append(obj_) | def build(self, node): self.buildAttributes(node, node.attrib, []) self.valueOf_ = get_all_text_(node) if node.text is not None: obj_ = self.mixedclass_(MixedContainer.CategoryText, MixedContainer.TypeNone, '', node.text) self.content_.append(obj_) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, nodeName_) | 9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/9c12e50d449fa27d6f8f3415ece228ae97bb0266/_nexml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
2890,
16,
756,
4672,
365,
18,
3510,
2498,
12,
2159,
16,
756,
18,
14588,
16,
5378,
13,
364,
1151,
316,
756,
30,
7553,
67,
273,
4034,
67,
4951,
27799,
1916,
12,
3624,
18,
2692,
2934,
4650,
1435,
18919,
21,
65,
365,
18,
3510,
4212,
12,
3624,
16,
7553,
67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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
2890,
16,
756,
4672,
365,
18,
3510,
2498,
12,
2159,
16,
756,
18,
14588,
16,
5378,
13,
364,
1151,
316,
756,
30,
7553,
67,
273,
4034,
67,
4951,
27799,
1916,
12,
3624,
18,
2692,
2934,
4650,
1435,
18919,
21,
65,
365,
18,
3510,
4212,
12,
3624,
16,
7553,
67,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
self.draw() | self.rect.show() self.updateSelectionRect() | def mousePressEvent(self, ev): self.sel_startX = int(ev.pos().x()) self.sel_startY = int(ev.pos().y()) master = self.master master.sel_colmin = master.sel_colmax = self.sel_startX / master.cellwidth master.sel_rowmin = master.sel_rowmax = self.sel_startY / master.cellheight self.draw() master.updateRuleList() | 342c5c7a1be28b9c05dadefc8d2f5fbc7e82781f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/342c5c7a1be28b9c05dadefc8d2f5fbc7e82781f/OWAssociationRulesViewer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7644,
11840,
1133,
12,
2890,
16,
2113,
4672,
365,
18,
1786,
67,
1937,
60,
273,
509,
12,
14965,
18,
917,
7675,
92,
10756,
365,
18,
1786,
67,
1937,
61,
273,
509,
12,
14965,
18,
917,
7675,
93,
10756,
4171,
273,
365,
18,
7525,
4171,
18,
1786,
67,
1293,
1154,
273,
4171,
18,
1786,
67,
1293,
1896,
273,
365,
18,
1786,
67,
1937,
60,
342,
4171,
18,
3855,
2819,
4171,
18,
1786,
67,
492,
1154,
273,
4171,
18,
1786,
67,
492,
1896,
273,
365,
18,
1786,
67,
1937,
61,
342,
4171,
18,
3855,
4210,
225,
365,
18,
2607,
18,
4500,
1435,
365,
18,
2725,
6233,
6120,
1435,
4171,
18,
2725,
2175,
682,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7644,
11840,
1133,
12,
2890,
16,
2113,
4672,
365,
18,
1786,
67,
1937,
60,
273,
509,
12,
14965,
18,
917,
7675,
92,
10756,
365,
18,
1786,
67,
1937,
61,
273,
509,
12,
14965,
18,
917,
7675,
93,
10756,
4171,
273,
365,
18,
7525,
4171,
18,
1786,
67,
1293,
1154,
273,
4171,
18,
1786,
67,
1293,
1896,
273,
365,
18,
1786,
67,
1937,
60,
342,
4171,
18,
3855,
2819,
4171,
18,
1786,
67,
492,
1154,
273,
4171,
18,
1786,
67,
492,
1896,
273,
365,
18,
1786,
67,
1937,
61,
342,
4171,
18,
3855,
4210,
225,
365,
18,
2607,
18,
4500,
1435,
365,
18,
2725,
6233,
6120,
1435,
4171,
18,
2725,
2175,
682,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.startupconf.errorlevel = opts.errorlevel | self.conf.errorlevel = opts.errorlevel | def repo_optcb(optobj, opt, value, parser): '''Callback for the enablerepo and disablerepo option. Combines the values given for these options while preserving order from command line. ''' dest = eval('parser.values.%s' % optobj.dest) dest.append((opt, value)) | f5ebf54ac836878a2839b3dec4cf8b45fede4a38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/f5ebf54ac836878a2839b3dec4cf8b45fede4a38/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3538,
67,
3838,
7358,
12,
3838,
2603,
16,
2153,
16,
460,
16,
2082,
4672,
9163,
2428,
364,
326,
570,
27371,
881,
83,
471,
1015,
27371,
881,
83,
1456,
18,
225,
15645,
1465,
326,
924,
864,
364,
4259,
702,
1323,
27995,
1353,
628,
1296,
980,
18,
9163,
1570,
273,
5302,
2668,
4288,
18,
2372,
7866,
87,
11,
738,
2153,
2603,
18,
10488,
13,
1570,
18,
6923,
12443,
3838,
16,
460,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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259,
702,
1323,
27995,
1353,
628,
1296,
980,
18,
9163,
1570,
273,
5302,
2668,
4288,
18,
2372,
7866,
87,
11,
738,
2153,
2603,
18,
10488,
13,
1570,
18,
6923,
12443,
3838,
16,
460,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Audio.gcom4.addpfx=(options.addpfx.get().lstrip()+' ')[:4] | Audio.gcom4.addpfx=(options.addpfx.get().lstrip()+' ')[:8] | def update(): global root_geom,isec0,naz,nel,ndmiles,ndkm,nhotaz,nhotabetter,nopen, \ im,pim,cmap0,isync,isync441,isync6m,isync65,isync_save,idsec, \ first,itol,txsnrdb utc=time.gmtime(time.time()+0.1*idsec) isec=utc[5] if isec != isec0: #Do once per second isec0=isec t=time.strftime('%Y %b %d\n%H:%M:%S',utc) Audio.gcom2.utcdate=t[:12] ldate.configure(text=t) root_geom=root.geometry() utchours=utc[3]+utc[4]/60.0 + utc[5]/3600.0 naz,nel,ndmiles,ndkm,nhotaz,nhotabetter=Audio.azdist0( \ options.MyGrid.get().upper(),HisGrid.get().upper(),utchours) azdist() g.nfreq=nfreq.get() if Audio.gcom2.ndecoding==0: g.AzSun,g.ElSun,g.AzMoon,g.ElMoon,g.AzMoonB,g.ElMoonB,g.ntsky, \ g.ndop,g.ndop00,g.dbMoon,g.RAMoon,g.DecMoon,g.HA8,g.Dgrd, \ g.sd,g.poloffset,g.MaxNR,g.dfdt,g.dfdt0,g.RaAux,g.DecAux, \ g.AzAux,g.ElAux = Audio.astro0(utc[0],utc[1],utc[2], \ utchours,nfreq.get(),options.MyGrid.get().upper(), \ options.auxra.get()+' '[:9], \ options.auxdec.get()+' '[:9]) if mode.get()[:4]=='JT65' or mode.get()[:2]=='CW' : graph2.delete(ALL) g2font='Helvetica 16' graph2.create_text(75,13,anchor=CENTER,text="Moon",font=g2font) graph2.create_text(26,37,anchor=W, text="Az: %8.2f" % g.AzMoon,font=g2font) graph2.create_text(26,61,anchor=W, text="El: %8.2f" % g.ElMoon,font=g2font) graph2.create_text(26,85,anchor=W, text="Dop: %6d" % g.ndop,font=g2font) graph2.create_text(26,109,anchor=W,text="Dgrd:%8.1f" % g.Dgrd,font=g2font) if g.freeze_decode and mode.get()[:4]=='JT65': itol=2 ltol.configure(text='Tol '+str(50)) Audio.gcom2.dftolerance=50 nfreeze.set(1) Audio.gcom2.nfreeze=1 if Audio.gcom2.monitoring: Audio.gcom2.ndecoding=1 Audio.gcom2.nagain=0 else: Audio.gcom2.ndecoding=4 Audio.gcom2.nagain=1 g.freeze_decode=0 n=int(20.0*log10(g.rms/770.0+0.01)) t="Rx noise:%3d dB" % (n,) if n>=-10 and n<=10: msg4.configure(text=t,bg='gray85') else: msg4.configure(text=t,bg='red') t=g.ftnstr(Audio.gcom2.decodedfile) | 373fe6d8b3acfdeda3ccd4200e62ad0c97431cc6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2394/373fe6d8b3acfdeda3ccd4200e62ad0c97431cc6/wsjt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
13332,
2552,
1365,
67,
10049,
16,
291,
557,
20,
16,
82,
1561,
16,
3084,
16,
4880,
81,
1449,
16,
82,
2883,
81,
16,
82,
15224,
1561,
16,
82,
15224,
378,
11214,
16,
82,
3190,
16,
521,
709,
16,
84,
381,
16,
22738,
20,
16,
291,
1209,
16,
291,
1209,
6334,
21,
16,
291,
1209,
26,
81,
16,
291,
1209,
9222,
16,
291,
1209,
67,
5688,
16,
350,
3321,
16,
521,
1122,
16,
305,
355,
16,
978,
8134,
86,
1966,
225,
9439,
33,
957,
18,
75,
10838,
12,
957,
18,
957,
1435,
15,
20,
18,
21,
14,
350,
3321,
13,
277,
3321,
33,
17892,
63,
25,
65,
225,
309,
277,
3321,
480,
277,
3321,
20,
30,
21821,
468,
3244,
3647,
1534,
2205,
277,
3321,
20,
33,
291,
557,
268,
33,
957,
18,
701,
9982,
29909,
61,
738,
70,
738,
72,
64,
82,
9,
44,
5319,
49,
5319,
55,
2187,
17892,
13,
15045,
18,
75,
832,
22,
18,
17892,
712,
33,
88,
10531,
2138,
65,
328,
712,
18,
14895,
12,
955,
33,
88,
13,
1365,
67,
10049,
33,
3085,
18,
14330,
1435,
5218,
343,
4390,
33,
17892,
63,
23,
3737,
17892,
63,
24,
18537,
4848,
18,
20,
397,
9439,
63,
25,
18537,
5718,
713,
18,
20,
290,
1561,
16,
3084,
16,
4880,
81,
1449,
16,
82,
2883,
81,
16,
82,
15224,
1561,
16,
82,
15224,
378,
11214,
33,
12719,
18,
1561,
4413,
20,
12,
521,
702,
18,
12062,
6313,
18,
588,
7675,
5797,
9334,
44,
291,
6313,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
13332,
2552,
1365,
67,
10049,
16,
291,
557,
20,
16,
82,
1561,
16,
3084,
16,
4880,
81,
1449,
16,
82,
2883,
81,
16,
82,
15224,
1561,
16,
82,
15224,
378,
11214,
16,
82,
3190,
16,
521,
709,
16,
84,
381,
16,
22738,
20,
16,
291,
1209,
16,
291,
1209,
6334,
21,
16,
291,
1209,
26,
81,
16,
291,
1209,
9222,
16,
291,
1209,
67,
5688,
16,
350,
3321,
16,
521,
1122,
16,
305,
355,
16,
978,
8134,
86,
1966,
225,
9439,
33,
957,
18,
75,
10838,
12,
957,
18,
957,
1435,
15,
20,
18,
21,
14,
350,
3321,
13,
277,
3321,
33,
17892,
63,
25,
65,
225,
309,
277,
3321,
480,
277,
3321,
20,
30,
21821,
468,
2
] |
sage: C = Curve(X^3+Y^3-Z^3) sage: C.rational_points() [(0 : 1 : 1), (1 : 0 : 1), (2 : 2 : 1), (3 : 4 : 1), (4 : 1 : 0), (4 : 3 : 1)] sage: C.rational_points(sort=False) [(4 : 1 : 0), (1 : 0 : 1), (0 : 1 : 1), (2 : 2 : 1), (4 : 3 : 1), (3 : 4 : 1)] :: sage: F = GF(1009) sage: P2.<X,Y,Z> = ProjectiveSpace(F,2) sage: C = Curve(X^5+12*X*Y*Z^3 + X^2*Y^3 - 13*Y^2*Z^3) sage: len(C.rational_points()) 1043 | sage: C = Curve(X*Y*Z) sage: a = C.rational_points_iterator() sage: a.next() (1 : 0 : 0) sage: a.next() (0 : 1 : 0) sage: a.next() (1 : 1 : 0) sage: a.next() (0 : 0 : 1) sage: a.next() (1 : 0 : 1) sage: a.next() (0 : 1 : 1) sage: a.next() Traceback (most recent call last): ... StopIteration | def rational_points(self, algorithm="enum", sort=True): r""" Return the rational points on this curve computed via enumeration. | 98b600e283b76d988294a386cfe037b70de67ee1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/98b600e283b76d988294a386cfe037b70de67ee1/projective_curve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
8371,
67,
4139,
12,
2890,
16,
4886,
1546,
7924,
3113,
1524,
33,
5510,
4672,
436,
8395,
2000,
326,
436,
8371,
3143,
603,
333,
8882,
8470,
3970,
16836,
18,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
8371,
67,
4139,
12,
2890,
16,
4886,
1546,
7924,
3113,
1524,
33,
5510,
4672,
436,
8395,
2000,
326,
436,
8371,
3143,
603,
333,
8882,
8470,
3970,
16836,
18,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
from os.path import normpath, join, dirname for (name, value) in done.items(): if value[0:2] == "./": done[name] = normpath(join(dirname(fp.name), value)) | def parse_makefile(fp, g=None): """Parse a Makefile-style file. A dictionary containing name/value pairs is returned. If an optional dictionary is passed in as the second argument, it is used instead of a new dictionary. """ if g is None: g = {} variable_rx = re.compile("([a-zA-Z][a-zA-Z0-9_]+)\s*=\s*(.*)\n") done = {} notdone = {} # while 1: line = fp.readline() if not line: break m = variable_rx.match(line) if m: n, v = m.group(1, 2) v = string.strip(v) if "$" in v: notdone[n] = v else: try: v = string.atoi(v) except ValueError: pass done[n] = v # do variable interpolation here findvar1_rx = re.compile(r"\$\(([A-Za-z][A-Za-z0-9_]*)\)") findvar2_rx = re.compile(r"\${([A-Za-z][A-Za-z0-9_]*)}") while notdone: for name in notdone.keys(): value = notdone[name] m = findvar1_rx.search(value) if not m: m = findvar2_rx.search(value) if m: n = m.group(1) if done.has_key(n): after = value[m.end():] value = value[:m.start()] + done[n] + after if "$" in after: notdone[name] = value else: try: value = string.atoi(value) except ValueError: pass done[name] = string.strip(value) del notdone[name] elif notdone.has_key(n): # get it on a subsequent round pass else: done[n] = "" after = value[m.end():] value = value[:m.start()] + after if "$" in after: notdone[name] = value else: try: value = string.atoi(value) except ValueError: pass done[name] = string.strip(value) del notdone[name] else: # bogus variable reference; just drop it since we can't deal del notdone[name] # "Fix" all pathnames in the Makefile that are explicitly relative, # ie. that start with "./". This is a kludge to fix the "./ld_so_aix" # problem, the nature of which is that Python's installed Makefile # refers to "./ld_so_aix", but when we are building extensions we are # far from the directory where Python's Makefile (and ld_so_aix, for # that matter) is installed. Unfortunately, there are several other # relative pathnames in the Makefile, and this fix doesn't fix them, # because the layout of Python's source tree -- which is what the # Makefile refers to -- is not fully preserved in the Python # installation. Grumble. from os.path import normpath, join, dirname for (name, value) in done.items(): if value[0:2] == "./": done[name] = normpath(join(dirname(fp.name), value)) # save the results in the global dictionary g.update(done) return g | 44a4889a6cc7e9630286617bc672fa88be66626f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/44a4889a6cc7e9630286617bc672fa88be66626f/sysconfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
6540,
768,
12,
7944,
16,
314,
33,
7036,
4672,
3536,
3201,
279,
4344,
768,
17,
4060,
585,
18,
225,
432,
3880,
4191,
508,
19,
1132,
5574,
353,
2106,
18,
225,
971,
392,
3129,
3880,
353,
2275,
316,
487,
326,
2205,
1237,
16,
518,
353,
1399,
3560,
434,
279,
394,
3880,
18,
225,
3536,
309,
314,
353,
599,
30,
314,
273,
2618,
2190,
67,
20122,
273,
283,
18,
11100,
2932,
3816,
69,
17,
9600,
17,
62,
6362,
69,
17,
9600,
17,
62,
20,
17,
29,
67,
16004,
87,
14,
18206,
87,
14,
27816,
82,
7923,
2731,
273,
2618,
486,
8734,
273,
2618,
468,
1323,
404,
30,
980,
273,
4253,
18,
896,
1369,
1435,
309,
486,
980,
30,
898,
312,
273,
2190,
67,
20122,
18,
1916,
12,
1369,
13,
309,
312,
30,
290,
16,
331,
273,
312,
18,
1655,
12,
21,
16,
576,
13,
331,
273,
533,
18,
6406,
12,
90,
13,
309,
24568,
316,
331,
30,
486,
8734,
63,
82,
65,
273,
331,
469,
30,
775,
30,
331,
273,
533,
18,
270,
11359,
12,
90,
13,
1335,
2068,
30,
1342,
2731,
63,
82,
65,
273,
331,
225,
468,
741,
2190,
12851,
2674,
1104,
1401,
21,
67,
20122,
273,
283,
18,
11100,
12,
86,
12691,
8,
30351,
3816,
37,
17,
15948,
17,
94,
6362,
37,
17,
15948,
17,
94,
20,
17,
29,
67,
5772,
5153,
2225,
13,
1104,
1401,
22,
67,
20122,
273,
283,
18,
11100,
12,
86,
12691,
18498,
3816,
37,
17,
15948,
17,
94,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
6540,
768,
12,
7944,
16,
314,
33,
7036,
4672,
3536,
3201,
279,
4344,
768,
17,
4060,
585,
18,
225,
432,
3880,
4191,
508,
19,
1132,
5574,
353,
2106,
18,
225,
971,
392,
3129,
3880,
353,
2275,
316,
487,
326,
2205,
1237,
16,
518,
353,
1399,
3560,
434,
279,
394,
3880,
18,
225,
3536,
309,
314,
353,
599,
30,
314,
273,
2618,
2190,
67,
20122,
273,
283,
18,
11100,
2932,
3816,
69,
17,
9600,
17,
62,
6362,
69,
17,
9600,
17,
62,
20,
17,
29,
67,
16004,
87,
14,
18206,
87,
14,
27816,
82,
7923,
2731,
273,
2618,
486,
8734,
273,
2618,
468,
1323,
404,
30,
980,
273,
4253,
18,
896,
1369,
1435,
309,
486,
980,
30,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.